Sun Microsystems 2 Tablet Accessory User Manual


 
Appendix A Quick Start Examples 31
5. Confirm the correct contents of the resulting test.sig file by comparing it
with
CODE EXAMPLE A-2.
This completes the Setup command example.
Note Save the files you created in this procedure for use in the subsequent
example in “Running SignatureTest Without the JavaTest Harness” on page 32.”
CODE EXAMPLE A-1 The V1.0/test.java File
package example;
public class test {
public <T> T get (T x) {
return x;
}
}
CODE EXAMPLE A-2 The test.sig File
#Signature file v4.0
#Version V1.0
CLSS public example.test
cons public test()
meth public <%0 extends java.lang.Object> {%%0} get({%%0})
supr java.lang.Object
CLSS public java.lang.Object
cons public Object()
meth protected java.lang.Object clone() throws
java.lang.CloneNotSupportedException
meth protected void finalize() throws java.lang.Throwable
meth public boolean equals(java.lang.Object)
meth public final java.lang.Class<?> getClass()
meth public final void notify()
meth public final void notifyAll()
meth public final void wait() throws java.lang.InterruptedException
meth public final void wait(long) throws java.lang.InterruptedException
meth public final void wait(long,int) throws java.lang.InterruptedException
meth public int hashCode()
meth public java.lang.String toString()