From 3d7f60c1c0b48dad2f58bffe3352d1c5c1b93f00 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 1 Dec 2016 13:56:53 +0300 Subject: juick-api: Tags controller from perl, refactoring --- juick-core/src/main/java/com/juick/Tag.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'juick-core/src/main/java') diff --git a/juick-core/src/main/java/com/juick/Tag.java b/juick-core/src/main/java/com/juick/Tag.java index 3f5add6e..98fe60ff 100644 --- a/juick-core/src/main/java/com/juick/Tag.java +++ b/juick-core/src/main/java/com/juick/Tag.java @@ -17,7 +17,6 @@ */ package com.juick; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonValue; import javax.xml.bind.annotation.XmlAccessType; @@ -36,7 +35,6 @@ public class Tag { public int TID = 0; public int SynonymID = 0; - public int UsageCnt = 0; public Tag() { @@ -52,14 +50,13 @@ public class Tag { (o instanceof Tag) && Objects.equals(name, ((Tag) o).name); } - @JsonIgnore @XmlValue + @JsonValue public String getName() { return name; } @Override - @JsonValue public String toString() { return name; } -- cgit v1.2.3