Skip to content

Commit 29d2ab7

Browse files
committed
Fixed a bunch of simple warnings in java code
1 parent 99715d2 commit 29d2ab7

File tree

5 files changed

+1
-5
lines changed

5 files changed

+1
-5
lines changed

app/src/processing/app/syntax/SyntaxUtilities.java

-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ public static int paintSyntaxLine(Segment line, Token tokens,
131131
Font defaultFont = gfx.getFont();
132132
Color defaultColor = gfx.getColor();
133133

134-
int offset = 0;
135134
for(;;)
136135
{
137136
byte id = tokens.id;
@@ -155,7 +154,6 @@ public static int paintSyntaxLine(Segment line, Token tokens,
155154
else
156155
x = Utilities.drawTabbedText(line, x, y, gfx, expander, 0);
157156
line.offset += length;
158-
offset += length;
159157

160158
tokens = tokens.next;
161159
}

app/src/processing/app/tools/AutoFormat.java

-1
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,6 @@ public void run() {
639639
case '\'':
640640
string[j++] = c;
641641
cc = getchr();
642-
int count = 0;
643642
while(cc != c && EOF == 0)
644643
{
645644
// max. length of line should be 256

app/src/processing/app/tools/MenuScroller.java

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44
package processing.app.tools;
55

6-
import java.awt.BorderLayout;
76
import java.awt.Color;
87
import java.awt.Component;
98
import java.awt.Dimension;

app/test/processing/app/ReplacingTextGeneratesTwoUndoActionsTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import org.fest.swing.fixture.JMenuItemFixture;
44
import org.junit.Test;
55
import processing.app.helpers.JEditTextAreaFixture;
6-
import processing.app.syntax.JEditTextArea;
76

87
import static org.junit.Assert.assertEquals;
98

arduino-core/src/processing/app/windows/Options.java

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* @author TB
1919
*/
2020
public interface Options {
21+
@SuppressWarnings("serial")
2122
Map<String, Object> UNICODE_OPTIONS = new HashMap<String, Object>() {
2223
{
2324
put(OPTION_TYPE_MAPPER, W32APITypeMapper.UNICODE);

0 commit comments

Comments
 (0)