CloneSet1918


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15201.000statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115142
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaConventions.java
215189
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaConventions.java
Clone Instance
1
Line Count
15
Source Line
142
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaConventions.java

                identifier = name.substring(0, index);
                // JSR-175 metadata strongly recommends "package-info.java" as the
                // file in which to store package annotations and
                // the package-level spec (replaces package.html)
                if ( !identifier.equals(PACKAGE_INFO)) {
                        IStatus status = validateIdentifier(identifier);
                        if ( !status.isOK()) {
                                return status;
                        }
                }
                IStatus status = ResourcesPlugin.getWorkspace().validateName(name, IResource.FILE);
                if ( !status.isOK()) {
                        return status;
                }
                return JavaModelStatus.VERIFIED_OK;


Clone Instance
2
Line Count
15
Source Line
189
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaConventions.java

                identifier = name.substring(0, index);
                // JSR-175 metadata strongly recommends "package-info.java" as the
                // file in which to store package annotations and
                // the package-level spec (replaces package.html)
                if ( !identifier.equals(PACKAGE_INFO)) {
                        IStatus status = validateIdentifier(identifier);
                        if ( !status.isOK()) {
                                return status;
                        }
                }
                IStatus status = ResourcesPlugin.getWorkspace().validateName(name, IResource.FILE);
                if ( !status.isOK()) {
                        return status;
                }
                return JavaModelStatus.VERIFIED_OK;


Clone AbstractionParameter Count: 0Parameter Bindings

identifier = name.substring(0, index);
// JSR-175 metadata strongly recommends "package-info.java" as the
// file in which to store package annotations and
// the package-level spec (replaces package.html)
if ( !identifier.equals(PACKAGE_INFO)) {
  IStatus status = validateIdentifier(identifier);
  if ( !status.isOK()) {
    return status;
  }
}
IStatus status = ResourcesPlugin.getWorkspace().validateName(name, IResource.FILE);
if ( !status.isOK()) {
  return status;
}
return JavaModelStatus.VERIFIED_OK;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None