mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (deprecated constant)
This commit is contained in:
@@ -1,18 +1,4 @@
|
||||
/*
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.psi.impl.compiled;
|
||||
|
||||
import com.intellij.lang.PsiBuilder;
|
||||
@@ -200,7 +186,7 @@ public class ClsParsingUtil {
|
||||
case Opcodes.V1_8:
|
||||
return LanguageLevel.JDK_1_8;
|
||||
|
||||
case Opcodes.V1_9:
|
||||
case Opcodes.V9:
|
||||
return LanguageLevel.JDK_1_9;
|
||||
|
||||
default:
|
||||
|
||||
@@ -1,18 +1,4 @@
|
||||
/*
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.util.io.java.impl
|
||||
|
||||
import com.intellij.openapi.util.text.StringUtil
|
||||
@@ -78,7 +64,7 @@ private fun LanguageLevel.toAsmCode() = when (this) {
|
||||
LanguageLevel.JDK_1_6 -> Opcodes.V1_6
|
||||
LanguageLevel.JDK_1_7 -> Opcodes.V1_7
|
||||
LanguageLevel.JDK_1_8 -> Opcodes.V1_8
|
||||
LanguageLevel.JDK_1_9 -> Opcodes.V1_9
|
||||
LanguageLevel.JDK_1_9 -> Opcodes.V9
|
||||
LanguageLevel.JDK_X -> throw UnsupportedOperationException("Java 10 isn't supported yet")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user