Update compile to JDK 24

This commit is contained in:
Autumn Lamonte 2024-08-29 18:48:30 -05:00
parent d299c9ba85
commit ce0d379497
64 changed files with 91 additions and 3 deletions

View file

@ -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"/>

View file

@ -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);

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {

View file

@ -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());

View file

@ -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) {

View file

@ -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

View file

@ -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) {

View file

@ -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 {

View file

@ -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) {

View file

@ -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) {

View file

@ -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 {

View file

@ -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);

View file

@ -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) {

View file

@ -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 {

View file

@ -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) {

View file

@ -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) {

View file

@ -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,

View file

@ -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) {

View file

@ -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

View file

@ -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) {

View file

@ -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

View file

@ -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) {

View file

@ -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 {

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {

View file

@ -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 {

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {

View file

@ -1770,6 +1770,7 @@ public class HQSixelEncoder implements SixelEncoder {
/**
* Public constructor.
*/
@SuppressWarnings("this-escape")
public HQSixelEncoder() {
reloadOptions();
}

View file

@ -775,6 +775,7 @@ public class LegacySixelEncoder implements SixelEncoder {
/**
* Public constructor.
*/
@SuppressWarnings("this-escape")
public LegacySixelEncoder() {
reloadOptions();
}

View file

@ -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) {

View file

@ -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) {

View file

@ -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);

View file

@ -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) {

View file

@ -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");

View file

@ -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,

View file

@ -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);
}

View file

@ -149,6 +149,7 @@ public class CellAttributes {
* @param that another CellAttributes instance
* @see #reset()
*/
@SuppressWarnings("this-escape")
public CellAttributes(final CellAttributes that) {
setTo(that);
}

View file

@ -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();

View file

@ -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.

View file

@ -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) {

View file

@ -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.

View file

@ -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.

View file

@ -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);

View file

@ -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) {

View file

@ -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);

View file

@ -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();

View file

@ -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) {

View file

@ -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

View file

@ -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

View file

@ -180,6 +180,7 @@ public class TMenu extends TWindow {
* shortcut (mnemonic), denoted by prefixing a letter with "&amp;",
* e.g. "&amp;File"
*/
@SuppressWarnings("this-escape")
public TMenu(final TApplication parent, final int x, final int y,
final String label) {

View file

@ -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;

View file

@ -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) {

View file

@ -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 {

View file

@ -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 {

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {