Skip to content

Commit f942723

Browse files
committed
Fix typo in TYPEDADDRESS directive name
1 parent 0d5f5e2 commit f942723

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Exclude types annotated with attributes in `UnusedType`.
1313

14+
### Deprecated
15+
16+
- **API:** `SwitchDirective.SwitchKind.TYPEADDRESS` enum member, use `TYPEDADDRESS` instead.
17+
1418
### Fixed
1519

1620
- Exceptions from empty structures (e.g., `if`) in `LoopExecutingAtMostOnce` and `RedundantJump`.
1721
- False positives from case statements in `LoopExecutingAtMostOnce`.
1822
- False positives from nested finally-except blocks in `RedundantJump`.
1923
- False positives around wrapped type declarations in `VisibilityKeywordIndentation`.
24+
- Several compiler directives were not being recognized:
25+
- `TYPEDADDRESS`
2026

2127
## [1.14.1] - 2025-03-05
2228

delphi-frontend/src/main/java/org/sonar/plugins/communitydelphi/api/directive/SwitchDirective.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ enum SwitchKind {
5555
STRONGLINKTYPES("stronglinktypes"),
5656
DEFINITIONINFO("definitioninfo"),
5757
REFERENCEINFO("referenceinfo", 'y'),
58-
TYPEADDRESS("typeaddress", 't'),
58+
/**
59+
* @deprecated Use {@link SwitchKind#TYPEDADDRESS} instead.
60+
*/
61+
@Deprecated(forRemoval = true)
62+
TYPEADDRESS(null, null),
63+
TYPEDADDRESS("typedaddress", 't'),
5964
VARSTRINGCHECKS("varstringchecks", 'v'),
6065
WARNINGS("warnings"),
6166
WEAKPACKAGEUNIT("weakpackageunit"),

0 commit comments

Comments
 (0)