You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2019/04/04 21:38:58 UTC

[groovy] branch master updated: minor refactor: remove some codenarc violations (part 5)

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new c9c75c5  minor refactor: remove some codenarc violations (part 5)
c9c75c5 is described below

commit c9c75c564c0842848b2fd2dc6f1743b0f24ab93e
Author: Paul King <pa...@asert.com.au>
AuthorDate: Fri Apr 5 07:38:39 2019 +1000

    minor refactor: remove some codenarc violations (part 5)
---
 src/test/gls/ch06/s05/GName1Test.groovy   | 14 ++++----
 src/test/groovy/bugs/Groovy2801Bug.groovy | 60 +++++++++++++++----------------
 2 files changed, 37 insertions(+), 37 deletions(-)

diff --git a/src/test/gls/ch06/s05/GName1Test.groovy b/src/test/gls/ch06/s05/GName1Test.groovy
index 9524569..3c3e871 100644
--- a/src/test/gls/ch06/s05/GName1Test.groovy
+++ b/src/test/gls/ch06/s05/GName1Test.groovy
@@ -16,14 +16,14 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package gls.ch06.s05;
+package gls.ch06.s05
 
-import gls.ch06.s05.testClasses.Tt1cgi;
-import gls.ch06.s05.testClasses.Tt1cgo;
-import gls.ch06.s05.testClasses.Tt1gi;
-import gls.ch06.s05.testClasses.Tt1go;
-import gls.ch06.s05.testClasses.Tt1;
-import gls.ch06.s05.testClasses.Tt1c;
+import gls.ch06.s05.testClasses.Tt1cgi
+import gls.ch06.s05.testClasses.Tt1cgo
+import gls.ch06.s05.testClasses.Tt1gi
+import gls.ch06.s05.testClasses.Tt1go
+import gls.ch06.s05.testClasses.Tt1
+import gls.ch06.s05.testClasses.Tt1c
 
 class GName1Test extends GroovyTestCase {
   void testObjectSupportNameHandling() {
diff --git a/src/test/groovy/bugs/Groovy2801Bug.groovy b/src/test/groovy/bugs/Groovy2801Bug.groovy
index 7f9704a..ebaa363 100644
--- a/src/test/groovy/bugs/Groovy2801Bug.groovy
+++ b/src/test/groovy/bugs/Groovy2801Bug.groovy
@@ -1,30 +1,30 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-package groovy.bugs
-
-class Groovy2801Bug extends GroovyTestCase {
-    def void testOverrideToStringInMapOfClosures() {
-        def proxyImpl = [foo: { "Foo!" }, toString: { "overridden." }] as IGroovy2801Bug
-        assert proxyImpl.toString() == "overridden."
-    }
-}
-
-interface IGroovy2801Bug {
-   String foo()
-}
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package groovy.bugs
+
+class Groovy2801Bug extends GroovyTestCase {
+    void testOverrideToStringInMapOfClosures() {
+        def proxyImpl = [foo: { "Foo!" }, toString: { "overridden." }] as IGroovy2801Bug
+        assert proxyImpl.toString() == "overridden."
+    }
+}
+
+interface IGroovy2801Bug {
+   String foo()
+}