Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-03-14 04:48:01 +0000
committerEike Stepper2010-03-14 04:48:01 +0000
commit4a44d33e8e2055b283e0cec27958180dd8881654 (patch)
tree033e57db591c54c8b2333fb77568e4e5e34706ac /plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui
parenta833d09493a342bfed5c4cee2083a6634392d1d7 (diff)
downloadcdo-4a44d33e8e2055b283e0cec27958180dd8881654.tar.gz
cdo-4a44d33e8e2055b283e0cec27958180dd8881654.tar.xz
cdo-4a44d33e8e2055b283e0cec27958180dd8881654.zip
fixed warnings
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui')
-rw-r--r--plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui/internal/branch/item/BranchTreeUtils.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui/internal/branch/item/BranchTreeUtils.java b/plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui/internal/branch/item/BranchTreeUtils.java
index 865178ed76..5253e9ace1 100644
--- a/plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui/internal/branch/item/BranchTreeUtils.java
+++ b/plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui/internal/branch/item/BranchTreeUtils.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Andre Dietisheim - initial API and implementation
*/
@@ -76,11 +76,9 @@ public class BranchTreeUtils
{
return targetInternalNode.getInternalX() - targetInternalNode.getInternalWidth() / 2;
}
- else
- {
- return sourceInternalNode.getInternalX()
- + (sourceInternalNode.getInternalWidth() - targetInternalNode.getInternalWidth()) / 2;
- }
+
+ return sourceInternalNode.getInternalX()
+ + (sourceInternalNode.getInternalWidth() - targetInternalNode.getInternalWidth()) / 2;
}
/**

Back to the top