Skip to content

Commit aacca6f

Browse files
committed
Uncofirmed cast fix
1 parent f43a150 commit aacca6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/metrics-spi/src/main/java/software/amazon/awssdk/metrics/internal/DefaultSdkMetric.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ private DefaultSdkMetric(String name, Class<T> clzz, Set<MetricCategory> categor
4040
super(clzz);
4141
this.name = Validate.notBlank(name, "name must not be blank");
4242
this.clzz = Validate.notNull(clzz, "clzz must not be null");
43-
this.categories = Validate.notEmpty(EnumSet.copyOf(categories), "categories must not be empty");
43+
Validate.notEmpty(categories, "categories must not be empty");
44+
this.categories = EnumSet.copyOf(categories);
4445
}
4546

4647
/**

0 commit comments

Comments
 (0)