mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 19:31:16 +01:00
get rid of warnings
This commit is contained in:
@@ -22,7 +22,6 @@ package processing.mode.java.pdex;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.EventQueue;
|
||||
import java.awt.Rectangle;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
|
||||
@@ -225,16 +225,16 @@ public class ErrorCheckerService implements Runnable {
|
||||
// + "(void|int|float|double|String|char|byte|boolean)"
|
||||
// + "(\\s*\\[\\s*\\])?\\s+[a-zA-Z0-9]+\\s*\\(", Pattern.MULTILINE);
|
||||
|
||||
/**
|
||||
* Matches setup or draw function declaration. We search for all those
|
||||
* modifiers and return types in order to have proper error message
|
||||
* when people use incompatible modifiers or non-void return type
|
||||
*/
|
||||
private static final Pattern SETUP_OR_DRAW_FUNCTION_DECL =
|
||||
Pattern.compile("(^|;)\\s*((public|private|protected|final|static)\\s+)*" +
|
||||
"(void|int|float|double|String|char|byte|boolean)" +
|
||||
"(\\s*\\[\\s*\\])?\\s+(setup|draw)\\s*\\(",
|
||||
Pattern.MULTILINE);
|
||||
// /**
|
||||
// * Matches setup or draw function declaration. We search for all those
|
||||
// * modifiers and return types in order to have proper error message
|
||||
// * when people use incompatible modifiers or non-void return type
|
||||
// */
|
||||
// private static final Pattern SETUP_OR_DRAW_FUNCTION_DECL =
|
||||
// Pattern.compile("(^|;)\\s*((public|private|protected|final|static)\\s+)*" +
|
||||
// "(void|int|float|double|String|char|byte|boolean)" +
|
||||
// "(\\s*\\[\\s*\\])?\\s+(setup|draw)\\s*\\(",
|
||||
// Pattern.MULTILINE);
|
||||
|
||||
protected ErrorMessageSimplifier errorMsgSimplifier;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user