diff options
author | Carsten Hammer | 2019-05-24 15:36:51 +0000 |
---|---|---|
committer | Lars Vogel | 2019-06-12 14:44:10 +0000 |
commit | 8816cdaddd2f38ac3be6e6a70a0e8a683c772d83 (patch) | |
tree | 1153216ca56f53f33e8f176ded7954b3e4c6c8ed /org.eclipse.ui.genericeditor | |
parent | 4f61ae008412225c6e73ac917ce6a839a58e5eda (diff) | |
download | eclipse.platform.text-8816cdaddd2f38ac3be6e6a70a0e8a683c772d83.tar.gz eclipse.platform.text-8816cdaddd2f38ac3be6e6a70a0e8a683c772d83.tar.xz eclipse.platform.text-8816cdaddd2f38ac3be6e6a70a0e8a683c772d83.zip |
Use isEmpty() instead of size()==0 where possibleI20190613-0210I20190612-1800
Change-Id: Ib6c59f4c9cea396c98196d23ff9ea917e2ef4114
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'org.eclipse.ui.genericeditor')
-rw-r--r-- | org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/hover/CompositeInformationControl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/hover/CompositeInformationControl.java b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/hover/CompositeInformationControl.java index b271c5338e0..3a7ae722703 100644 --- a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/hover/CompositeInformationControl.java +++ b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/hover/CompositeInformationControl.java @@ -95,7 +95,7 @@ public class CompositeInformationControl extends AbstractInformationControl impl if (informationControl instanceof AbstractInformationControl) { List<Control> children = Arrays.asList(((AbstractInformationControl)informationControl).getShell().getChildren()); children.remove(parent); - if (children.size() == 0 ) { + if (children.isEmpty() ) { continue; } for (Control control : children) { |