diff --git a/src/main/java/com/xceptance/neodymium/util/DataUtils.java b/src/main/java/com/xceptance/neodymium/util/DataUtils.java index 7110ddf29..ebf459cea 100644 --- a/src/main/java/com/xceptance/neodymium/util/DataUtils.java +++ b/src/main/java/com/xceptance/neodymium/util/DataUtils.java @@ -70,17 +70,17 @@ public static String randomPassword() */ public static T get(final Class clazz) { - Map data = Neodymium.getData(); + final Map data = Neodymium.getData(); - JsonObject jsonObject = new JsonObject(); - JsonParser parser = new JsonParser(); + final JsonObject jsonObject = new JsonObject(); + final JsonParser parser = new JsonParser(); // iterate over every data entry and parse the entries to prepare complex structures for object mapping for (Iterator iterator = data.keySet().iterator(); iterator.hasNext();) { - String key = (String) iterator.next(); - String value = data.get(key); - String trimmedValue = StringUtils.defaultString(value).trim(); + final String key = (String) iterator.next(); + final String value = data.get(key); + final String trimmedValue = StringUtils.defaultString(value).trim(); if (value == null) { @@ -110,7 +110,7 @@ else if (trimmedValue.startsWith("{") || trimmedValue.startsWith("[")) */ public static String asString(String key) { - String value = Neodymium.dataValue(key); + final String value = Neodymium.dataValue(key); if (value == null) { throw new IllegalArgumentException("Test data could not be found for key: " + key);