当前位置: 首页>>代码示例>>Java>>正文


Java GroupNames.BUGS_GROUP_NAME属性代码示例

本文整理汇总了Java中com.intellij.codeInsight.daemon.GroupNames.BUGS_GROUP_NAME属性的典型用法代码示例。如果您正苦于以下问题:Java GroupNames.BUGS_GROUP_NAME属性的具体用法?Java GroupNames.BUGS_GROUP_NAME怎么用?Java GroupNames.BUGS_GROUP_NAME使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.intellij.codeInsight.daemon.GroupNames的用法示例。


在下文中一共展示了GroupNames.BUGS_GROUP_NAME属性的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getGroupDisplayName

@Nls
@NotNull
@Override
public String getGroupDisplayName()
{
	return GroupNames.BUGS_GROUP_NAME;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:7,代码来源:MagicConstantInspection.java

示例2: getGroupDisplayName

@Nls
@NotNull
@Override
public String getGroupDisplayName() {
    return GroupNames.BUGS_GROUP_NAME;
}
 
开发者ID:cedricziel,项目名称:idea-php-typo3-plugin,代码行数:6,代码来源:MissingColumnTypeInspection.java

示例3: getGroupDisplayName

@NotNull
public String getGroupDisplayName() {
  return GroupNames.BUGS_GROUP_NAME;
}
 
开发者ID:appetizerio,项目名称:appetizer-intellij,代码行数:4,代码来源:ReplaceInspection.java

示例4: getGroupDisplayName

@Override
@NotNull
public String getGroupDisplayName() {
  return GroupNames.BUGS_GROUP_NAME;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:SuspiciousNameCombinationInspectionBase.java

示例5: getGroupDisplayName

@Nls
@NotNull
@Override
public String getGroupDisplayName() {
  return GroupNames.BUGS_GROUP_NAME;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:MagicConstantInspection.java

示例6: getGroupDisplayName

@NotNull
@Override
public String getGroupDisplayName() {
  return GroupNames.BUGS_GROUP_NAME;
}
 
开发者ID:SiimKinks,项目名称:sqlitemagic,代码行数:5,代码来源:SqliteMagicInspection.java

示例7: getGroupDisplayName

@NotNull
public String getGroupDisplayName() {
    return GroupNames.BUGS_GROUP_NAME;
}
 
开发者ID:srichard,项目名称:mfgen,代码行数:4,代码来源:InspectingMetaFields.java

示例8: checkForDataFieldInitializationProblems

public static void checkForDataFieldInitializationProblems(final ProblemsHolder holder,
                                                           final PsiAnnotation annotation) {
  final PsiElement ownerElement = Util.getImmediateOwnerElement(annotation);

  final boolean fieldIsInject = Util.fieldOrMethodIsAnnotated(ownerElement, Types.JAVAX_INJECT);
  final boolean fieldInitialized = Util.fieldElementIsInitialized(ownerElement);
  if (!fieldIsInject && !fieldInitialized) {
    holder.registerProblem(ownerElement, "Un-injected @DataField element is not initialized and may fail at runtime.");
  }
  else if (fieldIsInject && fieldInitialized) {
    final LocalQuickFix localQuickFix = new LocalQuickFix() {
      @NotNull
      @Override
      public String getName() {
        return "Remove @Inject annotation";
      }

      @NotNull
      @Override
      public String getFamilyName() {
        return GroupNames.BUGS_GROUP_NAME;
      }

      @Override
      public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
        final PsiElement psiElement = Util.getImmediateOwnerElement(annotation);
        final PsiField psiField = (PsiField) psiElement;
        final PsiModifierList modifierList = psiField.getModifierList();
        if (modifierList != null) {
          for (PsiAnnotation psiAnnotation : modifierList.getAnnotations()) {
            final String qualifiedName = psiAnnotation.getQualifiedName();
            if (qualifiedName != null && qualifiedName.equals(Types.JAVAX_INJECT)) {
              psiAnnotation.delete();
            }
          }
        }
      }
    };

    if (ownerElement != null) {
      holder.registerProblem(ownerElement, "Injected @DataField element has a default value which will be overwritten at runtime.",
          localQuickFix);
    }
  }
}
 
开发者ID:errai,项目名称:errai-intellij-idea-plugin,代码行数:45,代码来源:UIDataFieldInitProblemsInspection.java

示例9: ensureDataFieldIsValid

public static void ensureDataFieldIsValid(final ProblemsHolder holder,
                                          final PsiAnnotation annotation) {
  final PsiElement ownerElement = Util.getImmediateOwnerElement(annotation);

  final boolean fieldIsInject = Util.fieldOrMethodIsAnnotated(ownerElement, Types.JAVAX_INJECT);
  final boolean fieldInitialized = Util.fieldElementIsInitialized(ownerElement);
  if (!fieldIsInject && !fieldInitialized) {
    holder.registerProblem(ownerElement, "Un-injected @DataField element is not initialized and may fail at runtime.");
  }
  else if (fieldIsInject && fieldInitialized) {
    final LocalQuickFix localQuickFix = new LocalQuickFix() {
      @NotNull
      @Override
      public String getName() {
        return "Remove @Inject annotation";
      }

      @NotNull
      @Override
      public String getFamilyName() {
        return GroupNames.BUGS_GROUP_NAME;
      }

      @Override
      public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
        final PsiElement psiElement = Util.getImmediateOwnerElement(annotation);
        final PsiField psiField = (PsiField) psiElement;
        final PsiModifierList modifierList = psiField.getModifierList();
        if (modifierList != null) {
          for (PsiAnnotation psiAnnotation : modifierList.getAnnotations()) {
            final String qualifiedName = psiAnnotation.getQualifiedName();
            if (qualifiedName != null && qualifiedName.equals(Types.JAVAX_INJECT)) {
              psiAnnotation.delete();
            }
          }
        }
      }
    };

    if (ownerElement != null) {
      holder.registerProblem(ownerElement, "Injected @DataField element has a default value which will be overwritten at runtime.",
          localQuickFix);
    }
  }
}
 
开发者ID:errai,项目名称:errai-intellij-idea-plugin,代码行数:45,代码来源:UITemplateCodeSmellInspections.java

示例10: getGroupDisplayName

@Override
@NotNull
public String getGroupDisplayName()
{
	return GroupNames.BUGS_GROUP_NAME;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:6,代码来源:DataFlowInspectionBase.java


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