tmysik commented on code in PR #5648:
URL: https://github.com/apache/netbeans/pull/5648#discussion_r1135570878
##########
php/php.editor/src/org/netbeans/modules/php/editor/verification/ReturnTypeHintError.java:
##########
@@ -133,17 +140,17 @@ private void checkReturnType(Map<ASTNode,
Set<ReturnStatement>> returnStatements
"ReturnTypeHintErrorVoidDesc=\"{0}\" cannot return anything"
})
private void checkVoidAndNeverReturnStatements(Set<ReturnStatement>
statements, String name, List<Hint> hints) {
- if (Type.VOID.equals(name) || isNeverType(name)) {
+ if (isVoidType(name) || isNeverType(name)) {
// check empty return statement
- statements.forEach((statement) -> {
+ for (ReturnStatement statement: statements) {
Review Comment:
I think I see now - because of the `CancelSupport`, right?
--
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