diff options
author | Carsten Hammer | 2020-03-14 11:57:03 +0000 |
---|---|---|
committer | Carsten Hammer | 2020-04-21 19:54:21 +0000 |
commit | 61b67eb5c221afba067e55eed231c749b33c6140 (patch) | |
tree | feb267d48434f2ec3a58974fbdf50ec86ec45611 /org.eclipse.ui.genericeditor.examples/.classpath | |
parent | e33cf060c7cd163675a031f95eff05605cc45d79 (diff) | |
download | eclipse.platform.text-I20200425-1800.tar.gz eclipse.platform.text-I20200425-1800.tar.xz eclipse.platform.text-I20200425-1800.zip |
Use switch over strings where possibleY20200428-0250Y20200428-0140Y20200427-2330I20200428-0230I20200427-1800I20200426-1800I20200425-1800I20200424-1800I20200424-0540I20200423-1800I20200422-1800I20200421-1800
Change cascades of ifs which can be converted to switch over Strings.
A switch statement might be faster than an if-then-else chain. And it
improves clarity.
The problem with if..else chain is that I have to look into all the
if conditions to understand what the program is doing. And the variable
might change in the chain processing.
Change-Id: I936f634408bce4b867ca8794debe1a12500e0de6
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'org.eclipse.ui.genericeditor.examples/.classpath')
0 files changed, 0 insertions, 0 deletions