mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Upgrade checkstyle; remove supressed indentation markers for new-style switches
This commit is contained in:
@ -1027,7 +1027,6 @@ public class GenerateOpenApiSpecAction extends AbstractQActionFunction<GenerateO
|
||||
responses.putAll(buildStandardErrorResponses(apiInstanceMetaData));
|
||||
methodForProcess.withResponses(responses);
|
||||
|
||||
@SuppressWarnings("checkstyle:indentation")
|
||||
Path path = switch(apiProcessMetaData.getMethod())
|
||||
{
|
||||
case GET -> new Path().withGet(methodForProcess);
|
||||
@ -1555,7 +1554,6 @@ public class GenerateOpenApiSpecAction extends AbstractQActionFunction<GenerateO
|
||||
/*******************************************************************************
|
||||
**
|
||||
*******************************************************************************/
|
||||
@SuppressWarnings("checkstyle:indentation")
|
||||
private Response buildMultiStatusResponse(String tableLabel, String primaryKeyApiName, QFieldMetaData primaryKeyField, String method)
|
||||
{
|
||||
List<Object> example = switch(method.toLowerCase())
|
||||
@ -1713,7 +1711,6 @@ public class GenerateOpenApiSpecAction extends AbstractQActionFunction<GenerateO
|
||||
/*******************************************************************************
|
||||
**
|
||||
*******************************************************************************/
|
||||
@SuppressWarnings("checkstyle:indentation")
|
||||
private static String getFieldType(QFieldType type)
|
||||
{
|
||||
return switch(type)
|
||||
@ -1740,7 +1737,6 @@ public class GenerateOpenApiSpecAction extends AbstractQActionFunction<GenerateO
|
||||
/*******************************************************************************
|
||||
**
|
||||
*******************************************************************************/
|
||||
@SuppressWarnings("checkstyle:indentation")
|
||||
private String getFieldFormat(QFieldType type)
|
||||
{
|
||||
return switch(type)
|
||||
|
@ -298,7 +298,6 @@ public class QJavalinApiHandler
|
||||
/*******************************************************************************
|
||||
**
|
||||
*******************************************************************************/
|
||||
@SuppressWarnings("checkstyle:indentation")
|
||||
private void runProcess(Context context, QProcessMetaData processMetaData, ApiProcessMetaData apiProcessMetaData, ApiInstanceMetaData apiInstanceMetaData)
|
||||
{
|
||||
String version = context.pathParam("version");
|
||||
|
@ -233,7 +233,6 @@ public class ApiProcessSummaryListOutput implements ApiProcessOutputInterface
|
||||
*******************************************************************************/
|
||||
private static String getResultMapMessagePrefix(ProcessSummaryLineInterface processSummaryLine)
|
||||
{
|
||||
@SuppressWarnings("checkstyle:indentation")
|
||||
String messagePrefix = switch(processSummaryLine.getStatus())
|
||||
{
|
||||
case OK, INFO, ERROR -> "";
|
||||
@ -251,7 +250,6 @@ public class ApiProcessSummaryListOutput implements ApiProcessOutputInterface
|
||||
{
|
||||
HashMap<String, Serializable> map = new HashMap<>();
|
||||
|
||||
@SuppressWarnings("checkstyle:indentation")
|
||||
HttpStatus.Code code = switch(processSummaryLine.getStatus())
|
||||
{
|
||||
case OK, WARNING, INFO -> HttpStatus.Code.OK;
|
||||
|
Reference in New Issue
Block a user