OSDN Git Service

Imported GNU Classpath 0.90
[pf3gnuchains/gcc-fork.git] / libjava / classpath / gnu / java / lang / reflect / TypeImpl.java
@@ -1,5 +1,6 @@
-/* supplementaryNotifications.java --
-   Copyright (C) 2005 Free Software Foundation, Inc.
+/* TypeImpl.java
+   Copyright (C) 2005
+   Free Software Foundation
 
 This file is part of GNU Classpath.
 
@@ -35,52 +36,28 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+package gnu.java.lang.reflect;
 
-package test.gnu.javax.swing.text.html.parser;
+import java.lang.reflect.Type;
 
-import javax.swing.text.MutableAttributeSet;
-import javax.swing.text.html.HTML;
-
-/**
- * @author Audrius Meskauskas (AudriusA@Bioinformatics.org)
- */
-public class supplementaryNotifications
-  extends TestCase
+abstract class TypeImpl implements Type
 {
-  String eoln = null;
-  int flushed = 0;
+    abstract Type resolve();
 
-  public void testHTMLParsing()
-                       throws Exception
-  {
-    Parser_Test v =
-      new Parser_Test()
-      {
-        public void handleEndOfLineString(String end_of_line)
+    static void resolve(Type[] types)
+    {
+        for (int i = 0; i < types.length; i++)
         {
-          eoln = end_of_line;
+            types[i] = resolve(types[i]);
         }
+    }
 
-        public void flush()
+    static Type resolve(Type type)
+    {
+        if (type instanceof TypeImpl)
         {
-          flushed++;
+            type = ((TypeImpl) type).resolve();
         }
-      };
-
-    v.hideImplied = true;
-
-    v.verify("a \n b", "<html><head></head><body>'a b'</body></html>");
-
-    assertEquals(eoln, "\n");
-
-    v.verify("a \r b", "<html><head></head><body>'a b'</body></html>");
-
-    assertEquals(eoln, "\r");
-
-    v.verify("a \r\n b", "<html><head></head><body>'a b'</body></html>");
-
-    assertEquals(eoln, "\r\n");
-
-    assertEquals(flushed, 3);
-  }
+        return type;
+    }
 }