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
|
@ -115,6 +115,8 @@ 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
|
||||
* implement {@link Serializable}.
|
||||
*
|
||||
* @param <T>
|
||||
* the type of the object involved
|
||||
* @param msg
|
||||
* the object to roundtrip
|
||||
* @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
|
||||
// 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.
|
||||
|
|
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue