mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (warnings; formatting)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user