directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r944894 - /directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BPage.java
Date Sun, 16 May 2010 18:50:52 GMT
Author: elecharny
Date: Sun May 16 18:50:52 2010
New Revision: 944894

URL: http://svn.apache.org/viewvc?rev=944894&view=rev
Log:
Removed some warnings by adding @SuppressWarninds

Modified:
    directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BPage.java

Modified: directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BPage.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BPage.java?rev=944894&r1=944893&r2=944894&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BPage.java (original)
+++ directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BPage.java Sun May 16 18:50:52
2010
@@ -127,6 +127,7 @@ public final class BPage<K, V> implement
     /**
      * Root page overflow constructor
      */
+    @SuppressWarnings("unchecked")
     BPage( BTree btree, BPage<K, V> root, BPage<K, V> overflow ) throws IOException
     {
         this.btree = btree;
@@ -150,6 +151,7 @@ public final class BPage<K, V> implement
     /**
      * Root page (first insert) constructor.
      */
+    @SuppressWarnings("unchecked") // Cannot create an array of generic objects
     BPage( BTree btree, K key, V value ) throws IOException
     {
         this.btree = btree;
@@ -173,6 +175,7 @@ public final class BPage<K, V> implement
     /**
      * Overflow page constructor.  Creates an empty BPage.
      */
+    @SuppressWarnings("unchecked") // Cannot create an array of generic objects
     BPage( BTree btree, boolean isLeaf ) throws IOException
     {
         this.btree = btree;



Mime
View raw message