From c0eb35e6add9daf3c06179d8d232628ca37205a1 Mon Sep 17 00:00:00 2001 From: henry-lp Date: Thu, 16 Jul 2020 18:39:15 +0200 Subject: [PATCH] Proposal for patching SonarQube rule 4973 Signed-off-by: henry-lp --- .../eclipse/php/composer/ui/parts/composer/PackageSearch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/org.eclipse.php.composer.ui/src/org/eclipse/php/composer/ui/parts/composer/PackageSearch.java b/plugins/org.eclipse.php.composer.ui/src/org/eclipse/php/composer/ui/parts/composer/PackageSearch.java index ae068c96f7..71d7ed70ec 100755 --- a/plugins/org.eclipse.php.composer.ui/src/org/eclipse/php/composer/ui/parts/composer/PackageSearch.java +++ b/plugins/org.eclipse.php.composer.ui/src/org/eclipse/php/composer/ui/parts/composer/PackageSearch.java @@ -261,7 +261,7 @@ public void run() { } protected synchronized void startQuery() { - if (lastQuery == currentQuery) { + if (lastQuery.equals(currentQuery)) { return; } downloader.search(currentQuery);