remove rawtypes

This commit is contained in:
Till Schnell 2021-04-08 18:54:16 +02:00
parent 11b63e0a5d
commit c7f91724a6

View File

@ -40,14 +40,15 @@ public class TestInferWildcardsJavaTx
return visitor;
}
private ConstraintSet getGeneratedConstraints (ReplaceTypeparamVisitor visitor) {
private ConstraintSet<Pair> getGeneratedConstraints (ReplaceTypeparamVisitor visitor) {
System.out.println("\nGenerated TPH:");
Map<TypePlaceholder, RefType> tphMap = visitor.getTphMap();
System.out.println(tphMap);
return ConstraintsGenerationUtils.generateConstraints(tphMap);
}
private ConstraintSet<Pair> combineConstraints (JavaTXCompiler javaTXCompiler, ConstraintSet generatedConstraints)
private ConstraintSet<Pair> combineConstraints (JavaTXCompiler javaTXCompiler,
ConstraintSet<Pair> generatedConstraints)
throws ClassNotFoundException, IOException {
System.out.println("\nGenerated Constraints:");
ConstraintSet<Pair> constraints = javaTXCompiler.getConstraints();
@ -67,7 +68,7 @@ public class TestInferWildcardsJavaTx
ReplaceTypeparamVisitor visitor = generateTph(javaTXCompiler);
// Generate Constraints
ConstraintSet generatedConstraints = getGeneratedConstraints(visitor);
ConstraintSet<Pair> generatedConstraints = getGeneratedConstraints(visitor);
// System.out.println(generatedConstraints);
// Constraints
@ -87,7 +88,7 @@ public class TestInferWildcardsJavaTx
ReplaceTypeparamVisitor visitor = generateTph(javaTXCompiler);
// Generate Constraints
ConstraintSet generatedConstraints = getGeneratedConstraints(visitor);
ConstraintSet<Pair> generatedConstraints = getGeneratedConstraints(visitor);
// System.out.println(generatedConstraints);
// Constraints
@ -103,7 +104,7 @@ public class TestInferWildcardsJavaTx
ReplaceTypeparamVisitor visitor = generateTph(javaTXCompiler);
// Generate Constraints
ConstraintSet generatedConstraints = getGeneratedConstraints(visitor);
ConstraintSet<Pair> generatedConstraints = getGeneratedConstraints(visitor);
// System.out.println(generatedConstraints);
// Constraints
@ -119,7 +120,7 @@ public class TestInferWildcardsJavaTx
ReplaceTypeparamVisitor visitor = generateTph(javaTXCompiler);
// Generate Constraints
ConstraintSet generatedConstraints = getGeneratedConstraints(visitor);
ConstraintSet<Pair> generatedConstraints = getGeneratedConstraints(visitor);
// System.out.println(generatedConstraints);
// Constraints