equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
32 import java.io.*; |
32 import java.io.*; |
33 import java.util.Vector; |
33 import java.util.Vector; |
34 |
34 |
35 public class Foo implements Runnable { |
35 public class Foo implements Runnable { |
36 |
36 |
37 static class TestElement extends Object implements Serializable {} |
37 static class TestElement extends Object implements Serializable { |
|
38 private static final long serialVersionUID = 1L; |
|
39 } |
38 |
40 |
39 public void run() { |
41 public void run() { |
40 try { |
42 try { |
41 Vector<TestElement> container = new Vector<TestElement>(); |
43 Vector<TestElement> container = new Vector<TestElement>(); |
42 container.add(new TestElement()); |
44 container.add(new TestElement()); |