Javadoc Method not recognizing @throws / @param tags

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Javadoc Method not recognizing @throws / @param tags

sangeetha.saravanan

Hi,

 

We are facing a problem in the Javadoc Method.

 

We have enabled the Javadoc Method Check to check for the existence of @throws tag and @param tag for our code.  

 

/*

 * @throws IOException

 */

public void Test throws IOException{

- - -

- - -

- - -

}

 

 

/*

 * @param val

 */

public void add(int val){

- - -

- - -

- - -

}

 

In both the cases, we are getting exceptions stating that the tags are missing, though it is present.

 

Does anyone have any information about it?

 

 

 

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Javadoc Method not recognizing @throws / @param tags

Ganesan Jayaraman
You need to add definitions to @throws and @param tag.
 
eg,
 
@throws IOException IOException Thrown...
 
Hope it helps you.
 
ganesan

[hidden email] wrote:
Hi,
 
We are facing a problem in the Javadoc Method.
 
We have enabled the Javadoc Method Check to check for the existence of @throws tag and @param tag for our code.  
 
/*
 * @throws IOException
 */
public void Test throws IOException{
- - -
- - -
- - -
}
 
 
/*
 * @param val
 */
public void add(int val){
- - -
- - -
- - -
}
 
In both the cases, we are getting exceptions stating that the tags are missing, though it is present.
 
Does anyone have any information about it?
 
 
 
 
 


Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
Reply | Threaded
Open this post in threaded view
|

Re: Javadoc Method not recognizing @throws / @param tags

amontanor
This post has NOT been accepted by the mailing list yet.
Hi, I have other problem with this, for example:


/*
 * @throws IOException */
public void Test1 throws IOException{
- - -
- - -
}

/*
 * @throws IOException */
public void Test2 throws IOException{
- - -
- - -
}

/*
 * @throws IOException */
public void Test throws IOException{
- - -
- - -
}


In this case, i have 3 errors, but if I fix the second one:

/*
 * @throws IOException */
public void Test1 throws IOException{
- - -
- - -
}

/*
 * @throws IOException if aaaaaaaaaaaaaaaaa*/
public void Test2 throws IOException{
- - -
- - -
}

/*
 * @throws IOException */
public void Test throws IOException{
- - -
- - -
}


Now only the first one is grown...
Does anyone have any information about it?
Thank!