@Override @Nullable public Changeset apply(@Nonnull DbFileSources.Line input) { if (input.hasScmDate()) { Changeset cs = builder .setRevision(input.hasScmRevision() ? input.getScmRevision() : null) .setAuthor(input.hasScmAuthor() ? input.getScmAuthor() : null) .setDate(input.getScmDate()) .build(); if (cache.containsKey(cs)) { return cache.get(cs); } cache.put(cs, cs); return cs; } return null; } }
@Override @Nullable public Changeset apply(@Nonnull DbFileSources.Line input) { if (input.hasScmDate()) { Changeset cs = builder .setRevision(input.hasScmRevision() ? input.getScmRevision() : null) .setAuthor(input.hasScmAuthor() ? input.getScmAuthor() : null) .setDate(input.getScmDate()) .build(); if (cache.containsKey(cs)) { return cache.get(cs); } cache.put(cs, cs); return cs; } return null; } }
onChanged(); if (other.hasScmAuthor()) { bitField0_ |= 0x00000008; scmAuthor_ = other.scmAuthor_;