Describe the method signature
To describe the method signature that the checker should consider in its analysis, for example identity validation:
- Write the package declaration of the class containing the method of interest (or copy it from the real class).
- Write or copy the declaration of the class or interface that contains the method of interest. The declaration has the following format:
(modifiers)* ('class'|'interface') CLASS_NAME
- Write or copy the signatures of the methods of interest inside your class declaration.
Example method signature description
Let's say we want to describe a few search methods from the javax.naming.directory DirContext. The method signature might look like the following:
package javax.naming.directory; import javax.naming.*; public class DirContext { public NamingEnumeration<SearchResult> search(Name name, String filter, SearchControls cons) throws NamingException; public NamingEnumeration<SearchResult> search(String name, String filter, SearchControls cons) throws NamingException; }