Skip to content

Commit b18ba2a

Browse files
authored
Fix incomplete sentence in validation msg (#6675)
* Fix incomplete sentence in validation msg * Don't suggest underscoresInNameBehavior We want to discourage this use. * Review comments * Fix compile issue
1 parent 9cc8252 commit b18ba2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

codegen/src/main/java/software/amazon/awssdk/codegen/naming/DefaultNamingStrategy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,8 @@ private void validateCustomerVisibleName(String name, String location) {
507507
ValidationErrorSeverity.DANGER,
508508
String.format(
509509
"Encountered a name or identifier that the customer will see (%s in the %s) with an underscore. "
510-
+ "This isn't idiomatic in Java. Please either remove the underscores",
511-
name, location, supportedBehaviors)
510+
+ "This isn't idiomatic in Java. Please remove the underscores.",
511+
name, location)
512512
));
513513
}
514514
if (behavior != UnderscoresInNameBehavior.ALLOW) {

0 commit comments

Comments
 (0)