Rename parameter
This commit is contained in:
@@ -186,9 +186,9 @@ public class DeprecatedAnnotationVisitor extends AfterAnalysisHighlightingVisito
|
|||||||
|
|
||||||
private void checkPropertyAccessor(
|
private void checkPropertyAccessor(
|
||||||
@NotNull PropertyAccessorDescriptor accessor,
|
@NotNull PropertyAccessorDescriptor accessor,
|
||||||
@NotNull JetExpression expression, boolean isVar
|
@NotNull JetExpression expression, boolean isCrossingDisallowed
|
||||||
) {
|
) {
|
||||||
reportAnnotationIfNeeded(expression, accessor, isVar);
|
reportAnnotationIfNeeded(expression, accessor, isCrossingDisallowed);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkDeprecatedForOperations(@NotNull JetReferenceExpression expression) {
|
private void checkDeprecatedForOperations(@NotNull JetReferenceExpression expression) {
|
||||||
@@ -202,10 +202,10 @@ public class DeprecatedAnnotationVisitor extends AfterAnalysisHighlightingVisito
|
|||||||
return reportAnnotationIfNeeded(element, descriptor, false);
|
return reportAnnotationIfNeeded(element, descriptor, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean reportAnnotationIfNeeded(@NotNull PsiElement element, @NotNull DeclarationDescriptor descriptor, boolean isWarning) {
|
private boolean reportAnnotationIfNeeded(@NotNull PsiElement element, @NotNull DeclarationDescriptor descriptor, boolean isCrossingDisallowed) {
|
||||||
AnnotationDescriptor deprecated = getDeprecated(descriptor);
|
AnnotationDescriptor deprecated = getDeprecated(descriptor);
|
||||||
if (deprecated != null) {
|
if (deprecated != null) {
|
||||||
if (isWarning) {
|
if (isCrossingDisallowed) {
|
||||||
holder.createWarningAnnotation(element, composeTooltipString(descriptor, deprecated))
|
holder.createWarningAnnotation(element, composeTooltipString(descriptor, deprecated))
|
||||||
.setTextAttributes(CodeInsightColors.WARNINGS_ATTRIBUTES);
|
.setTextAttributes(CodeInsightColors.WARNINGS_ATTRIBUTES);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user