Skip to content

Commit fd2e983

Browse files
committed
style: update format style
1 parent 856bb1a commit fd2e983

77 files changed

Lines changed: 1054 additions & 1020 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

demo-aspectj/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xmlns="http://maven.apache.org/POM/4.0.0"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

demo-aspectj/src/main/java/com/helltractor/demo/AutoFillAspectJ.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@
1212
@Aspect
1313
@Component
1414
public class AutoFillAspectJ {
15-
15+
1616
@Pointcut("execution(* com.helltractor.demo.service.IBuy.buy(..))")
1717
public void aopPointCut() {
18-
18+
1919
}
20-
20+
2121
@Before("aopPointCut()")
2222
// @Before("execution(* org.aopdemo.service.IBuy.buy(..)) && within(org.aopdemo.entity.*) && bean(girl)")
2323
public void haha() {
2424
System.out.println("男孩女孩都买了自己喜欢的东西");
2525
}
26-
26+
2727
@After("aopPointCut()")
2828
public void hehe() {
2929
System.out.println("After ...");
3030
}
31-
31+
3232
@AfterReturning("aopPointCut()")
3333
public void xixi() {
3434
System.out.println("AfterReturning ...");
3535
}
36-
36+
3737
@Around("aopPointCut()")
3838
public void xxx(ProceedingJoinPoint pj) {
3939
try {
@@ -44,11 +44,11 @@ public void xxx(ProceedingJoinPoint pj) {
4444
throwable.printStackTrace();
4545
}
4646
}
47-
47+
4848
@Pointcut("execution(* com.helltractor.demo.service.IBuy.buyPrice(double)) && args(price) && bean(girl)")
4949
public void gift(double price) {
5050
}
51-
51+
5252
/**
5353
* around notice
5454
* @param pj, price

demo-aspectj/src/main/java/com/helltractor/demo/entity/Boy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public String buy() {
1515
System.out.println("男孩买了一个游戏机");
1616
return "游戏机";
1717
}
18-
18+
1919
@Override
2020
public String buyPrice(double price) {
2121
System.out.println(String.format("男孩花了%s元买了一个游戏机", price));

demo-aspectj/src/main/java/com/helltractor/demo/entity/Girl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public String buy() {
1515
System.out.println("女孩买了一件漂亮的衣服");
1616
return "衣服";
1717
}
18-
18+
1919
@Override
2020
public final String buyPrice(double price) {
2121
System.out.printf("女孩花了%s元买了一件漂亮的衣服%n", price);

demo-aspectj/src/main/java/com/helltractor/demo/enumeration/OperationType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
*/
1212
public enum OperationType {
1313
INSERT,
14-
14+
1515
UPDATE,
1616
}

demo-aspectj/src/main/java/com/helltractor/demo/service/IBuy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
public interface IBuy {
99
String buy();
10-
10+
1111
String buyPrice(double price);
1212
}

demo-aspectj/src/test/java/com/helltractor/demo/AutoFillTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ public void autoFillTest() {
1919
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AutoFillConfig.class);
2020
Boy boy = context.getBean("boy", Boy.class);
2121
Girl girl = (Girl) context.getBean("girl");
22-
22+
2323
boy.buy();
2424
girl.buy();
25-
25+
2626
String boyBought = boy.buyPrice(35);
2727
String girlBought = girl.buyPrice(99.8);
28-
28+
2929
System.out.println("男孩买到了:" + boyBought);
3030
System.out.println("女孩买到了:" + girlBought);
3131
}

demo-common/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xmlns="http://maven.apache.org/POM/4.0.0"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

demo-common/src/main/resources/logback.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</appender>
2222

2323
<root level="INFO">
24-
<appender-ref ref="CONSOLE" />
25-
<appender-ref ref="FILE" />
24+
<appender-ref ref="CONSOLE"/>
25+
<appender-ref ref="FILE"/>
2626
</root>
2727
</configuration>

demo-consul/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xmlns="http://maven.apache.org/POM/4.0.0"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

0 commit comments

Comments
 (0)