diff options
author | Mickael Istria | 2016-03-10 09:06:46 +0000 |
---|---|---|
committer | Mickael Istria | 2016-03-24 18:50:40 +0000 |
commit | 8c50a147d336c900c2103fffdb3c485f286d45ba (patch) | |
tree | 10290202cc391a5d61e8cb0ecda3b78b3eec5677 /bundles/org.eclipse.equinox.common/src | |
parent | c0b5d56b195d220b4b22d172e1ac3b608a164234 (diff) | |
download | rt.equinox.bundles-8c50a147d336c900c2103fffdb3c485f286d45ba.tar.gz rt.equinox.bundles-8c50a147d336c900c2103fffdb3c485f286d45ba.tar.xz rt.equinox.bundles-8c50a147d336c900c2103fffdb3c485f286d45ba.zip |
Bug 489330 - Technical debt : Number instantiations
Save resources by using the Number factories (valueOf) rather than
creating new instances.
Change-Id: I285439a41bb102a88d893527f23366444ccafdbe
Signed-off-by: Mickael Istria <mistria@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.common/src')
-rw-r--r-- | bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/PluginVersionIdentifier.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/PluginVersionIdentifier.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/PluginVersionIdentifier.java index aa0eff738..7fc0e8b92 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/PluginVersionIdentifier.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/PluginVersionIdentifier.java @@ -202,9 +202,9 @@ public final class PluginVersionIdentifier { // "result" is a 4-element array with the major, minor, service, and qualifier Object[] result = new Object[4]; - result[0] = new Integer(numbers[0]); - result[1] = new Integer(numbers[1]); - result[2] = new Integer(numbers[2]); + result[0] = Integer.valueOf(numbers[0]); + result[1] = Integer.valueOf(numbers[1]); + result[2] = Integer.valueOf(numbers[2]); if (elementSize >= 4) result[3] = elements.elementAt(3); else |