diff options
author | Alexander Kurtakov | 2019-06-14 16:09:24 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2019-06-14 16:09:24 +0000 |
commit | f0b5f3df0b2fa9b5212a54a93d30ed04cd2a60c4 (patch) | |
tree | 07696ba5885a779ee24e33740baa6a6d4345d19d /examples | |
parent | 92a04bd1ad8bb54084f77a21b000a8224e3d7e7b (diff) | |
download | eclipse.platform.swt-f0b5f3df0b2fa9b5212a54a93d30ed04cd2a60c4.tar.gz eclipse.platform.swt-f0b5f3df0b2fa9b5212a54a93d30ed04cd2a60c4.tar.xz eclipse.platform.swt-f0b5f3df0b2fa9b5212a54a93d30ed04cd2a60c4.zip |
Stop using deprecated number constructors.
Change-Id: I2e5be7b507b5e0363c4be900bba6b1d716c0b170
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet307.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet307.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet307.java index 9edb48252b..c2e83ef353 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet307.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet307.java @@ -81,12 +81,12 @@ static class CustomFunction extends BrowserFunction { } } Object returnValue = new Object[] { - new Short ((short)3), - new Boolean (true), + Short.valueOf ((short)3), + true, null, - new Object[] {"a string", new Boolean (false)}, + new Object[] {"a string", false}, "hi", - new Float (2.0f / 3.0f), + Float.valueOf (2.0f / 3.0f), }; //int z = 3 / 0; // uncomment to cause a java error instead return returnValue; |