Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Sewe2016-09-08 11:46:32 +0000
committerAndreas Sewe2016-09-08 12:35:39 +0000
commit1f2340995fb730cf776b47ee4b84a45469c5e392 (patch)
tree1c2f11929a88dd3cc316f720791244c96097b7e3 /bundles/org.eclipse.osgi.compatibility.state
parentfef33690b9c5b85c608f5466aeede64a8c18b9b7 (diff)
downloadrt.equinox.framework-1f2340995fb730cf776b47ee4b84a45469c5e392.tar.gz
rt.equinox.framework-1f2340995fb730cf776b47ee4b84a45469c5e392.tar.xz
rt.equinox.framework-1f2340995fb730cf776b47ee4b84a45469c5e392.zip
Change-Id: I8e8dde9b777054ea62c5e6d0ce38191d50bf8c92 Signed-off-by: Andreas Sewe <andreas.sewe@codetrails.com>
Diffstat (limited to 'bundles/org.eclipse.osgi.compatibility.state')
-rw-r--r--bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateObjectFactoryImpl.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateObjectFactoryImpl.java b/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateObjectFactoryImpl.java
index ea10b4af3..3561689e6 100644
--- a/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateObjectFactoryImpl.java
+++ b/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateObjectFactoryImpl.java
@@ -99,7 +99,7 @@ public class StateObjectFactoryImpl implements StateObjectFactory {
bundle.setArbitraryDirectives(StateBuilder.getDirectives(bsnElement, StateBuilder.DEFINED_BSN_DIRECTIVES));
}
} catch (BundleException e) {
- throw (IllegalArgumentException) new IllegalArgumentException("Illegal symbolic name: " + symbolicName).initCause(e); //$NON-NLS-1$
+ throw new IllegalArgumentException("Illegal symbolic name: " + symbolicName, e); //$NON-NLS-1$
}
bundle.setVersion(version);
@@ -514,7 +514,7 @@ public class StateObjectFactoryImpl implements StateObjectFactory {
result.add(StateBuilder.createRequiredBundle(element));
return result;
} catch (BundleException e) {
- throw (IllegalArgumentException) new IllegalArgumentException("Declaration is invalid: " + declaration).initCause(e); //$NON-NLS-1$
+ throw new IllegalArgumentException("Declaration is invalid: " + declaration, e); //$NON-NLS-1$
}
}
@@ -528,7 +528,7 @@ public class StateObjectFactoryImpl implements StateObjectFactory {
result.add(StateBuilder.createHostSpecification(element, null));
return result;
} catch (BundleException e) {
- throw (IllegalArgumentException) new IllegalArgumentException("Declaration is invalid: " + declaration).initCause(e); //$NON-NLS-1$
+ throw new IllegalArgumentException("Declaration is invalid: " + declaration, e); //$NON-NLS-1$
}
}
@@ -542,7 +542,7 @@ public class StateObjectFactoryImpl implements StateObjectFactory {
StateBuilder.addImportPackages(element, result, 2, false);
return result;
} catch (BundleException e) {
- throw (IllegalArgumentException) new IllegalArgumentException("Declaration is invalid: " + declaration).initCause(e); //$NON-NLS-1$
+ throw new IllegalArgumentException("Declaration is invalid: " + declaration, e); //$NON-NLS-1$
}
}
@@ -553,7 +553,7 @@ public class StateObjectFactoryImpl implements StateObjectFactory {
return Collections.<GenericDescription> emptyList();
return StateBuilder.createOSGiCapabilities(elements, new ArrayList<GenericDescription>(elements.length), (Integer) null);
} catch (BundleException e) {
- throw (IllegalArgumentException) new IllegalArgumentException("Declaration is invalid: " + declaration).initCause(e); //$NON-NLS-1$
+ throw new IllegalArgumentException("Declaration is invalid: " + declaration, e); //$NON-NLS-1$
}
}
@@ -564,7 +564,7 @@ public class StateObjectFactoryImpl implements StateObjectFactory {
return Collections.<GenericSpecification> emptyList();
return StateBuilder.createOSGiRequires(elements, new ArrayList<GenericSpecification>(elements.length));
} catch (BundleException e) {
- throw (IllegalArgumentException) new IllegalArgumentException("Declaration is invalid: " + declaration).initCause(e); //$NON-NLS-1$
+ throw new IllegalArgumentException("Declaration is invalid: " + declaration, e); //$NON-NLS-1$
}
}
@@ -578,7 +578,7 @@ public class StateObjectFactoryImpl implements StateObjectFactory {
StateBuilder.addExportPackages(element, result, false);
return result;
} catch (BundleException e) {
- throw (IllegalArgumentException) new IllegalArgumentException("Declaration is invalid: " + declaration).initCause(e); //$NON-NLS-1$
+ throw new IllegalArgumentException("Declaration is invalid: " + declaration, e); //$NON-NLS-1$
}
}
}

Back to the top