CloneSet2211


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.977class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111601
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java
211308
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/OptionsConfigurationBlock.java
Clone Instance
1
Line Count
11
Source Line
601
Source File
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java

        /**
         * TODO: this method is a workaround for Bugzilla 111144 and 106111.  When
         * 111144 is fixed, remove this method and call hasProjectSpecificOptions() 
         * instead.  The difference is that this one does not cause project prefs nodes
         * to be cached in the WorkingCopyManager.
         * @return true if the project has project-specific options.
         */
        public boolean hasProjectSpecificOptionsNoCache(IProject project) {
                if (project != null) {
                        IScopeContext projectContext = new ProjectScope(project);
                        Key[] allKeys = fAllKeys;
                        for (int i = 0; i < allKeys.length; i++) {
                                if (allKeys[i].getStoredValue(projectContext, null) != null) {
                                        return true;
                                }
                        }
                }
                return false;
        }


Clone Instance
2
Line Count
11
Source Line
308
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/OptionsConfigurationBlock.java

        public final boolean hasProjectSpecificOptions(IProject project) {
                if (project != null) {
                        IScopeContext projectContext = new ProjectScope(project);
                        Key[] allKeys = fAllKeys;
                        for (int i = 0; i < allKeys.length; i++) {
                                if (allKeys[i].getStoredValue(projectContext, fManager) != null) {
                                        return true;
                                }
                        }
                }
                return false;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

 [[#variable58f1fec0]]boolean  [[#variable58f1fe60]](IProject project) {
  if (project != null) {
    IScopeContext projectContext = new ProjectScope(project);
    Key[] allKeys = fAllKeys;
    for (int i = 0; i < allKeys.length; i++) {
      if (allKeys[i].getStoredValue(projectContext,  [[#variable58f1fd60]]) != null) {
        return true;
      }
    }
  }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58f1fec0]]
public final 
12[[#58f1fec0]]
/**
 * TODO: this method is a workaround for Bugzilla 111144 and 106111.  When
 * 111144 is fixed, remove this method and call hasProjectSpecificOptions() 
 * instead.  The difference is that this one does not cause project prefs nodes
 * to be cached in the WorkingCopyManager.
 * @return true if the project has project-specific options.
 */
public 
21[[#58f1fe60]]
hasProjectSpecificOptions 
22[[#58f1fe60]]
hasProjectSpecificOptionsNoCache 
31[[#58f1fd60]]
fManager 
32[[#58f1fd60]]
null