Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BEAM-10496] Eliminate some null errors from sdks/java/core #17819

Merged
merged 1 commit into from
Aug 23, 2022

Conversation

kennknowles
Copy link
Member

Re-activated nullness type checking for a portion of org.apache.beam.sdk.values namespace.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.

@github-actions github-actions bot added the java label Jun 2, 2022
@kennknowles
Copy link
Member Author

Run Java PreCommit

@kennknowles
Copy link
Member Author

Run Java PreCommit

@kennknowles
Copy link
Member Author

run java precommit

@kennknowles
Copy link
Member Author

Run Java_Examples_Dataflow_Java17 PreCommit

@kennknowles
Copy link
Member Author

amusingly, NPEs in elasticsearch test, plus flaking in pulsar test and file io

@kennknowles
Copy link
Member Author

Run Java PreCommit

@kennknowles
Copy link
Member Author

Our flakes are driving me nuts - confirmed some of these tests seem OK locally. I'll rebase and push just to get any recent fixes and have to kick jenkins less.

@kennknowles
Copy link
Member Author

Run Java PreCommit

1 similar comment
@kennknowles
Copy link
Member Author

Run Java PreCommit

@kennknowles
Copy link
Member Author

@kennknowles
Copy link
Member Author

Run Java PreCommit

@kennknowles kennknowles requested a review from kileys June 18, 2022 16:36
@@ -99,16 +97,19 @@ public static Map<TupleTag<?>, PCollection<?>> fullyExpand(
PCollection.class.getSimpleName(),
valueComponent.getValue()));
}
@Nullable
Copy link
Contributor

Choose a reason for hiding this comment

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

How come the other ones doesn't need the @nullable?

@@ -180,7 +178,7 @@ public Class<? super T> getRawType() {

/** Returns the component type if this type is an array type, otherwise returns {@code null}. */
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 return null?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@Nullable Object p1,
@Nullable Object p2) {
if (obj == null) {
throw new IllegalStateException(lenientFormat(errorMessageTemplate, p1));
Copy link
Contributor

Choose a reason for hiding this comment

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

p2 not used

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@robertwb
Copy link
Contributor

Any update on this PR?

@kennknowles
Copy link
Member Author

Still waiting to find time to resolve conflicts and address comments.

@kileys
Copy link
Contributor

kileys commented Aug 23, 2022

Run Java PreCommit

@kennknowles
Copy link
Member Author

Hrmm. One of the licenses that we download the server is down. bouncycastle.org

@kennknowles
Copy link
Member Author

run java precommit

@kennknowles kennknowles merged commit 2763ec7 into apache:master Aug 23, 2022
@kennknowles kennknowles deleted the sdks-values-nulls branch August 23, 2022 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants