-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix some deprecations ( 2 ) #2080
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 some deprecations ( 2 ) #2080
Conversation
Signed-off-by: wind57 <[email protected]>
| <configuration> | ||
| <source>17</source> | ||
| <target>17</target> | ||
| <compilerArgs> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to leave this on. I sometimes see a deprecation and don't really know where it comes from
| Request.Builder builder = new Request.Builder(); | ||
| apiClient.processHeaderParams(Collections.emptyMap(), builder); | ||
| assertThat(builder.url(new URL("http://example.com")).build().headers().get("User-Agent")) | ||
| assertThat(builder.url(URI.create("http://example.com").toURL()).build().headers().get("User-Agent")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
java-20 deprecated the constructor we are using here
|
|
||
| private static final CoreV1Api CORE_V1_API = Mockito.mock(CoreV1Api.class); | ||
|
|
||
| private static final SharedInformerFactoryStub STUB = new SharedInformerFactoryStub(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
STUB does not have a default constructor anymore (to get away from a deprecation), so this code needs a bit of refactor
| */ | ||
| final class SharedInformerFactoryStub extends SharedInformerFactory { | ||
|
|
||
| SharedInformerFactoryStub(ApiClient apiClient) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed to avoid the deprecated constructor
| <version>1.4.13</version> | ||
| <configuration> | ||
| <repository>${docker.registry.organization}/${artifactId}</repository> | ||
| <repository>${docker.registry.organization}/${project.artifactId}</repository> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${artifactId} is deprecated in favor of ${project.artifactId}
|
@ryanjbaxter remove more deprecations, ready to be looked at. thank you |
No description provided.