mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
[code-style] change deprecation notice to point to a safe production-ready alternative
Part of an effort to get rid of potential causes of IJPL-172225. `doWithTemporarySettings` is not thread-safe. GitOrigin-RevId: ae54da4b0c55cf2b1a1c088c5f2971c5509b4eb6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
433cc7ea68
commit
8ad81962ea
@@ -2,6 +2,7 @@
|
||||
package com.intellij.psi.codeStyle;
|
||||
|
||||
import com.intellij.CodeStyleBundle;
|
||||
import com.intellij.application.options.CodeStyle;
|
||||
import com.intellij.configurationStore.Property;
|
||||
import com.intellij.diagnostic.PluginException;
|
||||
import com.intellij.lang.Language;
|
||||
@@ -29,6 +30,7 @@ import org.jetbrains.annotations.*;
|
||||
import javax.swing.*;
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.*;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Supplier;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.regex.PatternSyntaxException;
|
||||
@@ -136,7 +138,7 @@ public class CodeStyleSettings extends LegacyCodeStyleSettings implements Clonea
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* For short-lived temporary settings use {@code CodeStyle.doWithTemporarySettings(project,baseSettings,modifier,runnable},
|
||||
* For short-lived temporary settings use {@link CodeStyle#runWithLocalSettings(Project, CodeStyleSettings, Consumer)},
|
||||
* for permanently created settings use {@link CodeStyleSettingsManager#cloneSettings(CodeStyleSettings)}
|
||||
*/
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user