Skip to content

Commit

Permalink
FORGE-1142: Using File.separator instead of fixed slash
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Aug 29, 2013
1 parent 912f810 commit aaf168b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

package org.jboss.forge.addon.maven.projects.util;

import java.io.File;

/**
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
*
Expand All @@ -22,12 +24,12 @@ public class Packages
*/
public static String toFileSyntax(String pkg)
{
return pkg.replace(".", "/");
return pkg.replace(".", File.separator);
}

public static String fromFileSyntax(String pkg)
{
return pkg.replace("/", ".");
return pkg.replace(File.separator, ".");
}

public static String toValidPackageName(String pkg)
Expand Down

0 comments on commit aaf168b

Please sign in to comment.