Skip to content

Commit 844b41d

Browse files
committed
ph-commons 11.1.5; Java 21 compatibility
1 parent 25b4395 commit 844b41d

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

.github/workflows/maven-publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,17 @@ on:
2828
jobs:
2929
build:
3030
runs-on: ubuntu-latest
31+
strategy:
32+
matrix:
33+
java: [ '11', '17', '21' ]
34+
name: Java ${{ matrix.Java }} build
3135

3236
steps:
3337
- uses: actions/checkout@v4
34-
- name: Set up JDK 11
38+
- name: Set up JDK ${{ matrix.Java }}
3539
uses: actions/setup-java@v4
3640
with:
37-
java-version: '11'
41+
java-version: ${{ matrix.Java }}
3842
distribution: 'adopt'
3943
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
4044
server-username: MAVEN_USERNAME

as2-lib/src/main/java/com/helger/as2lib/disposition/AS2DispositionException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public static AS2DispositionException wrap (@Nonnull final Exception ex,
9797
final ICommonsList <AS2Exception> aCauses = ((AS2ProcessorException) ex).getAllCauses ();
9898
if (aCauses.size () == 1)
9999
{
100-
final AS2Exception aFirst = aCauses.getFirst ();
100+
final AS2Exception aFirst = aCauses.getFirstOrNull ();
101101
if (aFirst instanceof AS2DispositionException)
102102
return (AS2DispositionException) aFirst;
103103
}

as2-lib/src/main/java/com/helger/as2lib/disposition/DispositionOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public ICommonsList <ECryptoAlgorithmSign> getAllMICAlgs ()
280280
@Nullable
281281
public ECryptoAlgorithmSign getFirstMICAlg ()
282282
{
283-
return m_aMICAlgs.getFirst ();
283+
return m_aMICAlgs.getFirstOrNull ();
284284
}
285285

286286
/**

as2-lib/src/main/java/com/helger/as2lib/util/http/TempSharedFileInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected void finalize () throws Throwable
106106
* in case of error
107107
* @deprecated Since 4.10.2. Use {@link #closeAndDelete()} instead
108108
*/
109-
@Deprecated
109+
@Deprecated (forRemoval = true, since = "4.10.2")
110110
public void closeAll () throws IOException
111111
{
112112
closeAndDelete ();

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<dependency>
7878
<groupId>com.helger.commons</groupId>
7979
<artifactId>ph-commons-parent-pom</artifactId>
80-
<version>11.1.4</version>
80+
<version>11.1.5</version>
8181
<type>pom</type>
8282
<scope>import</scope>
8383
</dependency>

0 commit comments

Comments
 (0)