Skip to content

Commit 4eb4817

Browse files
authored
Merge branch 'main' into main
2 parents cd546d5 + d6fd7c8 commit 4eb4817

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pdf-generator/src/main/java/com/bi/GenerateSonarReport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ public static void main(String[] args) throws IOException {
645645
String currentLocations = existing.getString("location");
646646
String file = originalObj.getString("component");
647647
file = file.contains(":") ? file.split(":", 2)[1].trim() : file;
648-
// Adds either file-and-line information or just the file path.
648+
// Check if the issue is in a line of text or is the file itself
649649
if (originalObj.has("textRange")) {
650650
JSONObject textLines = originalObj.getJSONObject("textRange");
651651
String textLine = Integer.toString(textLines.getInt("startLine"));
@@ -665,7 +665,7 @@ public static void main(String[] args) throws IOException {
665665
newObj.put("severity", originalObj.getString("severity"));
666666
newObj.put("message", originalObj.getString("message"));
667667
newObj.put("type", originalObj.getString("type"));
668-
// Stores the first location of the issue.
668+
// Check if the issue is in a line of text or is the file itself
669669
if (originalObj.has("textRange")) {
670670
JSONObject textLines = originalObj.getJSONObject("textRange");
671671
String textLine = Integer.toString(textLines.getInt("startLine"));

0 commit comments

Comments
 (0)