gpt4 book ai didi

edu.umd.cs.findbugs.ba.XField.isProtected()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 15:48:40 27 4
gpt4 key购买 nike

本文整理了Java中edu.umd.cs.findbugs.ba.XField.isProtected()方法的一些代码示例,展示了XField.isProtected()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XField.isProtected()方法的具体详情如下:
包路径:edu.umd.cs.findbugs.ba.XField
类名称:XField
方法名:isProtected

XField.isProtected介绍

暂无

代码示例

代码示例来源:origin: spotbugs/spotbugs

private boolean interesting(XField f) {
  if (!f.isPublic() && !f.isProtected()) {
    return false;
  }
  if (!f.isStatic() || f.isSynthetic() || f.isVolatile()) {
    return false;
  }
  if (!f.isFinal()) {
    return true;
  }
  boolean isArray = f.getSignature().charAt(0) == '[';
  if (!(isArray || isCollection(f.getSignature()))) {
    return false;
  }
  return true;
}

代码示例来源:origin: spotbugs/spotbugs

XField f = getXFieldOperand();
if (f != null) {
  if (f.isFinal() || !f.isProtected() && !f.isPublic()) {
    if (emptyArrayOnTOS) {
      emptyArray.add(f);

代码示例来源:origin: spotbugs/spotbugs

if (!fld.isStatic() && (fld.isPublic() || fld.isProtected())) {
  fieldName = fld.getName();
  if (fieldName.length() == 1) {

代码示例来源:origin: spotbugs/spotbugs

if (f.isProtected() || f.isPublic()) {
  pattern = "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD";
  priority--;
String pattern = (f.isPublic() || f.isProtected()) ? "NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD"
    : "NP_UNWRITTEN_FIELD";
for (ProgramPoint p : assumedNonNullAt) {
      (f.isPublic() || f.isProtected()) ? "UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD" : "UUF_UNUSED_FIELD",
          NORMAL_PRIORITY).addClass(className).addField(f).lowerPriorityIfDeprecated());
} else if (f.getName().toLowerCase().indexOf("guardian") < 0) {
      (f.isPublic() || f.isProtected()) ? "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" : "URF_UNREAD_FIELD",
          priority), f));

代码示例来源:origin: spotbugs/spotbugs

if(field instanceof XField) {
  XField xField = (XField)field;
  if((xField.isPublic() || xField.isProtected())) {
    XClass xClass = AnalysisContext.currentXFactory().getXClass(xField.getClassDescriptor());
    if(xClass != null && xClass.isPublic()) {

代码示例来源:origin: spotbugs/spotbugs

if (xfield.isPublic() || xfield.isProtected()) {
  continue;

代码示例来源:origin: com.google.code.findbugs/findbugs

private boolean interesting(XField f) {
  if (!f.isPublic() && !f.isProtected()) {
    return false;
  }
  if (!f.isStatic() || f.isSynthetic() || f.isVolatile()) {
    return false;
  }
  if (!f.isFinal()) {
    return true;
  }
  boolean isArray = f.getSignature().charAt(0) == '[';
  if (!(isArray || isCollection(f.getSignature()))) {
    return false;
  }
  return true;
}

代码示例来源:origin: com.google.code.findbugs/findbugs

XField f = getXFieldOperand();
if (f != null) {
  if (f.isFinal() || !f.isProtected() && !f.isPublic()) {
    if (emptyArrayOnTOS) {
      emptyArray.add(f);

代码示例来源:origin: com.google.code.findbugs/findbugs

if (f.isProtected() || f.isPublic()) {
  pattern = "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD";
  priority--;
String pattern = (f.isPublic() || f.isProtected()) ? "NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD"
    : "NP_UNWRITTEN_FIELD";
for (ProgramPoint p : assumedNonNullAt) {
      (f.isPublic() || f.isProtected()) ? "UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD" : "UUF_UNUSED_FIELD",
          NORMAL_PRIORITY).addClass(className).addField(f).lowerPriorityIfDeprecated());
} else if (f.getName().toLowerCase().indexOf("guardian") < 0) {
      (f.isPublic() || f.isProtected()) ? "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" : "URF_UNREAD_FIELD",
          priority), f));

代码示例来源:origin: com.google.code.findbugs/findbugs

if (!fld.isStatic() && (fld.isPublic() || fld.isProtected())) {
  fieldName = fld.getName();
  if (fieldName.length() == 1) {

代码示例来源:origin: com.google.code.findbugs/findbugs

if(field instanceof XField) {
  XField xField = (XField)field;
  if((xField.isPublic() || xField.isProtected())) {
    XClass xClass = AnalysisContext.currentXFactory().getXClass(xField.getClassDescriptor());
    if(xClass != null && xClass.isPublic()) {

代码示例来源:origin: com.google.code.findbugs/findbugs

if (xfield.isPublic() || xfield.isProtected()) {
  continue;

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com