Closed Caij closed 4 years ago
可变参数可以当做初数组处理,例如:
private void testVargs(String... args) { System.out.println(args); }
<Insert> <BeforeMethodExecution> <Source>void com.didichuxing.tools.test.MainActivity.testVargs(String[])</Source> <Target>{java.lang.System.out.println("insert before test(String[])");}</Target> </BeforeMethodExecution> </Insert>
private void testVargs(String... args) { System.out.println("insert before test(String[])"); System.out.println(args); }
thanks
可变参数可以当做初数组处理,例如: