mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
Review comment
This commit is contained in:
parent
d4cf50ffdb
commit
be309cde87
@ -57,6 +57,8 @@ import java.io.IOException;
|
||||
import java.io.InvalidObjectException;
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.ObjectOutputStream;
|
||||
import java.io.ObjectInput;
|
||||
import java.io.ObjectOutput;
|
||||
import java.io.Serial;
|
||||
import java.text.DateFormat;
|
||||
import java.text.MessageFormat;
|
||||
@ -5607,9 +5609,9 @@ public class JTable extends JComponent implements TableModelListener, Scrollable
|
||||
return value;
|
||||
}
|
||||
|
||||
public void writeExternal(java.io.ObjectOutput out) throws IOException {}
|
||||
public void writeExternal(ObjectOutput out) throws IOException {}
|
||||
|
||||
public void readExternal(java.io.ObjectInput in) throws IOException {}
|
||||
public void readExternal(ObjectInput in) throws IOException {}
|
||||
}
|
||||
|
||||
static class NumberEditor extends GenericEditor {
|
||||
|
||||
@ -61,8 +61,8 @@ public class EditingJTableNotSerializable {
|
||||
private static JTable jt;
|
||||
private static void testSerializeEditingTable(StringBuilder str) {
|
||||
try {
|
||||
Object[][] data = new Object[][]{ new Object[]{ 1,2,3,4,5}};
|
||||
Object[] names = new Object[]{ 1,2,3,4,5};
|
||||
Object[][] data = new Object[][]{ new Object[]{1, 2, 3, 4, 5}};
|
||||
Object[] names = new Object[]{1, 2, 3, 4, 5};
|
||||
SwingUtilities.invokeAndWait(() -> {
|
||||
jt = new JTable(data, names);
|
||||
jt.editCellAt(0,3);
|
||||
@ -79,8 +79,8 @@ public class EditingJTableNotSerializable {
|
||||
|
||||
private static void testSerializeNonEditingTable(StringBuilder str) {
|
||||
try {
|
||||
Object[][] data = new Object[][]{ new Object[]{ 1,2,3,4,5}};
|
||||
Object[] names = new Object[]{ 1,2,3,4,5};
|
||||
Object[][] data = new Object[][]{ new Object[]{1, 2, 3, 4, 5}};
|
||||
Object[] names = new Object[]{1, 2, 3, 4, 5};
|
||||
SwingUtilities.invokeAndWait(() -> {
|
||||
jt = new JTable(data, names);
|
||||
jt.editCellAt(0,3);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user