v8 heap analysis: containment tree: extract algorithm used for reverse index calculat...
authorirengrig <Irina.Chernushina@jetbrains.com>
Fri, 19 Dec 2014 16:24:45 +0000 (17:24 +0100)
committerirengrig <Irina.Chernushina@jetbrains.com>
Fri, 19 Dec 2014 16:24:45 +0000 (17:24 +0100)
platform/util/src/com/intellij/util/CloseableProcessor.java [new file with mode: 0644]

diff --git a/platform/util/src/com/intellij/util/CloseableProcessor.java b/platform/util/src/com/intellij/util/CloseableProcessor.java
new file mode 100644 (file)
index 0000000..58c5d4d
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2000-2014 JetBrains s.r.o.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.intellij.util;
+
+import org.jetbrains.annotations.NotNull;
+
+import java.io.Closeable;
+
+/**
+ * @author Irina.Chernushina on 12/19/2014.
+ */
+public interface CloseableProcessor<T, E extends Throwable> extends Closeable, Processor<T> {
+  void exceptionThrown(@NotNull E e);
+}