Skip to content

Commit

Permalink
Improve the Modernize template's description of array types. (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg authored Jul 7, 2023
2 parents 7647b78 + ab48fc0 commit 32e61f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format.

## [Unreleased]
### Fixed
- Improve the `Modernize` template's description of array types. ([#6](https://github.com/equodev/equo-ide-chatgpt/pull/6))

## [1.0.0] - 2023-07-03
### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/dev/equo/ide/chatgpt/PromptStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private static String gfmType(String filename) {
"Modernize",
"Rewrite the following class using the latest syntax constructs from Java 11. Examples to modernize:\n\n"
+ "- use `var` instead of explicit type declarations where possible\n"
+ "- use `List<T>` instead of `Array<T>`\n"
+ "- use `List<T>` instead of raw arrays `T[]`\n"
+ "- use collection literals such as `List.of()`, `Set.of()`, and `Map.of()` when appropriate",
"Describe",
"Describe the functionality of the following class. Call special attention to any unusual aspects of the design if they are present.");
Expand Down

0 comments on commit 32e61f6

Please sign in to comment.