Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

Commit 47eec22

Browse files
Merge pull request #11780 from qmonmert/typo240125
Rename variables
2 parents 924511f + da266a1 commit 47eec22

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/main/java/tech/jhipster/lite/generator/client/angular/security/oauth2/domain/AngularOauth2ModuleFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class AngularOauth2ModuleFactory {
6767
import { Oauth2AuthService } from './auth/oauth2-auth.service';
6868
""";
6969

70-
private static final ElementReplacer APPNAME_NEEDLE = lineAfterRegex("appName = signal\\(''\\);");
70+
private static final ElementReplacer APP_NAME_NEEDLE = lineAfterRegex("appName = signal\\(''\\);");
7171

7272
private static final String INJECT_OAUTH2_AUTH_SERVICE =
7373
"""
@@ -139,7 +139,7 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
139139
.add(lineAfterRegex("from '@angular/core';"), OAUTH2_AUTH_SERVICE_IMPORT)
140140
.add(lineAfterRegex("from './auth/oauth2-auth.service';"), LOGIN_IMPORT)
141141
.add(INJECT_NEEDLE, INJECT_IMPORT)
142-
.add(APPNAME_NEEDLE, INJECT_OAUTH2_AUTH_SERVICE)
142+
.add(APP_NAME_NEEDLE, INJECT_OAUTH2_AUTH_SERVICE)
143143
.add(lineAfterRegex("this.appName.set\\('" + properties.projectBaseName().name() + "'\\);"), INIT_AUTHENTICATION)
144144
.and()
145145
.in(path("src/main/webapp/app/app.component.html"))

src/main/java/tech/jhipster/lite/generator/server/javatool/protobuf/domain/ProtobufModuleFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class ProtobufModuleFactory {
3333

3434
private static final String PROTOBUF_PACKAGE = "shared/protobuf";
3535
private static final VersionSlug PROTOBUF_VERSION_SLUG = versionSlug("protobuf");
36-
private static final GroupId PROTOBUF_GROUPID = groupId("com.google.protobuf");
36+
private static final GroupId PROTOBUF_GROUP_ID = groupId("com.google.protobuf");
3737

3838
public JHipsterModule buildProtobufModule(JHipsterModuleProperties properties) {
3939
Assert.notNull("properties", properties);
@@ -58,8 +58,8 @@ public JHipsterModule buildProtobufModule(JHipsterModuleProperties properties) {
5858
)
5959
.and()
6060
.javaDependencies()
61-
.addDependency(PROTOBUF_GROUPID, artifactId("protobuf-java"), PROTOBUF_VERSION_SLUG)
62-
.addTestDependency(PROTOBUF_GROUPID, artifactId("protobuf-java-util"), PROTOBUF_VERSION_SLUG)
61+
.addDependency(PROTOBUF_GROUP_ID, artifactId("protobuf-java"), PROTOBUF_VERSION_SLUG)
62+
.addTestDependency(PROTOBUF_GROUP_ID, artifactId("protobuf-java-util"), PROTOBUF_VERSION_SLUG)
6363
.and()
6464
.mavenPlugins()
6565
.pluginManagement(protobufMavenPluginManagement())

src/main/java/tech/jhipster/lite/generator/server/springboot/mvc/security/oauth2/account/domain/OAuth2AccountModuleFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class OAuth2AccountModuleFactory {
1818
private static final String INFRASTRUCTURE = "infrastructure";
1919
private static final String PRIMARY = INFRASTRUCTURE + "/primary";
2020
private static final String SECONDARY = INFRASTRUCTURE + "/secondary";
21-
private static final String USERIDENTITY_DESTINATION = "shared/useridentity";
21+
private static final String USER_IDENTITY_DESTINATION = "shared/useridentity";
2222

2323
private static final JHipsterSource ACCOUNT_SOURCE = from("server/springboot/mvc/security/oauth2/account");
2424
private static final JHipsterSource ACCOUNT_MAIN_SOURCE = ACCOUNT_SOURCE.append("main");
@@ -33,8 +33,8 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
3333
JHipsterDestination accountMainDestination = toSrcMainJava().append(packagePath).append("account");
3434
JHipsterDestination accountTestDestination = toSrcTestJava().append(packagePath).append("account");
3535

36-
JHipsterDestination userIdentityMainDestination = toSrcMainJava().append(packagePath).append(USERIDENTITY_DESTINATION);
37-
JHipsterDestination userIdentityTestDestination = toSrcTestJava().append(packagePath).append(USERIDENTITY_DESTINATION);
36+
JHipsterDestination userIdentityMainDestination = toSrcMainJava().append(packagePath).append(USER_IDENTITY_DESTINATION);
37+
JHipsterDestination userIdentityTestDestination = toSrcTestJava().append(packagePath).append(USER_IDENTITY_DESTINATION);
3838

3939
//@formatter:off
4040
return moduleBuilder(properties)

0 commit comments

Comments
 (0)