Format a string describing this bug instance.

@return the description
426915
@Nonnull
    public String getMessageWithoutPrefix() {
        BugPattern bugPattern = getBugPattern();
        String pattern, shortPattern;

        pattern = getLongDescription();
        shortPattern = bugPattern.getShortDescription();
        try {
            FindBugsMessageFormat format = new FindBugsMessageFormat(pattern);
            return format.format(annotationList.toArray(new BugAnnotation[annotationList.size()]), getPrimaryClass());
        } catch (RuntimeException e) {
            AnalysisContext.logError("Error generating bug msg ", e);
            return shortPattern + " [Error generating customized description]";
        }
    }
1092422
public String fancyFormat() {
		StringWriter sw = new StringWriter();
		PrintWriter pw = new PrintWriter(sw);
		pw.println("[" + name + "]");

		for (int i = 0; configEntries != null && i < configEntries.length; i++) {
			pw.println("[CacheEntry " + i + "]");
			pw.println(configEntries[i].fancyFormat());
		}
		return sw.toString();
	}
1206173
public String format(){
		final StringBuilder sb = new StringBuilder();
		if(betweenMs > 0){
			long day = betweenMs / DateUnit.DAY.getMillis();
			long hour = betweenMs / DateUnit.HOUR.getMillis() - day * 24;
			long minute = betweenMs / DateUnit.MINUTE.getMillis() - day * 24 * 60 - hour * 60;
			long second = betweenMs / DateUnit.SECOND.getMillis() - ((day * 24 + hour) * 60 + minute) * 60;
			long millisecond = betweenMs - (((day * 24 + hour) * 60 + minute) * 60 + second) * 1000;
			
			final int level = this.level.ordinal();
			int levelCount = 0;
			
			if(isLevelCountValid(levelCount) && 0 != day && level >= Level.DAY.ordinal()){
				sb.append(day).append(Level.DAY.name);
				levelCount++;
			}
			if(isLevelCountValid(levelCount) && 0 != hour && level >= Level.HOUR.ordinal()){
				sb.append(hour).append(Level.HOUR.name);
				levelCount++;
			}
			if(isLevelCountValid(levelCount) && 0 != minute && level >= Level.MINUTE.ordinal()){
				sb.append(minute).append(Level.MINUTE.name);
				levelCount++;
			}
			if(isLevelCountValid(levelCount) && 0 != second && level >= Level.SECOND.ordinal()){
				sb.append(second).append(Level.SECOND.name);
				levelCount++;
			}
			if(isLevelCountValid(levelCount) && 0 != millisecond && level >= Level.MILLSECOND.ordinal()){
				sb.append(millisecond).append(Level.MILLSECOND.name);
				levelCount++;
			}
		}
		
		if(StrUtil.isEmpty(sb)) {
			sb.append(0).append(this.level.name);
		}
		
		return sb.toString();
	}
773803
private String format(String message, Object[] params) {
        if (params.length == 0) {
            return message;
        } else if (params.length == 1 && params[0] instanceof Throwable) {
            // We print only the message here since breaking exception will bubble up
            // anyway
            return message + ": " + params[0].toString();
        } else {
            return String.format(message, params);
        }
    }
686791
public String reason() {
        Description description = new StringDescription();
        condition.describeDissatisfactionTo(description);
        return description.toString();
    }
770838
public String format(String format)
    {
        Matcher m = REF.matcher(format);
        StringBuffer sb = new StringBuffer();
        while (m.find())
        {
            Object ob = get(m.group(1));
            if (ob != null)
            {
                m.appendReplacement(sb, ob.toString());
            }
            else
            {
                m.appendReplacement(sb, m.group());
            }
        }
        m.appendTail(sb);
        return sb.toString();
    }
625585
def format_description(self, description):
        
        if not description: return ""
        desc_width = self.width - self.current_indent
        indent = " "*self.current_indent
        # the above is still the same
        bits = description.split('\n')
        formatted_bits = [
            textwrap.fill(bit,
                desc_width,
                initial_indent=indent,
                subsequent_indent=indent)
            for bit in bits]
        result = "\n".join(formatted_bits) + "\n"
        return result
1163771
@Override
    public String getFormattedMessage() {
        if (formattedMessage != null) {
            return formattedMessage;
        }
        final StringBuilder sb = new StringBuilder(255);
        formatTo(sb);
        return sb.toString();
    }
1085784
function () {
        var formatter = Description.format[_.isString(this.type) && this.type.toLowerCase()];
        return (formatter ? formatter : escapeHtml)(this.content || E);
    }
899589
public String readStringLenenc() {
        int length = (int) readIntLenenc();
        byte[] result = new byte[length];
        byteBuf.readBytes(result);
        return new String(result);
    }
321156
public String getTextDescription() {
        StringBuilder builder = new StringBuilder(name);
        builder.append(" ");
        List<Location> locationList = new ArrayList<Location>(locations.getLocations());
        Collections.sort(locationList, new LocationComparator(LocationComparator.START_LOCATION));
        for(Location location : locationList) {
            builder.append(" ");
            builder.append(location.getBeginPosition());
            builder.append("-");
            builder.append(location.getEndPosition());
        }

        return builder.toString();
    }
862298
public String flattenToString() {
        StringBuilder sb = new StringBuilder(32);
        // WARNING: Do not change the format of this string, it must be
        // preserved because Rects are saved in this flattened format.
        sb.append(left);
        sb.append(' ');
        sb.append(top);
        sb.append(' ');
        sb.append(right);
        sb.append(' ');
        sb.append(bottom);
        return sb.toString();
    }
315095
public CharSequence format() {
    if (formatted == null) {
      if (!keysToValues.keySet().containsAll(keys)) {
        Set<String> missingKeys = new HashSet<String>(keys);
        missingKeys.removeAll(keysToValues.keySet());
        throw new IllegalArgumentException("Missing keys: " + missingKeys);
      }

      // Copy the original pattern to preserve all spans, such as bold, italic, etc.
      SpannableStringBuilder sb = new SpannableStringBuilder(pattern);
      for (Token t = head; t != null; t = t.next) {
        t.expand(sb, keysToValues);
      }

      formatted = sb;
    }
    return formatted;
  }
515326
public String format(String key) {
        if (traceNLS != null) {
            return traceNLS.getString(key);
        } else {
            return key;
        }
    }
303234
public String html() {
        StringBuilder sb = StringUtil.borrowBuilder();
        for (Element element : this) {
            if (sb.length() != 0)
                sb.append("\n");
            sb.append(element.html());
        }
        return StringUtil.releaseBuilder(sb);
    }
128891
public String toZString()
    {
        StringBuilder buffer = new StringBuilder(32);
        try
        {
            printZ(buffer);
        }
        catch (IOException e)
        {
            throw new RuntimeException("Exception printing to StringBuilder",
                                       e);
        }
        return buffer.toString();
    }
743031
public String readString() {
    int size = value.size();
    if (size > Constants.MaxStringSize)
      size = Constants.MaxStringSize;

    if (value == null || size == 0)
      return "";

    byte[] bbs = new byte[size - 1];
    for (int i = 0; i < size - 1; i++) {
      abstractTiffType att = value.get(i);
      bbs[i] = att.toByte();
    }
    try {
      return new String(bbs, "UTF8");
    } catch (UnsupportedEncodingException e) {
      return "";
    }
  }