diff options
author | Douglas Pollock | 2005-10-24 19:06:52 +0000 |
---|---|---|
committer | Douglas Pollock | 2005-10-24 19:06:52 +0000 |
commit | 9ed5dac984b63b286b81340ada7857d79dd8c82b (patch) | |
tree | 0119806c69af692510b934e7ff7366309cca3254 /bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java | |
parent | 9a1c77cbe0e8755e0c742dd84b5b8320e42e707b (diff) | |
download | eclipse.platform.ui-9ed5dac984b63b286b81340ada7857d79dd8c82b.tar.gz eclipse.platform.ui-9ed5dac984b63b286b81340ada7857d79dd8c82b.tar.xz eclipse.platform.ui-9ed5dac984b63b286b81340ada7857d79dd8c82b.zip |
Fixing a general types of compiler warnings: unnecessary nesting, completely crazy javadoc tags, unused code, etc.
Diffstat (limited to 'bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java')
-rw-r--r-- | bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java index 30928361529..b63d372b85f 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java @@ -373,9 +373,9 @@ public class FontRegistry extends ResourceRegistry { //first one as it is at least the first choice. if (fonts.length > 0) return fonts[0]; - else - //Nothing specified - return null; + + //Nothing specified + return null; } /** @@ -390,11 +390,10 @@ public class FontRegistry extends ResourceRegistry { FontData bestData = bestData(fonts, display); if (bestData == null) return null; - else { - FontData[] datas = new FontData[1]; - datas[0] = bestData; - return datas; - } + + FontData[] datas = new FontData[1]; + datas[0] = bestData; + return datas; } /** @@ -472,8 +471,8 @@ public class FontRegistry extends ResourceRegistry { Font font = new Font(null, shell.getFont().getFontData()); shell.dispose(); return font; - } else - return new Font(current, current.getSystemFont().getFontData()); + } + return new Font(current, current.getSystemFont().getFontData()); } /** |