Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-05-24 15:38:39 +0000
committerKarsten Thoms2019-06-12 00:15:41 +0000
commitb17ecf3fcedde66bb379483f57126e59f0cd0e66 (patch)
tree3496d09dce4f3a59d2f48885f23e691278811cf0 /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parent44df04d61c61aac5a356741872258a6e69d37b2f (diff)
downloadeclipse.platform.debug-b17ecf3fcedde66bb379483f57126e59f0cd0e66.tar.gz
eclipse.platform.debug-b17ecf3fcedde66bb379483f57126e59f0cd0e66.tar.xz
eclipse.platform.debug-b17ecf3fcedde66bb379483f57126e59f0cd0e66.zip
Use isEmpty() instead of size()==0 where possible
Change-Id: Iba492570def0a381d0c4a06a5ad3b7c8c8a3419e Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java
index 391c87291..ab12e95cc 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java
@@ -706,7 +706,7 @@ public class EnvironmentTab extends AbstractLaunchConfigurationTab {
EnvironmentVariable var = (EnvironmentVariable) items[i].getData();
map.put(var.getName(), var.getValue());
}
- if (map.size() == 0) {
+ if (map.isEmpty()) {
configuration.setAttribute(ILaunchManager.ATTR_ENVIRONMENT_VARIABLES, (Map<String, String>) null);
} else {
configuration.setAttribute(ILaunchManager.ATTR_ENVIRONMENT_VARIABLES, map);

Back to the top