• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

grpc / grpc-java / #20152

20 Jan 2026 04:00PM UTC coverage: 88.666% (-0.007%) from 88.673%
#20152

push

github

ejona86
api: Remove unused ServiceProviders.load()

load() unused since c8a94d105 in 2020.

35345 of 39863 relevant lines covered (88.67%)

0.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/../api/src/main/java/io/grpc/InternalServiceProviders.java
1
/*
2
 * Copyright 2017 The gRPC Authors
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package io.grpc;
18

19
import com.google.common.annotations.VisibleForTesting;
20
import java.util.List;
21

22
@Internal
23
public final class InternalServiceProviders {
24
  private InternalServiceProviders() {
25
  }
26

27
  /**
28
   * Accessor for method.
29
   */
30
  public static <T> List<T> loadAll(
31
      Class<T> klass,
32
      Iterable<Class<?>> hardCodedClasses,
33
      ClassLoader classLoader,
34
      PriorityAccessor<T> priorityAccessor) {
35
    return ServiceProviders.loadAll(klass, hardCodedClasses, classLoader, priorityAccessor);
1✔
36
  }
37

38
  /**
39
   * Accessor for method.
40
   */
41
  @VisibleForTesting
42
  public static <T> Iterable<T> getCandidatesViaServiceLoader(Class<T> klass, ClassLoader cl) {
43
    return ServiceProviders.getCandidatesViaServiceLoader(klass, cl);
1✔
44
  }
45

46
  /**
47
   * Accessor for method.
48
   */
49
  @VisibleForTesting
50
  public static <T> Iterable<T> getCandidatesViaHardCoded(
51
      Class<T> klass, Iterable<Class<?>> hardcoded) {
52
    return ServiceProviders.getCandidatesViaHardCoded(klass, hardcoded);
×
53
  }
54

55
  /**
56
   * Accessor for {@link ServiceProviders#isAndroid}.
57
   */
58
  public static boolean isAndroid(ClassLoader cl) {
59
    return ServiceProviders.isAndroid(cl);
1✔
60
  }
61

62
  public interface PriorityAccessor<T> extends ServiceProviders.PriorityAccessor<T> {}
63
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc