File tree Expand file tree Collapse file tree
pdf-generator/src/main/java/com/bi Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ));
You can’t perform that action at this time.
0 commit comments