Skip to content

Commit

Permalink
ph-commons 11.1.5; Java 21 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Mar 27, 2024
1 parent 25b4395 commit 844b41d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11', '17', '21' ]
name: Java ${{ matrix.Java }} build

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
- name: Set up JDK ${{ matrix.Java }}
uses: actions/setup-java@v4
with:
java-version: '11'
java-version: ${{ matrix.Java }}
distribution: 'adopt'
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
server-username: MAVEN_USERNAME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static AS2DispositionException wrap (@Nonnull final Exception ex,
final ICommonsList <AS2Exception> aCauses = ((AS2ProcessorException) ex).getAllCauses ();
if (aCauses.size () == 1)
{
final AS2Exception aFirst = aCauses.getFirst ();
final AS2Exception aFirst = aCauses.getFirstOrNull ();
if (aFirst instanceof AS2DispositionException)
return (AS2DispositionException) aFirst;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public ICommonsList <ECryptoAlgorithmSign> getAllMICAlgs ()
@Nullable
public ECryptoAlgorithmSign getFirstMICAlg ()
{
return m_aMICAlgs.getFirst ();
return m_aMICAlgs.getFirstOrNull ();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ protected void finalize () throws Throwable
* in case of error
* @deprecated Since 4.10.2. Use {@link #closeAndDelete()} instead
*/
@Deprecated
@Deprecated (forRemoval = true, since = "4.10.2")
public void closeAll () throws IOException
{
closeAndDelete ();
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<dependency>
<groupId>com.helger.commons</groupId>
<artifactId>ph-commons-parent-pom</artifactId>
<version>11.1.4</version>
<version>11.1.5</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down

0 comments on commit 844b41d

Please sign in to comment.