Make checkstyle happy

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1572877 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benedikt Ritter 2014-02-28 08:42:25 +00:00
parent ffb07f08d8
commit 01329b7cf5
4 changed files with 12 additions and 4 deletions

View File

@ -114,7 +114,9 @@ public class SerializationUtils {
/**
* Performs a serialization roundtrip. Serializes and deserializes the given object, great for testing objects that
* implement {@link Serializable}.
*
*
* @param <T>
* the type of the object involved
* @param msg
* the object to roundtrip
* @return the serialized and deseralized object

View File

@ -7051,11 +7051,15 @@ public class StringUtils {
// 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.

View File

@ -366,7 +366,7 @@ public class FastDateFormat extends Format implements DateParser, DatePrinter {
* @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

View File

@ -133,6 +133,8 @@ public class FastDateParser implements DateParser, Serializable {
/**
* 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) {