genericify method signature
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Tue, 26 Jan 2016 11:48:38 +0000 (14:48 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Tue, 26 Jan 2016 11:48:38 +0000 (14:48 +0300)
platform/platform-impl/src/com/intellij/util/ui/SwingHelper.java

index a2ed1459f6eb648abf2894b73426942f0271f0a3..7105dcfccc6e60c98a465bdb61d6d24738fdafdf 100644 (file)
@@ -262,7 +262,7 @@ public class SwingHelper {
     });
   }
 
-  public static <T> void updateItems(@NotNull JComboBox comboBox,
+  public static <T> void updateItems(@NotNull JComboBox<T> comboBox,
                                      @NotNull List<T> newItems,
                                      @Nullable T newSelectedItemIfSelectionCannotBePreserved) {
     if (!shouldUpdate(comboBox, newItems)) {
@@ -292,7 +292,7 @@ public class SwingHelper {
     }
   }
 
-  private static <T> boolean shouldUpdate(@NotNull JComboBox comboBox, @NotNull List<T> newItems) {
+  private static <T> boolean shouldUpdate(@NotNull JComboBox<T> comboBox, @NotNull List<T> newItems) {
     int count = comboBox.getItemCount();
     if (newItems.size() != count) {
       return true;