mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8343482: Remove unnecessary @SuppressWarnings annotations (net)
Reviewed-by: dfuchs
This commit is contained in:
parent
c799cad1de
commit
f95097cc64
4 changed files with 3 additions and 9 deletions
|
@ -2057,7 +2057,6 @@ public class Socket implements java.io.Closeable {
|
|||
*
|
||||
* @since 9
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T> T getOption(SocketOption<T> name) throws IOException {
|
||||
Objects.requireNonNull(name);
|
||||
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.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -50,7 +50,6 @@ class NegotiateAuthentication extends AuthenticationInfo {
|
|||
@java.io.Serial
|
||||
private static final long serialVersionUID = 100L;
|
||||
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private final HttpCallerInfo hci;
|
||||
|
||||
// These maps are used to manage the GSS availability for different
|
||||
|
@ -71,7 +70,6 @@ class NegotiateAuthentication extends AuthenticationInfo {
|
|||
}
|
||||
|
||||
// The HTTP Negotiate Helper
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
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.
|
||||
*
|
||||
* 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;
|
||||
|
||||
@SuppressWarnings("serial") // Type of field is not Serializable
|
||||
Client client;
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -303,7 +303,6 @@ public class Sockets {
|
|||
return isReusePortAvailable;
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
private static Map<Class<?>,Set<SocketOption<?>>> optionSets() {
|
||||
Map<Class<?>,Set<SocketOption<?>>> options = new HashMap<>();
|
||||
boolean incomingNapiIdsupported = PlatformSocketOptions.get().incomingNapiIdSupported();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue