提交 4947a067 编写于 作者: F fyrz

[RocksJava] Incorporated review comments D28947

上级 07cd3c42
......@@ -32,6 +32,8 @@ public enum InfoLogLevel {
* @param value byte representation of InfoLogLevel.
*
* @return {@link org.rocksdb.InfoLogLevel} instance or null.
* @throws java.lang.IllegalArgumentException if an invalid
* value is provided.
*/
public static InfoLogLevel getInfoLogLevel(byte value) {
for (InfoLogLevel infoLogLevel : InfoLogLevel.values()) {
......@@ -39,6 +41,7 @@ public enum InfoLogLevel {
return infoLogLevel;
}
}
return null;
throw new IllegalArgumentException(
"Illegal value provided for InfoLogLevel.");
}
}
......@@ -604,7 +604,6 @@ public class Options extends RocksObject
@Override
public Options setMemTableConfig(MemTableConfig config)
throws RocksDBException {
assert(isInitialized());
memTableConfig_ = config;
setMemTableFactory(nativeHandle_, config.newMemTableFactoryHandle());
return this;
......@@ -612,7 +611,6 @@ public class Options extends RocksObject
@Override
public Options setRateLimiterConfig(RateLimiterConfig config) {
assert(isInitialized());
rateLimiterConfig_ = config;
setRateLimiter(nativeHandle_, config.newRateLimiterHandle());
return this;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册