Skip to content

Commit e967411

Browse files
committed
minor fixes
1 parent 1447341 commit e967411

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/HashingStorageLibrary.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
* argument. Thus, storages must ensure to cache the hash value if a call could be observed.
7676
*/
7777
@GenerateLibrary
78-
@SuppressWarnings("unused")
7978
public abstract class HashingStorageLibrary extends Library {
8079
/**
8180
* @return the length of {@code self}
@@ -299,7 +298,7 @@ public final <T> T forEach(HashingStorage self, ForEachNode<T> node, T arg) {
299298
* @return {@code true} if the storage has elements with a potential side effect, otherwise
300299
* {@code false}.
301300
*/
302-
public boolean hasSideEffect(HashingStorage self) {
301+
public boolean hasSideEffect(@SuppressWarnings("unused") HashingStorage self) {
303302
return false;
304303
}
305304

@@ -473,7 +472,7 @@ public Iterator<T> getIterator() {
473472

474473
@Override
475474
public HashingStorageIterator<T> iterator() {
476-
return new HashingStorageIterator<T>(this.iterator);
475+
return new HashingStorageIterator<>(this.iterator);
477476
}
478477
}
479478

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/LocalsStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
import com.oracle.truffle.api.profiles.ConditionProfile;
7373

7474
@ExportLibrary(HashingStorageLibrary.class)
75-
public class LocalsStorage extends HashingStorage {
75+
public final class LocalsStorage extends HashingStorage {
7676
/* This won't be the real (materialized) frame but a clone of it. */
7777
protected final MaterializedFrame frame;
7878
private int len = -1;

0 commit comments

Comments
 (0)