Merge pull request #4509 from izeye/else

* pr/4509:
  Add missing else statement
This commit is contained in:
Stephane Nicoll
2015-11-18 11:42:17 +00:00

View File

@@ -121,7 +121,7 @@ public class SpringApplicationJsonEnvironmentPostProcessor
if (value instanceof Map) {
flatten(name, result, (Map<String, Object>) value);
}
if (value instanceof Collection) {
else if (value instanceof Collection) {
int index = 0;
for (Object object : (Collection<Object>) value) {
extract(name + "[" + index + "]", result, object);