BUG-4688: update Revision design a bit more
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / parser / stmt / rfc7950 / Bug9241Test.java
index 618e0a98aa867533a837293965f38d73d61361f8..63a72fcb14fdf6f5f52efac39a36b5dfafe81ec1 100644 (file)
@@ -29,7 +29,7 @@ public class Bug9241Test {
         final SchemaContext schemaContext = StmtTestUtils.parseYangSource("/rfc7950/bug9241/foo.yang");
         assertNotNull(schemaContext);
 
-        final Module fooModule = schemaContext.findModule("foo", Revision.valueOf("2017-10-13")).get();
+        final Module fooModule = schemaContext.findModule("foo", Revision.of("2017-10-13")).get();
 
         final ContainerSchemaNode actionCont = (ContainerSchemaNode) fooModule.getDataChildByName(QName.create(
                 fooModule.getQNameModule(), "action-cont"));