Author: ggregory Date: Tue Jan 22 07:07:42 2013 New Revision: 1436768 URL: http://svn.apache.org/viewvc?rev=1436768&view=rev Log: Add final modifier to method parameters.
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/AnnotationUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/BitField.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/BooleanUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharEncoding.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharRange.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharSequenceUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharSet.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharSetUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ClassUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Conversion.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/EnumUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/JavaVersion.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/LocaleUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ObjectUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/RandomStringUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Range.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SerializationException.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SerializationUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringEscapeUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Validate.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/IDKey.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/StandardToStringStyle.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/concurrent/BackgroundInitializer.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/concurrent/CallableBackgroundInitializer.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentException.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentRuntimeException.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/concurrent/ConstantInitializer.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializer.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/concurrent/TimedSemaphore.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/event/EventUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ContextedException.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ContextedRuntimeException.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/Fraction.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/IEEE754rUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/NumberUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableBoolean.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/ConstructorUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/MemberUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/CompositeFormat.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/FormattableUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrLookup.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrMatcher.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrTokenizer.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/WordUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/AggregateTranslator.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/CodePointTranslator.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/EntityArrays.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/JavaUnicodeEscaper.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/LookupTranslator.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityEscaper.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaper.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/OctalUnescaper.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/UnicodeEscaper.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnescaper.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FormatCache.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/ImmutableTriple.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/MutablePair.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/MutableTriple.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/Pair.java commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/Triple.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/CharEncodingTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/CharUtilsPerfRun.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ClassUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ConversionTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/EnumUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/HashSetvBitSetTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/RangeTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/SerializationUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/CompareToBuilderTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/HashCodeBuilderAndEqualsBuilderTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/HashCodeBuilderTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderConcurrencyTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderExcludeTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderMutateInspectConcurrencyTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringStyleConcurrencyTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/BackgroundInitializerTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/BasicThreadFactoryTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/ConstantInitializerTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializerTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/event/EventListenerSupportTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/event/EventUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/CompositeFormatTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/StrSubstitutorTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/StrTokenizerTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsRoundingTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormat_ParserTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormat_PrinterTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDatePrinterTest.java Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/AnnotationUtils.java URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/AnnotationUtils.java?rev=1436768&r1=1436767&r2=1436768&view=diff ============================================================================== --- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/AnnotationUtils.java (original) +++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/AnnotationUtils.java Tue Jan 22 07:07:42 2013 @@ -69,7 +69,7 @@ public class AnnotationUtils { * {@inheritDoc} */ @Override - protected String getShortClassName(java.lang.Class<?> cls) { + protected String getShortClassName(final java.lang.Class<?> cls) { Class<? extends Annotation> annotationType = null; for (Class<?> iface : ClassUtils.getAllInterfaces(cls)) { if (Annotation.class.isAssignableFrom(iface)) { @@ -87,7 +87,7 @@ public class AnnotationUtils { * {@inheritDoc} */ @Override - protected void appendDetail(StringBuffer buffer, String fieldName, Object value) { + protected void appendDetail(final StringBuffer buffer, final String fieldName, Object value) { if (value instanceof Annotation) { value = AnnotationUtils.toString((Annotation) value); } @@ -118,7 +118,7 @@ public class AnnotationUtils { * @return {@code true} if the two annotations are {@code equal} or both * {@code null} */ - public static boolean equals(Annotation a1, Annotation a2) { + public static boolean equals(final Annotation a1, final Annotation a2) { if (a1 == a2) { return true; } @@ -163,7 +163,7 @@ public class AnnotationUtils { * @throws IllegalStateException if an annotation method invocation returns * {@code null} */ - public static int hashCode(Annotation a) { + public static int hashCode(final Annotation a) { int result = 0; Class<? extends Annotation> type = a.annotationType(); for (Method m : type.getDeclaredMethods()) { @@ -238,7 +238,7 @@ public class AnnotationUtils { * @param value the value of the member * @return a hash code for this member */ - private static int hashMember(String name, Object value) { + private static int hashMember(final String name, final Object value) { int part1 = name.hashCode() * 127; if (value.getClass().isArray()) { return part1 ^ arrayMemberHash(value.getClass().getComponentType(), value); @@ -259,7 +259,7 @@ public class AnnotationUtils { * @param o2 the second object * @return a flag whether these objects are equal */ - private static boolean memberEquals(Class<?> type, Object o1, Object o2) { + private static boolean memberEquals(final Class<?> type, final Object o1, final Object o2) { if (o1 == o2) { return true; } @@ -283,7 +283,7 @@ public class AnnotationUtils { * @param o2 the second object * @return a flag whether these objects are equal */ - private static boolean arrayMemberEquals(Class<?> componentType, Object o1, Object o2) { + private static boolean arrayMemberEquals(final Class<?> componentType, final Object o1, final Object o2) { if (componentType.isAnnotation()) { return annotationArrayMemberEquals((Annotation[]) o1, (Annotation[]) o2); } @@ -321,7 +321,7 @@ public class AnnotationUtils { * @param a2 the second array * @return a flag whether these arrays are equal */ - private static boolean annotationArrayMemberEquals(Annotation[] a1, Annotation[] a2) { + private static boolean annotationArrayMemberEquals(final Annotation[] a1, final Annotation[] a2) { if (a1.length != a2.length) { return false; } @@ -340,7 +340,7 @@ public class AnnotationUtils { * @param o the array * @return a hash code for the specified array */ - private static int arrayMemberHash(Class<?> componentType, Object o) { + private static int arrayMemberHash(final Class<?> componentType, final Object o) { if (componentType.equals(Byte.TYPE)) { return Arrays.hashCode((byte[]) o); }