Пример #1
0
  public TranspResult transp(UpdateXmlFile c1, UpdateXmlFile c2) throws Exception {
    if (c1.getPath().equals(c2.getPath())) {
      return new TranspResult(c1, c2, false);
    }

    return new TranspResult(c2, c1, true);
  }
Пример #2
0
  public TranspResult transp(UpdateBinaryFile c1, UpdateXmlFile c2) {
    if (c1.getPath().equals(c2.getPath())) {
      return new TranspResult(c2, new EmptyOp(c1), true);
    }

    return new TranspResult(c1, c2, false);
  }