groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: Adding spacing around equals operator for consistency (closes #620, side effect: closes #618)
Date Fri, 27 Oct 2017 20:42:58 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X 592a21228 -> 00e49d40f


Adding spacing around equals operator for consistency (closes #620, side effect: closes #618)

I noticed this while looking at the documentation for operators:
http://groovy-lang.org/operators.html


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

Branch: refs/heads/GROOVY_2_5_X
Commit: 00e49d40ff1de4daa985e311909f57af4ed13d26
Parents: 592a212
Author: Russell Sanborn <russellsanborn@gmail.com>
Authored: Fri Oct 27 14:33:43 2017 -0500
Committer: paulk <paulk@asert.com.au>
Committed: Sat Oct 28 06:42:44 2017 +1000

----------------------------------------------------------------------
 src/spec/test/OperatorsTest.groovy | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/00e49d40/src/spec/test/OperatorsTest.groovy
----------------------------------------------------------------------
diff --git a/src/spec/test/OperatorsTest.groovy b/src/spec/test/OperatorsTest.groovy
index 46b87f7..474f8b6 100644
--- a/src/spec/test/OperatorsTest.groovy
+++ b/src/spec/test/OperatorsTest.groovy
@@ -122,9 +122,9 @@ class OperatorsTest extends CompilableTestSupport {
     void testBitwiseOperators() {
         // tag::bitwise_op[]
         int a = 0b00101010
-        assert a==42
+        assert a == 42
         int b = 0b00001000
-        assert b==8
+        assert b == 8
         assert (a & a) == a                     // <1>
         assert (a & b) == b                     // <2>
         assert (a | a) == a                     // <3>
@@ -512,7 +512,7 @@ assert function(*args,5,6) == 26
             Long id
             String name
             def asType(Class target) {                                              // <1>
-                if (target==Identifiable) {
+                if (target == Identifiable) {
                     return new Identifiable(name: name)
                 }
                 throw new ClassCastException("User cannot be coerced into $target")


Mime
View raw message