Skip to content

Commit e4ab7eb

Browse files
Fix SpotBugs SA_FIELD_SELF_ASSIGNMENT warnings in gzip package
- Removed redundant self-assignments in `InfBlocks.java` when restoring state in `case TYPE` and `case DRY`. - Removed redundant `this.marker = m` assignment in `Inflate.java`. - Updated `.github/scripts/generate-quality-report.py` to enforce `SA_FIELD_SELF_ASSIGNMENT` check.
1 parent 34f9b25 commit e4ab7eb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

CodenameOne/src/com/codename1/io/gzip/Inflate.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,6 @@ int inflateSync() {
641641
z.total_in += p - z.next_in_index;
642642
z.next_in_index = p;
643643
z.avail_in = n;
644-
if (this.marker != m) {
645-
this.marker = m;
646-
}
647644

648645
// return no joy or set up to restart on a new block
649646
if (m != 4) {

0 commit comments

Comments
 (0)