Skip to content

Commit ca8c192

Browse files
Apply suggestions from code review
Co-authored-by: Felix Schnabel <[email protected]>
1 parent 12e70f6 commit ca8c192

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: cli/ballerina-cli/src/main/java/io/ballerina/cli/diagnostics/DiagnosticAnnotation.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,7 @@ public String toString() {
189189
outputBuilder.append(underlineFirstHalf).append(NEW_LINE)
190190
.append(startLineResult.line, maxLength, startLineResult.line.length()).append(NEW_LINE)
191191
.append(underlineSecondHalf).append(NEW_LINE);
192-
}
193-
else {
194-
192+
} else {
195193
outputBuilder
196194
.append(getUnderline(startLineResult.diagnosticStart, startLineResult.diagnosticLength))
197195
.append(NEW_LINE)
@@ -286,7 +284,7 @@ private static String replaceTabs(String line, int end) {
286284

287285
/**
288286
* Represents a result of truncating a line.
289-
*
287+
* @param needsWrap If the result needs to be wrapped
290288
* @param line The truncated line
291289
* @param diagnosticStart The start of the diagnostic in the truncated line
292290
* @param diagnosticLength The length of the diagnostic in the truncated line

0 commit comments

Comments
 (0)