get rid of warnings

This commit is contained in:
Ben Fry
2015-09-18 09:30:22 -04:00
parent 95215e68e3
commit ca320883ff
2 changed files with 10 additions and 11 deletions

View File

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

View File

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