You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by vl...@apache.org on 2021/01/25 22:08:55 UTC

[jmeter] branch master updated: Remove unnecessary parenthesis in LoadRecentProject

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

vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new f551e6f  Remove unnecessary parenthesis in LoadRecentProject
f551e6f is described below

commit f551e6f78725c0271bc2569ea0e05c9cf56ac3ca
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Tue Jan 26 01:08:10 2021 +0300

    Remove unnecessary parenthesis in LoadRecentProject
---
 .../src/main/java/org/apache/jmeter/gui/action/LoadRecentProject.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/src/main/java/org/apache/jmeter/gui/action/LoadRecentProject.java b/src/core/src/main/java/org/apache/jmeter/gui/action/LoadRecentProject.java
index 1f1273a..a75ffcd 100644
--- a/src/core/src/main/java/org/apache/jmeter/gui/action/LoadRecentProject.java
+++ b/src/core/src/main/java/org/apache/jmeter/gui/action/LoadRecentProject.java
@@ -125,7 +125,7 @@ public class LoadRecentProject extends Load {
         Deque<String> newRecentFiles = IntStream.range(0, NUMBER_OF_MENU_ITEMS)
                 .mapToObj(LoadRecentProject::getRecentFile)
                 .filter(Objects::nonNull)
-                .filter(s -> !(s.equals(loadedFileName)))
+                .filter(s -> !s.equals(loadedFileName))
                 .collect(Collectors.toCollection(ArrayDeque::new));
         newRecentFiles.addFirst(loadedFileName);