Tabnine Logo
IssueFieldsSetter.setPastGap
Code IndexAdd Tabnine to your IDE (free)

How to use
setPastGap
method
in
org.sonar.server.issue.IssueFieldsSetter

Best Java code snippets using org.sonar.server.issue.IssueFieldsSetter.setPastGap (Showing top 3 results out of 315)

origin: SonarSource/sonarqube

@Test
public void set_past_gap() {
 issue.setGap(3.14);
 boolean updated = underTest.setPastGap(issue, 1.0, context);
 assertThat(updated).isTrue();
 assertThat(issue.gap()).isEqualTo(3.14);
 // do not save change
 assertThat(issue.currentChange()).isNull();
 assertThat(issue.mustSendNotifications()).isFalse();
}
origin: SonarSource/sonarqube

updater.setPastLocations(raw, base.getLocations());
updater.setPastMessage(raw, base.getMessage(), changeContext);
updater.setPastGap(raw, base.gap(), changeContext);
updater.setPastEffort(raw, base.effort(), changeContext);
origin: org.sonarsource.sonarqube/sonar-server

public void mergeExistingOpenIssue(DefaultIssue raw, DefaultIssue base) {
 raw.setKey(base.key());
 raw.setNew(false);
 copyFields(raw, base);
 if (base.manualSeverity()) {
  raw.setManualSeverity(true);
  raw.setSeverity(base.severity());
 } else {
  updater.setPastSeverity(raw, base.severity(), changeContext);
 }
 // set component/module related fields from base in case current component has been moved
 // (in which case base issue belongs to original file and raw issue to component)
 raw.setComponentUuid(base.componentUuid());
 raw.setComponentKey(base.componentKey());
 raw.setModuleUuid(base.moduleUuid());
 raw.setModuleUuidPath(base.moduleUuidPath());
 // fields coming from raw
 updater.setPastLine(raw, base.getLine());
 updater.setPastLocations(raw, base.getLocations());
 updater.setPastMessage(raw, base.getMessage(), changeContext);
 updater.setPastGap(raw, base.gap(), changeContext);
 updater.setPastEffort(raw, base.effort(), changeContext);
}
org.sonar.server.issueIssueFieldsSettersetPastGap

Popular methods of IssueFieldsSetter

  • assign
  • setResolution
  • setStatus
  • setType
  • setMessage
  • setPastEffort
  • setPastLine
  • setPastMessage
  • setPastSeverity
  • setSeverity
  • addComment
  • setCreationDate
  • addComment,
  • setCreationDate,
  • setGap,
  • setIssueMoved,
  • setLocations,
  • setManualSeverity,
  • setNewAssignee,
  • setNewAuthor,
  • setPastLocations

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • JList (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now