essien commented on code in PR #8500: URL: https://github.com/apache/netbeans/pull/8500#discussion_r2117736418
########## java/java.editor/test/unit/src/org/netbeans/modules/editor/java/JavaBracesMatcherTest.java: ########## @@ -49,6 +49,13 @@ public void testMultilineStringBrackets() throws Exception { + "^)\n" + "\"\"\""); } + + public void testAngleBrackets() throws Exception { + assertMatches2("^<test^>"); + assertMatches2("Map^<Class<? extends AbstractStudent>, Map<CourseTime, List<? extends AbstractCourse>>^>"); + assertMatches2("Map<Class<? extends AbstractStudent>, Map^<CourseTime, List<? extends AbstractCourse>^>>"); + assertMatches2("Map x = new HashMap<String, List^<String^>>()"); + } Review Comment: May I also add that `<>` should match in the below: ```java class LinkedList < T extends Object & Serializable > { } ``` but `<>` should not match in the below: ```java int Object = 2; int Serializable = 3; boolean result = 1 < Object & Serializable > 4; ``` -- 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