Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class WriteAbortedException extends ObjectStreamException {
* @param ex Exception causing the abort.
*/
@SideEffectFree
@SuppressWarnings("purity.not.sideeffectfree.call") // initCause affects only the new object
@SuppressWarnings("purity.call") // initCause affects only the new object
public WriteAbortedException(@Nullable String s, @Nullable Exception ex) {
super(s);
initCause(null); // Disallow subsequent initCause
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public BootstrapMethodError(@Nullable String s, @Nullable Throwable cause) {
* @param cause the cause, may be {@code null}.
*/
@SideEffectFree
@SuppressWarnings("purity.not.sideeffectfree.call") // initCause affects only the new object
@SuppressWarnings("purity.call") // initCause affects only the new object
public BootstrapMethodError(@Nullable Throwable cause) {
// cf. Throwable(Throwable cause) constructor.
super(cause == null ? null : cause.toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public CertPathValidatorException(@Nullable String msg, @Nullable Throwable caus
* @since 1.7
*/
@SideEffectFree
@SuppressWarnings("purity.not.sideeffectfree.call") // getCertificates() has no side effect
@SuppressWarnings("purity.call") // getCertificates() has no side effect
public CertPathValidatorException(@Nullable String msg, @Nullable Throwable cause,
CertPath certPath, int index, Reason reason) {
super(msg, cause);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public class CertificateRevokedException extends CertificateException {
* typed key or value
*/
@SideEffectFree
@SuppressWarnings("purity.not.sideeffectfree.call") // side effects are only on new objects
@SuppressWarnings("purity.call") // side effects are only on new objects
public CertificateRevokedException(Date revocationDate, CRLReason reason,
X500Principal authority, Map<String, Extension> extensions) {
if (revocationDate == null || reason == null || authority == null ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class InvalidPropertiesFormatException extends IOException {
* {@link Throwable#getCause()} method).
*/
@SideEffectFree
@SuppressWarnings("purity.not.sideeffectfree.call") // initCause affects only the new object
@SuppressWarnings("purity.call") // initCause affects only the new object
public InvalidPropertiesFormatException(@Nullable Throwable cause) {
super(cause==null ? null : cause.toString());
this.initCause(cause);
Expand Down
Loading