1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-01 16:10:48 +00:00

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); 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))

View File

@ -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);
@ -448,4 +448,4 @@ public class SecurityUtils {
} }
// ::done // ::done
} }

View File

@ -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;
} }