ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gin...@apache.org
Subject ant git commit: Code formatting in test cases
Date Fri, 10 Aug 2018 07:44:23 GMT
Repository: ant
Updated Branches:
  refs/heads/master c9ca84fd5 -> 5566a8e5e


Code formatting in test cases

Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/5566a8e5
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/5566a8e5
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/5566a8e5

Branch: refs/heads/master
Commit: 5566a8e5eeb252e43f4b38ed556d2e2e6d4f0777
Parents: c9ca84f
Author: Gintas Grigelionis <gintas@apache.org>
Authored: Fri Aug 10 09:44:53 2018 +0200
Committer: Gintas Grigelionis <gintas@apache.org>
Committed: Fri Aug 10 09:44:53 2018 +0200

----------------------------------------------------------------------
 .../testcases/taskdefs/javadoc/java/ClassToJavadoc.java   | 10 +++++++---
 src/etc/testcases/taskdefs/rmic/src/AntTimestamp.java     |  4 ----
 .../testcases/taskdefs/rmic/src/RemoteTimestampImpl.java  |  1 -
 3 files changed, 7 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/5566a8e5/src/etc/testcases/taskdefs/javadoc/java/ClassToJavadoc.java
----------------------------------------------------------------------
diff --git a/src/etc/testcases/taskdefs/javadoc/java/ClassToJavadoc.java b/src/etc/testcases/taskdefs/javadoc/java/ClassToJavadoc.java
index bd8cab6..f43734f 100644
--- a/src/etc/testcases/taskdefs/javadoc/java/ClassToJavadoc.java
+++ b/src/etc/testcases/taskdefs/javadoc/java/ClassToJavadoc.java
@@ -25,15 +25,19 @@ public class ClassToJavadoc {
     /**
      * @param anArgument A String that is ignored
      */
-    public void methodToJavadoc(String anArgument) { }
+    public void methodToJavadoc(String anArgument) {}
 
     /**
      * @see java.lang.Object#toString()
      */
-    public String toString() { return this.getClass().getName(); }
+    public String toString() {
+        return this.getClass().getName();
+    }
 
     /**
      * @return An arbitrary string.
      */
-    public String anotherString() {return "An arbitrary string.";}
+    public String anotherString() {
+        return "An arbitrary string.";
+    }
 }

http://git-wip-us.apache.org/repos/asf/ant/blob/5566a8e5/src/etc/testcases/taskdefs/rmic/src/AntTimestamp.java
----------------------------------------------------------------------
diff --git a/src/etc/testcases/taskdefs/rmic/src/AntTimestamp.java b/src/etc/testcases/taskdefs/rmic/src/AntTimestamp.java
index 579d2ed..3929b8a 100644
--- a/src/etc/testcases/taskdefs/rmic/src/AntTimestamp.java
+++ b/src/etc/testcases/taskdefs/rmic/src/AntTimestamp.java
@@ -14,21 +14,17 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
-import java.rmi.Remote;
 import java.rmi.RemoteException;
 import java.util.Calendar;
 
-import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.util.DateUtils;
 
-
 /**
  * This class imports a dependency on the Ant runtime classes,
  * so tests that classpath setup include them
  */
 public class AntTimestamp implements RemoteTimestamp {
 
-
     /**
      * return the phase of the moon.
      * Note the completely different semantics of the other implementation,

http://git-wip-us.apache.org/repos/asf/ant/blob/5566a8e5/src/etc/testcases/taskdefs/rmic/src/RemoteTimestampImpl.java
----------------------------------------------------------------------
diff --git a/src/etc/testcases/taskdefs/rmic/src/RemoteTimestampImpl.java b/src/etc/testcases/taskdefs/rmic/src/RemoteTimestampImpl.java
index f361452..bc8fb19 100644
--- a/src/etc/testcases/taskdefs/rmic/src/RemoteTimestampImpl.java
+++ b/src/etc/testcases/taskdefs/rmic/src/RemoteTimestampImpl.java
@@ -14,7 +14,6 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
-import java.rmi.Remote;
 import java.rmi.RemoteException;
 
 /**


Mime
View raw message