Skip to content

Commit ff733d9

Browse files
Make a non-access modifier local variables. (#966)
1 parent b6d39a4 commit ff733d9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/org/apache/commons/lang3/Functions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ public static <O, T extends Throwable> boolean test(final FailablePredicate<O, T
631631
public static void tryWithResources(final FailableRunnable<? extends Throwable> action,
632632
final FailableConsumer<Throwable, ? extends Throwable> errorHandler,
633633
final FailableRunnable<? extends Throwable>... resources) {
634-
org.apache.commons.lang3.function.FailableRunnable<?>[] fr = new org.apache.commons.lang3.function.FailableRunnable[resources.length];
634+
final org.apache.commons.lang3.function.FailableRunnable<?>[] fr = new org.apache.commons.lang3.function.FailableRunnable[resources.length];
635635
Arrays.setAll(fr, i -> () -> resources[i].run());
636636
Failable.tryWithResources(action::run, errorHandler != null ? errorHandler::accept : null, fr);
637637
}

src/main/java/org/apache/commons/lang3/text/StrBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,7 +2456,7 @@ public int indexOf(final String str) {
24562456
* @param startIndex the index to start at, invalid index rounded to edge
24572457
* @return the first index of the string, or -1 if not found
24582458
*/
2459-
public int indexOf(final String str, int startIndex) {
2459+
public int indexOf(final String str, final int startIndex) {
24602460
return StringUtils.indexOf(this, str, startIndex);
24612461
}
24622462

@@ -2557,7 +2557,7 @@ public int lastIndexOf(final String str) {
25572557
* @param startIndex the index to start at, invalid index rounded to edge
25582558
* @return the last index of the string, or -1 if not found
25592559
*/
2560-
public int lastIndexOf(final String str, int startIndex) {
2560+
public int lastIndexOf(final String str, final int startIndex) {
25612561
return StringUtils.lastIndexOf(this, str, startIndex);
25622562
}
25632563

src/main/java/org/apache/commons/lang3/time/FastDateParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ private static StringBuilder simpleQuote(final StringBuilder sb, final String va
485485
* @param regex The regular expression to build
486486
* @return The map of string display names to field values
487487
*/
488-
private static Map<String, Integer> appendDisplayNames(final Calendar calendar, Locale locale, final int field,
488+
private static Map<String, Integer> appendDisplayNames(final Calendar calendar, final Locale locale, final int field,
489489
final StringBuilder regex) {
490490
final Map<String, Integer> values = new HashMap<>();
491491
final Locale actualLocale = LocaleUtils.toLocale(locale);

0 commit comments

Comments
 (0)