try {
theStatusController.setProgressBarMaximum(arg0.available());
} catch (IOException e) {
// nothing to do
}
read = 0;
try {
// add a new inputstream to read from
streamList.add(new FileInputStream(tempFile));
} catch (FileNotFoundException e) {
e.printStackTrace();
// only if tempfile was corrupted
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/command/ProgressObservedInputStream.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/io/CloneStreamMaster.java
|
Method name: void ProgressObservedInputStream(InputStream, IWorkerStatusController, boolean)
|
|
Method name: CloneInputStream getClone()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 2
|
|
1 | try {↵ | | 1 | try {↵
|
2 | theStatusController.setProgressBarMaximum(arg0.availab↵ | | 2 | // add a new inputstream to read from↵
|
3 | le());↵ | | 3 | streamList.add(new FileInputStream(tempFile));↵
|
4 | } catch (IOException e) {↵ | | 4 | } catch (FileNotFoundException e) {↵
|
5 | // nothing to do↵ | | 5 | ↵
|
6 | }↵ | | |
|
|
7 | read = 0; | | 6 | e.printStackTrace();↵
|
|
| | | 7 | // only if tempfile was corrupted↵
|
| | | 8 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |