Community
Participate
Working Groups
We should add a 'switch on string' template.
Really? Didn't you mean try-with-resources? Switch on string looks exactly the same as the existing switch template.
I agree: a separate 'switch on string' template doesn't make too much sense but we should: 1. Improve the current 'switch' template to propose variables that have the correct primitive types. 2. Once bug 95787 is fixed we set the existing template to work on 1.6 or lower and add a second template for 1.7 and higher that also offers variables of type 'String'.