Overview

A collection of tools for the Java™ language.

Features

  • Compile code
    • Bytecode assembly
    • Binary bytecode
  • Benchmark code
    • Runs on AWS Lambda
    • x86_64 and ARM64 architectures
    • Supported JDK versions: 17 and 21
    • Analyze results - powered by OpenAI/o4-mini model
  • Code formatting style detection
    • Bracket positioning
    • Indentation
    • Whitespaces
    • Import ordering
    • etc.
  • Configuration generation based on the detected style
    • Checkstyle rules
    • IntelliJ IDEA formatter
    • Eclipse formatter
  • Reformat code
  • Verify formatting using Checkstyle

Attribution

Detection is done by abusing a slightly modified fork of Checkstyle version 10.21.2.

Benchmark is performed using JMH version 1.37.

Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Other names may be trademarks of their respective owners.

Compile

Compiles a single Java file and displays the disassembled bytecode. The binary bytecode is also displayed.

InputOutput
Java code (single file) Disassembled bytecode
Binary bytecode

Benchmark

Executes a JMH benchmark from a single Java file.

Execution is performed using the AWS Lambda infrastructure.
Between each run different CPU types (Intel, AMD) might be assigned by AWS Lambda so be careful when comparing the results.
Information about the runtime environment is provided on the Environment tab.

The JDK version, CPU architecture and memory can be configured.
Increasing the amount of memory will also affect the computing power. Check this StackOverflow question for more details.

Analyze results with OpenAI/o4-mini model.

InputOutput
Java code (single file) Benchmark output
Benchmark result in JSON format
Runtime environment information
Result analysis

Detect Style

Detects the code formatting style of Java code.

A single Java file, a Git repository or a Zip file can be provided for detection.

Checkstyle configuration XML will be generated as a result.
Also formatter configuration is generated for IntelliJ IDEA and Eclipse IDEs.

InputOutput
Java code
 - Single file or
 - Git repository (URL)* or
 - Zip file*
Checkstyle configuration XML
Eclipse code formatter configuration XML
IntelliJ IDEA code formatter configuration XML

*Requires access token
Supported Checks
The following Checkstyle Checks and Properties are recognized during the detection process:

CheckProperty
AnnotationLocation allowSamelineMultipleAnnotations
allowSamelineParameterizedAnnotation
allowSamelineSingleParameterlessAnnotation
tokens
AnnotationOnSameLine tokens
AnnotationUseStyle closingParens
elementStyle
trailingArrayComma
ArrayTypeStyle javaStyle
AvoidStarImport allowClassImports
allowStaticMemberImports
EmptyForInitializerPad option
EmptyForIteratorPad option
EmptyLineSeparator allowMultipleEmptyLines
allowMultipleEmptyLinesInsideClassMembers
allowNoEmptyLineBetweenFields
tokens
FileTabCharacter -
FinalParameters ignorePrimitiveTypes
tokens
ImportOrder option
groups
ordered
separated
staticGroups
sortStaticImportsAlphabetically
separatedStaticGroups
Indentation arrayInitIndent
basicOffset
braceAdjustment
caseIndent
lineWrappingIndentation
throwsIndent
LeftCurly ignoreEnums
option
tokens
MethodParamPad allowLineBreaks
option
tokens
NeedBraces allowEmptyLoopBody
allowSingleLineStatement
tokens
NoWhitespaceAfter allowLineBreaks
tokens
NoWhitespaceBefore allowLineBreaks
tokens
NoWhitespaceBeforeCaseDefaultColon -
OneStatementPerLine -
OperatorWrap option
tokens
ParenPad option
tokens
RequireThis checkFields
checkMethods
RightCurly option
tokens
SeparatorWrap option
tokens
TypecastParenPad option
UpperEll -
WhitespaceAfter tokens
WhitespaceAround allowEmptyCatches
allowEmptyConstructors
allowEmptyLambdas
allowEmptyLoops
allowEmptyMethods
allowEmptyTypes
ignoreEnhancedForColon
tokens

Format

Formats a single Java file.

The code style used for formatting can be specified from an Eclipse code formatter or a Checkstyle configuration file.
If Checkstyle configuration is provided, the Eclipse formatter configuration will be generated.

InputOutput
Java code (single file) Formatted Java file
Style configuration
 - Checkstyle configuration XML or
 - Eclipse code formatter configuration XML
Eclipse code formatter configuration XML

Check Style

Executes a Checkstyle analysis against a single Java file.

InputOutput
Java code (single file) Checkstyle result XML
Checkstyle configuration XML

Plans

Free Pro
Access token required
Compile
Bytecode assembly
Binary bytecode
Benchmark
x86 architecture
ARM architecture
Memory 1024 MB 4096 MB
JDK 17
JDK 21
Analyze results (with o4-mini)
Timeout 2 minutes 15 minutes
Detect Style
Single Java file
Zip file
Git repository
Format
Using Checkstyle config
Using Eclipse formatter config
Generate Eclipse config
Check Style
Single Java file
Git Repository URL
E.g. https://github.com/apache/commons-io.git

Zip File
Warning!
Content will be sent to and analyzed by a backend service and may be stored for debugging purposes.