X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-rfc7950%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Frfc7950%2Fstmt%2Ftype%2FUnionSpecificationSupport.java;h=b9ea4b28fd79afe9abb524b6b4e43c1e7e37b405;hb=c3c36549f58d7419b99e27647cb4f576c100d571;hp=2fe4f3c281a6258fa5a3c1478a7721023737e502;hpb=fc9cc1b7980a47ae746d51f28e3a2bca5a007545;p=yangtools.git diff --git a/yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/type/UnionSpecificationSupport.java b/yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/type/UnionSpecificationSupport.java index 2fe4f3c281..b9ea4b28fd 100644 --- a/yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/type/UnionSpecificationSupport.java +++ b/yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/type/UnionSpecificationSupport.java @@ -81,6 +81,6 @@ final class UnionSpecificationSupport * When the type is "union", the "type" statement (Section 7.4) MUST be * present. */ - return new SourceException("At least one type statement has to be present", stmt.sourceReference()); + return new SourceException("At least one type statement has to be present", stmt); } }