Hi,
I want to use the preview features in the Gradle project.
in build.grdle I specified:
compileJava {
options.compilerArgs << '--enable-preview'
}
run {
jvmArgs(['--enable-preview'])
}
In the program I am using the new swich format:
switch (string) {
case"a123" -> System.out.println("a123");
...
}
It compiles and runs ok. But when I have the "old" switch format in the
source, I do not get the hint "convert to rule switch"
Can this be enabled, too ?
Regards
Helmut
|
Mime |
- Unnamed multipart/signed (inline, None, 0 bytes)
- Unnamed multipart/mixed (inline, None, 0 bytes)
- Unnamed multipart/mixed (inline, None, 0 bytes)
- Unnamed multipart/alternative (inline, None, 0 bytes)
|