Tagged articles
6 articles
Page 1 of 1
JD Tech
JD Tech
Apr 2, 2024 · Backend Development

Automating Java Getter/Setter Replacement with Lombok Using JavaParser

This article explains how to build a tool that scans Java projects, identifies simple getter and setter methods, and automatically replaces them with Lombok's @Data annotation by leveraging JavaParser for AST manipulation, complete with Maven integration and usage guidelines.

JavaParsercode-refactoringstatic-analysis
0 likes · 13 min read
Automating Java Getter/Setter Replacement with Lombok Using JavaParser
MaGe Linux Operations
MaGe Linux Operations
Mar 30, 2019 · Fundamentals

Master Python Type Hints and Variable Annotations to Prevent Bugs

This article explains how Python's dynamic typing can hide bugs, demonstrates common pitfalls with variables stored as strings, and introduces three practical solutions—Type Hints, Variable Annotations, and docstring annotations—while showing how tools like mypy can catch type mismatches.

docstringmypystatic-analysis
0 likes · 6 min read
Master Python Type Hints and Variable Annotations to Prevent Bugs