格式化相关代码

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>
<name>rpc</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>
<url>https://answer.prisoncode.com/</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -13,7 +13,7 @@ import java.util.concurrent.Executors;
public class RpcProxyServer {
private ExecutorService executorService = Executors.newCachedThreadPool();
public void publisher(Object server,int prot) {
public void publisher(Object server, int prot) {
ServerSocket serverSocket = null;
try {
serverSocket = new ServerSocket(prot);

View File

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

View File

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

View File

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