if (image == null) {
return null;
}
- String imageClass = String.valueOf(parameters.get("class"));
+ String imageClass = valueOf(parameters.get("class"));
int maxWidth = parseInt(valueOf(parameters.get("max-width")), MAX_VALUE);
int maxHeight = parseInt(valueOf(parameters.get("max-height")), MAX_VALUE);
- String mode = String.valueOf(parameters.get("mode"));
- String title = String.valueOf(parameters.get("title"));
+ String mode = valueOf(parameters.get("mode"));
+ String title = valueOf(parameters.get("title"));
TemplateContext linkTemplateContext = templateContextFactory.createTemplateContext();
linkTemplateContext.set("class", imageClass);
*/
@Override
public Object format(TemplateContext templateContext, Object data, Map<String, Object> parameters) {
- String text = String.valueOf(data);
+ String text = valueOf(data);
int length = parseInt(valueOf(parameters.get("length")), -1);
int cutOffLength = parseInt(valueOf(parameters.get("cut-off-length")), length);
Object sone = parameters.get("sone");