1.1 --- a/samples/codeinjection/src/org/apidesign/codeinjection/CountDownImplV2.java Wed Aug 08 23:09:54 2012 +0200
1.2 +++ b/samples/codeinjection/src/org/apidesign/codeinjection/CountDownImplV2.java Wed Aug 08 23:15:30 2012 +0200
1.3 @@ -27,8 +27,8 @@
1.4
1.5 // BEGIN: codeinjection.v2
1.6 public void down() {
1.7 - Iterator<CountDownExtender> it;
1.8 - it = ServiceLoader.load(CountDownExtender.class).iterator();
1.9 + Iterator<CountDownExtender> it =
1.10 + ServiceLoader.load(CountDownExtender.class).iterator();
1.11 if (it.hasNext()) {
1.12 // injected behaviour
1.13 cnt = it.next().decrement(cnt);