FileInputStream fis=null; try { File file = JMeterUtils.findFile(sysProp); if (file.canRead()){ log.info("Loading system properties from: "+file.getCanonicalPath()); fis = new FileInputStream(file); System.getProperties().load(fis); } } catch (IOException e) { log.warn("Error loading system property file: " + sysProp, e); } finally { JOrphanUtils.closeQuietly(fis); }
File propFile = new File(name); if (propFile.canRead()) { 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);
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/JMeter.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
FileInputStream fis=null;
1
File
2
			try {
3
                File file = JMeterUtils.findFile(sysProp);
4
                if (f
2
 propFile = new File(name);
5
ile.canRead()){
3
					if (propFile.canRead()) {
6
                	log.info("Loading system properties from: "+file.getCanonicalPath());
4
						log.info("Setting Global properties from the file "+name);
5
						try {
7
					fis = new FileInputStream(file);
6
							fis = new FileInputStream(propFile);
8
					System.getProperties().load(fis);
7
					
9
                }
8
	    remoteProps.load(fis);
9
						} catch (FileNotFoundException e) {
10
							log.warn("Could not find properties file: "+e.getLocalizedMessage());
10
			} catch (IOException e) {
11
						} catch (IOException e) {
11
				log.warn("Error loading system property file: " + sysProp, e);
12
							log.warn("Could not load properties file: "
12
            
13
+e.getLocalizedMessage());
13
} finally {
14
						} finally {
14
            	JOrphanUtils.closeQuietly(fis);
15
							JOrphanUtils.closeQuietly(fis);
15
			}
16
						
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