groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] 05/10: minor refactor: formatting
Date Tue, 14 May 2019 05:56:57 GMT
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

commit 28588c044409305a05cb0e085f84cdcee85d1178
Author: Paul King <paulk@asert.com.au>
AuthorDate: Tue May 14 15:00:14 2019 +1000

    minor refactor: formatting
---
 .../main/java/org/codehaus/groovy/runtime/ScriptTestAdapter.java    | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/subprojects/groovy-test/src/main/java/org/codehaus/groovy/runtime/ScriptTestAdapter.java
b/subprojects/groovy-test/src/main/java/org/codehaus/groovy/runtime/ScriptTestAdapter.java
index 4ac075f..5595da8 100644
--- a/subprojects/groovy-test/src/main/java/org/codehaus/groovy/runtime/ScriptTestAdapter.java
+++ b/subprojects/groovy-test/src/main/java/org/codehaus/groovy/runtime/ScriptTestAdapter.java
@@ -23,7 +23,6 @@ import junit.framework.TestResult;
 
 /**
  * An adapter to make any Groovy Script class an instance of a JUnit Test
- *
  */
 public class ScriptTestAdapter implements Test {
     private Class scriptClass;
@@ -42,11 +41,10 @@ public class ScriptTestAdapter implements Test {
         try {
             result.startTest(this);
 
-            // lets run the script
+            // let's run the script
             InvokerHelper.runScript(scriptClass, arguments);
             result.endTest(this);
-        }
-        catch (Exception e) {
+        } catch (Exception e) {
             result.addError(this, e);
         }
     }


Mime
View raw message