Skip to content
Permalink
Browse files
Improved: Don't log warning when ObjectType converts from String to
String

(OFBIZ-10710)

Thanks: Benjamin Jugl for report and patch.
  • Loading branch information
danwatford committed Jan 14, 2021
1 parent 406f51d commit c4d8f90
Showing 1 changed file with 3 additions and 1 deletion.
@@ -355,7 +355,9 @@ public static Object simpleTypeOrObjectConvert(Object obj, String type, String f
}
// we can pretty much always do a conversion to a String, so do that here
if (targetClass.equals(String.class)) {
Debug.logWarning("No special conversion available for " + obj.getClass().getName() + " to String, returning object.toString().", MODULE);
if (Debug.infoOn()) {
Debug.logInfo("No special conversion required for " + obj.getClass().getName() + " to String, returning object.toString().", MODULE);
}
return obj.toString();
}
if (noTypeFail) {

0 comments on commit c4d8f90

Please sign in to comment.