Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 4 | 2 | 0.996 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 236 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddCustomConstructorOperation.java |
2 | 17 | 238 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddDelegateMethodsOperation.java |
3 | 17 | 383 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddGetterSetterOperation.java |
4 | 18 | 377 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java |
| ||||
final Change result = rewrite.createChange(); if (result instanceof CompilationUnitChange) { final CompilationUnitChange change = (CompilationUnitChange) result; final TextEdit edit = change.getEdit(); if (edit != null) { try { fEdit = edit; if (fApply) edit.apply(document, TextEdit.UPDATE_REGIONS); if (fSave) { if (buffer != null) buffer.commit(new SubProgressMonitor(monitor, 1), true); else unit.getBuffer().setContents(document.get()); } } catch (Exception exception) { throw new CoreException(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), 0, exception.getLocalizedMessage(), exception)); } } } |
| ||||
final Change result = rewrite.createChange(); if (result instanceof CompilationUnitChange) { final CompilationUnitChange change = (CompilationUnitChange) result; final TextEdit edit = change.getEdit(); if (edit != null) { try { fEdit = edit; if (fApply) edit.apply(document, TextEdit.UPDATE_REGIONS); if (fSave) { if (buffer != null) buffer.commit(new SubProgressMonitor(monitor, 1), true); else unit.getBuffer().setContents(document.get()); } } catch (Exception exception) { throw new CoreException(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), 0, exception.getLocalizedMessage(), exception)); } } } |
| ||||
final Change result = rewrite.createChange(); if (result instanceof CompilationUnitChange) { final CompilationUnitChange change = (CompilationUnitChange) result; final TextEdit edit = change.getEdit(); if (edit != null) { try { fEdit = edit; if (fApply) edit.apply(document, TextEdit.UPDATE_REGIONS); if (fSave) { if (buffer != null) buffer.commit(new SubProgressMonitor(monitor, 1), true); else unit.getBuffer().setContents(document.get()); } } catch (Exception exception) { throw new CoreException(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), 0, exception.getLocalizedMessage(), exception)); } } } |
| ||||
// add 'em final Change result = fRewrite.createChange(); if (result instanceof CompilationUnitChange) { final CompilationUnitChange change = (CompilationUnitChange) result; final TextEdit edit = change.getEdit(); if (edit != null) { try { fEdit = edit; if (fApply) edit.apply(document, TextEdit.UPDATE_REGIONS); if (fSave) { if (buffer != null) buffer.commit(new SubProgressMonitor(monitor, 1), true); else cu.getBuffer().setContents(document.get()); } } catch (Exception exception) { throw new CoreException(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), 0, exception.getLocalizedMessage(), exception )); } } } |
| |||
// add 'em final Change result = [[#variablea35aaa40]].createChange(); if (result instanceof CompilationUnitChange) { final CompilationUnitChange change = (CompilationUnitChange) result; final TextEdit edit = change.getEdit(); if (edit != null) { try { fEdit = edit; if (fApply) edit.apply(document, TextEdit.UPDATE_REGIONS); if (fSave) { if (buffer != null) buffer.commit(new SubProgressMonitor(monitor, 1), true); else [[#variablea35aa8c0]].getBuffer().setContents(document.get()); } } catch (Exception exception) { throw new CoreException(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), 0, exception.getLocalizedMessage(), exception)); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a35aaa40]] | rewrite |
1 | 2 | [[#a35aaa40]] | fRewrite |
1 | 3 | [[#a35aaa40]] | rewrite |
1 | 4 | [[#a35aaa40]] | rewrite |
2 | 1 | [[#a35aa8c0]] | unit |
2 | 2 | [[#a35aa8c0]] | cu |
2 | 3 | [[#a35aa8c0]] | unit |
2 | 4 | [[#a35aa8c0]] | unit |