Learn about generics and type erasure, along with its benefits and limitations, and explore various workarounds for getting a class of generic type information at runtime.
Search Results for: compilation
@Query Definitions With SpEL Support in Spring Data JPA
Learn how to use Spring Expression Language to make custom queries more dynamic and hide database-specific actions in the repository layers.
Parse Java Source Code and Extract Methods
A quick and practical guide to parsing Java source code and extracting methods.
Catch Common Mistakes with Error Prone Library in Java
Explore the functionalities of the Error Prone library, from installation to customization, and the benefits it offers in enhancing code quality and robustness.
Asserting Nested Map With JUnit
Learn the different ways of asserting the presence of a nested map with JUnit.
Unreachable Statements in Java
Learn about unreachable statements in Java.
Optional as a Record Parameter in Java
Learn about using Optional as a record parameter and understand why it’s a bad practice.
Check if a String Is Strictly Alphanumeric With Java
Explore a couple of ways to check if a String is alphanumeric.
Create a GraalVM Docker Image
Learn how to build a Docker image for a GraalVM native executable.
String Templates in Java 21
Explore several String composition techniques and understand the idea behind String interpolation.
How to Use Conditional Mapping With MapStruct
Learn how to set fields based on conditions when mapping between Java bean types with MapStruct.
How to Speed Up Maven Build
Learn how to speed up Maven builds.
Introduction to Avaje Inject
A quick and practical guide to Avaje Inject.
Convert One Enum to Another Enum in Java
A quick and practical guide to convert one enum to another.
Starting the Maven Build From the Point Where It Failed
Learn how to resume a Maven build after failure.
Difference Between implementation and compile in Gradle
Learn the difference between “implementation” and “compile” in Gradle and provide best practices for effective dependency management
Introduction to Spring Modulith
A quick and practical guide to Spring Modulith.
Understanding Java’s Classpath vs. Build Path
Learn the difference between the classpath and the build path in Java.
Deserialize Generic Type with Jackson
Explore two simple ways to deserialize a JSON string into an object with a generic type.
Differences Between Classpath and Sourcepath
Learn some key differences between sourcepath and classpath. Explore their usage in the command line.