CloneSet3290


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12250.964class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112275
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddGetterSetterOperation.java
212296
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddGetterSetterOperation.java
Clone Instance
1
Line Count
12
Source Line
275
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddGetterSetterOperation.java

        /**
         * Queries the user whether to skip existing methods.
         * 
         * @param method the method in question
         * @return <code>true</code> to skip existing methods, <code>false</code> otherwise
         * @throws OperationCanceledException if the operation has been cancelled
         */
        private boolean querySkipExistingMethods( final IMethod method) throws OperationCanceledException {
                if ( !fSkipAllExisting) {
                        switch (fSkipExistingQuery.doQuery(method)) {
                                case IRequestQuery.CANCEL:
                                        throw new OperationCanceledException();
                                case IRequestQuery.NO:
                                        return false;
                                case IRequestQuery.YES_ALL:
                                        fSkipAllExisting = true;
                              }
                }
                return true;
        }


Clone Instance
2
Line Count
12
Source Line
296
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddGetterSetterOperation.java

        /**
         * Queries the user whether to skip final setters of existing fields.
         * 
         * @param field the field in question
         * @return <code>true</code> to skip final setters, <code>false</code> otherwise
         * @throws OperationCanceledException if the operation has been cancelled
         */
        private boolean querySkipFinalSetters( final IField field) throws OperationCanceledException {
                if ( !fSkipAllFinalSetters) {
                        switch (fSkipFinalSettersQuery.doQuery(field)) {
                                case IRequestQuery.CANCEL:
                                        throw new OperationCanceledException();
                                case IRequestQuery.NO:
                                        return false;
                                case IRequestQuery.YES_ALL:
                                        fSkipAllFinalSetters = true;
                              }
                }
                return true;
        }


Clone AbstractionParameter Count: 5Parameter Bindings

/**
         * Queries the user whether to skip existing methods.
         * 
         * @param method the method in question
         * @return <code>true</code> to skip existing methods, <code>false</code> otherwise
         * @throws OperationCanceledException if the operation has been cancelled
         */
/**
         * Queries the user whether to skip final setters of existing fields.
         * 
         * @param field the field in question
         * @return <code>true</code> to skip final setters, <code>false</code> otherwise
         * @throws OperationCanceledException if the operation has been cancelled
         */
private boolean  [[#variablea45d5100]]( final [[#variablea45d5040]]  [[#variablea45d4fe0]]) throws OperationCanceledException {
  if ( ! [[#variablea45d4f60]]) {
    switch ( [[#variablea45d4ec0]].doQuery( [[#variablea45d4fe0]])) {
      case IRequestQuery.CANCEL:
        throw new OperationCanceledException();
      case IRequestQuery.NO:
        return false;
      case IRequestQuery.YES_ALL:
         [[#variablea45d4f60]]= true;
    }
  }
  return true;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a45d5100]]
querySkipExistingMethods 
12[[#a45d5100]]
querySkipFinalSetters 
21[[#a45d5040]]
IMethod 
22[[#a45d5040]]
IField 
31[[#a45d4fe0]]
method 
32[[#a45d4fe0]]
field 
41[[#a45d4f60]]
fSkipAllExisting 
42[[#a45d4f60]]
fSkipAllFinalSetters 
51[[#a45d4ec0]]
fSkipExistingQuery 
52[[#a45d4ec0]]
fSkipFinalSettersQuery