mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
prefer lighter version of util
GitOrigin-RevId: 646d0b29797f2c3d748d762e965e6af0a01a5b0e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
edf084acb2
commit
05738287f6
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
package org.jetbrains.jps.builders.java.dependencyView;
|
package org.jetbrains.jps.builders.java.dependencyView;
|
||||||
|
|
||||||
import com.intellij.openapi.diagnostic.Logger;
|
import com.intellij.openapi.diagnostic.Logger;
|
||||||
import com.intellij.openapi.util.io.FileUtil;
|
import com.intellij.openapi.util.io.FileUtilRt;
|
||||||
import com.intellij.openapi.util.text.StringUtil;
|
import com.intellij.openapi.util.text.Strings;
|
||||||
import com.intellij.util.io.PersistentStringEnumerator;
|
import com.intellij.util.io.PersistentStringEnumerator;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
import org.jetbrains.jps.builders.storage.BuildDataCorruptedException;
|
import org.jetbrains.jps.builders.storage.BuildDataCorruptedException;
|
||||||
@@ -53,8 +53,8 @@ final class DependencyContext implements NamingContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static File getTableFile (final File rootDir, final String name) {
|
static File getTableFile (final File rootDir, final String name) {
|
||||||
final File file = new File(FileUtil.toSystemIndependentName(rootDir.getAbsoluteFile() + File.separator + name));
|
final File file = new File(FileUtilRt.toSystemIndependentName(rootDir.getAbsoluteFile() + File.separator + name));
|
||||||
FileUtil.createIfDoesntExist(file);
|
FileUtilRt.createIfNotExists(file);
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ final class DependencyContext implements NamingContext {
|
|||||||
@Override
|
@Override
|
||||||
public int get(final String s) {
|
public int get(final String s) {
|
||||||
try {
|
try {
|
||||||
return StringUtil.isEmpty(s) ? myEmptyName : myEnumerator.enumerate(myRelativizer.toRelative(s));
|
return Strings.isEmpty(s) ? myEmptyName : myEnumerator.enumerate(myRelativizer.toRelative(s));
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
catch (IOException e) {
|
||||||
throw new BuildDataCorruptedException(e);
|
throw new BuildDataCorruptedException(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user