Skip to content

Commit df5a630

Browse files
committed
Small fixes suggested by SpotBugs
1 parent 1f0add2 commit df5a630

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/org/truffleruby/core/rope/RopeConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class RopeConstants {
3030
public static final LeafRope[] UTF8_SINGLE_BYTE_ROPES = new LeafRope[256];
3131
public static final LeafRope[] US_ASCII_SINGLE_BYTE_ROPES = new LeafRope[256];
3232
public static final LeafRope[] ASCII_8BIT_SINGLE_BYTE_ROPES = new LeafRope[256];
33-
public static final Map<String, LeafRope> ROPE_CONSTANTS = new HashMap<>();
33+
static final Map<String, LeafRope> ROPE_CONSTANTS = new HashMap<>();
3434

3535
static {
3636
for (int i = 0; i < 128; i++) {

src/main/java/org/truffleruby/parser/scope/StaticScope.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ public int exists(String name) {
214214
return findVariableName(name);
215215
}
216216

217+
@SuppressFBWarnings("ES")
217218
private int findVariableName(String name) {
218219
assert name == name.intern() : name;
219220
for (int i = 0; i < variableNames.length; i++) {
@@ -327,6 +328,7 @@ public long getCommandArgumentStack() {
327328
return commandArgumentStack;
328329
}
329330

331+
@SuppressFBWarnings("ES")
330332
private void growVariableNames(String name) {
331333
assert name == name.intern() : name;
332334
String[] newVariableNames = new String[variableNames.length + 1];

0 commit comments

Comments
 (0)