redhat-developer / intellij-common

4 stars 11 forks source link

`com.redhat.devtools.intellij.common.utils.function.TriConsumer` is causing incompatibility to IC-2022.3 - IC-2024.1 #222

Closed adietish closed 4 months ago

adietish commented 4 months ago

related to #224 image

com.redhat.devtools.intellij.common.utils.function.TriConsumer is only used by intellij-tekton. Tekton cannot use latest intellij-common 1.9.4 because it cannot bump to the same kubernetes-client 6.12.0 (see https://github.com/redhat-developer/intellij-tekton/issues/668#issuecomment-2014768254) We can therefore remove com.redhat.devtools.intellij.common.utils.function.TriConsumer. In Jetbrains platform there's a class com.intellij.util.TriConsumer which is missing the method andThen though:

default TriConsumer<A, B, C> andThen(TriConsumer<? super A, ? super B, ? super C> after) {
    Objects.requireNonNull(after);
    return (A a, B b, C c) -> {
        accept(a, b, c);
        after.accept(a, b, c);
    };
}