diff --git a/generators/server/templates/src/main/java/package/config/locale/_AngularCookieLocaleResolver.java b/generators/server/templates/src/main/java/package/config/locale/_AngularCookieLocaleResolver.java
index <HASH>..<HASH> 100644
--- a/generators/server/templates/src/main/java/package/config/locale/_AngularCookieLocaleResolver.java
+++ b/generators/server/templates/src/main/java/package/config/locale/_AngularCookieLocaleResolver.java
@@ -44,9 +44,8 @@ public class AngularCookieLocaleResolver extends CookieLocaleResolver {
 
     @Override
     public void addCookie(HttpServletResponse response, String cookieValue) {
-        // Mandatory cookie modification for angular to support the locale switching on the server side.
-        cookieValue = "%22" + cookieValue + "%22";
-        super.addCookie(response, cookieValue);
+        // Mandatory cookie modification for AngularJS to support the locale switching on the server side.
+        super.addCookie(response, "%22" + cookieValue + "%22");
     }
 
     private void parseLocaleCookieIfNecessary(HttpServletRequest request) {
[Sonar] remove variable intermediary change