mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (warnings)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 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.
|
||||
@@ -81,6 +81,7 @@ public abstract class Task implements TaskInfo, Progressive {
|
||||
* @deprecated use {@link #onThrowable(Throwable)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("DeprecatedIsStillUsed")
|
||||
public void onError(@NotNull Exception error) {
|
||||
LOG.error(error);
|
||||
}
|
||||
@@ -90,6 +91,7 @@ public abstract class Task implements TaskInfo, Progressive {
|
||||
* <p>
|
||||
* Callback executed when run() throws an exception (except PCE).
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public void onThrowable(@NotNull Throwable error) {
|
||||
if (error instanceof Exception) {
|
||||
onError((Exception)error);
|
||||
|
||||
Reference in New Issue
Block a user