Add fix to arguments for create methods in HelloElektra.java
@@ -5,11 +5,11 @@ import org.libelektra.plugin.Echo;
public class HelloElektra {
public static void main(String[] args) {
- final Key key = Key.create("user/hello_world", Key.KEY_VALUE, "Hello World", Key.KEY_END);
+ final Key key = Key.create("user/hello_world", "Hello World");
System.out.println(key); // to get name
System.out.println(key.getString());
- final KeySet ks = KeySet.create(10, Key.create("user/hello_world2", Key.KEY_VALUE, "Hello World2", Key.KEY_END), key, KeySet.KS_END);
+ final KeySet ks = KeySet.create(10, Key.create("user/hello_world2", "Hello World2"), key, KeySet.KS_END);
for (Key k : ks) {
System.out.println("iter: " + k.getName() + " " + k.getString());
@@ -35,7 +35,7 @@ public class HelloElektra {
dp.get(ks, key);
dp.close(key);
- final Key b = Key.create("user/boolean", Key.KEY_VALUE, "true", Key.KEY_END);
+ final Key b = Key.create("user/boolean", "true");
System.out.println(b.getBoolean());
b.setBoolean(false);
System.out.println(b.getBoolean());
