Format all Java files with google-java-format
Change-Id: I8eecd0c17856047df3645175b4a6ca81a5c11d95
diff --git a/java/com/google/gitiles/doc/DocServlet.java b/java/com/google/gitiles/doc/DocServlet.java
index 61adfe2..24f8d4b 100644
--- a/java/com/google/gitiles/doc/DocServlet.java
+++ b/java/com/google/gitiles/doc/DocServlet.java
@@ -167,8 +167,7 @@
return h.hash().toString();
}
- private MarkdownFile findNavbar(RevWalk rw, RevTree root, String path)
- throws IOException {
+ private MarkdownFile findNavbar(RevWalk rw, RevTree root, String path) throws IOException {
if (!Strings.isNullOrEmpty(path)) {
// Traverse up the path until we find a NAVBAR_MD.
StringBuilder pathRemaining = new StringBuilder(path);
diff --git a/javatests/com/google/gitiles/doc/DocServletTest.java b/javatests/com/google/gitiles/doc/DocServletTest.java
index 782fc5c..5d47cd8 100644
--- a/javatests/com/google/gitiles/doc/DocServletTest.java
+++ b/javatests/com/google/gitiles/doc/DocServletTest.java
@@ -59,10 +59,8 @@
@Test
public void simpleSubNavbar() throws Exception {
- String rootNavbar =
- "# Site Title\n\n* [Home](index.md)\n* [README](README.md)\n";
- String subNavbar =
- "# Subdir Title\n\n* [Sub Home](index.md)\n* [Sub README](README.md)\n";
+ String rootNavbar = "# Site Title\n\n* [Home](index.md)\n* [README](README.md)\n";
+ String subNavbar = "# Subdir Title\n\n* [Sub Home](index.md)\n* [Sub README](README.md)\n";
repo.branch("master")
.commit()
.add("README.md", "# page\n\nof information.")