8003261: static field is public but not final
authorjoehw
Tue, 18 Dec 2012 21:11:43 -0800
changeset 14941 01e5737f9a1b
parent 14940 2f2e4c3c6f47
child 14942 0dbd45cfc14b
8003261: static field is public but not final Summary: add final to fVersion field, and make it a non-compile time constant. Reviewed-by: hawtin, lancea, dholmes, chegar
jaxp/src/com/sun/org/apache/xerces/internal/impl/Version.java
--- a/jaxp/src/com/sun/org/apache/xerces/internal/impl/Version.java	Sun Dec 16 22:05:19 2012 -0800
+++ b/jaxp/src/com/sun/org/apache/xerces/internal/impl/Version.java	Tue Dec 18 21:11:43 2012 -0800
@@ -74,7 +74,7 @@
 
     /** Version string.
      * @deprecated  getVersion() should be used instead.  */
-    public static String fVersion = "Xerces-J 2.7.1";
+    public static final String fVersion = getVersion();
 
     private static final String fImmutableVersion = "Xerces-J 2.7.1";