[
https://issues.apache.org/jira/browse/DRILL-6633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16585888#comment-16585888
]
ASF GitHub Bot commented on DRILL-6633:
---------------------------------------
vdiravka commented on a change in pull request #1397: DRILL-6633: Replace usage
of Guava classes by JDK ones
URL: https://github.com/apache/drill/pull/1397#discussion_r211242647
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/schema/ObjectSchema.java
##########
@@ -71,19 +70,16 @@ public void resetMarkedFields() {
@Override
public Iterable<? extends Field> removeUnreadFields() {
- final List<Field> removedFields = Lists.newArrayList();
- Iterables.removeIf(fields.values(), new Predicate<Field>() {
- @Override
- public boolean apply(Field field) {
- if (!field.isRead()) {
- removedFields.add(field);
- return true;
- } else if (field.hasSchema()) {
- Iterables.addAll(removedFields,
field.getAssignedSchema().removeUnreadFields());
- }
-
- return false;
+ List<Field> removedFields = new ArrayList<>();
+ fields.values().removeIf(field -> {
+ if (!field.isRead()) {
+ removedFields.add(field);
+ return true;
+ } else if (field.hasSchema()) {
+ Iterables.addAll(removedFields,
field.getAssignedSchema().removeUnreadFields());
Review comment:
It makes sense.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Replace usage of Guava classes by JDK ones
> ------------------------------------------
>
> Key: DRILL-6633
> URL: https://issues.apache.org/jira/browse/DRILL-6633
> Project: Apache Drill
> Issue Type: Improvement
> Affects Versions: 1.14.0
> Reporter: Volodymyr Vysotskyi
> Assignee: Volodymyr Vysotskyi
> Priority: Major
> Fix For: 1.15.0
>
>
> Currently, Drill uses classes from Guava which can be replaced after moving
> to JDK 8.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)