Skip to content

Commit 7034f74

Browse files
author
Vincent Potucek
committed
fix unused @SuppressWarnings("checkstyle:UnusedLocalVariable")
1 parent 96efade commit 7034f74

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • its/core-it-support/core-it-plugins/maven-it-plugin-configuration/src/main/java/org/apache/maven/plugin/coreit

its/core-it-support/core-it-plugins/maven-it-plugin-configuration/src/main/java/org/apache/maven/plugin/coreit/PropertiesUtil.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ public static void serialize(Properties props, String key, Object value) {
104104
} else if (value instanceof Map) {
105105
Map map = (Map) value;
106106
props.setProperty(key, Integer.toString(map.size()));
107-
@SuppressWarnings("checkstyle:UnusedLocalVariable")
108-
int i = 0;
109-
for (Iterator it = map.keySet().iterator(); it.hasNext(); i++) {
107+
for (Iterator it = map.keySet().iterator(); it.hasNext();) {
110108
Object k = it.next();
111109
Object v = map.get(k);
112110
serialize(props, key + "." + k, v);

0 commit comments

Comments
 (0)