Compare commits

3 Commits

Author SHA1 Message Date
d76db0ba61 bump Minor version
All checks were successful
Publish / Gradle-Publish (push) Successful in 12s
Build / Gradle-Build (push) Successful in 9s
Test / Gradle-Test (push) Successful in 12s
2025-04-15 23:25:45 +02:00
8d24604707 feat(factory): add utility method which does the "unchecked" cast
All checks were successful
Build / Gradle-Build (push) Successful in 1m36s
Publish / Gradle-Publish (push) Successful in 10s
Test / Gradle-Test (push) Successful in 12s
2025-04-15 11:06:00 +02:00
28d991f17c fix(log): missing placeholder 2025-04-15 11:03:33 +02:00
3 changed files with 7 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ plugins {
allprojects {
group = "net.tomatentum.cutin"
version = "0.1.1" + (if (!project.hasProperty("release")) ("-" + getGitHash()) else "")
version = "0.2.0" + (if (!project.hasProperty("release")) ("-" + getGitHash()) else "")
description = "A lightweight Reflection abstraction specifically but not exclusively made for tueem/Marinara."
plugins.withType<JavaPlugin> {
tasks.withType<Jar>().configureEach {

View File

@@ -31,5 +31,10 @@ public interface ReflectedMethodFactory<I extends Object, C extends Object> {
private ParserResults() {}
@SuppressWarnings("unchecked")
public <T extends Object> T get(Class<? extends MethodParser> key) {
return (T) super.get(key);
}
}
}

View File

@@ -37,7 +37,7 @@ public class ReflectedMethodFactoryImpl<I extends Object, C extends Object> impl
.findFirst();
if (rmethod.isEmpty())
logger.warn("Could not produce a ReflectedMethod for Method {} in ", ReflectionUtil.getFullMethodName(method), this);
logger.warn("Could not produce a ReflectedMethod for Method {} in {}", ReflectionUtil.getFullMethodName(method), this);
else
logger.debug("Produced {} for Method {} in {}", rmethod.get(), ReflectionUtil.getFullMethodName(method), this);