X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dmaap%2Fdatarouter.git;a=blobdiff_plain;f=datarouter-prov%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdatarouter%2Fprovisioning%2Fbeans%2FEgressRoute.java;h=2b6462db7630c8946302a20f9edb084a6eef1923;hp=54d5b39f5c954c9d7c323e1923f50b7d8a4d5456;hb=6c78b3e6a0a67c73f931337356a172cc69cee0e8;hpb=bc1df610cddfb558cf6bde90c269b4af59768648 diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/EgressRoute.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/EgressRoute.java index 54d5b39f..2b6462db 100644 --- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/EgressRoute.java +++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/EgressRoute.java @@ -57,10 +57,6 @@ public class EgressRoute extends NodeClass implements Comparable { public EgressRoute(int subid, int nodeid) { this.subid = subid; this.nodeid = nodeid; - // Note: unlike for Feeds, it subscriptions can be removed from the tables, so it is - // possible that an orphan ERT entry can exist if a sub is removed. - // if (Subscription.getSubscriptionById(subid) == null) - // throw new IllegalArgumentException("No such subscription: "+subid); } public EgressRoute(int subid, String node) { @@ -149,7 +145,6 @@ public class EgressRoute extends NodeClass implements Comparable { ps.setInt(1, this.subid); ps.setInt(2, this.nodeid); ps.execute(); - ps.close(); rv = true; } catch (SQLException e) { intlogger.warn("PROV0005 doInsert: " + e.getMessage(), e);