Skip to content

Commit 9081458

Browse files
committed
fix a problem with the ECJ build
1 parent 9bad639 commit 9081458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/WeakRefModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ public PReferenceType refType(@SuppressWarnings("unused") Object cls, Object obj
176176
throw raise(PythonErrorType.TypeError, "cannot create weak reference to '%p' object", object);
177177
}
178178

179+
@SuppressWarnings("unchecked")
179180
private ReferenceQueue<Object> getWeakReferenceQueue() {
180181
Object queueObject = readQueue.execute(getCore().lookupType(PythonBuiltinClassType.PReferenceType), weakRefQueueKey);
181182
if (queueObject instanceof ReferenceQueue) {
182-
@SuppressWarnings("unchecked")
183183
ReferenceQueue<Object> queue = (ReferenceQueue<Object>) queueObject;
184184
return queue;
185185
} else {

0 commit comments

Comments
 (0)