giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Homan (Created) (JIRA)" <>
Subject [jira] [Created] (GIRAPH-179) BspServiceMaster's PathFilter can be simplified
Date Sat, 07 Apr 2012 20:58:15 GMT
BspServiceMaster's PathFilter can be simplified

                 Key: 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 {
    public boolean accept(Path path) {
      if (path.getName().endsWith(
        return true;
      return false;
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:!default.jspa
For more information on JIRA, see:


View raw message