Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2016-11-14 14:11:36 +0000
committerThomas Watson2017-06-16 12:38:08 +0000
commitf919cea9a25f4b6e05a9e04397c3254c51f85780 (patch)
tree2b5c8a8defae9a2cee2749ad5ae602c5c73e2d6e /bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/Version.java
parent0af49fa8440cd17af48b6a54c5d52f6ea26267c9 (diff)
downloadrt.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.java10
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);
}
}

Back to the top