commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1392551 - in /commons/sandbox/nabla/trunk: checkstyle.xml src/main/java/org/apache/commons/nabla/forward/analysis/TrackingInterpreter.java
Date Mon, 01 Oct 2012 19:32:31 GMT
Author: luc
Date: Mon Oct  1 19:32:31 2012
New Revision: 1392551

URL: http://svn.apache.org/viewvc?rev=1392551&view=rev
Log:
Formalize already used whitespace rules.

Modified:
    commons/sandbox/nabla/trunk/checkstyle.xml
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/TrackingInterpreter.java

Modified: commons/sandbox/nabla/trunk/checkstyle.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/checkstyle.xml?rev=1392551&r1=1392550&r2=1392551&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/checkstyle.xml (original)
+++ commons/sandbox/nabla/trunk/checkstyle.xml Mon Oct  1 19:32:31 2012
@@ -35,6 +35,17 @@
     <!-- White space checking around specific tokens -->
     <module name="NoWhitespaceAfter"/>
     <module name="NoWhitespaceBefore"/>
+    <module name="WhitespaceAround">
+        <property name="tokens"
+                  value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN,
+                         BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT,
+                         LAND, LCURLY, LE, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE,
+                         LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN,
+                         LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT,
+                         MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS,
+                         PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR,
+                         SR_ASSIGN, STAR, STAR_ASSIGN"/>
+    </module>
     
     <!-- No if/else/do/for/while without braces -->
     <module name="NeedBraces"/>

Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/TrackingInterpreter.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/TrackingInterpreter.java?rev=1392551&r1=1392550&r2=1392551&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/TrackingInterpreter.java
(original)
+++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/TrackingInterpreter.java
Mon Oct  1 19:32:31 2012
@@ -336,7 +336,7 @@ public class TrackingInterpreter extends
         final int opcode = insn.getOpcode();
         if (opcode == Opcodes.MULTIANEWARRAY) {
             return new TrackingValue(Type.getType(((MultiANewArrayInsnNode) insn).desc),
insn);
-        } else if (opcode == Opcodes.INVOKEDYNAMIC){
+        } else if (opcode == Opcodes.INVOKEDYNAMIC) {
             return new TrackingValue(Type.getReturnType(((InvokeDynamicInsnNode) insn).desc),
insn);
         } else {
             return new TrackingValue(Type.getReturnType(((MethodInsnNode) insn).desc), insn);



Mime
View raw message