mirror of
https://gitlab.com/AutumnMeowMeow/jexer
synced 2024-09-19 03:40:20 -06:00
Update compile to JDK 24
This commit is contained in:
parent
d299c9ba85
commit
ce0d379497
64 changed files with 91 additions and 3 deletions
|
@ -49,8 +49,7 @@
|
|||
includeantruntime="false"
|
||||
debug="on"
|
||||
debuglevel="lines,vars,source"
|
||||
target="1.7"
|
||||
source="1.7"
|
||||
release="8"
|
||||
>
|
||||
<compilerarg value="-Xlint"/>
|
||||
<compilerarg value="-Xdiags:verbose"/>
|
||||
|
|
|
@ -724,6 +724,7 @@ public class TApplication implements Runnable {
|
|||
* @throws UnsupportedEncodingException if an exception is thrown when
|
||||
* creating the InputStreamReader
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TApplication(final BackendType backendType, final int windowWidth,
|
||||
final int windowHeight, final int fontSize)
|
||||
throws UnsupportedEncodingException {
|
||||
|
@ -761,6 +762,7 @@ public class TApplication implements Runnable {
|
|||
* @throws UnsupportedEncodingException if an exception is thrown when
|
||||
* creating the InputStreamReader
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TApplication(final BackendType backendType)
|
||||
throws UnsupportedEncodingException {
|
||||
|
||||
|
@ -805,6 +807,7 @@ public class TApplication implements Runnable {
|
|||
* @throws UnsupportedEncodingException if an exception is thrown when
|
||||
* creating the InputStreamReader
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TApplication(final InputStream input,
|
||||
final OutputStream output) throws UnsupportedEncodingException {
|
||||
|
||||
|
@ -824,6 +827,7 @@ public class TApplication implements Runnable {
|
|||
* which uses System.in.
|
||||
* @throws IllegalArgumentException if input, reader, or writer are null.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TApplication(final InputStream input, final Reader reader,
|
||||
final PrintWriter writer, final boolean setRawMode) {
|
||||
|
||||
|
@ -852,6 +856,7 @@ public class TApplication implements Runnable {
|
|||
*
|
||||
* @param backend a Backend that is already ready to go.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TApplication(final Backend backend) {
|
||||
this.backend = backend;
|
||||
backend.setListener(this);
|
||||
|
|
|
@ -169,6 +169,7 @@ public class TButton extends TWidget {
|
|||
* @param x column relative to parent
|
||||
* @param y row relative to parent
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
private TButton(final TWidget parent, final String text,
|
||||
final int x, final int y) {
|
||||
|
||||
|
|
|
@ -96,6 +96,7 @@ public class TCheckBox extends TWidget {
|
|||
* @param checked initial check state
|
||||
* @param action the action to perform when the checkbox is toggled
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TCheckBox(final TWidget parent, final int x, final int y,
|
||||
final String label, final boolean checked, final TAction action) {
|
||||
|
||||
|
|
|
@ -90,6 +90,7 @@ public class TComboBox extends TWidget {
|
|||
* @param updateAction action to call when a new value is selected from
|
||||
* the list or enter is pressed in the edit field
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TComboBox(final TWidget parent, final int x, final int y,
|
||||
final int width, final List<String> values, final int valuesIndex,
|
||||
final int maxValuesHeight, final TAction updateAction) {
|
||||
|
|
|
@ -61,6 +61,7 @@ public class TDesktop extends TWindow {
|
|||
*
|
||||
* @param parent parent application
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TDesktop(final TApplication parent) {
|
||||
super(parent, "", 0, 0, parent.getScreen().getWidth(),
|
||||
parent.getDesktopBottom() - parent.getDesktopTop());
|
||||
|
|
|
@ -135,6 +135,7 @@ public class TDirectoryList extends TList {
|
|||
* (single-click)
|
||||
* @param filters a list of strings that files must match to be displayed
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TDirectoryList(final TWidget parent, final String path, final int x,
|
||||
final int y, final int width, final int height, final TAction action,
|
||||
final TAction singleClickAction, final List<String> filters) {
|
||||
|
|
|
@ -682,6 +682,7 @@ public class TEditColorThemeWindow extends TWindow {
|
|||
*
|
||||
* @param application the TApplication that manages this window
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TEditColorThemeWindow(final TApplication application) {
|
||||
|
||||
// Register with the TApplication
|
||||
|
|
|
@ -168,6 +168,7 @@ public class TEditorWidget extends TWidget implements EditMenuUser {
|
|||
* @param width width of text area
|
||||
* @param height height of text area
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TEditorWidget(final TWidget parent, final String text, final int x,
|
||||
final int y, final int width, final int height) {
|
||||
|
||||
|
|
|
@ -96,6 +96,7 @@ public class TEditorWindow extends TScrollableWindow {
|
|||
* @param parent the main application
|
||||
* @param title the window title
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TEditorWindow(final TApplication parent, final String title) {
|
||||
|
||||
super(parent, title, 0, 0, parent.getScreen().getWidth(),
|
||||
|
@ -112,6 +113,7 @@ public class TEditorWindow extends TScrollableWindow {
|
|||
* @param title the window title, usually a filename
|
||||
* @param contents the data for the editing window, usually the file data
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TEditorWindow(final TApplication parent, final String title,
|
||||
final String contents) {
|
||||
|
||||
|
@ -130,6 +132,7 @@ public class TEditorWindow extends TScrollableWindow {
|
|||
* @param file the file to open
|
||||
* @throws IOException if a java.io operation throws
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TEditorWindow(final TApplication parent,
|
||||
final File file) throws IOException {
|
||||
|
||||
|
|
|
@ -78,6 +78,7 @@ public class TExceptionDialog extends TWindow {
|
|||
* @param application TApplication that manages this window
|
||||
* @param exception the exception to display
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TExceptionDialog(final TApplication application,
|
||||
final Throwable exception) {
|
||||
|
||||
|
|
|
@ -172,6 +172,7 @@ public class TField extends TWidget implements EditMenuUser {
|
|||
* @param enterAction function to call when enter key is pressed
|
||||
* @param updateAction function to call when the text is updated
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TField(final TWidget parent, final int x, final int y,
|
||||
final int width, final boolean fixed, final String text,
|
||||
final TAction enterAction, final TAction updateAction) {
|
||||
|
|
|
@ -153,6 +153,7 @@ public class TFileOpenBox extends TWindow {
|
|||
* @param filters a list of strings that files must match to be displayed
|
||||
* @throws IOException of a java.io operation throws
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TFileOpenBox(final TApplication application, final String path,
|
||||
final Type type, final List<String> filters) throws IOException {
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ public class THelpWindow extends TWindow {
|
|||
* @param topic the topic to start on
|
||||
*/
|
||||
public THelpWindow(final TApplication application, final String topic) {
|
||||
this (application, application.helpFile.getTopic(topic));
|
||||
this(application, application.helpFile.getTopic(topic));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -106,6 +106,7 @@ public class THelpWindow extends TWindow {
|
|||
* @param application TApplication that manages this window
|
||||
* @param topic the topic to start on
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public THelpWindow(final TApplication application, final Topic topic) {
|
||||
super(application, i18n.getString("windowTitle"),
|
||||
1, 1, 78, 22, CENTERED | RESIZABLE);
|
||||
|
|
|
@ -206,6 +206,7 @@ public class TImage extends TWidget implements EditMenuUser {
|
|||
* @param top top row of the image. 0 is the top-most row.
|
||||
* @param clickAction function to call when mouse is pressed
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TImage(final TWidget parent, final int x, final int y,
|
||||
final int width, final int height, final BufferedImage image,
|
||||
final int left, final int top, final TAction clickAction) {
|
||||
|
@ -254,6 +255,7 @@ public class TImage extends TWidget implements EditMenuUser {
|
|||
* @param top top row of the image. 0 is the top-most row.
|
||||
* @param clickAction function to call when mouse is pressed
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TImage(final TWidget parent, final int x, final int y,
|
||||
final int width, final int height, final Animation animation,
|
||||
final int left, final int top, final TAction clickAction) {
|
||||
|
|
|
@ -98,6 +98,7 @@ public class TImageWindow extends TScrollableWindow {
|
|||
* @param height height of window
|
||||
* @throws IOException if a java.io operation throws
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TImageWindow(final TApplication parent, final File file,
|
||||
final int x, final int y, final int width,
|
||||
final int height) throws IOException {
|
||||
|
|
|
@ -96,6 +96,7 @@ public class TInputBox extends TMessageBox {
|
|||
* @param text initial text to seed the field with
|
||||
* @param type one of the Type constants. Default is Type.OK.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TInputBox(final TApplication application, final String title,
|
||||
final String caption, final String text, final Type type) {
|
||||
|
||||
|
|
|
@ -153,6 +153,7 @@ public class TLabel extends TWidget {
|
|||
* @param useWindowBackground if true, use the window's background color
|
||||
* @param action to call when shortcut is pressed
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TLabel(final TWidget parent, final String text, final int x,
|
||||
final int y, final String colorKey, final boolean useWindowBackground,
|
||||
final TAction action) {
|
||||
|
|
|
@ -154,6 +154,7 @@ public class TList extends TScrollableWidget {
|
|||
* @param singleClickAction action to perform when the user clicks on an
|
||||
* item
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TList(final TWidget parent, final List<String> strings, final int x,
|
||||
final int y, final int width, final int height,
|
||||
final TAction enterAction, final TAction moveAction,
|
||||
|
|
|
@ -176,6 +176,7 @@ public class TMessageBox extends TWindow {
|
|||
* @param yield if true, yield this Thread. Subclasses need to set this
|
||||
* to false and yield at their end of their constructor intead.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
protected TMessageBox(final TApplication application, final String title,
|
||||
final String caption, final Type type, final boolean yield) {
|
||||
|
||||
|
|
|
@ -227,6 +227,7 @@ public class TScreenOptionsWindow extends TWindow {
|
|||
*
|
||||
* @param application the TApplication that manages this window
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TScreenOptionsWindow(final TApplication application) {
|
||||
|
||||
// Register with the TApplication
|
||||
|
|
|
@ -103,6 +103,7 @@ public class TSplitPane extends TWidget {
|
|||
* @param height height of widget
|
||||
* @param vertical if true, split vertically
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TSplitPane(final TWidget parent, final int x, final int y,
|
||||
final int width, final int height, final boolean vertical) {
|
||||
|
||||
|
|
|
@ -130,6 +130,7 @@ public class TStatusBar extends TWidget {
|
|||
* @param window the window associated with this status bar
|
||||
* @param text text for the bar on the bottom row
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TStatusBar(final TWindow window, final String text) {
|
||||
|
||||
// TStatusBar is a parentless widget, because TApplication handles
|
||||
|
|
|
@ -395,6 +395,7 @@ public class TTableWidget extends TWidget {
|
|||
* @param column column index of this cell
|
||||
* @param row row index of this cell
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Cell(final TTableWidget parent, final int x, final int y,
|
||||
final int width, final int height, final int column,
|
||||
final int row) {
|
||||
|
@ -617,6 +618,7 @@ public class TTableWidget extends TWidget {
|
|||
* @param gridColumns number of columns in grid
|
||||
* @param gridRows number of rows in grid
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TTableWidget(final TWidget parent, final int x, final int y,
|
||||
final int width, final int height, final int gridColumns,
|
||||
final int gridRows) {
|
||||
|
|
|
@ -73,6 +73,7 @@ public class TTableWindow extends TScrollableWindow {
|
|||
* @param parent the main application
|
||||
* @param title the window title
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TTableWindow(final TApplication parent, final String title) {
|
||||
|
||||
super(parent, title, 0, 0, parent.getScreen().getWidth() / 2,
|
||||
|
@ -89,6 +90,7 @@ public class TTableWindow extends TScrollableWindow {
|
|||
* @param csvFile a File referencing the CSV data
|
||||
* @throws IOException if a java.io operation throws
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TTableWindow(final TApplication parent,
|
||||
final File csvFile) throws IOException {
|
||||
|
||||
|
|
|
@ -228,6 +228,7 @@ public class TTerminalWidget extends TScrollableWidget
|
|||
* @param command the command line to execute
|
||||
* @param closeAction action to perform when the shell exits
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TTerminalWidget(final TWidget parent, final int x, final int y,
|
||||
final int width, final int height, final String [] command,
|
||||
final TAction closeAction) {
|
||||
|
@ -332,6 +333,7 @@ public class TTerminalWidget extends TScrollableWidget
|
|||
* @param height height of widget
|
||||
* @param closeAction action to perform when the shell exits
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TTerminalWidget(final TWidget parent, final int x, final int y,
|
||||
final int width, final int height, final TAction closeAction) {
|
||||
|
||||
|
|
|
@ -131,6 +131,7 @@ public class TTerminalWindow extends TScrollableWindow {
|
|||
* @param command the command line to execute
|
||||
* @param closeOnExit if true, close the window when the command exits
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TTerminalWindow(final TApplication application, final int x,
|
||||
final int y, final int flags, final String [] command,
|
||||
final boolean closeOnExit) {
|
||||
|
@ -199,6 +200,7 @@ public class TTerminalWindow extends TScrollableWindow {
|
|||
* @param flags mask of CENTERED, MODAL, or RESIZABLE
|
||||
* @param closeOnExit if true, close the window when the shell exits
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TTerminalWindow(final TApplication application, final int x,
|
||||
final int y, final int flags, final boolean closeOnExit) {
|
||||
|
||||
|
|
|
@ -152,6 +152,7 @@ public class TText extends TScrollableWidget {
|
|||
* @param colorKey ColorTheme key color to use for foreground
|
||||
* text. Default is "ttext".
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TText(final TWidget parent, final String text, final int x,
|
||||
final int y, final int width, final int height,
|
||||
final String colorKey) {
|
||||
|
|
|
@ -116,6 +116,7 @@ public class TTextPicture extends TScrollableWidget
|
|||
* @param width width of text area
|
||||
* @param height height of text area
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TTextPicture(final TWidget parent, final String filename,
|
||||
final int x, final int y, final int width, final int height) {
|
||||
|
||||
|
|
|
@ -90,6 +90,7 @@ public class TTextPictureWindow extends TScrollableWindow {
|
|||
* @param height height of window
|
||||
* @throws IOException if a java.io operation throws
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TTextPictureWindow(final TApplication parent, final String filename,
|
||||
final int x, final int y, final int width,
|
||||
final int height) throws IOException {
|
||||
|
|
|
@ -207,6 +207,7 @@ public abstract class TWidget implements Comparable<TWidget> {
|
|||
* @param parent parent widget
|
||||
* @param enabled if true assume enabled
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
protected TWidget(final TWidget parent, final boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
this.parent = parent;
|
||||
|
@ -228,6 +229,7 @@ public abstract class TWidget implements Comparable<TWidget> {
|
|||
* @param width width of widget
|
||||
* @param height height of widget
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
protected TWidget(final TWidget parent, final boolean enabled,
|
||||
final int x, final int y, final int width, final int height) {
|
||||
|
||||
|
|
|
@ -317,6 +317,7 @@ public class TWindow extends TWidget {
|
|||
* @param height height of window
|
||||
* @param flags mask of RESIZABLE, CENTERED, or MODAL
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TWindow(final TApplication application, final String title,
|
||||
final int x, final int y, final int width, final int height,
|
||||
final int flags) {
|
||||
|
|
|
@ -77,6 +77,7 @@ public class ECMA48Backend extends GenericBackend {
|
|||
* @throws UnsupportedEncodingException if an exception is thrown when
|
||||
* creating the InputStreamReader
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public ECMA48Backend(final Object listener, final InputStream input,
|
||||
final OutputStream output, final int windowWidth,
|
||||
final int windowHeight, final int fontSize)
|
||||
|
@ -131,6 +132,7 @@ public class ECMA48Backend extends GenericBackend {
|
|||
* @throws UnsupportedEncodingException if an exception is thrown when
|
||||
* creating the InputStreamReader
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public ECMA48Backend(final Object listener, final InputStream input,
|
||||
final OutputStream output,
|
||||
final boolean readOnly) throws UnsupportedEncodingException {
|
||||
|
@ -162,6 +164,7 @@ public class ECMA48Backend extends GenericBackend {
|
|||
* which uses System.in.
|
||||
* @throws IllegalArgumentException if input, reader, or writer are null.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public ECMA48Backend(final Object listener, final InputStream input,
|
||||
final Reader reader, final PrintWriter writer,
|
||||
final boolean setRawMode) {
|
||||
|
|
|
@ -567,6 +567,7 @@ public class ECMA48Terminal extends LogicalScreen
|
|||
* @throws UnsupportedEncodingException if an exception is thrown when
|
||||
* creating the InputStreamReader
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public ECMA48Terminal(final Backend backend, final Object listener,
|
||||
final InputStream input, final OutputStream output,
|
||||
final int windowWidth,
|
||||
|
@ -606,6 +607,7 @@ public class ECMA48Terminal extends LogicalScreen
|
|||
* @throws UnsupportedEncodingException if an exception is thrown when
|
||||
* creating the InputStreamReader
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public ECMA48Terminal(final Backend backend, final Object listener,
|
||||
final InputStream input,
|
||||
final OutputStream output) throws UnsupportedEncodingException {
|
||||
|
@ -717,6 +719,7 @@ public class ECMA48Terminal extends LogicalScreen
|
|||
* which uses System.in.
|
||||
* @throws IllegalArgumentException if input, reader, or writer are null.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public ECMA48Terminal(final Backend backend, final Object listener,
|
||||
final InputStream input, final Reader reader, final PrintWriter writer,
|
||||
final boolean setRawMode) {
|
||||
|
|
|
@ -1770,6 +1770,7 @@ public class HQSixelEncoder implements SixelEncoder {
|
|||
/**
|
||||
* Public constructor.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public HQSixelEncoder() {
|
||||
reloadOptions();
|
||||
}
|
||||
|
|
|
@ -775,6 +775,7 @@ public class LegacySixelEncoder implements SixelEncoder {
|
|||
/**
|
||||
* Public constructor.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public LegacySixelEncoder() {
|
||||
reloadOptions();
|
||||
}
|
||||
|
|
|
@ -70,6 +70,7 @@ public class MultiBackend implements Backend {
|
|||
*
|
||||
* @param backend the backend to add
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MultiBackend(final Backend backend) {
|
||||
backends.add(backend);
|
||||
if (backend instanceof TWindowBackend) {
|
||||
|
|
|
@ -94,6 +94,7 @@ public class SwingBackend extends GenericBackend {
|
|||
* @param fontSize the size in points. Good values to pick are: 16, 20,
|
||||
* 22, and 24.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public SwingBackend(final Object listener, final int windowWidth,
|
||||
final int windowHeight, final int fontSize) {
|
||||
|
||||
|
@ -120,6 +121,7 @@ public class SwingBackend extends GenericBackend {
|
|||
* @param fontSize the size in points. Good values to pick are: 16, 20,
|
||||
* 22, and 24.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public SwingBackend(final JComponent component, final Object listener,
|
||||
final int windowWidth, final int windowHeight, final int fontSize) {
|
||||
|
||||
|
|
|
@ -94,6 +94,7 @@ public class SwingComponent {
|
|||
*
|
||||
* @param frame the JFrame to draw to
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public SwingComponent(final JFrame frame) {
|
||||
this.frame = frame;
|
||||
if (System.getProperty("os.name").startsWith("Linux")) {
|
||||
|
@ -114,6 +115,7 @@ public class SwingComponent {
|
|||
*
|
||||
* @param component the JComponent to draw to
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public SwingComponent(final JComponent component) {
|
||||
this.component = component;
|
||||
adjustInsets = new Insets(BORDER, BORDER, BORDER, BORDER);
|
||||
|
|
|
@ -394,6 +394,7 @@ public class SwingTerminal extends LogicalScreen
|
|||
* @param listener the object this backend needs to wake up when new
|
||||
* input comes in
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public SwingTerminal(final Backend backend, final int windowWidth,
|
||||
final int windowHeight, final int fontSize, final Object listener) {
|
||||
|
||||
|
@ -523,6 +524,7 @@ public class SwingTerminal extends LogicalScreen
|
|||
* @param listener the object this backend needs to wake up when new
|
||||
* input comes in
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public SwingTerminal(final Backend backend, final JComponent component,
|
||||
final int windowWidth, final int windowHeight, final int fontSize,
|
||||
final Object listener) {
|
||||
|
|
|
@ -87,6 +87,7 @@ public class TTYSessionInfo implements SessionInfo {
|
|||
/**
|
||||
* Public constructor.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TTYSessionInfo() {
|
||||
// Populate lang and user from the environment
|
||||
username = System.getProperty("user.name");
|
||||
|
|
|
@ -160,6 +160,7 @@ public class TWindowBackend extends TWindow implements Backend {
|
|||
* @param width width of window
|
||||
* @param height height of window
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TWindowBackend(final Object listener,
|
||||
final TApplication application, final String title,
|
||||
final int width, final int height) {
|
||||
|
@ -186,6 +187,7 @@ public class TWindowBackend extends TWindow implements Backend {
|
|||
* @param height height of window
|
||||
* @param flags bitmask of RESIZABLE, CENTERED, or MODAL
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TWindowBackend(final Object listener,
|
||||
final TApplication application, final String title,
|
||||
final int width, final int height, final int flags) {
|
||||
|
@ -213,6 +215,7 @@ public class TWindowBackend extends TWindow implements Backend {
|
|||
* @param width width of window
|
||||
* @param height height of window
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TWindowBackend(final Object listener,
|
||||
final TApplication application, final String title,
|
||||
final int x, final int y, final int width, final int height) {
|
||||
|
@ -241,6 +244,7 @@ public class TWindowBackend extends TWindow implements Backend {
|
|||
* @param height height of window
|
||||
* @param flags mask of RESIZABLE, CENTERED, or MODAL
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TWindowBackend(final Object listener,
|
||||
final TApplication application, final String title,
|
||||
final int x, final int y, final int width, final int height,
|
||||
|
|
|
@ -167,6 +167,7 @@ public class Cell extends CellAttributes {
|
|||
*
|
||||
* @param cell the instance to copy
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Cell(final Cell cell) {
|
||||
setTo(cell);
|
||||
}
|
||||
|
|
|
@ -149,6 +149,7 @@ public class CellAttributes {
|
|||
* @param that another CellAttributes instance
|
||||
* @see #reset()
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public CellAttributes(final CellAttributes that) {
|
||||
setTo(that);
|
||||
}
|
||||
|
|
|
@ -62,6 +62,7 @@ public class ColorTheme {
|
|||
/**
|
||||
* Public constructor sets the theme to the default.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public ColorTheme() {
|
||||
colors = new TreeMap<String, CellAttributes>();
|
||||
setDefaultTheme();
|
||||
|
|
|
@ -80,6 +80,7 @@ public class DemoApplication extends TApplication {
|
|||
* @throws UnsupportedEncodingException if an exception is thrown when
|
||||
* creating the InputStreamReader
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public DemoApplication(final InputStream input,
|
||||
final OutputStream output) throws UnsupportedEncodingException {
|
||||
super(input, output);
|
||||
|
@ -100,6 +101,7 @@ public class DemoApplication extends TApplication {
|
|||
* which uses System.in.
|
||||
* @throws IllegalArgumentException if input, reader, or writer are null.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public DemoApplication(final InputStream input, final Reader reader,
|
||||
final PrintWriter writer, final boolean setRawMode) {
|
||||
super(input, reader, writer, setRawMode);
|
||||
|
@ -128,6 +130,7 @@ public class DemoApplication extends TApplication {
|
|||
*
|
||||
* @param backend a Backend that is already ready to go.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public DemoApplication(final Backend backend) {
|
||||
super(backend);
|
||||
|
||||
|
@ -140,6 +143,7 @@ public class DemoApplication extends TApplication {
|
|||
* @param backendType one of the TApplication.BackendType values
|
||||
* @throws Exception if TApplication can't instantiate the Backend.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public DemoApplication(final BackendType backendType) throws Exception {
|
||||
// For the Swing demo, use an initial size of 82x28 so that a
|
||||
// terminal window precisely fits the window.
|
||||
|
|
|
@ -68,6 +68,7 @@ public class DemoEditorWindow extends TWindow {
|
|||
* @param title the text string
|
||||
* @param text the text string
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public DemoEditorWindow(final TApplication parent, final String title,
|
||||
final String text) {
|
||||
|
||||
|
|
|
@ -114,6 +114,7 @@ public class DemoMainWindow extends TWindow {
|
|||
*
|
||||
* @param parent the main application
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public DemoMainWindow(final TApplication parent) {
|
||||
this(parent, CENTERED | RESIZABLE);
|
||||
}
|
||||
|
@ -124,6 +125,7 @@ public class DemoMainWindow extends TWindow {
|
|||
* @param parent the main application
|
||||
* @param flags bitmask of MODAL, CENTERED, or RESIZABLE
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
private DemoMainWindow(final TApplication parent, final int flags) {
|
||||
// Construct a demo window. X and Y don't matter because it will be
|
||||
// centered on screen.
|
||||
|
|
|
@ -101,6 +101,7 @@ public class DemoPixelsWindow extends TWindow {
|
|||
*
|
||||
* @param parent the main application
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public DemoPixelsWindow(final TApplication parent) {
|
||||
// Construct a demo window. X and Y don't matter because it will be
|
||||
// centered on screen.
|
||||
|
|
|
@ -67,6 +67,7 @@ public class DemoTableWindow extends TWindow {
|
|||
* @param parent the main application
|
||||
* @param title the text string
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public DemoTableWindow(final TApplication parent, final String title) {
|
||||
|
||||
super(parent, title, 0, 0, 44, 22, RESIZABLE);
|
||||
|
|
|
@ -70,6 +70,7 @@ public class DemoTextWindow extends TWindow {
|
|||
* @param title the text string
|
||||
* @param text the text string
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public DemoTextWindow(final TApplication parent, final String title,
|
||||
final String text) {
|
||||
|
||||
|
|
|
@ -69,6 +69,7 @@ public class DemoTreeViewWindow extends TWindow {
|
|||
* @param parent the main application
|
||||
* @throws IOException if a java.io operation throws
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public DemoTreeViewWindow(final TApplication parent) throws IOException {
|
||||
super(parent, i18n.getString("windowTitle"), 0, 0, 44, 16,
|
||||
TWindow.RESIZABLE);
|
||||
|
|
|
@ -59,6 +59,7 @@ public class DesktopDemoApplication extends TApplication {
|
|||
* @param backendType one of the TApplication.BackendType values
|
||||
* @throws Exception if TApplication can't instantiate the Backend.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public DesktopDemoApplication(final BackendType backendType) throws Exception {
|
||||
super(backendType);
|
||||
addAllWidgets();
|
||||
|
|
|
@ -79,6 +79,7 @@ public class THelpText extends TScrollableWidget {
|
|||
* @param width width of text area
|
||||
* @param height height of text area
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public THelpText(final THelpWindow parent, final Topic topic, final int x,
|
||||
final int y, final int width, final int height) {
|
||||
|
||||
|
|
|
@ -67,6 +67,7 @@ public class TParagraph extends TWidget {
|
|||
* @param parent parent widget
|
||||
* @param words the pieces of the paragraph to display
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TParagraph(final THelpText parent, final List<TWord> words) {
|
||||
|
||||
// Set parent and window
|
||||
|
|
|
@ -69,6 +69,7 @@ public class TWord extends TWidget {
|
|||
* @param words the words to display
|
||||
* @param link link to other topic, or null
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TWord(final String words, final Link link) {
|
||||
|
||||
// TWord is created by THelpText before the TParagraph is belongs to
|
||||
|
|
|
@ -180,6 +180,7 @@ public class TMenu extends TWindow {
|
|||
* shortcut (mnemonic), denoted by prefixing a letter with "&",
|
||||
* e.g. "&File"
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TMenu(final TApplication parent, final int x, final int y,
|
||||
final String label) {
|
||||
|
||||
|
|
|
@ -103,6 +103,7 @@ public class Document {
|
|||
* @param str the text string
|
||||
* @param defaultColor the color for unhighlighted text
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Document(final String str, final CellAttributes defaultColor) {
|
||||
this.defaultColor = defaultColor;
|
||||
|
||||
|
|
|
@ -88,6 +88,7 @@ public class Line {
|
|||
* @param defaultColor the color for unhighlighted text
|
||||
* @param highlighter the highlighter to use
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Line(final String str, final CellAttributes defaultColor,
|
||||
final Highlighter highlighter) {
|
||||
|
||||
|
|
|
@ -702,6 +702,7 @@ public class ECMA48 implements Runnable {
|
|||
* @throws UnsupportedEncodingException if an exception is thrown when
|
||||
* creating the InputStreamReader
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public ECMA48(final DeviceType type, final InputStream inputStream,
|
||||
final OutputStream outputStream, final DisplayListener displayListener,
|
||||
final Backend backend) throws UnsupportedEncodingException {
|
||||
|
|
|
@ -83,6 +83,7 @@ public class TDirectoryTreeItem extends TTreeItem {
|
|||
* return the root path entry
|
||||
* @throws IOException if a java.io operation throws
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TDirectoryTreeItem(final TTreeViewWidget view, final String text,
|
||||
final boolean expanded, final boolean openParents) throws IOException {
|
||||
|
||||
|
|
|
@ -117,6 +117,7 @@ public class TTreeItem extends TWidget {
|
|||
* @param text text for this item
|
||||
* @param expanded if true, have it expanded immediately
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TTreeItem(final TTreeView view, final String text,
|
||||
final boolean expanded) {
|
||||
|
||||
|
|
|
@ -94,6 +94,7 @@ public class TTreeViewWidget extends TScrollableWidget {
|
|||
* @param height height of tree view
|
||||
* @param action action to perform when an item is selected
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TTreeViewWidget(final TWidget parent, final int x, final int y,
|
||||
final int width, final int height, final TAction action) {
|
||||
|
||||
|
|
|
@ -100,6 +100,7 @@ public class TTreeViewWindow extends TScrollableWindow {
|
|||
* @param flags bitmask of RESIZABLE, CENTERED, or MODAL
|
||||
* @param action action to perform when an item is selected
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TTreeViewWindow(final TApplication parent, final String title,
|
||||
final int x, final int y, final int width, final int height,
|
||||
final int flags, final TAction action) {
|
||||
|
|
Loading…
Reference in a new issue