mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
Equals should be compared with == but not equals()
This commit is contained in:
parent
1f9b51d833
commit
d93061c0bc
175 changed files with 348 additions and 344 deletions
|
|
@ -83,7 +83,7 @@ public class JSONParser {
|
|||
String currentPath = "";
|
||||
for (int i = 0; i < params.length - 1; i++) {
|
||||
String param = params[i];
|
||||
if (cachePolicy.equals(CachePolicy.CACHE_ALL_LEVELS)) {
|
||||
if (cachePolicy == CachePolicy.CACHE_ALL_LEVELS) {
|
||||
if (!currentPath.isEmpty()) {
|
||||
currentPath += ".";
|
||||
}
|
||||
|
|
@ -123,7 +123,7 @@ public class JSONParser {
|
|||
}
|
||||
|
||||
}
|
||||
if (cachePolicy.equals(CachePolicy.CACHE_ALL_LEVELS)) {
|
||||
if (cachePolicy == CachePolicy.CACHE_ALL_LEVELS) {
|
||||
saveToCache(currentPath, json);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue