@SuppressWarnings("deprecation") @Test public void getInstance() { Helper helper = mock(Helper.class); assertThat( RoundRobinLoadBalancerFactory.getInstance().newLoadBalancer(helper).getClass().getName()) .isEqualTo("io.grpc.util.RoundRobinLoadBalancer"); verifyZeroInteractions(helper); }
public static synchronized RoundRobinLoadBalancerFactory getInstance() { if (instance == null) { instance = new RoundRobinLoadBalancerFactory(); } return instance; }
RoundRobinLoadBalancerFactory extends LoadBalancer.Factory { public static synchronized RoundRobinLoadBalancerFactory getInstance() { if (instance == null) { instance = new RoundRobinLoadBalancerFactory(); } return instance; } }
RoundRobinLoadBalancerFactory extends LoadBalancer.Factory { public static synchronized RoundRobinLoadBalancerFactory getInstance() { if (instance == null) { instance = new RoundRobinLoadBalancerFactory(); } return instance; } private  RoundRobinLoadBalancerFactory(); }
RoundRobinLoadBalancerFactory extends LoadBalancer.Factory { public static synchronized RoundRobinLoadBalancerFactory getInstance() { if (instance == null) { instance = new RoundRobinLoadBalancerFactory(); } return instance; } private  RoundRobinLoadBalancerFactory(); static synchronized RoundRobinLoadBalancerFactory getInstance(); @Override LoadBalancer newLoadBalancer(LoadBalancer.Helper helper); }
RoundRobinLoadBalancerFactory extends LoadBalancer.Factory { public static synchronized RoundRobinLoadBalancerFactory getInstance() { if (instance == null) { instance = new RoundRobinLoadBalancerFactory(); } return instance; } private  RoundRobinLoadBalancerFactory(); static synchronized RoundRobinLoadBalancerFactory getInstance(); @Override LoadBalancer newLoadBalancer(LoadBalancer.Helper helper);  }