Skip to content

Commit bdca122

Browse files
Removed the duplication of Ttl fields in /Infromation RestApi (#476)
Removed the duplication of ttl fields
1 parent 215e8b3 commit bdca122

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/ericsson/ei/handlers/ObjectHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import com.ericsson.ei.jmespath.JmesPathInterface;
3131
import com.ericsson.ei.rules.RulesObject;
3232
import com.ericsson.ei.subscription.SubscriptionHandler;
33+
import com.fasterxml.jackson.annotation.JsonIgnore;
3334
import com.fasterxml.jackson.databind.JsonNode;
3435
import com.fasterxml.jackson.databind.ObjectMapper;
3536
import com.fasterxml.jackson.databind.node.ObjectNode;
@@ -254,6 +255,7 @@ public String lockDocument(String id) {
254255
* @return ttl
255256
* Integer value representing time to live for documents
256257
* */
258+
@JsonIgnore
257259
public int getTtl() {
258260
int ttl = 0;
259261
if (ttlValue != null && !ttlValue.isEmpty()) {

0 commit comments

Comments
 (0)