This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit 72deba2aa75a24d6c3945ea0d38e531a909eb11d Author: Josh Tynjala <[email protected]> AuthorDate: Thu Jun 20 09:04:56 2024 -0700 clean up some warnings --- .../src/main/java/org/apache/royale/compiler/clients/COMPC.java | 3 +-- .../src/main/java/org/apache/royale/compiler/clients/MXMLC.java | 6 ++++-- debugger/src/main/java/royale/tools/debugger/cli/BreakAction.java | 2 +- debugger/src/main/java/royale/tools/debugger/cli/DebugCLI.java | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/compiler/src/main/java/org/apache/royale/compiler/clients/COMPC.java b/compiler/src/main/java/org/apache/royale/compiler/clients/COMPC.java index 62bd4e53f..8beaa9fe7 100644 --- a/compiler/src/main/java/org/apache/royale/compiler/clients/COMPC.java +++ b/compiler/src/main/java/org/apache/royale/compiler/clients/COMPC.java @@ -47,7 +47,6 @@ import org.apache.royale.swc.io.ISWCWriter; import org.apache.royale.swc.io.SWCDirectoryWriter; import org.apache.royale.swc.io.SWCWriter; import org.apache.royale.swf.io.SizeReportWritingSWFWriter; -import org.apache.flex.tools.FlexTool; import org.apache.royale.utils.FilenameNormalization; /** @@ -56,7 +55,7 @@ import org.apache.royale.utils.FilenameNormalization; * This class is a quick start of component compiler. It depends on most of the * functionalities developed for mxmlc. */ -public class COMPC extends MXMLC implements FlexTool +public class COMPC extends MXMLC { /** * Entry point for <code>compc</code> tool. diff --git a/compiler/src/main/java/org/apache/royale/compiler/clients/MXMLC.java b/compiler/src/main/java/org/apache/royale/compiler/clients/MXMLC.java index b45f13a5c..3d9b9f8dd 100644 --- a/compiler/src/main/java/org/apache/royale/compiler/clients/MXMLC.java +++ b/compiler/src/main/java/org/apache/royale/compiler/clients/MXMLC.java @@ -260,7 +260,8 @@ public class MXMLC implements FlexTool { if ((CompilerDiagnosticsConstants.diagnostics & CompilerDiagnosticsConstants.COMPC_PHASES) == CompilerDiagnosticsConstants.COMPC_PHASES) System.out.println("Failed with exceptions"); - (new PrintStream(err)).println(e.getMessage()); + PrintStream printStream = new PrintStream(err); + printStream.println(e.getMessage()); exitCode = ExitCode.FAILED_WITH_EXCEPTIONS; } finally @@ -392,7 +393,8 @@ public class MXMLC implements FlexTool } catch (Exception e) { - (new PrintStream(err)).println(e.getMessage()); + PrintStream printStream = new PrintStream(err); + printStream.println(e.getMessage()); exitCode = ExitCode.FAILED_WITH_EXCEPTIONS; } finally diff --git a/debugger/src/main/java/royale/tools/debugger/cli/BreakAction.java b/debugger/src/main/java/royale/tools/debugger/cli/BreakAction.java index 3899a709c..a5fd6995e 100644 --- a/debugger/src/main/java/royale/tools/debugger/cli/BreakAction.java +++ b/debugger/src/main/java/royale/tools/debugger/cli/BreakAction.java @@ -139,7 +139,7 @@ public class BreakAction LocationCollection col = getLocations(); if (col != null) { - Iterator itr = col.iterator(); + Iterator<Location> itr = col.iterator(); // probe all locations looking for a match while(!match && itr.hasNext()) diff --git a/debugger/src/main/java/royale/tools/debugger/cli/DebugCLI.java b/debugger/src/main/java/royale/tools/debugger/cli/DebugCLI.java index 4b161bf53..d6d13bf5b 100644 --- a/debugger/src/main/java/royale/tools/debugger/cli/DebugCLI.java +++ b/debugger/src/main/java/royale/tools/debugger/cli/DebugCLI.java @@ -6593,7 +6593,7 @@ public class DebugCLI implements Runnable, SourceLocator { cmd = CMD_COMMENT; else { // long start = System.currentTimeMillis(); - ArrayList ar = cmdList.elementsStartingWith(input); + ArrayList<Integer> ar = cmdList.elementsStartingWith(input); // long end = System.currentTimeMillis(); int size = ar.size();
