BUG-4688: switch revisions from Date to Revision
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / Revision.java
index 7bd1fe425fadfff59b8c1b1b2dd7e348766decbb..dee497aa688bee02c84b8511e3bbee46215a68d9 100644 (file)
@@ -48,8 +48,8 @@ public final class Revision implements Comparable<Revision>, Serializable {
 
     private Revision(final String str) {
         // Since all strings conform to this format, compareTo() can be delegated to String.compareTo()
-        Preconditions.checkArgument(STRING_FORMAT.matcher(str).matches(), "String '%s' does match revision format",
-            str);
+        Preconditions.checkArgument(STRING_FORMAT.matcher(str).matches(),
+            "String '%s' does match revision format YYYY-MM-DD", str);
         this.str = str;
     }