checkstyle

This commit is contained in:
jendave
2011-09-09 16:16:01 +00:00
parent fc7b732dea
commit 1c16386490

View File

@@ -328,8 +328,8 @@ public class TreeProperties implements Iterable<PropertyElement> {
checkQueryKey(key); checkQueryKey(key);
//first, try the key in the current file, as if there were no slash //first, try the key in the current file, as if there were no slash
//No subpath - either directly in the properties... //No subpath - either directly in the properties...
Object result; Object result = properties.get(key + suffix);
if ((result = properties.get(key + suffix)) != null) { if (result != null) {
return result; return result;
} }
@@ -339,7 +339,8 @@ public class TreeProperties implements Iterable<PropertyElement> {
for (Entry<String, Object> entry : properties.entrySet()) { for (Entry<String, Object> entry : properties.entrySet()) {
if (entry.getKey().endsWith("--" + TRANSPARENT)) { if (entry.getKey().endsWith("--" + TRANSPARENT)) {
TreeProperties p = (TreeProperties) entry.getValue(); TreeProperties p = (TreeProperties) entry.getValue();
if ((result = p.getProperty(key, suffix, false)) != null) { result = p.getProperty(key, suffix, false);
if (result != null) {
return result; return result;
} }
} }
@@ -357,7 +358,8 @@ public class TreeProperties implements Iterable<PropertyElement> {
if (p == null) { if (p == null) {
continue; continue;
} }
if ((result = p.getProperty(second, suffix, false)) != null) { result = p.getProperty(second, suffix, false);
if (result != null) {
return result; return result;
} }
} }