try { return Color.decode(name); } catch(NumberFormatException nf) { return defaultColor; }
try { return Integer.parseInt(value.trim()); } catch(NumberFormatException nf) { return def; }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/GUIUtilities.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java
Method name: Color parseColor(String, Color) Method name: int getIntegerProperty(String, int)
Number of AST nodes: 2 Number of AST nodes: 2
1
try
1
try
2
			{
2
			{
3
				return Color.decode(name);
3
				return Integer.parseInt(value.trim());
4
			}
4
			}
5
			catch(NumberFormatException nf)
5
			catch(NumberFormatException nf)
6
			{
6
			{
7
				return defaultColor;
7
				return def;
8
			}
8
			}
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.2
Clones locationClones are in different classes
Number of node comparisons1