Program: 92918
Project: 92918
Buggy source:
/** 
 * Returns a descriptive value of the the specified tag for this image. Where possible, known values will be substituted here in place of the raw tokens actually kept in the Exif segment.  If no substitution is available, the value provided by getString(int) will be returned.
 * @param tagType the tag to find a description for
 * @return a description of the image's value for the specified tag, or<code>null</code> if the tag hasn't been defined.
 */
@Nullable public String getDescription(int tagType){
switch (tagType) {
case TAG_NEW_SUBFILE_TYPE:
    return getNewSubfileTypeDescription();
case TAG_SUBFILE_TYPE:
  return getSubfileTypeDescription();
case TAG_THRESHOLDING:
return getThresholdingDescription();
case TAG_FILL_ORDER:
return getFillOrderDescription();
case TAG_EXPOSURE_TIME:
return getExposureTimeDescription();
case TAG_SHUTTER_SPEED:
return getShutterSpeedDescription();
case TAG_FNUMBER:
return getFNumberDescription();
case TAG_COMPRESSED_AVERAGE_BITS_PER_PIXEL:
return getCompressedAverageBitsPerPixelDescription();
case TAG_SUBJECT_DISTANCE:
return getSubjectDistanceDescription();
case TAG_METERING_MODE:
return getMeteringModeDescription();
case TAG_WHITE_BALANCE:
return getWhiteBalanceDescription();
case TAG_FLASH:
return getFlashDescription();
case TAG_FOCAL_LENGTH:
return getFocalLengthDescription();
case TAG_COLOR_SPACE:
return getColorSpaceDescription();
case TAG_EXIF_IMAGE_WIDTH:
return getExifImageWidthDescription();
case TAG_EXIF_IMAGE_HEIGHT:
return getExifImageHeightDescription();
case TAG_FOCAL_PLANE_RESOLUTION_UNIT:
return getFocalPlaneResolutionUnitDescription();
case TAG_FOCAL_PLANE_X_RESOLUTION:
return getFocalPlaneXResolutionDescription();
case TAG_FOCAL_PLANE_Y_RESOLUTION:
return getFocalPlaneYResolutionDescription();
case TAG_BITS_PER_SAMPLE:
return getBitsPerSampleDescription();
case TAG_PHOTOMETRIC_INTERPRETATION:
return getPhotometricInterpretationDescription();
case TAG_ROWS_PER_STRIP:
return getRowsPerStripDescription();
case TAG_STRIP_BYTE_COUNTS:
return getStripByteCountsDescription();
case TAG_SAMPLES_PER_PIXEL:
return getSamplesPerPixelDescription();
case TAG_PLANAR_CONFIGURATION:
return getPlanarConfigurationDescription();
case TAG_YCBCR_SUBSAMPLING:
return getYCbCrSubsamplingDescription();
case TAG_EXPOSURE_PROGRAM:
return getExposureProgramDescription();
case TAG_APERTURE:
return getApertureValueDescription();
case TAG_MAX_APERTURE:
return getMaxApertureValueDescription();
case TAG_SENSING_METHOD:
return getSensingMethodDescription();
case TAG_EXPOSURE_BIAS:
return getExposureBiasDescription();
case TAG_FILE_SOURCE:
return getFileSourceDescription();
case TAG_SCENE_TYPE:
return getSceneTypeDescription();
case TAG_COMPONENTS_CONFIGURATION:
return getComponentConfigurationDescription();
case TAG_EXIF_VERSION:
return getExifVersionDescription();
case TAG_FLASHPIX_VERSION:
return getFlashPixVersionDescription();
case TAG_ISO_EQUIVALENT:
return getIsoEquivalentDescription();
case TAG_USER_COMMENT:
return getUserCommentDescription();
case TAG_CUSTOM_RENDERED:
return getCustomRenderedDescription();
case TAG_EXPOSURE_MODE:
return getExposureModeDescription();
case TAG_WHITE_BALANCE_MODE:
return getWhiteBalanceModeDescription();
case TAG_DIGITAL_ZOOM_RATIO:
return getDigitalZoomRatioDescription();
case TAG_35MM_FILM_EQUIV_FOCAL_LENGTH:
return get35mmFilmEquivFocalLengthDescription();
case TAG_SCENE_CAPTURE_TYPE:
return getSceneCaptureTypeDescription();
case TAG_GAIN_CONTROL:
return getGainControlDescription();
case TAG_CONTRAST:
return getContrastDescription();
case TAG_SATURATION:
return getSaturationDescription();
case TAG_SHARPNESS:
return getSharpnessDescription();
case TAG_SUBJECT_DISTANCE_RANGE:
return getSubjectDistanceRangeDescription();
default :
return super.getDescription(tagType);
}
}

Fixed version (ground truth):
/** 
 * Returns a descriptive value of the specified tag for this image. Where possible, known values will be substituted here in place of the raw tokens actually kept in the Exif segment.  If no substitution is available, the value provided by getString(int) will be returned.
 * @param tagType the tag to find a description for
 * @return a description of the image's value for the specified tag, or<code>null</code> if the tag hasn't been defined.
 */
@Nullable public String getDescription(int tagType){
switch (tagType) {
case TAG_NEW_SUBFILE_TYPE:
    return getNewSubfileTypeDescription();
case TAG_SUBFILE_TYPE:
  return getSubfileTypeDescription();
case TAG_THRESHOLDING:
return getThresholdingDescription();
case TAG_FILL_ORDER:
return getFillOrderDescription();
case TAG_EXPOSURE_TIME:
return getExposureTimeDescription();
case TAG_SHUTTER_SPEED:
return getShutterSpeedDescription();
case TAG_FNUMBER:
return getFNumberDescription();
case TAG_COMPRESSED_AVERAGE_BITS_PER_PIXEL:
return getCompressedAverageBitsPerPixelDescription();
case TAG_SUBJECT_DISTANCE:
return getSubjectDistanceDescription();
case TAG_METERING_MODE:
return getMeteringModeDescription();
case TAG_WHITE_BALANCE:
return getWhiteBalanceDescription();
case TAG_FLASH:
return getFlashDescription();
case TAG_FOCAL_LENGTH:
return getFocalLengthDescription();
case TAG_COLOR_SPACE:
return getColorSpaceDescription();
case TAG_EXIF_IMAGE_WIDTH:
return getExifImageWidthDescription();
case TAG_EXIF_IMAGE_HEIGHT:
return getExifImageHeightDescription();
case TAG_FOCAL_PLANE_RESOLUTION_UNIT:
return getFocalPlaneResolutionUnitDescription();
case TAG_FOCAL_PLANE_X_RESOLUTION:
return getFocalPlaneXResolutionDescription();
case TAG_FOCAL_PLANE_Y_RESOLUTION:
return getFocalPlaneYResolutionDescription();
case TAG_BITS_PER_SAMPLE:
return getBitsPerSampleDescription();
case TAG_PHOTOMETRIC_INTERPRETATION:
return getPhotometricInterpretationDescription();
case TAG_ROWS_PER_STRIP:
return getRowsPerStripDescription();
case TAG_STRIP_BYTE_COUNTS:
return getStripByteCountsDescription();
case TAG_SAMPLES_PER_PIXEL:
return getSamplesPerPixelDescription();
case TAG_PLANAR_CONFIGURATION:
return getPlanarConfigurationDescription();
case TAG_YCBCR_SUBSAMPLING:
return getYCbCrSubsamplingDescription();
case TAG_EXPOSURE_PROGRAM:
return getExposureProgramDescription();
case TAG_APERTURE:
return getApertureValueDescription();
case TAG_MAX_APERTURE:
return getMaxApertureValueDescription();
case TAG_SENSING_METHOD:
return getSensingMethodDescription();
case TAG_EXPOSURE_BIAS:
return getExposureBiasDescription();
case TAG_FILE_SOURCE:
return getFileSourceDescription();
case TAG_SCENE_TYPE:
return getSceneTypeDescription();
case TAG_COMPONENTS_CONFIGURATION:
return getComponentConfigurationDescription();
case TAG_EXIF_VERSION:
return getExifVersionDescription();
case TAG_FLASHPIX_VERSION:
return getFlashPixVersionDescription();
case TAG_ISO_EQUIVALENT:
return getIsoEquivalentDescription();
case TAG_USER_COMMENT:
return getUserCommentDescription();
case TAG_CUSTOM_RENDERED:
return getCustomRenderedDescription();
case TAG_EXPOSURE_MODE:
return getExposureModeDescription();
case TAG_WHITE_BALANCE_MODE:
return getWhiteBalanceModeDescription();
case TAG_DIGITAL_ZOOM_RATIO:
return getDigitalZoomRatioDescription();
case TAG_35MM_FILM_EQUIV_FOCAL_LENGTH:
return get35mmFilmEquivFocalLengthDescription();
case TAG_SCENE_CAPTURE_TYPE:
return getSceneCaptureTypeDescription();
case TAG_GAIN_CONTROL:
return getGainControlDescription();
case TAG_CONTRAST:
return getContrastDescription();
case TAG_SATURATION:
return getSaturationDescription();
case TAG_SHARPNESS:
return getSharpnessDescription();
case TAG_SUBJECT_DISTANCE_RANGE:
return getSubjectDistanceRangeDescription();
default :
return super.getDescription(tagType);
}
}