[Dive4elements-commits] [PATCH] Removed unnecessary call of map.containsKey(x)
Wald Commits
scm-commit at wald.intevation.org
Sat Jun 1 09:10:33 CEST 2013
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1370070615 -7200
# Node ID 04dd1f598ef99001c84e94d980293a4c57192817
# Parent 21d92d54303e3feb3505379b5a3617c1bb6f1250
Removed unnecessary call of map.containsKey(x).
diff -r 21d92d54303e -r 04dd1f598ef9 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java Sat Jun 01 09:02:51 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java Sat Jun 01 09:10:15 2013 +0200
@@ -240,8 +240,8 @@
@Override
public void onItemHover(ItemHoverEvent event) {
String river = ((LinkItem)event.getItem()).getLinkTitle();
- if (riverHighlight.containsKey(river)) {
- Img item = riverHighlight.get(river);
+ Img item = riverHighlight.get(river);
+ if (item != null) {
item.setVisible(true);
if (selected != null && !selected.equals(river)) {
riverHighlight.get(selected).setVisible(false);
More information about the Dive4elements-commits
mailing list