2010/12/5 Caldarale, Charles R <chuck.caldar...@unisys.com>:
> Is there a convention for line length,

The only strict rule is to use spaces, and never tabs. The rest is --
see how the file was formatted before.

I, personally, use "Java Conventions" with indent setting changed to
be spaces only, and let IDE format just the selected block of code. I
suspect that other do similar things as well.

It is preferred that the line does not exceed 80 chars.

> and how to handle long constant strings that aren't controlled by the 
> StringManager?

Long strings could be splitted in parts by '+' (they will be
concatenated at compile time anyway), thought it would make harder to
search for them. Usually there is no need to bother. One example are
string constants in HTMLManagerServlet. Another is SecurityClassLoad.


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to