mirror of https://github.com/grpc/grpc-java.git
minor: remove the unnecessary final,static (#11098)
This commit is contained in:
parent
add8c37a41
commit
52e65ec0d8
|
@ -38,7 +38,7 @@ public final class AltsChannelBuilder extends ForwardingChannelBuilder2<AltsChan
|
||||||
new AltsChannelCredentials.Builder();
|
new AltsChannelCredentials.Builder();
|
||||||
|
|
||||||
/** "Overrides" the static method in {@link ManagedChannelBuilder}. */
|
/** "Overrides" the static method in {@link ManagedChannelBuilder}. */
|
||||||
public static final AltsChannelBuilder forTarget(String target) {
|
public static AltsChannelBuilder forTarget(String target) {
|
||||||
return new AltsChannelBuilder(target);
|
return new AltsChannelBuilder(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ public final class ComputeEngineChannelBuilder
|
||||||
}
|
}
|
||||||
|
|
||||||
/** "Overrides" the static method in {@link ManagedChannelBuilder}. */
|
/** "Overrides" the static method in {@link ManagedChannelBuilder}. */
|
||||||
public static final ComputeEngineChannelBuilder forTarget(String target) {
|
public static ComputeEngineChannelBuilder forTarget(String target) {
|
||||||
return new ComputeEngineChannelBuilder(target);
|
return new ComputeEngineChannelBuilder(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ public final class GoogleDefaultChannelBuilder
|
||||||
}
|
}
|
||||||
|
|
||||||
/** "Overrides" the static method in {@link ManagedChannelBuilder}. */
|
/** "Overrides" the static method in {@link ManagedChannelBuilder}. */
|
||||||
public static final GoogleDefaultChannelBuilder forTarget(String target) {
|
public static GoogleDefaultChannelBuilder forTarget(String target) {
|
||||||
return new GoogleDefaultChannelBuilder(target);
|
return new GoogleDefaultChannelBuilder(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ import org.junit.runners.JUnit4;
|
||||||
@RunWith(JUnit4.class)
|
@RunWith(JUnit4.class)
|
||||||
public class AltsHandshakerStubTest {
|
public class AltsHandshakerStubTest {
|
||||||
/** Mock status of handshaker service. */
|
/** Mock status of handshaker service. */
|
||||||
private static enum Status {
|
private enum Status {
|
||||||
OK,
|
OK,
|
||||||
ERROR,
|
ERROR,
|
||||||
COMPLETE
|
COMPLETE
|
||||||
|
|
|
@ -146,7 +146,7 @@ public final class TestUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("ReferenceEquality")
|
@SuppressWarnings("ReferenceEquality")
|
||||||
public static final EquivalentAddressGroup stripAttrs(EquivalentAddressGroup eag) {
|
public static EquivalentAddressGroup stripAttrs(EquivalentAddressGroup eag) {
|
||||||
if (eag.getAttributes() == Attributes.EMPTY) {
|
if (eag.getAttributes() == Attributes.EMPTY) {
|
||||||
return eag;
|
return eag;
|
||||||
}
|
}
|
||||||
|
|
|
@ -251,7 +251,7 @@ public class RouteGuideServer {
|
||||||
* Get the notes list for the given location. If missing, create it.
|
* Get the notes list for the given location. If missing, create it.
|
||||||
*/
|
*/
|
||||||
private List<RouteNote> getOrCreateNotes(Point location) {
|
private List<RouteNote> getOrCreateNotes(Point location) {
|
||||||
List<RouteNote> notes = Collections.synchronizedList(new ArrayList<RouteNote>());
|
List<RouteNote> notes = Collections.synchronizedList(new ArrayList<>());
|
||||||
List<RouteNote> prevNotes = routeNotes.putIfAbsent(location, notes);
|
List<RouteNote> prevNotes = routeNotes.putIfAbsent(location, notes);
|
||||||
return prevNotes != null ? prevNotes : notes;
|
return prevNotes != null ? prevNotes : notes;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue