From 6234be745e1288022c31edda3dbc35037ebfcfa6 Mon Sep 17 00:00:00 2001 From: Ivan Posti Date: Thu, 21 Sep 2023 13:05:56 +0200 Subject: [PATCH] [Spellchecker][IDEA-332895] Do not use file system related methods to obtain a parent path of a dictionary GitOrigin-RevId: ab0e386da67b5547fe580f548bd12a80eaca5f47 --- .../spellchecker/settings/SpellCheckerSettings.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettings.java b/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettings.java index 9830406d1316..f41eed8aea00 100644 --- a/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettings.java +++ b/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettings.java @@ -1,4 +1,4 @@ -// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.spellchecker.settings; import com.intellij.openapi.application.ApplicationManager; @@ -9,10 +9,10 @@ import com.intellij.openapi.util.io.FileUtilRt; import com.intellij.openapi.util.text.StringUtil; import com.intellij.spellchecker.DictionaryLevel; import com.intellij.spellchecker.util.SPFileUtil; +import com.intellij.util.PathUtil; import org.jdom.Element; import org.jetbrains.annotations.NotNull; -import java.nio.file.Paths; import java.util.*; @State(name = "SpellCheckerSettings", storages = @Storage(StoragePathMacros.WORKSPACE_FILE)) @@ -117,7 +117,8 @@ public final class SpellCheckerSettings implements PersistentStateComponent