mirror of
https://github.com/google/nomulus.git
synced 2025-05-01 20:47:52 +02:00
Runnable and Callable are both @FunctionalInterfaces. The difference is that Callable requires a return value whereas Runnable does not, so in situations where we don't care about a return value, rather than having to add an unnecessary 'return null;' at the end of the lambda, we can simply use a non-returning Runnable instead. Unfortunately, owing to legacy reasons, Runnable is not declared to throw checked exceptions whereas Callable is, so in situations where checked exceptions are thrown we still need to have a 'return null;' call at the end. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=172935400 |
||
---|---|---|
.. | ||
BackupModule.java | ||
BackupUtils.java | ||
BUILD | ||
CommitLogCheckpointAction.java | ||
CommitLogCheckpointStrategy.java | ||
DeleteOldCommitLogsAction.java | ||
ExportCommitLogDiffAction.java | ||
GcsDiffFileLister.java | ||
package-info.java | ||
RestoreCommitLogsAction.java |