Core Java
-
Behind-the-Scenes Secrets of Jsoup V: Tips & Tricks of Optimization
We have done things right, now it’s time to do things faster. We would keep Donald Knuth‘s warning in mind,…
Read More » -
A Simple Approach to Simulate User Input and Check Output
Recently some of my students asked me about the mechanism of unit test provided by MOOC from University of Helsinki,…
Read More » -
jcmd, Circa JDK 11
Nicolas Fränkel recently published a survey of command-line tools delivered with OpenJDK 11 in the blog post “OpenJDK 11, tools…
Read More » -
Filterer Pattern in 10 Steps
Filterer is a pattern that should be applied only in certain cases. In the original post, I presented a very simple example…
Read More » -
JDK 9/JEP 280: String Concatenations Will Never Be the Same
JEP 280 (“Indify String Concatenation”) was implemented in conjunction with JDK 9 and, according to its “Summary” section, “Change[s] the…
Read More » -
Transformer Pattern
The Transformer pattern is a design pattern for Java (and potentially other OO languages with use-site variance only and invariant parameter types)…
Read More » -
Custom Compact Number Patterns with JDK 12 Compact Number Formatting
The post “Compact Number Formatting Comes to JDK 12” has been the subject of discussion on a java subreddit thread.…
Read More » -
JDK 13: What AggressiveOpts?
The Java VM flag -XX:+AggressiveOpts was deprecated in JDK 11 [see JDK-8199777 and JDK-8199778] “because its behavior is ill-defined.” The…
Read More » -
Running JAXB xjc Compiler with OpenJDK 11
As described in the post “APIs To Be Removed from Java 11,” a JAXB implementation is no longer included with…
Read More »