Examples of Issue


Examples of org.gephi.io.importer.api.Issue

            } else if (edgeType.equalsIgnoreCase("directed")) {
                edge.setType(EdgeDraft.EdgeType.DIRECTED);
            } else if (edgeType.equalsIgnoreCase("mutual")) {
                edge.setType(EdgeDraft.EdgeType.MUTUAL);
            } else {
                report.logIssue(new Issue(NbBundle.getMessage(ImporterGEXF.class, "importerGEXF_error_edgetype", edgeType, edge), Issue.Level.SEVERE));
            }
        }

        //Id
        if (!id.isEmpty()) {
            edge.setId(id);
        }

        //Weight
        if (!weight.isEmpty()) {
            try {
                float weightNumber = Float.parseFloat(weight);
                edge.setWeight(weightNumber);
            } catch (NumberFormatException e) {
                report.logIssue(new Issue(NbBundle.getMessage(ImporterGEXF.class, "importerGEXF_error_edgeweight", edge), Issue.Level.WARNING));
            }
        }

        //Label
        if (!label.isEmpty()) {
            edge.setLabel(label);
        }

        container.addEdge(edge);

        boolean end = false;
        boolean spells = false;
        while (reader.hasNext() && !end) {
            int type = reader.next();

            switch (type) {
                case XMLStreamReader.START_ELEMENT:
                    if (ATTVALUE.equalsIgnoreCase(xmlReader.getLocalName())) {
                        readEdgeAttValue(reader, edge);
                    } else if (EDGE_COLOR.equalsIgnoreCase(xmlReader.getLocalName())) {
                        readEdgeColor(reader, edge);
                    } else if (EDGE_SPELL.equalsIgnoreCase(xmlReader.getLocalName()) ||
                            EDGE_SPELL2.equalsIgnoreCase(xmlReader.getLocalName())) {
                        readEdgeSpell(reader, edge);
                        spells = true;
                    }
                    break;

                case XMLStreamReader.END_ELEMENT:
                    if (EDGE.equalsIgnoreCase(xmlReader.getLocalName())) {
                        end = true;
                    }
                    break;
            }
        }

        //Dynamic
        if (!spells && (!startDate.isEmpty() || !endDate.isEmpty())) {
            try {
                edge.addTimeInterval(startDate, endDate, startOpen, endOpen);
            } catch (IllegalArgumentException e) {
                report.logIssue(new Issue(NbBundle.getMessage(ImporterGEXF.class, "importerGEXF_error_edge_timeinterval_parseerror", edge), Issue.Level.SEVERE));
            }
        }
    }
View Full Code Here

Examples of org.hibernate.tool.hbmlint.Issue

  }
 
  public void visitProperty(Configuration configuration, PersistentClass clazz, Property property, IssueCollector collector) {
    if(property.getName().equals("id")) {
      if (property != property.getPersistentClass().getIdentifierProperty()) {
        collector.reportIssue(new Issue("ID_SHADOWED", Issue.LOW_PRIORITY, property.getPersistentClass().getEntityName() + " has a normal property named 'id'. This can cause issues since HQL queries will always interpret 'id' as the identifier and not the concrete property"));
      }
    }
  }
View Full Code Here

Examples of org.intellij.sonar.sonarreport.data.Issue

  public IssuesByFileIndexer withSonarServerIssues(ImmutableList<org.sonar.wsclient.issue.Issue> issues) {
    setIssues(FluentIterable.from(issues)
        .transform(new Function<org.sonar.wsclient.issue.Issue, Issue>() {
          @Override
          public Issue apply(org.sonar.wsclient.issue.Issue issue) {
            return new Issue(
                issue.key(),
                issue.componentKey(),
                issue.line(),
                issue.message(),
                issue.severity(),
View Full Code Here

Examples of org.jfrog.build.api.Issue

        if (StringUtils.isNotBlank(affectedIssues)) {
            String[] issuePairs = affectedIssues.split(",");
            for (String pair : issuePairs) {
                String[] idAndUrl = pair.split(">>");
                if (idAndUrl.length == 3) {
                    affectedIssuesSet.add(new Issue(idAndUrl[0], idAndUrl[1], idAndUrl[2]));
                }
            }
        }
        return affectedIssuesSet;
    }
View Full Code Here

Examples of org.netbeans.server.uihandler.api.Issue

            } else if (isDuplicateReport()) {
                request.setAttribute("reportId", getReportId());
                if (issuezillaId != null && issuezillaId != 0) {
                    request.setAttribute("inIssuezilla", true);
                    request.setAttribute("issuezillaId", issuezillaId);
                    Issue issue = BugReporterFactory.getDefaultReporter().getIssue(issuezillaId);
                    if (issue != null) {
                        request.setAttribute("isClosed", !issue.isOpen());
                        boolean isFixed = issue.isFixed();
                        request.setAttribute("isFixed", isFixed);
                        if (isFixed && !issue.isTBD()) {
                            request.setAttribute("TM", issue.getTargetMilestone());
                        }
                    }
                } else {
                    request.setAttribute("inIssuezilla", false);
                }
View Full Code Here

Examples of org.sonar.api.issue.Issue

    when(context.getMeasures((MeasuresFilter) anyObject())).thenReturn(
        Arrays.<Measure> asList(newMeasure(CoreMetrics.LINES, Metric.Level.OK, "Message1"),
            newMeasure(CoreMetrics.COVERAGE, Metric.Level.WARN, "Coverage<80"),
            newMeasure(CoreMetrics.CLASS_COMPLEXITY, Metric.Level.ERROR, "Complexity>20")));
    List<Issue> issues = new ArrayList<Issue>();
    Issue issue = mock(Issue.class);
    when(issue.isNew()).thenReturn(false);
    issues.add(issue);
    when(projectIssues.issues()).thenReturn(issues);

    SonarAnalysisResult result = sonarResultEvaluator.getResult(context, ADDRESS);
View Full Code Here

Examples of org.sonar.wsclient.issue.Issue

    private List<Issue> readIssues(JsonReader reader, IssueFilter[] filters) throws IOException, ParseException {
        List<Issue> issues = new LinkedList<>();
        reader.beginArray();
        while (reader.hasNext()) {
            Issue issue = readIssue(reader);
            boolean valid=true;
            for(IssueFilter filter:filters) {
                if(!filter.isValid(issue)){
                    valid=false;
                    break;
View Full Code Here

Examples of org.sylfra.idea.plugins.revu.model.Issue

    if ((project == null) || (vFile == null))
    {
      return;
    }

    Issue issue = new Issue();
    issue.setFile(vFile);
    if (editor != null)
    {
      Document document = editor.getDocument();
      int lineStart = document.getLineNumber(editor.getSelectionModel().getSelectionStart());
      int lineEnd = document.getLineNumber(editor.getSelectionModel().getSelectionEnd());

      issue.setLineStart(lineStart);
      issue.setLineEnd(lineEnd);
      CharSequence fragment = document.getCharsSequence().subSequence(document.getLineStartOffset(lineStart),
        document.getLineEndOffset(lineEnd));
      issue.setHash(fragment.toString().hashCode());
    }
    issue.setStatus(IssueStatus.TO_RESOLVE);

    IssueDialog dialog = new IssueDialog(project, true);
    dialog.show(issue);
    if ((dialog.isOK()) && dialog.updateData(issue))
    {
      Review review = issue.getReview();

      assert (RevuUtils.getCurrentUserLogin() != null) : "Login should be set";

      issue.setHistory(RevuUtils.buildHistory(review));

      if (RevuVcsUtils.fileIsModifiedFromVcs(project, vFile))
      {
        issue.setLocalRev(String.valueOf(System.currentTimeMillis()));
      }

      if (issue.getFile() != null)
      {
        VcsRevisionNumber vcsRev = RevuVcsUtils.getVcsRevisionNumber(project, issue.getFile());
        if (vcsRev != null)
        {
          issue.setVcsRev(vcsRev.toString());
        }
      }

      review.addIssue(issue);
View Full Code Here

Examples of org.vfny.geoserver.issues.Issue

        issueService = (IIssueService)appContext.getBean("IssueService");
    }

    public void testAdding(){
        //add an issue
        IIssue newIssue = new Issue();
        newIssue.setDescription("test");
        newIssue.setPriority(Priority.HIGH);
        newIssue.setResolution(Resolution.IN_PROGRESS);
        newIssue.setTarget(new Target("Diagram","1"));
        List<IIssue> list = new LinkedList<IIssue>();
        list.add(newIssue);
        issueService.addIssues(list);
       
        List<IIssue> newList = (List<IIssue>)issueService.getIssues();
View Full Code Here

Examples of ru.yandex.qatools.allure.annotations.Issue

     * Find first {@link ru.yandex.qatools.allure.annotations.Issue} annotation
     *
     * @return issue key or null if annotation is not present
     */
    public String getIssueKey() {
        Issue issue = getAnnotation(Issue.class);
        return issue == null ? null : issue.value();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.