diff options
author | acolyer <acolyer> | 2004-12-16 11:04:19 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-12-16 11:04:19 +0000 |
commit | ee0b12f950c0c24acf8df868e529385aec523c06 (patch) | |
tree | 846bd7e6e668e8608ca146586fca1cefa14ffa32 /tests/java5/varargs | |
parent | ded1a744fc4a518275dbb4fcfa219939ae48ad11 (diff) | |
download | aspectj-ee0b12f950c0c24acf8df868e529385aec523c06.tar.gz aspectj-ee0b12f950c0c24acf8df868e529385aec523c06.zip |
it is now safe to short-circuit in and/or pc matching (all side-effects removed)
Diffstat (limited to 'tests/java5/varargs')
-rw-r--r-- | tests/java5/varargs/SimpleVarargs.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/java5/varargs/SimpleVarargs.java b/tests/java5/varargs/SimpleVarargs.java index bcd1e1bdf..c32047ab6 100644 --- a/tests/java5/varargs/SimpleVarargs.java +++ b/tests/java5/varargs/SimpleVarargs.java @@ -2,12 +2,17 @@ public class SimpleVarargs { public SimpleVarargs(Integer... strings) {} - public void foo(Integer... strings) { } + public void foo(Integer... strings) { + moo(); + } //public void bar(Integer[] array) { } - public void fooInt(int i,Integer... strings) {} + public void fooInt(int i,Integer... strings) { + moo(); + } + private void moo() {} //public void barInt(int i,Integer[] strings) {} public static void main(String[] argv) { |