Skip to content

Commit 7048689

Browse files
committed
polishing
1 parent 8ee0363 commit 7048689

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

org.springframework.aop/src/main/java/org/springframework/aop/aspectj/SimpleAspectInstanceFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2007 the original author or authors.
2+
* Copyright 2002-2009 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.
@@ -84,7 +84,7 @@ public int getOrder() {
8484
* <p>The default implementation simply returns <code>Ordered.LOWEST_PRECEDENCE</code>.
8585
* @param aspectClass the aspect class
8686
*/
87-
protected int getOrderForAspectClass(Class aspectClass) {
87+
protected int getOrderForAspectClass(Class<?> aspectClass) {
8888
return Ordered.LOWEST_PRECEDENCE;
8989
}
9090

org.springframework.aop/src/main/java/org/springframework/aop/aspectj/SingletonAspectInstanceFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2007 the original author or authors.
2+
* Copyright 2002-2009 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.
@@ -74,7 +74,7 @@ public int getOrder() {
7474
* <p>The default implementation simply returns <code>Ordered.LOWEST_PRECEDENCE</code>.
7575
* @param aspectClass the aspect class
7676
*/
77-
protected int getOrderForAspectClass(Class aspectClass) {
77+
protected int getOrderForAspectClass(Class<?> aspectClass) {
7878
return Ordered.LOWEST_PRECEDENCE;
7979
}
8080

org.springframework.aop/src/main/java/org/springframework/aop/aspectj/annotation/SimpleMetadataAwareAspectInstanceFactory.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2007 the original author or authors.
2+
* Copyright 2002-2009 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.
@@ -57,13 +57,12 @@ public final AspectMetadata getAspectMetadata() {
5757
* @param aspectClass the aspect class
5858
*/
5959
@Override
60-
protected int getOrderForAspectClass(Class aspectClass) {
61-
Order order = (Order) aspectClass.getAnnotation(Order.class);
60+
protected int getOrderForAspectClass(Class<?> aspectClass) {
61+
Order order = aspectClass.getAnnotation(Order.class);
6262
if (order != null) {
6363
return order.value();
6464
}
6565
return Ordered.LOWEST_PRECEDENCE;
6666
}
6767

6868
}
69-

org.springframework.aop/src/main/java/org/springframework/aop/aspectj/annotation/SingletonMetadataAwareAspectInstanceFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2007 the original author or authors.
2+
* Copyright 2002-2009 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.
@@ -58,8 +58,8 @@ public final AspectMetadata getAspectMetadata() {
5858
* @see org.springframework.core.annotation.Order
5959
*/
6060
@Override
61-
protected int getOrderForAspectClass(Class aspectClass) {
62-
Order order = (Order) aspectClass.getAnnotation(Order.class);
61+
protected int getOrderForAspectClass(Class<?> aspectClass) {
62+
Order order = aspectClass.getAnnotation(Order.class);
6363
if (order != null) {
6464
return order.value();
6565
}

0 commit comments

Comments
 (0)