changeset 14941:01e5737f9a1b

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
author joehw
date Tue, 18 Dec 2012 21:11:43 -0800
parents 2f2e4c3c6f47
children 0dbd45cfc14b
files jaxp/src/com/sun/org/apache/xerces/internal/impl/Version.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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";