// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.util;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
 * Like UserDataHolder, but stores data in non-thread-safe way.
 * Should not be accessed across threads.
 */
@Deprecated
public interface UserDataHolderUnprotected {

  @Deprecated
  @Nullable
  <T> T getUserDataUnprotected(@NotNull Key<T> key);

  @Deprecated
  <T> void putUserDataUnprotected(@NotNull Key<T> key, @Nullable T value);
}

@@ -366,16 +366,354 @@
 hreads.%0A
+ *%0A * @deprecated use %7B@link UserDataHolder%7D. %3Cbr/%3E%0A * This interface is extended only by %7B@link com.intellij.lang.PsiBuilder%7D which is used in a single thread always.%0A * %7B@link UserDataHolder%7D doesn't make any restrictions on thread-safety, so it's now used in PsiBuilder instead,%0A * and this interface is left for binary compatibility.%0A
  */%0A@Dep

add deprecation docs for UserDataHolderUnprotected