Commit 4426ca6
committed
Fix SpotBugs warnings for missing or inconsistent hashCode
Implemented proper hashCode() methods in classes overriding equals():
- Geofence: Uses ID, radius, expiration, and location coordinates.
- PropertyBase: Uses name.
- Font: Uses font properties (face, size, style) or native font hash.
- Border: Uses type, color, thickness, arc, etc.
- Style: Uses visual properties (colors, font, background).
- TarEntry: Added equals(Object) and hashCode based on header name.
- CustomFont: Uses charset and cutOffsets.
- Transform: Uses type and transformation matrix values.
- CSSBorder (and inner classes): Uses identity hash or field hashes.
- RoundBorder/RoundRectBorder: Uses identity hash (consistent with equals).
- ImageDownloadService: Uses cacheId.
- Layouts (Border, Box, Flow, Grid, Table): Use layout properties.1 parent f4e9392 commit 4426ca6
File tree
17 files changed
+471
-295
lines changed- CodenameOne/src/com/codename1
- io
- services
- tar
- location
- properties
- ui
- layouts
- plaf
- table
17 files changed
+471
-295
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
934 | 934 | | |
935 | 935 | | |
936 | 936 | | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
937 | 944 | | |
938 | 945 | | |
939 | 946 | | |
| |||
0 commit comments