Skip to content

Commit

Permalink
remove warning about unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenartur committed Dec 8, 2024
1 parent cdc5e64 commit ecd4a56
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ protected void removeUnsupportedEncodingException(final ASTNode visited, TextEdi
}
}

protected void removeNLSComment(CompilationUnitRewrite cuRewrite, ASTNode node, TextEditGroup group, ASTRewrite rewrite) {
protected void removeNLSComment(CompilationUnitRewrite cuRewrite, ASTNode node, TextEditGroup group) {
CompilationUnit unit= cuRewrite.getRoot();
ICompilationUnit icu= (ICompilationUnit) cuRewrite.getRoot().getJavaElement();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void rewrite(UseExplicitEncodingFixCore upp, final MethodInvocation visit
ListRewrite listRewrite= rewrite.getListRewrite(visited, MethodInvocation.ARGUMENTS_PROPERTY);
if (nodedata.replace) {
listRewrite.replace(nodedata.visited, callToCharsetDefaultCharset, group);
removeNLSComment(cuRewrite, visited, group, rewrite);
removeNLSComment(cuRewrite, visited, group);
} else {
listRewrite.insertLast(callToCharsetDefaultCharset, group);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void rewrite(UseExplicitEncodingFixCore upp, ClassInstanceCreation visite
ListRewrite listRewrite = rewrite.getListRewrite(visited, ClassInstanceCreation.ARGUMENTS_PROPERTY);
if (nodedata.replace) {
listRewrite.replace(nodedata.visited, callToCharsetDefaultCharset, group);
removeNLSComment(cuRewrite, visited, group, rewrite);
removeNLSComment(cuRewrite, visited, group);
} else {
listRewrite.insertLast(callToCharsetDefaultCharset, group);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void rewrite(UseExplicitEncodingFixCore upp, final ClassInstanceCreation
ListRewrite listRewrite= rewrite.getListRewrite(visited, ClassInstanceCreation.ARGUMENTS_PROPERTY);
if (nodedata.replace) {
listRewrite.replace(nodedata.visited, callToCharsetDefaultCharset, group);
removeNLSComment(cuRewrite, visited, group, rewrite);
removeNLSComment(cuRewrite, visited, group);
} else {
listRewrite.insertLast(callToCharsetDefaultCharset, group);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void rewrite(UseExplicitEncodingFixCore upp, final MethodInvocation visit
ListRewrite listRewrite= rewrite.getListRewrite(visited, MethodInvocation.ARGUMENTS_PROPERTY);
if (nodedata.replace) {
listRewrite.replace(nodedata.visited, callToCharsetDefaultCharset, group);
removeNLSComment(cuRewrite, visited, group, rewrite);
removeNLSComment(cuRewrite, visited, group);
} else {
listRewrite.insertLast(callToCharsetDefaultCharset, group);
}
Expand Down

0 comments on commit ecd4a56

Please sign in to comment.