try { ch = KeyEvent.class.getField("VK_".concat(key)) .getInt(null); } catch(Exception e) { Log.log(Log.ERROR,DefaultInputHandler.class, "Invalid key stroke: " + keyStroke); return null;
try { ch = KeyEvent.class.getField("VK_".concat(key)) .getInt(null); } catch(Exception e) { Log.log(Log.ERROR,DefaultInputHandler.class, "Invalid key stroke: " + keyStroke); return null;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/DefaultInputHandler.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/KeyEventTranslator.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
try
1
try
2
			{
2
			{
3
				ch = KeyEvent.class.getField("VK_".concat(key))
3
				ch = KeyEvent.class.getField("VK_".concat(key))
4
					.getInt(null);
4
					.getInt(null);
5
			}
5
			}
6
			catch(Exception e)
6
			catch(Exception e)
7
			{
7
			{
8
				Log.log(Log.ERROR,DefaultInputHandler.class,
8
				Log.log(Log.ERROR,DefaultInputHandler.class,
9
					"Invalid key stroke: "
9
					"Invalid key stroke: "
10
					+ keyStroke);
10
					+ keyStroke);
11
				return null;
11
				return null;
12
			
12
			
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