changeset 408:15b32367b23c

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 8a20e948b806
children d4aea0225e80
files src/com/sun/org/apache/xerces/internal/impl/Version.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/com/sun/org/apache/xerces/internal/impl/Version.java	Sun Dec 16 22:05:19 2012 -0800
+++ b/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";