From ab884008f1e49061daeb68f7e68df12a9d8c731b Mon Sep 17 00:00:00 2001 From: Andre Dietisheim Date: Wed, 17 Apr 2024 09:59:54 +0200 Subject: [PATCH] removed custom TriConsumer (#222) TriConsumer triggers incompatibility warnings in jetbrains marketplace. intellij-tekton is using it but it cannot bump to latest common version bcs of the outdated kubernetes-client that it needs to use (see https://github.com/redhat-developer/intellij-tekton/issues/668). Signed-off-by: Andre Dietisheim --- .../common/utils/function/TriConsumer.java | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 src/main/java/com/redhat/devtools/intellij/common/utils/function/TriConsumer.java diff --git a/src/main/java/com/redhat/devtools/intellij/common/utils/function/TriConsumer.java b/src/main/java/com/redhat/devtools/intellij/common/utils/function/TriConsumer.java deleted file mode 100644 index df0f169..0000000 --- a/src/main/java/com/redhat/devtools/intellij/common/utils/function/TriConsumer.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2020 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v2.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v20.html - * - * Contributors: - * Red Hat, Inc. - ******************************************************************************/ -package com.redhat.devtools.intellij.common.utils.function; - -import java.util.Objects; - -@FunctionalInterface -public interface TriConsumer { - - /** - * Performs this operation on the given arguments. - * - * @param a the first input argument - * @param b the second input argument - * @param c the second input argument - */ - void accept(A a, B b, C c); - - /** - * Returns a composed {@code TriConsumer} that performs, in sequence, this - * operation followed by the {@code after} operation. If performing either - * operation throws an exception, it is relayed to the caller of the - * composed operation. If performing this operation throws an exception, - * the {@code after} operation will not be performed. - * - * @param after the operation to perform after this operation - * @return a composed {@code TriConsumer} that performs in sequence this - * operation followed by the {@code after} operation - * @throws NullPointerException if {@code after} is null - */ - default TriConsumer andThen( - TriConsumer after) { - Objects.requireNonNull(after); - return (A a, B b, C c) -> { - accept(a, b, c); - after.accept(a, b, c); - }; - } -} \ No newline at end of file