[DEV] remove unneeded logs

This commit is contained in:
Edouard DUPIN 2022-05-08 17:56:59 +02:00
parent 1812bfccf1
commit 80a9db1f25
2 changed files with 9 additions and 9 deletions

View File

@ -36,7 +36,7 @@ public class BuilderIntrospection implements Builder {
@Override
public void endElement(final Object element) throws ExmlBuilderException {
Log.error("End of Element: {}", element);
Log.verbose("End of Element: {}", element);
if (element == null) {
return;
}

View File

@ -54,19 +54,19 @@ public class IntrospectionModelComplex extends IntrospectionModel {
// ------------------------------------------------------------------------
// -- Parse constructor
// ------------------------------------------------------------------------
Log.error("Introspect class: '" + classType.getCanonicalName() + "'");
Log.verbose("Introspect class: '" + classType.getCanonicalName() + "'");
final Constructor<?>[] constructors = this.classType.getConstructors();
Log.verbose(" Constructors: (" + constructors.length + ")");
Constructor<?> emptyConstructorTmp = null;
for (final Constructor<?> elem : constructors) {
Log.error(" Constructor ??? : {}", elem.toGenericString());
Log.verbose(" Constructor ??? : {}", elem.toGenericString());
// we does not manage private field
if (!Modifier.isPublic(elem.getModifiers())) {
continue;
}
if (elem.getParameterCount() == 0) {
emptyConstructorTmp = elem;
Log.error(" >>> " + elem.toGenericString());
Log.verbose(" >>> " + elem.toGenericString());
} else {
int offsetSubClass = 0;
if (this.isSubClass) {
@ -74,7 +74,7 @@ public class IntrospectionModelComplex extends IntrospectionModel {
}
if (elem.getParameterCount() == 1 && offsetSubClass == 1) {
emptyConstructorTmp = elem;
Log.error(" >>> " + elem.toGenericString());
Log.verbose(" >>> " + elem.toGenericString());
} else {
// Retrieve full description in constructor properties...
String[] namesBeans = ReflectTools.getNames(elem, null);
@ -176,7 +176,7 @@ public class IntrospectionModelComplex extends IntrospectionModel {
}
}
this.constructorEmpty = emptyConstructorTmp;
Log.error(" ==> constructor = {}", this.constructorEmpty);
Log.verbose(" ==> constructor = {}", this.constructorEmpty);
// Order the constructor from the bigger number of element to the lowest...
Collections.sort(this.constructors, (a, b) -> a.values().length - b.values().length);
for (final ConstructorModel elem : this.constructors) {
@ -538,8 +538,8 @@ public class IntrospectionModelComplex extends IntrospectionModel {
throw new ExmlBuilderException("No constructor accessible for class: " + this.classType.getCanonicalName());
}
try {
Log.error("create class : {} with subClass={}", this.classType.getCanonicalName(), this.isSubClass);
Log.error(" ==> constructor = {}", this.constructorEmpty);
Log.verbose("create class : {} with subClass={}", this.classType.getCanonicalName(), this.isSubClass);
Log.verbose(" ==> constructor = {}", this.constructorEmpty);
if (this.isSubClass) {
final Object tmp2 = null;
tmp = this.constructorEmpty.newInstance(tmp2);
@ -841,7 +841,7 @@ public class IntrospectionModelComplex extends IntrospectionModel {
@Override
public boolean hasTextModel() {
Log.warning("in {}", this.classType.getCanonicalName());
Log.verbose("in {}", this.classType.getCanonicalName());
for (final IntrospectionProperty prop : this.elements) {
Log.warning(" check {}, manage={} cas setValue={} isText={}", prop.getBeanName(), prop.isManaged(), prop.canSetValue(), prop.isText());
final Boolean isText = prop.isText();