Skip to content

Conversation

zeitlinger
Copy link
Member

@zeitlinger zeitlinger commented Aug 18, 2025

No description provided.

@zeitlinger zeitlinger self-assigned this Aug 18, 2025
@zeitlinger zeitlinger requested a review from a team as a code owner August 18, 2025 11:06
@zeitlinger zeitlinger marked this pull request as draft August 18, 2025 13:07
@zeitlinger zeitlinger force-pushed the nullaway-inst-api-inucubator branch from c3c5f29 to 26e4e73 Compare September 17, 2025 08:22
@zeitlinger zeitlinger marked this pull request as ready for review September 17, 2025 08:22
private final String loggingSpanIdKey;
private final String loggingTraceFlagsKey;

interface ValueProvider<T> {
Copy link
Member Author

Choose a reason for hiding this comment

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

simply adding @Nullable to the generic arg didn't work

@otelbot-java-instrumentation
Copy link
Contributor

🔧 The result from spotlessApply was committed to the PR branch.

@zeitlinger
Copy link
Member Author

@laurit please take a look

private final String loggingSpanIdKey;
private final String loggingTraceFlagsKey;

interface ValueProvider<T> {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this needed because the return type of java.util.function.Function is considered to be non-nullable?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes

@zeitlinger zeitlinger force-pushed the nullaway-inst-api-inucubator branch from 53f0453 to 0bbe11c Compare September 26, 2025 12:24
@laurit laurit added this to the v2.21.0 milestone Sep 26, 2025
abstract String getPath();

public boolean matches(Integer port, Supplier<String> pathSupplier) {
public boolean matches(@Nullable Integer port, @Nullable Supplier<String> pathSupplier) {
Copy link
Member

Choose a reason for hiding this comment

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

it looks like null is never passed in here (need to also remove @Nullable from calling method param)

Suggested change
public boolean matches(@Nullable Integer port, @Nullable Supplier<String> pathSupplier) {
public boolean matches(@Nullable Integer port, Supplier<String> pathSupplier) {

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

ah, I see, how about zeitlinger#7?

@otelbot-java-instrumentation
Copy link
Contributor

🔧 The result from spotlessApply was committed to the PR branch.

@trask trask merged commit 74c0683 into open-telemetry:main Sep 27, 2025
89 checks passed
@zeitlinger zeitlinger deleted the nullaway-inst-api-inucubator branch September 28, 2025 10:15
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.

3 participants