\CodePro Analytix Evaluation\src\com\instantiations\example\customer\CustomerFactory.java
Violations: 0 high, 8 medium, 1 low
 
Violations
Missing file comment Invalid string literal: "12345"
Missing @version tag for type CustomerFactory Missing Javadoc comment for method "janeSmith"
toString() is missing Invalid string literal: "Jane Smith"
Missing Javadoc comment for method "johnDoe" Invalid string literal: "98765"
Invalid string literal: "John Doe"    
 
Source
1 package com.instantiations.example.customer;
2
3 /**
4  * The class <code>CustomerFactory</code> is a factory class used to create
5  * instances of the class {@link Cusomer} for testing purposes.
6  * @author Chris Cummings
7  */
8 public class CustomerFactory
9 {
10    public static Customer johnDoe()
11    {
12       return new Customer("John Doe""12345");
13    }
14
15    public static Customer janeSmith()
16    {
17       return new Customer("Jane Smith""98765");
18    }
19 }
Powered by CodePro AnalytiX