diff --git a/src/test/java/inferWildcards/TestInferWildcards.java b/src/test/java/inferWildcards/TestInferWildcards.java index 06c780a1..dcfd17b4 100644 --- a/src/test/java/inferWildcards/TestInferWildcards.java +++ b/src/test/java/inferWildcards/TestInferWildcards.java @@ -49,17 +49,21 @@ public class TestInferWildcards for (CompilationUnitTree t : iterable) { System.out.println("unit: " + t.toString()); - InferWildcardsVisitor inferWildcardsVisitor = new InferWildcardsVisitor(); - t.accept(inferWildcardsVisitor, null); - - // Generated Constraints - ConstraintSet constraintSet = inferWildcardsVisitor.getConstraintSet(); - System.out.println("Constraints: " + constraintSet); - - // Generated TPH - Map placeholderMapping = inferWildcardsVisitor.getPlaceholderMapping(); - System.out.println("Placeholder: " + placeholderMapping.toString()); - + testUnit(t); } } + + @SuppressWarnings("rawtypes") + private void testUnit (CompilationUnitTree t) { + InferWildcardsVisitor inferWildcardsVisitor = new InferWildcardsVisitor(); + t.accept(inferWildcardsVisitor, null); + + // Generated Constraints + ConstraintSet constraintSet = inferWildcardsVisitor.getConstraintSet(); + System.out.println("Constraints: " + constraintSet); + + // Generated TPH + Map placeholderMapping = inferWildcardsVisitor.getPlaceholderMapping(); + System.out.println("Placeholder: " + placeholderMapping.toString()); + } }