package net.jhorstmann.propertychangesupport;

import net.jhorstmann.propertychangesupport.api.PropertyChangeSupport;

@PropertyChangeSupport
public class ImageBean {

    private String href;
    private String alt;
    private int width;
    private int height;

    public ImageBean() {
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getHref() {
        return href;
    }

    public void setAlt(String alt) {
        String tmp = this.alt;
        this.alt = alt;
        if (Math.random()==0.0) {
             return;
        } else {
            System.out.println( tmp);
        }

    }

    public String getAlt() {
        return alt;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getWidth() {
        return width;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getHeight() {
        return height;
    }
}

@@ -469,26 +469,19 @@
     
-String tmp = this.
+this.alt = 
 alt;
@@ -481,38 +481,70 @@
  = alt;%0A    
+%7D%0A%0A
     
-this.alt =
+public String getAlt() %7B%0A        return
  alt;%0A      
@@ -545,75 +545,98 @@
     
+%7D%0A%0A
     
-if (Math.random()==0.0) %7B%0A             return;%0A        %7D else %7B
+public void setWidth(int width) %7B%0A        String before = %22before : %22 + this.width;
 %0A   
@@ -640,20 +640,16 @@
         
-    
 System.o
@@ -663,12 +663,14 @@
 tln(
- tmp
+before
 );%0A 
@@ -680,111 +680,77 @@
     
-%7D%0A
+this.width = width;
 %0A    
-%7D%0A%0A
     
-public String getAlt() %7B%0A        return alt;%0A    %7D%0A%0A    public void setWidth(int 
+String after  = %22after  : %22 + this.
 width
-) %7B
+;
 %0A   
@@ -754,34 +754,41 @@
         
-this.width = width
+System.out.println(after)
 ;%0A    %7D%0A

Clean up ImageBean, test what happens when there are other local variables