Eliminate synthetic bridge methods in DataValidationException 48/72148/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 22 May 2018 09:03:46 +0000 (11:03 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 22 May 2018 09:33:50 +0000 (11:33 +0200)
Having private constructors requires the compiler to create bridge
methods, relax constructor visibility.

Change-Id: Ibc584b8970d1f288794a45a8df7cf74412b47cac
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/builder/impl/valid/DataValidationException.java

index 4e23ca841d37ad4d76ab2def7e43b901eb0fd554..e79cefb6164e399e748d7f1d83d88ef4ec1e515f 100644 (file)
@@ -81,17 +81,17 @@ public class DataValidationException extends RuntimeException {
     private static final class IllegalChildException extends DataValidationException {
         private static final long serialVersionUID = 1L;
 
-        private IllegalChildException(final PathArgument child, final DataNodeContainer schema,
+        IllegalChildException(final PathArgument child, final DataNodeContainer schema,
                 final Set<QName> childNodes, final Set<AugmentationIdentifier> augments) {
             super(String.format("Unknown child node: %s, does not belong to: %s as a direct child. "
                     + "Direct child nodes: %s, augmented child nodes: %s", child, schema, childNodes, augments));
         }
 
-        private IllegalChildException(final PathArgument child, final ChoiceSchemaNode schema) {
+        IllegalChildException(final PathArgument child, final ChoiceSchemaNode schema) {
             super(String.format("Unknown child node: %s, not detected in choice: %s", child, schema));
         }
 
-        private IllegalChildException(final PathArgument child, final DataSchemaNode schema,
+        IllegalChildException(final PathArgument child, final DataSchemaNode schema,
                 final Set<QName> childNodes) {
             super(String.format("Unknown child node: %s, does not belong to: %s as a child. Child nodes: %s", child,
                 schema, childNodes));