aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorvarun gudisena <vg411h@att.com>2018-09-04 22:37:11 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-04 22:37:11 +0000
commitdde5c600507bd746b6978ab5e1058a894fb6bef7 (patch)
tree85fd17bb7eb246d89ddf2672957e45273ac0ce13 /src/main
parentb809e5df951fa8d1de40aebbce862da6436fc2fe (diff)
parent7c124804fa5227859838d4466718bd2e74dbabde (diff)
Merge "Fix delete of feed pubs and subs"
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/dmaap/dbcapi/client/DrProvConnection.java3
-rw-r--r--src/main/java/org/onap/dmaap/dbcapi/resources/DR_PubResource.java2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/client/DrProvConnection.java b/src/main/java/org/onap/dmaap/dbcapi/client/DrProvConnection.java
index 8b3a4c4..34d36ba 100644
--- a/src/main/java/org/onap/dmaap/dbcapi/client/DrProvConnection.java
+++ b/src/main/java/org/onap/dmaap/dbcapi/client/DrProvConnection.java
@@ -831,12 +831,11 @@ public class DrProvConnection extends BaseLoggingClass {
}
}
}
+ err.setCode(rc);
if (rc == 204 ) {
responseBody = bodyToString( uc.getInputStream() );
logger.info( "responseBody=" + responseBody );
-
} else {
- err.setCode(rc);
err.setMessage(responsemessage);
}
diff --git a/src/main/java/org/onap/dmaap/dbcapi/resources/DR_PubResource.java b/src/main/java/org/onap/dmaap/dbcapi/resources/DR_PubResource.java
index 06319de..bcdb4b3 100644
--- a/src/main/java/org/onap/dmaap/dbcapi/resources/DR_PubResource.java
+++ b/src/main/java/org/onap/dmaap/dbcapi/resources/DR_PubResource.java
@@ -196,7 +196,7 @@ public class DR_PubResource extends BaseLoggingClass {
for( Iterator<DR_Pub> i = pubs.iterator(); i.hasNext(); ) {
DR_Pub listItem = i.next();
if ( listItem.getPubId().equals(id)) {
- pubs.remove( listItem );
+ i.remove();
}
}
fnew.setPubs(pubs);