Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CesarCoelho committed Jan 9, 2025
1 parent 1a0212a commit 3bcc112
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void startTable(int[] widths, String caption) throws IOException {
buffer.append(makeLine(4, "</w:tblBorders>"));
buffer.append(makeLine(3, "</w:tblPr>"));

if (null != widths) {
if (widths != null) {
buffer.append(makeLine(3, "<w:tblGrid>"));
for (int i : widths) {
buffer.append(makeLine(4, "<w:gridCol w:w=\"" + i + "\"/>"));
Expand Down Expand Up @@ -385,7 +385,8 @@ public void addSingleTypeSignature(String fieldName, String fieldComment) throws

buffer.append(makeLine(2, "<w:p><w:pPr><w:numPr><w:ilvl w:val=\""
+ level + "\"/><w:numId w:val=\"" + instance + "\"/></w:numPr></w:pPr>"
+ "<w:r><w:rPr><w:b/><w:bCs/></w:rPr><w:t>" + escape(fieldName) + "</w:t></w:r><w:r><w:t xml:space=\"preserve\">"
+ "<w:r><w:rPr><w:b/><w:bCs/></w:rPr><w:t>" + escape(fieldName)
+ "</w:t></w:r><w:r><w:t xml:space=\"preserve\">"
+ " - " + escape(fieldComment) + "</w:t></w:r></w:p>"));
}

Expand Down Expand Up @@ -463,7 +464,6 @@ public String createHyperLink(String prefix, String typeName, String postfix,

String temp = linkTo.replace("ObjectRef<", "").replace(">", "");
String objectRefRemoved = temp.replace("ObjectRef(", "").replace(")", "");

buf.append("</w:t></w:r>");

if (withHyperlink) {
Expand Down

0 comments on commit 3bcc112

Please sign in to comment.