Skip to content

Commit

Permalink
Format code base consistently (bazelbuild#954)
Browse files Browse the repository at this point in the history
All *.java files now comply with the Eclipse 2019-09 formatter.
  • Loading branch information
marchof authored and Godin committed Oct 4, 2019
1 parent fba5534 commit 674055e
Show file tree
Hide file tree
Showing 228 changed files with 1,024 additions and 927 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*******************************************************************************/
public class Example {

public void sayHello() {
System.out.println("Hello world");
}
public void sayHello() {
System.out.println("Hello world");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

public class ExampleTest {

@Test
public void test() {
new Example();
}
@Test
public void test() {
new Example();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*******************************************************************************/
public class Example {

public void sayHello() {
System.out.println("Hello world");
}
public void sayHello() {
System.out.println("Hello world");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

public class ExampleTest {

@Test
public void test() {
new Example();
}
@Test
public void test() {
new Example();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*******************************************************************************/
public class Example {

public void sayHello() {
System.out.println("Hello world");
}
public void sayHello() {
System.out.println("Hello world");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

public class ExampleTest {

@Test
public void test() {
new Example().sayHello();
}
@Test
public void test() {
new Example().sayHello();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*******************************************************************************/
public class Example {

public void sayHello() {
System.out.println("Hello world");
}
public void sayHello() {
System.out.println("Hello world");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

public class ExampleTest {

@Test
public void test() {
new Example().sayHello();
}
@Test
public void test() {
new Example().sayHello();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* Marc R. Hoffmann - initial API and implementation
*
*******************************************************************************/

import java.io.File;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
*******************************************************************************/
package org.project;


public class DatabaseUtil {
public void doStuff() {
System.out.println("Do DatabaseUtil Stuff");
}
public void doStuff() {
System.out.println("Do DatabaseUtil Stuff");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
*******************************************************************************/
package org.project;


public class FileUtil {
public void doStuff() {
System.out.println("Do FileUtil Stuff");
}
public void doStuff() {
System.out.println("Do FileUtil Stuff");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
*******************************************************************************/
package org.project;


public class TestUtil {
public void doStuff() {
System.out.println("Do TestUtil Stuff");
}
public void doStuff() {
System.out.println("Do TestUtil Stuff");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import org.junit.Test;

public class TestDatabaseUtil {
@Test
public void testDoStuff() {
new DatabaseUtil().doStuff();
}
@Test
public void testDoStuff() {
new DatabaseUtil().doStuff();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

public class Example {

public void sayHello() {
System.out.println("Hello world");
}
public void sayHello() {
System.out.println("Hello world");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

public class ExampleTest {

@Test
public void test() {
new Example().sayHello();
}
@Test
public void test() {
new Example().sayHello();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
*******************************************************************************/
public class Example {

public void sayHello(String name) {
// http://openjdk.java.net/jeps/280
System.out.println("Hello, " + name);
}
public void sayHello(String name) {
// http://openjdk.java.net/jeps/280
System.out.println("Hello, " + name);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

public class ExampleTest {

@Test
public void test() {
new Example().sayHello("test");
}
@Test
public void test() {
new Example().sayHello("test");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*******************************************************************************/
public class Example {

public void sayHello() {
System.out.println("Hello world");
}
public void sayHello() {
System.out.println("Hello world");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

public class ExampleTest {

@Test
public void test() {
new Example().sayHello();
}
@Test
public void test() {
new Example().sayHello();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*******************************************************************************/
public class Example {

public void sayHello() {
System.out.println("Hello world");
}
public void sayHello() {
System.out.println("Hello world");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

public class ExampleTest {

@Test
public void test() {
new Example().sayHello();
}
@Test
public void test() {
new Example().sayHello();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*******************************************************************************/
public class Example {

public void sayHello() {
System.out.println("Hello world");
}
public void sayHello() {
System.out.println("Hello world");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

public class Example {

public void sayHello() {
System.out.println("Hello world");
}
public void sayHello() {
System.out.println("Hello world");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

public class ExampleTest {

@Test
public void test() {
new Example().sayHello();
}
@Test
public void test() {
new Example().sayHello();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

public class ExampleTest {

@Test
public void test() {
}
@Test
public void test() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*******************************************************************************/
public class Example {

public void sayHello() {
System.out.println("Hello world");
}
public void sayHello() {
System.out.println("Hello world");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

public class ExampleTest {

@Test
public void test() {
new Example().sayHello();
}
@Test
public void test() {
new Example().sayHello();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

public class ExampleTest {

@Test
public void test() {
}
@Test
public void test() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*******************************************************************************/
public class DoNotInstrument {

public void sayHello() {
System.out.println("Hello world");
}
public void sayHello() {
System.out.println("Hello world");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*******************************************************************************/
public class Example {

public void sayHello() {
System.out.println("Hello world");
}
public void sayHello() {
System.out.println("Hello world");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

public class ExampleTest {

@Test
public void test() {
new Example().sayHello();
}
@Test
public void test() {
new Example().sayHello();
}

}
Loading

0 comments on commit 674055e

Please sign in to comment.