changeset 450:ac66e6701b65

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 Wed, 19 Dec 2012 13:13:19 -0800
parents 900662381e92
children 494d27cb3cd9
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	Tue Dec 18 16:55:48 2012 -0800
+++ b/src/com/sun/org/apache/xerces/internal/impl/Version.java	Wed Dec 19 13:13:19 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";