Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-ui-dev] $NON-NLS-1$ nit-picking

There was a question on the forum about what the //$NON-NLS-1$ comment
does.

I know what it does, but what is the point of having the number "-N"?  I
know the number corresponds to some string on that line, but so what?  If I
go back and add another String to a line:
      System.out.println("y=" + y); //$NON-NLS-1$
becomes:
      System.out.println("x=" + x  + ", y=" + y);//$NON-NLS-1$
... the "-1" doesn't tell me anything except I need to look at both and
find the one that isn't translated.

To me, "$NON-NLS-3$" is equivalent to what is currently required :
"$NON-NLS-1$ $NON-NLS-2$ $NON-NLS-3$"
And "$NON-NLS$" is equivalint to "$NON-NLS-1$"

I prefer the shorter forms unless someone can tell me when it is useful to
have the longer forms.



Back to the top