junichi11 opened a new pull request, #8046: URL: https://github.com/apache/netbeans/pull/8046
- Do not return `null` in `getOccurrences()` - See GH-8028 ```diff @@ -155,7 +146,7 @@ List<OffsetRange> processImpl(ParserResult info, Document doc, int caretPosition Map<OffsetRange, ColoringAttributes> highlights = finder.getOccurrences(); - return highlights == null ? null : new ArrayList<OffsetRange>(highlights.keySet()); + return List.copyOf(highlights.keySet()); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists