Package org.twodividedbyzero.idea.findbugs.common

Examples of org.twodividedbyzero.idea.findbugs.common.ExtendedProblemDescriptor


      buffer.append("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
      buffer.append("<HTML><HEAD><TITLE>");

      final int problemDescriptorsSize = problemDescriptors.size();
      for (int i = 0;i < problemDescriptorsSize; i++) {
        final ExtendedProblemDescriptor problemDescriptor = problemDescriptors.get(i);
        buffer.append("");
        buffer.append("</TITLE></HEAD><BODY><H3>");
        buffer.append(BugInstanceUtil.getBugPatternShortDescription(problemDescriptor.getBugInstance()));
        buffer.append("</H3>");
        buffer.append(PATTERN.matcher(BugInstanceUtil.getDetailText(problemDescriptor.getBugInstance())).replaceAll(""));
        if (i < problemDescriptors.size() - 1) {
          buffer.append("<HR>");
        }

      }
View Full Code Here


  }


  private void _addProblem(final PsiFile value, final BugInstanceNode leaf) {
    if (value != null) {
      final ExtendedProblemDescriptor element = new ExtendedProblemDescriptor(value, leaf);
      if (_problems.containsKey(value)) {
        _problems.get(value).add(element);
      } else {
        final List<ExtendedProblemDescriptor> list = new ArrayList<ExtendedProblemDescriptor>();
        list.add(element);
View Full Code Here

  private static String getAnnotationText(final List<ExtendedProblemDescriptor> problemDescriptors) {
    final StringBuilder buffer = new StringBuilder();
    for (//noinspection LocalCanBeFinal
        int i = 0, problemDescriptorsSize = problemDescriptors.size(); i < problemDescriptorsSize; i++) {
      final ExtendedProblemDescriptor problemDescriptor = problemDescriptors.get(i);
      buffer.append(ResourcesLoader.getString("findbugs.name")).append(": ").append(StringUtil.html2text(BugInstanceUtil.getBugPatternShortDescription(problemDescriptor.getBugInstance()))).append('\n');
      buffer.append(StringUtil.html2text(BugInstanceUtil.getDetailText(problemDescriptor.getBugInstance())));
      if (i < problemDescriptors.size() - 1) {
        //noinspection HardcodedLineSeparator
        buffer.append("\n\n");
      }
    }
View Full Code Here

TOP

Related Classes of org.twodividedbyzero.idea.findbugs.common.ExtendedProblemDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.