deprecate key.getData(storage) approach

This commit is contained in:
Konstantin Bulenkov
2016-05-23 19:43:51 +02:00
parent 1e6af37469
commit c13bc3e0c2
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2016 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.
@@ -69,6 +69,9 @@ public class DataKey<T> {
return myName.equals(dataId);
}
/**
* @deprecated use {@link DataContext#getData(DataKey)}
*/
@Nullable
public T getData(@NotNull DataContext dataContext) {
//noinspection unchecked