Skip to content

Commit 1e8c3f7

Browse files
committed
Use final
1 parent f63330b commit 1e8c3f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/java/org/apache/commons/text/StringSubstitutorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ void testSubstitutePreserveEscape() throws IOException {
10881088
@Test
10891089
void testToString() {
10901090
final StringSubstitutor s = new StringSubstitutor(null, "prefix", "suffix");
1091-
String str = s.toString();
1091+
final String str = s.toString();
10921092
assertTrue(str.contains("\"prefix\""), "Had: " + str);
10931093
}
10941094
}

src/test/java/org/apache/commons/text/translate/CharSequenceTranslatorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public int translate(final CharSequence input, final int index, final Writer wri
4545
void testIOException() {
4646
final CharSequenceTranslator translator = new CharSequenceTranslator() {
4747
@Override
48-
public int translate(CharSequence input, int index, Writer writer) throws IOException {
48+
public int translate(final CharSequence input, final int index, final Writer writer) throws IOException {
4949
throw new IOException("Test exception");
5050
}
5151
};

0 commit comments

Comments
 (0)