mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 22:47:13 -06:00
minor code cleanup:
- remove redundant semicolon - create array with curly
This commit is contained in:
@@ -35,7 +35,7 @@ import com.formdev.flatlaf.util.SystemInfo;
|
||||
*/
|
||||
public class FlatDesktop
|
||||
{
|
||||
public enum Action { APP_ABOUT, APP_PREFERENCES, APP_QUIT_HANDLER };
|
||||
public enum Action { APP_ABOUT, APP_PREFERENCES, APP_QUIT_HANDLER }
|
||||
|
||||
/**
|
||||
* Checks whether the given action is supported on the current platform.
|
||||
|
||||
@@ -634,7 +634,7 @@ public class FlatSVGIcon
|
||||
int iconWidth = getIconWidth();
|
||||
int iconHeight = getIconHeight();
|
||||
|
||||
Dimension[] dimensions = new Dimension[] {
|
||||
Dimension[] dimensions = {
|
||||
new Dimension( iconWidth, iconHeight ),
|
||||
new Dimension( iconWidth * 2, iconHeight * 2 ),
|
||||
};
|
||||
@@ -897,7 +897,7 @@ public class FlatSVGIcon
|
||||
color = mapper.apply( color );
|
||||
|
||||
return color;
|
||||
};
|
||||
}
|
||||
|
||||
private Color applyMappings( Color color ) {
|
||||
if( colorMap != null ) {
|
||||
|
||||
@@ -364,7 +364,7 @@ public class FlatTabbedPane
|
||||
|
||||
|
||||
// NOTE: enum names must be equal to allowed strings
|
||||
/** @since 2 */ public enum TabType { underlined, card };
|
||||
/** @since 2 */ public enum TabType { underlined, card }
|
||||
|
||||
/**
|
||||
* Returns type of selected tab.
|
||||
@@ -387,7 +387,7 @@ public class FlatTabbedPane
|
||||
|
||||
|
||||
// NOTE: enum names must be equal to allowed strings
|
||||
public enum TabsPopupPolicy { never, asNeeded };
|
||||
public enum TabsPopupPolicy { never, asNeeded }
|
||||
|
||||
/**
|
||||
* Returns the display policy for the "more tabs" button,
|
||||
@@ -408,7 +408,7 @@ public class FlatTabbedPane
|
||||
|
||||
|
||||
// NOTE: enum names must be equal to allowed strings
|
||||
public enum ScrollButtonsPolicy { never, asNeeded, asNeededSingle };
|
||||
public enum ScrollButtonsPolicy { never, asNeeded, asNeededSingle }
|
||||
|
||||
/**
|
||||
* Returns the display policy for the forward/backward scroll arrow buttons.
|
||||
@@ -427,7 +427,7 @@ public class FlatTabbedPane
|
||||
|
||||
|
||||
// NOTE: enum names must be equal to allowed strings
|
||||
public enum ScrollButtonsPlacement { both, trailing };
|
||||
public enum ScrollButtonsPlacement { both, trailing }
|
||||
|
||||
/**
|
||||
* Returns the placement of the forward/backward scroll arrow buttons.
|
||||
@@ -446,7 +446,7 @@ public class FlatTabbedPane
|
||||
|
||||
|
||||
// NOTE: enum names must be equal to allowed strings
|
||||
public enum TabAreaAlignment { leading, trailing, center, fill };
|
||||
public enum TabAreaAlignment { leading, trailing, center, fill }
|
||||
|
||||
/**
|
||||
* Returns the alignment of the tab area.
|
||||
@@ -465,7 +465,7 @@ public class FlatTabbedPane
|
||||
|
||||
|
||||
// NOTE: enum names must be equal to allowed strings
|
||||
public enum TabAlignment { leading, trailing, center };
|
||||
public enum TabAlignment { leading, trailing, center }
|
||||
|
||||
/**
|
||||
* Returns the horizontal alignment of the tab title and icon.
|
||||
@@ -484,7 +484,7 @@ public class FlatTabbedPane
|
||||
|
||||
|
||||
// NOTE: enum names must be equal to allowed strings
|
||||
public enum TabWidthMode { preferred, equal, compact };
|
||||
public enum TabWidthMode { preferred, equal, compact }
|
||||
|
||||
/**
|
||||
* Returns how the tabs should be sized.
|
||||
|
||||
@@ -164,7 +164,7 @@ public class FlatTextField
|
||||
|
||||
|
||||
// NOTE: enum names must be equal to allowed strings
|
||||
public enum SelectAllOnFocusPolicy { never, once, always };
|
||||
public enum SelectAllOnFocusPolicy { never, once, always }
|
||||
|
||||
/**
|
||||
* Returns whether all text is selected when the text component gains focus.
|
||||
|
||||
Reference in New Issue
Block a user