Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 3 | 0.965 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 66 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/regexp/RegexpFactory.java |
2 | 17 | 74 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java |
| |||||
Throwable cause = null; try { testAvailability("java.util.regex.Matcher"); return createRegexpInstance("org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp"); } catch (BuildException be) { cause = orCause(cause, be, JavaEnvUtils.getJavaVersionNumber() < 14); } try { testAvailability("org.apache.oro.text.regex.Pattern"); return createRegexpInstance("org.apache.tools.ant.util.regexp.JakartaOroRegexp"); } catch (BuildException be) { cause = orCause(cause, be, true); } |
| |||||
Throwable cause = null; try { testAvailability("java.util.regex.Matcher"); return createInstance("org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher"); } catch (BuildException be) { cause = orCause(cause, be, JavaEnvUtils.getJavaVersionNumber() < 14); } try { testAvailability("org.apache.oro.text.regex.Pattern"); return createInstance("org.apache.tools.ant.util.regexp.JakartaOroMatcher"); } catch (BuildException be) { cause = orCause(cause, be, true); } |
| |||
Throwable cause = null; try { testAvailability("java.util.regex.Matcher"); return [[#variable10103140]]( [[#variable10102540]]); } catch (BuildException be) { cause = orCause(cause, be, JavaEnvUtils.getJavaVersionNumber() < 14); } try { testAvailability("org.apache.oro.text.regex.Pattern"); return [[#variable10103140]]( [[#variable10103080]]); } catch (BuildException be) { cause = orCause(cause, be, true); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#10103140]] | createRegexpInstance |
1 | 2 | [[#10103140]] | createInstance |
2 | 1 | [[#10102540]] | "org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp" |
2 | 2 | [[#10102540]] | "org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher" |
3 | 1 | [[#10103080]] | "org.apache.tools.ant.util.regexp.JakartaOroRegexp" |
3 | 2 | [[#10103080]] | "org.apache.tools.ant.util.regexp.JakartaOroMatcher" |