everyone. I have a rookie question about the returning value in java. Here\'s my code.
@Override
public long addDrugTreatment(long id, String diagnosis, Stri
There's a route through your code which means there would be no return value defined, which is an error, since your method says you'll always return a long.
Are you expecting a value to be returned when if the code throws a JMSException? If so, perhaps declare tld outside the try with a default value.
Else did you really mean to re-throw the JMSException?