Author: ggregory
Date: Wed Mar  7 05:07:30 2018
New Revision: 1826077

URL: http://svn.apache.org/viewvc?rev=1826077&view=rev
Log:
Fix some Checkstyle errors.

Modified:
    
commons/proper/email/trunk/src/main/java/org/apache/commons/mail/EmailUtils.java

Modified: 
commons/proper/email/trunk/src/main/java/org/apache/commons/mail/EmailUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/email/trunk/src/main/java/org/apache/commons/mail/EmailUtils.java?rev=1826077&r1=1826076&r2=1826077&view=diff
==============================================================================
--- 
commons/proper/email/trunk/src/main/java/org/apache/commons/mail/EmailUtils.java
 (original)
+++ 
commons/proper/email/trunk/src/main/java/org/apache/commons/mail/EmailUtils.java
 Wed Mar  7 05:07:30 2018
@@ -121,7 +121,7 @@ final class EmailUtils
      */
     static boolean isEmpty(final String str)
     {
-        return (str == null) || (str.length() == 0);
+        return str == null || str.length() == 0;
     }
 
     /**
@@ -135,7 +135,7 @@ final class EmailUtils
      */
     static boolean isNotEmpty(final String str)
     {
-        return (str != null) && (str.length() > 0);
+        return str != null && str.length() > 0;
     }
 
     /**
@@ -227,7 +227,7 @@ final class EmailUtils
             throw new IllegalArgumentException("Requested random string length 
" + count + " is less than 0.");
         }
 
-        if ((start == 0) && (end == 0))
+        if (start == 0 && end == 0)
         {
             end = 'z' + 1;
             start = ' ';


Reply via email to