diff options
author | William Reehil <william.reehil@att.com> | 2022-11-15 14:32:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-11-15 14:32:02 +0000 |
commit | 24c274fd267d1eea33a1c47eba3aa01a5be1c442 (patch) | |
tree | 31fbaf516f5c35308bdb52f3bcc7281926817059 /aai-resources/src/main | |
parent | 31ab53b6ad8a4bc0a0405d0c8193e7d59c01b98d (diff) | |
parent | 96e5984c8132e1c0623e7dc8f38dac951fa0c42d (diff) |
Merge "Remove raw-type related warnings in resources"
Diffstat (limited to 'aai-resources/src/main')
-rw-r--r-- | aai-resources/src/main/java/org/onap/aai/web/JerseyConfiguration.java | 2 | ||||
-rw-r--r-- | aai-resources/src/main/java/org/onap/aai/web/MicrometerConfiguration.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/aai-resources/src/main/java/org/onap/aai/web/JerseyConfiguration.java b/aai-resources/src/main/java/org/onap/aai/web/JerseyConfiguration.java index c1dc10e..c22832c 100644 --- a/aai-resources/src/main/java/org/onap/aai/web/JerseyConfiguration.java +++ b/aai-resources/src/main/java/org/onap/aai/web/JerseyConfiguration.java @@ -106,7 +106,7 @@ public class JerseyConfiguration { } private <T> void throwIfPriorityAnnotationAbsent(Collection<Class<? extends T>> classes) { - for (Class clazz : classes) { + for (Class<? extends T> clazz : classes) { if (!clazz.isAnnotationPresent(Priority.class)) { throw new MissingFilterPriorityException(clazz); } diff --git a/aai-resources/src/main/java/org/onap/aai/web/MicrometerConfiguration.java b/aai-resources/src/main/java/org/onap/aai/web/MicrometerConfiguration.java index e41e6d0..a701a20 100644 --- a/aai-resources/src/main/java/org/onap/aai/web/MicrometerConfiguration.java +++ b/aai-resources/src/main/java/org/onap/aai/web/MicrometerConfiguration.java @@ -44,7 +44,7 @@ public class MicrometerConfiguration { public JerseyTagsProvider jerseyTagsProvider() { return new JerseyTagsProvider() { @Override - public Iterable httpRequestTags(RequestEvent event) { + public Iterable<Tag> httpRequestTags(RequestEvent event) { ContainerResponse response = event.getContainerResponse(); return Tags.of(JerseyTags.method(event.getContainerRequest()), JerseyTags.exception(event), JerseyTags.status(response), JerseyTags.outcome(response), getAaiUriTag(event)); |