mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
JPS mappings for incremental compilation refactoring: simplify resulting constraint if ANY_CONSTRAINT is used
GitOrigin-RevId: 356e570b090f6e22a081600acf8bf11a176e674c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5f9ea47a40
commit
1854279d75
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package org.jetbrains.jps.dependency.impl;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -114,7 +114,7 @@ public final class DependencyGraphImpl extends GraphImpl implements DependencyGr
|
||||
@Override
|
||||
public void affectUsage(@NotNull Usage usage, @NotNull Predicate<Node<?, ?>> constraint) {
|
||||
Predicate<Node<?, ?>> prevConstraint = affectedUsages.put(usage, constraint);
|
||||
if (prevConstraint != null) {
|
||||
if (prevConstraint != null && constraint != ANY_CONSTRAINT) {
|
||||
affectedUsages.put(usage, prevConstraint == ANY_CONSTRAINT? ANY_CONSTRAINT : prevConstraint.or(constraint));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user