groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: Fixing squid:EmptyStatementUsageCheck - Empty statements should be removed (closes #231 #233)
Date Tue, 05 Jan 2016 00:35:56 GMT
Repository: groovy
Updated Branches:
  refs/heads/master 61e898c63 -> 824978fdd


Fixing squid:EmptyStatementUsageCheck - Empty statements should be removed (closes #231 #233)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/824978fd
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/824978fd
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/824978fd

Branch: refs/heads/master
Commit: 824978fddbf4f9eb9e5d2094c2018bfdaba32b29
Parents: 61e898c
Author: Kirill Vlasov <kirill.vlasov@devfactory.com>
Authored: Wed Dec 30 11:01:19 2015 +0500
Committer: paulk <paulk@asert.com.au>
Committed: Tue Jan 5 10:34:36 2016 +1000

----------------------------------------------------------------------
 .../org/codehaus/groovy/classgen/asm/indy/InvokeDynamicWriter.java | 2 +-
 src/main/org/codehaus/groovy/control/ClassNodeResolver.java        | 2 +-
 .../codehaus/groovy/transform/AnnotationCollectorTransform.java    | 2 +-
 .../groovy-json/src/main/java/groovy/json/JsonParserType.java      | 2 +-
 .../groovy-json/src/main/java/groovy/json/internal/Type.java       | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/824978fd/src/main/org/codehaus/groovy/classgen/asm/indy/InvokeDynamicWriter.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/classgen/asm/indy/InvokeDynamicWriter.java b/src/main/org/codehaus/groovy/classgen/asm/indy/InvokeDynamicWriter.java
index 362544e..a5be513 100644
--- a/src/main/org/codehaus/groovy/classgen/asm/indy/InvokeDynamicWriter.java
+++ b/src/main/org/codehaus/groovy/classgen/asm/indy/InvokeDynamicWriter.java
@@ -228,7 +228,7 @@ public class InvokeDynamicWriter extends InvocationWriter {
 
     @Override
     public void castNonPrimitiveToBool(ClassNode sourceType) {
-        writeIndyCast(sourceType, ClassHelper.boolean_TYPE);;
+        writeIndyCast(sourceType, ClassHelper.boolean_TYPE);
     }
 
 }

http://git-wip-us.apache.org/repos/asf/groovy/blob/824978fd/src/main/org/codehaus/groovy/control/ClassNodeResolver.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/control/ClassNodeResolver.java b/src/main/org/codehaus/groovy/control/ClassNodeResolver.java
index b6d995c..025c419 100644
--- a/src/main/org/codehaus/groovy/control/ClassNodeResolver.java
+++ b/src/main/org/codehaus/groovy/control/ClassNodeResolver.java
@@ -104,7 +104,7 @@ public class ClassNodeResolver {
     protected static final ClassNode NO_CLASS = new ClassNode("NO_CLASS", Opcodes.ACC_PUBLIC,ClassHelper.OBJECT_TYPE){
         public void setRedirect(ClassNode cn) {
             throw new GroovyBugError("This is a dummy class node only! Never use it for real
classes.");
-        };
+        }
     };
     
     /**

http://git-wip-us.apache.org/repos/asf/groovy/blob/824978fd/src/main/org/codehaus/groovy/transform/AnnotationCollectorTransform.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/transform/AnnotationCollectorTransform.java b/src/main/org/codehaus/groovy/transform/AnnotationCollectorTransform.java
index 3c5f147..f6b5bfc 100644
--- a/src/main/org/codehaus/groovy/transform/AnnotationCollectorTransform.java
+++ b/src/main/org/codehaus/groovy/transform/AnnotationCollectorTransform.java
@@ -78,7 +78,7 @@ public class AnnotationCollectorTransform {
                 if (an.getClassNode().getName().equals(AnnotationCollector.class.getName()))
{
                     collector = an;
                     break;
-                };
+                }
             }
             if (collector==null) return;
             

http://git-wip-us.apache.org/repos/asf/groovy/blob/824978fd/subprojects/groovy-json/src/main/java/groovy/json/JsonParserType.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-json/src/main/java/groovy/json/JsonParserType.java b/subprojects/groovy-json/src/main/java/groovy/json/JsonParserType.java
index 22104a4..65e9a41 100644
--- a/subprojects/groovy-json/src/main/java/groovy/json/JsonParserType.java
+++ b/subprojects/groovy-json/src/main/java/groovy/json/JsonParserType.java
@@ -94,5 +94,5 @@ public enum JsonParserType {
      * INDEX_OVERLAY. It should be on average the fastest known JSON parser on the JVM circa
Jan 2014.
      * But not as fast as INDEX_OVERLAY.
      */
-    CHAR_BUFFER;
+    CHAR_BUFFER
 }

http://git-wip-us.apache.org/repos/asf/groovy/blob/824978fd/subprojects/groovy-json/src/main/java/groovy/json/internal/Type.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-json/src/main/java/groovy/json/internal/Type.java b/subprojects/groovy-json/src/main/java/groovy/json/internal/Type.java
index 80e6b53..b37d4eb 100644
--- a/subprojects/groovy-json/src/main/java/groovy/json/internal/Type.java
+++ b/subprojects/groovy-json/src/main/java/groovy/json/internal/Type.java
@@ -23,6 +23,6 @@ package groovy.json.internal;
  */
 public enum Type {
 
-    INTEGER, STRING, DOUBLE, TRUE, FALSE, NULL, MAP, LIST;
+    INTEGER, STRING, DOUBLE, TRUE, FALSE, NULL, MAP, LIST
 
 }


Mime
View raw message