void setSamplerRedirectAutomatically(boolean b) { samplerRedirectAutomatically = b; setProperty(new BooleanProperty(SAMPLER_REDIRECT_AUTOMATICALLY, b)); } public void setSamplerFollowRedirects(boolean b) { samplerFollowRedirects = b; setProperty(new BooleanProperty(SAMPLER_FOLLOW_REDIRECTS, b)); } /** * @param b */ public void setUseKeepAlive(boolean b) { useKeepAlive = b; setProperty(new BooleanProperty(USE_KEEPALIVE, b));
void setSamplerFollowRedirects(boolean b) { samplerFollowRedirects = b; setProperty(new BooleanProperty(SAMPLER_FOLLOW_REDIRECTS, b)); } /** * @param b */ public void setUseKeepAlive(boolean b) { useKeepAlive = b; setProperty(new BooleanProperty(USE_KEEPALIVE, b)); } public void setSamplerDownloadImages(boolean b) { samplerDownloadImages = b; setProperty(new BooleanProperty(SAMPLER_DOWNLOAD_IMAGES, b));
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/ProxyControl.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/ProxyControl.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setSamplerRedirectAutomatically(boolean b) {
2
		samplerRedirectAutomatically = b;
3
		setProperty(new BooleanProperty(SAMPLER_REDIRECT_AUTOMATICALLY, b));
4
	}
5
	public void setSamplerFollowRedirects(boolean b) {
1
void setSamplerFollowRedirects(boolean b) {
6
		samplerFollowRedirects = b;
2
		samplerFollowRedirects = b;
7
		setProperty(new BooleanProperty(SAMPLER_FOLLOW_REDIRECTS, b));
3
		setProperty(new BooleanProperty(SAMPLER_FOLLOW_REDIRECTS, b));
8
	}
4
	}
9
	/**
5
	/**
10
	 * @param b
6
	 * @param b
11
	 */
7
	 */
12
	public void setUseKeepAlive(boolean b) {
8
	public void setUseKeepAlive(boolean b) {
13
		useKeepAlive = b;
9
		useKeepAlive = b;
14
		setProperty(new BooleanProperty(USE_KEEPALIVE, b));
10
		setProperty(new BooleanProperty(USE_KEEPALIVE, b));
15
	
11
	}
12
	public void setSamplerDownloadImages(boolean b) {
13
		samplerDownloadImages = b;
14
		setProperty(new BooleanProperty(SAMPLER_DOWNLOAD_IMAGES, b));
15
	
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