Skip to content

Commit

Permalink
#1 commons-lang3 removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Oct 26, 2014
1 parent c011f98 commit e5f3a46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 1 addition & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<version>1.15</version>
</parent>
<artifactId>jcabi-email</artifactId>
<version>2.0-SNAPSHOT</version>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>jcabi-email</name>
<description>Object-Oriented Email Sending SDK</description>
Expand Down Expand Up @@ -78,10 +78,6 @@
<groupId>com.jcabi</groupId>
<artifactId>jcabi-log</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mailapi</artifactId>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/jcabi/email/EnHTML.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import javax.mail.internet.MimeBodyPart;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.commons.lang3.CharEncoding;

/**
* Plain enclosure in MIME envelope.
Expand Down Expand Up @@ -68,7 +67,7 @@ public EnHTML(final String content) {
public MimeBodyPart part() throws IOException {
final MimeBodyPart mime = new MimeBodyPart();
try {
mime.setText(this.text, CharEncoding.UTF_8);
mime.setText(this.text, "UTF-8");
mime.addHeader("Content-Type", "text/html");
} catch (final MessagingException ex) {
throw new IOException(ex);
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/jcabi/email/EnPlain.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import javax.mail.internet.MimeBodyPart;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.commons.lang3.CharEncoding;

/**
* Plain enclosure in MIME envelope.
Expand Down Expand Up @@ -68,7 +67,7 @@ public EnPlain(final String content) {
public MimeBodyPart part() throws IOException {
final MimeBodyPart mime = new MimeBodyPart();
try {
mime.setText(this.text, CharEncoding.UTF_8);
mime.setText(this.text, "UTF-8");
mime.addHeader("Content-Type", "text/plain");
} catch (final MessagingException ex) {
throw new IOException(ex);
Expand Down

0 comments on commit e5f3a46

Please sign in to comment.