diff --git a/java/src/main/java/org/rocksdb/AdvancedColumnFamilyOptionsInterface.java b/java/src/main/java/org/rocksdb/AdvancedColumnFamilyOptionsInterface.java index 91e3b2fa2..772a5900b 100644 --- a/java/src/main/java/org/rocksdb/AdvancedColumnFamilyOptionsInterface.java +++ b/java/src/main/java/org/rocksdb/AdvancedColumnFamilyOptionsInterface.java @@ -254,7 +254,8 @@ public interface AdvancedColumnFamilyOptionsInterface< * levels extra size. After the data accumulates more so that we need to * move the base level to the third last one, and so on.

* - *

Example

+ *

Example

+ * *

For example, assume {@code max_bytes_for_level_multiplier=10}, * {@code num_levels=6}, and {@code max_bytes_for_level_base=10MB}.

* diff --git a/java/src/test/java/org/rocksdb/util/EnvironmentTest.java b/java/src/test/java/org/rocksdb/util/EnvironmentTest.java index ab0ff2027..5bade90ca 100644 --- a/java/src/test/java/org/rocksdb/util/EnvironmentTest.java +++ b/java/src/test/java/org/rocksdb/util/EnvironmentTest.java @@ -229,9 +229,11 @@ public class EnvironmentTest { try { field = Environment.class.getDeclaredField(fieldName); field.setAccessible(true); + /* Fails in JDK 13; and not needed unless fields are final final Field modifiersField = Field.class.getDeclaredField("modifiers"); modifiersField.setAccessible(true); modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL); + */ return (T)field.get(null); } catch (NoSuchFieldException | IllegalAccessException e) { throw new RuntimeException(e); @@ -243,9 +245,11 @@ public class EnvironmentTest { try { field = Environment.class.getDeclaredField(fieldName); field.setAccessible(true); + /* Fails in JDK 13; and not needed unless fields are final final Field modifiersField = Field.class.getDeclaredField("modifiers"); modifiersField.setAccessible(true); modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL); + */ field.set(null, value); } catch (NoSuchFieldException | IllegalAccessException e) { throw new RuntimeException(e);