Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
6a6ca3b0
Commit
6a6ca3b0
authored
6 years ago
by
Bas Leijdekkers
Browse files
Options
Download
Email Patches
Plain Diff
IG: remove ugly border in inspection settings
for "Type may be weakened" inspection
parent
848b8584
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/InspectionGadgets/src/com/siyeh/ig/abstraction/TypeMayBeWeakenedInspection.java
+4
-4
...com/siyeh/ig/abstraction/TypeMayBeWeakenedInspection.java
with
4 additions
and
4 deletions
+4
-4
plugins/InspectionGadgets/src/com/siyeh/ig/abstraction/TypeMayBeWeakenedInspection.java
+
4
-
4
View file @
6a6ca3b0
/*
* Copyright 2006-201
8
Bas Leijdekkers
* Copyright 2006-201
9
Bas Leijdekkers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -42,7 +42,8 @@ import com.intellij.psi.util.InheritanceUtil;
import
com.intellij.psi.util.PsiTreeUtil
;
import
com.intellij.psi.util.PsiUtil
;
import
com.intellij.psi.util.PsiUtilCore
;
import
com.intellij.ui.components.JBScrollPane
;
import
com.intellij.ui.ScrollPaneFactory
;
import
com.intellij.ui.SideBorder
;
import
com.intellij.ui.components.panels.VerticalBox
;
import
com.intellij.util.ObjectUtils
;
import
com.intellij.util.Query
;
...
...
@@ -243,7 +244,6 @@ public class TypeMayBeWeakenedInspection extends AbstractBaseJavaLocalInspection
@NotNull
public
JComponent
createOptionsPanel
()
{
VerticalBox
verticalBox
=
new
VerticalBox
();
JBScrollPane
scrollPane
=
new
JBScrollPane
(
verticalBox
,
ScrollPaneConstants
.
VERTICAL_SCROLLBAR_AS_NEEDED
,
ScrollPaneConstants
.
HORIZONTAL_SCROLLBAR_AS_NEEDED
);
final
MultipleCheckboxOptionsPanel
optionsPanel
=
new
MultipleCheckboxOptionsPanel
(
this
);
optionsPanel
.
addCheckbox
(
InspectionGadgetsBundle
.
message
(
"inspection.type.may.be.weakened.ignore.option"
),
"useRighthandTypeAsWeakestTypeInAssignments"
);
...
...
@@ -264,7 +264,7 @@ public class TypeMayBeWeakenedInspection extends AbstractBaseJavaLocalInspection
UiUtils
.
createAddRemoveTreeClassChooserPanel
(
stopClassesTable
,
InspectionGadgetsBundle
.
message
(
"inspection.type.may.be.weakened.add.stop.class.selection.table"
),
CommonClassNames
.
JAVA_LANG_OBJECT
);
verticalBox
.
add
(
stopClassesPanel
);
return
scrollPane
;
return
ScrollPaneFactory
.
createScrollPane
(
verticalBox
,
true
)
;
}
private
static
class
TypeMayBeWeakenedFix
implements
LocalQuickFix
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help