8347121: Add missing @serial tags to module java.base

Reviewed-by: alanb
This commit is contained in:
Hannes Wallnöfer 2025-01-09 11:49:18 +00:00
parent 8c87ea2bdf
commit ceae2b977d
89 changed files with 301 additions and 222 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2025, 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
@ -42,7 +42,7 @@ public class MalformedInputException
private static final long serialVersionUID = -3438823399834806194L;
/**
* The length of the input.
* @serial The length of the input.
*/
private int inputLength;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2025, 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
@ -42,7 +42,7 @@ public class UnmappableCharacterException
private static final long serialVersionUID = -7026962371537706123L;
/**
* The length of the input character (or byte) sequence.
* @serial The length of the input character (or byte) sequence.
*/
private int inputLength;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2025, 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
@ -41,12 +41,12 @@ public class FileSystemException
static final long serialVersionUID = -3055425747967319812L;
/**
* String identifying the file or {@code null} if not known.
* @serial String identifying the file or {@code null} if not known.
*/
private final String file;
/**
* String identifying the other file or {@code null} if there isn't
* @serial String identifying the other file or {@code null} if there isn't
* another file or if not known.
*/
private final String other;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2025, 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
@ -40,12 +40,12 @@ public class InvalidPathException
static final long serialVersionUID = 4355821422286746137L;
/**
* The input string.
* @serial The input string.
*/
private String input;
/**
* The index of the input string at which the error occurred or
* @serial The index of the input string at which the error occurred or
* {@code -1} if not known.
*/
private int index;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2025, 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
@ -41,7 +41,7 @@ public class UserPrincipalNotFoundException
static final long serialVersionUID = -5369283889045833024L;
/**
* The user principal name.
* @serial The user principal name.
*/
private final String name;