Skip to content

Conversation

@wind57
Copy link
Contributor

@wind57 wind57 commented Oct 22, 2025

No description provided.

@wind57 wind57 changed the title Fix some deep deprecations Fix some deep deprecations ( 2 ) Oct 22, 2025
<configuration>
<source>17</source>
<target>17</target>
<compilerArgs>
Copy link
Contributor Author

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"))
Copy link
Contributor Author

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();
Copy link
Contributor Author

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) {
Copy link
Contributor Author

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>
Copy link
Contributor Author

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}

@wind57 wind57 changed the title Fix some deep deprecations ( 2 ) Fix some deprecations ( 2 ) Oct 22, 2025
@wind57 wind57 marked this pull request as ready for review October 22, 2025 15:47
@wind57
Copy link
Contributor Author

wind57 commented Oct 22, 2025

@ryanjbaxter remove more deprecations, ready to be looked at. thank you

@ryanjbaxter ryanjbaxter added this to the 5.0.0-RC1 milestone Oct 22, 2025
@ryanjbaxter ryanjbaxter merged commit 763878b into spring-cloud:main Oct 22, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants