Skip to content

Commit 0bb6ddc

Browse files
Minor warning cleanups
1 parent e6c0876 commit 0bb6ddc

File tree

6 files changed

+3
-4
lines changed

6 files changed

+3
-4
lines changed

espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/ffi/Callback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public Callback(int arity, Function function) {
4040
this.function = function;
4141
}
4242

43-
@SuppressWarnings("static-method")
4443
@ExportMessage
44+
@SuppressWarnings("static-method")
4545
boolean isExecutable() {
4646
return true;
4747
}

espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/nodes/IntrinsicSubstitutorNode.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ public boolean hasScope(@SuppressWarnings("unused") Frame frame) {
116116
}
117117

118118
@ExportMessage
119-
@SuppressWarnings("static-method")
120119
public Object getScope(Frame frame, @SuppressWarnings("unused") boolean nodeEnter) {
121120
return new SubstitutionScope(frame.getArguments(), getMethodVersion());
122121
}

espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/nodes/IntrinsifiedNativeMethodNode.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public boolean hasScope(@SuppressWarnings("unused") Frame frame) {
6969
}
7070

7171
@ExportMessage
72-
@SuppressWarnings("static-method")
7372
public Object getScope(Frame frame, @SuppressWarnings("unused") boolean nodeEnter) {
7473
return new SubstitutionScope(frame.getArguments(), getMethodVersion());
7574
}

espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/nodes/commands/AddPathToBindingsNode.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public boolean isExecutable() {
6262
}
6363

6464
@ExportMessage
65+
@SuppressWarnings("static-method")
6566
public Object execute(Object[] args,
6667
@Cached AddPathToBindingsNode addPath) throws ArityException, UnsupportedTypeException {
6768
// Args are checked in addPathToBindingsNode.

espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/nodes/quick/BaseQuickNode.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public abstract class BaseQuickNode extends EspressoNode implements BciProvider,
4848

4949
public abstract int execute(VirtualFrame frame, boolean isContinuationResume);
5050

51+
@Override
5152
public boolean isInstrumentable() {
5253
return true;
5354
}

espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime/dispatch/staticobject/MapInterop.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ public static void removeHashEntry(StaticObject receiver, Object key,
177177
}
178178
}
179179

180-
@SuppressWarnings("static-method")
181180
@ExportMessage
182181
public static Object getHashEntriesIterator(StaticObject receiver,
183182
@CachedLibrary(limit = "1") InteropLibrary setLibrary,

0 commit comments

Comments
 (0)