deprecate Extensions.getExtensions(ExtensionPointName) in favour of ExtensionPointName.getExtensionList()

This commit is contained in:
Vladimir Krivosheev
2018-09-25 15:42:23 +02:00
parent 2476be32bf
commit 4d3eb96aae
404 changed files with 1213 additions and 4571 deletions
@@ -1,28 +1,14 @@
/*
* 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-2018 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.intellij.util.xml.converters.values;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.openapi.extensions.Extensions;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.Condition;
import com.intellij.openapi.util.Pair;
import com.intellij.psi.*;
import com.intellij.psi.util.PsiTypesUtil;
import com.intellij.psi.util.PsiUtil;
import com.intellij.psi.CommonClassNames;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiClassType;
import com.intellij.psi.PsiType;
import com.intellij.util.xml.Converter;
import com.intellij.util.xml.GenericDomValue;
import org.jetbrains.annotations.NotNull;
@@ -41,8 +27,7 @@ public class GenericDomValueConvertersRegistry {
}
public void registerFromExtensions(ExtensionPointName<Provider> extensionPointName) {
Provider[] providers = Extensions.getExtensions(extensionPointName);
for (Provider provider : providers) {
for (Provider provider : extensionPointName.getExtensionList()) {
registerConverter(provider.getConverter(), provider.getCondition());
}
}
@@ -52,7 +37,7 @@ public class GenericDomValueConvertersRegistry {
public void registerDefaultConverters() {
registerBooleanConverters();
registerCharacterConverter();
registerNumberValueConverters();