Codota Logo
IssueFieldsSetter.setMessage
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: SonarSource/sonarqube

public boolean setPastMessage(DefaultIssue issue, @Nullable String previousMessage, IssueChangeContext context) {
 String currentMessage = issue.message();
 issue.setMessage(previousMessage);
 return setMessage(issue, currentMessage, context);
}
origin: SonarSource/sonarqube

@Test
public void set_message() {
 boolean updated = underTest.setMessage(issue, "the message", context);
 assertThat(updated).isTrue();
 assertThat(issue.isChanged()).isTrue();
 assertThat(issue.message()).isEqualTo("the message");
 assertThat(issue.mustSendNotifications()).isFalse();
}
origin: SonarSource/sonarqube

 private Collection<? extends DefaultIssue> migrateIssuesToTheRoot(List<DefaultIssue> issuesOnModule, String modulePath) {
  for (DefaultIssue i : issuesOnModule) {
   // changes the issue's component uuid, add a change and set issue as changed to enforce it is persisted to DB
   IssueChangeContext context = IssueChangeContext.createUser(new Date(analysisMetadataHolder.getAnalysisDate()), null);
   if (StringUtils.isNotBlank(modulePath)) {
    issueUpdater.setMessage(i, "[" + modulePath + "] " + i.getMessage(), context);
   }
   issueUpdater.setIssueMoved(i, component.getUuid(), context);
   // other fields (such as module, modulePath, componentKey) are read-only and set/reset for consistency only
   i.setComponentKey(component.getKey());
   i.setModuleUuid(null);
   i.setModuleUuidPath(null);
  }
  return issuesOnModule;
 }
}
origin: org.sonarsource.sonarqube/sonar-server

public boolean setPastMessage(DefaultIssue issue, @Nullable String previousMessage, IssueChangeContext context) {
 String currentMessage = issue.message();
 issue.setMessage(previousMessage);
 return setMessage(issue, currentMessage, context);
}
org.sonar.server.issueIssueFieldsSettersetMessage

Popular methods of IssueFieldsSetter

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

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now