public class DimensionWrapperBeanInfo extends SimpleBeanInfo { /** * See http://tinyurl.com/63no6t for discussion of the proper thread-safe way to implement * getPropertyDescriptors(). * * @see java.beans.SimpleBeanInfo#getPropertyDescriptors() */ @Override public PropertyDescriptor[] getPropertyDescriptors() { try { PropertyDescriptor[] result = new PropertyDescriptor[2]; result[0] = new PropertyDescriptor(DimensionWrapper.IPropertyNames.WIDTH, DimensionWrapper.class, "getWidth", "setWidth"); result[1] = new PropertyDescriptor(DimensionWrapper.IPropertyNames.HEIGHT, DimensionWrapper.class, "getHeight", "setHeight"); return result; } catch (IntrospectionException e) { throw new Error(e)
public class PointWrapperBeanInfo extends SimpleBeanInfo { /** * See http://tinyurl.com/63no6t for discussion of the proper thread-safe way to implement * getPropertyDescriptors(). * * @see java.beans.SimpleBeanInfo#getPropertyDescriptors() */ @Override public PropertyDescriptor[] getPropertyDescriptors() { try { PropertyDescriptor[] result = new PropertyDescriptor[2]; result[0] = new PropertyDescriptor( PointWrapper.IPropertyNames.X, PointWrapper.class, "getX", "setX"); result[1] = new PropertyDescriptor( PointWrapper.IPropertyNames.Y, PointWrapper.class, "getY", "setY"); return result; } catch (IntrospectionException e) { throw new Error(e)
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/beanwrapper/DimensionWrapperBeanInfo.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/beanwrapper/PointWrapperBeanInfo.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class DimensionWrapperBeanInfo extends SimpleBeanInfo
1
public class PointWrapperBeanInfo extends SimpleBeanInfo
2
{
2
{
3
	
3
	/**
4
	/**
4
	 * See http://tinyurl.com/63no6t for discussion of the proper thread-safe way to implement
5
	 * See http://tinyurl.com/63no6t for discussion of the proper thread-safe way to implement
5
	 * getPropertyDescriptors().
6
	 * getPropertyDescriptors().
6
	 * 
7
	 * 
7
	 * @see java.beans.SimpleBeanInfo#getPropertyDescriptors()
8
	 * @see java.beans.SimpleBeanInfo#getPropertyDescriptors()
8
	 */
9
	 */
9
	@Override
10
	@Override
10
	public PropertyDescriptor[] getPropertyDescriptors()
11
	public PropertyDescriptor[] getPropertyDescriptors()
11
	{
12
	{
12
		try
13
		try
13
		{
14
 {
14
			PropertyDescriptor[] result = new PropertyDescriptor[2];
15
			PropertyDescriptor[] result = new PropertyDescriptor[2];
15
			result[0] =
16
			result[0] =
16
				new PropertyDescriptor(Dimension
17
				new PropertyDescriptor(
17
Wrapper.IPropertyNames.WIDTH, Dimension
18
					PointWrapper.IPropertyNames.X,
18
Wrapper.class, "getWidth
19
					PointWrapper.class,
19
",
20
					"getX",
20
					"setWidth");
21
					"setX");
21
			result[1] =
22
			result[1] =
22
				new PropertyDescriptor(Dimension
23
				new PropertyDescriptor(
23
Wrapper.IPropertyNames.HEIGHT, Dimension
24
					PointWrapper.IPropertyNames.Y,
24
Wrapper.class,
25
					PointWrapper.class,
25
					"getHeight", "setHeight
26
					"getY",
26
");
27
					"setY");
27
			return result;
28
			return result;
28
		}
29
		}
29
		catch (IntrospectionException e)
30
 catch (IntrospectionException e)
30
		{
31
 {
31
			throw new Error(e)
32
			throw new Error(e)
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0