mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8267587: Update java.util to use enhanced switch
Reviewed-by: iris
This commit is contained in:
parent
35916ed57f
commit
ab5a7ff230
15 changed files with 556 additions and 776 deletions
|
@ -190,19 +190,18 @@ public class JarFile extends ZipFile {
|
|||
String enableMultiRelease = GetPropertyAction
|
||||
.privilegedGetProperty("jdk.util.jar.enableMultiRelease", "true");
|
||||
switch (enableMultiRelease) {
|
||||
case "true":
|
||||
default:
|
||||
MULTI_RELEASE_ENABLED = true;
|
||||
MULTI_RELEASE_FORCED = false;
|
||||
break;
|
||||
case "false":
|
||||
case "false" -> {
|
||||
MULTI_RELEASE_ENABLED = false;
|
||||
MULTI_RELEASE_FORCED = false;
|
||||
break;
|
||||
case "force":
|
||||
}
|
||||
case "force" -> {
|
||||
MULTI_RELEASE_ENABLED = true;
|
||||
MULTI_RELEASE_FORCED = true;
|
||||
break;
|
||||
}
|
||||
default -> {
|
||||
MULTI_RELEASE_ENABLED = true;
|
||||
MULTI_RELEASE_FORCED = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue