Showing 7 of 19 total issues
Method javaMailSender
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Bean
@ConditionalOnMissingBean
public JavaMailSender javaMailSender(ConfigurableEnvironment env) {
JavaMailSenderImpl jm;
List<EnumerablePropertySource<?>> propSrc;
Method processMessage
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
protected void processMessage(String messageId, MessageBean message) {
MessageStatusBean r;
LOGGER.info("Sending SMS for message {}", message);
Method processMessage
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
protected void processMessage(String messageId, MessageBean message) {
MessageStatusBean r;
LOGGER.debug("Sending email for message {}", message);
Method pushMessage
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public String pushMessage(MessageBean message) {
CorrelationData crlt;
String rKey;
MessageProperties mp;
Method sendSms
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void sendSms(String messageId, ContactBean from, ContactBean recipient, String message) {
SmsMessage msg;
List<SmsMessage> body;
String s;
Method sendEmail
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public void sendEmail(@NotBlank String messageId, @NotNull @Valid ContactBean from, @NotNull @Valid ContactBean recipient, @NotBlank String subject, @NotBlank String message, @NotBlank String mediaType, @NotBlank String charset);
Method sendEmail
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public void sendEmail(String messageId, ContactBean from, ContactBean recipient, String subject, String message, String mediaType, String charset) {