Cleanup (warnings)

This commit is contained in:
Roman Shevchenko
2017-02-08 16:02:03 +01:00
parent e2f099e548
commit cc1d195a4b
@@ -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);