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

Convert restlet-2.0 tests to java #12348

Merged
merged 3 commits into from
Sep 30, 2024
Merged

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Sep 27, 2024

part of #7195

@laurit laurit marked this pull request as ready for review September 27, 2024 14:56
@laurit laurit requested a review from a team as a code owner September 27, 2024 14:56
routeClass.getConstructor(Router.class, String.class, Restlet.class);
Method getTemplate = routeClass.getMethod("getTemplate");

List<org.restlet.routing.Route> routes = new ArrayList<>();
Copy link
Member

Choose a reason for hiding this comment

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

is there a reason we are using the FQCN for org.restlet.routing.Route instead of an import? Is it to disambiguate between io.opentelemetry.testing.internal.armeria.server.Route?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

org.restlet.routing.Route is a deprecated class, using it will create a warning. Our build treats warnings as compile errors. To suppress the warning we use @SuppressWarnings("deprecation") but you can't use it on an import so for deprecated classes we need to use FQN.

Copy link
Member

Choose a reason for hiding this comment

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

thank you for the explanation

@trask trask merged commit f0115c6 into open-telemetry:main Sep 30, 2024
56 checks passed
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.

5 participants