Author: lukaszlenart
Date: Wed Feb 5 08:59:01 2014
New Revision: 1564681
URL: http://svn.apache.org/r1564681
Log:
Applies source code formatting
Modified:
struts/site/trunk/content/markdown/coding-standards.md
Modified: struts/site/trunk/content/markdown/coding-standards.md
URL:
http://svn.apache.org/viewvc/struts/site/trunk/content/markdown/coding-standards.md?rev=1564681&r1=1564680&r2=1564681&view=diff
==============================================================================
--- struts/site/trunk/content/markdown/coding-standards.md (original)
+++ struts/site/trunk/content/markdown/coding-standards.md Wed Feb 5 08:59:01
2014
@@ -66,18 +66,18 @@ Some suggestions how to improve the code
- use static imports
- a.add("type", "hidden")
- .add("id", "__multiselect_" + defaultString(escapeHtml4(id)));
+ a.add("type", "hidden")
+ .add("id", "__multiselect_" + defaultString(escapeHtml4(id)));
- use dedicated method
- a.add("type", "hidden")
- .add("id", "__multiselect_" + safeId(id));
+ a.add("type", "hidden")
+ .add("id", "__multiselect_" + safeId(id));
- use builder
- a.add("type", "hidden")
- .add("id", HtmlID.with("__multiselect_").withSafeId(id).create());
+ a.add("type", "hidden")
+ .add("id", HtmlID.with("__multiselect_").withSafeId(id).create());
As you can see, reformatting a code is just the beginning, you shouldn't stop
there and think *how can I improve
readability* and follow that path to the end.