Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions commons/geo/src/main/java/ru/org/openam/geo/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2020-2024 3A Systems LLC.
* Copyright 2020-2026 3A Systems LLC.
*/

package ru.org.openam.geo;

import java.time.Duration;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;

import jakarta.servlet.http.HttpServletRequest;

Expand Down Expand Up @@ -62,7 +62,7 @@ public static List<Info> get(HttpServletRequest request,String header){

static final Cache<String, Info> cache = CacheBuilder.newBuilder()
.maximumSize(64000)
.expireAfterAccess(60, TimeUnit.SECONDS)
.expireAfterAccess(Duration.ofSeconds(60))
.build();

public static Info get(final String ipAddress) {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>33.4.8-jre</version>
<version>33.7.2-jre</version>
<exclusions>
<exclusion>
<groupId>com.google.j2objc</groupId>
Expand Down
Loading