Skip to content

Commit

Permalink
SAK-40780 Assignment lang => lang3, text (sakaiproject#6141)
Browse files Browse the repository at this point in the history
  • Loading branch information
axxter99 authored Oct 15, 2018
1 parent 12654e2 commit a360188
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 13 deletions.
6 changes: 3 additions & 3 deletions assignment/impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@
<artifactId>commons-collections</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<artifactId>commons-text</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang.StringEscapeUtils;
import org.apache.commons.text.StringEscapeUtils;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.exception.ExceptionUtils;
Expand Down Expand Up @@ -2978,7 +2978,7 @@ private void zipSubmissions(String assignmentReference, String assignmentTitle,
if (!notes.isEmpty()) {
final StringBuilder noteList = new StringBuilder("<ul>");
for (String note : notes) {
noteList.append("<li>" + StringEscapeUtils.escapeHtml(note) + "</li>");
noteList.append("<li>" + StringEscapeUtils.escapeHtml3(note) + "</li>");
}
noteList.append("</ul>");
submittersAdditionalNotesHtml.append("<tr><td style='padding-right:10px;padding-left:10px'>" + submittersString + "</td><td style='padding-right:10px'>" + noteList + "</td></tr>");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import java.util.regex.Pattern;
import java.util.stream.Collectors;

import org.apache.commons.lang.StringUtils;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.CellType;
Expand All @@ -41,7 +40,6 @@
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
import org.sakaiproject.assignment.api.AssignmentReferenceReckoner;
import org.sakaiproject.assignment.api.AssignmentService;
import org.sakaiproject.assignment.api.AssignmentServiceConstants;
import org.sakaiproject.assignment.api.model.Assignment;
import org.sakaiproject.assignment.api.model.AssignmentSubmission;
import org.sakaiproject.assignment.api.model.AssignmentSubmissionSubmitter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

import lombok.extern.slf4j.Slf4j;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.StringUtils;

import org.sakaiproject.assignment.api.AssignmentConstants;
import org.sakaiproject.entity.api.serialize.EntityParseException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import lombok.extern.slf4j.Slf4j;

import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.StringUtils;

import org.sakaiproject.util.conversion.SchemaConversionHandler;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.StringUtils;

@Data
@EqualsAndHashCode(of = "name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.StringUtils;
import org.sakaiproject.api.app.scheduler.ScheduledInvocationManager;
import org.sakaiproject.assignment.api.AssignmentService;
import org.sakaiproject.assignment.api.model.Assignment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.stream.Collectors;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.StringUtils;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.sakaiproject.assignment.impl;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.StringUtils;
import org.junit.Test;

import java.io.ByteArrayOutputStream;
Expand Down
6 changes: 6 additions & 0 deletions master/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<sakai.commons.lang3.version>3.8.1</sakai.commons.lang3.version>
<sakai.commons.fileupload.version>1.3.3</sakai.commons.fileupload.version>
<sakai.commons-math3.version>3.6.1</sakai.commons-math3.version>
<sakai.commons-text.version>1.5</sakai.commons-text.version>
<sakai.commons-validator.version>1.6</sakai.commons-validator.version>
<sakai.commons-logging.version>1.2</sakai.commons-logging.version>
<sakai.commons.configuration.version>1.6</sakai.commons.configuration.version>
Expand Down Expand Up @@ -643,6 +644,11 @@
<version>${sakai.commons.lang3.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
<version>${sakai.commons-text.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
Expand Down

0 comments on commit a360188

Please sign in to comment.