Title: [632] trunk/qdox/src/test/com/thoughtworks/qdox/model/util: fix for QDox-173: recognize generic as word
Revision
632
Author
rfscholte
Date
2009-07-23 14:33:00 -0500 (Thu, 23 Jul 2009)

Log Message

fix for QDox-173: recognize generic as word

Modified Paths


Diff

Modified: trunk/qdox/src/java/com/thoughtworks/qdox/model/util/TagParser.java (631 => 632)

--- trunk/qdox/src/java/com/thoughtworks/qdox/model/util/TagParser.java	2009-07-20 17:01:21 UTC (rev 631)
+++ trunk/qdox/src/java/com/thoughtworks/qdox/model/util/TagParser.java	2009-07-23 19:33:00 UTC (rev 632)
@@ -21,6 +21,8 @@
         tokenizer.wordChars('-','-');
         tokenizer.wordChars('_','_');
         tokenizer.wordChars('.','.');
+        tokenizer.wordChars('<','<');
+        tokenizer.wordChars('>','>');
         tokenizer.quoteChar('\'');
         tokenizer.quoteChar('"');
         tokenizer.whitespaceChars(' ',' ');

Modified: trunk/qdox/src/test/com/thoughtworks/qdox/model/util/TagParserTest.java (631 => 632)

--- trunk/qdox/src/test/com/thoughtworks/qdox/model/util/TagParserTest.java	2009-07-20 17:01:21 UTC (rev 631)
+++ trunk/qdox/src/test/com/thoughtworks/qdox/model/util/TagParserTest.java	2009-07-23 19:33:00 UTC (rev 632)
@@ -168,4 +168,12 @@
 
     }
 
+    //for QDOX-173
+    public void testGenericsSupport() throws Exception {
+    	String[] words = TagParser.parseWords("<K>  The Key");
+    	assertEquals("<K>", words[0]);
+    	assertEquals("The", words[1]);
+    	assertEquals("Key", words[2]);
+    }
+
 }


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to