java - no variables in the documentation for class -


i've got simple class

import java.io.printstream; /** * calculate roots of polynom ax^2 + bx + c = 0 * @author xxxx aka xxx * @version 1.0 17.04.2013 */ public class lab1_1 {  /**  * quadratic coefficient  */ private float a; /**  * linear coefficient  */ private float b; /**  * free term  */ private float c;  /** * * constructor lab1_1 * * @param {@link lab1_1#a} * @param b {@link lab1_1#b} * @param c {@link lab1_1#c} */ public lab1_1(float a, float b, float c) {     this.a = a;     this.b = b;     this.c = c; }  /** * calculate roots of quadratic equation * * @return returns string representation of roots of polynom * @throws arithmeticexception in case of complex number result */ public string calculate() {     float discriminant = b * b - 4 * * c;     if (discriminant > 0) {         double result1 = (-b + math.sqrt(discriminant)) / (2 * a);         double result2 = (-b - math.sqrt(discriminant)) / (2 * a);         return "x1 = " + result1 + ";" + "x2 = " + result2;     } else if (discriminant == 0) {          double result = -b / (2 * a);         return "x1 = " + result + ";" + "x2 = " + result;     } else throw new arithmeticexception("discriminant less zero! result complex number!");  }  public static void main(string[] args) {     try{         if (args.length < 3) {             new printstream(system.out, true, "utf-8").println("number of input arguments less 3");             return;         }         try{             new printstream(system.out, true, "utf-8").                 println(                     new lab1_1(float.parsefloat(args[0]),float.parsefloat(args[1]),float.parsefloat(args[2])).                     calculate());         }catch(arithmeticexception e) {              system.out.println(e.getmessage());          }     }     catch(exception e) { e.printstacktrace(); } } } 

but when generate documentation javadoc -d c:\mypath\home\html lab1_1.java in file lab1_1 html there no variables fields. enter image description here

what wrong in comments?

javadoc default ignore private fields , methods. make generate documentation pass -private argument on command line. see java javadoc include private


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -