Skip to content

Commit 4e6f32a

Browse files
committed
fixed javadoc
1 parent bef25bc commit 4e6f32a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

core/src/main/java/org/sterl/spring/persistent_tasks/PersistentTaskService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public Optional<HistoryTriggerEntity> getLastTriggerHistory(Long id) {
172172
* Adds a {@link CronTriggerEntity} for recurring tasks.
173173
* It will also add the {@link TriggerEntity} if required.
174174
*
175-
* @param cronTrigger the {@link CronTriggerEntity} to manage
175+
* @param cron the {@link CronTriggerEntity} to manage
176176
* @return <code>true</code> if a new {@link TriggerEntity} was created, <code>false</code> if one already exists
177177
*/
178178
public boolean register(CronTriggerEntity<? extends Serializable> cron) {

core/src/main/java/org/sterl/spring/persistent_tasks/trigger/TriggerService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,14 @@ public Optional<RunningTriggerEntity> updateRunAt(TriggerKey key, OffsetDateTime
261261
* Adds a {@link CronTriggerEntity} for recurring tasks.
262262
* It will also add the {@link TriggerEntity} if required.
263263
*
264-
* @param cronTrigger the {@link CronTriggerEntity} to manage
264+
* @param cron the {@link CronTriggerEntity} to manage
265265
* @return <code>true</code> if a new {@link TriggerEntity} was created, <code>false</code> if one already exists
266266
*/
267267
@Transactional(propagation = Propagation.SUPPORTS)
268-
public boolean register(CronTriggerEntity<? extends Serializable> cronTrigger) {
269-
this.taskService.assertIsKnown(cronTrigger.getTaskId());
270-
this.cronTriggerRepository.register(cronTrigger);
271-
return queueCronTrigger.execute(cronTrigger);
268+
public boolean register(CronTriggerEntity<? extends Serializable> cron) {
269+
this.taskService.assertIsKnown(cron.getTaskId());
270+
this.cronTriggerRepository.register(cron);
271+
return queueCronTrigger.execute(cron);
272272
}
273273

274274
public boolean register(CronTrigger cronAnnotation, TaskId<?> taskId) {

0 commit comments

Comments
 (0)