Skip to content

Commit 554856a

Browse files
jdohertyjeromevdl
authored andcommitted
correcting spelling mistake
1 parent 217cb13 commit 554856a

File tree

1 file changed

+3
-3
lines changed
  • powertools-tracing/src/main/java/software/amazon/lambda/powertools/tracing

1 file changed

+3
-3
lines changed

powertools-tracing/src/main/java/software/amazon/lambda/powertools/tracing/TracingUtils.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public final class TracingUtils {
3939
* @param value the value of the annotation
4040
*/
4141
public static void putAnnotation(String key, String value) {
42-
if (!isValidateAnnotationKey(key)) {
42+
if (!isValidAnnotationKey(key)) {
4343
LOG.warn("Ignoring annotation with unsupported characters in key: {}", key);
4444
return;
4545
}
@@ -54,7 +54,7 @@ public static void putAnnotation(String key, String value) {
5454
* @param value the value of the annotation
5555
*/
5656
public static void putAnnotation(String key, Number value) {
57-
if (!isValidateAnnotationKey(key)) {
57+
if (!isValidAnnotationKey(key)) {
5858
LOG.warn("Ignoring annotation with unsupported characters in key: {}", key);
5959
return;
6060
}
@@ -68,7 +68,7 @@ public static void putAnnotation(String key, Number value) {
6868
6969
Annotation keys that are added that are invalid are ignored by x-ray.
7070
**/
71-
private static boolean isValidateAnnotationKey(String key) {
71+
private static boolean isValidAnnotationKey(String key) {
7272
return key.matches("^[a-zA-Z0-9_]+$");
7373
}
7474

0 commit comments

Comments
 (0)