From 56baee9d69a938f25f5bad7a4c758b8ffd17a20f Mon Sep 17 00:00:00 2001 From: "Daniel B. Garcia" Date: Fri, 12 Mar 2021 14:00:15 +0800 Subject: [PATCH] Fix for 'Exception in thread main java.lang.NoSuchMethodError: com.basho.riak.client.api.commands.datatypes.SetUpdate.add(Ljava/lang/String;) Lcom/basho/riak/client/api/commands/datatypes/SetUpdate;' --- .../client/api/commands/datatypes/SetUpdate.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/com/basho/riak/client/api/commands/datatypes/SetUpdate.java b/src/main/java/com/basho/riak/client/api/commands/datatypes/SetUpdate.java index 5fc064ed2..6357e35c6 100644 --- a/src/main/java/com/basho/riak/client/api/commands/datatypes/SetUpdate.java +++ b/src/main/java/com/basho/riak/client/api/commands/datatypes/SetUpdate.java @@ -42,6 +42,20 @@ public SetUpdate() { } + @Override + public SetUpdate add(BinaryValue value) + { + super.add(value); + return this; + } + + @Override + public SetUpdate add(String value) + { + super.add(value); + return this; + } + /** * Remove the provided value from the set in Riak. * @param value the value to be removed.