util: collapse if statements to get rid of inspection warnings
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Fri, 7 Aug 2015 13:22:35 +0000 (16:22 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Fri, 7 Aug 2015 13:22:35 +0000 (16:22 +0300)
platform/platform-api/src/com/intellij/util/ui/FormBuilder.java

index 138363badd0af07c37bcaf01a75002f20e8be834..056d3f29fd82635092411506d84e1441e8573c1d 100644 (file)
@@ -212,10 +212,9 @@ public class FormBuilder {
   }
 
   protected int getFill(JComponent component) {
-    if (component instanceof JComboBox || component instanceof JSpinner) {
-      return NONE;
-    }
-    else if (component instanceof JTextField && ((JTextField)component).getColumns() != 0) {
+    if (component instanceof JComboBox ||
+        component instanceof JSpinner ||
+        component instanceof JTextField && ((JTextField)component).getColumns() != 0) {
       return NONE;
     }
     return HORIZONTAL;