Cleanup (warnings; formatting)

This commit is contained in:
Roman Shevchenko
2017-02-21 11:25:48 +01:00
parent df36e1903e
commit 78114bd988
2 changed files with 3 additions and 3 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* 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.
@@ -76,7 +76,7 @@ public class ModifierFix extends LocalQuickFixAndIntentionActionOnPsiElement {
private String format(PsiVariable variable, PsiModifierList modifierList) {
String name = null;
PsiElement parent = variable == null ? modifierList == null ? null : modifierList.getParent() : variable;
PsiElement parent = variable != null ? variable : modifierList != null ? modifierList.getParent() : null;
if (parent instanceof PsiClass) {
name = ((PsiClass)parent).getName();
}
@@ -124,7 +124,7 @@ fix.return.type.text=Make ''{0}'' return ''{1}''
fix.throws.list.family=Fix Throws List
fix.throws.list.add.exception=Add ''{0}'' to ''{1}'' throws list
fix.throws.list.remove.exception=Remove ''{0}'' from ''{1}'' throws list
fix.modifiers.family=Fix Modifiers
fix.modifiers.family=Fix modifiers
anonymous.class.presentation=Anonymous class derived from {0}
# {0} owner class name