diff --git a/src/test/java/com/thoughtworks/qdox/RecordsTest.java b/src/test/java/com/thoughtworks/qdox/RecordsTest.java index d254712b..baa4b9ea 100644 --- a/src/test/java/com/thoughtworks/qdox/RecordsTest.java +++ b/src/test/java/com/thoughtworks/qdox/RecordsTest.java @@ -163,7 +163,7 @@ public void withNestedRecord() { javaDocBuilder.addSource( new StringReader(source) ); JavaClass cls = javaDocBuilder.getClassByName( "Rectangle" ); JavaClass nestedCls = cls.getNestedClassByName( "RotationAngle" ); - JavaConstructor constructor = nestedCls.getConstructors().getFirst(); + JavaConstructor constructor = nestedCls.getConstructors().get(0); Assertions.assertTrue( constructor.getSourceCode() != null ); }