From 0c5559d86446464191370933f2d31f5e04ae74cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Mon, 5 Jun 2023 08:25:59 +0200 Subject: [PATCH] CheatSheetCategoryBasedSelectionDialog fix binary boolean expression --- .../dialogs/CheatSheetCategoryBasedSelectionDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/dialogs/CheatSheetCategoryBasedSelectionDialog.java b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/dialogs/CheatSheetCategoryBasedSelectionDialog.java index 2a7945825..55a292739 100644 --- a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/dialogs/CheatSheetCategoryBasedSelectionDialog.java +++ b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/dialogs/CheatSheetCategoryBasedSelectionDialog.java @@ -696,7 +696,7 @@ private void saveMRU(List mostRecentList, String key, String selection) if (selection.length() > 0 && !mostRecentList.contains(selection)) { mostRecentList.add(0, selection); } - for (int i = 0; i < MOST_RECENT_LENGTH & i < mostRecentList.size(); i++) { + for (int i = 0; i < MOST_RECENT_LENGTH && i < mostRecentList.size(); i++) { String name = mostRecentList.get(i); if (name.length() > 0) { settings.put(key + i, name);