File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/JMSSampler.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/JMSSampler.java | |||
Method name: Context getInitialContext()
|
Method name: Context getInitialContext()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (getContextProvider() != null && getContextProvider().trim().length() > 0) {↵ | 1 | if (getInitialContextFactory() != null && getInitialContextFactory().trim().length() > 0) {↵ | |
2 | if (LOGGER.isDebugEnabled()) {↵ | 2 | if (LOGGER.isDebugEnabled()) {↵ | |
3 | LOGGER.debug("Using Provider [" + getContextProvider() + "]");↵ | 3 | LOGGER.debug("Using InitialContext [" + getInitialContextFactory() + "]");↵ | |
4 | }↵ | 4 | }↵ | |
5 | table.put(Context.PROVIDER_URL, getContextProvider());↵ | 5 | table.put(Context.INITIAL_CONTEXT_FACTORY, getInitialContextFactory());↵ | |
6 | } | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 8 |
Number of mapped statements | 4 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | if (getContextProvider() != null && getContextProvider().trim().length() > 0) |
| 2 | if (getInitialContextFactory() != null && getInitialContextFactory().trim().length() > 0) | |||||||||||||
7 | if (LOGGER.isDebugEnabled()) | 3 | if (LOGGER.isDebugEnabled()) | ||||||||||||||
8 | LOGGER.debug("Using Provider [" + getContextProvider() + "]"); |
| 4 | LOGGER.debug("Using InitialContext [" + getInitialContextFactory() + "]"); | |||||||||||||
9 | table.put(Context.PROVIDER_URL, getContextProvider()); |
| 5 | table.put(Context.INITIAL_CONTEXT_FACTORY, getInitialContextFactory()); |
Row | Violation |
---|