Remove try with resources
@@ -104,14 +104,10 @@ public final class AddUpdateUserSlice implements Slice {
if (bytes.length == 0) {
pswd = Optional.empty();
} else {
- final JsonObject root;
- try (JsonReader reader =
- Json.createReader(new ByteArrayInputStream(bytes))
- ) {
- root = reader.readObject();
+ final JsonReader rdr = Json.createReader(new ByteArrayInputStream(bytes));
+ final JsonObject root = rdr.readObject();
pswd = Optional.of(root.getString("password"));
}
- }
return pswd;
}
);
