Martin Ahrer

Thinking outside the box

0001-01-01 1 min read

The following describes selected improvements of the Java language. See the Java 22 release notes. See Java Language Updates for Java SE 22.

With Java 22 the following language enhancements are now generally available

  • JEP 456 is releasing Unnamed Patterns and Variables. Unnamed patterns, which match a record component without stating the component’s name or type, and unnamed variables, which can be initialized but not used. Both are denoted by an underscore character, _.

Continue reading

0001-01-01 1 min read

The Java language mandates to declare variables (names) even when they are not needed (used). Often we also find ourselves to declare variables just for the sake of having a consistent look.

Unnamed Variables
Unresolved directive in <stdin> - include::../../../../../../../../src/main/java/twentytwo/lang/UnnamedVariablesAndPatterns.java[tag=unnamedVariables]
Unnamed Variables For Consistent Code Style
Continue reading

0001-01-01 1 min read
Gradle Configuration Cache
Loading...

0001-01-01 3 min read
Test results - Test Summary

Test Summary

119

tests

0

failures

0

ignored

1.752s

duration

100%

successful

Packages

PackageTestsFailuresIgnoredDurationSuccess rate
eighteen.tooling2000.028s100%
eleven.api6000.026s100%
eleven.lang4000.009s100%
fifteen.api1000.009s100%
fifteen.lang1000.003s100%
fourteen.api2000.055s100%
fourteen.lang3000.015s100%
nine.api28000.066s100%
nine.lang4000.004s100%
nineteen.api7000.030s100%
sixteen.api2000.018s100%
sixteen.lang4000.013s100%
ten.api7000.012s100%
ten.lang1000.001s100%
thirteen.api1000.085s100%
twelve.api5000.059s100%
twentyfive.api6000.059s100%
twentyfive.lang6000.006s100%
twentyfour.api11000.047s100%
twentyone.api3001.181s100%
twentyone.lang2000.005s100%
twentythree.tooling10000.017s100%
twentytwo.lang3000.004s100%

Classes

ClassTestsFailuresIgnoredDurationSuccess rate
eighteen.tooling.JavaDocSnippetTag2000.028s100%
eleven.api.CollectionApi1000.010s100%
eleven.api.FilesApi1000.008s100%
eleven.api.PredicateApi1000.002s100%
eleven.api.StringApi3000.006s100%
eleven.lang.LambdaLocalVariable4000.009s100%
fifteen.api.CharSequenceApi1000.009s100%
fifteen.lang.TextBlock1000.003s100%
fourteen.api.AccountingCurrencyFormatSupport1000.053s100%
fourteen.api.NullPointerExceptions1000.002s100%
fourteen.lang.SwitchExpressions3000.015s100%
nine.api.CollectorsApi2000.011s100%
nine.api.ImmutableListFactory4000.005s100%
nine.api.ImmutableMapEntryFactory2000.011s100%
nine.api.ImmutableMapFactory4000.006s100%
nine.api.ImmutableSetFactory4000.005s100%
nine.api.MatcherApi2000.007s100%
nine.api.ObjectsApi2000.004s100%
nine.api.OptionalApi3000.008s100%
nine.api.StreamApi5000.009s100%
nine.lang.PrivateInterfaceMethod2000.002s100%
nine.lang.TryWithResource2000.002s100%
nineteen.api.CollectionApi5000.005s100%
nineteen.api.DateTimeFormatterApi2000.025s100%
sixteen.api.DayPeriodSupport1000.016s100%
sixteen.api.StreamApi1000.002s100%
sixteen.lang.PatternMatchingForInstanceof1000.001s100%
sixteen.lang.Record3000.012s100%
ten.api.CollectorsApi3000.008s100%
ten.api.ListApi1000.001s100%
ten.api.MapApi1000.001s100%
ten.api.OptionalApi1000.001s100%
ten.api.SetApi1000.001s100%
ten.lang.LocalVariableTypeInference1000.001s100%
thirteen.api.FileSystemsApi1000.085s100%
twelve.api.CollectorsApi1000.009s100%
twelve.api.FilesApi1000.004s100%
twelve.api.NumberFormatApi1000.043s100%
twelve.api.StringApi2000.003s100%
twentyfive.api.ScopedValues6000.059s100%
twentyfive.lang.FlexibleConstructorBodies2000.001s100%
twentyfive.lang.InstanceMainMethods3000.004s100%
twentyfive.lang.ModuleImportDeclarations1000.001s100%
twentyfour.api.ClassFileApi3000.034s100%
twentyfour.api.StreamGatherers8000.013s100%
twentyone.api.SequencedCollectionApi2000.009s100%
twentyone.api.VirtualThreads1001.172s100%
twentyone.lang.Record2000.005s100%
twentythree.tooling.MarkdownDocumentationComments10000.017s100%
twentytwo.lang.UnnamedVariablesAndPatterns3000.004s100%

0001-01-01 1 min read

Build presentation

Add the location of asciidoctor-revealjs to the PATH variable (export PATH=./:$PATH).

Export the following variables

Unresolved directive in <stdin> - include::.env[]

Run the following command

gw compileClasses && \
  ./.gitlab-ci.d/build-presentation.sh && \
  ./.gitlab-ci.d/publish-presentation.sh`

0001-01-01 1 min read

Unresolved directive in <stdin> - include::common.adoc[] Unresolved directive in <stdin> - include::icons.adoc[] Unresolved directive in <stdin> - include::java-version.adoc[]

Unresolved directive in <stdin> - include::content.adoc[]

Newer posts