r1301@thor:  alex | 2006-12-20 06:06:19 +0200
 reduce number of warnings (at least when JDT compiler is used)

diff --git a/src/jdk15/org/testng/internal/annotations/JDK15AnnotationFinder.java b/src/jdk15/org/testng/internal/annotations/JDK15AnnotationFinder.java
index eea1736..551e30d 100644
--- a/src/jdk15/org/testng/internal/annotations/JDK15AnnotationFinder.java
+++ b/src/jdk15/org/testng/internal/annotations/JDK15AnnotationFinder.java
@@ -35,6 +35,7 @@
     new HashMap<Class<?>, Class<?>>();
   private IAnnotationTransformer m_transformer = null;
   
+  @SuppressWarnings({"deprecation"})
   public JDK15AnnotationFinder(IAnnotationTransformer transformer) {
     m_transformer = transformer;
     
diff --git a/src/jdk15/org/testng/internal/annotations/JDK15TagFactory.java b/src/jdk15/org/testng/internal/annotations/JDK15TagFactory.java
index ec226ce..212038c 100644
--- a/src/jdk15/org/testng/internal/annotations/JDK15TagFactory.java
+++ b/src/jdk15/org/testng/internal/annotations/JDK15TagFactory.java
@@ -214,6 +214,7 @@
     return result;
   }
 
+  @SuppressWarnings({"deprecation"})
   private IAnnotation createConfigurationTag(Class cls, Annotation a) {
     ConfigurationAnnotation result = new ConfigurationAnnotation();
     Configuration c = (Configuration) a;
@@ -284,6 +285,7 @@
     return result;
   }
 
+  @SuppressWarnings({"deprecation"})
   private IAnnotation createExpectedExceptionsTag(Annotation a) {
     ExpectedExceptionsAnnotation result = new ExpectedExceptionsAnnotation ();
     ExpectedExceptions c = (ExpectedExceptions ) a;
@@ -292,6 +294,7 @@
     return result;
   }
 
+  @SuppressWarnings({"deprecation"})
   private IAnnotation createFactoryTag(Annotation a) {
     FactoryAnnotation result = new FactoryAnnotation();
     Factory c = (Factory) a;
@@ -308,6 +311,7 @@
     return result;
   }
   
+  @SuppressWarnings({"deprecation"})
   private IAnnotation createTestTag(Class cls, Annotation a, 
       IAnnotationTransformer transformer) 
   {
@@ -371,25 +375,6 @@
     return result;
   }
 
-//  private Boolean findInheritedBoolean(Class cls, Class annotationClass,
-//      String methodName, Boolean result)
-//  {
-//    Map<String, String> vResult = new HashMap<String, String>();
-//    
-//    while (cls != Object.class) {
-//      Annotation annotation = cls.getAnnotation(annotationClass);
-//      if (annotation != null) {
-//        return (Boolean) invokeMethod(annotation, methodName);
-//      }
-//      else {
-//        cls = cls.getSuperclass();
-//      }
-//      
-//    }
-//    
-//    return result;
-//  }
-
   private Object invokeMethod(Annotation test, String methodName) {
     Object result = null;
     try {
diff --git a/src/main/org/testng/internal/Parameters.java b/src/main/org/testng/internal/Parameters.java
index 2c256a7..424a83b 100644
--- a/src/main/org/testng/internal/Parameters.java
+++ b/src/main/org/testng/internal/Parameters.java
@@ -264,6 +264,7 @@
     return null;
   }
 
+  @SuppressWarnings({"deprecation"})
   private static Object[] createParameters(Method m, MethodParameters params,
       IAnnotationFinder finder, XmlSuite xmlSuite, Class annotationClass, String atName) 
   {
diff --git a/src/main/org/testng/internal/annotations/AnnotationHelper.java b/src/main/org/testng/internal/annotations/AnnotationHelper.java
index f075ad5..cf48e26 100644
--- a/src/main/org/testng/internal/annotations/AnnotationHelper.java
+++ b/src/main/org/testng/internal/annotations/AnnotationHelper.java
@@ -130,6 +130,7 @@
     return result;
   }
   
+  @SuppressWarnings({"deprecation"})
   private static void finishInitialize(ConfigurationAnnotation result, IConfiguration bs) {
     result.setFakeConfiguration(true);
     result.setAlwaysRun(bs.getAlwaysRun());
diff --git a/src/main/org/testng/reporters/SuiteHTMLReporter.java b/src/main/org/testng/reporters/SuiteHTMLReporter.java
index 046380b..b3ee30e 100644
--- a/src/main/org/testng/reporters/SuiteHTMLReporter.java
+++ b/src/main/org/testng/reporters/SuiteHTMLReporter.java
@@ -319,6 +319,7 @@
     Collection<ITestNGMethod> invokedMethods = suite.getInvokedMethods();
     
     if (alphabetical) {
+      @SuppressWarnings({"unchecked"})
       Comparator<? super ITestNGMethod>  alphabeticalComparator = new Comparator(){
         public int compare(Object o1, Object o2) {
           ITestNGMethod m1 = (ITestNGMethod) o1;