removed recursive call in paint

added scroll panes without relative position
This commit is contained in:
Macocian Adrian Radu
2020-03-31 20:36:08 +03:00
parent 62f3d8d46c
commit eb4ce47a5c
17 changed files with 306 additions and 204 deletions

View File

@@ -94,16 +94,18 @@ public class XAMLParser {
}
for(Method method: methods){
Class<?>[] types = method.getParameterTypes();
for(int i = 0; i < types.length; i++){
try{
primitiveAttributes.add(valueConverter.objectCreatorFactory(types[i], values.get(i)));
} catch (InvalidTypeException | NumberFormatException e){
primitiveAttributes.clear();
break;
if(types.length == values.size()) {
for (int i = 0; i < types.length; i++) {
try {
primitiveAttributes.add(valueConverter.objectCreatorFactory(types[i], values.get(i)));
} catch (InvalidTypeException | NumberFormatException e) {
primitiveAttributes.clear();
break;
}
}
if (primitiveAttributes.size() == types.length && types.length == values.size()) {
return primitiveAttributes;
}
}
if(primitiveAttributes.size() == types.length && types.length == values.size()){
return primitiveAttributes;
}
}
System.err.println("Could not find method " + methodName + " with parameters " + values);