Skip to content

Commit 35c2869

Browse files
committed
INSTANCE constant should be marked as final (SPR-9101)
1 parent c931eaa commit 35c2869

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.springframework.core/src/main/java/org/springframework/core/OrderComparator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2009 the original author or authors.
2+
* Copyright 2002-2012 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -40,7 +40,7 @@ public class OrderComparator implements Comparator<Object> {
4040
/**
4141
* Shared default instance of OrderComparator.
4242
*/
43-
public static OrderComparator INSTANCE = new OrderComparator();
43+
public static final OrderComparator INSTANCE = new OrderComparator();
4444

4545

4646
public int compare(Object o1, Object o2) {

0 commit comments

Comments
 (0)