mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8347121: Add missing @serial tags to module java.base
Reviewed-by: alanb
This commit is contained in:
parent
8c87ea2bdf
commit
ceae2b977d
89 changed files with 301 additions and 222 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 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,12 +42,12 @@ public class EnumConstantNotPresentException extends RuntimeException {
|
|||
private static final long serialVersionUID = -6046998521960521108L;
|
||||
|
||||
/**
|
||||
* The type of the missing enum constant.
|
||||
* @serial The type of the missing enum constant.
|
||||
*/
|
||||
private Class<? extends Enum> enumType;
|
||||
|
||||
/**
|
||||
* The name of the missing enum constant.
|
||||
* @serial The name of the missing enum constant.
|
||||
*/
|
||||
private String constantName;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2023, 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
|
||||
|
@ -64,35 +64,35 @@ public final class StackTraceElement implements java.io.Serializable {
|
|||
|
||||
// Normally initialized by VM
|
||||
/**
|
||||
* The name of the class loader.
|
||||
* @serial The name of the class loader.
|
||||
*/
|
||||
private String classLoaderName;
|
||||
/**
|
||||
* The module name.
|
||||
* @serial The module name.
|
||||
*/
|
||||
private String moduleName;
|
||||
/**
|
||||
* The module version.
|
||||
* @serial The module version.
|
||||
*/
|
||||
private String moduleVersion;
|
||||
/**
|
||||
* The declaring class.
|
||||
* @serial The declaring class.
|
||||
*/
|
||||
private String declaringClass;
|
||||
/**
|
||||
* The method name.
|
||||
* @serial The method name.
|
||||
*/
|
||||
private String methodName;
|
||||
/**
|
||||
* The source file name.
|
||||
* @serial The source file name.
|
||||
*/
|
||||
private String fileName;
|
||||
/**
|
||||
* The source line number.
|
||||
* @serial The source line number.
|
||||
*/
|
||||
private int lineNumber;
|
||||
/**
|
||||
* Control to show full or partial module, package, and class names.
|
||||
* @serial Control to show full or partial module, package, and class names.
|
||||
*/
|
||||
private byte format = 0; // Default to show all
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 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
|
||||
|
@ -48,7 +48,7 @@ public class TypeNotPresentException extends RuntimeException {
|
|||
private static final long serialVersionUID = -5101214195716534496L;
|
||||
|
||||
/**
|
||||
* The type name or the name of a type variable.
|
||||
* @serial The type name or the name of a type variable.
|
||||
*/
|
||||
private String typeName;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 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
|
||||
|
@ -48,7 +48,7 @@ public class AnnotationTypeMismatchException extends RuntimeException {
|
|||
private final transient Method element;
|
||||
|
||||
/**
|
||||
* The (erroneous) type of data found in the annotation. This string
|
||||
* @serial The (erroneous) type of data found in the annotation. This string
|
||||
* may, but is not required to, contain the value as well. The exact
|
||||
* format of the string is unspecified.
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 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
|
||||
|
@ -43,11 +43,11 @@ public class IncompleteAnnotationException extends RuntimeException {
|
|||
private static final long serialVersionUID = 8445097402741811912L;
|
||||
|
||||
/**
|
||||
* The annotation interface.
|
||||
* @serial The annotation interface.
|
||||
*/
|
||||
private Class<? extends Annotation> annotationType;
|
||||
/**
|
||||
* The element name.
|
||||
* @serial The element name.
|
||||
*/
|
||||
private String elementName;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 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
|
||||
|
@ -65,43 +65,43 @@ public final class SerializedLambda implements Serializable {
|
|||
@java.io.Serial
|
||||
private static final long serialVersionUID = 8025925345765570181L;
|
||||
/**
|
||||
* The capturing class.
|
||||
* @serial The capturing class.
|
||||
*/
|
||||
private final Class<?> capturingClass;
|
||||
/**
|
||||
* The functional interface class.
|
||||
* @serial The functional interface class.
|
||||
*/
|
||||
private final String functionalInterfaceClass;
|
||||
/**
|
||||
* The functional interface method name.
|
||||
* @serial The functional interface method name.
|
||||
*/
|
||||
private final String functionalInterfaceMethodName;
|
||||
/**
|
||||
* The functional interface method signature.
|
||||
* @serial The functional interface method signature.
|
||||
*/
|
||||
private final String functionalInterfaceMethodSignature;
|
||||
/**
|
||||
* The implementation class.
|
||||
* @serial The implementation class.
|
||||
*/
|
||||
private final String implClass;
|
||||
/**
|
||||
* The implementation method name.
|
||||
* @serial The implementation method name.
|
||||
*/
|
||||
private final String implMethodName;
|
||||
/**
|
||||
* The implementation method signature.
|
||||
* @serial The implementation method signature.
|
||||
*/
|
||||
private final String implMethodSignature;
|
||||
/**
|
||||
* The implementation method kind.
|
||||
* @serial The implementation method kind.
|
||||
*/
|
||||
private final int implMethodKind;
|
||||
/**
|
||||
* The instantiated method type.
|
||||
* @serial The instantiated method type.
|
||||
*/
|
||||
private final String instantiatedMethodType;
|
||||
/**
|
||||
* The captured arguments.
|
||||
* @serial The captured arguments.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private final Object[] capturedArgs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue