commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1559915 - in /commons/proper/vfs/trunk: examples/src/main/java/org/apache/commons/vfs2/example/Shell.java sandbox/src/main/java/org/apache/commons/vfs2/RACRandomAccessFile.java
Date Tue, 21 Jan 2014 03:35:28 GMT
Author: ggregory
Date: Tue Jan 21 03:35:27 2014
New Revision: 1559915

URL: http://svn.apache.org/r1559915
Log:
Remove unnecessary parentheses

Modified:
    commons/proper/vfs/trunk/examples/src/main/java/org/apache/commons/vfs2/example/Shell.java
    commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/RACRandomAccessFile.java

Modified: commons/proper/vfs/trunk/examples/src/main/java/org/apache/commons/vfs2/example/Shell.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/examples/src/main/java/org/apache/commons/vfs2/example/Shell.java?rev=1559915&r1=1559914&r2=1559915&view=diff
==============================================================================
--- commons/proper/vfs/trunk/examples/src/main/java/org/apache/commons/vfs2/example/Shell.java
(original)
+++ commons/proper/vfs/trunk/examples/src/main/java/org/apache/commons/vfs2/example/Shell.java
Tue Jan 21 03:35:27 2014
@@ -47,7 +47,7 @@ public class Shell
     {
         try
         {
-            (new Shell()).go();
+            new Shell().go();
         }
         catch (final Exception e)
         {

Modified: commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/RACRandomAccessFile.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/RACRandomAccessFile.java?rev=1559915&r1=1559914&r2=1559915&view=diff
==============================================================================
--- commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/RACRandomAccessFile.java
(original)
+++ commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/RACRandomAccessFile.java
Tue Jan 21 03:35:27 2014
@@ -124,7 +124,7 @@ public class RACRandomAccessFile extends
     {
         final byte[] buf = this.singleByteBuf;
         final int count = read(buf, 0, 1);
-        return count < 0 ? -1 : (buf[0] & 0xFF);
+        return count < 0 ? -1 : buf[0] & 0xFF;
     }
 
     @Override



Mime
View raw message