mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
IJPL-159596 prefer NIO
GitOrigin-RevId: 3b4b7e98424cc1a8ce9afa99863c1dad0497e601
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bfaa8b9512
commit
4da400b597
@@ -1,5 +1,4 @@
|
|||||||
// 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 com.intellij.xml.index;
|
package com.intellij.xml.index;
|
||||||
|
|
||||||
import com.intellij.openapi.util.Comparing;
|
import com.intellij.openapi.util.Comparing;
|
||||||
@@ -17,11 +16,8 @@ import java.io.Reader;
|
|||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
/**
|
public final class XsdNamespaceBuilder implements Comparable<XsdNamespaceBuilder> {
|
||||||
* @author Dmitry Avdeev
|
public static String computeNamespace(@NotNull InputStream is) {
|
||||||
*/
|
|
||||||
public class XsdNamespaceBuilder implements Comparable<XsdNamespaceBuilder> {
|
|
||||||
public static String computeNamespace(final InputStream is) {
|
|
||||||
return computeNamespace(new InputStreamReader(is, StandardCharsets.UTF_8)).getNamespace();
|
return computeNamespace(new InputStreamReader(is, StandardCharsets.UTF_8)).getNamespace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user