From 80a9db1f251c97323cfcb2d8879f052b3c4f5f1a Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 8 May 2022 17:56:59 +0200 Subject: [PATCH] [DEV] remove unneeded logs --- .../exml/builder/BuilderIntrospection.java | 2 +- .../exml/builder/IntrospectionModelComplex.java | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/org/atriasoft/exml/builder/BuilderIntrospection.java b/src/org/atriasoft/exml/builder/BuilderIntrospection.java index 54e7e45..56fd11f 100644 --- a/src/org/atriasoft/exml/builder/BuilderIntrospection.java +++ b/src/org/atriasoft/exml/builder/BuilderIntrospection.java @@ -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; } diff --git a/src/org/atriasoft/exml/builder/IntrospectionModelComplex.java b/src/org/atriasoft/exml/builder/IntrospectionModelComplex.java index b73f666..6143cc7 100644 --- a/src/org/atriasoft/exml/builder/IntrospectionModelComplex.java +++ b/src/org/atriasoft/exml/builder/IntrospectionModelComplex.java @@ -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();