if(System.currentTimeMillis() - start < 1000)
{
Rectangle r = win.getBounds();
if(!windowOpened && r.equals(required))
return;
if(!r.equals(desired))
{
Log.log(Log.DEBUG,GUIUtilities.class,
"Window resize blocked: " + win.getBounds());
win.setBounds(desired);
if(System.currentTimeMillis() - start < 1000)
{
Rectangle r = win.getBounds();
if(!windowOpened && r.equals(required))
return;
if(!r.equals(desired))
{
Log.log(Log.DEBUG,GUIUtilities.class,
"Window resize blocked: " + win.getBounds());
win.setBounds(desired);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/GUIUtilities.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/GUIUtilities.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if(System.currentTimeMillis() - start < 1000)↵ | | 1 | if(System.currentTimeMillis() - start < 1000)↵
|
2 | {↵ | | 2 | {↵
|
3 | Rectangle r = win.getBounds();↵ | | 3 | Rectangle r = win.getBounds();↵
|
4 | if(!windowOpened && r.equals(required))↵ | | 4 | if(!windowOpened && r.equals(required))↵
|
5 | return;↵ | | 5 | return;↵
|
|
6 | if(!r.equals(desired))↵ | | 6 | if(!r.equals(desired))↵
|
7 | {↵ | | 7 | {↵
|
8 | Log.log(Log.DEBUG,GUIUtilities.class,↵ | | 8 | Log.log(Log.DEBUG,GUIUtilities.class,↵
|
9 | "Window resize blocked: " + win.getBounds());↵ | | 9 | "Window resize blocked: " + win.getBounds());↵
|
10 | win.setBounds(desired);↵ | | 10 | win.setBounds(desired);↵
|
11 | | | 11 |
|
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.0 |
Clones location | |
Number of node comparisons | 0 |