Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Commit 57ba899

Browse files
committed
Compatibilità Java 8
1 parent fb9cba8 commit 57ba899

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

‎UUDecoder/pom.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>it.tozzi.mail</groupId>
88
<artifactId>uudecoder</artifactId>
9-
<version>0.0.3</version>
9+
<version>1.0.0</version>
1010
<name>UUDecoder</name>
1111
<description>Extracts uuencoded attachments from (email) text message</description>
1212

@@ -22,7 +22,7 @@
2222
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2323
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2424
<sources.encoding>UTF-8</sources.encoding>
25-
<java.version>11</java.version>
25+
<java.version>1.8</java.version>
2626

2727
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
2828
<javax.mail.version>1.6.2</javax.mail.version>

‎UUDecoder/src/main/java/it/tozzi/mail/uudecoder/UUDecoder.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private static boolean internalContainsUUencodedAttachments(String content) thro
221221
}
222222

223223
String fileName = firstLine.substring(9);
224-
if (fileName == null || fileName.isBlank()) {
224+
if (fileName == null || fileName.trim().isEmpty()) {
225225
logger.warn("File name not present");
226226
return false;
227227
}
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package it.tozzi.mail.uudecoder.exception;
22

3-
import lombok.Getter;
4-
53
/**
64
*
75
* @author biagio.tozzi
@@ -10,13 +8,9 @@
108
public class UUDecoderException extends Exception {
119

1210
private static final long serialVersionUID = -8770023882303941631L;
13-
14-
@Getter
15-
private String error;
1611

1712
public UUDecoderException(String error, Exception e) {
18-
super(e);
19-
this.error = error;
13+
super(error, e);
2014
}
2115

2216
}

0 commit comments

Comments
 (0)