-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
services: Deprecate V1alpha #11681
services: Deprecate V1alpha #11681
Conversation
The jobs are failing with warning, |
That's not why. Javac is failing:
No, because the test status is failing, and it isn't even flaky. (This would be true regardless of the error/warning.) |
To resolve this, can we use @SuppressWarnings("deprecation") wherever this v1alpha is getting used? |
You can, but you can't put |
@@ -260,6 +260,7 @@ private static RpcType parseRpc(String rpc) { | |||
} | |||
} | |||
|
|||
@SuppressWarnings("deprecation") |
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.
This suppressed deprecation for many things. We do want deprecation warnings. It is better to put the annotation on an assignment:
@SuppressWarnings("deprecation")
BindableService oldReflectionService = ProtoReflectionService.newInstance();
Ditto for the other files.
@@ -71,7 +71,8 @@ public class ProtoReflectionServiceTest { | |||
|
|||
private static final String TEST_HOST = "localhost"; | |||
private MutableHandlerRegistry handlerRegistry = new MutableHandlerRegistry(); | |||
private BindableService reflectionService; | |||
@SuppressWarnings("deprecation") | |||
BindableService reflectionService = ProtoReflectionService.newInstance(); |
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.
Why remove private
?
No description provided.