//
// DumpClass.java
//

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;

/**
 * Uses reflection to print a bunch of information about a class.
 *
 * <dl><dt><b>Source code:</b></dt>
 * <dd><a href="https://skyking.microscopy.wisc.edu/trac/java/browser/trunk/utils/DumpClass.java">Trac</a>,
 * <a href="https://skyking.microscopy.wisc.edu/svn/java/trunk/utils/DumpClass.java">SVN</a></dd></dl>
 */
public class DumpClass {

  @SuppressWarnings("unchecked")
  public static void main(String[] args) throws Exception {
    for (int i=0; i<args.length; i++) {
      Class c = Class.forName(args[i]);
      System.out.println("Class = " + c);

      System.out.println();
      System.out.println("[Constructors]");
      Constructor[] con = c.getDeclaredConstructors();
      for (int j=0; j<con.length; j++) System.out.println(con[j]);

      System.out.println();
      System.out.println("[Fields]");
      Field[] f = c.getDeclaredFields();
      for (int j=0; j<f.length; j++) System.out.println(f[j]);

      System.out.println();
      System.out.println("[Methods]");
      Method[] m = c.getDeclaredMethods();
      for (int j=0; j<m.length; j++) System.out.println(m[j]);
    }
  }

}

@@ -476,41 +476,8 @@
  %7B%0A%0A
-  @SuppressWarnings(%22unchecked%22)%0A
   pu
@@ -583,16 +583,19 @@
    Class
+%3C?%3E
  c = Cla
@@ -747,16 +747,19 @@
 structor
+%3C?%3E
 %5B%5D con =

Fix some minor unchecked warnings.