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

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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