mirror of
https://github.com/octoleo/plantuml.git
synced 2025-01-03 15:17:23 +00:00
fix: restore correct cache behavior
https://github.com/plantuml/plantuml/issues/1368
This commit is contained in:
parent
32429afbb0
commit
81bd00e252
@ -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))
|
||||
|
@ -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);
|
||||
|
@ -82,7 +82,7 @@ public class Version {
|
||||
}
|
||||
|
||||
public static int beta() {
|
||||
final int beta = 0;
|
||||
final int beta = 1;
|
||||
return beta;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user