I'm trying to move my Maven-Application from Eclipse Java EE Luna to IntelliJ Idea 14.0.3.
When i try to build the Project in my new Idea IDE i receive for this pice of code the following Error:
Error: java: duplicate case label
char c = '-';
int postChar = -1;
switch (c) {
case 'ü': c = 'u'; postChar = 'e';
break;
case 'ö': c = 'o'; postChar = 'e';
break;
case 'ä': c = 'a'; postChar = 'e';
break;
}
What's wrong with this Code ?
Regards