Skip to content

Commit 0b63841

Browse files
committed
Add Checkstyle EmptyBlock
1 parent 9b4f8fd commit 0b63841

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/conf/checkstyle.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ limitations under the License.
5252
<module name="AvoidStarImport" />
5353
<module name="CovariantEquals" />
5454
<module name="DefaultComesLast" />
55+
<module name="EmptyBlock">
56+
<property name="option" value="text" />
57+
</module>
5558
<module name="ExplicitInitializationCheck" />
5659
<module name="FinalLocalVariable" />
5760
<module name="IllegalImport" />

src/main/java/org/apache/commons/codec/language/Metaphone.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ public String metaphone(final String txt) {
227227
final char symb = local.charAt(n);
228228
// remove duplicate letters except C
229229
if (symb != 'C' && isPreviousChar(local, n, symb)) {
230+
// empty
230231
} else { // not dup
231232
switch (symb) {
232233
case 'A':

0 commit comments

Comments
 (0)