Skip to content

Commit 5571dbc

Browse files
committed
chore(CI): fix spotbugs-maven-plugin error 👁️‍🗨️
1 parent fa19b17 commit 5571dbc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

library/src/main/java/com/alibaba/dcm/DnsCache.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public final class DnsCache implements Serializable {
2424
/**
2525
* Construct a {@link DnsCache}.
2626
*/
27-
public DnsCache(@SuppressFBWarnings("EI_EXPOSE_REP2") List<DnsCacheEntry> cache,
28-
@SuppressFBWarnings("EI_EXPOSE_REP2") List<DnsCacheEntry> negativeCache) {
27+
@SuppressFBWarnings("EI_EXPOSE_REP2")
28+
public DnsCache(List<DnsCacheEntry> cache, List<DnsCacheEntry> negativeCache) {
2929
this.cache = cache;
3030
this.negativeCache = negativeCache;
3131
}

library/src/main/java/com/alibaba/dcm/DnsCacheEntry.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public Date getExpiration() {
5959
* @deprecated use {@link #DnsCacheEntry(String, String[], long)} instead
6060
*/
6161
@Deprecated
62-
public DnsCacheEntry(String host, @SuppressFBWarnings("EI_EXPOSE_REP2") String[] ips, Date expiration) {
62+
@SuppressFBWarnings("EI_EXPOSE_REP2")
63+
public DnsCacheEntry(String host, String[] ips, Date expiration) {
6364
this.host = host;
6465
this.ips = ips;
6566
this.expiration = expiration.getTime();
@@ -70,7 +71,8 @@ public DnsCacheEntry(String host, @SuppressFBWarnings("EI_EXPOSE_REP2") String[]
7071
*
7172
* @since 1.6.0
7273
*/
73-
public DnsCacheEntry(String host, @SuppressFBWarnings("EI_EXPOSE_REP2") String[] ips, long expiration) {
74+
@SuppressFBWarnings("EI_EXPOSE_REP2")
75+
public DnsCacheEntry(String host, String[] ips, long expiration) {
7476
this.host = host;
7577
this.ips = ips;
7678
this.expiration = expiration;

0 commit comments

Comments
 (0)