@@ -125,7 +125,7 @@ public void unknownClassProvider() {
125
125
ClassLoader cl = new ReplacingClassLoader (getClass ().getClassLoader (), serviceFile ,
126
126
"io/grpc/ServiceProvidersTestAbstractProvider-unknownClassProvider.txt" );
127
127
try {
128
- ServiceProvidersTestAbstractProvider ignored = ServiceProviders .load (
128
+ ServiceProviders .load (
129
129
ServiceProvidersTestAbstractProvider .class , NO_HARDCODED , cl , ACCESSOR );
130
130
fail ("Exception expected" );
131
131
} catch (ServiceConfigurationError e ) {
@@ -140,7 +140,7 @@ public void exceptionSurfacedToCaller_failAtInit() {
140
140
try {
141
141
// Even though there is a working provider, if any providers fail then we should fail
142
142
// completely to avoid returning something unexpected.
143
- ServiceProvidersTestAbstractProvider ignored = ServiceProviders .load (
143
+ ServiceProviders .load (
144
144
ServiceProvidersTestAbstractProvider .class , NO_HARDCODED , cl , ACCESSOR );
145
145
fail ("Expected exception" );
146
146
} catch (ServiceConfigurationError expected ) {
@@ -154,7 +154,7 @@ public void exceptionSurfacedToCaller_failAtPriority() {
154
154
"io/grpc/ServiceProvidersTestAbstractProvider-failAtPriorityProvider.txt" );
155
155
try {
156
156
// The exception should be surfaced to the caller
157
- ServiceProvidersTestAbstractProvider ignored = ServiceProviders .load (
157
+ ServiceProviders .load (
158
158
ServiceProvidersTestAbstractProvider .class , NO_HARDCODED , cl , ACCESSOR );
159
159
fail ("Expected exception" );
160
160
} catch (FailAtPriorityProvider .PriorityException expected ) {
@@ -168,7 +168,7 @@ public void exceptionSurfacedToCaller_failAtAvailable() {
168
168
"io/grpc/ServiceProvidersTestAbstractProvider-failAtAvailableProvider.txt" );
169
169
try {
170
170
// The exception should be surfaced to the caller
171
- ServiceProvidersTestAbstractProvider ignored = ServiceProviders .load (
171
+ ServiceProviders .load (
172
172
ServiceProvidersTestAbstractProvider .class , NO_HARDCODED , cl , ACCESSOR );
173
173
fail ("Expected exception" );
174
174
} catch (FailAtAvailableProvider .AvailableException expected ) {
@@ -193,10 +193,9 @@ public void getCandidatesViaHardCoded_multipleProvider() throws Exception {
193
193
@ Test
194
194
public void getCandidatesViaHardCoded_failAtInit () throws Exception {
195
195
try {
196
- Iterable <ServiceProvidersTestAbstractProvider > ignored =
197
- ServiceProviders .getCandidatesViaHardCoded (
198
- ServiceProvidersTestAbstractProvider .class ,
199
- Collections .<Class <?>>singletonList (FailAtInitProvider .class ));
196
+ ServiceProviders .getCandidatesViaHardCoded (
197
+ ServiceProvidersTestAbstractProvider .class ,
198
+ Collections .<Class <?>>singletonList (FailAtInitProvider .class ));
200
199
fail ("Expected exception" );
201
200
} catch (ServiceConfigurationError expected ) {
202
201
// noop
@@ -206,10 +205,9 @@ public void getCandidatesViaHardCoded_failAtInit() throws Exception {
206
205
@ Test
207
206
public void getCandidatesViaHardCoded_failAtInit_moreCandidates () throws Exception {
208
207
try {
209
- Iterable <ServiceProvidersTestAbstractProvider > ignored =
210
- ServiceProviders .getCandidatesViaHardCoded (
211
- ServiceProvidersTestAbstractProvider .class ,
212
- ImmutableList .<Class <?>>of (FailAtInitProvider .class , Available0Provider .class ));
208
+ ServiceProviders .getCandidatesViaHardCoded (
209
+ ServiceProvidersTestAbstractProvider .class ,
210
+ ImmutableList .<Class <?>>of (FailAtInitProvider .class , Available0Provider .class ));
213
211
fail ("Expected exception" );
214
212
} catch (ServiceConfigurationError expected ) {
215
213
// noop
@@ -221,7 +219,7 @@ public void create_throwsErrorOnMisconfiguration() throws Exception {
221
219
class PrivateClass {}
222
220
223
221
try {
224
- ServiceProvidersTestAbstractProvider ignored = ServiceProviders .create (
222
+ ServiceProviders .create (
225
223
ServiceProvidersTestAbstractProvider .class , PrivateClass .class );
226
224
fail ("Expected exception" );
227
225
} catch (ServiceConfigurationError expected ) {
0 commit comments