changeset 56461:91d236715160

8231545: Suppress warnings on non-serializable instance fields in jdk.jshell module Reviewed-by: rfield
author darcy
date Tue, 01 Oct 2019 20:07:30 -0700
parents a7c95e2f8814
children 1181f58f30e2
files src/jdk.jshell/share/classes/jdk/jshell/ExpressionToTypeInfo.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jshell/share/classes/jdk/jshell/ExpressionToTypeInfo.java	Sat Sep 28 11:04:01 2019 +0200
+++ b/src/jdk.jshell/share/classes/jdk/jshell/ExpressionToTypeInfo.java	Tue Oct 01 20:07:30 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 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
@@ -149,6 +149,7 @@
     private static class Result extends Error {
 
         static final long serialVersionUID = -5942088234594905629L;
+        @SuppressWarnings("serial") // Not statically typed as Serializable
         final TreePath expressionPath;
 
         Result(TreePath path) {