rwheeler7864 / google-web-toolkit-doc-1-5

Automatically exported from code.google.com/p/google-web-toolkit-doc-1-5
0 stars 0 forks source link

Sample code buggy in Programming Delayed Logic #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
On the doc page:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-tool
kit-doc-1-5&t=DevGuideDeferredCommand

1. Missing closing parenthesis ans semicolon:

    button.addClickListener(new ClickListener () {
      public void onClick(Widget sender) {
       doWorkIncremental();
      }
    }
  Should be:
    button.addClickListener(new ClickListener () {
      public void onClick(Widget sender) {
       doWorkIncremental();
      }
    });

2. Missing field:
    IncrementalCommand ic = new IncrementalCommand(){
      int counter = 0;

  Should be
    IncrementalCommand ic = new IncrementalCommand(){
      int counter = 0;
      int result = 0;

Original issue reported on code.google.com by reuben.sivan on 28 Nov 2008 at 11:21