log.info("Setting Global properties from the file "+name); try { fis = new FileInputStream(propFile); remoteProps.load(fis); } catch (FileNotFoundException e) { log.warn("Could not find properties file: "+e.getLocalizedMessage()); } catch (IOException e) { log.warn("Could not load properties file: "+e.getLocalizedMessage()); } finally { JOrphanUtils.closeQuietly(fis); }
try { pw = new FileOutputStream(out); pw.write(s.getResponseData()); } catch (FileNotFoundException e1) { log.error("Error creating sample file for " + s.getSampleLabel(), e1); } catch (IOException e1) { log.error("Error saving sample " + s.getSampleLabel(), e1); } finally { JOrphanUtils.closeQuietly(pw); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/JMeter.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/ResultSaver.java
Method name: void initializeProperties(CLArgsParser) Method name: void saveSample(SampleResult)
Number of AST nodes: 4 Number of AST nodes: 3
1
log.info("Setting Global properties from the file "+name);
2
						try {
1
try {
3
							fis = new FileInputStream(propFile);
2
			pw = new FileOutputStream(
4
						    remoteProps.load(fis);
5
				
3
out);
4
			pw.write(s.getResponseData());
6
		} catch (FileNotFoundException e) {
5
		} catch (FileNotFoundException e1) {
7
							log.warn("Could not find properties file: "+e.getLocalizedMessage());
6
			log.error("Error creating sample file
8
				
7
 for " + s.getSampleLabel(), e1);
9
		} catch (IOException e) {
8
		} catch (IOException e1) {
10
							log.warn("Could not load properties file: "+e.getLocalizedMessage());
9
			log.error("Error saving sample "
11
				
10
 + s.getSampleLabel(), e1);
12
		} finally {
11
		} finally {
13
							JOrphanUtils.closeQuietly(fis);
12
            JOrphanUtils.closeQuietly(pw);
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.4
Clones locationClones are in different classes
Number of node comparisons1