diff options
author | Thomas Watson | 2016-11-14 14:11:36 +0000 |
---|---|---|
committer | Thomas Watson | 2017-06-16 12:38:08 +0000 |
commit | f919cea9a25f4b6e05a9e04397c3254c51f85780 (patch) | |
tree | 2b5c8a8defae9a2cee2749ad5ae602c5c73e2d6e /bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/Version.java | |
parent | 0af49fa8440cd17af48b6a54c5d52f6ea26267c9 (diff) | |
download | rt.equinox.framework-f919cea9a25f4b6e05a9e04397c3254c51f85780.tar.gz rt.equinox.framework-f919cea9a25f4b6e05a9e04397c3254c51f85780.tar.xz rt.equinox.framework-f919cea9a25f4b6e05a9e04397c3254c51f85780.zip |
Update framework API to the latest for R7.
Change-Id: I6c9d481175591949ba2791dc4000fb6be5639abb
Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/Version.java')
-rw-r--r-- | bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/Version.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/Version.java b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/Version.java index c6b22d8ea..ff2de38ea 100644 --- a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/Version.java +++ b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/Version.java @@ -144,9 +144,8 @@ public class Version implements Comparable<Version> { } } } catch (NoSuchElementException e) { - IllegalArgumentException iae = new IllegalArgumentException("invalid version \"" + version + "\": invalid format"); - iae.initCause(e); - throw iae; + throw new IllegalArgumentException( + "invalid version \"" + version + "\": invalid format", e); } major = maj; @@ -167,9 +166,8 @@ public class Version implements Comparable<Version> { try { return Integer.parseInt(value); } catch (NumberFormatException e) { - IllegalArgumentException iae = new IllegalArgumentException("invalid version \"" + version + "\": non-numeric \"" + value + "\""); - iae.initCause(e); - throw iae; + throw new IllegalArgumentException("invalid version \"" + version + + "\": non-numeric \"" + value + "\"", e); } } |