Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion client/src/com/aerospike/client/Value.java
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,8 @@ public long toLong() {
* Integer value.
*/
public static final class IntegerValue extends Value {
private transient volatile String stringValue;

private final int value;

public IntegerValue(int value) {
Expand Down Expand Up @@ -886,7 +888,12 @@ public LuaValue getLuaValue(LuaInstance instance) {

@Override
public String toString() {
return Integer.toString(value);
String s = stringValue;
if (s == null) {
s = Integer.toString(value);
stringValue = s;
}
return s;
}

@Override
Expand Down