diff --git a/core/java/src/net/metanotion/io/block/BlockFile.java b/core/java/src/net/metanotion/io/block/BlockFile.java index b220a87f05..3fa2896988 100644 --- a/core/java/src/net/metanotion/io/block/BlockFile.java +++ b/core/java/src/net/metanotion/io/block/BlockFile.java @@ -442,6 +442,7 @@ public class BlockFile implements Closeable { * * @return null if not found */ + @SuppressWarnings("unchecked") public , V> BSkipList getIndex(String name, Serializer key, Serializer val) throws IOException { // added I2P BSkipList bsl = (BSkipList) openIndices.get(name); diff --git a/core/java/src/net/metanotion/io/block/index/BSkipLevels.java b/core/java/src/net/metanotion/io/block/index/BSkipLevels.java index 5785c2ddad..4d089d45cb 100644 --- a/core/java/src/net/metanotion/io/block/index/BSkipLevels.java +++ b/core/java/src/net/metanotion/io/block/index/BSkipLevels.java @@ -73,6 +73,7 @@ public class BSkipLevels, V> extends SkipLevels< * after the constructor, unless it's a new empty * level and init() was previously called. */ + @SuppressWarnings("unchecked") public BSkipLevels(BlockFile bf, int levelPage, BSkipList bsl) throws IOException { this.levelPage = levelPage; this.bf = bf; @@ -378,6 +379,7 @@ public class BSkipLevels, V> extends SkipLevels< * This needs work. */ @Override + @SuppressWarnings("unchecked") public boolean blvlck(boolean fix, int width, SkipLevels[] prevLevels) { bf.log.warn(" Skip level at width " + width); bf.log.warn(" levels " + this.levels.length); diff --git a/core/java/src/net/metanotion/io/block/index/BSkipSpan.java b/core/java/src/net/metanotion/io/block/index/BSkipSpan.java index 6b975e5d33..1fc36f634f 100644 --- a/core/java/src/net/metanotion/io/block/index/BSkipSpan.java +++ b/core/java/src/net/metanotion/io/block/index/BSkipSpan.java @@ -287,6 +287,7 @@ public class BSkipSpan, V> extends SkipSpan, V> extends BSkipSpan newInstance(SkipList sl) { if (bf.log.shouldLog(Log.DEBUG)) bf.log.debug("Splitting page " + this.page + " containing " + this.nKeys + '/' + this.spanSize); diff --git a/core/java/src/net/metanotion/util/skiplist/SkipLevels.java b/core/java/src/net/metanotion/util/skiplist/SkipLevels.java index 226660193b..cc0e15db31 100644 --- a/core/java/src/net/metanotion/util/skiplist/SkipLevels.java +++ b/core/java/src/net/metanotion/util/skiplist/SkipLevels.java @@ -62,6 +62,7 @@ public class SkipLevels, V> implements Flushable /* * @throws IllegalArgumentException if size too big or too small */ + @SuppressWarnings("unchecked") public SkipLevels(int size, SkipSpan span) { if(size < 1 || size > MAX_SIZE) throw new IllegalArgumentException("Invalid Level Skip size"); @@ -129,6 +130,7 @@ public class SkipLevels, V> implements Flushable * and the deleted SkipLevels is taller than this SkipLevels. * rv is null if no object was removed. */ + @SuppressWarnings("unchecked") public Object[] remove(int start, K key, SkipList sl) { Object[] res = null; SkipLevels slvls = null; diff --git a/core/java/src/net/metanotion/util/skiplist/SkipList.java b/core/java/src/net/metanotion/util/skiplist/SkipList.java index 32c3e72313..6c1e5c9ba3 100644 --- a/core/java/src/net/metanotion/util/skiplist/SkipList.java +++ b/core/java/src/net/metanotion/util/skiplist/SkipList.java @@ -95,6 +95,7 @@ public class SkipList, V> implements Flushable { return max; } + @SuppressWarnings("unchecked") public void put(K key, V val) { if(key == null) { throw new NullPointerException(); } if(val == null) { throw new NullPointerException(); } @@ -116,6 +117,7 @@ public class SkipList, V> implements Flushable { } } + @SuppressWarnings("unchecked") public Object remove(K key) { if(key == null) { throw new NullPointerException(); } Object[] res = stack.remove(stack.levels.length - 1, key, this); diff --git a/core/java/src/net/metanotion/util/skiplist/SkipSpan.java b/core/java/src/net/metanotion/util/skiplist/SkipSpan.java index 71e9eb689f..bedfbc0283 100644 --- a/core/java/src/net/metanotion/util/skiplist/SkipSpan.java +++ b/core/java/src/net/metanotion/util/skiplist/SkipSpan.java @@ -50,6 +50,7 @@ public class SkipSpan, V> implements Flushable { /* * @throws IllegalArgumentException if size too big or too small */ + @SuppressWarnings("unchecked") public SkipSpan(int size) { if(size < 1 || size > MAX_SIZE) throw new IllegalArgumentException("Invalid span size " + size);