This is an automated email from the ASF dual-hosted git repository.
mbien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new bbf45b323f return on cancel.
new 819c07ac83 Merge pull request #4793 from mbien/cancel-noop
bbf45b323f is described below
commit bbf45b323f9896b6c5d4b7ae7a88be01182d0b0e
Author: Michael Bien <[email protected]>
AuthorDate: Sat Oct 15 20:43:51 2022 +0200
return on cancel.
---
.../netbeans/modules/java/hints/spiimpl/pm/NFABasedBulkSearch.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/java/spi.java.hints/src/org/netbeans/modules/java/hints/spiimpl/pm/NFABasedBulkSearch.java
b/java/spi.java.hints/src/org/netbeans/modules/java/hints/spiimpl/pm/NFABasedBulkSearch.java
index 16919be2c0..9036adfbfe 100644
---
a/java/spi.java.hints/src/org/netbeans/modules/java/hints/spiimpl/pm/NFABasedBulkSearch.java
+++
b/java/spi.java.hints/src/org/netbeans/modules/java/hints/spiimpl/pm/NFABasedBulkSearch.java
@@ -448,7 +448,9 @@ public class NFABasedBulkSearch extends BulkSearch {
throw new IllegalStateException(ex);
}
}
- if (cancel.get());
+ if (cancel.get()) {
+ return;
+ }
new CollectIdentifiers<Void, Void>(new HashSet<>(), cancel) {
private boolean encode = true;
@Override
@@ -511,7 +513,6 @@ public class NFABasedBulkSearch extends BulkSearch {
ctx.setIdentifiers(identifiers);
ctx.setContent(content);
- if (cancel.get());
}
@Override
---------------------------------------------------------------------
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