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-2021 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.
@@ -41,7 +41,7 @@ public interface JpaQueryProvider {
* </p>
* @return created query
*/
public Query createQuery();
Query createQuery();
/**
* Provide an {@link EntityManager} for the query to be built.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2008 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.
@@ -22,6 +22,7 @@ import org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer
* provided string.
*
* @author Lucas Ward
* @author Mahmoud Ben Hassine
*
*/
public interface DataFieldMaxValueIncrementerFactory {
@@ -35,7 +36,7 @@ public interface DataFieldMaxValueIncrementerFactory {
* @throws IllegalArgumentException if databaseType is invalid type, or
* incrementerName is null.
*/
public DataFieldMaxValueIncrementer getIncrementer(String databaseType, String incrementerName);
DataFieldMaxValueIncrementer getIncrementer(String databaseType, String incrementerName);
/**
* Returns boolean indicated whether or not the provided string is supported by this
@@ -44,12 +45,12 @@ public interface DataFieldMaxValueIncrementerFactory {
* @return true if the incrementerType is supported by this database type. Else false
* is returned.
*/
public boolean isSupportedIncrementerType(String databaseType);
boolean isSupportedIncrementerType(String databaseType);
/**
* Returns the list of supported database incrementer types
* @return an array of {@link String}s containing the supported incrementer types.
*/
public String[] getSupportedIncrementerTypes();
String[] getSupportedIncrementerTypes();
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2010 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,6 +24,7 @@ import org.springframework.mail.MailMessage;
*
* @author Dan Garrette
* @author Dave Syer
* @author Mahmoud Ben Hassine
* @since 2.1
*/
public interface MailErrorHandler {
@@ -37,6 +38,6 @@ public interface MailErrorHandler {
* @param exception the exception that caused the failure
* @throws MailException if the exception cannot be handled
*/
public void handle(MailMessage message, Exception exception) throws MailException;
void handle(MailMessage message, Exception exception) throws MailException;
}

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.
@@ -29,7 +29,7 @@ public enum RepeatStatus {
private final boolean continuable;
private RepeatStatus(boolean continuable) {
RepeatStatus(boolean continuable) {
this.continuable = continuable;
}

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.
@@ -29,6 +29,7 @@ import org.springframework.batch.repeat.RepeatException;
* classifier must be the same as the static enum in this class.
*
* @author Dave Syer
* @author Mahmoud Ben Hassine
*
*/
public class LogOrRethrowExceptionHandler implements ExceptionHandler {
@@ -39,7 +40,7 @@ public class LogOrRethrowExceptionHandler implements ExceptionHandler {
* @author Dave Syer
*
*/
public static enum Level {
public enum Level {
/**
* Key for {@link Classifier} signalling that the throwable should be rethrown. If

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 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.
@@ -79,6 +79,6 @@ interface ResultQueue<T> {
* when it is finished.
* @return true if more results are expected, but possibly not yet available.
*/
public boolean isExpecting();
boolean isExpecting();
}

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.
@@ -52,7 +52,7 @@ public enum DatabaseType {
// in metadata.
private final String productName;
private DatabaseType(String productName) {
DatabaseType(String productName) {
this.productName = productName;
}

View File

@@ -57,7 +57,7 @@ public class BatchMessageListenerContainer extends DefaultMessageListenerContain
* @author Dave Syer
*
*/
public static interface ContainerDelegate {
public interface ContainerDelegate {
boolean receiveAndExecute(Object invoker, Session session, MessageConsumer consumer) throws JMSException;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2010-2022 the original author or authors.
* Copyright 2010-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.
@@ -158,7 +158,7 @@ class HippyMethodInvokerTests {
}
public static interface Service {
public interface Service {
String getMessage(double value, String input);

View File

@@ -257,14 +257,14 @@ class ExtendedConnectionDataSourceProxyTests {
/**
* Interface implemented by the wrapped DataSource
*/
private static interface Supported {
private interface Supported {
}
/**
* Interface *not* implemented by the wrapped DataSource
*/
private static interface Unsupported {
private interface Unsupported {
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 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.
@@ -30,6 +30,7 @@ import org.junit.jupiter.api.Test;
/**
* @author Mark Fisher
* @author Mahmoud Ben Hassine
*/
class AnnotationMethodResolverTests {
@@ -55,7 +56,7 @@ class AnnotationMethodResolverTests {
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
private static @interface TestAnnotation {
private @interface TestAnnotation {
}