From 935e7e7962df10c414e79acd25167cba0d3fc285 Mon Sep 17 00:00:00 2001 From: piotrkot Date: Wed, 12 Nov 2014 12:07:58 +0100 Subject: [PATCH] #419 Fix for qulice --- .../java/com/thindeck/dynamo/DyTasks.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/thindeck/dynamo/DyTasks.java b/src/main/java/com/thindeck/dynamo/DyTasks.java index 964a291d..8a02a394 100644 --- a/src/main/java/com/thindeck/dynamo/DyTasks.java +++ b/src/main/java/com/thindeck/dynamo/DyTasks.java @@ -111,10 +111,13 @@ public Task add(final String command, final Map args) { return new DyTask( this.region.table(DyTask.TBL) .put(new Attributes() - .with(DyTask.ATTR_ID, UUID.randomUUID()) - .with(DyTask.ATTR_REPO_URN, this.repo.name()) - .with(DyTask.ATTR_COMM, command) - .with(toAttributes(args)) + .with(DyTask.ATTR_ID, UUID.randomUUID()) + .with( + DyTask.ATTR_REPO_URN, + this.repo.name() + ) + .with(DyTask.ATTR_COMM, command) + .with(this.toAttributes(args)) ) ); } catch (final IOException ex) { @@ -125,12 +128,12 @@ public Task add(final String command, final Map args) { /** * Map to {@link com.jcabi.dynamo.Attributes}. * @param map Map - * @return {@link com.jcabi.dynamo.Attributes} + * @return Attributes */ private Attributes toAttributes(final Map map) { - Attributes attributes = new Attributes(); - for (Map.Entry e : map.entrySet()) { - attributes.with(e.getKey(), e.getValue()); + final Attributes attributes = new Attributes(); + for (final Map.Entry entry : map.entrySet()) { + attributes.with(entry.getKey(), entry.getValue()); } return attributes; }