Skip to content

ARROW-4741: [Java] Add missing type javadoc and enable checkstyle#4374

Closed
emkornfield wants to merge 5 commits intoapache:masterfrom
emkornfield:class_javadoc
Closed

ARROW-4741: [Java] Add missing type javadoc and enable checkstyle#4374
emkornfield wants to merge 5 commits intoapache:masterfrom
emkornfield:class_javadoc

Conversation

@emkornfield
Copy link
Copy Markdown
Contributor

This change:

  1. Enables a check style rule on all public, protected and package visible classes/enums.
  2. Adds missing javadocs to make the rule pass
  3. Adds some private constructors to static method utility classes (some of these are little bit short, and in some cases especially flight some of the purposes of classes was a littler hard to infer).
  4. Cleans up redundant public qualifier on interfaces when found.

- Also make private constructors to static utility method classes as they were encountered.
- Remove redundant public declarions in interfaces.
import org.apache.arrow.flight.impl.Flight.PutResult;

/**
* A {@link FlightProducer} that throws on all operations.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am not sure why a noop producer throws on all operations :) should we change this (in another jira probably?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be changed later, but the Javadoc is fine. (It's just meant to provide default implementations - guess no-op is misleading for what it does though.)

Copy link
Copy Markdown
Contributor Author

@emkornfield emkornfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@praveenbingo thank you for the review I think I addressed all your comments.

import org.apache.arrow.flight.impl.Flight.PutResult;

/**
* A {@link FlightProducer} that throws on all operations.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emkornfield emkornfield self-assigned this May 24, 2019
@praveenbingo
Copy link
Copy Markdown
Contributor

@emkornfield
Thanks a ton for doing this, couple gandiva classes looks like are failing with some checkstyle issues. Once we fix, we should be good to go.

@emkornfield
Copy link
Copy Markdown
Contributor Author

@praveenbingo Build is green.

@emkornfield
Copy link
Copy Markdown
Contributor Author

@BryanCutler did you want to take a look before I merge?

Copy link
Copy Markdown
Contributor

@praveenbingo praveenbingo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emkornfield Thanks a ton for doing this. LGTM.

package org.apache.arrow.flight;

/**
* Unused?.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what this is for and I don't see where it is used either, maybe @jacques-n can comment?

Copy link
Copy Markdown
Member

@BryanCutler BryanCutler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for doing this

@BryanCutler BryanCutler changed the title ARROW-4741: [Java] Add missing type javadoc and enable checkstyle ARROW-4741: [Java] Add missing type javadoc and enable checkstyle May 28, 2019
@BryanCutler
Copy link
Copy Markdown
Member

Merged to master

pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
This change:
1.   Enables a check style rule on all public, protected and package visible classes/enums.
2.   Adds missing javadocs to make the rule pass
3.   Adds some private constructors to static method utility classes (some of these are  little bit short, and in some cases especially flight some of the purposes of classes was a littler hard to infer).
4.   Cleans up redundant public qualifier on interfaces when found.

Author: Micah Kornfield <emkornfield@gmail.com>

Closes apache#4374 from emkornfield/class_javadoc and squashes the following commits:

10ff97a <Micah Kornfield> fix last gandiva issue
cb3175b <Micah Kornfield> Fix gandiva docs
32a4a18 <Micah Kornfield> address review feedback
a64f658 <Micah Kornfield> the rest of the classes
3e3d6d6 <Micah Kornfield> ARROW-4741: Add type javadoc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants