8297679: InvocationTargetException field named target is not declared final
Reviewed-by: alanb
This commit is contained in:
parent
5540a8c5b7
commit
7f9c6ce331
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1996, 2022, 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
|
||||||
@ -48,7 +48,7 @@ public class InvocationTargetException extends ReflectiveOperationException {
|
|||||||
* @serial
|
* @serial
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Throwable target;
|
private final Throwable target;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs an {@code InvocationTargetException} with
|
* Constructs an {@code InvocationTargetException} with
|
||||||
@ -56,6 +56,7 @@ public class InvocationTargetException extends ReflectiveOperationException {
|
|||||||
*/
|
*/
|
||||||
protected InvocationTargetException() {
|
protected InvocationTargetException() {
|
||||||
super((Throwable)null); // Disallow initCause
|
super((Throwable)null); // Disallow initCause
|
||||||
|
this.target = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user