Skip to content

Commit

Permalink
Make util classes to follow style guide
Browse files Browse the repository at this point in the history
Signed-off-by: Taeik Lim <[email protected]>

Issue #4545
  • Loading branch information
acktsap authored and fmbenhassine committed Mar 7, 2024
1 parent 376d848 commit fb18040
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2006-2007 the original author or authors.
* Copyright 2006-2024 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.
Expand All @@ -21,9 +21,13 @@

/**
* @author Dan Garrette
* @author Taeik Lim
* @since 2.0.1
*/
public class BeanDefinitionUtils {
public abstract class BeanDefinitionUtils {

private BeanDefinitionUtils() {
}

/**
* @param beanName a bean definition name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2006-2023 the original author or authors.
* Copyright 2006-2024 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.
Expand Down Expand Up @@ -37,8 +37,12 @@
* @author Thomas Risberg
* @author Michael Minella
* @author Mahmoud Ben Hassine
* @author Taeik Lim
*/
public class CoreNamespaceUtils {
public abstract class CoreNamespaceUtils {

private CoreNamespaceUtils() {
}

private static final String STEP_SCOPE_PROCESSOR_BEAN_NAME = "org.springframework.batch.core.scope.internalStepScope";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 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.
Expand Down Expand Up @@ -28,9 +28,13 @@
* @author Thomas Risberg
* @author Juergen Hoeller
* @author Marten Deinum
* @author Taeik Lim
* @since 2.0
*/
public class JdbcParameterUtils {
public abstract class JdbcParameterUtils {

private JdbcParameterUtils() {
}

/**
* Count the occurrences of the character placeholder in an SQL string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2006-2023 the original author or authors.
* Copyright 2006-2024 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.
Expand Down Expand Up @@ -31,9 +31,13 @@
* @author Dave Syer
* @author Michael Minella
* @author Mahmoud Ben Hassine
* @author Taeik Lim
* @since 2.0
*/
public class SqlPagingQueryUtils {
public abstract class SqlPagingQueryUtils {

private SqlPagingQueryUtils() {
}

/**
* Generate SQL query string using a LIMIT clause
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2006-2021 the original author or authors.
* Copyright 2006-2024 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.
Expand Down Expand Up @@ -27,8 +27,9 @@
*
* @author Peter Zozom
* @author Mahmoud Ben Hassine
* @author Taeik Lim
*/
public final class FileUtils {
public abstract class FileUtils {

// forbids instantiation
private FileUtils() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 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.
Expand Down Expand Up @@ -34,9 +34,13 @@
*
* @author Lucas Ward
* @author Mahmoud Ben Hassine
* @author Taeik Lim
* @since 2.0
*/
public class MethodInvokerUtils {
public abstract class MethodInvokerUtils {

private MethodInvokerUtils() {
}

/**
* Create a {@link MethodInvoker} using the provided method name to search.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2023 the original author or authors.
* Copyright 2014-2024 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.
Expand Down Expand Up @@ -29,9 +29,10 @@
*
* @author Michael Minella
* @author Mahmoud Ben Hassine
* @author Taeik Lim
* @since 2.2.6
*/
public class ReflectionUtils {
public abstract class ReflectionUtils {

private ReflectionUtils() {
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2006-2018 the original author or authors.
* Copyright 2006-2024 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.
Expand Down Expand Up @@ -30,10 +30,14 @@
*
* @author Dave Syer
* @author Mahmoud Ben Hassine
* @author Taeik Lim
* @since 2.1.4
*
*/
public class ExecutionContextTestUtils {
public abstract class ExecutionContextTestUtils {

private ExecutionContextTestUtils() {
}

@SuppressWarnings("unchecked")
@Nullable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2006-2023 the original author or authors.
* Copyright 2006-2024 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.
Expand Down Expand Up @@ -29,8 +29,12 @@
* @author Dave Syer
* @author Jimmy Praet
* @author Mahmoud Ben Hassine
* @author Taeik Lim
*/
public class JobScopeTestUtils {
public abstract class JobScopeTestUtils {

private JobScopeTestUtils() {
}

public static <T> T doInJobScope(JobExecution jobExecution, Callable<T> callable) throws Exception {
try {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2006-2010 the original author or authors.
* Copyright 2006-2024 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.
Expand Down Expand Up @@ -27,9 +27,13 @@
* test case that happen to be step scoped in the application context.
*
* @author Dave Syer
* @author Taeik Lim
*
*/
public class StepScopeTestUtils {
public abstract class StepScopeTestUtils {

private StepScopeTestUtils() {
}

public static <T> T doInStepScope(StepExecution stepExecution, Callable<T> callable) throws Exception {
try {
Expand Down

0 comments on commit fb18040

Please sign in to comment.