/*
 * Copyright (C) 2008 TranceCode Software
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 * 
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library; if not, write to the Free Software Foundation, Inc.,
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
 *
 * $Id$
 */
package org.trancecode.io;

/**
 * Utility methods related to file paths handling.
 * 
 * @author Herve Quiroz
 */
public final class Paths
{
    private static final String PATH_DELIMITER = "/";

    private Paths()
    {
        // No instantiation
    }

    public static String asAbsolutePath(final String path)
    {
        if (path.startsWith(PATH_DELIMITER))
        {
            return path;
        }

        return PATH_DELIMITER + path;
    }

    public static String asDirectory(final String path)
    {
        if (path.endsWith(PATH_DELIMITER))
        {
            return path;
        }

        return path + PATH_DELIMITER;
    }
}

@@ -950,104 +950,119 @@
 ate 
+Paths()%0A    %7B%0A        // No in
 sta
+n
 ti
-c final String PATH_DELIMITER = %22/%22;%0A%0A    private Paths()%0A    %7B%0A        // No instantiation
+ation%0A    %7D%0A%0A    public static String delimiter()%0A    %7B%0A        return %22/%22;
 %0A   
@@ -1154,38 +1154,35 @@
 .startsWith(
-PATH_DELIMITER
+delimiter()
 ))%0A        %7B
@@ -1233,30 +1233,27 @@
  return 
-PATH_DELIMITER
+delimiter()
  + path;
@@ -1348,30 +1348,27 @@
 ndsWith(
-PATH_DELIMITER
+delimiter()
 ))%0A     
@@ -1434,22 +1434,19 @@
 h + 
-PATH_DELIMITER
+delimiter()
 ;%0A  

Make DELIMITER a method rather than a constant