Skip to content

Conversation

@M4TTH3
Copy link
Owner

@M4TTH3 M4TTH3 commented Aug 3, 2025

[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.

2 participants