Skip to content

Commit

Permalink
fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Oct 11, 2023
1 parent 1eafbf0 commit 27a281e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/
package io.wcm.testing.mock.aem.context;

import java.lang.reflect.Method;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
Expand All @@ -42,7 +43,7 @@ final class ResourceResolverFactoryConfigPropertyNames {
try {
Class<?> resourceResolverFactoryConfigClass = Class.forName(ResourceResolverFactoryConfig.class.getName());
Set<String> methodNames = Stream.of(resourceResolverFactoryConfigClass.getDeclaredMethods())
.map(method -> method.getName())
.map(Method::getName)
.collect(Collectors.toSet());
// use new names as fields do exist
if (methodNames.contains("resource_resolver_vanitypath_allowlist")
Expand Down

0 comments on commit 27a281e

Please sign in to comment.