Author: britter
Date: Fri Feb 28 08:42:25 2014
New Revision: 1572877
URL: http://svn.apache.org/r1572877
Log:
Make checkstyle happy
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SerializationUtils.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/time/FastDateFormat.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SerializationUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SerializationUtils.java?rev=1572877&r1=1572876&r2=1572877&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SerializationUtils.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SerializationUtils.java
Fri Feb 28 08:42:25 2014
@@ -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
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=1572877&r1=1572876&r2=1572877&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Fri Feb 28 08:42:25 2014
@@ -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.
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java?rev=1572877&r1=1572876&r2=1572877&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java
Fri Feb 28 08:42:25 2014
@@ -366,7 +366,7 @@ public class FastDateFormat extends Form
* @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
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java?rev=1572877&r1=1572876&r2=1572877&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
Fri Feb 28 08:42:25 2014
@@ -133,6 +133,8 @@ public class FastDateParser implements D
/**
* 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) {