Skip to content

Commit

Permalink
Add Checkstyle ModifierOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Feb 9, 2025
1 parent 0368ff2 commit 281f701
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/conf/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ limitations under the License.
<module name="AvoidStarImport"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
<module name="ModifierOrder" />
<module name="NeedBraces"/>
<module name="ParenPad" />
<module name="JavadocType">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,5 +292,5 @@ private <R> R getDefaultAs(final Class<R> type) {
* @return The converted value
* @throws ParseException if conversion cannot be performed successfully
*/
abstract protected T parse(Object value, String pattern) throws ParseException;
protected abstract T parse(Object value, String pattern) throws ParseException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class BasicDynaBeanTest {
* The set of property names we expect to have returned when calling {@code getDynaProperties()}. You should update this list when new properties are added
* to TestBean.
*/
protected final static String[] properties = { "booleanProperty", "booleanSecond", "doubleProperty", "floatProperty", "intArray", "intIndexed",
protected static final String[] properties = { "booleanProperty", "booleanSecond", "doubleProperty", "floatProperty", "intArray", "intIndexed",
"intProperty", "listIndexed", "longProperty", "mappedProperty", "mappedIntProperty", "nullProperty", "shortProperty", "stringArray",
"stringIndexed", "stringProperty", };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public class PropertyUtilsTest {
* The set of property names we expect to have returned when calling {@code getPropertyDescriptors()}. You should update this list when new properties are
* added to TestBean.
*/
protected final static String[] properties = { "booleanProperty", "booleanSecond", "doubleProperty", "dupProperty", "floatProperty", "intArray",
protected static final String[] properties = { "booleanProperty", "booleanSecond", "doubleProperty", "dupProperty", "floatProperty", "intArray",
"intIndexed", "intProperty", "listIndexed", "longProperty", "nested", "nullProperty", "readOnlyProperty", "shortProperty", "stringArray",
"stringIndexed", "stringProperty", "writeOnlyProperty", };

Expand Down

0 comments on commit 281f701

Please sign in to comment.