You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by jd...@apache.org on 2026/08/06 17:07:37 UTC

(grails-intellij-plugin) branch main updated: Fix vargs calls causing isHide to error

This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/grails-intellij-plugin.git


The following commit(s) were added to refs/heads/main by this push:
     new a912b65  Fix vargs calls causing isHide to error
a912b65 is described below

commit a912b6543c5f5c53b1e3a58f90eb87a13ef03f73
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Thu Aug 6 13:07:28 2026 -0400

    Fix vargs calls causing isHide to error
---
 .../grails/intellij/plugin/projectView/GrailsProjectViewPanes.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/plugin/src/main/java/org/apache/grails/intellij/plugin/projectView/GrailsProjectViewPanes.java b/plugin/src/main/java/org/apache/grails/intellij/plugin/projectView/GrailsProjectViewPanes.java
index b5e4afa..3d257ae 100644
--- a/plugin/src/main/java/org/apache/grails/intellij/plugin/projectView/GrailsProjectViewPanes.java
+++ b/plugin/src/main/java/org/apache/grails/intellij/plugin/projectView/GrailsProjectViewPanes.java
@@ -23,7 +23,6 @@ import org.jetbrains.annotations.NotNull;
 import org.apache.grails.intellij.plugin.config.GrailsConstants;
 import org.apache.grails.intellij.plugin.structure.GrailsApplicationManager;
 
-import java.util.Arrays;
 import java.util.Objects;
 
 /** Was showHide.kt; adds or removes the Grails project view pane as applications appear or go away. */
@@ -37,7 +36,7 @@ public final class GrailsProjectViewPanes {
   public static void showHide(@NotNull Project project) {
     GrailsApplicationManager grailsApplicationManager = GrailsApplicationManager.getInstance(project);
     ProjectView projectView = ProjectView.getInstance(project);
-    boolean hasPane = Arrays.asList(projectView.getPaneIds()).contains(ID);
+    boolean hasPane = projectView.getPaneIds().contains(ID);
     if (grailsApplicationManager.hasApplications()) {
       if (!hasPane) {
         projectView.addProjectPane(getPane(project));