格式化相关代码

This commit is contained in:
lisang 2024-06-27 21:10:38 +08:00
parent 3661cfa8e7
commit 7d80883b4a
11 changed files with 115 additions and 133 deletions

View File

@ -15,8 +15,7 @@
</modules> </modules>
<name>rpc</name> <name>rpc</name>
<!-- FIXME change it to the project's website --> <url>https://answer.prisoncode.com/</url>
<url>http://www.example.com</url>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@ -9,8 +9,7 @@
<version>1.0</version> <version>1.0</version>
<name>rpc-api</name> <name>rpc-api</name>
<!-- FIXME change it to the project's website --> <url>https://answer.prisoncode.com/</url>
<url>http://www.example.com</url>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@ -2,12 +2,9 @@ package com.shockkid;
/** /**
* Hello world! * Hello world!
*
*/ */
public class App public class App {
{ public static void main(String[] args) {
public static void main( String[] args )
{
System.out.println("Hello World!"); System.out.println("Hello World!");
} }
} }

View File

@ -7,14 +7,12 @@ import org.junit.Test;
/** /**
* Unit test for simple App. * Unit test for simple App.
*/ */
public class AppTest public class AppTest {
{
/** /**
* Rigorous Test :-) * Rigorous Test :-)
*/ */
@Test @Test
public void shouldAnswerWithTrue() public void shouldAnswerWithTrue() {
{
assertTrue(true); assertTrue(true);
} }
} }

View File

@ -9,8 +9,7 @@
<version>1.0</version> <version>1.0</version>
<name>rpc-client</name> <name>rpc-client</name>
<!-- FIXME change it to the project's website --> <url>https://answer.prisoncode.com/</url>
<url>http://www.example.com</url>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@ -7,14 +7,12 @@ import org.junit.Test;
/** /**
* Unit test for simple App. * Unit test for simple App.
*/ */
public class AppTest public class AppTest {
{
/** /**
* Rigorous Test :-) * Rigorous Test :-)
*/ */
@Test @Test
public void shouldAnswerWithTrue() public void shouldAnswerWithTrue() {
{
assertTrue(true); assertTrue(true);
} }
} }

View File

@ -9,8 +9,7 @@
<version>1.0</version> <version>1.0</version>
<name>rpc-server</name> <name>rpc-server</name>
<!-- FIXME change it to the project's website --> <url>https://answer.prisoncode.com/</url>
<url>http://www.example.com</url>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@ -7,14 +7,12 @@ import org.junit.Test;
/** /**
* Unit test for simple App. * Unit test for simple App.
*/ */
public class AppTest public class AppTest {
{
/** /**
* Rigorous Test :-) * Rigorous Test :-)
*/ */
@Test @Test
public void shouldAnswerWithTrue() public void shouldAnswerWithTrue() {
{
assertTrue(true); assertTrue(true);
} }
} }

View File

@ -2,12 +2,9 @@ package com.shockkid;
/** /**
* Hello world! * Hello world!
*
*/ */
public class App public class App {
{ public static void main(String[] args) {
public static void main( String[] args )
{
System.out.println("Hello World!"); System.out.println("Hello World!");
} }
} }

View File

@ -7,14 +7,12 @@ import org.junit.Test;
/** /**
* Unit test for simple App. * Unit test for simple App.
*/ */
public class AppTest public class AppTest {
{
/** /**
* Rigorous Test :-) * Rigorous Test :-)
*/ */
@Test @Test
public void shouldAnswerWithTrue() public void shouldAnswerWithTrue() {
{
assertTrue(true); assertTrue(true);
} }
} }