Address all static analysis findings from internal import

Fix all static analysis findings identified during internal import across
12 affected files in Gitiles:

- Documentation: Add missing Javadoc comments to public classes,
  interfaces, builder classes, and enums.
- Language & Syntax Modernization: Convert multiline strings to Java text
  blocks, convert statement switches to arrow expression switches,
  adopt pattern matching for instanceof and switches, and group method
  overloads together without interleaving helper methods.
- Deprecation Resolutions: Migrate from deprecated PersonIdent constructor
  to Instant/ZoneId variants, replace OrderedList.getStartNumber() with
  getMarkerStartNumber(), and replace Splitter.onPattern() with
  Splitter.on(Pattern.compile(...)).
- Guava & Truth Assertions: Adopt ImmutableList/ImmutableSet where
  appropriate, use buildOrThrow(), use computeIfAbsent(), and modernize
  Truth assertions with isPresent(), hasSize(), and isEmpty().
- Style & Cleanliness: Enforce lowerCamelCase identifier names, bracket
  single-line control flow statements, split multi-variable declarations,
  avoid Yoda conditions, and make utility class constructor private.

Change-Id: Ia76966182374aef1c8cf6fb8d207567f4615c8f1
12 files changed
tree: b696f3fdc3120bbe253878c18dbda2edf187bf8c
  1. .settings/
  2. Documentation/
  3. java/
  4. javatests/
  5. lib/
  6. modules/
  7. resources/
  8. tools/
  9. .bazelignore
  10. .bazelrc
  11. .bazelversion
  12. .gitignore
  13. .gitmodules
  14. .mailmap
  15. .zuul.yaml
  16. BUILD
  17. COPYING
  18. external_deps.lock.json
  19. fake_pom_deploy.xml
  20. MODULE.bazel
  21. MODULE.bazel.lock
  22. navbar.md
  23. README.md
  24. version.bzl
README.md

Gitiles - A simple JGit repository browser

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.

Configuration

Gitiles is configurable in a git-style configuration file named gitiles.config. Refer to the configuration documentation for details.

Bugs

Use gerrit's issue tracker to file bugs.

Contributing to Gitiles

Please refer to the Developer Guide.