diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-05-07 18:39:52 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-05-07 18:39:52 +0200 |
commit | 1cd09a5f441e7ec7252209b8d0090892c271cc56 (patch) | |
tree | ab8a2e292d671f23c7526ede45539b30a1b5af66 /jrt | |
parent | c833beafd369f31d48c8d1e371968f6282f5c4ec (diff) |
Make constructor public and member final
Diffstat (limited to 'jrt')
-rw-r--r-- | jrt/src/com/yahoo/jrt/DataValue.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jrt/src/com/yahoo/jrt/DataValue.java b/jrt/src/com/yahoo/jrt/DataValue.java index 15b9ce3df13..17a1f374a88 100644 --- a/jrt/src/com/yahoo/jrt/DataValue.java +++ b/jrt/src/com/yahoo/jrt/DataValue.java @@ -10,7 +10,7 @@ import java.nio.ByteBuffer; **/ public class DataValue extends Value { - private byte[] value; + private final byte[] value; /** * Create from a Java-type value @@ -24,7 +24,7 @@ public class DataValue extends Value * * @param src buffer where the value is stored **/ - DataValue(ByteBuffer src) { + public DataValue(ByteBuffer src) { int size = src.getInt(); value = new byte[size]; src.get(value); |