Fix lint errors in java/rocksjni/options.cc

Summary:
Fix lint errors in java/rocksjni/options.cc

Test Plan:
make rocksdbjava
main
Yueh-Hsuan Chiang 10 years ago
parent 8ea232b9e3
commit 0e516a75da
  1. 6
      java/rocksjni/options.cc

@ -73,10 +73,12 @@ void Java_org_rocksdb_Options_setBuiltinComparator(
JNIEnv* env, jobject jobj, jlong jhandle, jint builtinComparator) { JNIEnv* env, jobject jobj, jlong jhandle, jint builtinComparator) {
switch (builtinComparator){ switch (builtinComparator){
case 1: case 1:
reinterpret_cast<rocksdb::Options*>(jhandle)->comparator = rocksdb::ReverseBytewiseComparator(); reinterpret_cast<rocksdb::Options*>(jhandle)->comparator =
rocksdb::ReverseBytewiseComparator();
break; break;
default: default:
reinterpret_cast<rocksdb::Options*>(jhandle)->comparator = rocksdb::BytewiseComparator(); reinterpret_cast<rocksdb::Options*>(jhandle)->comparator =
rocksdb::BytewiseComparator();
break; break;
} }
} }

Loading…
Cancel
Save