Home | Back to JStyle

Java Code Review Using JStyleTM

SAMPLE CODE
HOME
PRODUCTS
CLIENTS
TECHNICAL PUBLICATIONS
WHITE PAPERS
ONSITE SEMINARS
CONTACT US
RESELLERS

Do You Find Any Problem With The Following Code?

final class DemoJStyle {   
  private final int value = 98;   
  protected final int value2 = 66;
  private double i;   
  public void DemoJStyle() {   
    i = 23.45 * value;   
    System.out.println(i);
  }   
  public void gg() {   
    i = 1.9 * value2;   
    System.out.println(i);   
  }   
  public class Inner {   
    private int v = 8;   
    void ff() {   
     System.out.println("DemoJStyle.Inner" + v);   
    }   
  }   
}

Unleash JStyle on this code and you will be amazed at the analysis.
 
   Do not release your application without approval from JStyle!!


All product names referenced are trademarks of their respective companies.
This site is copyright 1997-2009 Man Machine Systems
Materials found in this site may not be copied and reproduced without prior permission.
This page updated on 12 November, 2009 12:50:35

Home | Back to JStyle