tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: svn commit: r1041892 - in /tomcat/trunk: java/org/apache/catalina/connector/ test/org/apache/catalina/connector/ webapps/docs/ webapps/docs/config/
Date Sun, 05 Dec 2010 18:23:59 GMT
2010/12/5 Caldarale, Charles R <Chuck.Caldarale@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message