mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup LOG usage
This commit is contained in:
@@ -174,7 +174,7 @@ open class DirectoryBasedStorage(private val myPathMacroSubstitutor: TrackingPat
|
||||
writeFile(null, this, file, storeElement, LineSeparator.fromString(if (file.exists()) loadFile(file).second else SystemProperties.getLineSeparator()), false)
|
||||
}
|
||||
catch (e: IOException) {
|
||||
StateStorageBase.LOG.error(e)
|
||||
LOG.error(e)
|
||||
}
|
||||
finally {
|
||||
if (element != null) {
|
||||
|
||||
@@ -25,6 +25,7 @@ import com.intellij.openapi.components.TrackingPathMacroSubstitutor;
|
||||
import com.intellij.openapi.components.impl.stores.StateStorageBase;
|
||||
import com.intellij.openapi.components.impl.stores.StateStorageManager;
|
||||
import com.intellij.openapi.components.impl.stores.StorageManagerListener;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.roots.ModifiableRootModel;
|
||||
import com.intellij.openapi.roots.ModuleRootModel;
|
||||
@@ -55,6 +56,8 @@ import java.util.Set;
|
||||
|
||||
// Boolean - false as not loaded, true as loaded
|
||||
public class ClasspathStorage extends StateStorageBase<Boolean> {
|
||||
private static final Logger LOG = Logger.getInstance(ClasspathStorage.class);
|
||||
|
||||
@NonNls public static final String SPECIAL_STORAGE = "special";
|
||||
|
||||
private final ClasspathStorageProvider.ClasspathConverter myConverter;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.concurrent.atomic.AtomicReference
|
||||
|
||||
public abstract class StateStorageBase<T : Any> : StateStorage {
|
||||
companion object {
|
||||
protected val LOG: Logger = Logger.getInstance(javaClass<StateStorageBase<Any>>())
|
||||
private val LOG: Logger = Logger.getInstance(javaClass<StateStorageBase<Any>>())
|
||||
}
|
||||
|
||||
private var mySavingDisabled = false
|
||||
|
||||
Reference in New Issue
Block a user