mirror of
https://github.com/processing/processing4.git
synced 2026-01-30 03:41:15 +01:00
cleaning more warnings and remove empty class
This commit is contained in:
@@ -864,7 +864,7 @@ public class AutoFormat implements Formatter {
|
||||
* @param result The code to format.
|
||||
* @return The formatted code.
|
||||
*/
|
||||
private String simpleRegexCleanup(String result) {
|
||||
static private String simpleRegexCleanup(String result) {
|
||||
return result.replaceAll("([^ \n]+) +\n", "$1\n"); // Remove trail whitespace
|
||||
}
|
||||
}
|
||||
|
||||
@@ -299,7 +299,7 @@ public class RuntimePathBuilder {
|
||||
* @param caches The caches to invalidate so that, when their value is requested again, the value
|
||||
* is generated again.
|
||||
*/
|
||||
private void invalidateAll(List<CachedRuntimePathFactory> caches) {
|
||||
static private void invalidateAll(List<CachedRuntimePathFactory> caches) {
|
||||
for (CachedRuntimePathFactory cache : caches) {
|
||||
cache.invalidateCache();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,6 @@ public class PdeParseTreeListener extends ProcessingBaseListener {
|
||||
private static final String VERSION_STR = "3.0.0";
|
||||
private static final String SIZE_METHOD_NAME = "size";
|
||||
private static final String FULLSCREEN_METHOD_NAME = "fullScreen";
|
||||
private final int tabSize;
|
||||
|
||||
private String sketchName;
|
||||
private boolean isTesting;
|
||||
@@ -100,7 +99,6 @@ public class PdeParseTreeListener extends ProcessingBaseListener {
|
||||
|
||||
rewriter = new TokenStreamRewriter(tokens);
|
||||
sketchName = newSketchName;
|
||||
tabSize = newTabSize;
|
||||
destinationPackageName = newDestinationPackageName;
|
||||
|
||||
pdeParseTreeErrorListenerMaybe = Optional.empty();
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
package processing.mode.java.preproc.code;
|
||||
|
||||
import org.antlr.v4.runtime.TokenStreamRewriter;
|
||||
import processing.mode.java.preproc.PdeParseTreeListener;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user