Improved: Checkstyle: Variable name must match pattern (OFBIZ-11926)

Better use Debug.logVerbose in place where I replaced missing expression with
another varation of Debug.log. We mainly don't need these information, it's only
for Checkstyle.

I thought did not replace cases where using another variation makes sense
This commit is contained in:
Jacques Le Roux
2020-09-21 10:45:03 +02:00
parent 814d95afc8
commit f1b88bd84b
6 changed files with 9 additions and 9 deletions
@@ -881,7 +881,7 @@ public class PayflowPro {
Object valueObj = context.get(name);
if (valueObj == null || (valueObj instanceof String) && ((String) valueObj).isEmpty()) {
Debug.logError("not valid; do nothing", MODULE);
Debug.logVerbose("not valid; do nothing", MODULE);
} else {
String value = valueObj.toString();
@@ -42,7 +42,7 @@ public class CartEventListener implements HttpSessionListener {
@Override
public void sessionCreated(HttpSessionEvent event) {
Debug.logInfo("Do nothing when the session is created.", MODULE);
Debug.logVerbose("Do nothing when the session is created.", MODULE);
}
@Override
@@ -50,7 +50,7 @@ public class CartEventListener implements HttpSessionListener {
HttpSession session = event.getSession();
ShoppingCart cart = (ShoppingCart) session.getAttribute("shoppingCart");
if (cart == null) {
Debug.logInfo("No cart to save, doing nothing.", MODULE);
Debug.logVerbose("No cart to save, doing nothing.", MODULE);
return;
}
@@ -70,11 +70,11 @@ public class CartEventListener implements HttpSessionListener {
GenericValue visit = VisitHandler.getVisit(session);
if (visit == null) {
Debug.logInfo("Could not get the current visit, not saving abandoned cart info.", MODULE);
Debug.logVerbose("Could not get the current visit, not saving abandoned cart info.", MODULE);
return;
}
Debug.logInfo("Saving abandoned cart", MODULE);
Debug.logVerbose("Saving abandoned cart", MODULE);
int seqId = 1;
for (ShoppingCartItem cartItem : cart) {
GenericValue cartAbandonedLine = delegator.makeValue("CartAbandonedLine");
@@ -477,7 +477,7 @@ public class ProductSearchSession {
} else if ("KOTT_OFBURL".equals(targetTypeEnumId)) {
target = rh.makeLink(request, response, target, false, false, false);
} else if ("KOTT_AURL".equals(targetTypeEnumId)) {
Debug.log("Do nothing, is absolute URL", MODULE);
Debug.logVerbose("Do nothing, is absolute URL", MODULE);
} else {
Debug.logError("The targetTypeEnumId[] is not recognized, not doing keyword override", MODULE);
// might as well see if there are any others...
@@ -212,7 +212,7 @@ public class ICalRecurConverter implements TemporalExpressionVisitor {
@Override
public void visit(Substitution expr) {
Debug.log("iCalendar format does not support substitutions. Do nothing for now", MODULE);
Debug.logVerbose("iCalendar format does not support substitutions. Do nothing for now", MODULE);
}
@Override
@@ -38,7 +38,7 @@ public class LoginEventListener implements HttpSessionListener {
public void sessionCreated(HttpSessionEvent event) {
//for this one do nothing when the session is created...
//HttpSession session = event.getSession();
Debug.log("do nothing, it's an ignored field; could add a comment or something if we wanted to", MODULE);
Debug.logVerbose("do nothing, it's an ignored field; could add a comment or something if we wanted to", MODULE);
}
@@ -1328,7 +1328,7 @@ public final class MacroFormRenderer implements FormStringRenderer {
@Override
public void renderIgnoredField(Appendable writer, Map<String, Object> context, IgnoredField ignoredField) {
// do nothing, it's an ignored field; could add a comment or something if we wanted to
Debug.logError("do nothing, it's an ignored field; could add a comment or something if we wanted to", MODULE);
Debug.logVerbose("do nothing, it's an ignored field; could add a comment or something if we wanted to", MODULE);
}