diff --git a/platform/core-api/src/com/intellij/openapi/progress/Task.java b/platform/core-api/src/com/intellij/openapi/progress/Task.java index 64970d668f66..29673c06ba67 100644 --- a/platform/core-api/src/com/intellij/openapi/progress/Task.java +++ b/platform/core-api/src/com/intellij/openapi/progress/Task.java @@ -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 { *
* Callback executed when run() throws an exception (except PCE). */ + @SuppressWarnings("deprecation") public void onThrowable(@NotNull Throwable error) { if (error instanceof Exception) { onError((Exception)error);