Skip to content

Commit

Permalink
Fixes checkstyle error
Browse files Browse the repository at this point in the history
  • Loading branch information
dingfeli committed Oct 3, 2024
1 parent e3ae679 commit 45d58ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public final class SuggestionTextUtil {
private SuggestionTextUtil() {
}

public static String replaceSpacesWithTabs(String input, int tabSize) {
public static String replaceSpacesWithTabs(final String input, final int tabSize) {
StringBuilder result = new StringBuilder();
String[] lines = input.split("\\r?\\n");

Expand Down Expand Up @@ -37,7 +37,7 @@ public static String replaceSpacesWithTabs(String input, int tabSize) {
return result.toString();
}

private static String getTabsForSpaces(int numSpaces, int tabSize) {
private static String getTabsForSpaces(final int numSpaces, final int tabSize) {
int numTabs = numSpaces / tabSize;
StringBuilder tabs = new StringBuilder();

Expand Down

0 comments on commit 45d58ba

Please sign in to comment.