Replace PsiManager.getInstance(psiElement.getProject()) to psiElement.getManager...
authorSergey Evdokimov <sergey.evdokimov@jetbrains.com>
Sat, 28 Jan 2012 13:23:15 +0000 (17:23 +0400)
committerSergey Evdokimov <sergey.evdokimov@jetbrains.com>
Sat, 28 Jan 2012 13:23:15 +0000 (17:23 +0400)
commit01c6acab8e5d62626c27f5a3887d741ff78de2e7
tree1ec73e86ec541c194c5781e88b6d02bb2eaa10da
parentdaac3822eba2d23d43f03d3f3c92d7da352213e2
Replace PsiManager.getInstance(psiElement.getProject()) to psiElement.getManager() and add inspection to this case.
21 files changed:
java/java-impl/src/com/intellij/psi/impl/search/AnnotatedElementsSearcher.java
java/java-impl/src/com/intellij/psi/impl/search/AnnotatedPackagesSearcher.java
java/java-impl/src/com/intellij/psi/impl/search/ConstructorReferencesSearcher.java
java/java-impl/src/com/intellij/psi/impl/search/JavaDirectInheritorsSearcher.java
java/java-impl/src/com/intellij/psi/impl/search/MethodUsagesSearcher.java
java/java-impl/src/com/intellij/refactoring/changeSignature/JavaChangeSignatureUsageProcessor.java
java/java-psi-impl/src/com/intellij/psi/impl/source/resolve/JavaResolveCache.java
platform/lang-impl/src/com/intellij/codeInspection/reference/RefDirectoryImpl.java
platform/lang-impl/src/com/intellij/codeInspection/reference/RefFileImpl.java
plugins/InspectionGadgets/src/com/siyeh/ig/junit/AssertEqualsBetweenInconvertibleTypesInspection.java
plugins/android/src/org/jetbrains/android/inspections/lint/AndroidLintInspectionBase.java
plugins/ant/src/com/intellij/lang/ant/dom/AntDomProject.java
plugins/groovy/src/org/jetbrains/plugins/groovy/codeInspection/bugs/GroovyInArgumentCheckInspection.java
plugins/groovy/src/org/jetbrains/plugins/groovy/lang/completion/weighers/GrKindWeigher.java
plugins/groovy/src/org/jetbrains/plugins/groovy/lang/resolve/GdkMethodDslProvider.java
plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/changeSignature/GrChangeSignatureConflictSearcher.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/dom/converters/MavenDependencySystemPathConverter.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/dom/converters/MavenParentRelativePathConverter.java
plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/support/jaxen/PsiDocumentNavigator.java
xml/impl/src/com/intellij/codeInsight/daemon/impl/tagTreeHighlighting/XmlTagTreeHighlightingPass.java
xml/relaxng/src/org/intellij/plugins/relaxNG/RncFileReferenceManipulator.java