mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
soft assertions
This commit is contained in:
+3
-1
@@ -173,7 +173,9 @@ public class CompletionServiceImpl extends CompletionService{
|
||||
}
|
||||
|
||||
public static void assertPhase(Class<? extends CompletionPhase>... possibilities) {
|
||||
assert isPhase(possibilities) : ourPhase + "; set at " + ourPhaseTrace;
|
||||
if (!isPhase(possibilities)) {
|
||||
LOG.error(ourPhase + "; set at " + ourPhaseTrace);
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isPhase(Class<? extends CompletionPhase>... possibilities) {
|
||||
|
||||
Reference in New Issue
Block a user