Skip to content

Commit d15fbc2

Browse files
committed
8275187: Suppress warnings on non-serializable array component types in java.sql.rowset
Reviewed-by: lancea
1 parent d8f6b6c commit d15fbc2

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/java.sql.rowset/share/classes/com/sun/rowset/internal/BaseRow.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2021, 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
@@ -61,6 +61,7 @@ public abstract class BaseRow implements Serializable, Cloneable {
6161
* object.
6262
* @serial
6363
*/
64+
@SuppressWarnings("serial") // Array component type is not Serializable
6465
protected Object[] origVals;
6566

6667
/**

src/java.sql.rowset/share/classes/com/sun/rowset/internal/CachedRowSetWriter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable {
147147
*
148148
* @serial
149149
*/
150+
@SuppressWarnings("serial") // Array component type is not Serializable
150151
private Object[] params;
151152

152153
/**

src/java.sql.rowset/share/classes/com/sun/rowset/internal/Row.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2021, 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
@@ -53,6 +53,7 @@ public class Row extends BaseRow implements Serializable, Cloneable {
5353
* object.
5454
* @serial
5555
*/
56+
@SuppressWarnings("serial") // Array component type is not Serializable
5657
private Object[] currentVals;
5758

5859
/**

0 commit comments

Comments
 (0)