Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2011-03-29 05:07:47 -0400
committerGlyn Normington2011-03-29 05:07:47 -0400
commit5fc7144956b3c515c6556032ed63aa6e2dc675bc (patch)
treea243ebcbcd8e5a77fa58063c26d69bfc9d351945
parentd9203b6ce1b49bf37b4881023183bde9ef01b8a2 (diff)
downloadorg.eclipse.virgo.kernel-5fc7144956b3c515c6556032ed63aa6e2dc675bc.tar.gz
org.eclipse.virgo.kernel-5fc7144956b3c515c6556032ed63aa6e2dc675bc.tar.xz
org.eclipse.virgo.kernel-5fc7144956b3c515c6556032ed63aa6e2dc675bc.zip
bug 341015: delete dead exceptions
-rw-r--r--org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/IndeterminateRegionException.java38
-rw-r--r--org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/RegionSpanningException.java51
2 files changed, 0 insertions, 89 deletions
diff --git a/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/IndeterminateRegionException.java b/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/IndeterminateRegionException.java
deleted file mode 100644
index e2109551..00000000
--- a/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/IndeterminateRegionException.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************
- * This file is part of the Virgo Web Server.
- *
- * Copyright (c) 2010 VMware Inc.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * SpringSource, a division of VMware - initial API and implementation and/or initial documentation
- *******************************************************************************/
-
-package org.eclipse.virgo.kernel.osgi.region;
-
-/**
- * {@link IndeterminateRegionException} is thrown when the region of a bundle cannot be determined.
- * <p />
- *
- * <strong>Concurrent Semantics</strong><br />
- *
- * Thread safe.
- *
- */
-public abstract class IndeterminateRegionException extends Exception {
-
- private static final long serialVersionUID = 76745737151453L;
-
- /**
- * Construct an {@link IndeterminateRegionException} for the given bundle.
- *
- * @param bundleId the id of the bundle whose region cannot be determined
- */
- public IndeterminateRegionException(String message) {
- super(message);
- }
-
-}
diff --git a/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/RegionSpanningException.java b/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/RegionSpanningException.java
deleted file mode 100644
index fa5d4755..00000000
--- a/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/RegionSpanningException.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*******************************************************************************
- * This file is part of the Virgo Web Server.
- *
- * Copyright (c) 2010 VMware Inc.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * SpringSource, a division of VMware - initial API and implementation and/or initial documentation
- *******************************************************************************/
-
-package org.eclipse.virgo.kernel.osgi.region;
-
-import org.osgi.framework.Bundle;
-
-/**
- * {@link RegionSpanningException} is thrown when an attempt is made to determine the region a bundle belongs when the
- * bundle spans multiple regions. The principle example is the system bundle which spans all regions.
- * <p />
- *
- * <strong>Concurrent Semantics</strong><br />
- *
- * Thread safe.
- *
- */
-public class RegionSpanningException extends IndeterminateRegionException {
-
-
- private static final long serialVersionUID = 545234523452345L;
-
- /**
- * Construct a {@link RegionSpanningException} for the given bundle.
- *
- * @param bundleId the id of the bundle whose region cannot be uniquely determined
- */
- public RegionSpanningException(Long bundleId) {
- super("Bundle with id '" + bundleId + "' spans multiple regions");
- }
-
- /**
- * Construct a {@link RegionSpanningException} for the given bundle.
- *
- * @param bundle the bundle whose region cannot be uniquely determined
- */
- public RegionSpanningException(Bundle bundle) {
- super("Bundle '" + bundle + "' spans multiple regions");
- }
-
-}

Back to the top