X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Freflection%2FReflectionUtils.java;h=ea53f679d2e6fa0efc7657574d8a5c1562d99b5b;hb=17775e14ecfb286e59f67117e5cee7e21e95ab1f;hp=87a0b8c5e7b47741721ac8cd182cdaacb99f1537;hpb=ddd261f331280640c5b53c7128230b629ebcd268;p=utils diff --git a/support/general/src/main/java/org/wamblee/reflection/ReflectionUtils.java b/support/general/src/main/java/org/wamblee/reflection/ReflectionUtils.java index 87a0b8c5..ea53f679 100644 --- a/support/general/src/main/java/org/wamblee/reflection/ReflectionUtils.java +++ b/support/general/src/main/java/org/wamblee/reflection/ReflectionUtils.java @@ -1,3 +1,18 @@ +/* + * Copyright 2005-2010 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.wamblee.reflection; import java.lang.reflect.Method; @@ -8,12 +23,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; - public class ReflectionUtils { /** - * Wraps a type by the corresponding wrapper type if it is a primitive - * type. - * @param aClass Type to wrap. + * Wraps a type by the corresponding wrapper type if it is a primitive type. + * + * @param aClass + * Type to wrap. * @return Wrapped type for primitives or the provided argument value. */ public static Class wrapIfNeeded(Class aClass) { @@ -74,8 +89,8 @@ public class ReflectionUtils { aFound.put(method.getName(), method); } else { // super class method. Check for override. - if (!Arrays.equals(superMethod.getParameterTypes(), - method.getParameterTypes())) { + if (!Arrays.equals(superMethod.getParameterTypes(), method + .getParameterTypes())) { // parameters differ so this is a new method. aFound.put(method.getName(), method); }