Make sure modifiers are in JLS order

This commit is contained in:
Benedikt Ritter 2017-06-06 15:26:38 +02:00
parent d0650d1a2f
commit 8a8b8ec8d2
No known key found for this signature in database
GPG Key ID: 9DAADC1C9FCC82D0
12 changed files with 24 additions and 22 deletions

View File

@ -46,6 +46,7 @@ limitations under the License.
<property name="allowUndeclaredRTE" value="true"/> <property name="allowUndeclaredRTE" value="true"/>
<property name="scope" value="public" /> <property name="scope" value="public" />
</module> </module>
<module name="ModifierOrder"/>
<module name="UpperEll" /> <module name="UpperEll" />
</module> </module>
</module> </module>

View File

@ -272,7 +272,7 @@ public class ThreadUtils {
/** /**
* A predicate implementation which always returns true. * A predicate implementation which always returns true.
*/ */
private final static class AlwaysTruePredicate implements ThreadPredicate, ThreadGroupPredicate{ private static final class AlwaysTruePredicate implements ThreadPredicate, ThreadGroupPredicate{
private AlwaysTruePredicate() { private AlwaysTruePredicate() {
} }

View File

@ -244,7 +244,7 @@ public abstract class BackgroundInitializer<T> implements
* *
* @return the {@code ExecutorService} for executing the background task * @return the {@code ExecutorService} for executing the background task
*/ */
protected synchronized final ExecutorService getActiveExecutor() { protected final synchronized ExecutorService getActiveExecutor() {
return executor; return executor;
} }

View File

@ -55,7 +55,7 @@ public class ThresholdCircuitBreaker extends AbstractCircuitBreaker<Long> {
/** /**
* The initial value of the internal counter. * The initial value of the internal counter.
*/ */
private final static long INITIAL_COUNT = 0L; private static final long INITIAL_COUNT = 0L;
/** /**
* The threshold. * The threshold.

View File

@ -201,7 +201,7 @@ public class FastDateParser implements DateParser, Serializable {
* Parse format into Strategies * Parse format into Strategies
*/ */
private class StrategyParser { private class StrategyParser {
final private Calendar definingCalendar; private final Calendar definingCalendar;
private int currentIdx; private int currentIdx;
StrategyParser(final Calendar definingCalendar) { StrategyParser(final Calendar definingCalendar) {
@ -491,7 +491,7 @@ public class FastDateParser implements DateParser, Serializable {
/** /**
* A strategy to parse a single field from the parsing pattern * A strategy to parse a single field from the parsing pattern
*/ */
private static abstract class Strategy { private abstract static class Strategy {
/** /**
* Is this field a number? * Is this field a number?
* The default implementation returns false. * The default implementation returns false.
@ -508,7 +508,7 @@ public class FastDateParser implements DateParser, Serializable {
/** /**
* A strategy to parse a single field from the parsing pattern * A strategy to parse a single field from the parsing pattern
*/ */
private static abstract class PatternStrategy extends Strategy { private abstract static class PatternStrategy extends Strategy {
private Pattern pattern; private Pattern pattern;
@ -648,7 +648,7 @@ public class FastDateParser implements DateParser, Serializable {
*/ */
private static class CopyQuotedStrategy extends Strategy { private static class CopyQuotedStrategy extends Strategy {
final private String formatField; private final String formatField;
/** /**
* Construct a Strategy that ensures the formatField has literal text * Construct a Strategy that ensures the formatField has literal text

View File

@ -101,7 +101,7 @@ abstract class FormatCache<F extends Format> {
* @throws IllegalArgumentException if pattern is invalid * @throws IllegalArgumentException if pattern is invalid
* or <code>null</code> * or <code>null</code>
*/ */
abstract protected F createInstance(String pattern, TimeZone timeZone, Locale locale); protected abstract F createInstance(String pattern, TimeZone timeZone, Locale locale);
/** /**
* <p>Gets a date/time formatter instance using the specified style, * <p>Gets a date/time formatter instance using the specified style,

View File

@ -137,7 +137,7 @@ public class CharSequenceUtilsTest {
new TestData("Abcd",false, 1, "abcD",1, 2, true), new TestData("Abcd",false, 1, "abcD",1, 2, true),
}; };
private static abstract class RunTest { private abstract static class RunTest {
abstract boolean invoke(); abstract boolean invoke();

View File

@ -56,13 +56,14 @@ run_inlined_CharUtils_isAsciiNumeric: 84,420 milliseconds.
*/ */
public class CharUtilsPerfRun { public class CharUtilsPerfRun {
final static String VERSION = "$Id$"; private static final String VERSION = "$Id$";
final static int WARM_UP = 100; private static final int WARM_UP = 100;
final static int COUNT = 5000; private static final int COUNT = 5000;
private static final char[] CHAR_SAMPLES;
final static char[] CHAR_SAMPLES;
static { static {
CHAR_SAMPLES = new char[Character.MAX_VALUE]; CHAR_SAMPLES = new char[Character.MAX_VALUE];
for (char i = Character.MIN_VALUE; i < Character.MAX_VALUE; i++) { for (char i = Character.MIN_VALUE; i < Character.MAX_VALUE; i++) {

View File

@ -40,7 +40,7 @@ import org.junit.Test;
*/ */
@Deprecated @Deprecated
public class StringEscapeUtilsTest { public class StringEscapeUtilsTest {
private final static String FOO = "foo"; private static final String FOO = "foo";
@Test @Test
public void testConstructor() { public void testConstructor() {

View File

@ -109,7 +109,7 @@ public class HashCodeBuilderTest {
private int b; private int b;
@SuppressWarnings("unused") @SuppressWarnings("unused")
transient private int t; private transient int t;
public TestSubObject() { public TestSubObject() {
super(0); super(0);

View File

@ -37,8 +37,8 @@ import org.junit.Test;
public class ReflectionToStringBuilderMutateInspectConcurrencyTest { public class ReflectionToStringBuilderMutateInspectConcurrencyTest {
class TestFixture { class TestFixture {
final private LinkedList<Integer> listField = new LinkedList<>(); private final LinkedList<Integer> listField = new LinkedList<>();
final private Random random = new Random(); private final Random random = new Random();
private final int N = 100; private final int N = 100;
public TestFixture() { public TestFixture() {
@ -59,8 +59,8 @@ public class ReflectionToStringBuilderMutateInspectConcurrencyTest {
} }
class MutatingClient implements Runnable { class MutatingClient implements Runnable {
final private TestFixture testFixture; private final TestFixture testFixture;
final private Random random = new Random(); private final Random random = new Random();
public MutatingClient(final TestFixture testFixture) { public MutatingClient(final TestFixture testFixture) {
this.testFixture = testFixture; this.testFixture = testFixture;
@ -77,7 +77,7 @@ public class ReflectionToStringBuilderMutateInspectConcurrencyTest {
} }
class InspectingClient implements Runnable { class InspectingClient implements Runnable {
final private TestFixture testFixture; private final TestFixture testFixture;
public InspectingClient(final TestFixture testFixture) { public InspectingClient(final TestFixture testFixture) {
this.testFixture = testFixture; this.testFixture = testFixture;

View File

@ -253,8 +253,8 @@ public class FastDateFormatTest {
System.out.println(">>FastDateFormatTest: FastDateParser:"+fdfTime.get(1)+" SimpleDateFormat:"+sdfTime.get(1)); System.out.println(">>FastDateFormatTest: FastDateParser:"+fdfTime.get(1)+" SimpleDateFormat:"+sdfTime.get(1));
} }
final static private int NTHREADS= 10; private static final int NTHREADS= 10;
final static private int NROUNDS= 10000; private static final int NROUNDS= 10000;
private AtomicLongArray measureTime(final Format printer, final Format parser) throws InterruptedException { private AtomicLongArray measureTime(final Format printer, final Format parser) throws InterruptedException {
final ExecutorService pool = Executors.newFixedThreadPool(NTHREADS); final ExecutorService pool = Executors.newFixedThreadPool(NTHREADS);