Skip to content

Commit

Permalink
Fix COMPACT_NO_ARRAY checkstyle failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr committed Dec 31, 2023
1 parent 8c3e5ec commit c19c40b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
import static io.trino.gateway.ha.router.ResourceGroupsManager.ResourceGroupsDetail;
import static io.trino.gateway.ha.router.ResourceGroupsManager.SelectorsDetail;

@SuppressWarnings("checkstyle:AnnotationUseStyle")
@RolesAllowed({"ADMIN"})
@RolesAllowed("ADMIN")
@Path("entity")
public class EntityEditorResource
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@SuppressWarnings("checkstyle:AnnotationUseStyle")
@RolesAllowed({"API"})
@RolesAllowed("API")
@Path("/gateway")
@Produces(MediaType.APPLICATION_JSON)
public class GatewayResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
import java.util.Optional;
import java.util.stream.Collectors;

@SuppressWarnings("checkstyle:AnnotationUseStyle")
@RolesAllowed({"USER"})
@RolesAllowed("USER")
@Path("/")
public class GatewayViewResource
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response;

@SuppressWarnings("checkstyle:AnnotationUseStyle")
@RolesAllowed({"API"})
@RolesAllowed("API")
@Path("gateway/backend/modify")
@Produces(MediaType.APPLICATION_JSON)
public class HaGatewayResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
import static io.trino.gateway.ha.router.ResourceGroupsManager.ResourceGroupsDetail;
import static io.trino.gateway.ha.router.ResourceGroupsManager.SelectorsDetail;

@SuppressWarnings("checkstyle:AnnotationUseStyle")
@RolesAllowed({"USER"})
@RolesAllowed("USER")
@Path("/trino")
@Produces(MediaType.APPLICATION_JSON)
public class TrinoResource
Expand Down

0 comments on commit c19c40b

Please sign in to comment.