-
Core Java
Annotation Handling and JPMS
TLDR; Instead of annotation.getClass().getMethod("value") call annotation.annotationType().getMethod("value"). All Java developers have heard about annotations. Annotations are with us since Java 1.5…
Read More » -
Core Java
Java hexadecimal floating point literal
How I met hexadecimal floating point numbers I was developing a new functionality into Java::Geci to make it less prone…
Read More » -
Core Java
Inject-able only in test?
This article is about some thoughts of test design and testability. Some questions that we discussed with my son, who…
Read More » -
Enterprise Java
Converting objects to Map and back
In large enterprise applications sometimes we need to convert data objects to and from Map. Usually, it is an intermediate…
Read More » -
Core Java
Extending abstract classes with abstract classes in Java
The example issue When I was creating the Java::Geci abstract class AbstractFieldsGenerator and AbstractFilteredFieldsGenerator I faced a not too complex…
Read More » -
Core Java
Reflection selector expression
Java::Geci is a code generator that runs during unit test time. If the generated code fits the actual version of…
Read More » -
Core Java
Generating setters and getters using Java::Geci
In the article , we created very simple hello-world generators to introduce the framework and how to generate generators generally.…
Read More » -
Core Java
Box old objects to be autoclosable
Since Java 7 we can use try-with-resources and have any object automatically closed that implements the Autocloseable interface. If the…
Read More » -
Core Java
Lazy assignment in Java
Programmers are inherently lazy and similis simili gaudet also like when the programs are lazy. Have you ever heard lazy…
Read More »