Skip to content

Commit

Permalink
core: Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aldettinger committed Jul 4, 2022
1 parent eebdd34 commit ac5c8db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ CamelTypeConverterRegistryBuildItem typeConverterRegistry(
final ClassLoader TCCL = Thread.currentThread().getContextClassLoader();

for (ApplicationArchive archive : applicationArchives.getAllApplicationArchives()) {
for (Path root : archive.getRootDirs()) {
for (Path root : archive.getRootDirectories()) {
Path path = root.resolve(BaseTypeConverterRegistry.META_INF_SERVICES_TYPE_CONVERTER_LOADER);
if (!Files.isRegularFile(path)) {
continue;
Expand Down Expand Up @@ -275,7 +275,7 @@ CamelTypeConverterRegistryBuildItem typeConverterRegistry(
}
}

Set<Class> convertersClasses = index
Set<Class<?>> convertersClasses = index
.getAnnotations(DotName.createSimple(Converter.class.getName()))
.stream().filter(a -> a.target().kind() == AnnotationTarget.Kind.CLASS &&
(a.value("generateBulkLoader") == null || !a.value("generateBulkLoader").asBoolean()) &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void addTypeConverterLoader(RuntimeValue<TypeConverterRegistry> registry,
}
}

public void loadAnnotatedConverters(RuntimeValue<TypeConverterRegistry> registry, Set<Class> classes) {
public void loadAnnotatedConverters(RuntimeValue<TypeConverterRegistry> registry, Set<Class<?>> classes) {
StaticAnnotationTypeConverterLoader.getInstance().load(registry.getValue(), classes);
}

Expand Down Expand Up @@ -96,7 +96,7 @@ public void bind(
Class<?> type) {

try {
runtime.getValue().bind(name, type, type.newInstance());
runtime.getValue().bind(name, type, type.getDeclaredConstructor().newInstance());
} catch (Exception e) {
throw new RuntimeException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ private StaticAnnotationTypeConverterLoader() {
super(null);
}

public void load(TypeConverterRegistry registry, Set<Class> converterClasses) {
for (Class clazz : converterClasses) {
public void load(TypeConverterRegistry registry, Set<Class<?>> converterClasses) {
for (Class<?> clazz : converterClasses) {
loadConverterMethods(registry, clazz);
}
}
Expand Down

0 comments on commit ac5c8db

Please sign in to comment.