mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8359180: Apply java.io.Serial annotations in java.instrument
Reviewed-by: phh, sspitsyn
This commit is contained in:
parent
5a62e99523
commit
23e1e2ff4a
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2008, 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
|
||||
@ -25,6 +25,8 @@
|
||||
|
||||
package java.lang.instrument;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/*
|
||||
* Copyright 2003 Wily Technology, Inc.
|
||||
*/
|
||||
@ -40,6 +42,8 @@ package java.lang.instrument;
|
||||
* @since 1.5
|
||||
*/
|
||||
public class IllegalClassFormatException extends Exception {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -3841736710924794009L;
|
||||
|
||||
/**
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2008, 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
|
||||
@ -25,6 +25,8 @@
|
||||
|
||||
package java.lang.instrument;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* Thrown by an implementation of
|
||||
* {@link java.lang.instrument.Instrumentation#redefineClasses Instrumentation.redefineClasses}
|
||||
@ -34,6 +36,8 @@ package java.lang.instrument;
|
||||
* @since 1.5
|
||||
*/
|
||||
public class UnmodifiableClassException extends Exception {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1716652643585309178L;
|
||||
|
||||
/**
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 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
|
||||
@ -25,14 +25,17 @@
|
||||
|
||||
package java.lang.instrument;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* Thrown to indicate that a module cannot be modified.
|
||||
*
|
||||
* @see Instrumentation#redefineModule
|
||||
* @since 9
|
||||
*/
|
||||
|
||||
public class UnmodifiableModuleException extends RuntimeException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 6912511912351080644L;
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user