private void addTest(LdapExtClient ldap, DirContext dirContext, SampleResult res) throws NamingException {
try {
res.sampleStart();
ldap.createTest(dirContext, getUserAttributes(), getBaseEntryDN());
} finally {
res.sampleEnd();
private void modifyTest(LdapExtClient ldap, DirContext dirContext, SampleResult res) throws NamingException {
try {
res.sampleStart();
ldap.modifyTest(dirContext, getUserModAttributes(), getBaseEntryDN());
} finally {
res.sampleEnd();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | private void addTest(LdapExtClient ldap, DirContext dirContext, SampleResult res) throws NamingException {↵ | | 1 | private void modifyTest(LdapExtClient ldap, DirContext dirContext, SampleResult res) throws NamingException {↵
|
2 | try {↵ | | 2 | try {↵
|
3 | res.sampleStart();↵ | | 3 | res.sampleStart();↵
|
4 | ldap.createTest(dirContext, getUserAttributes(), getBaseEntryDN());↵ | | 4 | ldap.modifyTest(dirContext, getUserModAttributes(), getBaseEntryDN());↵
|
5 | } finally {↵ | | 5 | } finally {↵
|
6 | res.sampleEnd();↵ | | 6 | res.sampleEnd();↵
|
7 | | | 7 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |