ing
This commit is contained in:
@@ -26,12 +26,10 @@ public class InfraHostIPsSerializer extends StdSerializer<List<InfraHostIP>> {
|
||||
@Override
|
||||
public void serialize(List<InfraHostIP> infraHostIPs, JsonGenerator gen, SerializerProvider provider)
|
||||
throws IOException {
|
||||
if (null == infraHostIPs) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (InfraHostIP infraHostIP : infraHostIPs) {
|
||||
infraHostIP.setInfraHost(null);
|
||||
if (null != infraHostIPs) {
|
||||
for (InfraHostIP infraHostIP : infraHostIPs) {
|
||||
infraHostIP.setInfraHost(null);
|
||||
}
|
||||
}
|
||||
|
||||
gen.writeObject(infraHostIPs);
|
||||
|
||||
Reference in New Issue
Block a user