File path: /apache-ant-1.7.0/src/org/apache/tools/ant/util/regexp/JakartaOroMatcher.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.java | |||
Method name: int getCompilerOptions(int)
|
Method name: int getCompilerOptions(int)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | int cOptions = Perl5Compiler.DEFAULT_MASK;↵ | 1 | int cOptions = Pattern.UNIX_LINES;↵ | |
2 | if (RegexpUtil.hasFlag(options, MATCH_CASE_INSENSITIVE)) {↵ | 2 | if (RegexpUtil.hasFlag(options, MATCH_CASE_INSENSITIVE)) {↵ | |
3 | cOptions |= Perl5Compiler.CASE_INSENSITIVE_MASK;↵ | 3 | cOptions |= Pattern.CASE_INSENSITIVE;↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (RegexpUtil.hasFlag(options, MATCH_MULTILINE)) {↵ | 5 | if (RegexpUtil.hasFlag(options, MATCH_MULTILINE)) {↵ | |
6 | cOptions |= Perl5Compiler.MULTILINE_MASK;↵ | 6 | cOptions |= Pattern.MULTILINE;↵ | |
7 | }↵ | 7 | }↵ | |
8 | if (RegexpUtil.hasFlag(options, MATCH_SINGLELINE)) {↵ | 8 | if (RegexpUtil.hasFlag(options, MATCH_SINGLELINE)) {↵ | |
9 | cOptions |= Perl5Compiler.SINGLELINE_MASK;↵ | 9 | cOptions |= Pattern.DOTALL;↵ | |
10 | }↵ | 10 | }↵ | |
11 | return cOptions; | 11 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.6 |
Clones location | Clones are in different classes |
Number of node comparisons | 31 |
Number of mapped statements | 8 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 2.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | int cOptions = Perl5Compiler.DEFAULT_MASK; |
| 1 | int cOptions = Pattern.UNIX_LINES; | ||||||||||||||
2 | if (RegexpUtil.hasFlag(options, MATCH_CASE_INSENSITIVE)) | 2 | if (RegexpUtil.hasFlag(options, MATCH_CASE_INSENSITIVE)) | |||||||||||||||
3 | cOptions |= Perl5Compiler.CASE_INSENSITIVE_MASK; |
| 3 | cOptions |= Pattern.CASE_INSENSITIVE; | ||||||||||||||
4 | if (RegexpUtil.hasFlag(options, MATCH_MULTILINE)) | 4 | if (RegexpUtil.hasFlag(options, MATCH_MULTILINE)) | |||||||||||||||
5 | cOptions |= Perl5Compiler.MULTILINE_MASK; |
| 5 | cOptions |= Pattern.MULTILINE; | ||||||||||||||
6 | if (RegexpUtil.hasFlag(options, MATCH_SINGLELINE)) | 6 | if (RegexpUtil.hasFlag(options, MATCH_SINGLELINE)) | |||||||||||||||
7 | cOptions |= Perl5Compiler.SINGLELINE_MASK; |
| 7 | cOptions |= Pattern.DOTALL; | ||||||||||||||
8 | return cOptions; | 8 | return cOptions; |
Row | Violation |
---|---|
1 | Type org.apache.oro.text.regex.Perl5Compiler does not match with type java.util.regex.Pattern |
2 | Type org.apache.oro.text.regex.Perl5Compiler does not match with type java.util.regex.Pattern |
3 | Type org.apache.oro.text.regex.Perl5Compiler does not match with type java.util.regex.Pattern |
4 | Type org.apache.oro.text.regex.Perl5Compiler does not match with type java.util.regex.Pattern |