@@ -2246,6 +2246,8 @@ public void testMoveFile_Rename() throws Exception {
22462246 public void testMoveFile_CopyDelete () throws Exception {
22472247 final File destination = new File ( getTestDirectory (), "move2.txt" );
22482248 final File src = new File ( testFile1 .getAbsolutePath () ) {
2249+ private static final long serialVersionUID = 1L ;
2250+
22492251 // Force renameTo to fail, as if destination is on another
22502252 // filesystem
22512253 @ Override
@@ -2262,6 +2264,8 @@ public boolean renameTo( final File f ) {
22622264 public void testMoveFile_CopyDelete_Failed () throws Exception {
22632265 final File destination = new File ( getTestDirectory (), "move3.txt" );
22642266 final File src = new File ( testFile1 .getAbsolutePath () ) {
2267+ private static final long serialVersionUID = 1L ;
2268+
22652269 // Force renameTo to fail, as if destination is on another
22662270 // filesystem
22672271 @ Override
@@ -2394,6 +2398,7 @@ public void testMoveDirectory_CopyDelete() throws Exception {
23942398
23952399 final File dir = getTestDirectory ();
23962400 final File src = new File (dir , "testMoveDirectory2Source" ) {
2401+ private static final long serialVersionUID = 1L ;
23972402
23982403 // Force renameTo to fail
23992404 @ Override
@@ -2589,6 +2594,7 @@ public void testIO276() throws Exception {
25892594
25902595 // Test helper class to pretend a file is shorter than it is
25912596 private static class ShorterFile extends File {
2597+ private static final long serialVersionUID = 1L ;
25922598 public ShorterFile (String pathname ) {
25932599 super (pathname );
25942600 }
0 commit comments