harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r452415 [12/12] - in /incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test: java-internal/java/beans/beancontext/ java-internal/org/apache/harmony/beans/ java/org/apache/harmony/beans/tests/ java/org/apache/harmony/beans/tests/j...
Date Tue, 03 Oct 2006 11:06:03 GMT
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooStop.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooStop.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooStop.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooStop.java
Tue Oct  3 04:05:57 2006
@@ -23,20 +23,20 @@
  * test Introspector
  */
 public class MockFooStop implements Serializable {
-	private String label;
+    private String label;
 
-	/**
-	 * @return Returns the label.
-	 */
-	public String getLabel() {
-		return label;
-	}
+    /**
+     * @return Returns the label.
+     */
+    public String getLabel() {
+        return label;
+    }
 
-	/**
-	 * @param label
-	 *            The label to set.
-	 */
-	public void setLabel(String label) {
-		this.label = label;
-	}
+    /**
+     * @param label
+     *            The label to set.
+     */
+    public void setLabel(String label) {
+        this.label = label;
+    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSub.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSub.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSub.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSub.java
Tue Oct  3 04:05:57 2006
@@ -17,36 +17,37 @@
 
 package org.apache.harmony.beans.tests.support.mock;
 
-
 /**
  * test Introspector
  */
 public class MockFooSub extends MockFooChild {
 
-	private String text;
-
-	/**
-	 * @return Returns the text.
-	 */
-	public String getText() {
-		return text;
-	}
-
-	/**
-	 * @param text
-	 *            The text to set.
-	 */
-	public void setText(String text) {
-		this.text = text;
-	}
-
-	public void addMockPropertyChangeListener(
-			MockPropertyChangeListener listener) {
-
-	}
+    private String text;
 
-	public void removeMockPropertyChangeListener(
-			MockPropertyChangeListener listener) {
+    /**
+     * @return Returns the text.
+     */
+    public String getText() {
+        return text;
+    }
+
+    /**
+     * @param text
+     *            The text to set.
+     */
+    public void setText(String text) {
+        this.text = text;
+    }
+
+    @Override
+    public void addMockPropertyChangeListener(
+            MockPropertyChangeListener listener) {
+
+    }
+
+    @Override
+    public void removeMockPropertyChangeListener(
+            MockPropertyChangeListener listener) {
 
-	}
+    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSubBeanInfo.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSubBeanInfo.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSubBeanInfo.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSubBeanInfo.java
Tue Oct  3 04:05:57 2006
@@ -24,60 +24,62 @@
 import java.beans.SimpleBeanInfo;
 import java.lang.reflect.Method;
 
-
 /**
  * test Introspector
  */
 public class MockFooSubBeanInfo extends SimpleBeanInfo {
 
-	Class clazz = MockFooSub.class;
+    Class clazz = MockFooSub.class;
 
-	String suffix = ".MockFooSubBeanInfo";
+    String suffix = ".MockFooSubBeanInfo";
 
-	public PropertyDescriptor[] getPropertyDescriptors() {
-		PropertyDescriptor[] pds = new PropertyDescriptor[1];
-		try {
-			PropertyDescriptor pd = new PropertyDescriptor("text", clazz);
-			pd.setName(pd.getName() + suffix);
-			pds[0] = pd;
-		} catch (IntrospectionException e) {
-			e.printStackTrace();
-		}
-		return pds;
-	}
-
-	public MethodDescriptor[] getMethodDescriptors() {
-		MethodDescriptor[] mds = new MethodDescriptor[2];
-		try {
-			Method getMethod = clazz.getMethod("getText", (Class[])null);
-			Method setMethod = clazz.getMethod("setText",
-					new Class[] { String.class });
-			mds[0] = new MethodDescriptor(getMethod);
-			mds[0].setName(mds[0].getName() + suffix);
-
-			mds[1] = new MethodDescriptor(setMethod);
-			mds[1].setName(mds[1].getName() + suffix);
-
-		} catch (SecurityException e) {
-			e.printStackTrace();
-		} catch (NoSuchMethodException e) {
-			e.printStackTrace();
-		}
-		return mds;
-	}
-
-	public EventSetDescriptor[] getEventSetDescriptors() {
-		EventSetDescriptor[] esds = new EventSetDescriptor[1];
-		try {
-			EventSetDescriptor esd = new EventSetDescriptor(clazz,
-					"mockPropertyChange", MockPropertyChangeListener.class,
-					"mockPropertyChange");
-			esd.setName(esd.getName() + suffix);
-			esds[0] = esd;
-		} catch (IntrospectionException e) {
-			e.printStackTrace();
-		}
-		return esds;
-	}
+    @Override
+    public PropertyDescriptor[] getPropertyDescriptors() {
+        PropertyDescriptor[] pds = new PropertyDescriptor[1];
+        try {
+            PropertyDescriptor pd = new PropertyDescriptor("text", clazz);
+            pd.setName(pd.getName() + suffix);
+            pds[0] = pd;
+        } catch (IntrospectionException e) {
+            e.printStackTrace();
+        }
+        return pds;
+    }
+
+    @Override
+    public MethodDescriptor[] getMethodDescriptors() {
+        MethodDescriptor[] mds = new MethodDescriptor[2];
+        try {
+            Method getMethod = clazz.getMethod("getText", (Class[]) null);
+            Method setMethod = clazz.getMethod("setText",
+                    new Class[] { String.class });
+            mds[0] = new MethodDescriptor(getMethod);
+            mds[0].setName(mds[0].getName() + suffix);
+
+            mds[1] = new MethodDescriptor(setMethod);
+            mds[1].setName(mds[1].getName() + suffix);
+
+        } catch (SecurityException e) {
+            e.printStackTrace();
+        } catch (NoSuchMethodException e) {
+            e.printStackTrace();
+        }
+        return mds;
+    }
+
+    @Override
+    public EventSetDescriptor[] getEventSetDescriptors() {
+        EventSetDescriptor[] esds = new EventSetDescriptor[1];
+        try {
+            EventSetDescriptor esd = new EventSetDescriptor(clazz,
+                    "mockPropertyChange", MockPropertyChangeListener.class,
+                    "mockPropertyChange");
+            esd.setName(esd.getName() + suffix);
+            esds[0] = esd;
+        } catch (IntrospectionException e) {
+            e.printStackTrace();
+        }
+        return esds;
+    }
 
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSubSub.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSubSub.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSubSub.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSubSub.java
Tue Oct  3 04:05:57 2006
@@ -22,20 +22,20 @@
  */
 public class MockFooSubSub extends MockFooSub {
 
-	private int flags;
+    private int flags;
 
-	/**
-	 * @return Returns the flags.
-	 */
-	public int getFlags() {
-		return flags;
-	}
+    /**
+     * @return Returns the flags.
+     */
+    public int getFlags() {
+        return flags;
+    }
 
-	/**
-	 * @param flags
-	 *            The flags to set.
-	 */
-	public void setFlags(int flags) {
-		this.flags = flags;
-	}
+    /**
+     * @param flags
+     *            The flags to set.
+     */
+    public void setFlags(int flags) {
+        this.flags = flags;
+    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockJavaBean.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockJavaBean.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockJavaBean.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockJavaBean.java
Tue Oct  3 04:05:57 2006
@@ -20,212 +20,212 @@
 import java.io.Serializable;
 
 public class MockJavaBean implements Serializable {
-	/**
-	 * Comment for <code>serialVersionUID</code>
-	 */
-	private static final long serialVersionUID = 1L;
-
-	private String beanName;
-
-	private String propertyOne;
-
-	private Integer propertyTwo;
-
-	private String propertyThree;
-
-	private String[] propertyFour;
-
-	private String[] propertyFive;
-
-	private Integer[] propertySix;
-
-	private String protectedProp;
-
-	public MockJavaBean() {
-		this.beanName = getClass().getName();
-	}
-
-	public MockJavaBean(String beanName) {
-		this.beanName = beanName;
-	}
-
-	/**
-	 * @return Returns the beanName.
-	 */
-	public String getBeanName() {
-		return beanName;
-	}
-
-	/**
-	 * @param beanName
-	 *            The beanName to set.
-	 */
-	public void setBeanName(String beanName) {
-		this.beanName = beanName;
-	}
-
-	/**
-	 * @return Returns the propertyOne.
-	 */
-	public String getPropertyOne() {
-		return propertyOne;
-	}
-
-	/**
-	 * @param propertyOne
-	 *            The propertyOne to set.
-	 */
-	public void setPropertyOne(String propertyOne) {
-		this.propertyOne = propertyOne;
-	}
-
-	/**
-	 * @return Returns the propertyTwo.
-	 */
-	public Integer getPropertyTwo() {
-		return propertyTwo;
-	}
-
-	/**
-	 * @param propertyTwo
-	 *            The propertyTwo to set.
-	 */
-	public void setPropertyTwo(Integer propertyTwo) {
-		this.propertyTwo = propertyTwo;
-	}
-
-	public String invalidGetMethod(String arg) {
-		// for PropertyDescriptorTest: with args
-		return arg;
-	}
-
-	public void invalidGetMethod() {
-		// for PropertyDescriptorTest
-		// return void
-	}
-
-	/**
-	 * @return Returns the propertyThree.
-	 */
-	public String getPropertyThree() {
-		return propertyThree;
-	}
-
-	/**
-	 * @param propertyThree
-	 *            The propertyThree to set.
-	 */
-	public void setPropertyThree(String propertyThree) {
-		this.propertyThree = propertyThree;
-	}
-
-	/**
-	 * @return Returns the propertyFour.
-	 */
-	public String[] getPropertyFour() {
-		return propertyFour;
-	}
-
-	/**
-	 * @param propertyFour
-	 *            The propertyFour to set.
-	 */
-	public void setPropertyFour(String[] propertyFour) {
-		this.propertyFour = propertyFour;
-	}
-
-	public String getPropertyFour(int i) {
-		return getPropertyFour()[i];
-	}
-
-	public void getPropertyFourInvalid(int i) {
-
-	}
-
-	public void setPropertyFour(int i, String value) {
-		propertyFour[i] = value;
-	}
-
-	public void setPropertyFour(int i, int value) {
-		propertyFour[i] = "";
-	}
-
-	public int setPropertyFourInvalid(int i, String value) {
-		return i;
-	}
-
-	public void setPropertyFourInvalid2(String i, String value) {
-		// return i;
-	}
-
-	/**
-	 * @return Returns the propertyFive.
-	 */
-	public String[] getPropertyFive() {
-		return propertyFive;
-	}
-
-	/**
-	 * @param propertyFive
-	 *            The propertyFive to set.
-	 */
-	public void setPropertyFive(String[] propertyFive) {
-		this.propertyFive = propertyFive;
-	}
-
-	public String getPropertyFive(int i) {
-		return getPropertyFive()[i];
-	}
-
-	public void setPropertyFive(int i, String value) {
-		propertyFive[i] = value;
-	}
-
-	/**
-	 * @return Returns the protectedProp.
-	 */
-	protected String getProtectedProp() {
-		return protectedProp;
-	}
-
-	/**
-	 * @param protectedProp
-	 *            The protectedProp to set.
-	 */
-	protected void setProtectedProp(String protectedProp) {
-		this.protectedProp = protectedProp;
-	}
-
-	/**
-	 * @return Returns the propertySix.
-	 */
-	public Integer[] getPropertySix() {
-		return propertySix;
-	}
-
-	public Integer getPropertySix(int i) {
-		return null;
-	}
-
-	/**
-	 * @param propertySix
-	 *            The propertySix to set.
-	 */
-	public void setPropertySix(Integer[] propertySix) {
-		this.propertySix = propertySix;
-	}
-
-	public void setPropertySix(int i, Integer value) {
-
-	}
-
-	public void addMockPropertyChangeListener(
-			MockPropertyChangeListener listener) {
+    /**
+     * Comment for <code>serialVersionUID</code>
+     */
+    private static final long serialVersionUID = 1L;
+
+    private String beanName;
+
+    private String propertyOne;
+
+    private Integer propertyTwo;
+
+    private String propertyThree;
+
+    private String[] propertyFour;
+
+    private String[] propertyFive;
+
+    private Integer[] propertySix;
+
+    private String protectedProp;
+
+    public MockJavaBean() {
+        this.beanName = getClass().getName();
+    }
+
+    public MockJavaBean(String beanName) {
+        this.beanName = beanName;
+    }
+
+    /**
+     * @return Returns the beanName.
+     */
+    public String getBeanName() {
+        return beanName;
+    }
+
+    /**
+     * @param beanName
+     *            The beanName to set.
+     */
+    public void setBeanName(String beanName) {
+        this.beanName = beanName;
+    }
+
+    /**
+     * @return Returns the propertyOne.
+     */
+    public String getPropertyOne() {
+        return propertyOne;
+    }
+
+    /**
+     * @param propertyOne
+     *            The propertyOne to set.
+     */
+    public void setPropertyOne(String propertyOne) {
+        this.propertyOne = propertyOne;
+    }
+
+    /**
+     * @return Returns the propertyTwo.
+     */
+    public Integer getPropertyTwo() {
+        return propertyTwo;
+    }
+
+    /**
+     * @param propertyTwo
+     *            The propertyTwo to set.
+     */
+    public void setPropertyTwo(Integer propertyTwo) {
+        this.propertyTwo = propertyTwo;
+    }
+
+    public String invalidGetMethod(String arg) {
+        // for PropertyDescriptorTest: with args
+        return arg;
+    }
+
+    public void invalidGetMethod() {
+        // for PropertyDescriptorTest
+        // return void
+    }
+
+    /**
+     * @return Returns the propertyThree.
+     */
+    public String getPropertyThree() {
+        return propertyThree;
+    }
+
+    /**
+     * @param propertyThree
+     *            The propertyThree to set.
+     */
+    public void setPropertyThree(String propertyThree) {
+        this.propertyThree = propertyThree;
+    }
+
+    /**
+     * @return Returns the propertyFour.
+     */
+    public String[] getPropertyFour() {
+        return propertyFour;
+    }
+
+    /**
+     * @param propertyFour
+     *            The propertyFour to set.
+     */
+    public void setPropertyFour(String[] propertyFour) {
+        this.propertyFour = propertyFour;
+    }
+
+    public String getPropertyFour(int i) {
+        return getPropertyFour()[i];
+    }
+
+    public void getPropertyFourInvalid(int i) {
+
+    }
+
+    public void setPropertyFour(int i, String value) {
+        propertyFour[i] = value;
+    }
+
+    public void setPropertyFour(int i, int value) {
+        propertyFour[i] = "";
+    }
+
+    public int setPropertyFourInvalid(int i, String value) {
+        return i;
+    }
+
+    public void setPropertyFourInvalid2(String i, String value) {
+        // return i;
+    }
+
+    /**
+     * @return Returns the propertyFive.
+     */
+    public String[] getPropertyFive() {
+        return propertyFive;
+    }
+
+    /**
+     * @param propertyFive
+     *            The propertyFive to set.
+     */
+    public void setPropertyFive(String[] propertyFive) {
+        this.propertyFive = propertyFive;
+    }
+
+    public String getPropertyFive(int i) {
+        return getPropertyFive()[i];
+    }
+
+    public void setPropertyFive(int i, String value) {
+        propertyFive[i] = value;
+    }
+
+    /**
+     * @return Returns the protectedProp.
+     */
+    protected String getProtectedProp() {
+        return protectedProp;
+    }
+
+    /**
+     * @param protectedProp
+     *            The protectedProp to set.
+     */
+    protected void setProtectedProp(String protectedProp) {
+        this.protectedProp = protectedProp;
+    }
+
+    /**
+     * @return Returns the propertySix.
+     */
+    public Integer[] getPropertySix() {
+        return propertySix;
+    }
+
+    public Integer getPropertySix(int i) {
+        return null;
+    }
+
+    /**
+     * @param propertySix
+     *            The propertySix to set.
+     */
+    public void setPropertySix(Integer[] propertySix) {
+        this.propertySix = propertySix;
+    }
+
+    public void setPropertySix(int i, Integer value) {
+
+    }
+
+    public void addMockPropertyChangeListener(
+            MockPropertyChangeListener listener) {
 
-	}
+    }
 
-	public void removeMockPropertyChangeListener(
-			MockPropertyChangeListener listener) {
+    public void removeMockPropertyChangeListener(
+            MockPropertyChangeListener listener) {
 
-	}
+    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeEvent.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeEvent.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeEvent.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeEvent.java
Tue Oct  3 04:05:57 2006
@@ -24,16 +24,16 @@
  */
 public class MockPropertyChangeEvent extends EventObject {
 
-	/**
-	 * Comment for <code>serialVersionUID</code>
-	 */
-	private static final long serialVersionUID = 1L;
+    /**
+     * Comment for <code>serialVersionUID</code>
+     */
+    private static final long serialVersionUID = 1L;
 
-	/**
-	 * @param source
-	 */
-	public MockPropertyChangeEvent(Object source) {
-		super(source);
-	}
+    /**
+     * @param source
+     */
+    public MockPropertyChangeEvent(Object source) {
+        super(source);
+    }
 
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeListener.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeListener.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeListener.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeListener.java
Tue Oct  3 04:05:57 2006
@@ -21,18 +21,18 @@
  * TODO Type description
  */
 public interface MockPropertyChangeListener {
-	/*
-	 * fire MockPropertyChange event.
-	 */
+    /*
+     * fire MockPropertyChange event.
+     */
 
-	public void mockPropertyChange(MockPropertyChangeEvent e);
+    public void mockPropertyChange(MockPropertyChangeEvent e);
 
-	public void mockPropertyChange2(MockPropertyChangeEvent e);
+    public void mockPropertyChange2(MockPropertyChangeEvent e);
 
-	public void mockPropertyChange3(MockPropertyChangeEvent e);
+    public void mockPropertyChange3(MockPropertyChangeEvent e);
 
-	public void mockNotAEventObject(MockFakeEvent event);
+    public void mockNotAEventObject(MockFakeEvent event);
 
-	public void mockPropertyChange_Invalid();
+    public void mockPropertyChange_Invalid();
 
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeListener2.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeListener2.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeListener2.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeListener2.java
Tue Oct  3 04:05:57 2006
@@ -21,9 +21,9 @@
  * test java.beans
  */
 public interface MockPropertyChangeListener2 {
-	/*
-	 * fire MockPropertyChange event.
-	 */
-	public void mockPropertyChange(
-			org.apache.harmony.beans.tests.support.mock.MockPropertyChangeEvent e);
+    /*
+     * fire MockPropertyChange event.
+     */
+    public void mockPropertyChange(
+            org.apache.harmony.beans.tests.support.mock.MockPropertyChangeEvent e);
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/NonSerializedVCListener.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/NonSerializedVCListener.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/NonSerializedVCListener.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/NonSerializedVCListener.java
Tue Oct  3 04:05:57 2006
@@ -26,31 +26,32 @@
  */
 public class NonSerializedVCListener implements VetoableChangeListener {
 
-	String propertyName;
+    String propertyName;
 
-	public NonSerializedVCListener(String propertyName) {
-		this.propertyName = propertyName;
-	}
+    public NonSerializedVCListener(String propertyName) {
+        this.propertyName = propertyName;
+    }
 
-	public boolean equals(Object o) {
-		if (!(o instanceof NonSerializedVCListener)) {
-			return false;
-		}
+    @Override
+    public boolean equals(Object o) {
+        if (!(o instanceof NonSerializedVCListener)) {
+            return false;
+        }
 
-		NonSerializedVCListener other = (NonSerializedVCListener) o;
-		return (this.propertyName == null ? other.propertyName == null
-				: this.propertyName.equals(other.propertyName));
-	}
+        NonSerializedVCListener other = (NonSerializedVCListener) o;
+        return (this.propertyName == null ? other.propertyName == null
+                : this.propertyName.equals(other.propertyName));
+    }
 
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see java.beans.VetoableChangeListener#vetoableChange(java.beans.PropertyChangeEvent)
-	 */
-	public void vetoableChange(PropertyChangeEvent event)
-			throws PropertyVetoException {
-		// TODO Auto-generated method stub
+    /*
+     * (non-Javadoc)
+     * 
+     * @see java.beans.VetoableChangeListener#vetoableChange(java.beans.PropertyChangeEvent)
+     */
+    public void vetoableChange(PropertyChangeEvent event)
+            throws PropertyVetoException {
+        // TODO Auto-generated method stub
 
-	}
+    }
 
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/SerializedVCListener.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/SerializedVCListener.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/SerializedVCListener.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/SerializedVCListener.java
Tue Oct  3 04:05:57 2006
@@ -26,36 +26,37 @@
  * test VetoableChangeSupport
  */
 public class SerializedVCListener implements Serializable,
-		VetoableChangeListener {
+        VetoableChangeListener {
 
-	String propertyName;
+    String propertyName;
 
-	String name;
+    String name;
 
-	public SerializedVCListener(String propertyName) {
-		this.propertyName = propertyName;
-	}
-
-	public boolean equals(Object o) {
-		if (!(o instanceof SerializedVCListener)) {
-			return false;
-		}
-
-		SerializedVCListener other = (SerializedVCListener) o;
-		return ((this.name == null ? other.name == null : this.name
-				.equals(other.name)) && (this.propertyName == null ? other.propertyName == null
-				: this.propertyName.equals(other.propertyName)));
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see java.beans.VetoableChangeListener#vetoableChange(java.beans.PropertyChangeEvent)
-	 */
-	public void vetoableChange(PropertyChangeEvent event)
-			throws PropertyVetoException {
-		// TODO Auto-generated method stub
+    public SerializedVCListener(String propertyName) {
+        this.propertyName = propertyName;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (!(o instanceof SerializedVCListener)) {
+            return false;
+        }
+
+        SerializedVCListener other = (SerializedVCListener) o;
+        return ((this.name == null ? other.name == null : this.name
+                .equals(other.name)) && (this.propertyName == null ? other.propertyName
== null
+                : this.propertyName.equals(other.propertyName)));
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see java.beans.VetoableChangeListener#vetoableChange(java.beans.PropertyChangeEvent)
+     */
+    public void vetoableChange(PropertyChangeEvent event)
+            throws PropertyVetoException {
+        // TODO Auto-generated method stub
 
-	}
+    }
 
 }



Mime
View raw message