File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/SplashScreen.java | File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/DualProgressBarDialog.java | |||
Method name: void indicateNewTask(String)
|
Method name: void setBottomBarMinMax(int, int)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 1 | |||
1 | SwingUtilities.invokeAndWait(new Runnable()↵ | 1 | SwingUtilities.invokeLater(new Runnable()↵ | |
2 | {↵ | |||
3 | public void run()↵ | |||
4 | {↵ | |||
5 | _progressBar.setString(text);↵ | |||
6 | _progressBar.setValue(_progressBar.getValue() + 1);↵ | |||
7 | }↵ | |||
8 | });↵ | |||
9 | Thread.yield(↵ | 2 | {↵ | |
3 | public void run() {↵ | |||
4 | bottomBar.setMinimum(min);↵ | |||
5 | bottomBar.setMaximum(max);↵ | |||
6 | }↵ | |||
10 | ); | 7 | }); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 2 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | SwingUtilities.invokeAndWait(new Runnable() {...}); |
| 6 | SwingUtilities.invokeLater(new Runnable() {...}); | ||||||||||||||||||||||||||||||||||||||
3 | Thread.yield(); | |
Row | Violation |
---|---|
1 | Type java.lang.String of variable text does not match with type int of variable min |
2 | Expression _progressBar.setString(text) is a void method call, and thus it cannot be parameterized |
3 | Expression bottomBar.setMinimum(min) is a void method call, and thus it cannot be parameterized |
4 | Expression _progressBar.setValue(_progressBar.getValue() + 1) is a void method call, and thus it cannot be parameterized |
5 | Expression bottomBar.setMaximum(max) is a void method call, and thus it cannot be parameterized |
6 | Expression SwingUtilities.invokeAndWait(new Runnable(){ public void run(){ _progressBar.setString(text); _progressBar.setValue(_progressBar.getValue() + 1); } } ) is a void method call, and thus it cannot be parameterized |
7 | Expression SwingUtilities.invokeLater(new Runnable(){ public void run(){ bottomBar.setMinimum(min); bottomBar.setMaximum(max); } } ) is a void method call, and thus it cannot be parameterized |