Skip to content
This repository has been archived by the owner on May 3, 2018. It is now read-only.

Commit

Permalink
[MODULES-168] Fix comparison logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlloyd committed Jun 13, 2013
1 parent bc788c0 commit bb06416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jboss/modules/PathUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,6 @@ public static boolean isRelative(final String path) {
*/
public static boolean isSeparator(final char ch) {
// the second half of this compare will optimize away on / OSes
return ch == '/' || File.separatorChar != '/' && ch != File.separatorChar;
return ch == '/' || File.separatorChar != '/' && ch == File.separatorChar;
}
}

0 comments on commit bb06416

Please sign in to comment.