1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-20 14:54:31 +01: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();
Color defaultColor = gfx.getColor();
int offset = 0;
for(;;)
{
byte id = tokens.id;
@ -155,7 +154,6 @@ public class SyntaxUtilities
else
x = Utilities.drawTabbedText(line, x, y, gfx, expander, 0);
line.offset += length;
offset += length;
tokens = tokens.next;
}

View File

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

View File

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

View File

@ -3,7 +3,6 @@ package processing.app;
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;

View File

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