public String recomputeDigest() { String tempDigest = computeDigest(); assert tempDigest != null : "post: return != null"; String prefix = "rel#" + id + ":"; // Substring uses the same underlying array of chars, so saves a bit // of memory. this.desc = prefix + tempDigest; this.digest = this.desc.substring(prefix.length()); return this.digest; }
public String recomputeDigest() { String tempDigest = computeDigest(); assert tempDigest != null : "post: return != null"; String prefix = "rel#" + id + ":"; // Substring uses the same underlying array of chars, so saves a bit // of memory. this.desc = prefix + tempDigest; this.digest = this.desc.substring(prefix.length()); return this.digest; }