polishing
This commit is contained in:
parent
9daae23e17
commit
9b4f9106c5
|
|
@ -177,9 +177,10 @@ public class MethodParameter {
|
||||||
*/
|
*/
|
||||||
public Class getParameterType() {
|
public Class getParameterType() {
|
||||||
if (this.parameterType == null) {
|
if (this.parameterType == null) {
|
||||||
if (parameterIndex < 0) {
|
if (this.parameterIndex < 0) {
|
||||||
this.parameterType = (this.method != null ? this.method.getReturnType() : null);
|
this.parameterType = (this.method != null ? this.method.getReturnType() : null);
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
this.parameterType = (this.method != null ?
|
this.parameterType = (this.method != null ?
|
||||||
this.method.getParameterTypes()[this.parameterIndex] :
|
this.method.getParameterTypes()[this.parameterIndex] :
|
||||||
this.constructor.getParameterTypes()[this.parameterIndex]);
|
this.constructor.getParameterTypes()[this.parameterIndex]);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2008 the original author or authors.
|
* Copyright 2002-2009 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -48,8 +48,8 @@ public class OverridingClassLoader extends DecoratingClassLoader {
|
||||||
*/
|
*/
|
||||||
public OverridingClassLoader(ClassLoader parent) {
|
public OverridingClassLoader(ClassLoader parent) {
|
||||||
super(parent);
|
super(parent);
|
||||||
for (int i = 0; i < DEFAULT_EXCLUDED_PACKAGES.length; i++) {
|
for (String packageName : DEFAULT_EXCLUDED_PACKAGES) {
|
||||||
excludePackage(DEFAULT_EXCLUDED_PACKAGES[i]);
|
excludePackage(packageName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue