Community
Participate
Working Groups
Suppose I have the following method: public void addBook() { getBookFacade().addBook(getCode(), getBookSale()); } Suppose that I feel necessary to write some log statements: public void addBook() { if (log.isDebugEnabled()) { log.debug("Adding book with code=[" + getCode() + "] to bookSale=[" + getBookSale() + "]..."); } getBookFacade().addBook(getCode(), getBookSale()); if (log.isDebugEnabled()) { log.debug("Book added, bookSale=[" + getBookSale() + "]."); } } The code gets very polluted, and even this is not the best to way to be logging this information (aspects and etc could do better), is the one I know, and I think it is still the most popular way. If the statements concerning logs were shown in a lighter color, maybe gray (custom color...), the actual code, that is in black, should be more readable.
I'd prefer to fold those away. Please reopen if you think this isn't an even better solution than coloring. *** This bug has been marked as a duplicate of 63808 ***
Fold these statements is better than nothing, but I do prefer different colors. Should I post on the other bug (63808)?
>Should I post on the other bug (63808)? No, that bug has nothing to do with coloring.
Get rid of deprecated state.