Checkstyle

This commit is contained in:
2025-04-01 16:45:25 -05:00
parent 94631585ee
commit aca8436c56

View File

@ -76,11 +76,6 @@ public class S3TableBackendDetails extends AbstractFilesystemTableBackendDetails
String prefix = "Table " + (table == null ? "null" : table.getName()) + " backend details - ";
switch (Objects.requireNonNullElse(contentTypeStrategy, ContentTypeStrategy.NONE))
{
case BASED_ON_FILE_NAME, NONE ->
{
qInstanceValidator.assertCondition(!StringUtils.hasContent(contentTypeFieldName), prefix + "contentTypeFieldName should not be set when contentTypeStrategy is " + contentTypeStrategy);
qInstanceValidator.assertCondition(!StringUtils.hasContent(hardcodedContentType), prefix + "hardcodedContentType should not be set when contentTypeStrategy is " + contentTypeStrategy);
}
case FROM_FIELD ->
{
qInstanceValidator.assertCondition(!StringUtils.hasContent(hardcodedContentType), prefix + "hardcodedContentType should not be set when contentTypeStrategy is " + contentTypeStrategy);
@ -95,6 +90,11 @@ public class S3TableBackendDetails extends AbstractFilesystemTableBackendDetails
qInstanceValidator.assertCondition(!StringUtils.hasContent(contentTypeFieldName), prefix + "contentTypeFieldName should not be set when contentTypeStrategy is " + contentTypeStrategy);
qInstanceValidator.assertCondition(StringUtils.hasContent(hardcodedContentType), prefix + "hardcodedContentType must be set when contentTypeStrategy is " + contentTypeStrategy);
}
case BASED_ON_FILE_NAME, NONE, default ->
{
qInstanceValidator.assertCondition(!StringUtils.hasContent(contentTypeFieldName), prefix + "contentTypeFieldName should not be set when contentTypeStrategy is " + contentTypeStrategy);
qInstanceValidator.assertCondition(!StringUtils.hasContent(hardcodedContentType), prefix + "hardcodedContentType should not be set when contentTypeStrategy is " + contentTypeStrategy);
}
}
}