blob: a044eeb383c9e021650ef21507302e5dfe83c9ed [file] [log] [blame]
// Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.utils;
@FunctionalInterface
public interface ThrowingAction<T extends Throwable> {
void execute() throws T;
static ThrowingAction<RuntimeException> empty() {
return () -> {};
}
}