From 199f6f3beb729b61ef6b2a171be07f1ac33f0522 Mon Sep 17 00:00:00 2001 From: oppofind <836575280@qq.com> Date: Fri, 18 Oct 2019 09:35:02 +0800 Subject: [PATCH] remove from 'No comments found.' from apiNote tag --- src/main/java/com/power/doc/utils/DocUtil.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/power/doc/utils/DocUtil.java b/src/main/java/com/power/doc/utils/DocUtil.java index 532e33c..6c06208 100644 --- a/src/main/java/com/power/doc/utils/DocUtil.java +++ b/src/main/java/com/power/doc/utils/DocUtil.java @@ -316,7 +316,11 @@ public class DocUtil { if (map != null && map.size() > 0) { Map.Entry entry = map.entrySet().iterator().next(); if (entry != null) { - value = entry.getKey() + entry.getValue(); + if(DocGlobalConstants.NO_COMMENTS_FOUND.equals(entry.getValue())){ + value = entry.getKey(); + }else{ + value = entry.getKey() + entry.getValue(); + } value = value.replace("\r\n", "
"); value = value.replace("\r", "
"); }