]> WPIA git - gigi.git/commitdiff
add: Allow TranslationCommands to be serialized
authorBenny Baumann <BenBE1987@gmx.net>
Sun, 31 Jul 2016 12:16:48 +0000 (14:16 +0200)
committerBenny Baumann <BenBE1987@gmx.net>
Sun, 31 Jul 2016 15:03:14 +0000 (17:03 +0200)
Change-Id: I6709c75ed6f151fe1acab2de0cfe3167911dac65

src/org/cacert/gigi/output/template/TranslateCommand.java

index 6532d94682e7cbff6cb100788106b9f5f56293d1..7bb601125101b226e1327a9fa74d56851fb80d69 100644 (file)
@@ -1,6 +1,7 @@
 package org.cacert.gigi.output.template;
 
 import java.io.PrintWriter;
 package org.cacert.gigi.output.template;
 
 import java.io.PrintWriter;
+import java.io.Serializable;
 import java.util.Collection;
 import java.util.Map;
 
 import java.util.Collection;
 import java.util.Map;
 
@@ -10,7 +11,9 @@ import org.cacert.gigi.util.HTMLEncoder;
 /**
  * Wraps a String that needs to be translated before it is printed to the user.
  */
 /**
  * Wraps a String that needs to be translated before it is printed to the user.
  */
-public final class TranslateCommand implements Translatable {
+public final class TranslateCommand implements Translatable, Serializable {
+
+    private static final long serialVersionUID = 1L;
 
     private final String raw;
 
 
     private final String raw;