flushInput(); overwriteCount = 1; lastWasOverwrite = true; append("\ntextArea.setSelectedText(\"" + charStr);
Log.log(Log.ERROR,this,"Plugin has properties but does not extend EditPlugin: " + className); breakPlugin(); return;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/Macros.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/PluginJAR.java
Method name: void recordInput(String, boolean) Method name: void activatePlugin()
Number of AST nodes: 4 Number of AST nodes: 3
1
flushInput();
2
					overwriteCount = 1;
3
					lastWasOverwrite = true;
4
					append("\ntextArea.setSelectedText(\"" + charStr)
1
Log.log(Log.ERROR,this,"Plugin has properties but does not extend EditPlugin: "
2
					+ className);
3
				breakPlugin();
5
;
4
				return;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons7
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    6
    flushInput();
    6
    flushInput();
    13
    breakPlugin();
    Differences
    Expression1Expression2Difference
    flushInputbreakPluginMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression flushInput() is a void method call, and thus it cannot be parameterized
    Expression breakPlugin() is a void method call, and thus it cannot be parameterized
    13
    breakPlugin();
    7
    overwriteCount = 1;
                                            
    8
    lastWasOverwrite = true;
                                                      
    9
    append("\ntextArea.setSelectedText(\"" + charStr);
    9
    append("\ntextArea.setSelectedText(\"" + charStr);
    12
    Log.log(Log.ERROR, this, "Plugin has properties but does not extend EditPlugin: " + className);
    Differences
    Expression1Expression2Difference
    appendlogMETHOD_INVOCATION_NAME_MISMATCH
    append("\ntextArea.setSelectedText(\"" + charStr)Log.log(Log.ERROR,this,"Plugin has properties but does not extend EditPlugin: " + className)ARGUMENT_NUMBER_MISMATCH
    LogMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression append("\ntextArea.setSelectedText(\"" + charStr) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method append
    Expression append("\ntextArea.setSelectedText(\"" + charStr) is a void method call, and thus it cannot be parameterized
    Expression Log.log(Log.ERROR,this,"Plugin has properties but does not extend EditPlugin: " + className) is a void method call, and thus it cannot be parameterized
    Expression append("\ntextArea.setSelectedText(\"" + charStr) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method append
    Expression append("\ntextArea.setSelectedText(\"" + charStr) is a void method call, and thus it cannot be parameterized
    Expression Log.log(Log.ERROR,this,"Plugin has properties but does not extend EditPlugin: " + className) is a void method call, and thus it cannot be parameterized
    12
    Log.log(Log.ERROR, this, "Plugin has properties but does not extend EditPlugin: " + className);
                          
    14
    return;
    Preondition Violations
    Unmatched return;
    14
    return;
    Precondition Violations (9)
    Row Violation
    1Expression flushInput() is a void method call, and thus it cannot be parameterized
    2Expression breakPlugin() is a void method call, and thus it cannot be parameterized
    3Expression append("\ntextArea.setSelectedText(\"" + charStr) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression append("\ntextArea.setSelectedText(\"" + charStr) is a void method call, and thus it cannot be parameterized
    5Expression Log.log(Log.ERROR,this,"Plugin has properties but does not extend EditPlugin: " + className) is a void method call, and thus it cannot be parameterized
    6Expression append("\ntextArea.setSelectedText(\"" + charStr) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression append("\ntextArea.setSelectedText(\"" + charStr) is a void method call, and thus it cannot be parameterized
    8Expression Log.log(Log.ERROR,this,"Plugin has properties but does not extend EditPlugin: " + className) is a void method call, and thus it cannot be parameterized
    9Unmatched return;