diff --git a/java/java-psi-impl/src/com/intellij/psi/impl/compiled/ClsParsingUtil.java b/java/java-psi-impl/src/com/intellij/psi/impl/compiled/ClsParsingUtil.java index d0adeb8c3e08..86117d944479 100644 --- a/java/java-psi-impl/src/com/intellij/psi/impl/compiled/ClsParsingUtil.java +++ b/java/java-psi-impl/src/com/intellij/psi/impl/compiled/ClsParsingUtil.java @@ -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: diff --git a/java/testFramework/src/com/intellij/util/io/java/impl/ClassFileBuilderImpl.kt b/java/testFramework/src/com/intellij/util/io/java/impl/ClassFileBuilderImpl.kt index 3e7cb4057b03..de741d9c45bd 100644 --- a/java/testFramework/src/com/intellij/util/io/java/impl/ClassFileBuilderImpl.kt +++ b/java/testFramework/src/com/intellij/util/io/java/impl/ClassFileBuilderImpl.kt @@ -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") }