CloneSet1610


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15220.969statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115182
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/PropertiesFileCorrectionAssistant.java
215117
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/PropertiesFileCorrectionProcessor.java
Clone Instance
1
Line Count
15
Source Line
182
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/PropertiesFileCorrectionAssistant.java

                IAnnotationModel model = null;
                IEditorInput input = fEditor.getEditorInput();
                if ( !(input instanceof IStorageEditorInput))
                        return -1;

                ITextFileBufferManager manager = FileBuffers.getTextFileBufferManager();
                IPath path = null;
                try {
                        path = ((IStorageEditorInput) input).getStorage().getFullPath();
                        if (path == null)
                                return -1;
                        manager.connect(path, null);
                } catch (CoreException e) {
                        JavaPlugin.log(e.getStatus());
                        return -1;
                  }


Clone Instance
2
Line Count
15
Source Line
117
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/PropertiesFileCorrectionProcessor.java

                IAnnotationModel model = null;
                IEditorInput input = part.getEditorInput();
                if ( !(input instanceof IStorageEditorInput))
                        return null;

                ITextFileBufferManager manager = FileBuffers.getTextFileBufferManager();
                IPath path = null;
                try {
                        path = ((IStorageEditorInput) input).getStorage().getFullPath();
                        if (path == null)
                                return null;
                        manager.connect(path, null);
                } catch (CoreException e) {
                        JavaPlugin.log(e.getStatus());
                        return null;
                  }


Clone AbstractionParameter Count: 2Parameter Bindings

IAnnotationModel model = null;
IEditorInput input = [[#variableb4a04a20]].getEditorInput();
if ( !(input instanceof IStorageEditorInput))
  return [[#variableb4a048e0]];
ITextFileBufferManager manager = FileBuffers.getTextFileBufferManager();
IPath path = null;
try {
  path = ((IStorageEditorInput) input).getStorage().getFullPath();
  if (path == null)
    return [[#variableb4a048e0]];
  manager.connect(path, null);
}
catch (CoreException e) {
  JavaPlugin.log(e.getStatus());
  return [[#variableb4a048e0]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b4a04a20]]
fEditor 
12[[#b4a04a20]]
part 
21[[#b4a048e0]]
-1 
22[[#b4a048e0]]
null