lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rai...@apache.org
Subject svn commit: r1052511 - /lenya/branches/BRANCH_2_0_X/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/LinkConverter.java
Date Fri, 24 Dec 2010 14:17:14 GMT
Author: rainer
Date: Fri Dec 24 14:17:13 2010
New Revision: 1052511

URL: http://svn.apache.org/viewvc?rev=1052511&view=rev
Log:
Java 1.4 compatibility: use conventional for loop instead of for-each.

Modified:
    lenya/branches/BRANCH_2_0_X/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/LinkConverter.java

Modified: lenya/branches/BRANCH_2_0_X/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/LinkConverter.java
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/LinkConverter.java?rev=1052511&r1=1052510&r2=1052511&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/LinkConverter.java
(original)
+++ lenya/branches/BRANCH_2_0_X/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/LinkConverter.java
Fri Dec 24 14:17:13 2010
@@ -136,7 +136,8 @@ public class LinkConverter extends Abstr
                             final String destPubUrl = "/" + pub.getId() + "/"
                                     + srcPubUrl.substring(srcPubPrefix.length());
                             boolean rewritten = false;
-                            for (final LinkRewriter rewriter : rewriters) {
+                            for (int i=0; i<rewriters.length; i++) {
+                                final LinkRewriter rewriter = rewriters[i];
                                 if (!rewritten && rewriter.matches(destPubUrl)) {
                                     String rewrittenUrl = rewriter.rewrite(destPubUrl);
                                     attribute.setValue(rewrittenUrl);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org


Mime
View raw message