Source Scanner...
"Trond Norbye" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.tasklist.devel |
|---|---|
| Message-ID | <[email protected]> |
I have just started to look at the NetBeans sources, and hopefully contribute to the project.... The first think I laid my eyes on was the SourceScanner-feature, in which I found some (in my eyes) unexpected behaviour. 1. It creates tasks for "tags" that do not reside in a comment block. 2. It includes the complete line where it found the tag as a task, causing "normal" entries to look like: * @todo blah // @todo bla I would prefer to strip everything up to the the start tag. I have created a version that "fixes" these two things, but I encountered another "theoretical" problem during my tests... /* @todo blah */ int i = 0; /* @todo optimize this thing */ The "old" version of the source scanner would then insert the whole line as a task, while my method would just get the first entry (since I cannot have multiple tasks on a single source line). (It is however not a big problem for me to concatinate the two strings, and get the following task: @todo blah @todo optimize this thing But who writes such code anyway.... And now the big question: Does anyone else agree with me? Trond Norbye