Skip to content

Commit 777767c

Browse files
committed
Merge pull request #1046 from panchenko/ReflectionUtils-static-final
* pr/1046: "final" for public static fields in ReflectionUtils
2 parents cd6b203 + 8d36332 commit 777767c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-core/src/main/java/org/springframework/util/ReflectionUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ public interface FieldFilter {
807807
/**
808808
* Pre-built FieldFilter that matches all non-static, non-final fields.
809809
*/
810-
public static FieldFilter COPYABLE_FIELDS = new FieldFilter() {
810+
public static final FieldFilter COPYABLE_FIELDS = new FieldFilter() {
811811

812812
@Override
813813
public boolean matches(Field field) {
@@ -819,7 +819,7 @@ public boolean matches(Field field) {
819819
/**
820820
* Pre-built MethodFilter that matches all non-bridge methods.
821821
*/
822-
public static MethodFilter NON_BRIDGED_METHODS = new MethodFilter() {
822+
public static final MethodFilter NON_BRIDGED_METHODS = new MethodFilter() {
823823

824824
@Override
825825
public boolean matches(Method method) {
@@ -832,7 +832,7 @@ public boolean matches(Method method) {
832832
* Pre-built MethodFilter that matches all non-bridge methods
833833
* which are not declared on {@code java.lang.Object}.
834834
*/
835-
public static MethodFilter USER_DECLARED_METHODS = new MethodFilter() {
835+
public static final MethodFilter USER_DECLARED_METHODS = new MethodFilter() {
836836

837837
@Override
838838
public boolean matches(Method method) {

0 commit comments

Comments
 (0)