Skip to content

Commit

Permalink
8232448: Suppress warnings on non-serializable non-transient instance…
Browse files Browse the repository at this point in the history
… fields in jdk.jdi

Reviewed-by: sspitsyn
  • Loading branch information
jddarcy committed Oct 17, 2019
1 parent 68dbbf5 commit bd96098
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2019, 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
Expand Down Expand Up @@ -36,6 +36,7 @@ public class InvocationException extends Exception {

private static final long serialVersionUID = 6066780907971918568L;

@SuppressWarnings("serial") // Not statically typed as Serializable
ObjectReference exception;

public InvocationException(ObjectReference exception) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2019, 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
Expand Down Expand Up @@ -40,6 +40,7 @@ public class IllegalConnectorArgumentsException extends Exception {

private static final long serialVersionUID = -3042212603611350941L;

@SuppressWarnings("serial") // Conditionally serializable
List<String> names;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2019, 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
Expand Down Expand Up @@ -38,6 +38,7 @@ public class VMStartException extends Exception {

private static final long serialVersionUID = 6408644824640801020L;

@SuppressWarnings("serial") // Not statically typed as Serializable
Process process;

public VMStartException(Process process) {
Expand Down

0 comments on commit bd96098

Please sign in to comment.