mbien commented on code in PR #7367:
URL: https://github.com/apache/netbeans/pull/7367#discussion_r1594440203


##########
extide/gradle/src/org/netbeans/modules/gradle/spi/newproject/GradleInitWizard.java:
##########
@@ -49,10 +51,11 @@ public enum GradleDSL {
 
         @Override
         public String toString() {
-            return switch(this) {
-                case GROOVY -> Bundle.LBL_DSL_GROOVY();
-                case KOTLIN -> Bundle.LBL_DSL_KOTLIN();
-            };
+            switch(this) {
+                case GROOVY: return Bundle.LBL_DSL_GROOVY();
+                case KOTLIN: return Bundle.LBL_DSL_KOTLIN();
+                default: throw new IllegalStateException("update switch");

Review Comment:
   yeah but I am sure @lkishalmi will fix this properly during NB 23, so we 
can't really arrive at a situation where enums are added (which are btw a few 
lines above the `toString()`) without anyone noticing it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to