jdt-core-home/tools/jdtcoretools/index.html
Parent Directory
|
Revision Log
|
Patch
| revision 1.2, Mon Sep 19 13:56:08 2005 UTC | revision 1.3, Mon Sep 19 14:02:29 2005 UTC | |
|---|---|---|
| # | Line 32 | Line 32 |
| 32 | <ul> | <ul> |
| 33 | <li>It handles nls tags within commented code</li> | <li>It handles nls tags within commented code</li> |
| 34 | <li>It handles multiple nls tags</li> | <li>It handles multiple nls tags</li> |
| 35 | <li>nls tags are ignored in isolated line comments like:<br> | |
| 36 | <pre> | |
| 37 | <code> ... | |
| 38 | // System.out.println(""); //$NON-NLS-1$ | |
| 39 | ...</code> | |
| 40 | </pre> | |
| 41 | </li> | |
| 42 | <li>Other nls comments are reported as unnecessary if they don't match a corresponding string literal</li> | |
| 43 | <li>The tool removes the unnecessary nls tags even if the line comment is used for another comment: | |
| 44 | <pre> | |
| 45 | <code>String s = "Hello, World"; //$NON-NLS-1$ This won't be removed //$NON-NLS-2$ at all</code> | |
| 46 | </pre> | |
| 47 | becomes: | |
| 48 | <pre> | |
| 49 | <code>String s = "Hello, World"; //$NON-NLS-1$ This won't be removed at all</code> | |
| 50 | </pre> | |
| 51 | </li> | |
| 52 | <li>It also removes the trailing whitespace when the nls tag is the only comment on a line. | |
| 53 | <pre> | |
| 54 | <code>String s = null; //$NON-NLS-1$<end of line></code> | |
| 55 | </pre> | |
| 56 | becomes: | |
| 57 | <pre> | |
| 58 | <code>String s = null;<end of line></code> | |
| 59 | </pre> | |
| 60 | </li> | |
| 61 | </ul> | </ul> |
| 62 | ||
| 63 | </td> | </td> |
|
||||||||
| help@eclipse.org | ViewVC Help |
| Powered by ViewVC 1.0.3 |
