sync with jwo

This commit is contained in:
2021-09-11 20:57:13 +02:00
parent 1ee13b7987
commit b55b1ab22e
2 changed files with 4 additions and 4 deletions

View File

@@ -7,10 +7,10 @@ plugins {
group = "net.woggioni"
repositories {
mavenCentral()
maven {
url = 'https://mvn.woggioni.net/'
url = 'https://woggioni.net/mvn'
}
mavenCentral()
}
lombok {

View File

@@ -156,7 +156,7 @@ public class BeanContainer {
strictName = false;
}
}
return new Tuple2<>(new BeanSpec(parameter.getType(), name, extractQualifiers(parameter)), strictName);
return Tuple2.newInstance(new BeanSpec(parameter.getType(), name, extractQualifiers(parameter)), strictName);
}
@SneakyThrows
@@ -201,7 +201,7 @@ public class BeanContainer {
List<Object> executableParameters = new ArrayList<>();
for(Parameter parameter : executable.getParameters()) {
Tuple2<BeanSpec, Boolean> tuple = analyzeInjectionPoint(parameter);
executableParameters.add(getBean(singletonCache, bom, tuple._1, tuple._2));
executableParameters.add(getBean(singletonCache, bom, tuple.get_1(), tuple.get_2()));
}
if(executable instanceof Constructor) {
result = ((Constructor<?>) executable).newInstance(executableParameters.toArray());