Null implementation of quality.
344235
def do_quality(self, quality):
        """"""
        if (self.api_version >= '2.0'):
            if (quality != "default"):
                raise IIIFError(code=501, parameter="default",
                                text="Null manipulator supports only quality=default.")
        else:  # versions 1.0 and 1.1
            if (quality != "native"):
                raise IIIFError(code=501, parameter="native",
                                text="Null manipulator supports only quality=native.")
1345755
public static void checkNull(Object o, Object value) {
        if (o != null)
            error(String.valueOf(value));
    }
1017552
@CanIgnoreReturnValue
  public static <T> T checkNotNull(T reference) {
    if (reference == null) {
      throw new NullPointerException();
    }
    return reference;
  }
970856
public static void assertNull(String message, Object object) {
        if (object == null) {
            return;
        }
        failNotNull(message, object);
    }
816138
public static void requireArgNotNull(@NotNull final String name, final Object value) throws ConstraintViolationException {
        // CHECKSTYLE:ON
        if (value == null) {
            throw new ConstraintViolationException("The argument '" + name + "' cannot be null");
        }
    }
562939
public static void assertNull(Object object, String message) {
		if (imp != null && object != null) {
			imp.assertFailed(message);
		}
	}
754739
private void processNullLayouts(String className, String methodName) {
        if ("java/awt/Container".equals(className) && "setLayout".equals(methodName) && (stack.getStackDepth() > 0) && stack.getStackItem(0).isNull()) {
            bugReporter.reportBug(new BugInstance(this, BugType.S508C_NULL_LAYOUT.name(), NORMAL_PRIORITY).addClass(this).addMethod(this).addSourceLine(this));
        }
    }
349526
@SuppressFBWarnings("NP_BOOLEAN_RETURN_NULL")
    static Boolean isObjectLayoutCompressedOopsOrNull() {
        if (!UNSAFE_AVAILABLE) {
            return null;
        }

        Integer referenceSize = ReferenceSizeEstimator.getReferenceSizeOrNull();
        if (referenceSize == null) {
            return null;
        }

        // when reference size does not equal address size then it's safe to assume references are compressed
        return referenceSize != UNSAFE.addressSize();
    }
911716
public static <O extends Object> void notNull(O o) {
		if(!validation) return;
		if(o == null)
			throw new ParameterException(ErrorCode.NULLPOINTER);
	}
387162
public void setIntIfNotNull(@NotNull final String key, @Nullable final Integer value) {
        if (null != value) {
            setInt(key, value);
        }
    }
39393
private void processQualityViolationsScore(
    QualityScoreSettings.ViolationsScoreSettings qualityViolationsSettings,
    Iterable<CodeQuality> codeQualityIterable,
    List<ScoreWeight> categoryScores) {
    ScoreWeight qualityViolationsScore = getCategoryScoreByIdName(categoryScores, WIDGET_QUALITY_VIOLATIONS_ID_NAME);
    Double qualityBlockerRatio = fetchQualityValue(codeQualityIterable, QUALITY_PARAM_BLOCKER_VIOLATIONS);
    Double qualityCriticalRatio = fetchQualityValue(codeQualityIterable, QUALITY_PARAM_CRITICAL_VIOLATIONS);
    Double qualityMajorRatio = fetchQualityValue(codeQualityIterable, QUALITY_PARAM_MAJOR_VIOLATIONS);

    if (null == qualityBlockerRatio && null == qualityCriticalRatio && null == qualityMajorRatio) {
      qualityViolationsScore.setScore(
        qualityViolationsSettings.getCriteria().getNoDataFound()
      );
      qualityViolationsScore.setMessage(Constants.SCORE_ERROR_NO_DATA_FOUND);
      qualityViolationsScore.setState(ScoreWeight.ProcessingState.criteria_failed);
    } else {
      try {
        //Violation score is calculated based on weight for each type
        // Blocker
        // Critical
        // Major
        Double violationScore = Double.valueOf(Constants.MAX_SCORE) - (
            getViolationScore(qualityBlockerRatio, qualityViolationsSettings.getBlockerViolationsWeight()) +
            getViolationScore(qualityCriticalRatio, qualityViolationsSettings.getCriticalViolationsWeight()) +
            getViolationScore(qualityMajorRatio, qualityViolationsSettings.getMajorViolationWeight())
          );

        if (!qualityViolationsSettings.isAllowNegative() && violationScore.compareTo(Constants.ZERO_SCORE) < 0) {
          violationScore = Constants.ZERO_SCORE;
        }

        //Check thresholds at widget level
        checkPercentThresholds(qualityViolationsSettings, violationScore);
        qualityViolationsScore.setScore(
          new ScoreTypeValue(violationScore)
        );
        qualityViolationsScore.setState(ScoreWeight.ProcessingState.complete);
      } catch (ThresholdException ex) {
        setThresholdFailureWeight(ex, qualityViolationsScore);
      }
    }
  }
967533
def set_quality(self, quality):
        
        if isinstance(quality, *six.string_types):
            quality = int(quality)
        elif isinstance(quality, float):
            quality = int(quality)

        self._quality = validate_type(quality, type(None), *six.integer_types)
1059698
final public void Null() throws ParseException {
                     /*@bgen(jjtree) Null */
  AstNull jjtn000 = new AstNull(JJTNULL);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(NULL);
    } finally {
      if (jjtc000) {
        jjtree.closeNodeScope(jjtn000, true);
      }
    }
  }
266988
protected static <U> U nullCheck(U value, String message) {
        if (value == null) {
            throw new NullPointerException(message);
        }
        return value;
    }
600209
private void processQualityUTScore(
    ScoreComponentSettings qualityUTSettings,
    Iterable<CodeQuality> codeQualityIterable,
    List<ScoreWeight> categoryScores) {
    ScoreWeight qualityUTScore = getCategoryScoreByIdName(categoryScores, WIDGET_QUALITY_UT_ID_NAME);
    Double qualityUTRatio = fetchQualityValue(codeQualityIterable, QUALITY_PARAM_UT);

    if (null == qualityUTRatio) {
      qualityUTScore.setScore(
        qualityUTSettings.getCriteria().getNoDataFound()
      );
      qualityUTScore.setMessage(Constants.SCORE_ERROR_NO_DATA_FOUND);
      qualityUTScore.setState(ScoreWeight.ProcessingState.criteria_failed);
    } else {
      try {
        //Check thresholds at widget level
        checkPercentThresholds(qualityUTSettings, qualityUTRatio);
        qualityUTScore.setScore(
          new ScoreTypeValue(qualityUTRatio)
        );
        qualityUTScore.setState(ScoreWeight.ProcessingState.complete);
      } catch (ThresholdException ex) {
        setThresholdFailureWeight(ex, qualityUTScore);
      }
    }
  }
433545
public void setStringIfNotNull(@NotNull final String key, @Nullable final String value) {
        if (null != value) {
            setString(key, value);
        }
    }
1200546
static void checkNotNull(Object o, String arg) {
    if (o == null) {
      throw new IllegalArgumentException(String.format("'%s' must not be null.", arg));
    }
  }