Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/processing/app/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class Preferences {
* Windows XP needs 66, and my Ubuntu machine needs 80+, so 80 seems proper.
*/
static public int BUTTON_WIDTH =
Integer.valueOf(Language.text("preferences.button.width"));
Integer.parseInt(Language.text("preferences.button.width"));

/** height of the EditorHeader, EditorToolbar, and EditorStatus */
static final int GRID_SIZE = 32;
Expand Down
2 changes: 1 addition & 1 deletion app/src/processing/app/tools/ColorSelector.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class ColorSelector implements Tool {
* Only create one instance, otherwise we'll have dozens of animation
* threads going if you open/close a lot of editor windows.
*/
static ColorChooser selector;
private static volatile ColorChooser selector;

private Editor editor;

Expand Down
6 changes: 0 additions & 6 deletions app/src/processing/mode/java/PresentMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ public class PresentMode {
//JMenu preferencesMenu;
static JComboBox selector;

/**
* Index of the currently selected display to be used for present mode.
*/
static GraphicsDevice device;


static {
GraphicsEnvironment environment =
Expand All @@ -75,7 +70,6 @@ public class PresentMode {
selector.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
int index = selector.getSelectedIndex();
//device = devices[index];
Preferences.setInteger("run.present.display", index + 1);
}
});
Expand Down
4 changes: 2 additions & 2 deletions core/src/processing/core/PApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -2637,7 +2637,7 @@ public void updateListeners(Component comp) {
// protected int eventCount;


class InternalEventQueue {
static class InternalEventQueue {
protected Event queue[] = new Event[10];
protected int offset;
protected int count;
Expand Down Expand Up @@ -9049,7 +9049,7 @@ static public String[] split(String value, char delim) {
//}
if (splitCount == 0) {
String splits[] = new String[1];
splits[0] = new String(value);
splits[0] = value;
return splits;
}
//int pieceCount = splitCount + 1;
Expand Down
8 changes: 4 additions & 4 deletions core/src/processing/core/PShapeSVG.java
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,7 @@ public Font(PShapeSVG parent, XML properties) {
namedGlyphs.put(fg.name, fg);
}
if (fg.unicode != 0) {
unicodeGlyphs.put(new Character(fg.unicode), fg);
unicodeGlyphs.put(Character.valueOf(fg.unicode), fg);
}
}
glyphs[glyphCount++] = fg;
Expand Down Expand Up @@ -1845,7 +1845,7 @@ public void drawString(PGraphics g, String str, float x, float y, float size) {
char[] c = str.toCharArray();
for (int i = 0; i < c.length; i++) {
// call draw on each char (pulling it w/ the unicode table)
FontGlyph fg = unicodeGlyphs.get(new Character(c[i]));
FontGlyph fg = unicodeGlyphs.get(Character.valueOf(c[i]));
if (fg != null) {
fg.draw(g);
// add horizAdvX/unitsPerEm to the x coordinate along the way
Expand All @@ -1863,7 +1863,7 @@ public void drawChar(PGraphics g, char c, float x, float y, float size) {
float s = size / face.unitsPerEm;
g.translate(x, y);
g.scale(s, -s);
FontGlyph fg = unicodeGlyphs.get(new Character(c));
FontGlyph fg = unicodeGlyphs.get(Character.valueOf(c));
if (fg != null) g.shape(fg);
g.popMatrix();
}
Expand All @@ -1874,7 +1874,7 @@ public float textWidth(String str, float size) {
char[] c = str.toCharArray();
for (int i = 0; i < c.length; i++) {
// call draw on each char (pulling it w/ the unicode table)
FontGlyph fg = unicodeGlyphs.get(new Character(c[i]));
FontGlyph fg = unicodeGlyphs.get(Character.valueOf(c[i]));
if (fg != null) {
w += (float) fg.horizAdvX / face.unitsPerEm;
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/processing/data/JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,7 @@ static protected Object stringToValue(String string) {
return d;
}
} else {
Long myLong = new Long(string);
Long myLong = Long.valueOf(string);
if (myLong.longValue() == myLong.intValue()) {
return Integer.valueOf(myLong.intValue());
} else {
Expand Down
2 changes: 1 addition & 1 deletion core/src/processing/data/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -3627,7 +3627,7 @@ protected void checkBounds(int row, int column) {
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


class HashMapBlows {
static class HashMapBlows {
HashMap<String,Integer> dataToIndex = new HashMap<String, Integer>();
ArrayList<String> indexToData = new ArrayList<String>();

Expand Down
2 changes: 1 addition & 1 deletion core/src/processing/opengl/PJOGL.java
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ protected Tessellator createTessellator(TessellatorCallback callback) {
}


protected class Tessellator implements PGL.Tessellator {
protected static class Tessellator implements PGL.Tessellator {
protected GLUtessellator tess;
protected TessellatorCallback callback;
protected GLUCallback gluCallback;
Expand Down
2 changes: 1 addition & 1 deletion core/src/processing/opengl/PShader.java
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ protected void setPointAttribute(int vboId, int size, int type,
//
// Class to store a user-specified value for a uniform parameter
// in the shader
protected class UniformValue {
protected static class UniformValue {
static final int INT1 = 0;
static final int INT2 = 1;
static final int INT3 = 2;
Expand Down