From 01f2a897081e1a5ca2b5236654fb3eeda94de0de Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Thu, 20 Jan 2022 13:25:08 +0100 Subject: [PATCH] [unused declaration] fix layout (IDEA-279399) GitOrigin-RevId: bbb4d16516860007c73c0df9393d40d3b8e3f412 --- .../unusedSymbol/OptionsPanel.form | 15 +++++++-------- .../UnusedSymbolLocalInspection.java | 18 +++--------------- 2 files changed, 10 insertions(+), 23 deletions(-) diff --git a/java/java-impl/src/com/intellij/codeInspection/unusedSymbol/OptionsPanel.form b/java/java-impl/src/com/intellij/codeInspection/unusedSymbol/OptionsPanel.form index 509b981e3ae0..c149c6370920 100644 --- a/java/java-impl/src/com/intellij/codeInspection/unusedSymbol/OptionsPanel.form +++ b/java/java-impl/src/com/intellij/codeInspection/unusedSymbol/OptionsPanel.form @@ -162,22 +162,21 @@ - - - - - - - - + + + + + + + diff --git a/java/java-impl/src/com/intellij/codeInspection/unusedSymbol/UnusedSymbolLocalInspection.java b/java/java-impl/src/com/intellij/codeInspection/unusedSymbol/UnusedSymbolLocalInspection.java index 0e72ae39889f..57818e2cdc4f 100644 --- a/java/java-impl/src/com/intellij/codeInspection/unusedSymbol/UnusedSymbolLocalInspection.java +++ b/java/java-impl/src/com/intellij/codeInspection/unusedSymbol/UnusedSymbolLocalInspection.java @@ -1,22 +1,9 @@ -/* - * Copyright 2000-2014 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.codeInspection.unusedSymbol; import com.intellij.psi.PsiModifier; +import com.intellij.util.ui.JBUI; import com.intellij.util.ui.UIUtil; import org.jetbrains.annotations.Nullable; @@ -57,6 +44,7 @@ public class UnusedSymbolLocalInspection extends UnusedSymbolLocalInspectionBase myInnerClassesCheckBox.setSelected(INNER_CLASS); myCheckParametersCheckBox.setSelected(PARAMETER); myCheckParameterExcludingHierarchyCheckBox.setSelected(myCheckParameterExcludingHierarchy); + myCheckParameterExcludingHierarchyCheckBox.setBorder(JBUI.Borders.emptyLeft(5)); myAccessors.setSelected(!isIgnoreAccessors()); updateEnableState();