Skip to content

Commit a98097f

Browse files
github-actionsgithub-actions
github-actions
authored and
github-actions
committed
Formatted with Google Java Formatter
1 parent 52ac1f9 commit a98097f

File tree

4 files changed

+53
-56
lines changed

4 files changed

+53
-56
lines changed

package/src/main/java/com/example/packaging/PackageApplication.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
@SpringBootApplication
77
public class PackageApplication {
88

9-
public static void main(String[] args) {
10-
SpringApplication.run(PackageApplication.class, args);
11-
}
12-
9+
public static void main(String[] args) {
10+
SpringApplication.run(PackageApplication.class, args);
11+
}
1312
}

package/src/test/java/com/example/packaging/PackageApplicationTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
@SpringBootTest
77
class PackageApplicationTests {
88

9-
@Test
10-
void contextLoads() {
11-
}
12-
9+
@Test
10+
void contextLoads() {}
1311
}

yml-config/src/main/java/com/YmlConfigApplication.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@SpringBootApplication
77
public class YmlConfigApplication {
88

9-
public static void main(String[] args) {
10-
SpringApplication.run(YmlConfigApplication.class, args);
11-
}
9+
public static void main(String[] args) {
10+
SpringApplication.run(YmlConfigApplication.class, args);
11+
}
1212
}
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
package com.pojo;
22

3-
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
43
import org.springframework.boot.context.properties.ConfigurationProperties;
5-
import org.springframework.context.annotation.ComponentScan;
6-
import org.springframework.context.annotation.Configuration;
74
import org.springframework.stereotype.Component;
8-
import org.springframework.stereotype.Repository;
95

106
@Component
117
@ConfigurationProperties(prefix = "user")
@@ -14,45 +10,49 @@ public class User {
1410
private String password;
1511
private int age;
1612

17-
public User(String username, String password, int age) {
18-
this.username = username;
19-
this.password = password;
20-
this.age = age;
21-
}
22-
23-
public User() {
24-
}
25-
26-
public String getUsername() {
27-
return username;
28-
}
29-
30-
public void setUsername(String username) {
31-
this.username = username;
32-
}
33-
34-
public String getPassword() {
35-
return password;
36-
}
37-
38-
public void setPassword(String password) {
39-
this.password = password;
40-
}
41-
42-
public int getAge() {
43-
return age;
44-
}
45-
46-
public void setAge(int age) {
47-
this.age = age;
48-
}
49-
50-
@Override
51-
public String toString() {
52-
return "User{" +
53-
"username='" + username + '\'' +
54-
", password='" + password + '\'' +
55-
", age=" + age +
56-
'}';
57-
}
13+
public User(String username, String password, int age) {
14+
this.username = username;
15+
this.password = password;
16+
this.age = age;
17+
}
18+
19+
public User() {}
20+
21+
public String getUsername() {
22+
return username;
23+
}
24+
25+
public void setUsername(String username) {
26+
this.username = username;
27+
}
28+
29+
public String getPassword() {
30+
return password;
31+
}
32+
33+
public void setPassword(String password) {
34+
this.password = password;
35+
}
36+
37+
public int getAge() {
38+
return age;
39+
}
40+
41+
public void setAge(int age) {
42+
this.age = age;
43+
}
44+
45+
@Override
46+
public String toString() {
47+
return "User{"
48+
+ "username='"
49+
+ username
50+
+ '\''
51+
+ ", password='"
52+
+ password
53+
+ '\''
54+
+ ", age="
55+
+ age
56+
+ '}';
57+
}
5858
}

0 commit comments

Comments
 (0)