mirror of
https://github.com/octoleo/plantuml.git
synced 2025-01-05 08:02:11 +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);
|
public final static Display NULL = new Display(true, null, null, true, CreoleMode.FULL);
|
||||||
|
|
||||||
// @Override
|
@Override
|
||||||
// public int hashCode() {
|
public int hashCode() {
|
||||||
// if (isNull)
|
if (isNull)
|
||||||
// return 42;
|
return 42;
|
||||||
// return displayData.hashCode();
|
return displayData.hashCode();
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// @Override
|
@Override
|
||||||
// public boolean equals(Object other) {
|
public boolean equals(Object other) {
|
||||||
// return this.displayData.equals(((Display) other).displayData);
|
return this.displayData.equals(((Display) other).displayData);
|
||||||
// }
|
}
|
||||||
|
|
||||||
public boolean equalsLike(Display other) {
|
public boolean equalsLike(Display other) {
|
||||||
if (isNull(this))
|
if (isNull(this))
|
||||||
|
@ -210,13 +210,13 @@ public class SecurityUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String getenv(String name) {
|
public static String getenv(String name) {
|
||||||
String env = System.getProperty(name);
|
String result = System.getProperty(name);
|
||||||
if (StringUtils.isNotEmpty(env))
|
if (StringUtils.isNotEmpty(result))
|
||||||
return env;
|
return result;
|
||||||
|
|
||||||
env = System.getenv(name);
|
result = System.getenv(name);
|
||||||
if (StringUtils.isNotEmpty(env))
|
if (StringUtils.isNotEmpty(result))
|
||||||
return env;
|
return result;
|
||||||
|
|
||||||
final String alternateName = name.replace(".", "_").toUpperCase();
|
final String alternateName = name.replace(".", "_").toUpperCase();
|
||||||
return System.getenv(alternateName);
|
return System.getenv(alternateName);
|
||||||
|
@ -82,7 +82,7 @@ public class Version {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static int beta() {
|
public static int beta() {
|
||||||
final int beta = 0;
|
final int beta = 1;
|
||||||
return beta;
|
return beta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user