You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2010/05/16 20:50:52 UTC

svn commit: r944894 - /directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BPage.java

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;