In most rules, the problematic code has been highlighted in red, with the key elements to concentrate on in bold.

// this is a problem because it is in red

There will usually be a description explaining the example followed by some better code in blue.

// this is better because it is in blue

Where code not directly relevant to the example has been removed, it has been replaced with a ':' character.  The code equivalent of “blah blah blah”.

In the below class definition, the entire lower portion of the class definition (where the methods are) has been removed from where the ':' character is.

public class InputFieldRenderInfo
{
    public String fieldName;
    public String style;
    public boolean readOnly = false;

    :  <= Unimportant code removed here
 
 }
blog comments powered by Disqus