Add and fix Checkstyle NoWhitespaceBeforeCaseDefaultColon

This commit is contained in:
Gary Gregory 2024-10-03 17:29:55 -04:00
parent 706178d022
commit 6b7e51a6e4
4 changed files with 16 additions and 14 deletions

View File

@ -61,6 +61,7 @@ limitations under the License.
<module name="WhitespaceAfter"/> <module name="WhitespaceAfter"/>
<module name="WhitespaceAround"/> <module name="WhitespaceAround"/>
<module name="NoWhitespaceBefore"/> <module name="NoWhitespaceBefore"/>
<module name="NoWhitespaceBeforeCaseDefaultColon"/>
<module name="ImportOrder"> <module name="ImportOrder">
<property name="option" value="top"/> <property name="option" value="top"/>
<property name="groups" value="java,javax,junit,org,com"/> <property name="groups" value="java,javax,junit,org,com"/>

View File

@ -131,6 +131,7 @@ public abstract class AbstractNavigableSetTest<E> extends AbstractSortedSetTest<
public E[] getOtherElements() { public E[] getOtherElements() {
return otherElements; return otherElements;
} }
private NavigableSet<E> getSubSet(final NavigableSet<E> set) { private NavigableSet<E> getSubSet(final NavigableSet<E> set) {
final E[] elements = AbstractNavigableSetTest.this.getFullElements(); final E[] elements = AbstractNavigableSetTest.this.getFullElements();
switch (type) { switch (type) {