Commit 7d86987b authored by Lukáš Marek's avatar Lukáš Marek
Browse files

Small args test cleanup

parent ea96185a
......@@ -3,45 +3,32 @@ package ch.usi.dag.disl.test.args;
public class TargetClass {
public static final int UNINITIALIZED = -1;
@SuppressWarnings("unused")
private int numberOfArgs = UNINITIALIZED;
public void method1() {
System.out.println("This is the body of TargetClass.method1");
}
public void method2(int i, long l, float d) {
System.out.println("This is the body of TargetClass.method2");
}
public void method3(Object obj, String string) {
System.out.println("This is the body of TargetClass.method3");
}
public void method3(long l, double d, Object obj) {
System.out.println("This is the body of TargetClass.method3-1");
}
public void method4(String[] sa, int[] ia) {
System.out.println("This is the body of TargetClass.method4");
}
public void setArgs(int num)
{
this.numberOfArgs = num;
}
private static boolean isValidChar(char c)
{
return Character.isJavaIdentifierPart(c);
}
private static boolean isValidChar(char c) {
return Character.isJavaIdentifierPart(c);
}
public static void main(String[] args) {
TargetClass t = new TargetClass();
t.method1();
t.method2(1, 2, 3);
......@@ -49,8 +36,7 @@ public class TargetClass {
t.method3("object2", "string2");
t.method3(t, "THIS IS THE REF TO THIS");
t.method3(1, 2, "object");
t.method4(new String[] {"hello"}, new int[] {1,2,3,4,5});
t.setArgs(100);
t.method4(new String[] { "hello" }, new int[] { 1, 2, 3, 4, 5 });
TargetClass.isValidChar('c');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment