velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r1770161 - /velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/UAParser.java
Date Thu, 17 Nov 2016 11:11:02 GMT
Author: cbrisson
Date: Thu Nov 17 11:11:02 2016
New Revision: 1770161

URL: http://svn.apache.org/viewvc?rev=1770161&view=rev
Log:
[tools] BrowserTool UAParser inner classes should be Serializable

Modified:
    velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/UAParser.java

Modified: velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/UAParser.java
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/UAParser.java?rev=1770161&r1=1770160&r2=1770161&view=diff
==============================================================================
--- velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/UAParser.java
(original)
+++ velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/UAParser.java
Thu Nov 17 11:11:02 2016
@@ -12,6 +12,7 @@ import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;
+import java.io.Serializable;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Properties;
@@ -24,7 +25,7 @@ public class UAParser
     {
     }
 
-    public static class UAEntity
+    public static class UAEntity implements Serializable
     {
         private String name = null;
         private int majorVersion = -1;
@@ -120,7 +121,7 @@ public class UAParser
         osTranslationMap.put("win98", "Windows");
     }
 
-    public static class UserAgent
+    public static class UserAgent implements Serializable
     {
         private DeviceType deviceType = null;
         private UAEntity operatingSystem = null;



Mime
View raw message