Skip to content

Commit

Permalink
Fix code issue that eclipse is unable to detect
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenartur committed Mar 24, 2024
1 parent e7c8422 commit c203a32
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ public BiPredicate<? extends ASTNode, E> addMethodInvocation(BiPredicate<MethodI
public BiPredicate<? extends ASTNode, E> addMethodInvocation(String methodname,
BiPredicate<MethodInvocation, E> bs) {
predicatedata.put(VisitorEnum.MethodInvocation, Map.ofEntries(
new AbstractMap.SimpleEntry<String, Object>(METHODNAME, methodname)
new AbstractMap.SimpleEntry<>(METHODNAME, methodname)
));
return predicatemap.put(VisitorEnum.MethodInvocation, bs);
}
Expand All @@ -695,8 +695,8 @@ public BiPredicate<? extends ASTNode, E> addMethodInvocation(String methodname,
public BiPredicate<? extends ASTNode, E> addMethodInvocation(Class typeof, String methodname,
BiPredicate<MethodInvocation, E> bs) {
Map<String, Object> map = Map.ofEntries(
new AbstractMap.SimpleEntry<String, Object>(METHODNAME, methodname),
new AbstractMap.SimpleEntry<String, Object>(TYPEOF, typeof)
new AbstractMap.SimpleEntry<>(METHODNAME, methodname),
new AbstractMap.SimpleEntry<>(TYPEOF, typeof)
);
predicatedata.put(VisitorEnum.MethodInvocation, map);
return predicatemap.put(VisitorEnum.MethodInvocation, bs);
Expand Down Expand Up @@ -1166,7 +1166,7 @@ public BiPredicate<? extends ASTNode, E> addVariableDeclarationStatement(
public BiPredicate<? extends ASTNode, E> addVariableDeclarationStatement(Class<?> typeof,
BiPredicate<VariableDeclarationStatement, E> bs) {
Map<String, Object> map = Map.ofEntries(
new AbstractMap.SimpleEntry<String, Object>(TYPEOF, typeof)
new AbstractMap.SimpleEntry<>(TYPEOF, typeof)
);
predicatedata.put(VisitorEnum.VariableDeclarationStatement, map);
return predicatemap.put(VisitorEnum.VariableDeclarationStatement, bs);
Expand Down Expand Up @@ -1677,7 +1677,7 @@ public BiConsumer<? extends ASTNode, E> addMethodInvocation(BiConsumer<MethodInv
*/
public BiConsumer<? extends ASTNode, E> addMethodInvocation(String methodname, BiConsumer<MethodInvocation, E> bc) {
this.consumerdata.put(VisitorEnum.MethodInvocation, Map.ofEntries(
new AbstractMap.SimpleEntry<String, Object>(METHODNAME, methodname)
new AbstractMap.SimpleEntry<>(METHODNAME, methodname)
));
return consumermap.put(VisitorEnum.MethodInvocation, bc);
}
Expand Down Expand Up @@ -2146,7 +2146,7 @@ public BiConsumer<? extends ASTNode, E> addVariableDeclarationStatement(
public BiConsumer<? extends ASTNode, E> addVariableDeclarationStatement(Class<?> typeof,
BiConsumer<VariableDeclarationStatement, E> bc) {
Map<String, Object> map = Map.ofEntries(
new AbstractMap.SimpleEntry<String, Object>(TYPEOF, typeof)
new AbstractMap.SimpleEntry<>(TYPEOF, typeof)
);
consumerdata.put(VisitorEnum.VariableDeclarationStatement, map);
return consumermap.put(VisitorEnum.VariableDeclarationStatement, bc);
Expand Down Expand Up @@ -2710,11 +2710,11 @@ public void addMethodDeclaration(BiPredicate<MethodDeclaration, E> bs, BiConsume
public void addMethodInvocation(String methodname, BiPredicate<MethodInvocation, E> bs,
BiConsumer<MethodInvocation, E> bc) {
predicatedata.put(VisitorEnum.MethodInvocation, Map.ofEntries(
new AbstractMap.SimpleEntry<String, Object>(METHODNAME, methodname)
new AbstractMap.SimpleEntry<>(METHODNAME, methodname)
));
predicatemap.put(VisitorEnum.MethodInvocation, bs);
consumerdata.put(VisitorEnum.MethodInvocation, Map.ofEntries(
new AbstractMap.SimpleEntry<String, Object>(METHODNAME, methodname)
new AbstractMap.SimpleEntry<>(METHODNAME, methodname)
));
consumermap.put(VisitorEnum.MethodInvocation, bc);
}
Expand All @@ -2729,8 +2729,8 @@ public void addMethodInvocation(String methodname, BiPredicate<MethodInvocation,
public void addMethodInvocation(Class typeof, String methodname, BiPredicate<MethodInvocation, E> bs,
BiConsumer<MethodInvocation, E> bc) {
Map<String, Object> map = Map.ofEntries(
new AbstractMap.SimpleEntry<String, Object>(METHODNAME, methodname),
new AbstractMap.SimpleEntry<String, Object>(TYPEOF, typeof)
new AbstractMap.SimpleEntry<>(METHODNAME, methodname),
new AbstractMap.SimpleEntry<>(TYPEOF, typeof)
);
predicatedata.put(VisitorEnum.MethodInvocation, map);
predicatemap.put(VisitorEnum.MethodInvocation, bs);
Expand Down Expand Up @@ -3270,7 +3270,7 @@ public void addVariableDeclarationStatement(BiPredicate<VariableDeclarationState
public void addVariableDeclarationStatement(Class<?> typeof, BiPredicate<VariableDeclarationStatement, E> bs,
BiConsumer<VariableDeclarationStatement, E> bc) {
Map<String, Object> map = Map.ofEntries(
new AbstractMap.SimpleEntry<String, Object>(TYPEOF, typeof)
new AbstractMap.SimpleEntry<>(TYPEOF, typeof)
);
predicatedata.put(VisitorEnum.VariableDeclarationStatement, map);
consumerdata.put(VisitorEnum.VariableDeclarationStatement, map);
Expand Down

0 comments on commit c203a32

Please sign in to comment.