diff --git a/api/src/main/java/org/jboss/forge/roaster/model/util/Refactory.java b/api/src/main/java/org/jboss/forge/roaster/model/util/Refactory.java index 563435cf..d76f7133 100644 --- a/api/src/main/java/org/jboss/forge/roaster/model/util/Refactory.java +++ b/api/src/main/java/org/jboss/forge/roaster/model/util/Refactory.java @@ -140,7 +140,7 @@ public static void createEquals(final JavaClassSource clazz, final FieldSource hashcode) assertEquals("hashCode", hashcode.getName()); assertEquals(0, hashcode.getParameters().size()); assertEquals("int", hashcode.getReturnType().getName()); - assertThat(hashcode.getBody(), containsString("result=prime * result + Arrays.hashCode(flags);")); - assertThat(hashcode.getBody(), containsString("result=prime * result + Arrays.hashCode(objects);")); + assertThat(hashcode.getBody(), containsString("result=prime * result + java.util.Arrays.hashCode(flags);")); + assertThat(hashcode.getBody(), containsString("result=prime * result + java.util.Arrays.hashCode(objects);")); } private void assertEqualsForArrays(MethodSource equals) { assertEquals("equals", equals.getName()); assertEquals(1, equals.getParameters().size()); - assertThat(equals.getBody(), containsString("if (!Arrays.equals(flags,other.flags)) {\n return false;\n}")); - assertThat(equals.getBody(), containsString("if (!Arrays.equals(objects,other.objects)) {\n return false;\n}")); + assertThat(equals.getBody(), containsString("if (!java.util.Arrays.equals(flags,other.flags)) {\n return false;\n}")); + assertThat(equals.getBody(), containsString("if (!java.util.Arrays.equals(objects,other.objects)) {\n return false;\n}")); } @Test