deprecate ContainerUtil.newHashSet()

GitOrigin-RevId: e6c0562c868c61db16ce950bd24a22164bb6c926
This commit is contained in:
Vladimir Krivosheev
2019-05-03 11:57:49 +02:00
committed by intellij-monorepo-bot
parent 091743008b
commit 93f7a92521
207 changed files with 615 additions and 1458 deletions

View File

@@ -1,18 +1,4 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.rest;
import com.intellij.lang.Language;
@@ -24,10 +10,10 @@ import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiManager;
import com.intellij.psi.impl.source.PsiFileImpl;
import com.intellij.psi.templateLanguages.TemplateLanguageFileViewProvider;
import com.intellij.util.containers.ContainerUtil;
import com.jetbrains.python.PythonLanguage;
import org.jetbrains.annotations.NotNull;
import java.util.HashSet;
import java.util.Set;
/**
@@ -64,7 +50,7 @@ public class RestFileViewProvider extends MultiplePsiFilesPerDocumentFileViewPro
@NotNull
public Set<Language> getLanguages() {
if (myLanguages == null) {
final Set<Language> languages = ContainerUtil.newHashSet();
final Set<Language> languages = new HashSet<>();
languages.add(getBaseLanguage());
Language djangoTemplateLanguage = Language.findLanguageByID("DjangoTemplate");
if (djangoTemplateLanguage != null) {