X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=datarouter-prov%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdatarouter%2Fprovisioning%2Fbeans%2FEgressRoute.java;fp=datarouter-prov%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdatarouter%2Fprovisioning%2Fbeans%2FEgressRoute.java;h=2b6462db7630c8946302a20f9edb084a6eef1923;hb=0645ccf674f388cc989ef43d2ce24f359915e453;hp=54d5b39f5c954c9d7c323e1923f50b7d8a4d5456;hpb=7fdcc68d546fe95a7863de512bcda09f01e5d39e;p=dmaap%2Fdatarouter.git 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);