com.google.errorprone.annotations.ForOverride Java Examples
The following examples show how to use
com.google.errorprone.annotations.ForOverride.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BaseServerStartup.java From zuul with Apache License 2.0 | 5 votes |
@ForOverride protected Map<SocketAddress, ChannelInitializer<?>> chooseAddrsAndChannels(ChannelGroup clientChannels) { @SuppressWarnings("unchecked") // Channel init map has the wrong generics and we can't fix without api breakage. Map<Integer, ChannelInitializer<?>> portMap = (Map<Integer, ChannelInitializer<?>>) (Map) choosePortsAndChannels(clientChannels); return Server.convertPortMap(portMap); }
Example #2
Source File: BaseSslContextFactory.java From zuul with Apache License 2.0 | 5 votes |
/** * This function is meant to call the correct overload of {@code SslContextBuilder.forServer()}. It should not * apply any other customization. */ @ForOverride protected SslContextBuilder newBuilderForServer() throws IOException { LOG.debug("Using certChainFile {}", serverSslConfig.getCertChainFile()); try (InputStream keyInput = getKeyInputStream(); InputStream certChainInput = new FileInputStream(serverSslConfig.getCertChainFile())) { return SslContextBuilder.forServer(certChainInput, keyInput); } }
Example #3
Source File: ProtocolNegotiators.java From grpc-java with Apache License 2.0 | 4 votes |
@ForOverride protected void protocolNegotiationEventTriggered(ChannelHandlerContext ctx) { // no-op }
Example #4
Source File: AbstractCatchingFuture.java From codebuff with BSD 2-Clause "Simplified" License | 4 votes |
/** Template method for subtypes to actually run the fallback. */ @ForOverride abstract T doFallback(F fallback, X throwable) throws Exception;
Example #5
Source File: AbstractCatchingFuture.java From codebuff with BSD 2-Clause "Simplified" License | 4 votes |
/** Template method for subtypes to actually set the result. */ @ForOverride abstract void setResult(T result);
Example #6
Source File: AbstractTransformFuture.java From codebuff with BSD 2-Clause "Simplified" License | 4 votes |
/** Template method for subtypes to actually run the transform. */ @ForOverride abstract T doTransform(F function, I result) throws Exception;
Example #7
Source File: AbstractTransformFuture.java From codebuff with BSD 2-Clause "Simplified" License | 4 votes |
/** Template method for subtypes to actually set the result. */ @ForOverride abstract void setResult(T result);
Example #8
Source File: InMemoryNodeEntry.java From bazel with Apache License 2.0 | 4 votes |
/** * Creates a {@link DirtyBuildingState} for the case where this node is done and is being marked * dirty. */ @ForOverride protected DirtyBuildingState createDirtyBuildingStateForDoneNode( DirtyType dirtyType, GroupedList<SkyKey> directDeps, SkyValue value) { return DirtyBuildingState.create(dirtyType, directDeps, value); }
Example #9
Source File: SkyframeExecutor.java From bazel with Apache License 2.0 | 4 votes |
@ForOverride protected abstract BuildDriver createBuildDriver();
Example #10
Source File: LogHandlerQuerier.java From bazel with Apache License 2.0 | 4 votes |
/** Checks if this {@link LogHandlerQuerier} can query the given handler. */ @ForOverride protected abstract boolean canQuery(Handler handler);
Example #11
Source File: ProtocolNegotiators.java From grpc-java with Apache License 2.0 | 4 votes |
@ForOverride protected void handlerAdded0(ChannelHandlerContext ctx) throws Exception { super.handlerAdded(ctx); }
Example #12
Source File: DiffResult.java From curiostack with MIT License | 4 votes |
@ForOverride abstract ImmutableListMultimap.Builder<Integer, RepeatedField> repeatedFieldsBuilder();
Example #13
Source File: DiffResult.java From curiostack with MIT License | 4 votes |
@ForOverride abstract ImmutableListMultimap.Builder<Integer, SingularField> singularFieldsBuilder();
Example #14
Source File: DiffResult.java From curiostack with MIT License | 4 votes |
@ForOverride abstract ImmutableListMultimap.Builder<Integer, SingularField> singularFieldsBuilder();
Example #15
Source File: DiffResult.java From curiostack with MIT License | 4 votes |
@ForOverride abstract ImmutableList.Builder<PairResult> pairResultsBuilder();
Example #16
Source File: AbstractCatchingFuture.java From codebuff with BSD 2-Clause "Simplified" License | 2 votes |
/** Template method for subtypes to actually run the fallback. */ @ForOverride abstract T doFallback(F fallback, X throwable) throws Exception;
Example #17
Source File: InternalSubchannel.java From grpc-java with Apache License 2.0 | 2 votes |
/** * Called when the subchannel is terminated, which means it's shut down and all transports * have been terminated. */ @ForOverride void onTerminated(InternalSubchannel is) { }
Example #18
Source File: LogHandlerQuerier.java From bazel with Apache License 2.0 | 2 votes |
/** * Returns a logging handler's log file path. * * @param handler logging handler to query * @return the log handler's log file path if the log file is currently available */ @ForOverride protected abstract Optional<Path> getLogHandlerFilePath(Handler handler);
Example #19
Source File: InternalSubchannel.java From grpc-java with Apache License 2.0 | 2 votes |
/** * Called when the subchannel's connectivity state has changed. */ @ForOverride void onStateChange(InternalSubchannel is, ConnectivityStateInfo newState) { }
Example #20
Source File: EvictableSupplier.java From bazel with Apache License 2.0 | 2 votes |
/** * Computes the supplied value. * * <p>This method is called (under a lock on {@code this}) when the cached value is unavailable, * either because it was not initially supplied via the constructor, or because it was evicted by * GC. * * <p>Must not return {@code null}. */ @ForOverride protected abstract T computeValue() throws InterruptedException;
Example #21
Source File: InternalSubchannel.java From grpc-java with Apache License 2.0 | 2 votes |
/** * Called when the subchannel's in-use state has changed to true, which means at least one * transport is in use. */ @ForOverride void onInUse(InternalSubchannel is) { }
Example #22
Source File: InternalSubchannel.java From grpc-java with Apache License 2.0 | 2 votes |
/** * Called when the subchannel's in-use state has changed to false, which means no transport is * in use. */ @ForOverride void onNotInUse(InternalSubchannel is) { }
Example #23
Source File: AbstractTransformFuture.java From codebuff with BSD 2-Clause "Simplified" License | 2 votes |
/** Template method for subtypes to actually set the result. */ @ForOverride abstract void setResult(T result);
Example #24
Source File: AbstractCatchingFuture.java From codebuff with BSD 2-Clause "Simplified" License | 2 votes |
/** Template method for subtypes to actually set the result. */ @ForOverride abstract void setResult(T result);
Example #25
Source File: InternalSubchannel.java From grpc-nebula-java with Apache License 2.0 | 2 votes |
/** * Called when the subchannel's connectivity state has changed. */ @ForOverride void onStateChange(InternalSubchannel is, ConnectivityStateInfo newState) { }
Example #26
Source File: InternalSubchannel.java From grpc-nebula-java with Apache License 2.0 | 2 votes |
/** * Called when the subchannel's in-use state has changed to true, which means at least one * transport is in use. */ @ForOverride void onInUse(InternalSubchannel is) { }
Example #27
Source File: InternalSubchannel.java From grpc-nebula-java with Apache License 2.0 | 2 votes |
/** * Called when the subchannel's in-use state has changed to false, which means no transport is * in use. */ @ForOverride void onNotInUse(InternalSubchannel is) { }
Example #28
Source File: FieldScopeLogic.java From curiostack with MIT License | 2 votes |
/** * Returns {@link #subScope} for {@code NONRECURSIVE} results. * * <p>Throws an {@link UnsupportedOperationException} by default. Subclasses which can return * {@code NONRECURSIVE} results must override this method. */ @ForOverride FieldScopeLogic subScopeImpl( Descriptor rootDescriptor, FieldDescriptorOrUnknown fieldDescriptorOrUnknown) { throw new UnsupportedOperationException("subScopeImpl not implemented for " + getClass()); }
Example #29
Source File: AbstractCatchingFuture.java From codebuff with BSD 2-Clause "Simplified" License | 2 votes |
/** Template method for subtypes to actually run the fallback. */ @ForOverride abstract T doFallback(F fallback, X throwable) throws Exception;
Example #30
Source File: AbstractCatchingFuture.java From codebuff with BSD 2-Clause "Simplified" License | 2 votes |
/** Template method for subtypes to actually set the result. */ @ForOverride abstract void setResult(T result);