diff --git a/src/main/java/org/apache/commons/lang3/SerializationUtils.java b/src/main/java/org/apache/commons/lang3/SerializationUtils.java index a0a3d7e36..5937eac0e 100644 --- a/src/main/java/org/apache/commons/lang3/SerializationUtils.java +++ b/src/main/java/org/apache/commons/lang3/SerializationUtils.java @@ -114,7 +114,9 @@ public static T clone(final T object) { /** * Performs a serialization roundtrip. Serializes and deserializes the given object, great for testing objects that * implement {@link Serializable}. - * + * + * @param + * the type of the object involved * @param msg * the object to roundtrip * @return the serialized and deseralized object diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index bf276f204..e32567526 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -7051,11 +7051,15 @@ private static double score(final CharSequence first, final CharSequence second) // If one or both of the sets of common characters is empty, then // there is no similarity between the two strings. - if (m1.length() == 0 || m2.length() == 0) return 0.0; + if (m1.length() == 0 || m2.length() == 0) { + return 0.0; + } // If the set of common characters is not the same size, then // there is no similarity between the two strings, either. - if (m1.length() != m2.length()) return 0.0; + if (m1.length() != m2.length()) { + return 0.0; + } // Calculate the number of transposition between the two sets // of common characters. diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java b/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java index 59504ffd6..8efa34150 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java @@ -366,7 +366,7 @@ public static FastDateFormat getDateTimeInstance( * @throws NullPointerException if pattern, timeZone, or locale is null. */ protected FastDateFormat(final String pattern, final TimeZone timeZone, final Locale locale) { - this(pattern, timeZone, locale, null); + this(pattern, timeZone, locale, null); } // Constructor diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java index 4c3807ae1..79fb7c605 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java @@ -133,6 +133,8 @@ else if(locale.equals(JAPANESE_IMPERIAL)) { /** * Initialize derived fields from defining fields. * This is called from constructor and from readObject (de-serialization) + * + * @param definingCalendar the {@link java.util.Calendar} instance used to initialize this FastDateParser */ private void init(Calendar definingCalendar) {