Skip to content

Commit f74cc4b

Browse files
committed
Fix warning about useless @ReportPolymorphism annotation
1 parent 4fc78e1 commit f74cc4b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/main/java/org/truffleruby/cext/CExtNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,6 @@ Object rbConstSet(RubyModule module, Object name, Object value,
10501050
}
10511051

10521052
@Primitive(name = "rb_gv_get")
1053-
@ReportPolymorphism
10541053
public abstract static class RbGvGetNode extends PrimitiveArrayArgumentsNode {
10551054
@Specialization
10561055
Object rbGvGet(VirtualFrame frame, String name,
@@ -1075,6 +1074,7 @@ Object rbGvGet(VirtualFrame frame, String name,
10751074
}
10761075

10771076

1077+
@ReportPolymorphism
10781078
@GenerateInline
10791079
@GenerateCached(false)
10801080
public abstract static class RbGvGetInnerNode extends RubyBaseNode {

src/main/java/org/truffleruby/core/array/ArrayNodes.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,6 @@ public void accept(Node node, CallBlockNode yieldNode, RubyArray array, Object s
18061806
@NodeChild(value = "array", type = RubyNode.class)
18071807
@NodeChild(value = "other", type = RubyBaseNodeWithExecute.class)
18081808
@ImportStatic(ArrayGuards.class)
1809-
@ReportPolymorphism
18101809
public abstract static class ReplaceNode extends CoreMethodNode {
18111810

18121811
@NeverDefault

src/main/java/org/truffleruby/core/binding/BindingNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ static Object localVariableGetLastLine(Node node, RubyBinding binding, String na
299299
}
300300
}
301301

302-
@ReportPolymorphism
303302
@CoreMethod(names = "local_variable_set", required = 2)
304303
public abstract static class BindingLocalVariableSetNode extends CoreMethodArrayArgumentsNode {
305304

@@ -313,6 +312,7 @@ Object localVariableSet(RubyBinding binding, Object nameObject, Object value,
313312
}
314313

315314

315+
@ReportPolymorphism
316316
@GenerateUncached
317317
@ImportStatic({ BindingNodes.class, FindDeclarationVariableNodes.class })
318318
@GenerateCached(false)

0 commit comments

Comments
 (0)