
public class ArrayToString {
	
	private static final String[] gargs = new String[] {"1", "2"};
	
	public static void main(String[] args) {
		ArrayToString a = new ArrayToString();
		a.print0(args);
		a.print1();
		a.print2();
		a.print3();
	}
	
	public void print0(String args[]) {
		System.out.println(args.toString());
	}

	public void print1() {
		String [] args2 = new String[] {"Hello", "there"};
		System.out.println(args2.toString());
	}

	public void print2() {
		System.out.println((new String[] {"one","two"}).toString());		
	}

	public void print3() {
		System.out.println(gargs.toString());
	}
}

Test case for the array toString() detector
Test case for the array toString() detector

git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@9118 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
