Review comment

This commit is contained in:
Prasanta Sadhukhan 2026-01-18 13:18:15 +00:00
parent d4cf50ffdb
commit be309cde87
2 changed files with 8 additions and 6 deletions

View File

@ -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 {

View File

@ -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);