@@ -959,7 +959,7 @@ private static String extractRelevantJavaDocContent(org.eclipse.jdt.core.IType t
959959 * Returns the first paragraph of descriptive text, limited to reasonable length.
960960 */
961961 private static String extractClassDescription (String cleanedJavadoc ) {
962- if (StringUtils . isBlank ( cleanedJavadoc )) {
962+ if (cleanedJavadoc == null || cleanedJavadoc . isEmpty ( )) {
963963 return "" ;
964964 }
965965
@@ -990,7 +990,7 @@ private static String extractClassDescription(String cleanedJavadoc) {
990990 * Clean up raw JavaDoc comment by removing comment markers and asterisks
991991 */
992992 private static String cleanJavadocComment (String rawJavadoc ) {
993- if (StringUtils . isBlank ( rawJavadoc )) {
993+ if (rawJavadoc == null || rawJavadoc . isEmpty ( )) {
994994 return "" ;
995995 }
996996
@@ -1030,7 +1030,7 @@ private static String cleanJavadocComment(String rawJavadoc) {
10301030 * Convert HTML entities to their plain text equivalents
10311031 */
10321032 private static String convertHtmlEntities (String text ) {
1033- if (StringUtils . isBlank ( text )) {
1033+ if (text == null || text . isEmpty ( )) {
10341034 return text ;
10351035 }
10361036 return text .replace (" " , " " )
@@ -1049,7 +1049,7 @@ private static String convertHtmlEntities(String text) {
10491049 * Preserves line breaks for block-level tags like <p>, <br>, <div>.
10501050 */
10511051 private static String removeHtmlTags (String text ) {
1052- if (StringUtils . isBlank ( text )) {
1052+ if (text == null || text . isEmpty ( )) {
10531053 return text ;
10541054 }
10551055
@@ -1099,7 +1099,7 @@ private static String extractMethodJavaDocSummary(IMethod method) {
10991099 * Extract the main description part from JavaDoc (before @tags)
11001100 */
11011101 private static String extractJavadocDescription (String cleanedJavadoc ) {
1102- if (StringUtils . isBlank ( cleanedJavadoc )) {
1102+ if (cleanedJavadoc == null || cleanedJavadoc . isEmpty ( )) {
11031103 return "" ;
11041104 }
11051105
@@ -1132,7 +1132,7 @@ private static String extractJavadocDescription(String cleanedJavadoc) {
11321132 * Get the first sentence or limit the text to maxLength characters
11331133 */
11341134 private static String getFirstSentenceOrLimit (String text , int maxLength ) {
1135- if (StringUtils . isBlank ( text )) {
1135+ if (text == null || text . isEmpty ( )) {
11361136 return "" ;
11371137 }
11381138
0 commit comments