if (getInitialContextFactory() != null && getInitialContextFactory().trim().length() > 0) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Using InitialContext [" + getInitialContextFactory() + "]"); } table.put(Context.INITIAL_CONTEXT_FACTORY, getInitialContextFactory()); }
if (getContextProvider() != null && getContextProvider().trim().length() > 0) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Using Provider [" + getContextProvider() + "]"); } table.put(Context.PROVIDER_URL, getContextProvider()); }
Clone fragments detected by clone detection tool
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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (getInitialContextFactory() != null && getInitialContextFactory().trim().length() > 0) {
1
if (getContextProvider() != null && getContextProvider().trim().length() > 0) {
2
			if (LOGGER.isDebugEnabled()) {
2
			if (LOGGER.isDebugEnabled()) {
3
				LOGGER.debug("Using InitialContext [" + getInitialContextFactory() + "]");
3
				LOGGER.debug("Using Provider [" + getContextProvider() + "]");
4
			}
4
			}
5
			table.put(Context.INITIAL_CONTEXT_FACTORY, getInitialContextFactory());
5
			table.put(Context.PROVIDER_URL, getContextProvider());
6
		}
6
		}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0