diff options
author | Lars Vogel | 2020-06-05 16:32:23 +0000 |
---|---|---|
committer | Karsten Thoms | 2020-06-10 08:14:22 +0000 |
commit | e0e23692a403dfb467b83400f7729f3e490385c6 (patch) | |
tree | 6f7b3b19a0670a69bbd847ce21d6da7b3be93605 /org.eclipse.debug.core | |
parent | 643b927aa1a70d1687c2bbccceb0110d3d14b3bb (diff) | |
download | eclipse.platform.debug-e0e23692a403dfb467b83400f7729f3e490385c6.tar.gz eclipse.platform.debug-e0e23692a403dfb467b83400f7729f3e490385c6.tar.xz eclipse.platform.debug-e0e23692a403dfb467b83400f7729f3e490385c6.zip |
Bug 564117 - Using lazy logical operatorI20200610-1800
Use lazy logical operator (&& and ||) as it is potentially faster.
Change-Id: I73f4bae34305b349af92986f4c9b845b6a4d241a
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.debug.core')
-rw-r--r-- | org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationInfo.java | 2 | ||||
-rw-r--r-- | org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationInfo.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationInfo.java index 9b4d8dc9f..9f460fdc1 100644 --- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationInfo.java +++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationInfo.java @@ -896,7 +896,7 @@ public class LaunchConfigurationInfo { String strAttr1 = null; String strAttr2 = null; if (fgIsSun14x) { - if(attr2 instanceof String & attr1 instanceof String) { + if(attr2 instanceof String && attr1 instanceof String) { // this is a hack for bug 110215, on SUN 1.4.x, \r // is stripped off when the stream is written to the // DOM diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java index 926761748..ad5ac4245 100644 --- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java +++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java @@ -1630,7 +1630,7 @@ public class LaunchManager extends PlatformObject implements ILaunchManager, IRe LaunchDelegate delegate = getLaunchDelegateExtension(typeid, delegateid, modeset); if (delegate != null) { //take type id, modeset, delegate and create entry - if(!IInternalDebugCoreConstants.EMPTY_STRING.equals(typeid) & modeset != null) { + if(!IInternalDebugCoreConstants.EMPTY_STRING.equals(typeid) && modeset != null) { fPreferredDelegates.add(new PreferredDelegate(delegate, typeid, modeset)); } } |