mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
Merge pull request #2826 from federicobond/primitive-optimization
Optimize creation of boxed primitives
This commit is contained in:
@@ -486,7 +486,7 @@ public class IntDict {
|
||||
keys = PApplet.expand(keys);
|
||||
values = PApplet.expand(values);
|
||||
}
|
||||
indices.put(what, new Integer(count));
|
||||
indices.put(what, Integer.valueOf(count));
|
||||
keys[count] = what;
|
||||
values[count] = much;
|
||||
count++;
|
||||
@@ -532,8 +532,8 @@ public class IntDict {
|
||||
keys[b] = tkey;
|
||||
values[b] = tvalue;
|
||||
|
||||
indices.put(keys[a], new Integer(a));
|
||||
indices.put(keys[b], new Integer(b));
|
||||
indices.put(keys[a], Integer.valueOf(a));
|
||||
indices.put(keys[b], Integer.valueOf(b));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user