mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Language level API cleanup
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2012 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.
|
||||
@@ -39,14 +39,17 @@ public enum LanguageLevel {
|
||||
myPresentableText = presentableText;
|
||||
}
|
||||
|
||||
/** @deprecated (to remove in IDEA 13) */
|
||||
public int getIndex() {
|
||||
return ordinal() + 3; // solely for backward compatibility
|
||||
}
|
||||
|
||||
/** @deprecated (to remove in IDEA 13) */
|
||||
public boolean hasAssertKeyword() {
|
||||
return isAtLeast(JDK_1_4);
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain com.intellij.psi.util.PsiUtil#isLanguageLevel5OrHigher(com.intellij.psi.PsiElement)} (to remove in IDEA 13) */
|
||||
public boolean hasEnumKeywordAndAutoboxing() {
|
||||
return isAtLeast(JDK_1_5);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user