Improved: Corrected some spacing issues in code, where there are extra white spaces, this will fix some checkstyle issues in framework component.
(OFBIZ-12022)
This commit is contained in:
+2
-2
@@ -29,7 +29,7 @@ public class BooleanConverters implements ConverterLoader {
|
||||
|
||||
@Override
|
||||
public Integer convert(Boolean obj) throws ConversionException {
|
||||
return obj ? 1 : 0;
|
||||
return obj ? 1 : 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ public class BooleanConverters implements ConverterLoader {
|
||||
|
||||
@Override
|
||||
public Boolean convert(Integer obj) throws ConversionException {
|
||||
return obj == 0 ? false : true;
|
||||
return obj == 0 ? false : true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -41,10 +41,10 @@ public class CollectionConverters implements ConverterLoader {
|
||||
@Override
|
||||
public <S, T> Converter<S, T> createConverter(Class<S> sourceClass, Class<T> targetClass) {
|
||||
if (!sourceClass.isArray()) {
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
if (targetClass != List.class) {
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
if (sourceClass.getComponentType() == null) {
|
||||
return null;
|
||||
|
||||
@@ -208,7 +208,7 @@ public class MiscConverters implements ConverterLoader {
|
||||
|
||||
@Override
|
||||
public String convert(Locale obj) throws ConversionException {
|
||||
return obj.toString();
|
||||
return obj.toString();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -494,7 +494,7 @@ public final class UtilXml {
|
||||
try {
|
||||
Node node = (Node) getProperty("http://apache.org/xml/properties/dom/current-element-node");
|
||||
if (node != null) {
|
||||
setLineColumn(node.getLastChild());
|
||||
setLineColumn(node.getLastChild());
|
||||
}
|
||||
} catch (SAXException ex) {
|
||||
Debug.logWarning(ex, MODULE);
|
||||
|
||||
@@ -60,7 +60,7 @@ public final class StatusWorker {
|
||||
List<GenericValue> statusItems = new LinkedList<>();
|
||||
|
||||
try {
|
||||
List<GenericValue> calItems = EntityQuery.use(delegator)
|
||||
List<GenericValue> calItems = EntityQuery.use(delegator)
|
||||
.from("StatusItem")
|
||||
.where("statusTypeId", statusTypeIdOne)
|
||||
.orderBy("sequenceId")
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ public final class MapToMap extends MethodOperation {
|
||||
toMap = new HashMap<>();
|
||||
toMapFma.put(methodContext.getEnvMap(), toMap);
|
||||
}
|
||||
toMap.putAll(fromMap);
|
||||
toMap.putAll(fromMap);
|
||||
} else {
|
||||
methodContext.putAllEnv(fromMap);
|
||||
}
|
||||
|
||||
+1
-1
@@ -67,6 +67,6 @@ public final class StartupService {
|
||||
}
|
||||
|
||||
public int getRuntimeDelay() {
|
||||
return runtimeDelay;
|
||||
return runtimeDelay;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -164,7 +164,7 @@ public class ExternalLoginKeysManager {
|
||||
* @return indicator
|
||||
*/
|
||||
private static boolean isAjax(HttpServletRequest request) {
|
||||
return "XMLHttpRequest".equals(request.getHeader("X-Requested-With"));
|
||||
return "XMLHttpRequest".equals(request.getHeader("X-Requested-With"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -441,7 +441,7 @@ public final class LoginWorker {
|
||||
boolean requirePasswordChange = "Y".equals(request.getParameter("requirePasswordChange"));
|
||||
if (!unpwErrMsgList.isEmpty()) {
|
||||
request.setAttribute("_ERROR_MESSAGE_LIST_", unpwErrMsgList);
|
||||
return requirePasswordChange ? "requirePasswordChange" : "error";
|
||||
return requirePasswordChange ? "requirePasswordChange" : "error";
|
||||
}
|
||||
|
||||
boolean setupNewDelegatorEtc = false;
|
||||
|
||||
+2
-2
@@ -58,7 +58,7 @@ public class OfbizContentTransform implements TemplateTransformModel {
|
||||
Debug.logError(e, "Template Exception", MODULE);
|
||||
}
|
||||
} else {
|
||||
result = obj.toString();
|
||||
result = obj.toString();
|
||||
}
|
||||
}
|
||||
return result;
|
||||
@@ -100,7 +100,7 @@ public class OfbizContentTransform implements TemplateTransformModel {
|
||||
StringBuilder newURL = new StringBuilder();
|
||||
ContentUrlTag.appendContentPrefix(request, newURL);
|
||||
if ((newURL.length() > 0 && newURL.charAt(newURL.length() - 1) != '/')
|
||||
&& (!requestUrl.isEmpty() && requestUrl.charAt(0) != '/')) {
|
||||
&& (!requestUrl.isEmpty() && requestUrl.charAt(0) != '/')) {
|
||||
newURL.append('/');
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ public class OfbizUrlTransform implements TemplateTransformModel {
|
||||
String result = "";
|
||||
if (o != null) {
|
||||
if (Debug.verboseOn()) {
|
||||
Debug.logVerbose("Arg Object : " + o.getClass().getName(), MODULE);
|
||||
Debug.logVerbose("Arg Object : " + o.getClass().getName(), MODULE);
|
||||
}
|
||||
if (o instanceof TemplateScalarModel) {
|
||||
TemplateScalarModel s = (TemplateScalarModel) o;
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ import freemarker.template.TemplateTransformModel;
|
||||
/**
|
||||
* RenderWrappedTextTransform - Freemarker Transform for URLs (links)
|
||||
*/
|
||||
public class RenderWrappedTextTransform implements TemplateTransformModel {
|
||||
public class RenderWrappedTextTransform implements TemplateTransformModel {
|
||||
|
||||
private static final String MODULE = RenderWrappedTextTransform.class.getName();
|
||||
|
||||
|
||||
@@ -758,7 +758,7 @@ public class FormRenderer {
|
||||
}
|
||||
|
||||
if (Debug.verboseOn()) {
|
||||
Debug.logVerbose("In form got another row, context is: " + localContext, MODULE);
|
||||
Debug.logVerbose("In form got another row, context is: " + localContext, MODULE);
|
||||
}
|
||||
|
||||
List<ModelFormField> tempFieldList = modelForm.getFieldList().stream()
|
||||
|
||||
@@ -184,7 +184,7 @@ public final class Paginator {
|
||||
Object obj = context.get(lookupName);
|
||||
if (obj == null) {
|
||||
if (Debug.verboseOn()) {
|
||||
Debug.logVerbose("No object for list or iterator name [" + lookupName + "] found, so not running pagination.", MODULE);
|
||||
Debug.logVerbose("No object for list or iterator name [" + lookupName + "] found, so not running pagination.", MODULE);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
+1
-1
@@ -325,7 +325,7 @@ public class MacroTreeRenderer implements TreeStringRenderer {
|
||||
} else {
|
||||
urlString = src;
|
||||
}
|
||||
} else if (urlMode != null && "content".equalsIgnoreCase(urlMode)) {
|
||||
} else if (urlMode != null && "content".equalsIgnoreCase(urlMode)) {
|
||||
if (request != null && response != null) {
|
||||
StringBuilder newURL = new StringBuilder();
|
||||
ContentUrlTag.appendContentPrefix(request, newURL);
|
||||
|
||||
Reference in New Issue
Block a user