Skip to content

Add fixes to newline and TypeName issues, and updated a few api names - #3

Merged
M4TTH3 merged 4 commits into
mainfrom
fixes
Aug 3, 2025
Merged

Add fixes to newline and TypeName issues, and updated a few api names#3
M4TTH3 merged 4 commits into
mainfrom
fixes

Conversation

@M4TTH3

@M4TTH3 M4TTH3 commented Aug 3, 2025

Copy link
Copy Markdown
Owner

[0.1.2] - 2025-08-03

Added

  • Enhanced TypeName support for common Java library types (List, Map, Set, etc.)
  • Better Python type mapping (bool -> boolean, int -> int, etc.)
  • Added add_javadoc method alongside existing add_javadoc_line
  • Added add_raw_line method for raw code with newlines
  • Support for handling None values in TypeName.get()

Changed

  • Improved TypeName.get() to handle Python types directly (e.g., TypeName.get(bool) returns TypeName.BOOLEAN)
  • Updated method API: add_code() renamed to add_raw_code() for clarity
  • Enhanced JavaDoc generation with better newline handling
  • Applied consistent code formatting across the entire codebase using ruff

Fixed

  • TypeName.get() now properly handles Python type objects instead of just type names
  • JavaDoc emission now properly handles newlines and prefixes
  • Annotation formatting with correct newline placement
  • Primitive type boxing to proper wrapper classes (e.g., int -> java.lang.Integer)

@M4TTH3
M4TTH3 merged commit 5ac6db2 into main Aug 3, 2025
1 check failed
@M4TTH3
M4TTH3 deleted the fixes branch August 3, 2025 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant