ソースを参照

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,6 +31,13 @@ package uk.org.ownage.dmdirc.parser.callbacks;
31 31
  * @version           $Id$
32 32
  */
33 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 42
 	 * Create a new CallbackNotFound Exception.
36 43
 	 *

+ 7
- 0
src/uk/org/ownage/dmdirc/ui/ChannelFrame.java ファイルの表示

@@ -48,6 +48,13 @@ import uk.org.ownage.dmdirc.ui.messages.Styliser;
48 48
  */
49 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 58
     private Channel parent;
52 59
     private NicklistListModel nicklistModel;
53 60
     

+ 7
- 0
src/uk/org/ownage/dmdirc/ui/FatalErrorDialog.java ファイルの表示

@@ -16,6 +16,13 @@ import uk.org.ownage.dmdirc.logger.Logger;
16 16
  */
17 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 26
     public FatalErrorDialog(java.awt.Frame parent, boolean modal, String[] message) {
20 27
         super(parent, modal);
21 28
         initComponents();

+ 1
- 7
src/uk/org/ownage/dmdirc/ui/IdentityManagerDialog.form ファイルの表示

@@ -129,13 +129,7 @@
129 129
         <Component class="javax.swing.JList" name="jList1">
130 130
           <Properties>
131 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 133
             </Property>
140 134
           </Properties>
141 135
         </Component>

+ 7
- 5
src/uk/org/ownage/dmdirc/ui/IdentityManagerDialog.java ファイルの表示

@@ -28,6 +28,13 @@ package uk.org.ownage.dmdirc.ui;
28 28
  */
29 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 38
     /** Creates new form IdentityManagerDialog */
32 39
     public IdentityManagerDialog() {
33 40
         initComponents();
@@ -61,11 +68,6 @@ public class IdentityManagerDialog extends javax.swing.JDialog {
61 68
         jTextPane1.setText("Identities define your nickname, username, real name and other information relating to your presence on IRC. ");
62 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 71
         jScrollPane2.setViewportView(jList1);
70 72
 
71 73
         jLabel1.setText("Nicknames:");

+ 7
- 0
src/uk/org/ownage/dmdirc/ui/MainFrame.java ファイルの表示

@@ -42,6 +42,13 @@ import uk.org.ownage.dmdirc.logger.ErrorLevel;
42 42
  */
43 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 53
      * Singleton instance of MainFrame
47 54
      */

+ 7
- 0
src/uk/org/ownage/dmdirc/ui/NewServerDialog.java ファイルの表示

@@ -41,6 +41,13 @@ import uk.org.ownage.dmdirc.logger.Logger;
41 41
  */
42 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 52
      * A previously created instance of NewServerDialog
46 53
      */

+ 7
- 0
src/uk/org/ownage/dmdirc/ui/QueryFrame.java ファイルの表示

@@ -29,6 +29,13 @@ import uk.org.ownage.dmdirc.commandparser.CommandParser;
29 29
  */
30 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 40
      * Creates a new QueryFrame
34 41
      * @param commandParser The command parser to use

+ 7
- 0
src/uk/org/ownage/dmdirc/ui/ServerFrame.java ファイルの表示

@@ -46,6 +46,13 @@ import uk.org.ownage.dmdirc.ui.messages.Styliser;
46 46
  */
47 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 57
      * The border used when the frame is not maximised
51 58
      */

読み込み中…
キャンセル
保存