Skip to content

Commit fbc1977

Browse files
committed
ValueFactory: updated argument name from ref to omitCopy
1 parent e810576 commit fbc1977

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

msgpack-core/src/main/java/org/msgpack/value/ValueFactory.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ public static ImmutableBinaryValue newBinary(byte[] b)
9090
return newBinary(b, false);
9191
}
9292

93-
public static ImmutableBinaryValue newBinary(byte[] b, boolean ref)
93+
public static ImmutableBinaryValue newBinary(byte[] b, boolean omitCopy)
9494
{
95-
if (ref) {
95+
if (omitCopy) {
9696
return new ImmutableBinaryValueImpl(b);
9797
}
9898
else {
@@ -105,9 +105,9 @@ public static ImmutableBinaryValue newBinary(byte[] b, int off, int len)
105105
return newBinary(b, off, len, false);
106106
}
107107

108-
public static ImmutableBinaryValue newBinary(byte[] b, int off, int len, boolean ref)
108+
public static ImmutableBinaryValue newBinary(byte[] b, int off, int len, boolean omitCopy)
109109
{
110-
if (ref && off == 0 && len == b.length) {
110+
if (omitCopy && off == 0 && len == b.length) {
111111
return new ImmutableBinaryValueImpl(b);
112112
}
113113
else {
@@ -125,9 +125,9 @@ public static ImmutableStringValue newString(byte[] b)
125125
return new ImmutableStringValueImpl(b);
126126
}
127127

128-
public static ImmutableStringValue newString(byte[] b, boolean ref)
128+
public static ImmutableStringValue newString(byte[] b, boolean omitCopy)
129129
{
130-
if (ref) {
130+
if (omitCopy) {
131131
return new ImmutableStringValueImpl(b);
132132
}
133133
else {
@@ -140,9 +140,9 @@ public static ImmutableStringValue newString(byte[] b, int off, int len)
140140
return newString(b, off, len, false);
141141
}
142142

143-
public static ImmutableStringValue newString(byte[] b, int off, int len, boolean ref)
143+
public static ImmutableStringValue newString(byte[] b, int off, int len, boolean omitCopy)
144144
{
145-
if (ref && off == 0 && len == b.length) {
145+
if (omitCopy && off == 0 && len == b.length) {
146146
return new ImmutableStringValueImpl(b);
147147
}
148148
else {
@@ -169,12 +169,12 @@ public static ImmutableArrayValue newArray(Value... array)
169169
}
170170
}
171171

172-
public static ImmutableArrayValue newArray(Value[] array, boolean ref)
172+
public static ImmutableArrayValue newArray(Value[] array, boolean omitCopy)
173173
{
174174
if (array.length == 0) {
175175
return ImmutableArrayValueImpl.empty();
176176
}
177-
else if (ref) {
177+
else if (omitCopy) {
178178
return new ImmutableArrayValueImpl(array);
179179
}
180180
else {
@@ -213,12 +213,12 @@ public static ImmutableMapValue newMap(Value... kvs)
213213
}
214214
}
215215

216-
public static ImmutableMapValue newMap(Value[] kvs, boolean ref)
216+
public static ImmutableMapValue newMap(Value[] kvs, boolean omitCopy)
217217
{
218218
if (kvs.length == 0) {
219219
return ImmutableMapValueImpl.empty();
220220
}
221-
else if (ref) {
221+
else if (omitCopy) {
222222
return new ImmutableMapValueImpl(kvs);
223223
}
224224
else {

0 commit comments

Comments
 (0)