junichi11 commented on code in PR #7618:
URL: https://github.com/apache/netbeans/pull/7618#discussion_r1703572996
##########
php/php.blade/src/org/netbeans/modules/php/blade/editor/BladeBracesMatcher.java:
##########
@@ -99,36 +99,36 @@ public int[] findOrigin() throws InterruptedException,
BadLocationException {
@Override
public int[] findMatches() throws InterruptedException,
BadLocationException {
- int[] result = null;
if (originToken == null) {
- return result;
+ return null;
}
String tokenText = originToken.getText();
switch (currentDirection) {
Review Comment:
```java
return switch (currentDirection) {
case CURLY_START_TO_END -> findCloseTag();
case case CURLY_END_TO_START -> findOpenTag();
....
case END_TO_START -> findOriginForDirectiveEnd(tokenText);
case STOP -> null;
};
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists