CookieManager getCookieManager() { return (CookieManager) getProperty(COOKIE_MANAGER).getObjectValue(); } public void setCacheManager(CacheManager value) { CacheManager mgr = getCacheManager(); if (mgr != null) { log.warn("Existing CacheManager " + mgr.getName() + " superseded by " + value.getName()); } setProperty(new TestElementProperty(CACHE_MANAGER, value)); } public CacheManager getCacheManager() { return (CacheManager) getProperty(CACHE_MANAGER).getObjectValue();
Arguments getArguments() { return (Arguments) getProperty(ARGUMENTS).getObjectValue(); } public void setAuthManager(AuthManager value) { AuthManager mgr = getAuthManager(); if (mgr != null) { log.warn("Existing AuthManager " + mgr.getName() + " superseded by " + value.getName()); } setProperty(new TestElementProperty(AUTH_MANAGER, value)); } public AuthManager getAuthManager() { return (AuthManager) getProperty(AUTH_MANAGER).getObjectValue();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
CookieManager getCookieManager() {
1
Arguments getArguments() {
2
		return (CookieManager) getProperty(COOKIE_MANAGER).getObjectValue();
2
		return (Arguments) getProperty(ARGUMENTS).getObjectValue();
3
	}
3
	}
4
    public void setCacheManager(CacheManager value) {
4
	public void setAuthManager(AuthManager value) {
5
        CacheManager mgr = getCacheManager();
5
		AuthManager mgr = getAuthManager();
6
        if (mgr != null) {
6
		if (mgr != null) {
7
            log.warn("Existing CacheManager " + mgr.getName() + " superseded by " + value.getName());
7
			log.warn("Existing AuthManager " + mgr.getName() + " superseded by " + value.getName());
8
        }
9
        
8
		}
10
setProperty(new TestElementProperty(CACHE_MANAGER, value));
9
		setProperty(new TestElementProperty(AUTH_MANAGER, value));
11
    }
10
	}
12
    public CacheManager getCacheManager() {
11
	public AuthManager getAuthManager() {
13
        return (CacheManager) getProperty(CACHE_MANAGER).getObjectValue();
12
		return (AuthManager) getProperty(AUTH_MANAGER).getObjectValue();
14
    
13
	
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