Skip to content

Commit 48f186b

Browse files
committed
8231545: Suppress warnings on non-serializable instance fields in jdk.jshell module
Reviewed-by: rfield
1 parent cb9510d commit 48f186b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jdk.jshell/share/classes/jdk/jshell/ExpressionToTypeInfo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -149,6 +149,7 @@ public VariableDesc(String type, String name) {
149149
private static class Result extends Error {
150150

151151
static final long serialVersionUID = -5942088234594905629L;
152+
@SuppressWarnings("serial") // Not statically typed as Serializable
152153
final TreePath expressionPath;
153154

154155
Result(TreePath path) {

0 commit comments

Comments
 (0)