mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8003261: static field is public but not final
Add final to fVersion field, and make it a non-compile time constant. Reviewed-by: hawtin, lancea, dholmes, chegar
This commit is contained in:
parent
7aab781edb
commit
9ee412031f
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ public class Version {
|
|||
|
||||
/** 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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue