Revision: 1022
http://stripes.svn.sourceforge.net/stripes/?rev=1022&view=rev
Author: bengunter
Date: 2008-12-23 16:57:11 +0000 (Tue, 23 Dec 2008)
Log Message:
-----------
Applied changes from r1004 on the trunk, which was not linked to a JIRA issue.
Modified Paths:
--------------
branches/1.5.x/stripes/src/net/sourceforge/stripes/controller/UrlBinding.java
Modified:
branches/1.5.x/stripes/src/net/sourceforge/stripes/controller/UrlBinding.java
===================================================================
---
branches/1.5.x/stripes/src/net/sourceforge/stripes/controller/UrlBinding.java
2008-12-23 16:56:05 UTC (rev 1021)
+++
branches/1.5.x/stripes/src/net/sourceforge/stripes/controller/UrlBinding.java
2008-12-23 16:57:11 UTC (rev 1022)
@@ -114,14 +114,14 @@
@Override
public String toString() {
- StringBuilder buf = new StringBuilder(getPath());
+ StringBuilder buf = new StringBuilder(64).append(getPath());
for (Object component : getComponents()) {
- if (component instanceof String) {
+ if (component instanceof UrlBindingParameter) {
+ buf.append('{').append(component).append('}');
+ }
+ else {
buf.append(component);
}
- else if (component instanceof UrlBindingParameter) {
- buf.append('{').append(component).append('}');
- }
}
return buf.toString();
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development