Ignore:
Timestamp:
2014-02-27T01:41:49+01:00 (10 years ago)
Author:
Don-vip
Message:

fix some Sonar issues (JLS order)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/WindowGeometry.java

    r6828 r6889  
    3131     * @return the geometry object
    3232     */
    33     static public WindowGeometry centerOnScreen(Dimension extent) {
     33    public static WindowGeometry centerOnScreen(Dimension extent) {
    3434        return centerOnScreen(extent, "gui.geometry");
    3535    }
     
    4444     * @return the geometry object
    4545     */
    46     static public WindowGeometry centerOnScreen(Dimension extent, String preferenceKey) {
     46    public static WindowGeometry centerOnScreen(Dimension extent, String preferenceKey) {
    4747        Rectangle size = preferenceKey != null ? getScreenInfo(preferenceKey)
    4848            : getFullScreenInfo();
     
    6262     * @return the geometry object
    6363     */
    64     static public WindowGeometry centerInWindow(Component reference, Dimension extent) {
     64    public static WindowGeometry centerInWindow(Component reference, Dimension extent) {
    6565        Window parentWindow = null;
    6666        while(reference != null && ! (reference instanceof Window) ) {
     
    8282     * Exception thrown by the WindowGeometry class if something goes wrong
    8383     */
    84     static public class WindowGeometryException extends Exception {
     84    public static class WindowGeometryException extends Exception {
    8585        public WindowGeometryException(String message, Throwable cause) {
    8686            super(message, cause);
     
    178178    }
    179179
    180     static public WindowGeometry mainWindow(String preferenceKey, String arg, boolean maximize) {
     180    public static WindowGeometry mainWindow(String preferenceKey, String arg, boolean maximize) {
    181181        Rectangle screenDimension = getScreenInfo("gui.geometry");
    182182        if (arg != null) {
Note: See TracChangeset for help on using the changeset viewer.