Java: refactor `ConstCase` and `DefaultCase` in preparation for Java 12
Java: refactor `ConstCase` and `DefaultCase` in preparation for Java 12

github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql