Skip to content

Commit ad8e382

Browse files
committed
couple warnings
1 parent 737f5c4 commit ad8e382

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/src/processing/app/syntax/PdeTextAreaPainter.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ public void setMode(Mode mode) {
108108
* then the line (background color and text).
109109
*
110110
* @param gfx the graphics context
111-
* @param tokenMarker
112111
* @param line 0-based line number
113112
* @param x horizontal position
114113
*/
@@ -145,8 +144,8 @@ protected void paintErrorLine(Graphics gfx, int line, int x) {
145144
int y = textArea.lineToY(line) + fm.getLeading() + fm.getMaxDescent();
146145

147146
try {
148-
String badCode = null;
149-
String goodCode = null;
147+
String badCode;
148+
String goodCode;
150149
try {
151150
SyntaxDocument doc = textArea.getDocument();
152151
badCode = doc.getText(wiggleStart, wiggleStop - wiggleStart);

0 commit comments

Comments
 (0)