We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69f0e20 commit a4613c0Copy full SHA for a4613c0
core/src/main/java/io/cloudevents/core/impl/BaseCloudEventBuilder.java
@@ -197,11 +197,11 @@ protected static IllegalStateException createMissingAttributeException(String at
197
* @see <a href="https://github.com/cloudevents/spec/blob/master/spec.md#attribute-naming-convention">attribute-naming-convention</a>
198
*/
199
private static boolean isValidExtensionName(String name) {
200
- char[] chars = name.toCharArray();
201
- for (char c : chars)
202
- if (!isValidChar(c)) {
+ for(int i = 0; i < name.length(); i++) {
+ if (!isValidChar(name.charAt(i))) {
203
return false;
204
}
+ }
205
return true;
206
207
0 commit comments