diff --git a/auth/realm/base/src/main/java/org/wildfly/security/auth/realm/FileSystemSecurityRealm.java b/auth/realm/base/src/main/java/org/wildfly/security/auth/realm/FileSystemSecurityRealm.java index ba1ef0c041..2b04bf1ca1 100644 --- a/auth/realm/base/src/main/java/org/wildfly/security/auth/realm/FileSystemSecurityRealm.java +++ b/auth/realm/base/src/main/java/org/wildfly/security/auth/realm/FileSystemSecurityRealm.java @@ -1000,7 +1000,7 @@ private Void replaceIdentityPrivileged(final LoadedIdentity newIdentity) throws } } - private Version requiredVersion(final LoadedIdentity identityToWrite) { + private Version requiredVersion() { // As new functionality is added we will identify if we need to use a later version // if new functionality is used then use the required schema version otherwise fallback // to an older version. @@ -1018,7 +1018,7 @@ private void writeIdentity(final XMLStreamWriter streamWriter, final LoadedIdent streamWriter.writeStartDocument(); streamWriter.writeCharacters("\n"); streamWriter.writeStartElement("identity"); - streamWriter.writeDefaultNamespace(requiredVersion(newIdentity).getNamespace()); + streamWriter.writeDefaultNamespace(requiredVersion().getNamespace()); if (integrityEnabled) { streamWriter.writeCharacters("\n ");