MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / splitRelease

Method splitRelease

src/main/java/net/minecraft/src/Config.java:1374–1390  ·  view source on GitHub ↗
(String p_splitRelease_0_)

Source from the content-addressed store, hash-verified

1372 }
1373
1374 private static String[] splitRelease(String p_splitRelease_0_) {
1375 if (p_splitRelease_0_ != null && !p_splitRelease_0_.isEmpty()) {
1376 Pattern pattern = Pattern.compile("([A-Z])([0-9]+)(.*)");
1377 Matcher matcher = pattern.matcher(p_splitRelease_0_);
1378
1379 if (!matcher.matches()) {
1380 return new String[]{"", "", ""};
1381 } else {
1382 String s = normalize(matcher.group(1));
1383 String s1 = normalize(matcher.group(2));
1384 String s2 = normalize(matcher.group(3));
1385 return new String[]{s, s1, s2};
1386 }
1387 } else {
1388 return new String[]{"", "", ""};
1389 }
1390 }
1391
1392 public static int intHash(int p_intHash_0_) {
1393 p_intHash_0_ = p_intHash_0_ ^ 61 ^ p_intHash_0_ >> 16;

Callers 1

compareReleaseMethod · 0.95

Calls 3

normalizeMethod · 0.95
matchesMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected