Skip to content

Commit e6b12ce

Browse files
committed
chore: fix format
1 parent b6cd023 commit e6b12ce

49 files changed

Lines changed: 590 additions & 677 deletions

Some content is hidden

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

‎pom.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@
168168
<plugin>
169169
<groupId>com.diffplug.spotless</groupId>
170170
<artifactId>spotless-maven-plugin</artifactId>
171-
<version>2.43.0</version>
171+
<version>3.4.0</version>
172172
<configuration>
173173
<java>
174174
<googleJavaFormat>
175-
<version>1.22.0</version>
175+
<version>1.35.0</version>
176176
</googleJavaFormat>
177177
<removeUnusedImports />
178178
<trimTrailingWhitespace />

‎src/main/java/com/DesktopApplicationClientJava/Api/ApiClient.java‎

Lines changed: 179 additions & 186 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
package com.DesktopApplicationClientJava.Api;
22

3-
public class ApiConfig {
4-
5-
}
3+
public class ApiConfig {}

‎src/main/java/com/DesktopApplicationClientJava/Api/ApiException.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ public ErrorResponse getErrorResponse() {
1717
public int getStatus() {
1818
return errorResponse.status();
1919
}
20-
}
20+
}
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
package com.DesktopApplicationClientJava.Api.Dto.error;
22

3-
public record ErrorResponse(
4-
String message,
5-
int status,
6-
long timestamp
7-
) {
8-
public ErrorResponse(String message, int status) {
9-
this(message, status, System.currentTimeMillis());
10-
}
3+
public record ErrorResponse(String message, int status, long timestamp) {
4+
public ErrorResponse(String message, int status) {
5+
this(message, status, System.currentTimeMillis());
6+
}
117
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package com.DesktopApplicationClientJava.Api.Dto.request.Admin;
2+
23
import com.DesktopApplicationClientJava.entities.Role;
34

45
public record RegisterRequest(
5-
String email,
6-
String password,
7-
Role role, // "USER", "MODER" или "ADMIN"
8-
String firstname,
9-
String lastname
10-
) {}
6+
String email,
7+
String password,
8+
Role role, // "USER", "MODER" или "ADMIN"
9+
String firstname,
10+
String lastname) {}

‎src/main/java/com/DesktopApplicationClientJava/Api/Dto/request/Admin/UpdateUserRequest.java‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@
33
import com.DesktopApplicationClientJava.entities.Role;
44

55
public record UpdateUserRequest(
6-
String email,
7-
Boolean enabled,
8-
Role role,
9-
String firstname,
10-
String lastname
11-
) {}
6+
String email, Boolean enabled, Role role, String firstname, String lastname) {}
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
package com.DesktopApplicationClientJava.Api.Dto.request.Admin;
22

33
import com.DesktopApplicationClientJava.entities.Role;
4-
54
import java.time.LocalDateTime;
65

76
public record UserFilterRequest(
8-
String email,
9-
Role role,
10-
String firstName,
11-
String lastName,
12-
Boolean enabled,
13-
LocalDateTime createdAt,
14-
LocalDateTime updatedAt) {
15-
}
7+
String email,
8+
Role role,
9+
String firstName,
10+
String lastName,
11+
Boolean enabled,
12+
LocalDateTime createdAt,
13+
LocalDateTime updatedAt) {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.DesktopApplicationClientJava.Api.Dto.request.Auth;
22

3-
public record LoginRequest(String email, String password) {
4-
}
3+
public record LoginRequest(String email, String password) {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.DesktopApplicationClientJava.Api.Dto.request.Auth;
22

3-
public record RefreshTokenRequest(String refreshToken) {
4-
}
3+
public record RefreshTokenRequest(String refreshToken) {}

0 commit comments

Comments
 (0)