Skip to content

Commit

Permalink
Merge pull request #113 from maxmind/dependabot/github_actions/action…
Browse files Browse the repository at this point in the history
…s/setup-java-3

Bump actions/setup-java from 1 to 3
  • Loading branch information
faktas2 authored Aug 30, 2022
2 parents 105197c + da92967 commit 9fb8791
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ jobs:
strategy:
fail-fast: false
matrix:
distribution: ['zulu']
os: [ubuntu-latest, windows-latest, macos-latest]
version: [ 8, 9, 10, 11, 12, 13, 14, 15 ]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.version }}
- run: mvn test -B
3 changes: 3 additions & 0 deletions src/main/java/com/maxmind/db/Reader.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ private Reader(BufferHolder bufferHolder, String name, NodeCache cache) throws I
/**
* Looks up <code>ipAddress</code> in the MaxMind DB.
*
* @param <T> the type to populate.
* @param ipAddress the IP address to look up.
* @param cls the class of object to populate.
* @return the object.
Expand All @@ -153,7 +154,9 @@ public <T> T get(InetAddress ipAddress, Class<T> cls) throws IOException {
/**
* Looks up <code>ipAddress</code> in the MaxMind DB.
*
* @param <T> the type to populate.
* @param ipAddress the IP address to look up.
* @param cls the class of object to populate.
* @return the record for the IP address. If there is no data for the
* address, the non-null {@link DatabaseRecord} will still be returned.
* @throws IOException if a file I/O error occurs.
Expand Down

0 comments on commit 9fb8791

Please sign in to comment.