fix: restore correct cache behavior

https://github.com/plantuml/plantuml/issues/1368
This commit is contained in:
Arnaud Roques 2023-03-29 20:19:05 +02:00
parent 32429afbb0
commit 81bd00e252
3 changed files with 19 additions and 19 deletions

View File

@ -88,17 +88,17 @@ public class Display implements Iterable<CharSequence> {
public final static Display NULL = new Display(true, null, null, true, CreoleMode.FULL);
// @Override
// public int hashCode() {
// if (isNull)
// return 42;
// return displayData.hashCode();
// }
//
// @Override
// public boolean equals(Object other) {
// return this.displayData.equals(((Display) other).displayData);
// }
@Override
public int hashCode() {
if (isNull)
return 42;
return displayData.hashCode();
}
@Override
public boolean equals(Object other) {
return this.displayData.equals(((Display) other).displayData);
}
public boolean equalsLike(Display other) {
if (isNull(this))

View File

@ -210,13 +210,13 @@ public class SecurityUtils {
}
public static String getenv(String name) {
String env = System.getProperty(name);
if (StringUtils.isNotEmpty(env))
return env;
String result = System.getProperty(name);
if (StringUtils.isNotEmpty(result))
return result;
env = System.getenv(name);
if (StringUtils.isNotEmpty(env))
return env;
result = System.getenv(name);
if (StringUtils.isNotEmpty(result))
return result;
final String alternateName = name.replace(".", "_").toUpperCase();
return System.getenv(alternateName);
@ -448,4 +448,4 @@ public class SecurityUtils {
}
// ::done
}
}

View File

@ -82,7 +82,7 @@ public class Version {
}
public static int beta() {
final int beta = 0;
final int beta = 1;
return beta;
}