Skip to content

Commit

Permalink
Merge pull request #25619 from mshima/cleanup
Browse files Browse the repository at this point in the history
remove type inferrence from delegateTasksToBlueprint calls
  • Loading branch information
DanielFran authored Mar 25, 2024
2 parents 8a0ac1d + 5c0003d commit a3bbdc9
Show file tree
Hide file tree
Showing 21 changed files with 48 additions and 48 deletions.
8 changes: 4 additions & 4 deletions generators/angular/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class AngularGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.LOADING]() {
return this.asLoadingTaskGroup(this.delegateTasksToBlueprint(() => this.loading));
return this.delegateTasksToBlueprint(() => this.loading);
}

get preparing() {
Expand Down Expand Up @@ -138,7 +138,7 @@ export default class AngularGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.PREPARING]() {
return this.asPreparingTaskGroup(this.delegateTasksToBlueprint(() => this.preparing));
return this.delegateTasksToBlueprint(() => this.preparing);
}

get preparingEachEntity() {
Expand Down Expand Up @@ -180,7 +180,7 @@ export default class AngularGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.DEFAULT]() {
return this.asDefaultTaskGroup(this.delegateTasksToBlueprint(() => this.default));
return this.delegateTasksToBlueprint(() => this.default);
}

get writing() {
Expand Down Expand Up @@ -229,7 +229,7 @@ export default class AngularGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.END]() {
return this.asEndTaskGroup(this.delegateTasksToBlueprint(() => this.end));
return this.delegateTasksToBlueprint(() => this.end);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion generators/bootstrap-application-base/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export default class BootstrapApplicationBase extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_PREPARING_EACH_ENTITY]() {
return this.asPostPreparingEachEntityTaskGroup(this.delegateTasksToBlueprint(() => this.postPreparingEachEntity));
return this.delegateTasksToBlueprint(() => this.postPreparingEachEntity);
}

get default() {
Expand Down
18 changes: 9 additions & 9 deletions generators/client/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class JHipsterClientGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.PROMPTING]() {
return this.asPromptingTaskGroup(this.delegateTasksToBlueprint(() => this.prompting));
return this.delegateTasksToBlueprint(() => this.prompting);
}

get configuring() {
Expand Down Expand Up @@ -123,7 +123,7 @@ export default class JHipsterClientGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.CONFIGURING]() {
return this.asConfiguringTaskGroup(this.delegateTasksToBlueprint(() => this.configuring));
return this.delegateTasksToBlueprint(() => this.configuring);
}

get composing() {
Expand All @@ -141,7 +141,7 @@ export default class JHipsterClientGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.COMPOSING]() {
return this.asComposingTaskGroup(this.delegateTasksToBlueprint(() => this.composing));
return this.delegateTasksToBlueprint(() => this.composing);
}

get loading() {
Expand All @@ -162,7 +162,7 @@ export default class JHipsterClientGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.LOADING]() {
return this.asLoadingTaskGroup(this.delegateTasksToBlueprint(() => this.loading));
return this.delegateTasksToBlueprint(() => this.loading);
}

// Public API method used by the getter and also by Blueprints
Expand Down Expand Up @@ -195,7 +195,7 @@ export default class JHipsterClientGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.PREPARING]() {
return this.asPreparingTaskGroup(this.delegateTasksToBlueprint(() => this.preparing));
return this.delegateTasksToBlueprint(() => this.preparing);
}

get preparingEachEntity() {
Expand Down Expand Up @@ -228,7 +228,7 @@ export default class JHipsterClientGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.DEFAULT]() {
return this.asDefaultTaskGroup(this.delegateTasksToBlueprint(() => this.default));
return this.delegateTasksToBlueprint(() => this.default);
}

// Public API method used by the getter and also by Blueprints
Expand All @@ -242,7 +242,7 @@ export default class JHipsterClientGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.WRITING]() {
return this.asWritingTaskGroup(this.delegateTasksToBlueprint(() => this.writing));
return this.delegateTasksToBlueprint(() => this.writing);
}

get writingEntities() {
Expand All @@ -259,7 +259,7 @@ export default class JHipsterClientGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.WRITING_ENTITIES]() {
return this.asWritingEntitiesTaskGroup(this.delegateTasksToBlueprint(() => this.writingEntities));
return this.delegateTasksToBlueprint(() => this.writingEntities);
}

get postWriting() {
Expand Down Expand Up @@ -307,6 +307,6 @@ export default class JHipsterClientGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_WRITING]() {
return this.asPostWritingTaskGroup(this.delegateTasksToBlueprint(() => this.postWriting));
return this.delegateTasksToBlueprint(() => this.postWriting);
}
}
4 changes: 2 additions & 2 deletions generators/common/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class CommonGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.PROMPTING]() {
return this.asPromptingTaskGroup(this.delegateTasksToBlueprint(() => this.prompting));
return this.delegateTasksToBlueprint(() => this.prompting);
}

// Public API method used by the getter and also by Blueprints
Expand Down Expand Up @@ -194,7 +194,7 @@ export default class CommonGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.DEFAULT]() {
return this.asDefaultTaskGroup(this.delegateTasksToBlueprint(() => this.default));
return this.delegateTasksToBlueprint(() => this.default);
}

// Public API method used by the getter and also by Blueprints
Expand Down
2 changes: 1 addition & 1 deletion generators/docker/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class DockerGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.LOADING]() {
return this.asLoadingTaskGroup(this.delegateTasksToBlueprint(() => this.loading));
return this.delegateTasksToBlueprint(() => this.loading);
}

get preparing() {
Expand Down
2 changes: 1 addition & 1 deletion generators/feign-client/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ export default class FeignClientGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_WRITING]() {
return this.asPostWritingTaskGroup(this.delegateTasksToBlueprint(() => this.postWriting));
return this.delegateTasksToBlueprint(() => this.postWriting);
}
}
6 changes: 3 additions & 3 deletions generators/java/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class JavaGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.INITIALIZING]() {
return this.asInitializingTaskGroup(this.delegateTasksToBlueprint(() => this.initializing));
return this.delegateTasksToBlueprint(() => this.initializing);
}

get configuring() {
Expand All @@ -87,7 +87,7 @@ export default class JavaGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.CONFIGURING]() {
return this.asConfiguringTaskGroup(this.delegateTasksToBlueprint(() => this.configuring));
return this.delegateTasksToBlueprint(() => this.configuring);
}

get preparing() {
Expand Down Expand Up @@ -221,7 +221,7 @@ export default class JavaGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_PREPARING_EACH_ENTITY]() {
return this.asPostPreparingEachEntityTaskGroup(this.delegateTasksToBlueprint(() => this.postPreparingEachEntity));
return this.delegateTasksToBlueprint(() => this.postPreparingEachEntity);
}

get default() {
Expand Down
4 changes: 2 additions & 2 deletions generators/liquibase/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default class LiquibaseGenerator extends BaseEntityChangesGenerator {
}

get [BaseEntityChangesGenerator.INITIALIZING]() {
return this.asInitializingTaskGroup(this.delegateTasksToBlueprint(() => this.initializing));
return this.delegateTasksToBlueprint(() => this.initializing);
}

get preparing() {
Expand Down Expand Up @@ -467,7 +467,7 @@ export default class LiquibaseGenerator extends BaseEntityChangesGenerator {
}

get [BaseEntityChangesGenerator.POST_WRITING]() {
return this.asPostWritingTaskGroup(this.delegateTasksToBlueprint(() => this.postWriting));
return this.delegateTasksToBlueprint(() => this.postWriting);
}

get postWritingEntities() {
Expand Down
6 changes: 3 additions & 3 deletions generators/react/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class ReactGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.PREPARING]() {
return this.asPreparingTaskGroup(this.delegateTasksToBlueprint(() => this.preparing));
return this.delegateTasksToBlueprint(() => this.preparing);
}

get preparingEachEntity() {
Expand All @@ -105,7 +105,7 @@ export default class ReactGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.PREPARING_EACH_ENTITY]() {
return this.asPreparingEachEntityTaskGroup(this.delegateTasksToBlueprint(() => this.preparingEachEntity));
return this.delegateTasksToBlueprint(() => this.preparingEachEntity);
}

get default() {
Expand Down Expand Up @@ -175,7 +175,7 @@ export default class ReactGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.END]() {
return this.asEndTaskGroup(this.delegateTasksToBlueprint(() => this.end));
return this.delegateTasksToBlueprint(() => this.end);
}

/**
Expand Down
20 changes: 10 additions & 10 deletions generators/server/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.INITIALIZING]() {
return this.asInitializingTaskGroup(this.delegateTasksToBlueprint(() => this.initializing));
return this.delegateTasksToBlueprint(() => this.initializing);
}

get prompting() {
Expand All @@ -165,7 +165,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.PROMPTING]() {
return this.asPromptingTaskGroup(this.delegateTasksToBlueprint(() => this.prompting));
return this.delegateTasksToBlueprint(() => this.prompting);
}

get configuring() {
Expand Down Expand Up @@ -201,7 +201,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.CONFIGURING]() {
return this.asConfiguringTaskGroup(this.delegateTasksToBlueprint(() => this.configuring));
return this.delegateTasksToBlueprint(() => this.configuring);
}

get composing() {
Expand Down Expand Up @@ -241,7 +241,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.COMPOSING]() {
return this.asComposingTaskGroup(this.delegateTasksToBlueprint(() => this.composing));
return this.delegateTasksToBlueprint(() => this.composing);
}

get loading() {
Expand Down Expand Up @@ -334,7 +334,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.PREPARING]() {
return this.asPreparingTaskGroup(this.delegateTasksToBlueprint(() => this.preparing));
return this.delegateTasksToBlueprint(() => this.preparing);
}

get postPreparing() {
Expand Down Expand Up @@ -514,7 +514,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.CONFIGURING_EACH_ENTITY]() {
return this.asConfiguringEachEntityTaskGroup(this.delegateTasksToBlueprint(() => this.configuringEachEntity));
return this.delegateTasksToBlueprint(() => this.configuringEachEntity);
}

get preparingEachEntity() {
Expand Down Expand Up @@ -545,7 +545,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_PREPARING_EACH_ENTITY]() {
return this.asPostPreparingEachEntityTaskGroup(this.delegateTasksToBlueprint(() => this.postPreparingEachEntity));
return this.delegateTasksToBlueprint(() => this.postPreparingEachEntity);
}

/** @inheritdoc */
Expand Down Expand Up @@ -585,7 +585,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.DEFAULT]() {
return this.asDefaultTaskGroup(this.delegateTasksToBlueprint(() => this.default));
return this.delegateTasksToBlueprint(() => this.default);
}

get postWriting() {
Expand Down Expand Up @@ -678,7 +678,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_WRITING]() {
return this.asPostWritingTaskGroup(this.delegateTasksToBlueprint(() => this.postWriting));
return this.delegateTasksToBlueprint(() => this.postWriting);
}

get postWritingEntities() {
Expand Down Expand Up @@ -709,7 +709,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_WRITING_ENTITIES]() {
return this.asPostWritingEntitiesTaskGroup(this.delegateTasksToBlueprint(() => this.postWritingEntities));
return this.delegateTasksToBlueprint(() => this.postWritingEntities);
}

_configureServer(config = this.jhipsterConfigWithDefaults, dest = this.jhipsterConfig) {
Expand Down
2 changes: 1 addition & 1 deletion generators/spring-boot/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ public void set${javaBeanCase(propertyName)}(${propertyType} ${propertyName}) {
}

get [BaseApplicationGenerator.END]() {
return this.asEndTaskGroup(this.delegateTasksToBlueprint(() => this.end));
return this.delegateTasksToBlueprint(() => this.end);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions generators/spring-cache/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default class SpringCacheGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_WRITING]() {
return this.asPostWritingTaskGroup(this.delegateTasksToBlueprint(() => this.postWriting));
return this.delegateTasksToBlueprint(() => this.postWriting);
}

get postWritingEntities() {
Expand All @@ -175,6 +175,6 @@ export default class SpringCacheGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_WRITING_ENTITIES]() {
return this.asPostWritingEntitiesTaskGroup(this.delegateTasksToBlueprint(() => this.postWritingEntities));
return this.delegateTasksToBlueprint(() => this.postWritingEntities);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ export default class KafkaGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_WRITING]() {
return this.asPostWritingTaskGroup(this.delegateTasksToBlueprint(() => this.postWriting));
return this.delegateTasksToBlueprint(() => this.postWriting);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ export default class PulsarGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_WRITING]() {
return this.asPostWritingTaskGroup(this.delegateTasksToBlueprint(() => this.postWriting));
return this.delegateTasksToBlueprint(() => this.postWriting);
}
}
2 changes: 1 addition & 1 deletion generators/spring-data-cassandra/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ export default class CassandraGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_WRITING]() {
return this.asPostWritingTaskGroup(this.delegateTasksToBlueprint(() => this.postWriting));
return this.delegateTasksToBlueprint(() => this.postWriting);
}
}
2 changes: 1 addition & 1 deletion generators/spring-data-couchbase/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ export default class CouchbaseGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_WRITING]() {
return this.asPostWritingTaskGroup(this.delegateTasksToBlueprint(() => this.postWriting));
return this.delegateTasksToBlueprint(() => this.postWriting);
}
}
2 changes: 1 addition & 1 deletion generators/spring-data-elasticsearch/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ export default class ElasticsearchGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_WRITING]() {
return this.asPostWritingTaskGroup(this.delegateTasksToBlueprint(() => this.postWriting));
return this.delegateTasksToBlueprint(() => this.postWriting);
}
}
2 changes: 1 addition & 1 deletion generators/spring-data-mongodb/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ export default class MongoDBGenerator extends BaseApplicationGenerator {
}

get [BaseApplicationGenerator.POST_WRITING]() {
return this.asPostWritingTaskGroup(this.delegateTasksToBlueprint(() => this.postWriting));
return this.delegateTasksToBlueprint(() => this.postWriting);
}
}
Loading

0 comments on commit a3bbdc9

Please sign in to comment.