-
Notifications
You must be signed in to change notification settings - Fork 864
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
Conversation
3c0b867
to
bb34cd6
Compare
.../testing/src/main/java/io/opentelemetry/instrumentation/restlet/v2_0/RestletAppTestBase.java
Outdated
Show resolved
Hide resolved
...g/src/main/java/io/opentelemetry/instrumentation/restlet/v2_0/AbstractRestletServerTest.java
Outdated
Show resolved
Hide resolved
routeClass.getConstructor(Router.class, String.class, Restlet.class); | ||
Method getTemplate = routeClass.getMethod("getTemplate"); | ||
|
||
List<org.restlet.routing.Route> routes = new ArrayList<>(); |
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.
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
?
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.
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.
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.
thank you for the explanation
part of #7195