Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit b2bfa6c

Browse files
committed
Merge pull request #28 from launchdarkly/jko/custom-number
Number is more flexible than Int
2 parents f4f4cb5 + b991d4d commit b2bfa6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/launchdarkly/client/LDUser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public Builder custom(String k, Boolean b) {
291291
* @param k the key for the list
292292
* @param vs the values for the attribute
293293
* @return the builder
294-
* @deprecated As of version 0.16.0, renamed to {@link #customString(String, List<String>)}
294+
* @deprecated As of version 0.16.0, renamed to {@link #customString(String, List) customString}
295295
*/
296296
public Builder custom(String k, List<String> vs) {
297297
return this.customString(k, vs);
@@ -320,9 +320,9 @@ public Builder customString(String k, List<String> vs) {
320320
* @param vs the values for the attribute
321321
* @return the builder
322322
*/
323-
public Builder customInt(String k, List<Integer> vs) {
323+
public Builder customNumber(String k, List<Number> vs) {
324324
JsonArray array = new JsonArray();
325-
for (Integer v : vs) {
325+
for (Number v : vs) {
326326
if (v != null) {
327327
array.add(new JsonPrimitive(v));
328328
}

0 commit comments

Comments
 (0)