PageRenderTime 60ms CodeModel.GetById 33ms RepoModel.GetById 0ms app.codeStats 0ms

/src/jira_patches/CreateIssueHandler.java.patch

https://bitbucket.org/redradish/ccmailer-44x
Patch | 24 lines | 23 code | 1 blank | 0 comment | 0 complexity | 5264b85f7c17a30ad194e494750ca068 MD5 | raw file
  1. --- ../atlassian-jira-4.4.5-source/jira-project/jira-components/jira-core/src/main/java/com/atlassian/jira/service/util/handler/CreateIssueHandler.java 2012-02-15 21:13:22.000000000 +1100
  2. +++ src/main/java/com/atlassian/jira/service/util/handler/redradish/CreateIssueHandler.java 2012-03-14 12:42:20.343607632 +1100
  3. @@ -1,4 +1,11 @@
  4. -package com.atlassian.jira.service.util.handler;
  5. +package com.atlassian.jira.service.util.handler.redradish;
  6. +import com.atlassian.jira.service.util.handler.AbstractMessageHandler;
  7. +/* CCMailer: Identical to {@link com.atlassian.jira.service.util.handler.CreateIssueHandler}, except
  8. + * {@link #getDescription(com.opensymphony.user.User,javax.mail.Message)} is protected, not private, as it is for
  9. + * {@link com.atlassian.jira.service.util.handler.FullCommentHandler#getEmailBody(javax.mail.Message)} and
  10. + * {@link com.atlassian.jira.service.util.handler.NonQuotedCommentHandler#getEmailBody(javax.mail.Message)}.
  11. + * TODO: File a JRA to get this fixed.
  12. + */
  13. import com.atlassian.core.user.UserUtils;
  14. import com.atlassian.jira.component.ComponentAccessor;
  15. @@ -403,7 +410,7 @@
  16. * @return the description of the issue
  17. * @throws MessagingException if cannot find out who is the message from
  18. */
  19. - private String getDescription(User reporter, Message message) throws MessagingException
  20. + protected String getDescription(User reporter, Message message) throws MessagingException
  21. {
  22. return recordFromAddressForAnon(reporter, message, MailUtils.getBody(message));
  23. }