Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
albireo77 committed Mar 22, 2020
1 parent eb0ddb1 commit 91bb150
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
8.0 [22.03.2020]
- compiled with Delphi 10.3.3
- Flowchart: auto-resizable edit boxes in for..do block
- Java support: add java.util.regex.Pattern class
- Settings: add EditorRightEdgeColumn and EditorRightEdgeColor settings (at the moment not supported in UI)
- minor optimizations

7.21 [16.11.2019]
- Editor: fix displaying gutter on dark background
- Settings: add command example to Compiler command box hint
Expand Down
2 changes: 1 addition & 1 deletion CodeGenerators/Java_Generator.pas
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ function Java_GetConstantType(const AValue: string; var AGenericType: string): i
else
Exit;
end
else if AValue.StartsWith('new String(' + JAVA_STRING_DELIM) and AValue.EndsWith(JAVA_STRING_DELIM + ')') then
else if AValue.StartsWith('new String(' + JAVA_STRING_DELIM) and AValue.EndsWith(JAVA_STRING_DELIM + ')') and (AValue.Length > 13) then
result := JAVA_STRING_TYPE
else if StartsWithOneOf(AValue, ['String.valueOf(', 'String.join(', 'String.format(']) and (lastChar = ')') then
result := JAVA_STRING_TYPE
Expand Down

0 comments on commit 91bb150

Please sign in to comment.