This one we found in production code. No comment, formatted by myself (it was not readable at all).
protected String createProductHeaderParagraph(Product product, Locale locale) { return subfill(product.getProductCategory().getShortDisplayText(locale), COL_1_WIDTH - 2) + ": " + subfill("Status: " + ProductSupport.getDetailedProductStateDesc(product, locale), COL_2_WIDTH) + subfill( "Zeit", COL_3_WIDTH - 2) + ": " + ((product.getBooking() != null) ? (DateUtils.dateString(locale, product.getBooking().getTimestamp()) + " " + DateUtils.timeString(locale, product.getBooking().getTimestamp())) : "") + CRLF + StringUtils.replicate('-', TOTAL_WIDTH) + CRLF; }
Log in to post a comment.
This one we found in production code.
No comment, formatted by myself (it was not readable at all).
protected String createProductHeaderParagraph(Product product, Locale locale) {
return
subfill(product.getProductCategory().getShortDisplayText(locale), COL_1_WIDTH - 2)
+ ": "
+ subfill("Status: " + ProductSupport.getDetailedProductStateDesc(product, locale), COL_2_WIDTH)
+ subfill(
"Zeit", COL_3_WIDTH - 2) + ": "
+ ((product.getBooking() != null)
? (DateUtils.dateString(locale, product.getBooking().getTimestamp())
+ " " + DateUtils.timeString(locale, product.getBooking().getTimestamp()))
: "")
+ CRLF + StringUtils.replicate('-', TOTAL_WIDTH) + CRLF;
}