Skip to content

Commit

Permalink
Fix checkstyle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegRyazancev committed Mar 22, 2024
1 parent 02b63a4 commit 1fa483a
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ public UnauthorizedException unauthorized() {
);
}

public UnauthorizedException unauthorizedRequest(){
public UnauthorizedException unauthorizedRequest() {

return new UnauthorizedException(
CustomErrorCode.OS_API_GATEWAY_102_401.getMessage(),
CustomErrorCode.OS_API_GATEWAY_102_401
);
}

public UnauthorizedException insufficientPrivileges(){
public UnauthorizedException insufficientPrivileges() {

return new UnauthorizedException(
CustomErrorCode.OS_API_GATEWAY_103_401.getMessage(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public ConfirmationTokenException emailConfirmed() {
);
}

public ConfirmationTokenException notFound(){
public ConfirmationTokenException notFound() {

return new ConfirmationTokenException(
CustomErrorCode.OS_AUTH_203_404.getMessage(),
Expand Down
2 changes: 1 addition & 1 deletion common/src/main/java/com/ryazancev/common/dto/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ default <T> T safelyCast(Class<T> targetType, boolean throwException) {
if (throwException) {
throw new ServiceUnavailableException(
((Fallback) this).getMessage(),
HttpStatus.SERVICE_UNAVAILABLE);
HttpStatus.SERVICE_UNAVAILABLE.name());
} else {
String message = "SERVICE_UNAVAILABLE";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public class CustomExceptionFactory {

public static LogoUploadException getLogoUpload(){
public static LogoUploadException getLogoUpload() {

return new LogoUploadException();
}
Expand Down
2 changes: 1 addition & 1 deletion logo/src/main/resources/messages/messages.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
OS-LOGO-101-400=Logo upload failed: {0}
OS-LOGO-102-400=Logo must have name
OS-LOGO-INTERNAL-500=Internal: {0}
OS-LOGO-INTERNAL-500=Internal: {0}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
public enum CustomErrorCode {
OS_NOTIFICATION_101_404("OS-NOTIFICATION-101-404"),
OS_NOTIFICATION_201_400("OS-NOTIFICATION-201-400"),
OS_NOTIFICATION_SERVICE_UNAVAILABLE_503
("OS-NOTIFICATION-SERVICE_UNAVAILABLE-503"),
OS_NOTIFICATION_SERVICE_UNAVAILABLE_503(
"OS-NOTIFICATION-SERVICE_UNAVAILABLE-503"),
OS_NOTIFICATION_INTERNAL_500("OS-NOTIFICATION-INTERNAL-500");

@Setter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public enum CustomErrorCode {
OS_ORGANIZATION_201_400("OS-ORGANIZATION-201-400"),
OS_ORGANIZATION_202_400("OS-ORGANIZATION-202-400"),
OS_ORGANIZATION_301_404("OS-ORGANIZATION-301-404"),
OS_ORGANIZATION_SERVICE_UNAVAILABLE_503
("OS-ORGANIZATION-SERVICE_UNAVAILABLE-503"),
OS_ORGANIZATION_SERVICE_UNAVAILABLE_503(
"OS-ORGANIZATION-SERVICE_UNAVAILABLE-503"),
OS_ORGANIZATION_SECURITY("OS-ORGANIZATION-SECURITY"),
OS_ORGANIZATION_INTERNAL_500("OS-ORGANIZATION-INTERNAL-500");

Expand Down

0 comments on commit 1fa483a

Please sign in to comment.