samples/openfixed/src/org/apidesign/openfixed/PostEventSupport.java
changeset 375 3abae898011d
parent 374 35da2d439e3d
child 395 837ae5b09036
     1.1 --- a/samples/openfixed/src/org/apidesign/openfixed/PostEventSupport.java	Sun Mar 20 18:52:47 2011 +0100
     1.2 +++ b/samples/openfixed/src/org/apidesign/openfixed/PostEventSupport.java	Sun Mar 20 20:52:33 2011 +0100
     1.3 @@ -48,8 +48,10 @@
     1.4              pending = deliverables.toArray(new Deliverable[0]);
     1.5              deliverables.clear();
     1.6          }
     1.7 +        // BEGIN: openfixed.postimpl
     1.8          Calculator calc = null;
     1.9 -        Set<PostModificationListener> notify = new HashSet<PostModificationListener>();
    1.10 +        Set<PostModificationListener> notify;
    1.11 +        notify = new HashSet<PostModificationListener>();
    1.12          int pendingCount = pending.length;
    1.13          for (Deliverable d : pending) {
    1.14              calc = (Calculator)d.ev.getSource();
    1.15 @@ -60,10 +62,10 @@
    1.16              }
    1.17              d.ev.posts = null;
    1.18          }
    1.19 -        
    1.20          for (PostModificationListener pml : notify) {
    1.21              pml.postProcess(new PostModificationEvent(calc));
    1.22          }
    1.23 +        // END: openfixed.postimpl
    1.24      }
    1.25      
    1.26      private static class Deliverable {