Skip to content

Commit 9850fc6

Browse files
committed
Inline single use local variable
1 parent d5243e2 commit 9850fc6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/org/apache/commons/io/input/CharacterSetFilterReader.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ private static IntPredicate toIntPredicate(final Set<Integer> skip) {
3737
if (skip == null) {
3838
return SKIP_NONE;
3939
}
40-
final Set<Integer> unmodifiableSet = Collections.unmodifiableSet(skip);
41-
return c -> unmodifiableSet.contains(Integer.valueOf(c));
40+
return c -> Collections.unmodifiableSet(skip).contains(Integer.valueOf(c));
4241
}
4342

4443
/**

0 commit comments

Comments
 (0)