Skip to content

Commit 6517ed1

Browse files
committed
Remove redundant keywords
1 parent d6a6bc7 commit 6517ed1

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/test/java/org/apache/commons/codec/language/ColognePhoneticTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ protected ColognePhonetic createStringEncoder() {
114114

115115
@Test
116116
public void testAabjoe() throws EncoderException {
117-
this.checkEncoding("01", "Aabjoe");
117+
checkEncoding("01", "Aabjoe");
118118
}
119119

120120
@Test
121121
public void testAaclan() throws EncoderException {
122-
this.checkEncoding("0856", "Aaclan");
122+
checkEncoding("0856", "Aaclan");
123123
}
124124

125125
/**
@@ -129,13 +129,13 @@ public void testAaclan() throws EncoderException {
129129
*/
130130
@Test
131131
public void testAychlmajrForCodec122() throws EncoderException {
132-
this.checkEncoding("04567", "Aychlmajr");
132+
checkEncoding("04567", "Aychlmajr");
133133
}
134134

135135
@Test
136136
// Ensure that override still allows tests to work
137137
public void testCanFail() {
138-
assertThrows(AssertionFailedError.class, () -> this.checkEncoding("/", "Fehler"));
138+
assertThrows(AssertionFailedError.class, () -> checkEncoding("/", "Fehler"));
139139
}
140140

141141
@Test
@@ -175,7 +175,7 @@ public void testEdgeCases() throws EncoderException {
175175
{ "r", "7" }
176176
};
177177
// @formatter:on
178-
this.checkEncodings(data);
178+
checkEncodings(data);
179179
}
180180

181181
@Test
@@ -218,13 +218,13 @@ public void testExamples() throws EncoderException {
218218
{ "heithabu", "021" }
219219
};
220220
// @formatter:on
221-
this.checkEncodings(data);
221+
checkEncodings(data);
222222
}
223223

224224
@Test
225225
public void testHyphen() throws EncoderException {
226226
final String[][] data = { { "bergisch-gladbach", "174845214" }, { "M\u00fcller-L\u00fcdenscheidt", "65752682" } }; // Müller-Lüdenscheidt
227-
this.checkEncodings(data);
227+
checkEncodings(data);
228228
}
229229

230230
@Test
@@ -242,26 +242,26 @@ public void testIsEncodeEquals() {
242242
};
243243
//@formatter:on
244244
for (final String[] element : data) {
245-
final boolean encodeEqual = this.getStringEncoder().isEncodeEqual(element[1], element[0]);
245+
final boolean encodeEqual = getStringEncoder().isEncodeEqual(element[1], element[0]);
246246
assertTrue(encodeEqual, element[1] + " != " + element[0]);
247247
}
248248
}
249249

250250
@Test
251251
public void testSpecialCharsBetweenSameLetters() throws EncoderException {
252252
final String[] data = { "Test test", "Testtest", "Test-test", "TesT#Test", "TesT?test" };
253-
this.checkEncodingVariations("28282", data);
253+
checkEncodingVariations("28282", data);
254254
}
255255

256256
@Test
257257
public void testVariationsMella() throws EncoderException {
258258
final String[] data = { "mella", "milah", "moulla", "mellah", "muehle", "mule" };
259-
this.checkEncodingVariations("65", data);
259+
checkEncodingVariations("65", data);
260260
}
261261

262262
@Test
263263
public void testVariationsMeyer() throws EncoderException {
264264
final String[] data = { "Meier", "Maier", "Mair", "Meyer", "Meyr", "Mejer", "Major" };
265-
this.checkEncodingVariations("67", data);
265+
checkEncodingVariations("67", data);
266266
}
267267
}

0 commit comments

Comments
 (0)