1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Fixed a bunch of simple warnings in java code

This commit is contained in:
Cristian Maglie
2015-01-13 23:08:31 +01:00
parent 99715d22d9
commit 29d2ab72e2
5 changed files with 1 additions and 5 deletions

View File

@ -131,7 +131,6 @@ public class SyntaxUtilities
Font defaultFont = gfx.getFont(); Font defaultFont = gfx.getFont();
Color defaultColor = gfx.getColor(); Color defaultColor = gfx.getColor();
int offset = 0;
for(;;) for(;;)
{ {
byte id = tokens.id; byte id = tokens.id;
@ -155,7 +154,6 @@ public class SyntaxUtilities
else else
x = Utilities.drawTabbedText(line, x, y, gfx, expander, 0); x = Utilities.drawTabbedText(line, x, y, gfx, expander, 0);
line.offset += length; line.offset += length;
offset += length;
tokens = tokens.next; tokens = tokens.next;
} }

View File

@ -639,7 +639,6 @@ public class AutoFormat implements Tool {
case '\'': case '\'':
string[j++] = c; string[j++] = c;
cc = getchr(); cc = getchr();
int count = 0;
while(cc != c && EOF == 0) while(cc != c && EOF == 0)
{ {
// max. length of line should be 256 // max. length of line should be 256

View File

@ -3,7 +3,6 @@
*/ */
package processing.app.tools; package processing.app.tools;
import java.awt.BorderLayout;
import java.awt.Color; import java.awt.Color;
import java.awt.Component; import java.awt.Component;
import java.awt.Dimension; import java.awt.Dimension;

View File

@ -3,7 +3,6 @@ package processing.app;
import org.fest.swing.fixture.JMenuItemFixture; import org.fest.swing.fixture.JMenuItemFixture;
import org.junit.Test; import org.junit.Test;
import processing.app.helpers.JEditTextAreaFixture; import processing.app.helpers.JEditTextAreaFixture;
import processing.app.syntax.JEditTextArea;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;

View File

@ -18,6 +18,7 @@ import java.util.*;
* @author TB * @author TB
*/ */
public interface Options { public interface Options {
@SuppressWarnings("serial")
Map<String, Object> UNICODE_OPTIONS = new HashMap<String, Object>() { Map<String, Object> UNICODE_OPTIONS = new HashMap<String, Object>() {
{ {
put(OPTION_TYPE_MAPPER, W32APITypeMapper.UNICODE); put(OPTION_TYPE_MAPPER, W32APITypeMapper.UNICODE);