Browse Source

Code formatting in test cases

master
Gintas Grigelionis 7 years ago
parent
commit
5566a8e5ee
3 changed files with 7 additions and 8 deletions
  1. +7
    -3
      src/etc/testcases/taskdefs/javadoc/java/ClassToJavadoc.java
  2. +0
    -4
      src/etc/testcases/taskdefs/rmic/src/AntTimestamp.java
  3. +0
    -1
      src/etc/testcases/taskdefs/rmic/src/RemoteTimestampImpl.java

+ 7
- 3
src/etc/testcases/taskdefs/javadoc/java/ClassToJavadoc.java View File

@@ -25,15 +25,19 @@ public class ClassToJavadoc {
/** /**
* @param anArgument A String that is ignored * @param anArgument A String that is ignored
*/ */
public void methodToJavadoc(String anArgument) { }
public void methodToJavadoc(String anArgument) {}


/** /**
* @see java.lang.Object#toString() * @see java.lang.Object#toString()
*/ */
public String toString() { return this.getClass().getName(); }
public String toString() {
return this.getClass().getName();
}


/** /**
* @return An arbitrary string. * @return An arbitrary string.
*/ */
public String anotherString() {return "An arbitrary string.";}
public String anotherString() {
return "An arbitrary string.";
}
} }

+ 0
- 4
src/etc/testcases/taskdefs/rmic/src/AntTimestamp.java View File

@@ -14,21 +14,17 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import java.rmi.Remote;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.util.Calendar; import java.util.Calendar;


import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.util.DateUtils; import org.apache.tools.ant.util.DateUtils;



/** /**
* This class imports a dependency on the Ant runtime classes, * This class imports a dependency on the Ant runtime classes,
* so tests that classpath setup include them * so tests that classpath setup include them
*/ */
public class AntTimestamp implements RemoteTimestamp { public class AntTimestamp implements RemoteTimestamp {



/** /**
* return the phase of the moon. * return the phase of the moon.
* Note the completely different semantics of the other implementation, * Note the completely different semantics of the other implementation,


+ 0
- 1
src/etc/testcases/taskdefs/rmic/src/RemoteTimestampImpl.java View File

@@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import java.rmi.Remote;
import java.rmi.RemoteException; import java.rmi.RemoteException;


/** /**


Loading…
Cancel
Save