Fix some warnings raised by CheckStyle

- Change ordering of 'static', 'final', etc modifiers according to
  the order suggested by JLS.

- Add comments in empty catch blocks for intentionally ignored
  exceptions.

- Add curly braces around if-else blocks.

- Move `catch` to same line as closing brace of preceding `try`
  blocks.

- Wrap long lines.

Note that this change does not fix all instances of the above errors
across the entire code base.

Change-Id: I24bb9649cc5013c249fa5d84e05322a5cdf2ace6
This commit is contained in:
David Pursehouse
2015-01-28 15:50:38 +09:00
parent 8afed4b1e5
commit 6d0ebb8ccb
35 changed files with 88 additions and 68 deletions

View File

@@ -28,18 +28,18 @@ public interface WebLink {
/**
* Opens the link in a new window or tab
*/
public final static String BLANK = "_blank";
public static final String BLANK = "_blank";
/**
* Opens the link in the frame it was clicked.
*/
public final static String SELF = "_self";
public static final String SELF = "_self";
/**
* Opens link in parent frame.
*/
public final static String PARENT = "_parent";
public static final String PARENT = "_parent";
/**
* Opens link in the full body of the window.
*/
public final static String TOP = "_top";
public static final String TOP = "_top";
}
}