mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-20 10:16:13 +10:00
[#49] Removed JDK 7 API
This commit is contained in:
+4
-1
@@ -101,7 +101,10 @@ public class DefaultInterceptorFactory implements InterceptorFactory {
|
||||
|
||||
@Override
|
||||
public int compare(Constructor<?> o1, Constructor<?> o2) {
|
||||
return Integer.compare(o2.getParameterCount(), o1.getParameterCount());
|
||||
int p1 = o1.getParameterCount();
|
||||
int p2 = o2.getParameterCount();
|
||||
|
||||
return (p1 < p2) ? 1 : ((p1 == p2) ? 0 : -1);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user