mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
checkstyle
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user