Creating custom formatter for Java

This page summarizes the projects mentioned and recommended in the original post on /r/javahelp

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
  1. google-java-format

    Reformats Java source code to comply with Google Java Style.

    I spent most of my development career writing simple CRUD applications, recently I read a fascinating article: http://journal.stuffwithstuff.com/2015/09/08/the-hardest-program-ive-ever-written/. It looks like a nice challenge to try creating such a tool. For sure I need first to understand how to build AST etc. I could reuse existing solutions like https://github.com/google/google-java-format, or eclipse fmt, but I would like to understand the whole process, to be able to debug all cases.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. grammars-v4

    Grammars written for ANTLR v4; expectation that the grammars are free of actions.

    Initially, I was thinking about learning ANT and using it, but I see that they provided grammars for: java8 and java9 https://github.com/antlr/grammars-v4/tree/master/java

  4. JDK

    JDK main-line development https://openjdk.org/projects/jdk

    Check out the source code for JavaDoc to see how JavaDoc does AST generation and processing, since uses the AST to generate the HTML documentation.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • How does jvm deal with syscalls

    3 projects | /r/learnprogramming | 6 Nov 2022
  • JDK 20 will introduce float16 conversion methods

    3 projects | news.ycombinator.com | 12 Oct 2022
  • To `Gather` or not to `Gather`? That is the question.

    2 projects | dev.to | 24 Mar 2025
  • OpenJDK: x86_64 AVX512 intrinsics for Arrays.sort methods (2023)

    1 project | news.ycombinator.com | 25 Dec 2024
  • Ideas from "A Philosophy of Software Design"

    2 projects | news.ycombinator.com | 22 Dec 2024

Did you know that Java is
the 8th most popular programming language
based on number of references?