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));
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) {
1
void set
2
		samplerRedirectAutomatically
2
UseKeepAlive(boolean b) {
3
 = b;
3
		useKeepAlive = b;
4
		setProperty(new BooleanProperty(SAMPLER_REDIRECT_AUTOMATICALLY, b));
4
		setProperty(new BooleanProperty(USE_KEEPALIVE, b));
5
	}
5
	}
6
	public void setSamplerFollowRedirects(boolean b) {
6
	public void setSamplerDownloadImages(boolean b) {
7
		samplerFollowRedirects = b;
7
		samplerDownloadImages = b;
8
		setProperty(new BooleanProperty(SAMPLER_FOLLOW_REDIRECTS, b));
8
		setProperty(new BooleanProperty(SAMPLER_DOWNLOAD_IMAGES, b));
9
	
9
	
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