mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't return mutable constant
This commit is contained in:
@@ -23,12 +23,10 @@ import java.awt.*;
|
||||
*/
|
||||
public class JBLayeredPane extends JLayeredPane {
|
||||
|
||||
private static final Dimension EMPTY = new Dimension(0, 0);
|
||||
|
||||
@Override
|
||||
public Dimension getMinimumSize() {
|
||||
if (!isMinimumSizeSet())
|
||||
return EMPTY;
|
||||
return new Dimension(0, 0);
|
||||
return super.getMinimumSize();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user