Преглед изворни кода

Added serialVersionUID to all serializable classes

git-svn-id: http://svn.dmdirc.com/trunk@298 00569f92-eb28-0410-84fd-f71c24880f
tags/0.2
Chris Smith пре 17 година
родитељ
комит
3e2fbec965

+ 7
- 0
src/uk/org/ownage/dmdirc/parser/callbacks/CallbackNotFound.java Прегледај датотеку

31
  * @version           $Id$
31
  * @version           $Id$
32
  */
32
  */
33
 public class CallbackNotFound extends Exception {
33
 public class CallbackNotFound extends Exception {
34
+	/**
35
+	 * A version number for this class. It should be changed whenever the class
36
+	 * structure is changed (or anything else that would prevent serialized
37
+	 * objects being unserialized with the new class).
38
+	 */
39
+	private static final long serialVersionUID = 1;
40
+	
34
 	/**
41
 	/**
35
 	 * Create a new CallbackNotFound Exception.
42
 	 * Create a new CallbackNotFound Exception.
36
 	 *
43
 	 *

+ 7
- 0
src/uk/org/ownage/dmdirc/ui/ChannelFrame.java Прегледај датотеку

48
  */
48
  */
49
 public class ChannelFrame extends javax.swing.JInternalFrame implements CommandWindow {
49
 public class ChannelFrame extends javax.swing.JInternalFrame implements CommandWindow {
50
     
50
     
51
+    /**
52
+     * A version number for this class. It should be changed whenever the class
53
+     * structure is changed (or anything else that would prevent serialized
54
+     * objects being unserialized with the new class).
55
+     */
56
+    private static final long serialVersionUID = 1;
57
+    
51
     private Channel parent;
58
     private Channel parent;
52
     private NicklistListModel nicklistModel;
59
     private NicklistListModel nicklistModel;
53
     
60
     

+ 7
- 0
src/uk/org/ownage/dmdirc/ui/FatalErrorDialog.java Прегледај датотеку

16
  */
16
  */
17
 public class FatalErrorDialog extends javax.swing.JDialog {
17
 public class FatalErrorDialog extends javax.swing.JDialog {
18
     
18
     
19
+    /**
20
+     * A version number for this class. It should be changed whenever the class
21
+     * structure is changed (or anything else that would prevent serialized
22
+     * objects being unserialized with the new class).
23
+     */
24
+    private static final long serialVersionUID = 1;    
25
+    
19
     public FatalErrorDialog(java.awt.Frame parent, boolean modal, String[] message) {
26
     public FatalErrorDialog(java.awt.Frame parent, boolean modal, String[] message) {
20
         super(parent, modal);
27
         super(parent, modal);
21
         initComponents();
28
         initComponents();

+ 1
- 7
src/uk/org/ownage/dmdirc/ui/IdentityManagerDialog.form Прегледај датотеку

129
         <Component class="javax.swing.JList" name="jList1">
129
         <Component class="javax.swing.JList" name="jList1">
130
           <Properties>
130
           <Properties>
131
             <Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor">
131
             <Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor">
132
-              <StringArray count="5">
133
-                <StringItem index="0" value="Item 1"/>
134
-                <StringItem index="1" value="Item 2"/>
135
-                <StringItem index="2" value="Item 3"/>
136
-                <StringItem index="3" value="Item 4"/>
137
-                <StringItem index="4" value="Item 5"/>
138
-              </StringArray>
132
+              <StringArray count="0"/>
139
             </Property>
133
             </Property>
140
           </Properties>
134
           </Properties>
141
         </Component>
135
         </Component>

+ 7
- 5
src/uk/org/ownage/dmdirc/ui/IdentityManagerDialog.java Прегледај датотеку

28
  */
28
  */
29
 public class IdentityManagerDialog extends javax.swing.JDialog {
29
 public class IdentityManagerDialog extends javax.swing.JDialog {
30
     
30
     
31
+    /**
32
+     * A version number for this class. It should be changed whenever the class
33
+     * structure is changed (or anything else that would prevent serialized
34
+     * objects being unserialized with the new class).
35
+     */
36
+    private static final long serialVersionUID = 1;    
37
+    
31
     /** Creates new form IdentityManagerDialog */
38
     /** Creates new form IdentityManagerDialog */
32
     public IdentityManagerDialog() {
39
     public IdentityManagerDialog() {
33
         initComponents();
40
         initComponents();
61
         jTextPane1.setText("Identities define your nickname, username, real name and other information relating to your presence on IRC. ");
68
         jTextPane1.setText("Identities define your nickname, username, real name and other information relating to your presence on IRC. ");
62
         jScrollPane1.setViewportView(jTextPane1);
69
         jScrollPane1.setViewportView(jTextPane1);
63
 
70
 
64
-        jList1.setModel(new javax.swing.AbstractListModel() {
65
-            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
66
-            public int getSize() { return strings.length; }
67
-            public Object getElementAt(int i) { return strings[i]; }
68
-        });
69
         jScrollPane2.setViewportView(jList1);
71
         jScrollPane2.setViewportView(jList1);
70
 
72
 
71
         jLabel1.setText("Nicknames:");
73
         jLabel1.setText("Nicknames:");

+ 7
- 0
src/uk/org/ownage/dmdirc/ui/MainFrame.java Прегледај датотеку

42
  */
42
  */
43
 public class MainFrame extends javax.swing.JFrame implements WindowListener {
43
 public class MainFrame extends javax.swing.JFrame implements WindowListener {
44
     
44
     
45
+    /**
46
+     * A version number for this class. It should be changed whenever the class
47
+     * structure is changed (or anything else that would prevent serialized
48
+     * objects being unserialized with the new class).
49
+     */
50
+    private static final long serialVersionUID = 1;    
51
+    
45
     /**
52
     /**
46
      * Singleton instance of MainFrame
53
      * Singleton instance of MainFrame
47
      */
54
      */

+ 7
- 0
src/uk/org/ownage/dmdirc/ui/NewServerDialog.java Прегледај датотеку

41
  */
41
  */
42
 public class NewServerDialog extends javax.swing.JDialog {
42
 public class NewServerDialog extends javax.swing.JDialog {
43
     
43
     
44
+    /**
45
+     * A version number for this class. It should be changed whenever the class
46
+     * structure is changed (or anything else that would prevent serialized
47
+     * objects being unserialized with the new class).
48
+     */
49
+    private static final long serialVersionUID = 1;    
50
+    
44
     /**
51
     /**
45
      * A previously created instance of NewServerDialog
52
      * A previously created instance of NewServerDialog
46
      */
53
      */

+ 7
- 0
src/uk/org/ownage/dmdirc/ui/QueryFrame.java Прегледај датотеку

29
  */
29
  */
30
 public class QueryFrame extends ServerFrame {
30
 public class QueryFrame extends ServerFrame {
31
     
31
     
32
+    /**
33
+     * A version number for this class. It should be changed whenever the class
34
+     * structure is changed (or anything else that would prevent serialized
35
+     * objects being unserialized with the new class).
36
+     */
37
+    private static final long serialVersionUID = 1;    
38
+    
32
     /**
39
     /**
33
      * Creates a new QueryFrame
40
      * Creates a new QueryFrame
34
      * @param commandParser The command parser to use
41
      * @param commandParser The command parser to use

+ 7
- 0
src/uk/org/ownage/dmdirc/ui/ServerFrame.java Прегледај датотеку

46
  */
46
  */
47
 public class ServerFrame extends javax.swing.JInternalFrame implements CommandWindow {
47
 public class ServerFrame extends javax.swing.JInternalFrame implements CommandWindow {
48
     
48
     
49
+    /**
50
+     * A version number for this class. It should be changed whenever the class
51
+     * structure is changed (or anything else that would prevent serialized
52
+     * objects being unserialized with the new class).
53
+     */
54
+    private static final long serialVersionUID = 1;    
55
+    
49
     /**
56
     /**
50
      * The border used when the frame is not maximised
57
      * The border used when the frame is not maximised
51
      */
58
      */

Loading…
Откажи
Сачувај