Description
/** * Only get the finalized checkpoint files */ public static class FinalizedCheckpointPathFilter implements PathFilter { @Override public boolean accept(Path path) { if (path.getName().endsWith( BspService.CHECKPOINT_FINALIZED_POSTFIX)) { return true; } return false; } }
we can simplify this, eliminating the if statement and just returning the result of endsWith()