From 9266e6d29e49be8a7e8ecbe6542bc2f66776e867 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Mon, 26 Jun 2023 12:34:59 +0200 Subject: [PATCH] Remove outdated javadoc notes on getMessage and printStackTrace Closes gh-30748 --- .../org/springframework/core/NestedCheckedException.java | 8 ++------ .../org/springframework/core/NestedRuntimeException.java | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/core/NestedCheckedException.java b/spring-core/src/main/java/org/springframework/core/NestedCheckedException.java index d737d9a74617..dcf25b5f5c04 100644 --- a/spring-core/src/main/java/org/springframework/core/NestedCheckedException.java +++ b/spring-core/src/main/java/org/springframework/core/NestedCheckedException.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,11 +20,7 @@ /** * Handy class for wrapping checked {@code Exceptions} with a root cause. - * - *

This class is {@code abstract} to force the programmer to extend - * the class. {@code getMessage} will include nested exception - * information; {@code printStackTrace} and other like methods will - * delegate to the wrapped exception, if any. + * This class is {@code abstract} to force the programmer to extend the class. * *

The similarity between this class and the {@link NestedRuntimeException} * class is unavoidable, as Java forces these two classes to have different diff --git a/spring-core/src/main/java/org/springframework/core/NestedRuntimeException.java b/spring-core/src/main/java/org/springframework/core/NestedRuntimeException.java index a960a5ecb581..ab0eefb213a8 100644 --- a/spring-core/src/main/java/org/springframework/core/NestedRuntimeException.java +++ b/spring-core/src/main/java/org/springframework/core/NestedRuntimeException.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,11 +20,7 @@ /** * Handy class for wrapping runtime {@code Exceptions} with a root cause. - * - *

This class is {@code abstract} to force the programmer to extend - * the class. {@code getMessage} will include nested exception - * information; {@code printStackTrace} and other like methods will - * delegate to the wrapped exception, if any. + * This class is {@code abstract} to force the programmer to extend the class. * *

The similarity between this class and the {@link NestedCheckedException} * class is unavoidable, as Java forces these two classes to have different