Skip to content

Conversation

@swegner
Copy link
Contributor

@swegner swegner commented Apr 26, 2016

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

  • Make sure the PR title is formatted like:
    [BEAM-<Jira issue #>] Description of pull request
  • Make sure tests pass via mvn clean verify. (Even better, enable
    Travis-CI on your fork and ensure the whole test matrix passes).
  • Replace <Jira issue #> in the title with the actual Jira issue
    number, if there is one.
  • If this contribution is large, please file an Apache
    Individual Contributor License Agreement.

@swegner
Copy link
Contributor Author

swegner commented Apr 26, 2016

R: @bjchambers

This PR is rather lengthy as it updates all DisplayData consumers. I recommend starting with the following:

/**
* Utility to append optional fields to display data, or register additional display data
* items.
* A display data item. DisplayData items are registered via {@link DisplayData.Builder#add}
Copy link
Contributor

Choose a reason for hiding this comment

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

A display data item. {@link Item} items are registered via {...}

@swegner
Copy link
Contributor Author

swegner commented Apr 27, 2016

I've addressed all feedback so far. Please take another look. @bjchambers

*/
public static DisplayData from(HasDisplayData component) {
checkNotNull(component);
checkNotNull(component, "Input component cannot be null");
Copy link
Contributor

Choose a reason for hiding this comment

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

"component argument cannot be null"


return false;
/** @see #withNamespace(Class) */
public Item<T> withNamespace(String namespace) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be private?

@bjchambers
Copy link
Contributor

A few nits, then LGTM.

@swegner
Copy link
Contributor Author

swegner commented Apr 27, 2016

I've addressed all feedback so far. Please take another look. @bjchambers

@bjchambers
Copy link
Contributor

LGTM

@asfgit asfgit closed this in 81bf4d9 Apr 27, 2016
@swegner swegner deleted the displaydata-api branch April 28, 2016 16:04
@swegner
Copy link
Contributor Author

swegner commented May 16, 2016

Backport: GoogleCloudPlatform/DataflowJavaSDK#230

iemejia pushed a commit to iemejia/beam that referenced this pull request Jan 12, 2018
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.

2 participants