Remove redundant modifiers

This commit is contained in:
Mahmoud Ben Hassine
2023-07-04 21:54:28 +02:00
parent 0a1cdb095f
commit f0137bc54c
16 changed files with 49 additions and 41 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2022 the original author or authors.
* Copyright 2006-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,6 +33,7 @@ import org.springframework.batch.core.repository.JobRestartException;
* @author Lucas Ward
* @author Dave Syer
* @author Taeik Lim
* @author Mahmoud Ben Hassine
*/
@FunctionalInterface
public interface JobLauncher {
@@ -59,7 +60,7 @@ public interface JobLauncher {
* same parameters and completed successfully
* @throws JobParametersInvalidException if the parameters are not valid for this job
*/
public JobExecution run(Job job, JobParameters jobParameters) throws JobExecutionAlreadyRunningException,
JobExecution run(Job job, JobParameters jobParameters) throws JobExecutionAlreadyRunningException,
JobRestartException, JobInstanceAlreadyCompleteException, JobParametersInvalidException;
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2007 the original author or authors.
* Copyright 2006-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,18 +24,19 @@ package org.springframework.batch.core.launch.support;
* @author Stijn Maller
* @author Lucas Ward
* @author Dave Syer
* @author Mahmoud Ben Hassine
*/
public interface ExitCodeMapper {
static int JVM_EXITCODE_COMPLETED = 0;
int JVM_EXITCODE_COMPLETED = 0;
static int JVM_EXITCODE_GENERIC_ERROR = 1;
int JVM_EXITCODE_GENERIC_ERROR = 1;
static int JVM_EXITCODE_JOB_ERROR = 2;
int JVM_EXITCODE_JOB_ERROR = 2;
public static final String NO_SUCH_JOB = "NO_SUCH_JOB";
String NO_SUCH_JOB = "NO_SUCH_JOB";
public static final String JOB_NOT_PROVIDED = "JOB_NOT_PROVIDED";
String JOB_NOT_PROVIDED = "JOB_NOT_PROVIDED";
/**
* Convert the exit code from String into an integer that the calling environment as
@@ -43,6 +44,6 @@ public interface ExitCodeMapper {
* @param exitCode The exit code which is used internally.
* @return The corresponding exit status as known by the calling environment.
*/
public int intValue(String exitCode);
int intValue(String exitCode);
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2008 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,20 +21,21 @@ import java.lang.annotation.Annotation;
* A common interface for listener meta data enumerations.
*
* @author Dan Garrette
* @author Mahmoud Ben Hassine
* @since 2.0
* @see JobListenerMetaData
* @see StepListenerMetaData
*/
public interface ListenerMetaData {
public String getMethodName();
String getMethodName();
public Class<? extends Annotation> getAnnotation();
Class<? extends Annotation> getAnnotation();
public Class<?> getListenerInterface();
Class<?> getListenerInterface();
public String getPropertyName();
String getPropertyName();
public Class<?>[] getParamTypes();
Class<?>[] getParamTypes();
}

View File

@@ -212,7 +212,7 @@ public class StepScopeConfigurationTests {
}
public static interface ISimpleHolder {
public interface ISimpleHolder {
String call() throws Exception;