MCPcopy Create free account
hub / github.com/FabricMC/Matcher / isValid

Method isValid

src/main/java/matcher/config/ProjectConfig.java:183–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181 }
182
183 public boolean isValid() {
184 return !pathsA.isEmpty()
185 && !pathsB.isEmpty()
186 && Collections.disjoint(pathsA, pathsB)
187 && Collections.disjoint(pathsA, sharedClassPath)
188 && Collections.disjoint(pathsB, sharedClassPath)
189 //&& Collections.disjoint(classPathA, classPathB)
190 && Collections.disjoint(classPathA, pathsA)
191 && Collections.disjoint(classPathB, pathsA)
192 && Collections.disjoint(classPathA, pathsB)
193 && Collections.disjoint(classPathB, pathsB)
194 && Collections.disjoint(classPathA, sharedClassPath)
195 && Collections.disjoint(classPathB, sharedClassPath)
196 && tryCompilePattern(nonObfuscatedClassPatternA)
197 && tryCompilePattern(nonObfuscatedClassPatternB)
198 && tryCompilePattern(nonObfuscatedMemberPatternA)
199 && tryCompilePattern(nonObfuscatedMemberPatternB);
200 }
201
202 private static boolean tryCompilePattern(String regex) {
203 try {

Callers 3

initFromMatchesMethod · 0.95
newProjectMethod · 0.95
saveMethod · 0.95

Calls 1

tryCompilePatternMethod · 0.95

Tested by

no test coverage detected