BspServiceMaster's PathFilter can be simplified
-----------------------------------------------

                 Key: GIRAPH-179
                 URL: https://issues.apache.org/jira/browse/GIRAPH-179
             Project: Giraph
          Issue Type: Improvement
            Reporter: Jakob Homan
            Priority: Trivial


{code}  /**
   * 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;
    }
  }{code}
we can simplify this, eliminating the if statement and just returning the 
result of {{endsWith()}}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to