Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public abstract class BeanDescFactory {
/**
* Do not instantiate.
*/
private BeanDescFactory() {
protected BeanDescFactory() {
}

/** True if initialized */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public abstract class ParameterizedClassDescFactory {
/**
* Do not instantiate.
*/
private ParameterizedClassDescFactory() {
protected ParameterizedClassDescFactory() {
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/beans/util/BeanUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public abstract class BeanUtil {
/**
* Do not instantiate.
*/
private BeanUtil() {
protected BeanUtil() {
}

/** Default options */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public abstract class CopyOptionsUtil {
/**
* Do not instantiate.
*/
private CopyOptionsUtil() {
protected CopyOptionsUtil() {
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/collection/ArrayUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public abstract class ArrayUtil {
/**
* Do not instantiate.
*/
private ArrayUtil() {
protected ArrayUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public abstract class CollectionsUtil {
/**
* Do not instantiate.
*/
private CollectionsUtil() {
protected CollectionsUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
/**
* Utility for common pool operations.
*/
public class CommonPoolUtil {
public abstract class CommonPoolUtil {
private static final Logger logger = Logger.getLogger(CommonPoolUtil.class);

private CommonPoolUtil() {
protected CommonPoolUtil() {
// nothing
Comment on lines +28 to 29
Copy link

Copilot AI Jul 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CommonPoolUtil is not declared as abstract but follows the utility class pattern. Consider making it abstract to be consistent with other utility classes in this codebase, or ensure it cannot be instantiated by keeping the constructor private.

Suggested change
protected CommonPoolUtil() {
// nothing
private CommonPoolUtil() {
// Prevent instantiation

Copilot uses AI. Check for mistakes.
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public abstract class BigDecimalConversionUtil {
/**
* Do not instantiate.
*/
private BigDecimalConversionUtil() {
protected BigDecimalConversionUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public abstract class BigIntegerConversionUtil {
/**
* Do not instantiate.
*/
private BigIntegerConversionUtil() {
protected BigIntegerConversionUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public abstract class BinaryConversionUtil {
/**
* Do not instantiate.
*/
private BinaryConversionUtil() {
protected BinaryConversionUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public abstract class BooleanConversionUtil {
/**
* Do not instantiate.
*/
private BooleanConversionUtil() {
protected BooleanConversionUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public abstract class ByteConversionUtil {
/**
* Do not instantiate.
*/
private ByteConversionUtil() {
protected ByteConversionUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public abstract class CalendarConversionUtil {
/**
* Do not instantiate.
*/
private CalendarConversionUtil() {
protected CalendarConversionUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public abstract class DateConversionUtil {
/**
* Do not instantiate.
*/
private DateConversionUtil() {
protected DateConversionUtil() {
}

/** Array of styles held by {@link DateFormat}. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public abstract class DoubleConversionUtil {
/**
* Do not instantiate.
*/
private DoubleConversionUtil() {
protected DoubleConversionUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public abstract class FloatConversionUtil {
/**
* Do not instantiate.
*/
private FloatConversionUtil() {
protected FloatConversionUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public abstract class IntegerConversionUtil {
/**
* Do not instantiate.
*/
private IntegerConversionUtil() {
protected IntegerConversionUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public abstract class LongConversionUtil {
/**
* Do not instantiate.
*/
private LongConversionUtil() {
protected LongConversionUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public abstract class NumberConversionUtil {
/**
* Do not instantiate.
*/
private NumberConversionUtil() {
protected NumberConversionUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public abstract class ShortConversionUtil {
/**
* Do not instantiate.
*/
private ShortConversionUtil() {
protected ShortConversionUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public abstract class StringConversionUtil {
/**
* Do not instantiate.
*/
private StringConversionUtil() {
protected StringConversionUtil() {
}

/** WAVE DASH */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public abstract class TimeConversionUtil {
/**
* Do not instantiate.
*/
private TimeConversionUtil() {
protected TimeConversionUtil() {
}

/** Array of styles held by {@link DateFormat} */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public abstract class TimestampConversionUtil {
/**
* Do not instantiate.
*/
private TimestampConversionUtil() {
protected TimestampConversionUtil() {
}

/** Array of styles held by {@link DateFormat} */
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/io/ClassTraversalUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public abstract class ClassTraversalUtil {
/**
* Do not instantiate.
*/
private ClassTraversalUtil() {
protected ClassTraversalUtil() {
}

/** The file extension for class files. */
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/io/CloseableUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public abstract class CloseableUtil {
/**
* Do not instantiate.
*/
private CloseableUtil() {
protected CloseableUtil() {
}

private static final Logger logger = Logger.getLogger(CloseableUtil.class);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/io/CopyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public abstract class CopyUtil {
/**
* Do not instantiate.
*/
private CopyUtil() {
protected CopyUtil() {
}

/** Buffer size used for copying. */
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/io/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public abstract class FileUtil {
/**
* Do not instantiate.
*/
private FileUtil() {
protected FileUtil() {
}

/** The encoding name for UTF-8. */
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/io/InputStreamUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public abstract class InputStreamUtil {
/**
* Do not instantiate.
*/
private InputStreamUtil() {
protected InputStreamUtil() {
}

/** Default buffer size. */
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/io/OutputStreamUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public abstract class OutputStreamUtil {
/**
* Do not instantiate.
*/
private OutputStreamUtil() {
protected OutputStreamUtil() {
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/io/PropertiesUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public abstract class PropertiesUtil {
/**
* Do not instantiate.
*/
private PropertiesUtil() {
protected PropertiesUtil() {
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/io/ReaderUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public abstract class ReaderUtil {
/**
* Do not instantiate.
*/
private ReaderUtil() {
protected ReaderUtil() {
}

/** Default buffer size */
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/io/ResourceBundleUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public abstract class ResourceBundleUtil {
/**
* Do not instantiate.
*/
private ResourceBundleUtil() {
protected ResourceBundleUtil() {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public abstract class ResourceTraversalUtil {
/**
* Do not instantiate.
*/
private ResourceTraversalUtil() {
protected ResourceTraversalUtil() {
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/io/ResourceUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public abstract class ResourceUtil {
/**
* Do not instantiate.
*/
private ResourceUtil() {
protected ResourceUtil() {
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/io/SerializeUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public abstract class SerializeUtil {
/**
* Do not instantiate.
*/
private SerializeUtil() {
protected SerializeUtil() {
}

private static final int BYTE_ARRAY_SIZE = 8 * 1024;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/io/TraversalUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public abstract class TraversalUtil {
/**
* Do not instantiate.
*/
private TraversalUtil() {
protected TraversalUtil() {
}

/** An empty array of {@link Traverser}. */
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/io/WriterUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public abstract class WriterUtil {
/**
* Do not instantiate.
*/
private WriterUtil() {
protected WriterUtil() {
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/jar/JarFileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public abstract class JarFileUtil {
/**
* Do not instantiate.
*/
private JarFileUtil() {
protected JarFileUtil() {
}

private static final Logger logger = Logger.getLogger(JarFileUtil.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public abstract class JarInputStreamUtil {
/**
* Do not instantiate.
*/
private JarInputStreamUtil() {
protected JarInputStreamUtil() {
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/lang/AnnotationUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public abstract class AnnotationUtil {
/**
* Do not instantiate.
*/
private AnnotationUtil() {
protected AnnotationUtil() {
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public abstract class ClassLoaderUtil {
/**
* Do not instantiate.
*/
private ClassLoaderUtil() {
protected ClassLoaderUtil() {
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/lang/ClassUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public abstract class ClassUtil {
/**
* Do not instantiate.
*/
private ClassUtil() {
protected ClassUtil() {
}

/** Map from wrapper types to primitive types */
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/lang/ConstructorUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public abstract class ConstructorUtil {
/**
* Do not instantiate.
*/
private ConstructorUtil() {
protected ConstructorUtil() {
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codelibs/core/lang/FieldUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public abstract class FieldUtil {
/**
* Do not instantiate.
*/
private FieldUtil() {
protected FieldUtil() {
}

/**
Expand Down
Loading