I am using the google java style in the checkstyle plugin for eclipse luna. Seeing this error all over my java doc but cannot seem to find how to resolve it. It's minor but its bugging me.
my javadoc:
/**
* This is a description of something
*
* @throws Exception
*/
Error is on the @throws line, Error:
At-clause should have a non-empty description
Typically, you should write
* @throws Exception when this exceptional condition happens
e.g.
* @throws IllegalArgumentException when num is negative
...and generally explaining why that exception would occur.
This is the generic message shown for every parameters in doc starting with '@'. So for every param you need to add some description.
For example:
/**
* Searches for top cars
* @param carSearchRequest represents CarSearchRequest body
* @param userId represents userid
* @return CarsResponse
* @throws Exception when userid is null
*/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With