Skip to content

Commit 281f701

Browse files
committed
Add Checkstyle ModifierOrder
1 parent 0368ff2 commit 281f701

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

src/conf/checkstyle.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ limitations under the License.
4242
<module name="AvoidStarImport"/>
4343
<module name="RedundantImport"/>
4444
<module name="UnusedImports"/>
45+
<module name="ModifierOrder" />
4546
<module name="NeedBraces"/>
4647
<module name="ParenPad" />
4748
<module name="JavadocType">

src/main/java/org/apache/commons/beanutils2/locale/BaseLocaleConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,5 +292,5 @@ private <R> R getDefaultAs(final Class<R> type) {
292292
* @return The converted value
293293
* @throws ParseException if conversion cannot be performed successfully
294294
*/
295-
abstract protected T parse(Object value, String pattern) throws ParseException;
295+
protected abstract T parse(Object value, String pattern) throws ParseException;
296296
}

src/test/java/org/apache/commons/beanutils2/BasicDynaBeanTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class BasicDynaBeanTest {
5353
* The set of property names we expect to have returned when calling {@code getDynaProperties()}. You should update this list when new properties are added
5454
* to TestBean.
5555
*/
56-
protected final static String[] properties = { "booleanProperty", "booleanSecond", "doubleProperty", "floatProperty", "intArray", "intIndexed",
56+
protected static final String[] properties = { "booleanProperty", "booleanSecond", "doubleProperty", "floatProperty", "intArray", "intIndexed",
5757
"intProperty", "listIndexed", "longProperty", "mappedProperty", "mappedIntProperty", "nullProperty", "shortProperty", "stringArray",
5858
"stringIndexed", "stringProperty", };
5959

src/test/java/org/apache/commons/beanutils2/PropertyUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public class PropertyUtilsTest {
9494
* The set of property names we expect to have returned when calling {@code getPropertyDescriptors()}. You should update this list when new properties are
9595
* added to TestBean.
9696
*/
97-
protected final static String[] properties = { "booleanProperty", "booleanSecond", "doubleProperty", "dupProperty", "floatProperty", "intArray",
97+
protected static final String[] properties = { "booleanProperty", "booleanSecond", "doubleProperty", "dupProperty", "floatProperty", "intArray",
9898
"intIndexed", "intProperty", "listIndexed", "longProperty", "nested", "nullProperty", "readOnlyProperty", "shortProperty", "stringArray",
9999
"stringIndexed", "stringProperty", "writeOnlyProperty", };
100100

0 commit comments

Comments
 (0)