CloneSet144


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18220.955statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118209
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/BorlandDeploymentTool.java
218419
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
Next
Last
Clone Instance
1
Line Count
18
Source Line
209
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/BorlandDeploymentTool.java

DescriptorHandler handler = new DescriptorHandler(getTask(), srcDir) {
                              protected void processElement() {
                                if (currentElement.equals("type-storage")) {
                                  // Get the filename of vendor specific descriptor
                                  String fileNameWithMETA = currentText;
                                  //trim the META_INF\ off of the file name
                                  String fileName = fileNameWithMETA.substring(META_DIR.length(), fileNameWithMETA.length());
                                  File descriptorFile = new File(srcDir, fileName);
                                  ejbFiles.put(fileNameWithMETA, descriptorFile);
                                }
                              }
                            };
handler.registerDTD(PUBLICID_BORLAND_EJB, borlandDTD == null ? DEFAULT_BAS_DTD_LOCATION: borlandDTD);


First
Previous
Clone Instance
2
Line Count
18
Source Line
419
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java

DescriptorHandler handler = new DescriptorHandler(getTask(), srcDir) {
                              protected void processElement() {
                                if (currentElement.equals("type-storage")) {
                                  // Get the filename of vendor specific descriptor
                                  String fileNameWithMETA = currentText;
                                  //trim the META_INF\ off of the file name
                                  String fileName = fileNameWithMETA.substring(META_DIR.length(), fileNameWithMETA.length());
                                  File descriptorFile = new File(srcDir, fileName);
                                  ejbFiles.put(fileNameWithMETA, descriptorFile);
                                }
                              }
                            };
handler.registerDTD(PUBLICID_WEBLOGIC_EJB510, DEFAULT_WL51_DTD_LOCATION);


Clone AbstractionParameter Count: 2Parameter Bindings

DescriptorHandler handler = new DescriptorHandler(getTask(), srcDir) {
                              protected void processElement() {
                                if (currentElement.equals("type-storage")) {
                                  // Get the filename of vendor specific descriptor
                                  String fileNameWithMETA = currentText;
                                  //trim the META_INF\ off of the file name
                                  String fileName = fileNameWithMETA.substring(META_DIR.length(), fileNameWithMETA.length());
                                  File descriptorFile = new File(srcDir, fileName);
                                  ejbFiles.put(fileNameWithMETA, descriptorFile);
                                }
                              }
                            };
handler.registerDTD( [[#variablefdc3c20]],  [[#variablefdc3b20]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fdc3c20]]
PUBLICID_BORLAND_EJB 
12[[#fdc3c20]]
PUBLICID_WEBLOGIC_EJB510 
21[[#fdc3b20]]
borlandDTD == null ? DEFAULT_BAS_DTD_LOCATION: borlandDTD 
22[[#fdc3b20]]
DEFAULT_WL51_DTD_LOCATION