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

Fix warnings about instantiating new boxed primitives. #4539

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

copybara-service[bot]
Copy link

Fix warnings about instantiating new boxed primitives.

These constructors are deprecated for removal in upcoming java versions, and are currently giving the following warning:

third_party/java_src/dagger/project/javatests/dagger/functional/basic/BasicTest.java:64: warning: [removal] Byte(byte) in Byte has been deprecated and marked for removal
    assertThat(basicComponent.getBoxedByte()).isEqualTo(new Byte(BOUND_BYTE));

We only call these in a single test and AFAICT they aren't necessary or relevant to what this test is trying to assert so I'm removing them.

RELNOTES=N/A

@copybara-service copybara-service bot force-pushed the test_707299930 branch 2 times, most recently from 1703518 to 3764111 Compare December 18, 2024 15:32
These constructors are deprecated for removal in upcoming java versions, and are currently giving the following warning:

```
third_party/java_src/dagger/project/javatests/dagger/functional/basic/BasicTest.java:64: warning: [removal] Byte(byte) in Byte has been deprecated and marked for removal
    assertThat(basicComponent.getBoxedByte()).isEqualTo(new Byte(BOUND_BYTE));
```

We only call these in a single test and AFAICT they aren't necessary or relevant to what this test is trying to assert so I'm removing them.

RELNOTES=N/A
PiperOrigin-RevId: 707550777
@copybara-service copybara-service bot merged commit 972c8d3 into master Dec 18, 2024
@copybara-service copybara-service bot deleted the test_707299930 branch December 18, 2024 16:02
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.

1 participant