Author: toad
Date: 2007-11-19 23:16:54 +0000 (Mon, 19 Nov 2007)
New Revision: 15867

Modified:
   trunk/freenet/src/freenet/clients/http/bookmark/BookmarkManager.java
Log:
indent

Modified: trunk/freenet/src/freenet/clients/http/bookmark/BookmarkManager.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/bookmark/BookmarkManager.java        
2007-11-19 23:16:16 UTC (rev 15866)
+++ trunk/freenet/src/freenet/clients/http/bookmark/BookmarkManager.java        
2007-11-19 23:16:54 UTC (rev 15867)
@@ -102,27 +102,27 @@
                        clear();
                        for (int i = 0; i < newVals.length; i++) {
                                try {
-                                Matcher matcher = pattern.matcher(newVals[i]);
-                                // FIXME: remove
-                                if (matcher.matches() && matcher.groupCount() 
== 3) {
+                                       Matcher matcher = 
pattern.matcher(newVals[i]);
+                                       // FIXME: remove
+                                       if (matcher.matches() && 
matcher.groupCount() == 3) {
+                                               
+                                               boolean hasAnActiveLink = false;
+                                               makeParents(matcher.group(1));
+                                               key = new 
FreenetURI(matcher.group(3));
+                                               String title = matcher.group(2);
+                                               if(title.endsWith("=|")) {
+                                                       title = 
title.substring(0, title.length()-2);
+                                                       hasAnActiveLink = true;
+                                               } else if(title.endsWith("=")) {
+                                                       title = 
title.substring(0, title.length()-1);
+                                               }
+                                               addBookmark(matcher.group(1), 
new BookmarkItem(key,
+                                                               title, 
hasAnActiveLink, node.alerts), false);
+                                               
+                                       } else {
+                                               throw new 
InvalidConfigValueException(l10n("malformedBookmark"));
+                                       }

-                                       boolean hasAnActiveLink = false;
-                                    makeParents(matcher.group(1));
-                                    key = new FreenetURI(matcher.group(3));
-                                    String title = matcher.group(2);
-                                    if(title.endsWith("=|")) {
-                                       title = title.substring(0, 
title.length()-2);
-                                       hasAnActiveLink = true;
-                                    } else if(title.endsWith("=")) {
-                                       title = title.substring(0, 
title.length()-1);
-                                    }
-                                    addBookmark(matcher.group(1), new 
BookmarkItem(key,
-                                            title, hasAnActiveLink, 
node.alerts), false);
-
-                                } else {
-                                    throw new 
InvalidConfigValueException(l10n("malformedBookmark"));
-                                }
-
                                } catch (MalformedURLException mue) {
                                        throw new 
InvalidConfigValueException(mue.getMessage());
                                }


Reply via email to