File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
spring-core/src/main/java/org/springframework/core/annotation Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -58,6 +58,7 @@ public class AnnotationAwareOrderComparator extends OrderComparator {
58
58
* elements, in addition to the {@link org.springframework.core.Ordered}
59
59
* check in the superclass.
60
60
*/
61
+ @ Override
61
62
protected Integer findOrder (Object obj ) {
62
63
// Check for regular Ordered interface
63
64
Integer order = super .findOrder (obj );
@@ -97,6 +98,7 @@ else if (obj != null) {
97
98
* annotation: typically, selecting one object over another in case of
98
99
* multiple matches but only one object to be returned.
99
100
*/
101
+ @ Override
100
102
public Integer getPriority (Object obj ) {
101
103
Integer priority = null ;
102
104
if (obj instanceof Class ) {
@@ -105,7 +107,7 @@ public Integer getPriority(Object obj) {
105
107
else if (obj != null ) {
106
108
priority = OrderUtils .getPriority (obj .getClass ());
107
109
if (priority == null && obj instanceof DecoratingProxy ) {
108
- priority = OrderUtils .getOrder (((DecoratingProxy ) obj ).getDecoratedClass ());
110
+ priority = OrderUtils .getPriority (((DecoratingProxy ) obj ).getDecoratedClass ());
109
111
}
110
112
}
111
113
return priority ;
You can’t perform that action at this time.
0 commit comments