diff --git a/java/org/rocksdb/Options.java b/java/org/rocksdb/Options.java index d33b5b424..c56856de2 100644 --- a/java/org/rocksdb/Options.java +++ b/java/org/rocksdb/Options.java @@ -162,7 +162,7 @@ public class Options { /* * Maximum number of concurrent background jobs, submitted to - * the default LOW priority thread pool + * the default LOW priority thread pool. * Default: 1 * * @param maximum number of concurrent background jobs. @@ -174,9 +174,9 @@ public class Options { } /* - * Returns maximum number of background concurrent jobs + * Returns maximum number of background concurrent jobs. * - * @return maximum number of background concurrent jobs + * @return maximum number of background concurrent jobs. * @see setMaxBackgroundCompactions */ public int maxBackgroundCompactions() { @@ -204,13 +204,16 @@ public class Options { private native boolean createIfMissing(long handle); private native void setWriteBufferSize(long handle, int writeBufferSize); private native int writeBufferSize(long handle); - private native void setMaxWriteBufferNumber(long handle, int maxWriteBufferNumber); + private native void setMaxWriteBufferNumber( + long handle, int maxWriteBufferNumber); private native int maxWriteBufferNumber(long handle); private native void setBlockSize(long handle, int blockSize); private native int blockSize(long handle); - private native void setDisableSeekCompaction(long handle, boolean disableSeekCompaction); + private native void setDisableSeekCompaction( + long handle, boolean disableSeekCompaction); private native boolean disableSeekCompaction(long handle); - private native void setMaxBackgroundCompactions(long handle, int maxBackgroundCompactions); + private native void setMaxBackgroundCompactions( + long handle, int maxBackgroundCompactions); private native int maxBackgroundCompactions(long handle); long nativeHandle_; diff --git a/java/rocksjni/options.cc b/java/rocksjni/options.cc index 925613fef..a6e392c1f 100644 --- a/java/rocksjni/options.cc +++ b/java/rocksjni/options.cc @@ -130,7 +130,7 @@ jint Java_org_rocksdb_Options_blockSize( */ void Java_org_rocksdb_Options_setDisableSeekCompaction( JNIEnv* env, jobject jobj, jlong jhandle, - jboolean jdisable_seek_compaction) { + jboolean jdisable_seek_compaction) { reinterpret_cast(jhandle)->disable_seek_compaction = jdisable_seek_compaction; } @@ -152,7 +152,7 @@ jboolean Java_org_rocksdb_Options_disableSeekCompaction( */ void Java_org_rocksdb_Options_setMaxBackgroundCompactions( JNIEnv* env, jobject jobj, jlong jhandle, - jint jmax_background_compactions) { + jint jmax_background_compactions) { reinterpret_cast(jhandle)->max_background_compactions = jmax_background_compactions; }