8343482: Remove unnecessary @SuppressWarnings annotations (net)
Reviewed-by: dfuchs
This commit is contained in:
parent
c799cad1de
commit
f95097cc64
@ -2057,7 +2057,6 @@ public class Socket implements java.io.Closeable {
|
|||||||
*
|
*
|
||||||
* @since 9
|
* @since 9
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public <T> T getOption(SocketOption<T> name) throws IOException {
|
public <T> T getOption(SocketOption<T> name) throws IOException {
|
||||||
Objects.requireNonNull(name);
|
Objects.requireNonNull(name);
|
||||||
if (isClosed())
|
if (isClosed())
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -50,7 +50,6 @@ class NegotiateAuthentication extends AuthenticationInfo {
|
|||||||
@java.io.Serial
|
@java.io.Serial
|
||||||
private static final long serialVersionUID = 100L;
|
private static final long serialVersionUID = 100L;
|
||||||
|
|
||||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
|
||||||
private final HttpCallerInfo hci;
|
private final HttpCallerInfo hci;
|
||||||
|
|
||||||
// These maps are used to manage the GSS availability for different
|
// These maps are used to manage the GSS availability for different
|
||||||
@ -71,7 +70,6 @@ class NegotiateAuthentication extends AuthenticationInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The HTTP Negotiate Helper
|
// The HTTP Negotiate Helper
|
||||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
|
||||||
private Negotiator negotiator = null;
|
private Negotiator negotiator = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -120,10 +120,8 @@ public class NTLMAuthentication extends AuthenticationInfo {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@SuppressWarnings("serial") // Type of field is not Serializable
|
|
||||||
PasswordAuthentication pw;
|
PasswordAuthentication pw;
|
||||||
|
|
||||||
@SuppressWarnings("serial") // Type of field is not Serializable
|
|
||||||
Client client;
|
Client client;
|
||||||
/**
|
/**
|
||||||
* Create a NTLMAuthentication:
|
* Create a NTLMAuthentication:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -303,7 +303,6 @@ public class Sockets {
|
|||||||
return isReusePortAvailable;
|
return isReusePortAvailable;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("removal")
|
|
||||||
private static Map<Class<?>,Set<SocketOption<?>>> optionSets() {
|
private static Map<Class<?>,Set<SocketOption<?>>> optionSets() {
|
||||||
Map<Class<?>,Set<SocketOption<?>>> options = new HashMap<>();
|
Map<Class<?>,Set<SocketOption<?>>> options = new HashMap<>();
|
||||||
boolean incomingNapiIdsupported = PlatformSocketOptions.get().incomingNapiIdSupported();
|
boolean incomingNapiIdsupported = PlatformSocketOptions.get().incomingNapiIdSupported();
|
||||||
|
Loading…
Reference in New Issue
Block a user