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. 10
      java/rocksjni/options.cc

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

Loading…
Cancel
Save