vendredi 24 juillet 2015

Is there ever a reason to have parentheses within an @Webservice(.....) annotation in Java EE?

I am building some static analysis tools to help manage the architecture of a large project. For this I am doing a couple of regexes to parse information from Java files. One of these regexes is used to scan for an @WebService(... ) annotation.

I was wondering if there is a situation possible where there are parentheses in an @WebService annotation (withhelding the ones at the start and end, and any in String literals). So the ones in

@WebService(serviceName="bla()"); 

are ok; whereas the ones in

@WebService( ... ( ... ) ...); 

are not.

Does the latter ever occur?

Aucun commentaire:

Enregistrer un commentaire