• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java JavaGenericsUtil类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil的典型用法代码示例。如果您正苦于以下问题:Java JavaGenericsUtil类的具体用法?Java JavaGenericsUtil怎么用?Java JavaGenericsUtil使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



JavaGenericsUtil类属于com.intellij.codeInsight.daemon.impl.analysis包,在下文中一共展示了JavaGenericsUtil类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: visitTypeCastExpression

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitTypeCastExpression(PsiTypeCastExpression expression) {
  super.visitTypeCastExpression(expression);
  if (IGNORE_UNCHECKED_CAST) return;
  final PsiTypeElement typeElement = expression.getCastType();
  if (typeElement == null) return;
  final PsiType castType = typeElement.getType();
  final PsiExpression operand = expression.getOperand();
  if (operand == null) return;
  final PsiType exprType = operand.getType();
  if (exprType == null) return;
  if (!TypeConversionUtil.areTypesConvertible(exprType, castType)) return;
  if (JavaGenericsUtil.isUncheckedCast(castType, exprType)) {
    final String description =
      JavaErrorMessages.message("generics.unchecked.cast", JavaHighlightUtil.formatType(exprType), JavaHighlightUtil
        .formatType(castType));
    registerProblem(description, operand, expression, myGenerifyFixes);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:UncheckedWarningLocalInspectionBase.java


示例2: canCoerce

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
private static String canCoerce(PsiClass aClass, PsiType type) {
  PsiType collectionItemType = JavaGenericsUtil.getCollectionItemType(type, aClass.getResolveScope());
  if (collectionItemType == null && InheritanceUtil.isInheritor(type, JavaFxCommonClassNames.JAVAFX_BEANS_PROPERTY)) {
    collectionItemType = getPropertyType(type, aClass.getProject());
  }
  if (collectionItemType != null && PsiPrimitiveType.getUnboxedType(collectionItemType) == null) {
    final PsiClass baseClass = PsiUtil.resolveClassInType(collectionItemType);
    if (baseClass != null) {
      final String qualifiedName = baseClass.getQualifiedName();
      if (qualifiedName != null && !Comparing.strEqual(qualifiedName, CommonClassNames.JAVA_LANG_STRING)) {
        if (!InheritanceUtil.isInheritor(aClass, qualifiedName)) {
           return unableToCoerceMessage(aClass, qualifiedName);
        }
      }
    }
  }
  return null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:19,代码来源:JavaFxPsiUtil.java


示例3: visitMethod

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitMethod(PsiMethod method) {
  super.visitMethod(method);
  if (!PsiUtil.getLanguageLevel(method).isAtLeast(LanguageLevel.JDK_1_7)) return;
  if (AnnotationUtil.isAnnotated(method, "java.lang.SafeVarargs", false)) return;
  if (!method.isVarArgs()) return;

  final PsiParameter psiParameter = method.getParameterList().getParameters()[method.getParameterList().getParametersCount() - 1];
  final PsiType componentType = ((PsiEllipsisType)psiParameter.getType()).getComponentType();
  if (JavaGenericsUtil.isReifiableType(componentType)) {
    return;
  }
  for (PsiReference reference : ReferencesSearch.search(psiParameter)) {
    final PsiElement element = reference.getElement();
    if (element instanceof PsiExpression && !PsiUtil.isAccessedForReading((PsiExpression)element)) {
      return;
    }
  }
  final PsiIdentifier nameIdentifier = method.getNameIdentifier();
  if (nameIdentifier != null) {
    //if (method.hasModifierProperty(PsiModifier.ABSTRACT)) return;
    //final PsiClass containingClass = method.getContainingClass();
    //if (containingClass == null || containingClass.isInterface()) return; do not add
    registerProblem(method, nameIdentifier);
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:27,代码来源:PossibleHeapPollutionVarargsInspection.java


示例4: visitTypeCastExpression

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitTypeCastExpression(PsiTypeCastExpression expression) {
  super.visitTypeCastExpression(expression);
  if (IGNORE_UNCHECKED_CAST) return;
  final PsiTypeElement typeElement = expression.getCastType();
  if (typeElement == null) return;
  final PsiType castType = typeElement.getType();
  final PsiExpression operand = expression.getOperand();
  if (operand == null) return;
  final PsiType exprType = operand.getType();
  if (exprType == null) return;
  if (!TypeConversionUtil.areTypesConvertible(exprType, castType)) return;
  if (JavaGenericsUtil.isUncheckedCast(castType, exprType)) {
    final String description =
      JavaErrorMessages.message("generics.unchecked.cast", JavaHighlightUtil.formatType(exprType), JavaHighlightUtil
        .formatType(castType));
    registerProblem(description, expression, myGenerifyFixes);
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:20,代码来源:UncheckedWarningLocalInspection.java


示例5: inferParameterNullability

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@NotNull
public static Nullness inferParameterNullability(@NotNull PsiParameter parameter)
{
	PsiElement parent = parameter.getParent();
	if(parent instanceof PsiParameterList && parent.getParent() instanceof PsiLambdaExpression)
	{
		return getFunctionalParameterNullability((PsiLambdaExpression) parent.getParent(), ((PsiParameterList) parent).getParameterIndex(parameter));
	}
	if(parent instanceof PsiForeachStatement)
	{
		PsiExpression iteratedValue = ((PsiForeachStatement) parent).getIteratedValue();
		if(iteratedValue != null)
		{
			return getTypeNullability(JavaGenericsUtil.getCollectionItemType(iteratedValue));
		}
	}
	return Nullness.UNKNOWN;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:19,代码来源:DfaPsiUtil.java


示例6: visitForeachStatement

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitForeachStatement(PsiForeachStatement statement)
{
	super.visitForeachStatement(statement);
	if(IGNORE_UNCHECKED_ASSIGNMENT)
	{
		return;
	}
	final PsiParameter parameter = statement.getIterationParameter();
	final PsiType parameterType = parameter.getType();
	final PsiExpression iteratedValue = statement.getIteratedValue();
	if(iteratedValue == null)
	{
		return;
	}
	final PsiType itemType = JavaGenericsUtil.getCollectionItemType(iteratedValue);
	LocalQuickFix[] fixes = myOnTheFly ? getChangeVariableTypeFixes(parameter, itemType, myGenerifyFixes) : LocalQuickFix.EMPTY_ARRAY;
	checkRawToGenericsAssignment(parameter, iteratedValue, parameterType, itemType, true, fixes);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:20,代码来源:UncheckedWarningLocalInspectionBase.java


示例7: checkRawToGenericsAssignment

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
private void checkRawToGenericsAssignment(@NotNull PsiElement parameter,
		PsiExpression expression,
		PsiType parameterType,
		PsiType itemType,
		boolean checkAssignability,
		@NotNull LocalQuickFix[] quickFixes)
{
	if(parameterType == null || itemType == null)
	{
		return;
	}
	if(checkAssignability && !TypeConversionUtil.isAssignable(parameterType, itemType))
	{
		return;
	}
	if(JavaGenericsUtil.isRawToGeneric(parameterType, itemType))
	{
		String description = JavaErrorMessages.message("generics.unchecked.assignment", JavaHighlightUtil.formatType(itemType), JavaHighlightUtil.formatType(parameterType));
		registerProblem(description, expression, parameter, quickFixes);
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:22,代码来源:UncheckedWarningLocalInspectionBase.java


示例8: processForeach

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
private PsiType processForeach( PsiElement parentDeclarationScope )
{
  PsiType result = null;
  if( parentDeclarationScope instanceof PsiForeachStatement )
  {
    final PsiForeachStatement foreachStatement = (PsiForeachStatement)parentDeclarationScope;
    final PsiExpression iteratedValue = foreachStatement.getIteratedValue();
    if( iteratedValue != null )
    {
      result = JavaGenericsUtil.getCollectionItemType( iteratedValue );
    }
  }
  return result;
}
 
开发者ID:manifold-systems,项目名称:manifold-ij,代码行数:15,代码来源:VarHandler.java


示例9: visitMethod

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitMethod(PsiMethod method) {
  super.visitMethod(method);
  if (!PsiUtil.getLanguageLevel(method).isAtLeast(LanguageLevel.JDK_1_7)) return;
  if (AnnotationUtil.isAnnotated(method, "java.lang.SafeVarargs", false)) return;
  if (!method.isVarArgs()) return;

  final PsiParameter[] parameters = method.getParameterList().getParameters();
  final PsiParameter psiParameter = parameters[parameters.length - 1];
  if (!psiParameter.isVarArgs()) return;

  final PsiType type = psiParameter.getType();
  LOG.assertTrue(type instanceof PsiEllipsisType, "type: " + type.getCanonicalText() + "; param: " + psiParameter);

  final PsiType componentType = ((PsiEllipsisType)type).getComponentType();
  if (JavaGenericsUtil.isReifiableType(componentType)) {
    return;
  }
  for (PsiReference reference : ReferencesSearch.search(psiParameter)) {
    final PsiElement element = reference.getElement();
    if (element instanceof PsiExpression && !PsiUtil.isAccessedForReading((PsiExpression)element)) {
      return;
    }
  }
  final PsiIdentifier nameIdentifier = method.getNameIdentifier();
  if (nameIdentifier != null) {
    //if (method.hasModifierProperty(PsiModifier.ABSTRACT)) return;
    //final PsiClass containingClass = method.getContainingClass();
    //if (containingClass == null || containingClass.isInterface()) return; do not add
    registerProblem(method, nameIdentifier);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:33,代码来源:PossibleHeapPollutionVarargsInspection.java


示例10: visitReferenceExpression

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitReferenceExpression(PsiReferenceExpression expression) {
  if (IGNORE_UNCHECKED_GENERICS_ARRAY_CREATION) return;
  final JavaResolveResult result = expression.advancedResolve(false);
  if (JavaGenericsUtil.isUncheckedWarning(expression, result, myLanguageLevel)) {
    registerProblem("Unchecked generics array creation for varargs parameter", null, expression, LocalQuickFix.EMPTY_ARRAY);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:UncheckedWarningLocalInspectionBase.java


示例11: visitNewExpression

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitNewExpression(PsiNewExpression expression) {
  super.visitNewExpression(expression);
  if (IGNORE_UNCHECKED_GENERICS_ARRAY_CREATION) return;
  final PsiJavaCodeReferenceElement classReference = expression.getClassOrAnonymousClassReference();
  if (classReference != null && JavaGenericsUtil.isUncheckedWarning(classReference, expression.resolveMethodGenerics(), myLanguageLevel)) {
    registerProblem("Unchecked generics array creation for varargs parameter", expression, classReference, LocalQuickFix.EMPTY_ARRAY);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:UncheckedWarningLocalInspectionBase.java


示例12: visitForeachStatement

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitForeachStatement(PsiForeachStatement statement) {
  super.visitForeachStatement(statement);
  if (IGNORE_UNCHECKED_ASSIGNMENT) return;
  final PsiParameter parameter = statement.getIterationParameter();
  final PsiType parameterType = parameter.getType();
  final PsiExpression iteratedValue = statement.getIteratedValue();
  if (iteratedValue == null) return;
  final PsiType itemType = JavaGenericsUtil.getCollectionItemType(iteratedValue);
  checkRawToGenericsAssignment(parameter, iteratedValue, parameterType, itemType, true, myOnTheFly ? getChangeVariableTypeFixes(parameter, itemType) : LocalQuickFix.EMPTY_ARRAY);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:UncheckedWarningLocalInspectionBase.java


示例13: visitArrayInitializerExpression

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitArrayInitializerExpression(PsiArrayInitializerExpression arrayInitializer) {
  super.visitArrayInitializerExpression(arrayInitializer);
  if (IGNORE_UNCHECKED_ASSIGNMENT) return;
  final PsiType type = arrayInitializer.getType();
  if (!(type instanceof PsiArrayType)) return;
  final PsiType componentType = ((PsiArrayType)type).getComponentType();


  boolean arrayTypeFixChecked = false;
  VariableArrayTypeFix fix = null;

  final PsiExpression[] initializers = arrayInitializer.getInitializers();
  for (PsiExpression expression : initializers) {
    final PsiType itemType = expression.getType();

    if (itemType == null) continue;
    if (!TypeConversionUtil.isAssignable(componentType, itemType)) continue;
    if (JavaGenericsUtil.isRawToGeneric(componentType, itemType)) {
      String description = JavaErrorMessages.message("generics.unchecked.assignment",
                                                     JavaHighlightUtil.formatType(itemType),
                                                     JavaHighlightUtil.formatType(componentType));
      if (!arrayTypeFixChecked) {
        final PsiType checkResult = JavaHighlightUtil.sameType(initializers);
        fix = checkResult != null ? new VariableArrayTypeFix(arrayInitializer, checkResult) : null;
        arrayTypeFixChecked = true;
      }

      if (fix != null) {
        registerProblem(description, null, expression, new LocalQuickFix[]{fix});
      }
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:35,代码来源:UncheckedWarningLocalInspectionBase.java


示例14: checkRawToGenericsAssignment

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
private void checkRawToGenericsAssignment(@NotNull PsiElement parameter,
                                          PsiExpression expression, PsiType parameterType,
                                          PsiType itemType,
                                          boolean checkAssignability,
                                          @NotNull LocalQuickFix[] quickFixes) {
  if (parameterType == null || itemType == null) return;
  if (checkAssignability && !TypeConversionUtil.isAssignable(parameterType, itemType)) return;
  if (JavaGenericsUtil.isRawToGeneric(parameterType, itemType)) {
    String description = JavaErrorMessages.message("generics.unchecked.assignment",
                                                   JavaHighlightUtil.formatType(itemType),
                                                   JavaHighlightUtil.formatType(parameterType));
    registerProblem(description, expression, parameter, quickFixes);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:UncheckedWarningLocalInspectionBase.java


示例15: visitMethod

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitMethod(PsiMethod method) {
  super.visitMethod(method);
  if (IGNORE_UNCHECKED_OVERRIDING) return;
  if (!method.isConstructor()) {
    List<HierarchicalMethodSignature> superMethodSignatures = method.getHierarchicalMethodSignature().getSuperSignatures();
    if (!superMethodSignatures.isEmpty() && !method.hasModifierProperty(PsiModifier.STATIC)) {
      final MethodSignature signature = method.getSignature(PsiSubstitutor.EMPTY);
      for (MethodSignatureBackedByPsiMethod superSignature : superMethodSignatures) {
        PsiMethod baseMethod = superSignature.getMethod();
        PsiSubstitutor substitutor = MethodSignatureUtil.getSuperMethodSignatureSubstitutor(signature, superSignature);
        if (substitutor == null) substitutor = superSignature.getSubstitutor();
        if (PsiUtil.isRawSubstitutor(baseMethod, superSignature.getSubstitutor())) continue;
        final PsiType baseReturnType = substitutor.substitute(baseMethod.getReturnType());
        final PsiType overriderReturnType = method.getReturnType();
        if (baseReturnType == null || overriderReturnType == null) return;
        if (JavaGenericsUtil.isRawToGeneric(baseReturnType, overriderReturnType)) {
          final String message = JavaErrorMessages.message("unchecked.overriding.incompatible.return.type",
                                                           JavaHighlightUtil.formatType(overriderReturnType),
                                                           JavaHighlightUtil.formatType(baseReturnType));

          final PsiTypeElement returnTypeElement = method.getReturnTypeElement();
          LOG.assertTrue(returnTypeElement != null);
          registerProblem(message, null, returnTypeElement, LocalQuickFix.EMPTY_ARRAY);
        }
      }
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:30,代码来源:UncheckedWarningLocalInspectionBase.java


示例16: invoke

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void invoke(@NotNull Project project, Editor editor, @NotNull PsiElement element) throws IncorrectOperationException {
  if (!FileModificationService.getInstance().preparePsiElementsForWrite(element)) return;
  final XmlAttribute attr = (XmlAttribute)element.getParent();
  final String name = attr.getName();
  final XmlAttributeDescriptor descriptor = attr.getDescriptor();
  LOG.assertTrue(descriptor != null);
  String value = attr.getValue();
  final PsiElement declaration = descriptor.getDeclaration();
  if (declaration instanceof PsiField) {
    final PsiType fieldType = ((PsiField)declaration).getType();
    final PsiType itemType = JavaGenericsUtil.getCollectionItemType(fieldType, declaration.getResolveScope());
    if (itemType != null) {
      final String typeNode = itemType.getPresentableText();
      JavaFxPsiUtil.insertImportWhenNeeded((XmlFile)attr.getContainingFile(), typeNode, itemType.getCanonicalText());
      final String[] vals = value.split(",");
      value = StringUtil.join(vals, new Function<String, String>() {
        @Override
        public String fun(String s) {
          return "<" + typeNode + " " + FxmlConstants.FX_VALUE + "=\"" + s.trim() + "\"/>";
        }
      }, "\n");
    }
  }
  final XmlTag childTag = XmlElementFactory.getInstance(project).createTagFromText("<" + name + ">" + value + "</" + name + ">");
  attr.getParent().add(childTag);
  attr.delete();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:29,代码来源:JavaFxExpandAttributeIntention.java


示例17: visitReferenceExpression

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitReferenceExpression(PsiReferenceExpression expression) {
  if (IGNORE_UNCHECKED_GENERICS_ARRAY_CREATION) return;
  final JavaResolveResult result = expression.advancedResolve(false);
  if (JavaGenericsUtil.isUncheckedWarning(expression, result, myLanguageLevel)) {
    registerProblem("Unchecked generics array creation for varargs parameter", expression, LocalQuickFix.EMPTY_ARRAY);
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:UncheckedWarningLocalInspection.java


示例18: visitNewExpression

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitNewExpression(PsiNewExpression expression) {
  super.visitNewExpression(expression);
  if (IGNORE_UNCHECKED_GENERICS_ARRAY_CREATION) return;
  final PsiJavaCodeReferenceElement classReference = expression.getClassOrAnonymousClassReference();
  if (classReference != null && JavaGenericsUtil.isUncheckedWarning(classReference, expression.resolveMethodGenerics(), myLanguageLevel)) {
    registerProblem("Unchecked generics array creation for varargs parameter", classReference, LocalQuickFix.EMPTY_ARRAY);
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:10,代码来源:UncheckedWarningLocalInspection.java


示例19: visitForeachStatement

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitForeachStatement(PsiForeachStatement statement) {
  super.visitForeachStatement(statement);
  if (IGNORE_UNCHECKED_ASSIGNMENT) return;
  final PsiParameter parameter = statement.getIterationParameter();
  final PsiType parameterType = parameter.getType();
  final PsiExpression iteratedValue = statement.getIteratedValue();
  if (iteratedValue == null) return;
  final PsiType itemType = JavaGenericsUtil.getCollectionItemType(iteratedValue);
  checkRawToGenericsAssignment(parameter, parameterType, itemType, true, myOnTheFly ? getChangeVariableTypeFixes(parameter, itemType) : LocalQuickFix.EMPTY_ARRAY);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:UncheckedWarningLocalInspection.java


示例20: visitArrayInitializerExpression

import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil; //导入依赖的package包/类
@Override
public void visitArrayInitializerExpression(PsiArrayInitializerExpression arrayInitializer) {
  super.visitArrayInitializerExpression(arrayInitializer);
  if (IGNORE_UNCHECKED_ASSIGNMENT) return;
  final PsiType type = arrayInitializer.getType();
  if (!(type instanceof PsiArrayType)) return;
  final PsiType componentType = ((PsiArrayType)type).getComponentType();


  boolean arrayTypeFixChecked = false;
  VariableArrayTypeFix fix = null;

  final PsiExpression[] initializers = arrayInitializer.getInitializers();
  for (PsiExpression expression : initializers) {
    final PsiType itemType = expression.getType();

    if (itemType == null) continue;
    if (!TypeConversionUtil.isAssignable(componentType, itemType)) continue;
    if (JavaGenericsUtil.isRawToGeneric(componentType, itemType)) {
      String description = JavaErrorMessages.message("generics.unchecked.assignment",
                                                     JavaHighlightUtil.formatType(itemType),
                                                     JavaHighlightUtil.formatType(componentType));
      if (!arrayTypeFixChecked) {
        final PsiType checkResult = JavaHighlightUtil.sameType(initializers);
        fix = checkResult != null ? new VariableArrayTypeFix(arrayInitializer, checkResult) : null;
        arrayTypeFixChecked = true;
      }

      if (fix != null) {
        registerProblem(description, expression, new LocalQuickFix[]{fix});
      }
    }
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:35,代码来源:UncheckedWarningLocalInspection.java



注:本文中的com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ListGrid类代码示例发布时间:2022-05-23
下一篇:
Java ASN1Integer类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap