From 324ffca3c91d4f1347b8ab6de26e7bc6526e2462 Mon Sep 17 00:00:00 2001 From: Carsten Hammer Date: Sun, 8 Dec 2024 17:50:41 +0100 Subject: [PATCH] remove warning about unused parameter --- .../internal/corext/fix/helper/AbstractExplicitEncoding.java | 2 +- .../corext/fix/helper/ChannelsNewReaderExplicitEncoding.java | 2 +- .../corext/fix/helper/InputStreamReaderExplicitEncoding.java | 2 +- .../corext/fix/helper/OutputStreamWriterExplicitEncoding.java | 2 +- .../corext/fix/helper/StringGetBytesExplicitEncoding.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/AbstractExplicitEncoding.java b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/AbstractExplicitEncoding.java index 8983a06004b..fad98176878 100644 --- a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/AbstractExplicitEncoding.java +++ b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/AbstractExplicitEncoding.java @@ -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(); diff --git a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/ChannelsNewReaderExplicitEncoding.java b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/ChannelsNewReaderExplicitEncoding.java index e399ca8607f..f86c0aadc20 100644 --- a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/ChannelsNewReaderExplicitEncoding.java +++ b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/ChannelsNewReaderExplicitEncoding.java @@ -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); } diff --git a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/InputStreamReaderExplicitEncoding.java b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/InputStreamReaderExplicitEncoding.java index f1ea47a622b..e409f8612e9 100644 --- a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/InputStreamReaderExplicitEncoding.java +++ b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/InputStreamReaderExplicitEncoding.java @@ -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); } diff --git a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/OutputStreamWriterExplicitEncoding.java b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/OutputStreamWriterExplicitEncoding.java index 749d5edb1e4..125664b7fe9 100644 --- a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/OutputStreamWriterExplicitEncoding.java +++ b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/OutputStreamWriterExplicitEncoding.java @@ -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); } diff --git a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/StringGetBytesExplicitEncoding.java b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/StringGetBytesExplicitEncoding.java index b8f773efbe0..a16d6b47669 100644 --- a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/StringGetBytesExplicitEncoding.java +++ b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/helper/StringGetBytesExplicitEncoding.java @@ -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); }