it didn't like default as part of a case, so, moved

This commit is contained in:
2025-04-01 16:52:35 -05:00
parent aca8436c56
commit 942134b4b0

View File

@ -90,11 +90,15 @@ 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 ->
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);
}
default ->
{
throw new IllegalStateException("Unexpected value: " + contentTypeStrategy);
}
}
}