@ -58,11 +58,7 @@ public class ColumnFamilyTest {
Options options = null ;
Options options = null ;
ColumnFamilyHandle cfh = null ;
ColumnFamilyHandle cfh = null ;
try {
try {
options = new Options ( ) ;
options = new Options ( ) . setCreateIfMissing ( true ) ;
options . setCreateIfMissing ( true ) ;
DBOptions dbOptions = new DBOptions ( ) ;
dbOptions . setCreateIfMissing ( true ) ;
db = RocksDB . open ( options , dbFolder . getRoot ( ) . getAbsolutePath ( ) ) ;
db = RocksDB . open ( options , dbFolder . getRoot ( ) . getAbsolutePath ( ) ) ;
cfh = db . getDefaultColumnFamily ( ) ;
cfh = db . getDefaultColumnFamily ( ) ;
@ -78,9 +74,6 @@ public class ColumnFamilyTest {
assertThat ( cfh ) . isNotNull ( ) ;
assertThat ( cfh ) . isNotNull ( ) ;
assertThat ( actualValue ) . isEqualTo ( value ) ;
assertThat ( actualValue ) . isEqualTo ( value ) ;
} finally {
} finally {
if ( cfh ! = null ) {
cfh . dispose ( ) ;
}
if ( db ! = null ) {
if ( db ! = null ) {
db . close ( ) ;
db . close ( ) ;
}
}