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:
parent
ffb07f08d8
commit
01329b7cf5
|
@ -114,7 +114,9 @@ public static <T extends Serializable> T clone(final T object) {
|
||||||
/**
|
/**
|
||||||
* Performs a serialization roundtrip. Serializes and deserializes the given object, great for testing objects that
|
* Performs a serialization roundtrip. Serializes and deserializes the given object, great for testing objects that
|
||||||
* implement {@link Serializable}.
|
* implement {@link Serializable}.
|
||||||
*
|
*
|
||||||
|
* @param <T>
|
||||||
|
* the type of the object involved
|
||||||
* @param msg
|
* @param msg
|
||||||
* the object to roundtrip
|
* the object to roundtrip
|
||||||
* @return the serialized and deseralized object
|
* @return the serialized and deseralized object
|
||||||
|
|
|
@ -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
|
// If one or both of the sets of common characters is empty, then
|
||||||
// there is no similarity between the two strings.
|
// 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
|
// If the set of common characters is not the same size, then
|
||||||
// there is no similarity between the two strings, either.
|
// 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
|
// Calculate the number of transposition between the two sets
|
||||||
// of common characters.
|
// of common characters.
|
||||||
|
|
|
@ -366,7 +366,7 @@ public static FastDateFormat getDateTimeInstance(
|
||||||
* @throws NullPointerException if pattern, timeZone, or locale is null.
|
* @throws NullPointerException if pattern, timeZone, or locale is null.
|
||||||
*/
|
*/
|
||||||
protected FastDateFormat(final String pattern, final TimeZone timeZone, final Locale locale) {
|
protected FastDateFormat(final String pattern, final TimeZone timeZone, final Locale locale) {
|
||||||
this(pattern, timeZone, locale, null);
|
this(pattern, timeZone, locale, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
|
|
|
@ -133,6 +133,8 @@ else if(locale.equals(JAPANESE_IMPERIAL)) {
|
||||||
/**
|
/**
|
||||||
* Initialize derived fields from defining fields.
|
* Initialize derived fields from defining fields.
|
||||||
* This is called from constructor and from readObject (de-serialization)
|
* 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) {
|
private void init(Calendar definingCalendar) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue