mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
refactor(project): normalize formatting and reorder class members across modules
This commit is contained in:
@@ -11,7 +11,7 @@ public class TestCoordinateManager {
|
||||
private CTestCore cTestCore = new CTestCore();
|
||||
|
||||
@Coordinated(capability = "test_c")
|
||||
public void testMethodCoordinate(String input){
|
||||
public void testMethodCoordinate(String input) {
|
||||
String resultB = bTestCore.testCoordinateSubMethod();
|
||||
cTestCore.testCoordinateSubMethod(resultB);
|
||||
}
|
||||
|
||||
@@ -5,5 +5,6 @@ import work.slhaf.partner.api.agent.factory.capability.annotation.Capability;
|
||||
@Capability("test_a")
|
||||
public interface ATestCapability {
|
||||
void testMethodNormalA();
|
||||
|
||||
String testMethodNormalB();
|
||||
}
|
||||
|
||||
@@ -7,12 +7,12 @@ import work.slhaf.partner.api.agent.factory.capability.annotation.CapabilityMeth
|
||||
public class ATestCore {
|
||||
|
||||
@CapabilityMethod
|
||||
public void testMethodNormalA(){
|
||||
public void testMethodNormalA() {
|
||||
System.out.println("ATestCore::testMethodNormalA");
|
||||
}
|
||||
|
||||
@CapabilityMethod
|
||||
public String testMethodNormalB(){
|
||||
public String testMethodNormalB() {
|
||||
return "ATestCore::testMethodNormalB";
|
||||
}
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@ import work.slhaf.partner.api.agent.factory.capability.annotation.CapabilityMeth
|
||||
public class BTestCore {
|
||||
|
||||
@CapabilityMethod
|
||||
public void testMethodNormalA(){
|
||||
public void testMethodNormalA() {
|
||||
System.out.println("BTestCore::testMethodNormalA");
|
||||
}
|
||||
|
||||
public String testCoordinateSubMethod(){
|
||||
public String testCoordinateSubMethod() {
|
||||
return "BTestCore::testMethodCoordinate";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,11 +7,11 @@ import work.slhaf.partner.api.agent.factory.capability.annotation.CapabilityMeth
|
||||
public class CTestCore {
|
||||
|
||||
@CapabilityMethod
|
||||
public void testMethodNormalA(String input){
|
||||
public void testMethodNormalA(String input) {
|
||||
System.out.println("CTestCore::testMethodNormalA, input: " + input);
|
||||
}
|
||||
|
||||
public void testCoordinateSubMethod(String input){
|
||||
public void testCoordinateSubMethod(String input) {
|
||||
System.out.println("CTestCore::testMethodCoordinate, input: " + input);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
public interface InterfaceTest {
|
||||
default String getName(){
|
||||
default String getName() {
|
||||
return "111";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ public class TestA {
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
int a = 1 / 0;
|
||||
}catch (Exception ignore) {
|
||||
} catch (Exception ignore) {
|
||||
}
|
||||
System.out.println("111");
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class TestImpl implements InterfaceTest{
|
||||
public class TestImpl implements InterfaceTest {
|
||||
|
||||
@Test
|
||||
public void test(){
|
||||
public void test() {
|
||||
System.out.println(getName());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user