1.1 --- a/samples/codeinjection/src/org/apidesign/codeinjection/CountDownImplV2.java Sat Jan 10 21:29:22 2009 +0100
1.2 +++ b/samples/codeinjection/src/org/apidesign/codeinjection/CountDownImplV2.java Sat Jan 10 21:50:30 2009 +0100
1.3 @@ -27,7 +27,8 @@
1.4
1.5 // BEGIN: codeinjection.v2
1.6 public void down() {
1.7 - Iterator<CountDownExtender> it = ServiceLoader.load(CountDownExtender.class).iterator();
1.8 + Iterator<CountDownExtender> it;
1.9 + it = ServiceLoader.load(CountDownExtender.class).iterator();
1.10 if (it.hasNext()) {
1.11 // injected behaviour
1.12 cnt = it.next().decrement(cnt);