[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 @Override
public void endElement(final Object element) throws ExmlBuilderException { public void endElement(final Object element) throws ExmlBuilderException {
Log.error("End of Element: {}", element); Log.verbose("End of Element: {}", element);
if (element == null) { if (element == null) {
return; return;
} }

View File

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