Comment format changes.

- Collapsed Javadoc comments for all fields.
- OsuFile now has proper Javadoc comments.
- Fixed various mistakes with comments.

Some changes with enums:
- Changed Class.values() calls to values().
- Changed size() calls to a SIZE field.
- Changed valuesReversed() calls to a VALUES_REVERSED field.
- Removed 'static' from enum declarations.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-01-22 00:44:45 -05:00
parent d6c7476b88
commit c9e14bfc70
32 changed files with 527 additions and 1008 deletions

View File

@@ -34,28 +34,20 @@ import org.newdawn.slick.util.Log;
* Error handler to log and display errors.
*/
public class ErrorHandler {
/**
* Error popup title.
*/
/** Error popup title. */
private static final String title = "Error";
/**
* Error popup description text.
*/
/** Error popup description text. */
private static final String
desc = "opsu! has encountered an error.",
desc = "opsu! has encountered an error.",
descR = "opsu! has encountered an error. Please report this!";
/**
* Error popup button options.
*/
/** Error popup button options. */
private static final String[]
options = {"View Error Log", "Close"},
options = {"View Error Log", "Close"},
optionsR = {"Send Report", "View Error Log", "Close"};
/**
* Text area for Exception.
*/
/** Text area for Exception. */
private static final JTextArea textArea = new JTextArea(7, 30);
static {
textArea.setEditable(false);
@@ -65,16 +57,12 @@ public class ErrorHandler {
textArea.setLineWrap(true);
}
/**
* Scroll pane holding JTextArea.
*/
/** Scroll pane holding JTextArea. */
private static final JScrollPane scroll = new JScrollPane(textArea);
/**
* Error popup objects.
*/
/** Error popup objects. */
private static final Object[]
message = { desc, scroll },
message = { desc, scroll },
messageR = { descR, scroll };
// This class should not be instantiated.