commit | 386712e202c27d1ff565c7dc64a4127cc1460664 | [log] [tgz] |
---|---|---|
author | Xing Huang <xingkhuang@google.com> | Wed Aug 14 14:47:56 2024 -0500 |
committer | Xing Huang <xingkhuang@google.com> | Wed Aug 14 14:50:13 2024 -0500 |
tree | 8d63a3eb972f12a38f9e8637698dde5a7ea7ece4 | |
parent | 84fb315541de4364c63a55bda7b96a1a44e0637a [diff] |
Region: making getEnd() public All getters within the Region object are public except for getEnd(), even its start equivalent of "getStart()" is public. Making getEnd() public will make doing Region object validation outside of its package easier. Change-Id: Ied6a719e31f7108a7c250469c4b32bf60c0495a2
diff --git a/java/com/google/gitiles/blame/cache/Region.java b/java/com/google/gitiles/blame/cache/Region.java index 17d280f..cd99043 100644 --- a/java/com/google/gitiles/blame/cache/Region.java +++ b/java/com/google/gitiles/blame/cache/Region.java
@@ -53,7 +53,7 @@ return start; } - int getEnd() { + public int getEnd() { return start + count; }