Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-06-05 16:32:00 +0000
committerLars Vogel2020-06-10 08:47:56 +0000
commit83672f954e70715acb869dc6e68066955ee543ef (patch)
treea9d694b4a9b3906ea045494f1663ef19077c19e5
parentbb0be2029b1b0d57b083150b21a88f34b1bdcc2d (diff)
downloadeclipse.platform.team-83672f954e70715acb869dc6e68066955ee543ef.tar.gz
eclipse.platform.team-83672f954e70715acb869dc6e68066955ee543ef.tar.xz
eclipse.platform.team-83672f954e70715acb869dc6e68066955ee543ef.zip
Bug 564117 - Using lazy logical operator
Use lazy logical operator (&& and ||) as it is potentially faster. Change-Id: I6ab8cc6d5ce35cb3a916a6e11de4521340400a73 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/KeyboardInteractiveDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/KeyboardInteractiveDialog.java b/bundles/org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/KeyboardInteractiveDialog.java
index 6b1328251..20a1bb4f1 100644
--- a/bundles/org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/KeyboardInteractiveDialog.java
+++ b/bundles/org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/KeyboardInteractiveDialog.java
@@ -193,7 +193,7 @@ protected Control createDialogArea(Composite parent) {
createPasswordFields(main);
- if (isPasswordAuth & domain != null) {
+ if (isPasswordAuth && domain != null) {
allowCachingButton = new Button(main, SWT.CHECK);
allowCachingButton.setText(Messages.KeyboardInteractiveDialog_4);
data = new GridData(GridData.FILL_HORIZONTAL

Back to the top