mklaehn commented on a change in pull request #3676:
URL: https://github.com/apache/netbeans/pull/3676#discussion_r815298291
##########
File path:
platform/api.search/src/org/netbeans/api/search/provider/SearchInfo.java
##########
@@ -125,15 +125,8 @@
@NonNull final SearchScopeOptions options,
@NonNull final SearchListener listener,
@NonNull final AtomicBoolean terminated) {
-
- return new Iterable<FileObject>() {
-
- @Override
- public Iterator<FileObject> iterator() {
- return createFilesToSearchIterator(options, listener,
- terminated);
- }
- };
+ return () -> createFilesToSearchIterator(options, listener,
+ terminated);
Review comment:
I think this practices is from the time when code had to be pressed into
80 character width lines. Something more lines in this class adhere to as well.
Anyway done as suggested (avoid a complete reformatting ;)).
--
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