public class UidIdentifierBeanInfo 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[1]; result[0] = new PropertyDescriptor( UidIdentifier.IPropertyNames.STRING, UidIdentifier.class, "toString", "setString"); return result; } catch (IntrospectionException e) { throw new Error(e)
public class URLWrapperBeanInfo 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[] s_descriptors = new PropertyDescriptor[1]; s_descriptors[0] = new PropertyDescriptor(URLWrapper.IURLWrapperPropertyNames.URL, URLWrapper.class, "getExternalForm", "setExternalForm"); return s_descriptors; } catch (IntrospectionException e) { throw new Error(e)
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/id/UidIdentifierBeanInfo.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/beanwrapper/URLWrapperBeanInfo.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class UidIdentifierBeanInfo extends SimpleBeanInfo
1
public class URLWrapperBeanInfo extends SimpleBeanInfo
2
{
2
{
3
	/**
3
	/**
4
	 * See http://tinyurl.com/63no6t for discussion of the proper thread-safe way to implement
4
	 * See http://tinyurl.com/63no6t for discussion of the proper thread-safe way to implement
5
	 * getPropertyDescriptors().
5
	 * getPropertyDescriptors().
6
	 * 
6
	 * 
7
	 * @see java.beans.SimpleBeanInfo#getPropertyDescriptors()
7
	 * @see java.beans.SimpleBeanInfo#getPropertyDescriptors()
8
	 */
8
	 */
9
	@Override		
9
	@Override
10
	public PropertyDescriptor[] getPropertyDescriptors()
10
	public PropertyDescriptor[] getPropertyDescriptors()
11
	{
11
	{
12
		try
12
		try
13
		{
13
		{
14
			PropertyDescriptor[] result = new PropertyDescriptor[1];
14
			PropertyDescriptor[] s_descriptors = new PropertyDescriptor[1];
15
			result[0] =
15
			s_descriptors[0] =
16
				new PropertyDescriptor(
16
				new PropertyDescriptor(
17
					UidIdentifier.IPropertyNames.STRING,
18
					UidIdentifier.class,
19
					"toString",
20
					"setString");
21
			
22
			return result
17
URLWrapper.IURLWrapperPropertyNames.URL, URLWrapper.class,
18
					"getExternalForm", "setExternalForm");
23
;
19
			return s_descriptors;
24
		}
20
		}
25
		catch (IntrospectionException e)
21
		catch (IntrospectionException e)
26
		{
22
		{
27
			throw new Error(e)
23
			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