Fix invalid enum definition error string 06/67806/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 1 Feb 2018 10:09:35 +0000 (11:09 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 1 Feb 2018 10:09:35 +0000 (11:09 +0100)
This is a copy&paste problem, the string should not be referencing
bits but enums.

Change-Id: I5adc98a5db92b88bf7e20dcc6141213347858f58
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/type/EnumerationTypeBuilder.java

index 03d077c5ce6de082caa076ff954dc7c28a2518db..f8e3e119e97eea8dbcf180fc4176323e0c9948d0 100644 (file)
@@ -66,7 +66,7 @@ public final class EnumerationTypeBuilder extends AbstractRestrictedTypeBuilder<
         for (EnumPair p : map.values()) {
             final EnumPair conflict = positionMap.put(p.getValue(), p);
             if (conflict != null) {
-                throw new InvalidEnumDefinitionException(p, "Bit %s conflicts on position with bit ", conflict);
+                throw new InvalidEnumDefinitionException(p, "Enum '%s' conflicts on value with enum ", conflict);
             }
         }