Skip to content

Commit 9fb8791

Browse files
authored
Merge pull request #113 from maxmind/dependabot/github_actions/actions/setup-java-3
Bump actions/setup-java from 1 to 3
2 parents 105197c + da92967 commit 9fb8791

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9+
distribution: ['zulu']
910
os: [ubuntu-latest, windows-latest, macos-latest]
1011
version: [ 8, 9, 10, 11, 12, 13, 14, 15 ]
1112
steps:
1213
- uses: actions/checkout@v3
1314
with:
1415
submodules: true
15-
- uses: actions/setup-java@v1
16+
- uses: actions/setup-java@v3
1617
with:
18+
distribution: ${{ matrix.distribution }}
1719
java-version: ${{ matrix.version }}
1820
- run: mvn test -B

src/main/java/com/maxmind/db/Reader.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ private Reader(BufferHolder bufferHolder, String name, NodeCache cache) throws I
141141
/**
142142
* Looks up <code>ipAddress</code> in the MaxMind DB.
143143
*
144+
* @param <T> the type to populate.
144145
* @param ipAddress the IP address to look up.
145146
* @param cls the class of object to populate.
146147
* @return the object.
@@ -153,7 +154,9 @@ public <T> T get(InetAddress ipAddress, Class<T> cls) throws IOException {
153154
/**
154155
* Looks up <code>ipAddress</code> in the MaxMind DB.
155156
*
157+
* @param <T> the type to populate.
156158
* @param ipAddress the IP address to look up.
159+
* @param cls the class of object to populate.
157160
* @return the record for the IP address. If there is no data for the
158161
* address, the non-null {@link DatabaseRecord} will still be returned.
159162
* @throws IOException if a file I/O error occurs.

0 commit comments

Comments
 (0)