mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-15 00:02:49 +03:00
Fixed a bunch of simple warnings in java code
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user