mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Typo
This commit is contained in:
@@ -123,6 +123,13 @@ public abstract class PsiType implements PsiAnnotationOwner {
|
||||
return JavaPsiFacade.getInstance(manager.getProject()).getElementFactory().createTypeByFQClassName(CommonClassNames.JAVA_LANG_CLASS, resolveScope);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@linkplain #getJavaLangThrowable(PsiManager, com.intellij.psi.search.GlobalSearchScope)} (todo: to remove in IDEA 12)
|
||||
*/
|
||||
public static PsiClassType getJavaLangTrowable(PsiManager manager, GlobalSearchScope resolveScope) {
|
||||
return getJavaLangThrowable(manager, resolveScope);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the class type for the java.lang.Throwable class.
|
||||
*
|
||||
@@ -130,7 +137,7 @@ public abstract class PsiType implements PsiAnnotationOwner {
|
||||
* @param resolveScope the scope in which the class is searched.
|
||||
* @return the class instance.
|
||||
*/
|
||||
public static PsiClassType getJavaLangTrowable(PsiManager manager, GlobalSearchScope resolveScope) {
|
||||
public static PsiClassType getJavaLangThrowable(PsiManager manager, GlobalSearchScope resolveScope) {
|
||||
return JavaPsiFacade.getInstance(manager.getProject()).getElementFactory().createTypeByFQClassName(CommonClassNames.JAVA_LANG_THROWABLE, resolveScope);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -259,8 +259,8 @@ public class GroovyExpectedTypesProvider {
|
||||
|
||||
@Override
|
||||
public void visitThrowStatement(GrThrowStatement throwStatement) {
|
||||
final PsiClassType trowable = PsiType.getJavaLangTrowable(myExpression.getManager(), throwStatement.getResolveScope());
|
||||
myResult = new TypeConstraint[]{SubtypeConstraint.create(trowable)};
|
||||
final PsiClassType throwable = PsiType.getJavaLangThrowable(myExpression.getManager(), throwStatement.getResolveScope());
|
||||
myResult = new TypeConstraint[]{SubtypeConstraint.create(throwable)};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user