Skip to content

Commit

Permalink
Fixed a bunch of simple warnings in java code
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jan 13, 2015
1 parent 99715d2 commit 29d2ab7
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions app/src/processing/app/syntax/SyntaxUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ public static int paintSyntaxLine(Segment line, Token tokens,
Font defaultFont = gfx.getFont();
Color defaultColor = gfx.getColor();

int offset = 0;
for(;;)
{
byte id = tokens.id;
Expand All @@ -155,7 +154,6 @@ public static int paintSyntaxLine(Segment line, Token tokens,
else
x = Utilities.drawTabbedText(line, x, y, gfx, expander, 0);
line.offset += length;
offset += length;

tokens = tokens.next;
}
Expand Down
1 change: 0 additions & 1 deletion app/src/processing/app/tools/AutoFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,6 @@ public void run() {
case '\'':
string[j++] = c;
cc = getchr();
int count = 0;
while(cc != c && EOF == 0)
{
// max. length of line should be 256
Expand Down
1 change: 0 additions & 1 deletion app/src/processing/app/tools/MenuScroller.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
package processing.app.tools;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import org.fest.swing.fixture.JMenuItemFixture;
import org.junit.Test;
import processing.app.helpers.JEditTextAreaFixture;
import processing.app.syntax.JEditTextArea;

import static org.junit.Assert.assertEquals;

Expand Down
1 change: 1 addition & 0 deletions arduino-core/src/processing/app/windows/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* @author TB
*/
public interface Options {
@SuppressWarnings("serial")
Map<String, Object> UNICODE_OPTIONS = new HashMap<String, Object>() {
{
put(OPTION_TYPE_MAPPER, W32APITypeMapper.UNICODE);
Expand Down

0 comments on commit 29d2ab7

Please sign in to comment.