commit | c53de2b9def077b3cece80a62c4991a73cc64f43 | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Sat Jun 01 15:27:25 2019 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Sat Jun 01 15:27:25 2019 +0900 |
tree | 92c6fccc1aa30e614c3c9bfcefb1e594ebf3a6b2 | |
parent | 68a7bd53d3c5a19c93fcc0c9031a01f5e82f92a8 [diff] |
Revision: Add helper method for comparison to Revision.NULL When Error Prone checks are enabled, comparing to Revision.NULL with the == or != operator results in a warning: [ReferenceEquality] Comparison using reference equality instead of value equality The NULL instance is used as a sentinel, so comparing with reference equality is correct. Rather than suppressing the warning at every place in the code, add a helper method that can be used, and suppress the warning only there. Note that the "ReferenceEquality" warning is Error Prone specific and suppressing it results in an "Unsupported @SuppressWarnings" warning. Change-Id: Ia50404f76f88c405b9298a645760c019384c92ff
Gitiles is a simple repository browser for Git repositories, built on JGit. Its guiding principle is simplicity: it has no formal access controls, no write access, no fancy Javascript, etc.
Gitiles automatically renders *.md
Markdown files into HTML for simplified documentation. Refer to the Markdown documentation for details.
Gitiles is configurable in a git-style configuration file named gitiles.config
. Refer to the configuration documentation for details.
Use the issue tracker at github to file bugs.
Please refer to the Developer Guide.