Skip to content

Commit

Permalink
Remove tabs, fix indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
peschwa committed Mar 22, 2015
1 parent 818a382 commit a7acff6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -3559,7 +3559,7 @@ public static SixModelObject split(String delimiter, String string, ThreadContex
}

public static long indexfrom(String string, String pattern, long fromIndex) {
if (fromIndex > string.length()) { return -1; }
if (fromIndex > string.length()) { return -1; }
return string.indexOf(pattern, (int)fromIndex);
}

Expand All @@ -3568,7 +3568,7 @@ public static long rindexfromend(String string, String pattern) {
}

public static long rindexfrom(String string, String pattern, long fromIndex) {
if (fromIndex > string.length()) { return -1; }
if (fromIndex > string.length()) { return -1; }
return string.lastIndexOf(pattern, (int)fromIndex);
}

Expand Down Expand Up @@ -5423,8 +5423,8 @@ else if (act == NFA.EDGE_FATE) {
continue;
}
else if (act == NFA.EDGE_EPSILON && to <= numStates && done[to] != gen) {
if (to != 0)
curst.add(to);
if (to != 0)
curst.add(to);
continue;
}
}
Expand Down Expand Up @@ -6180,14 +6180,14 @@ public static SixModelObject jvmgetconfig(ThreadContext tc) {
SixModelObject res = hashType.st.REPR.allocate(tc, hashType.st);

try {
InputStream is = Ops.class.getResourceAsStream("/jvmconfig.properties");
Properties config = new Properties();
config.load(is);
for (String name : config.stringPropertyNames())
res.bind_key_boxed(tc, name, box_s(config.getProperty(name), strType, tc));
} catch (Throwable e) {
die_s("Failed to load config.properties", tc);
}
InputStream is = Ops.class.getResourceAsStream("/jvmconfig.properties");
Properties config = new Properties();
config.load(is);
for (String name : config.stringPropertyNames())
res.bind_key_boxed(tc, name, box_s(config.getProperty(name), strType, tc));
} catch (Throwable e) {
die_s("Failed to load config.properties", tc);
}

return res;
}
Expand Down

0 comments on commit a7acff6

Please sign in to comment.