Skip to content

Commit 214bf04

Browse files
refactoring
1 parent fd0d4b5 commit 214bf04

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/anthonisen/felix/astParsing/visitors/MethodCollector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import com.github.javaparser.ast.visitor.VoidVisitorAdapter;
44

55
import anthonisen.felix.astParsing.util.MethodData;
6-
import anthonisen.felix.astParsing.util.TypeReplacer;
6+
import anthonisen.felix.astParsing.util.TypeHandler;
77

88
import java.util.Collection;
99
import java.util.HashSet;
@@ -25,7 +25,7 @@ public void visit(MethodDeclaration n, Map<String, MethodData> arg) {
2525
super.visit(n, arg);
2626
String methodName = n.getNameAsString();
2727
Type type = n.getType().clone();
28-
boolean shouldReplace = TypeReplacer.replaceTypes(type, "T", "*"); // TODO get typeparams and bound
28+
boolean shouldReplace = TypeHandler.replaceTypes(type, "T", "*"); // TODO get typeparams and bound
2929
arg.put(methodName, new MethodData(shouldReplace, type.asString()));
3030
}
3131

src/main/java/anthonisen/felix/astParsing/visitors/TypeEraserVisitor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import java.util.Set;
1111

1212
import anthonisen.felix.astParsing.util.ClassData;
13-
import anthonisen.felix.astParsing.util.TypeReplacer;
13+
import anthonisen.felix.astParsing.util.TypeHandler;
1414

1515
public class TypeEraserVisitor extends ModifierVisitor<Void> {
1616

@@ -23,12 +23,12 @@ public TypeEraserVisitor(Set<ClassData> classData) {
2323

2424
@Override
2525
public Visitable visit(VariableDeclarationExpr n, Void arg) {
26-
TypeReplacer.replaceTypes(n.getElementType(), classCasts);
26+
TypeHandler.replaceTypes(n.getElementType(), classCasts);
2727
return super.visit(n, arg);
2828
}
2929

3030
public Visitable visit(Parameter n, Void arg) {
31-
TypeReplacer.replaceTypes(n.getType(), classCasts);
31+
TypeHandler.replaceTypes(n.getType(), classCasts);
3232
return super.visit(n, arg);
3333
}
3434
}

0 commit comments

Comments
 (0)