• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pmd / pmd / 4542

18 Apr 2025 08:41AM UTC coverage: 77.769% (-0.08%) from 77.848%
4542

push

github

adangel
.ci/tools/release-notes: use login name if no name is found

17611 of 23618 branches covered (74.57%)

Branch coverage included in aggregate %.

38580 of 48636 relevant lines covered (79.32%)

0.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

24.75
/pmd-core/src/main/java/net/sourceforge/pmd/renderers/internal/sarif/SarifLog.java
1
/*
2
 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3
 */
4

5
package net.sourceforge.pmd.renderers.internal.sarif;
6

7
import java.util.List;
8
import java.util.Set;
9

10
import com.google.gson.annotations.SerializedName;
11

12
// Generated by delombok at Mon Jan 25 09:12:45 CET 2021
13
// CPD-OFF
14
public class SarifLog {
15
    /**
16
     * The URI of the JSON schema corresponding to the version.
17
     */
18
    @SerializedName("$schema")
19
    private String schema;
20
    /**
21
     * The SARIF format version of this log file.
22
     */
23
    private String version;
24
    /**
25
     * The set of runs contained in this log file.
26
     */
27
    private List<Run> runs;
28

29

30
    /**
31
     * A location within a programming artifact.
32
     */
33
    public static class Location {
34
        /**
35
         * Value that distinguishes this location from all other locations within a single result object.
36
         */
37
        private Integer id;
38
        /**
39
         * Identifies the artifact and region.
40
         */
41
        private PhysicalLocation physicalLocation;
42

43
        @java.lang.SuppressWarnings("all")
44
        Location(final Integer id, final PhysicalLocation physicalLocation) {
1✔
45
            this.id = id;
1✔
46
            this.physicalLocation = physicalLocation;
1✔
47
        }
1✔
48

49

50
        @java.lang.SuppressWarnings("all")
51
        public static class LocationBuilder {
52
            @java.lang.SuppressWarnings("all")
53
            private Integer id;
54
            @java.lang.SuppressWarnings("all")
55
            private PhysicalLocation physicalLocation;
56

57
            @java.lang.SuppressWarnings("all")
58
            LocationBuilder() {
1✔
59
            }
1✔
60

61
            /**
62
             * Value that distinguishes this location from all other locations within a single result object.
63
             * @return {@code this}.
64
             */
65
            @java.lang.SuppressWarnings("all")
66
            public SarifLog.Location.LocationBuilder id(final Integer id) {
67
                this.id = id;
×
68
                return this;
×
69
            }
70

71
            /**
72
             * Identifies the artifact and region.
73
             * @return {@code this}.
74
             */
75
            @java.lang.SuppressWarnings("all")
76
            public SarifLog.Location.LocationBuilder physicalLocation(final PhysicalLocation physicalLocation) {
77
                this.physicalLocation = physicalLocation;
1✔
78
                return this;
1✔
79
            }
80

81
            @java.lang.SuppressWarnings("all")
82
            public SarifLog.Location build() {
83
                return new SarifLog.Location(this.id, this.physicalLocation);
1✔
84
            }
85

86
            @java.lang.Override
87
            @java.lang.SuppressWarnings("all")
88
            public java.lang.String toString() {
89
                return "SarifLog.Location.LocationBuilder(id=" + this.id + ", physicalLocation=" + this.physicalLocation + ")";
×
90
            }
91
        }
92

93
        @java.lang.SuppressWarnings("all")
94
        public static SarifLog.Location.LocationBuilder builder() {
95
            return new SarifLog.Location.LocationBuilder();
1✔
96
        }
97

98
        /**
99
         * Value that distinguishes this location from all other locations within a single result object.
100
         */
101
        @java.lang.SuppressWarnings("all")
102
        public Integer getId() {
103
            return this.id;
×
104
        }
105

106
        /**
107
         * Identifies the artifact and region.
108
         */
109
        @java.lang.SuppressWarnings("all")
110
        public PhysicalLocation getPhysicalLocation() {
111
            return this.physicalLocation;
×
112
        }
113

114
        /**
115
         * Value that distinguishes this location from all other locations within a single result object.
116
         * @return {@code this}.
117
         */
118
        @java.lang.SuppressWarnings("all")
119
        public SarifLog.Location setId(final Integer id) {
120
            this.id = id;
×
121
            return this;
×
122
        }
123

124
        /**
125
         * Identifies the artifact and region.
126
         * @return {@code this}.
127
         */
128
        @java.lang.SuppressWarnings("all")
129
        public SarifLog.Location setPhysicalLocation(final PhysicalLocation physicalLocation) {
130
            this.physicalLocation = physicalLocation;
×
131
            return this;
×
132
        }
133

134
        @java.lang.Override
135
        @java.lang.SuppressWarnings("all")
136
        public boolean equals(final java.lang.Object o) {
137
            if (o == this) {
×
138
                return true;
×
139
            }
140
            if (!(o instanceof SarifLog.Location)) {
×
141
                return false;
×
142
            }
143
            final SarifLog.Location other = (SarifLog.Location) o;
×
144
            if (!other.canEqual((java.lang.Object) this)) {
×
145
                return false;
×
146
            }
147
            final java.lang.Object this$id = this.getId();
×
148
            final java.lang.Object other$id = other.getId();
×
149
            if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
×
150
                return false;
×
151
            }
152
            final java.lang.Object this$physicalLocation = this.getPhysicalLocation();
×
153
            final java.lang.Object other$physicalLocation = other.getPhysicalLocation();
×
154
            if (this$physicalLocation == null ? other$physicalLocation != null : !this$physicalLocation.equals(other$physicalLocation)) {
×
155
                return false;
×
156
            }
157
            return true;
×
158
        }
159

160
        @java.lang.SuppressWarnings("all")
161
        protected boolean canEqual(final java.lang.Object other) {
162
            return other instanceof SarifLog.Location;
×
163
        }
164

165
        @java.lang.Override
166
        @java.lang.SuppressWarnings("all")
167
        public int hashCode() {
168
            final int PRIME = 59;
×
169
            int result = 1;
×
170
            final java.lang.Object $id = this.getId();
×
171
            result = result * PRIME + ($id == null ? 43 : $id.hashCode());
×
172
            final java.lang.Object $physicalLocation = this.getPhysicalLocation();
×
173
            result = result * PRIME + ($physicalLocation == null ? 43 : $physicalLocation.hashCode());
×
174
            return result;
×
175
        }
176

177
        @java.lang.Override
178
        @java.lang.SuppressWarnings("all")
179
        public java.lang.String toString() {
180
            return "SarifLog.Location(id=" + this.getId() + ", physicalLocation=" + this.getPhysicalLocation() + ")";
×
181
        }
182
    }
183

184

185
    /**
186
     * Specifies the location of an artifact.
187
     */
188
    public static class ArtifactLocation {
189
        /**
190
         * A string containing a valid relative or absolute URI.
191
         */
192
        private String uri;
193
        /**
194
         * A string which indirectly specifies the absolute URI with respect to which a relative URI in the "uri" property
195
         * is interpreted.
196
         */
197
        private String uriBaseId;
198
        /**
199
         * The index within the run artifacts array of the artifact object associated with the artifact location.
200
         */
201
        private Integer index;
202

203
        @java.lang.SuppressWarnings("all")
204
        ArtifactLocation(final String uri, final String uriBaseId, final Integer index) {
1✔
205
            this.uri = uri;
1✔
206
            this.uriBaseId = uriBaseId;
1✔
207
            this.index = index;
1✔
208
        }
1✔
209

210

211
        @java.lang.SuppressWarnings("all")
212
        public static class ArtifactLocationBuilder {
213
            @java.lang.SuppressWarnings("all")
214
            private String uri;
215
            @java.lang.SuppressWarnings("all")
216
            private String uriBaseId;
217
            @java.lang.SuppressWarnings("all")
218
            private Integer index;
219

220
            @java.lang.SuppressWarnings("all")
221
            ArtifactLocationBuilder() {
1✔
222
            }
1✔
223

224
            /**
225
             * A string containing a valid relative or absolute URI.
226
             * @return {@code this}.
227
             */
228
            @java.lang.SuppressWarnings("all")
229
            public SarifLog.ArtifactLocation.ArtifactLocationBuilder uri(final String uri) {
230
                this.uri = uri;
1✔
231
                return this;
1✔
232
            }
233

234
            /**
235
             * A string which indirectly specifies the absolute URI with respect to which a relative URI in the "uri" property
236
             * is interpreted.
237
             * @return {@code this}.
238
             */
239
            @java.lang.SuppressWarnings("all")
240
            public SarifLog.ArtifactLocation.ArtifactLocationBuilder uriBaseId(final String uriBaseId) {
241
                this.uriBaseId = uriBaseId;
×
242
                return this;
×
243
            }
244

245
            /**
246
             * The index within the run artifacts array of the artifact object associated with the artifact location.
247
             * @return {@code this}.
248
             */
249
            @java.lang.SuppressWarnings("all")
250
            public SarifLog.ArtifactLocation.ArtifactLocationBuilder index(final Integer index) {
251
                this.index = index;
×
252
                return this;
×
253
            }
254

255
            @java.lang.SuppressWarnings("all")
256
            public SarifLog.ArtifactLocation build() {
257
                return new SarifLog.ArtifactLocation(this.uri, this.uriBaseId, this.index);
1✔
258
            }
259

260
            @java.lang.Override
261
            @java.lang.SuppressWarnings("all")
262
            public java.lang.String toString() {
263
                return "SarifLog.ArtifactLocation.ArtifactLocationBuilder(uri=" + this.uri + ", uriBaseId=" + this.uriBaseId + ", index=" + this.index + ")";
×
264
            }
265
        }
266

267
        @java.lang.SuppressWarnings("all")
268
        public static SarifLog.ArtifactLocation.ArtifactLocationBuilder builder() {
269
            return new SarifLog.ArtifactLocation.ArtifactLocationBuilder();
1✔
270
        }
271

272
        /**
273
         * A string containing a valid relative or absolute URI.
274
         */
275
        @java.lang.SuppressWarnings("all")
276
        public String getUri() {
277
            return this.uri;
×
278
        }
279

280
        /**
281
         * A string which indirectly specifies the absolute URI with respect to which a relative URI in the "uri" property
282
         * is interpreted.
283
         */
284
        @java.lang.SuppressWarnings("all")
285
        public String getUriBaseId() {
286
            return this.uriBaseId;
×
287
        }
288

289
        /**
290
         * The index within the run artifacts array of the artifact object associated with the artifact location.
291
         */
292
        @java.lang.SuppressWarnings("all")
293
        public Integer getIndex() {
294
            return this.index;
×
295
        }
296

297
        /**
298
         * A string containing a valid relative or absolute URI.
299
         * @return {@code this}.
300
         */
301
        @java.lang.SuppressWarnings("all")
302
        public SarifLog.ArtifactLocation setUri(final String uri) {
303
            this.uri = uri;
×
304
            return this;
×
305
        }
306

307
        /**
308
         * A string which indirectly specifies the absolute URI with respect to which a relative URI in the "uri" property
309
         * is interpreted.
310
         * @return {@code this}.
311
         */
312
        @java.lang.SuppressWarnings("all")
313
        public SarifLog.ArtifactLocation setUriBaseId(final String uriBaseId) {
314
            this.uriBaseId = uriBaseId;
×
315
            return this;
×
316
        }
317

318
        /**
319
         * The index within the run artifacts array of the artifact object associated with the artifact location.
320
         * @return {@code this}.
321
         */
322
        @java.lang.SuppressWarnings("all")
323
        public SarifLog.ArtifactLocation setIndex(final Integer index) {
324
            this.index = index;
×
325
            return this;
×
326
        }
327

328
        @java.lang.Override
329
        @java.lang.SuppressWarnings("all")
330
        public boolean equals(final java.lang.Object o) {
331
            if (o == this) {
×
332
                return true;
×
333
            }
334
            if (!(o instanceof SarifLog.ArtifactLocation)) {
×
335
                return false;
×
336
            }
337
            final SarifLog.ArtifactLocation other = (SarifLog.ArtifactLocation) o;
×
338
            if (!other.canEqual((java.lang.Object) this)) {
×
339
                return false;
×
340
            }
341
            final java.lang.Object this$uri = this.getUri();
×
342
            final java.lang.Object other$uri = other.getUri();
×
343
            if (this$uri == null ? other$uri != null : !this$uri.equals(other$uri)) {
×
344
                return false;
×
345
            }
346
            final java.lang.Object this$uriBaseId = this.getUriBaseId();
×
347
            final java.lang.Object other$uriBaseId = other.getUriBaseId();
×
348
            if (this$uriBaseId == null ? other$uriBaseId != null : !this$uriBaseId.equals(other$uriBaseId)) {
×
349
                return false;
×
350
            }
351
            final java.lang.Object this$index = this.getIndex();
×
352
            final java.lang.Object other$index = other.getIndex();
×
353
            if (this$index == null ? other$index != null : !this$index.equals(other$index)) {
×
354
                return false;
×
355
            }
356
            return true;
×
357
        }
358

359
        @java.lang.SuppressWarnings("all")
360
        protected boolean canEqual(final java.lang.Object other) {
361
            return other instanceof SarifLog.ArtifactLocation;
×
362
        }
363

364
        @java.lang.Override
365
        @java.lang.SuppressWarnings("all")
366
        public int hashCode() {
367
            final int PRIME = 59;
×
368
            int result = 1;
×
369
            final java.lang.Object $uri = this.getUri();
×
370
            result = result * PRIME + ($uri == null ? 43 : $uri.hashCode());
×
371
            final java.lang.Object $uriBaseId = this.getUriBaseId();
×
372
            result = result * PRIME + ($uriBaseId == null ? 43 : $uriBaseId.hashCode());
×
373
            final java.lang.Object $index = this.getIndex();
×
374
            result = result * PRIME + ($index == null ? 43 : $index.hashCode());
×
375
            return result;
×
376
        }
377

378
        @java.lang.Override
379
        @java.lang.SuppressWarnings("all")
380
        public java.lang.String toString() {
381
            return "SarifLog.ArtifactLocation(uri=" + this.getUri() + ", uriBaseId=" + this.getUriBaseId() + ", index=" + this.getIndex() + ")";
×
382
        }
383
    }
384

385

386
    /**
387
     * A physical location relevant to a result. Specifies a reference to a programming artifact together with a range
388
     * of bytes or characters within that artifact.
389
     */
390
    public static class PhysicalLocation {
391
        /**
392
         * The location of the artifact.
393
         */
394
        private ArtifactLocation artifactLocation;
395
        /**
396
         * Specifies a portion of the artifact.
397
         */
398
        private Region region;
399

400
        @java.lang.SuppressWarnings("all")
401
        PhysicalLocation(final ArtifactLocation artifactLocation, final Region region) {
1✔
402
            this.artifactLocation = artifactLocation;
1✔
403
            this.region = region;
1✔
404
        }
1✔
405

406

407
        @java.lang.SuppressWarnings("all")
408
        public static class PhysicalLocationBuilder {
409
            @java.lang.SuppressWarnings("all")
410
            private ArtifactLocation artifactLocation;
411
            @java.lang.SuppressWarnings("all")
412
            private Region region;
413

414
            @java.lang.SuppressWarnings("all")
415
            PhysicalLocationBuilder() {
1✔
416
            }
1✔
417

418
            /**
419
             * The location of the artifact.
420
             * @return {@code this}.
421
             */
422
            @java.lang.SuppressWarnings("all")
423
            public SarifLog.PhysicalLocation.PhysicalLocationBuilder artifactLocation(final ArtifactLocation artifactLocation) {
424
                this.artifactLocation = artifactLocation;
1✔
425
                return this;
1✔
426
            }
427

428
            /**
429
             * Specifies a portion of the artifact.
430
             * @return {@code this}.
431
             */
432
            @java.lang.SuppressWarnings("all")
433
            public SarifLog.PhysicalLocation.PhysicalLocationBuilder region(final Region region) {
434
                this.region = region;
1✔
435
                return this;
1✔
436
            }
437

438
            @java.lang.SuppressWarnings("all")
439
            public SarifLog.PhysicalLocation build() {
440
                return new SarifLog.PhysicalLocation(this.artifactLocation, this.region);
1✔
441
            }
442

443
            @java.lang.Override
444
            @java.lang.SuppressWarnings("all")
445
            public java.lang.String toString() {
446
                return "SarifLog.PhysicalLocation.PhysicalLocationBuilder(artifactLocation=" + this.artifactLocation + ", region=" + this.region + ")";
×
447
            }
448
        }
449

450
        @java.lang.SuppressWarnings("all")
451
        public static SarifLog.PhysicalLocation.PhysicalLocationBuilder builder() {
452
            return new SarifLog.PhysicalLocation.PhysicalLocationBuilder();
1✔
453
        }
454

455
        /**
456
         * The location of the artifact.
457
         */
458
        @java.lang.SuppressWarnings("all")
459
        public ArtifactLocation getArtifactLocation() {
460
            return this.artifactLocation;
×
461
        }
462

463
        /**
464
         * Specifies a portion of the artifact.
465
         */
466
        @java.lang.SuppressWarnings("all")
467
        public Region getRegion() {
468
            return this.region;
×
469
        }
470

471
        /**
472
         * The location of the artifact.
473
         * @return {@code this}.
474
         */
475
        @java.lang.SuppressWarnings("all")
476
        public SarifLog.PhysicalLocation setArtifactLocation(final ArtifactLocation artifactLocation) {
477
            this.artifactLocation = artifactLocation;
×
478
            return this;
×
479
        }
480

481
        /**
482
         * Specifies a portion of the artifact.
483
         * @return {@code this}.
484
         */
485
        @java.lang.SuppressWarnings("all")
486
        public SarifLog.PhysicalLocation setRegion(final Region region) {
487
            this.region = region;
×
488
            return this;
×
489
        }
490

491
        @java.lang.Override
492
        @java.lang.SuppressWarnings("all")
493
        public boolean equals(final java.lang.Object o) {
494
            if (o == this) {
×
495
                return true;
×
496
            }
497
            if (!(o instanceof SarifLog.PhysicalLocation)) {
×
498
                return false;
×
499
            }
500
            final SarifLog.PhysicalLocation other = (SarifLog.PhysicalLocation) o;
×
501
            if (!other.canEqual((java.lang.Object) this)) {
×
502
                return false;
×
503
            }
504
            final java.lang.Object this$artifactLocation = this.getArtifactLocation();
×
505
            final java.lang.Object other$artifactLocation = other.getArtifactLocation();
×
506
            if (this$artifactLocation == null ? other$artifactLocation != null : !this$artifactLocation.equals(other$artifactLocation)) {
×
507
                return false;
×
508
            }
509
            final java.lang.Object this$region = this.getRegion();
×
510
            final java.lang.Object other$region = other.getRegion();
×
511
            if (this$region == null ? other$region != null : !this$region.equals(other$region)) {
×
512
                return false;
×
513
            }
514
            return true;
×
515
        }
516

517
        @java.lang.SuppressWarnings("all")
518
        protected boolean canEqual(final java.lang.Object other) {
519
            return other instanceof SarifLog.PhysicalLocation;
×
520
        }
521

522
        @java.lang.Override
523
        @java.lang.SuppressWarnings("all")
524
        public int hashCode() {
525
            final int PRIME = 59;
×
526
            int result = 1;
×
527
            final java.lang.Object $artifactLocation = this.getArtifactLocation();
×
528
            result = result * PRIME + ($artifactLocation == null ? 43 : $artifactLocation.hashCode());
×
529
            final java.lang.Object $region = this.getRegion();
×
530
            result = result * PRIME + ($region == null ? 43 : $region.hashCode());
×
531
            return result;
×
532
        }
533

534
        @java.lang.Override
535
        @java.lang.SuppressWarnings("all")
536
        public java.lang.String toString() {
537
            return "SarifLog.PhysicalLocation(artifactLocation=" + this.getArtifactLocation() + ", region=" + this.getRegion() + ")";
×
538
        }
539
    }
540

541

542
    /**
543
     * Key/value pairs that provide additional information about the object.
544
     */
545
    public static class PropertyBag {
546
        /**
547
         * The name of the rule set.
548
         */
549
        private String ruleset;
550
        /**
551
         * The pmd priority of the rule.
552
         */
553
        private Integer priority;
554
        /**
555
         * A set of distinct strings that provide additional information. This is SARIF 2.1.0 Schema.
556
         */
557
        private Set<String> tags;
558

559
        @java.lang.SuppressWarnings("all")
560
        PropertyBag(final String ruleset, final Integer priority, final Set<String> tags) {
1✔
561
            this.ruleset = ruleset;
1✔
562
            this.priority = priority;
1✔
563
            this.tags = tags;
1✔
564
        }
1✔
565

566

567
        @java.lang.SuppressWarnings("all")
568
        public static class PropertyBagBuilder {
569
            @java.lang.SuppressWarnings("all")
570
            private String ruleset;
571
            @java.lang.SuppressWarnings("all")
572
            private Integer priority;
573
            @java.lang.SuppressWarnings("all")
574
            private Set<String> tags;
575

576
            @java.lang.SuppressWarnings("all")
577
            PropertyBagBuilder() {
1✔
578
            }
1✔
579

580
            /**
581
             * The name of the rule set.
582
             * @return {@code this}.
583
             */
584
            @java.lang.SuppressWarnings("all")
585
            public SarifLog.PropertyBag.PropertyBagBuilder ruleset(final String ruleset) {
586
                this.ruleset = ruleset;
1✔
587
                return this;
1✔
588
            }
589

590
            /**
591
             * The pmd priority of the rule.
592
             * @return {@code this}.
593
             */
594
            @java.lang.SuppressWarnings("all")
595
            public SarifLog.PropertyBag.PropertyBagBuilder priority(final Integer priority) {
596
                this.priority = priority;
1✔
597
                return this;
1✔
598
            }
599

600
            /**
601
             * A set of distinct strings that provide additional information. This is SARIF 2.1.0 Schema.
602
             * @return {@code this}.
603
             */
604
            @java.lang.SuppressWarnings("all")
605
            public SarifLog.PropertyBag.PropertyBagBuilder tags(final Set<String> tags) {
606
                this.tags = tags;
1✔
607
                return this;
1✔
608
            }
609

610
            @java.lang.SuppressWarnings("all")
611
            public SarifLog.PropertyBag build() {
612
                return new SarifLog.PropertyBag(this.ruleset, this.priority, this.tags);
1✔
613
            }
614

615
            @java.lang.Override
616
            @java.lang.SuppressWarnings("all")
617
            public java.lang.String toString() {
618
                return "SarifLog.PropertyBag.PropertyBagBuilder(ruleset=" + this.ruleset + ", priority=" + this.priority + ", tags=" + this.tags + ")";
×
619
            }
620
        }
621

622
        @java.lang.SuppressWarnings("all")
623
        public static SarifLog.PropertyBag.PropertyBagBuilder builder() {
624
            return new SarifLog.PropertyBag.PropertyBagBuilder();
1✔
625
        }
626

627
        /**
628
         * The name of the rule set.
629
         */
630
        @java.lang.SuppressWarnings("all")
631
        public String getRuleset() {
632
            return this.ruleset;
1✔
633
        }
634

635
        /**
636
         * The pmd priority of the rule.
637
         */
638
        @java.lang.SuppressWarnings("all")
639
        public Integer getPriority() {
640
            return this.priority;
1✔
641
        }
642

643
        /**
644
         * A set of distinct strings that provide additional information. This is SARIF 2.1.0 Schema.
645
         */
646
        @java.lang.SuppressWarnings("all")
647
        public Set<String> getTags() {
648
            return this.tags;
1✔
649
        }
650

651
        /**
652
         * The name of the rule set.
653
         * @return {@code this}.
654
         */
655
        @java.lang.SuppressWarnings("all")
656
        public SarifLog.PropertyBag setRuleset(final String ruleset) {
657
            this.ruleset = ruleset;
×
658
            return this;
×
659
        }
660

661
        /**
662
         * The pmd priority of the rule.
663
         * @return {@code this}.
664
         */
665
        @java.lang.SuppressWarnings("all")
666
        public SarifLog.PropertyBag setPriority(final Integer priority) {
667
            this.priority = priority;
×
668
            return this;
×
669
        }
670

671
        /**
672
         * The set of distinct strings that provide additional information. This is SARIF 2.1.0 Schema.
673
         * @return {@code this}.
674
         */
675
        @java.lang.SuppressWarnings("all")
676
        public SarifLog.PropertyBag setTags(final Set<String> tags) {
677
            this.tags = tags;
×
678
            return this;
×
679
        }
680

681
        @java.lang.Override
682
        @java.lang.SuppressWarnings("all")
683
        public boolean equals(final java.lang.Object o) {
684
            if (o == this) {
1!
685
                return true;
×
686
            }
687
            if (!(o instanceof SarifLog.PropertyBag)) {
1!
688
                return false;
×
689
            }
690
            final SarifLog.PropertyBag other = (SarifLog.PropertyBag) o;
1✔
691
            if (!other.canEqual((java.lang.Object) this)) {
1!
692
                return false;
×
693
            }
694
            final java.lang.Object this$ruleset = this.getRuleset();
1✔
695
            final java.lang.Object other$ruleset = other.getRuleset();
1✔
696
            if (this$ruleset == null ? other$ruleset != null : !this$ruleset.equals(other$ruleset)) {
1!
697
                return false;
×
698
            }
699
            final java.lang.Object this$priority = this.getPriority();
1✔
700
            final java.lang.Object other$priority = other.getPriority();
1✔
701
            if (this$priority == null ? other$priority != null : !this$priority.equals(other$priority)) {
1!
702
                return false;
×
703
            }
704
            final java.lang.Object this$tags = this.getTags();
1✔
705
            final java.lang.Object other$tags = other.getTags();
1✔
706
            if (this$tags == null ? other$tags != null : !this$tags.equals(other$tags)) {
1!
707
                return false;
×
708
            }
709
            return true;
1✔
710
        }
711

712
        @java.lang.SuppressWarnings("all")
713
        protected boolean canEqual(final java.lang.Object other) {
714
            return other instanceof SarifLog.PropertyBag;
1✔
715
        }
716

717
        @java.lang.Override
718
        @java.lang.SuppressWarnings("all")
719
        public int hashCode() {
720
            final int PRIME = 59;
×
721
            int result = 1;
×
722
            final java.lang.Object $ruleset = this.getRuleset();
×
723
            result = result * PRIME + ($ruleset == null ? 43 : $ruleset.hashCode());
×
724
            final java.lang.Object $priority = this.getPriority();
×
725
            result = result * PRIME + ($priority == null ? 43 : $priority.hashCode());
×
726
            final java.lang.Object $tags = this.getTags();
×
727
            result = result * PRIME + ($tags == null ? 43 : $tags.hashCode());
×
728
            return result;
×
729
        }
730

731
        @java.lang.Override
732
        @java.lang.SuppressWarnings("all")
733
        public java.lang.String toString() {
734
            return "SarifLog.PropertyBag(ruleset=" + this.getRuleset() + ", priority=" + this.getPriority() + ", tags=" + this.getTags() + ")";
×
735
        }
736
    }
737

738

739
    /**
740
     * A region within an artifact where a result was detected.
741
     */
742
    public static class Region {
743
        /**
744
         * The line number of the first character in the region.
745
         */
746
        private Integer startLine;
747
        /**
748
         * The column number of the first character in the region.
749
         */
750
        private Integer startColumn;
751
        /**
752
         * The line number of the last character in the region.
753
         */
754
        private Integer endLine;
755
        /**
756
         * The column number of the character following the end of the region.
757
         */
758
        private Integer endColumn;
759

760
        @java.lang.SuppressWarnings("all")
761
        Region(final Integer startLine, final Integer startColumn, final Integer endLine, final Integer endColumn) {
1✔
762
            this.startLine = startLine;
1✔
763
            this.startColumn = startColumn;
1✔
764
            this.endLine = endLine;
1✔
765
            this.endColumn = endColumn;
1✔
766
        }
1✔
767

768

769
        @java.lang.SuppressWarnings("all")
770
        public static class RegionBuilder {
771
            @java.lang.SuppressWarnings("all")
772
            private Integer startLine;
773
            @java.lang.SuppressWarnings("all")
774
            private Integer startColumn;
775
            @java.lang.SuppressWarnings("all")
776
            private Integer endLine;
777
            @java.lang.SuppressWarnings("all")
778
            private Integer endColumn;
779

780
            @java.lang.SuppressWarnings("all")
781
            RegionBuilder() {
1✔
782
            }
1✔
783

784
            /**
785
             * The line number of the first character in the region.
786
             * @return {@code this}.
787
             */
788
            @java.lang.SuppressWarnings("all")
789
            public SarifLog.Region.RegionBuilder startLine(final Integer startLine) {
790
                this.startLine = startLine;
1✔
791
                return this;
1✔
792
            }
793

794
            /**
795
             * The column number of the first character in the region.
796
             * @return {@code this}.
797
             */
798
            @java.lang.SuppressWarnings("all")
799
            public SarifLog.Region.RegionBuilder startColumn(final Integer startColumn) {
800
                this.startColumn = startColumn;
1✔
801
                return this;
1✔
802
            }
803

804
            /**
805
             * The line number of the last character in the region.
806
             * @return {@code this}.
807
             */
808
            @java.lang.SuppressWarnings("all")
809
            public SarifLog.Region.RegionBuilder endLine(final Integer endLine) {
810
                this.endLine = endLine;
1✔
811
                return this;
1✔
812
            }
813

814
            /**
815
             * The column number of the character following the end of the region.
816
             * @return {@code this}.
817
             */
818
            @java.lang.SuppressWarnings("all")
819
            public SarifLog.Region.RegionBuilder endColumn(final Integer endColumn) {
820
                this.endColumn = endColumn;
1✔
821
                return this;
1✔
822
            }
823

824
            @java.lang.SuppressWarnings("all")
825
            public SarifLog.Region build() {
826
                return new SarifLog.Region(this.startLine, this.startColumn, this.endLine, this.endColumn);
1✔
827
            }
828

829
            @java.lang.Override
830
            @java.lang.SuppressWarnings("all")
831
            public java.lang.String toString() {
832
                return "SarifLog.Region.RegionBuilder(startLine=" + this.startLine + ", startColumn=" + this.startColumn + ", endLine=" + this.endLine + ", endColumn=" + this.endColumn + ")";
×
833
            }
834
        }
835

836
        @java.lang.SuppressWarnings("all")
837
        public static SarifLog.Region.RegionBuilder builder() {
838
            return new SarifLog.Region.RegionBuilder();
1✔
839
        }
840

841
        /**
842
         * The line number of the first character in the region.
843
         */
844
        @java.lang.SuppressWarnings("all")
845
        public Integer getStartLine() {
846
            return this.startLine;
×
847
        }
848

849
        /**
850
         * The column number of the first character in the region.
851
         */
852
        @java.lang.SuppressWarnings("all")
853
        public Integer getStartColumn() {
854
            return this.startColumn;
×
855
        }
856

857
        /**
858
         * The line number of the last character in the region.
859
         */
860
        @java.lang.SuppressWarnings("all")
861
        public Integer getEndLine() {
862
            return this.endLine;
×
863
        }
864

865
        /**
866
         * The column number of the character following the end of the region.
867
         */
868
        @java.lang.SuppressWarnings("all")
869
        public Integer getEndColumn() {
870
            return this.endColumn;
×
871
        }
872

873
        /**
874
         * The line number of the first character in the region.
875
         * @return {@code this}.
876
         */
877
        @java.lang.SuppressWarnings("all")
878
        public SarifLog.Region setStartLine(final Integer startLine) {
879
            this.startLine = startLine;
×
880
            return this;
×
881
        }
882

883
        /**
884
         * The column number of the first character in the region.
885
         * @return {@code this}.
886
         */
887
        @java.lang.SuppressWarnings("all")
888
        public SarifLog.Region setStartColumn(final Integer startColumn) {
889
            this.startColumn = startColumn;
×
890
            return this;
×
891
        }
892

893
        /**
894
         * The line number of the last character in the region.
895
         * @return {@code this}.
896
         */
897
        @java.lang.SuppressWarnings("all")
898
        public SarifLog.Region setEndLine(final Integer endLine) {
899
            this.endLine = endLine;
×
900
            return this;
×
901
        }
902

903
        /**
904
         * The column number of the character following the end of the region.
905
         * @return {@code this}.
906
         */
907
        @java.lang.SuppressWarnings("all")
908
        public SarifLog.Region setEndColumn(final Integer endColumn) {
909
            this.endColumn = endColumn;
×
910
            return this;
×
911
        }
912

913
        @java.lang.Override
914
        @java.lang.SuppressWarnings("all")
915
        public boolean equals(final java.lang.Object o) {
916
            if (o == this) {
×
917
                return true;
×
918
            }
919
            if (!(o instanceof SarifLog.Region)) {
×
920
                return false;
×
921
            }
922
            final SarifLog.Region other = (SarifLog.Region) o;
×
923
            if (!other.canEqual((java.lang.Object) this)) {
×
924
                return false;
×
925
            }
926
            final java.lang.Object this$startLine = this.getStartLine();
×
927
            final java.lang.Object other$startLine = other.getStartLine();
×
928
            if (this$startLine == null ? other$startLine != null : !this$startLine.equals(other$startLine)) {
×
929
                return false;
×
930
            }
931
            final java.lang.Object this$startColumn = this.getStartColumn();
×
932
            final java.lang.Object other$startColumn = other.getStartColumn();
×
933
            if (this$startColumn == null ? other$startColumn != null : !this$startColumn.equals(other$startColumn)) {
×
934
                return false;
×
935
            }
936
            final java.lang.Object this$endLine = this.getEndLine();
×
937
            final java.lang.Object other$endLine = other.getEndLine();
×
938
            if (this$endLine == null ? other$endLine != null : !this$endLine.equals(other$endLine)) {
×
939
                return false;
×
940
            }
941
            final java.lang.Object this$endColumn = this.getEndColumn();
×
942
            final java.lang.Object other$endColumn = other.getEndColumn();
×
943
            if (this$endColumn == null ? other$endColumn != null : !this$endColumn.equals(other$endColumn)) {
×
944
                return false;
×
945
            }
946
            return true;
×
947
        }
948

949
        @java.lang.SuppressWarnings("all")
950
        protected boolean canEqual(final java.lang.Object other) {
951
            return other instanceof SarifLog.Region;
×
952
        }
953

954
        @java.lang.Override
955
        @java.lang.SuppressWarnings("all")
956
        public int hashCode() {
957
            final int PRIME = 59;
×
958
            int result = 1;
×
959
            final java.lang.Object $startLine = this.getStartLine();
×
960
            result = result * PRIME + ($startLine == null ? 43 : $startLine.hashCode());
×
961
            final java.lang.Object $startColumn = this.getStartColumn();
×
962
            result = result * PRIME + ($startColumn == null ? 43 : $startColumn.hashCode());
×
963
            final java.lang.Object $endLine = this.getEndLine();
×
964
            result = result * PRIME + ($endLine == null ? 43 : $endLine.hashCode());
×
965
            final java.lang.Object $endColumn = this.getEndColumn();
×
966
            result = result * PRIME + ($endColumn == null ? 43 : $endColumn.hashCode());
×
967
            return result;
×
968
        }
969

970
        @java.lang.Override
971
        @java.lang.SuppressWarnings("all")
972
        public java.lang.String toString() {
973
            return "SarifLog.Region(startLine=" + this.getStartLine() + ", startColumn=" + this.getStartColumn() + ", endLine=" + this.getEndLine() + ", endColumn=" + this.getEndColumn() + ")";
×
974
        }
975
    }
976

977

978
    /**
979
     * A result produced by an analysis tool.
980
     */
981
    public static class Result {
982

983
        /**
984
         * The stable, unique identifier of the rule, if any, to which this result is relevant.
985
         */
986
        private String ruleId;
987

988
        /**
989
         * The index link the rule, if any, to which this result is relevant.
990
         */
991
        private Integer ruleIndex;
992

993
        /**
994
         * A message that describes the result. The first sentence of the message only will be displayed when visible
995
         * space is limited.
996
         */
997
        private Message message;
998

999
        /**
1000
         * Specifies the severity level of the result. It is derived from PMD's defined rule priorities (1,2 = error, 3 = warning, 4,5 = note).
1001
         * @see net.sourceforge.pmd.lang.rule.RulePriority
1002
         */
1003
        private String level;
1004

1005
        /**
1006
         * The set of locations where the result was detected. Specify only one location unless the problem indicated by
1007
         * the result can only be corrected by making a change at every specified location.
1008
         */
1009
        private List<Location> locations;
1010

1011
        /**
1012
         * Key/value pairs that provide additional information about the address.
1013
         */
1014
        private PropertyBag properties;
1015

1016
        @java.lang.SuppressWarnings("all")
1017
        Result(final String ruleId, final Integer ruleIndex, final Message message, final String level, final List<Location> locations, final PropertyBag properties) {
1✔
1018
            this.ruleId = ruleId;
1✔
1019
            this.ruleIndex = ruleIndex;
1✔
1020
            this.message = message;
1✔
1021
            this.level = level;
1✔
1022
            this.locations = locations;
1✔
1023
            this.properties = properties;
1✔
1024
        }
1✔
1025

1026

1027
        @java.lang.SuppressWarnings("all")
1028
        public static class ResultBuilder {
1029
            @java.lang.SuppressWarnings("all")
1030
            private String ruleId;
1031
            @java.lang.SuppressWarnings("all")
1032
            private Integer ruleIndex;
1033
            @java.lang.SuppressWarnings("all")
1034
            private Message message;
1035
            @SuppressWarnings("all")
1036
            private String level;
1037
            @java.lang.SuppressWarnings("all")
1038
            private List<Location> locations;
1039
            @java.lang.SuppressWarnings("all")
1040
            private PropertyBag properties;
1041

1042
            @java.lang.SuppressWarnings("all")
1043
            ResultBuilder() {
1✔
1044
            }
1✔
1045

1046
            /**
1047
             * The stable, unique identifier of the rule, if any, to which this result is relevant.
1048
             * @return {@code this}.
1049
             */
1050
            @java.lang.SuppressWarnings("all")
1051
            public SarifLog.Result.ResultBuilder ruleId(final String ruleId) {
1052
                this.ruleId = ruleId;
1✔
1053
                return this;
1✔
1054
            }
1055

1056
            /**
1057
             * The index link the rule, if any, to which this result is relevant.
1058
             * @return {@code this}.
1059
             */
1060
            @java.lang.SuppressWarnings("all")
1061
            public SarifLog.Result.ResultBuilder ruleIndex(final Integer ruleIndex) {
1062
                this.ruleIndex = ruleIndex;
1✔
1063
                return this;
1✔
1064
            }
1065

1066
            /**
1067
             * A message that describes the result. The first sentence of the message only will be displayed when visible
1068
             * space is limited.
1069
             * @return {@code this}.
1070
             */
1071
            @java.lang.SuppressWarnings("all")
1072
            public SarifLog.Result.ResultBuilder message(final Message message) {
1073
                this.message = message;
×
1074
                return this;
×
1075
            }
1076

1077
            /**
1078
             * Specifies the severity level of the result. It is derived from PMD's defined rule priorities (1,2 = error, 3 = warning, 4,5 = note).
1079
             * @return {@code this}.
1080
             * @see net.sourceforge.pmd.lang.rule.RulePriority
1081
             */
1082
            @SuppressWarnings("all")
1083
            public SarifLog.Result.ResultBuilder level(final String level) {
1084
                this.level = level;
1✔
1085
                return this;
1✔
1086
            }
1087

1088
            /**
1089
             * The set of locations where the result was detected. Specify only one location unless the problem indicated by
1090
             * the result can only be corrected by making a change at every specified location.
1091
             * @return {@code this}.
1092
             */
1093
            @java.lang.SuppressWarnings("all")
1094
            public SarifLog.Result.ResultBuilder locations(final List<Location> locations) {
1095
                this.locations = locations;
×
1096
                return this;
×
1097
            }
1098

1099
            /**
1100
             * Key/value pairs that provide additional information about the address.
1101
             * @return {@code this}.
1102
             */
1103
            @java.lang.SuppressWarnings("all")
1104
            public SarifLog.Result.ResultBuilder properties(final PropertyBag properties) {
1105
                this.properties = properties;
×
1106
                return this;
×
1107
            }
1108

1109
            @java.lang.SuppressWarnings("all")
1110
            public SarifLog.Result build() {
1111
                return new SarifLog.Result(this.ruleId, this.ruleIndex, this.message, this.level, this.locations, this.properties);
1✔
1112
            }
1113

1114
            @java.lang.Override
1115
            @java.lang.SuppressWarnings("all")
1116
            public java.lang.String toString() {
1117
                return "SarifLog.Result.ResultBuilder(ruleId=" + this.ruleId + ", ruleIndex=" + this.ruleIndex + ", message=" + this.message + ", level=" + this.level + ", locations=" + this.locations + ", properties=" + this.properties + ")";
×
1118
            }
1119
        }
1120

1121
        @java.lang.SuppressWarnings("all")
1122
        public static SarifLog.Result.ResultBuilder builder() {
1123
            return new SarifLog.Result.ResultBuilder();
1✔
1124
        }
1125

1126
        /**
1127
         * The stable, unique identifier of the rule, if any, to which this result is relevant.
1128
         */
1129
        @java.lang.SuppressWarnings("all")
1130
        public String getRuleId() {
1131
            return this.ruleId;
×
1132
        }
1133

1134
        /**
1135
         * The index link the rule, if any, to which this result is relevant.
1136
         */
1137
        @java.lang.SuppressWarnings("all")
1138
        public Integer getRuleIndex() {
1139
            return this.ruleIndex;
×
1140
        }
1141

1142
        /**
1143
         * A message that describes the result. The first sentence of the message only will be displayed when visible
1144
         * space is limited.
1145
         */
1146
        @java.lang.SuppressWarnings("all")
1147
        public Message getMessage() {
1148
            return this.message;
×
1149
        }
1150

1151
        /**
1152
         * Specifies the severity level of the result. It is derived from PMD's defined rule priorities (1,2 = error, 3 = warning, 4,5 = note).
1153
         * @see net.sourceforge.pmd.lang.rule.RulePriority
1154
         */
1155
        @SuppressWarnings("all")
1156
        public String getLevel() {
1157
            return this.level;
×
1158
        }
1159

1160
        /**
1161
         * The set of locations where the result was detected. Specify only one location unless the problem indicated by
1162
         * the result can only be corrected by making a change at every specified location.
1163
         */
1164
        @java.lang.SuppressWarnings("all")
1165
        public List<Location> getLocations() {
1166
            return this.locations;
×
1167
        }
1168

1169
        /**
1170
         * Key/value pairs that provide additional information about the address.
1171
         */
1172
        @java.lang.SuppressWarnings("all")
1173
        public PropertyBag getProperties() {
1174
            return this.properties;
×
1175
        }
1176

1177
        /**
1178
         * The stable, unique identifier of the rule, if any, to which this result is relevant.
1179
         * @return {@code this}.
1180
         */
1181
        @java.lang.SuppressWarnings("all")
1182
        public SarifLog.Result setRuleId(final String ruleId) {
1183
            this.ruleId = ruleId;
×
1184
            return this;
×
1185
        }
1186

1187
        /**
1188
         * The index link the rule, if any, to which this result is relevant.
1189
         * @return {@code this}.
1190
         */
1191
        @java.lang.SuppressWarnings("all")
1192
        public SarifLog.Result setRuleIndex(final Integer ruleIndex) {
1193
            this.ruleIndex = ruleIndex;
×
1194
            return this;
×
1195
        }
1196

1197
        /**
1198
         * A message that describes the result. The first sentence of the message only will be displayed when visible
1199
         * space is limited.
1200
         * @return {@code this}.
1201
         */
1202
        @java.lang.SuppressWarnings("all")
1203
        public SarifLog.Result setMessage(final Message message) {
1204
            this.message = message;
1✔
1205
            return this;
1✔
1206
        }
1207

1208
        /**
1209
         * Specifies the severity level of the result. It is derived from PMD's defined rule priorities (1,2 = error, 3 = warning, 4,5 = note).
1210
         * @return {@code this}.
1211
         * @see net.sourceforge.pmd.lang.rule.RulePriority
1212
         */
1213
        @SuppressWarnings("all")
1214
        public SarifLog.Result setLevel(final String level) {
1215
            this.level = level;
×
1216
            return this;
×
1217
        }
1218

1219
        /**
1220
         * The set of locations where the result was detected. Specify only one location unless the problem indicated by
1221
         * the result can only be corrected by making a change at every specified location.
1222
         * @return {@code this}.
1223
         */
1224
        @java.lang.SuppressWarnings("all")
1225
        public SarifLog.Result setLocations(final List<Location> locations) {
1226
            this.locations = locations;
1✔
1227
            return this;
1✔
1228
        }
1229

1230
        /**
1231
         * Key/value pairs that provide additional information about the address.
1232
         * @return {@code this}.
1233
         */
1234
        @java.lang.SuppressWarnings("all")
1235
        public SarifLog.Result setProperties(final PropertyBag properties) {
1236
            this.properties = properties;
×
1237
            return this;
×
1238
        }
1239

1240
        @java.lang.Override
1241
        @java.lang.SuppressWarnings("all")
1242
        public boolean equals(final java.lang.Object o) {
1243
            if (o == this) {
×
1244
                return true;
×
1245
            }
1246
            if (!(o instanceof SarifLog.Result)) {
×
1247
                return false;
×
1248
            }
1249
            final SarifLog.Result other = (SarifLog.Result) o;
×
1250
            if (!other.canEqual((java.lang.Object) this)) {
×
1251
                return false;
×
1252
            }
1253
            final java.lang.Object this$ruleId = this.getRuleId();
×
1254
            final java.lang.Object other$ruleId = other.getRuleId();
×
1255
            if (this$ruleId == null ? other$ruleId != null : !this$ruleId.equals(other$ruleId)) {
×
1256
                return false;
×
1257
            }
1258
            final java.lang.Object this$ruleIndex = this.getRuleIndex();
×
1259
            final java.lang.Object other$ruleIndex = other.getRuleIndex();
×
1260
            if (this$ruleIndex == null ? other$ruleIndex != null : !this$ruleIndex.equals(other$ruleIndex)) {
×
1261
                return false;
×
1262
            }
1263
            final java.lang.Object this$message = this.getMessage();
×
1264
            final java.lang.Object other$message = other.getMessage();
×
1265
            if (this$message == null ? other$message != null : !this$message.equals(other$message)) {
×
1266
                return false;
×
1267
            }
1268
            final Object this$level = this.getLevel();
×
1269
            final Object other$level = other.getLevel();
×
1270
            if (this$level == null ? other$level != null : !this$level.equals(other$level)) {
×
1271
                return false;
×
1272
            }
1273
            final java.lang.Object this$locations = this.getLocations();
×
1274
            final java.lang.Object other$locations = other.getLocations();
×
1275
            if (this$locations == null ? other$locations != null : !this$locations.equals(other$locations)) {
×
1276
                return false;
×
1277
            }
1278
            final java.lang.Object this$properties = this.getProperties();
×
1279
            final java.lang.Object other$properties = other.getProperties();
×
1280
            if (this$properties == null ? other$properties != null : !this$properties.equals(other$properties)) {
×
1281
                return false;
×
1282
            }
1283
            return true;
×
1284
        }
1285

1286
        @java.lang.SuppressWarnings("all")
1287
        protected boolean canEqual(final java.lang.Object other) {
1288
            return other instanceof SarifLog.Result;
×
1289
        }
1290

1291
        @java.lang.Override
1292
        @java.lang.SuppressWarnings("all")
1293
        public int hashCode() {
1294
            final int PRIME = 59;
×
1295
            int result = 1;
×
1296
            final java.lang.Object $ruleId = this.getRuleId();
×
1297
            result = result * PRIME + ($ruleId == null ? 43 : $ruleId.hashCode());
×
1298
            final java.lang.Object $ruleIndex = this.getRuleIndex();
×
1299
            result = result * PRIME + ($ruleIndex == null ? 43 : $ruleIndex.hashCode());
×
1300
            final java.lang.Object $message = this.getMessage();
×
1301
            result = result * PRIME + ($message == null ? 43 : $message.hashCode());
×
1302
            final Object $level = this.getLevel();
×
1303
            result = result * PRIME + ($level == null ? 43 : $level.hashCode());
×
1304
            final java.lang.Object $locations = this.getLocations();
×
1305
            result = result * PRIME + ($locations == null ? 43 : $locations.hashCode());
×
1306
            final java.lang.Object $properties = this.getProperties();
×
1307
            result = result * PRIME + ($properties == null ? 43 : $properties.hashCode());
×
1308
            return result;
×
1309
        }
1310

1311
        @java.lang.Override
1312
        @java.lang.SuppressWarnings("all")
1313
        public java.lang.String toString() {
1314
            return "SarifLog.Result(ruleId=" + this.getRuleId() + ", ruleIndex=" + this.getRuleIndex() + ", message=" + this.getMessage() + ", level=" + this.getLevel() + ", locations=" + this.getLocations() + ", properties=" + this.getProperties() + ")";
×
1315
        }
1316
    }
1317

1318

1319
    /**
1320
     * Encapsulates a message intended to be read by the end user.
1321
     */
1322
    public static class Message {
1323
        /**
1324
         * A plain text message string.
1325
         */
1326
        private String text;
1327
        /**
1328
         * A Markdown message string.
1329
         */
1330
        private String markdown;
1331
        /**
1332
         * The identifier for this message.
1333
         */
1334
        private String id;
1335

1336
        @java.lang.SuppressWarnings("all")
1337
        Message(final String text, final String markdown, final String id) {
1✔
1338
            this.text = text;
1✔
1339
            this.markdown = markdown;
1✔
1340
            this.id = id;
1✔
1341
        }
1✔
1342

1343

1344
        @java.lang.SuppressWarnings("all")
1345
        public static class MessageBuilder {
1346
            @java.lang.SuppressWarnings("all")
1347
            private String text;
1348
            @java.lang.SuppressWarnings("all")
1349
            private String markdown;
1350
            @java.lang.SuppressWarnings("all")
1351
            private String id;
1352

1353
            @java.lang.SuppressWarnings("all")
1354
            MessageBuilder() {
1✔
1355
            }
1✔
1356

1357
            /**
1358
             * A plain text message string.
1359
             * @return {@code this}.
1360
             */
1361
            @java.lang.SuppressWarnings("all")
1362
            public SarifLog.Message.MessageBuilder text(final String text) {
1363
                this.text = text;
1✔
1364
                return this;
1✔
1365
            }
1366

1367
            /**
1368
             * A Markdown message string.
1369
             * @return {@code this}.
1370
             */
1371
            @java.lang.SuppressWarnings("all")
1372
            public SarifLog.Message.MessageBuilder markdown(final String markdown) {
1373
                this.markdown = markdown;
×
1374
                return this;
×
1375
            }
1376

1377
            /**
1378
             * The identifier for this message.
1379
             * @return {@code this}.
1380
             */
1381
            @java.lang.SuppressWarnings("all")
1382
            public SarifLog.Message.MessageBuilder id(final String id) {
1383
                this.id = id;
×
1384
                return this;
×
1385
            }
1386

1387
            @java.lang.SuppressWarnings("all")
1388
            public SarifLog.Message build() {
1389
                return new SarifLog.Message(this.text, this.markdown, this.id);
1✔
1390
            }
1391

1392
            @java.lang.Override
1393
            @java.lang.SuppressWarnings("all")
1394
            public java.lang.String toString() {
1395
                return "SarifLog.Message.MessageBuilder(text=" + this.text + ", markdown=" + this.markdown + ", id=" + this.id + ")";
×
1396
            }
1397
        }
1398

1399
        @java.lang.SuppressWarnings("all")
1400
        public static SarifLog.Message.MessageBuilder builder() {
1401
            return new SarifLog.Message.MessageBuilder();
1✔
1402
        }
1403

1404
        /**
1405
         * A plain text message string.
1406
         */
1407
        @java.lang.SuppressWarnings("all")
1408
        public String getText() {
1409
            return this.text;
×
1410
        }
1411

1412
        /**
1413
         * A Markdown message string.
1414
         */
1415
        @java.lang.SuppressWarnings("all")
1416
        public String getMarkdown() {
1417
            return this.markdown;
×
1418
        }
1419

1420
        /**
1421
         * The identifier for this message.
1422
         */
1423
        @java.lang.SuppressWarnings("all")
1424
        public String getId() {
1425
            return this.id;
×
1426
        }
1427

1428
        /**
1429
         * A plain text message string.
1430
         * @return {@code this}.
1431
         */
1432
        @java.lang.SuppressWarnings("all")
1433
        public SarifLog.Message setText(final String text) {
1434
            this.text = text;
×
1435
            return this;
×
1436
        }
1437

1438
        /**
1439
         * A Markdown message string.
1440
         * @return {@code this}.
1441
         */
1442
        @java.lang.SuppressWarnings("all")
1443
        public SarifLog.Message setMarkdown(final String markdown) {
1444
            this.markdown = markdown;
×
1445
            return this;
×
1446
        }
1447

1448
        /**
1449
         * The identifier for this message.
1450
         * @return {@code this}.
1451
         */
1452
        @java.lang.SuppressWarnings("all")
1453
        public SarifLog.Message setId(final String id) {
1454
            this.id = id;
×
1455
            return this;
×
1456
        }
1457

1458
        @java.lang.Override
1459
        @java.lang.SuppressWarnings("all")
1460
        public boolean equals(final java.lang.Object o) {
1461
            if (o == this) {
×
1462
                return true;
×
1463
            }
1464
            if (!(o instanceof SarifLog.Message)) {
×
1465
                return false;
×
1466
            }
1467
            final SarifLog.Message other = (SarifLog.Message) o;
×
1468
            if (!other.canEqual((java.lang.Object) this)) {
×
1469
                return false;
×
1470
            }
1471
            final java.lang.Object this$text = this.getText();
×
1472
            final java.lang.Object other$text = other.getText();
×
1473
            if (this$text == null ? other$text != null : !this$text.equals(other$text)) {
×
1474
                return false;
×
1475
            }
1476
            final java.lang.Object this$markdown = this.getMarkdown();
×
1477
            final java.lang.Object other$markdown = other.getMarkdown();
×
1478
            if (this$markdown == null ? other$markdown != null : !this$markdown.equals(other$markdown)) {
×
1479
                return false;
×
1480
            }
1481
            final java.lang.Object this$id = this.getId();
×
1482
            final java.lang.Object other$id = other.getId();
×
1483
            if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
×
1484
                return false;
×
1485
            }
1486
            return true;
×
1487
        }
1488

1489
        @java.lang.SuppressWarnings("all")
1490
        protected boolean canEqual(final java.lang.Object other) {
1491
            return other instanceof SarifLog.Message;
×
1492
        }
1493

1494
        @java.lang.Override
1495
        @java.lang.SuppressWarnings("all")
1496
        public int hashCode() {
1497
            final int PRIME = 59;
×
1498
            int result = 1;
×
1499
            final java.lang.Object $text = this.getText();
×
1500
            result = result * PRIME + ($text == null ? 43 : $text.hashCode());
×
1501
            final java.lang.Object $markdown = this.getMarkdown();
×
1502
            result = result * PRIME + ($markdown == null ? 43 : $markdown.hashCode());
×
1503
            final java.lang.Object $id = this.getId();
×
1504
            result = result * PRIME + ($id == null ? 43 : $id.hashCode());
×
1505
            return result;
×
1506
        }
1507

1508
        @java.lang.Override
1509
        @java.lang.SuppressWarnings("all")
1510
        public java.lang.String toString() {
1511
            return "SarifLog.Message(text=" + this.getText() + ", markdown=" + this.getMarkdown() + ", id=" + this.getId() + ")";
×
1512
        }
1513
    }
1514

1515

1516
    /**
1517
     * Describes a single run of an analysis tool, and contains the reported output of that run.
1518
     */
1519
    public static class Run {
1520
        /**
1521
         * Information about the tool or tool pipeline that generated the results in this run. A run can only contain
1522
         * results produced by a single tool or tool pipeline. A run can aggregate results from multiple log files, as long
1523
         * as context around the tool run (tool command-line arguments and the like) is identical for all aggregated files.
1524
         */
1525
        private Tool tool;
1526
        /**
1527
         * The set of results contained in an SARIF log. The results array can be omitted when a run is solely exporting
1528
         * rules metadata. It must be present (but may be empty) if a log file represents an actual scan.
1529
         */
1530
        private List<Result> results;
1531
        /**
1532
         * The set of invocations providing information about the tool execution such as configuration errors or runtime
1533
         * exceptions
1534
         */
1535
        private List<Invocation> invocations;
1536

1537
        @java.lang.SuppressWarnings("all")
1538
        Run(final Tool tool, final List<Result> results, final List<Invocation> invocations) {
1✔
1539
            this.tool = tool;
1✔
1540
            this.results = results;
1✔
1541
            this.invocations = invocations;
1✔
1542
        }
1✔
1543

1544

1545
        @java.lang.SuppressWarnings("all")
1546
        public static class RunBuilder {
1547
            @java.lang.SuppressWarnings("all")
1548
            private Tool tool;
1549
            @java.lang.SuppressWarnings("all")
1550
            private java.util.ArrayList<Result> results;
1551
            @java.lang.SuppressWarnings("all")
1552
            private List<Invocation> invocations;
1553

1554
            @java.lang.SuppressWarnings("all")
1555
            RunBuilder() {
1✔
1556
            }
1✔
1557

1558
            /**
1559
             * Information about the tool or tool pipeline that generated the results in this run. A run can only contain
1560
             * results produced by a single tool or tool pipeline. A run can aggregate results from multiple log files, as long
1561
             * as context around the tool run (tool command-line arguments and the like) is identical for all aggregated files.
1562
             * @return {@code this}.
1563
             */
1564
            @java.lang.SuppressWarnings("all")
1565
            public SarifLog.Run.RunBuilder tool(final Tool tool) {
1566
                this.tool = tool;
1✔
1567
                return this;
1✔
1568
            }
1569

1570
            @java.lang.SuppressWarnings("all")
1571
            public SarifLog.Run.RunBuilder result(final Result result) {
1572
                if (this.results == null) {
×
1573
                    this.results = new java.util.ArrayList<Result>();
×
1574
                }
1575
                this.results.add(result);
×
1576
                return this;
×
1577
            }
1578

1579
            @java.lang.SuppressWarnings("all")
1580
            public SarifLog.Run.RunBuilder results(final java.util.Collection<? extends Result> results) {
1581
                if (results == null) {
1!
1582
                    throw new java.lang.NullPointerException("results cannot be null");
×
1583
                }
1584
                if (this.results == null) {
1!
1585
                    this.results = new java.util.ArrayList<Result>();
1✔
1586
                }
1587
                this.results.addAll(results);
1✔
1588
                return this;
1✔
1589
            }
1590

1591
            @java.lang.SuppressWarnings("all")
1592
            public SarifLog.Run.RunBuilder clearResults() {
1593
                if (this.results != null) {
×
1594
                    this.results.clear();
×
1595
                }
1596
                return this;
×
1597
            }
1598

1599
            /**
1600
             * The set of invocations providing information about the tool execution such as configuration errors or runtime
1601
             * exceptions
1602
             * @return {@code this}.
1603
             */
1604
            @java.lang.SuppressWarnings("all")
1605
            public SarifLog.Run.RunBuilder invocations(final List<Invocation> invocations) {
1606
                this.invocations = invocations;
1✔
1607
                return this;
1✔
1608
            }
1609

1610
            @java.lang.SuppressWarnings("all")
1611
            public SarifLog.Run build() {
1612
                java.util.List<Result> results;
1613
                switch (this.results == null ? 0 : this.results.size()) {
1!
1614
                case 0:
1615
                    results = java.util.Collections.emptyList();
1✔
1616
                    break;
1✔
1617
                case 1:
1618
                    results = java.util.Collections.singletonList(this.results.get(0));
1✔
1619
                    break;
1✔
1620
                default:
1621
                    results = java.util.Collections.unmodifiableList(new java.util.ArrayList<Result>(this.results));
1✔
1622
                }
1623
                return new SarifLog.Run(this.tool, results, this.invocations);
1✔
1624
            }
1625

1626
            @java.lang.Override
1627
            @java.lang.SuppressWarnings("all")
1628
            public java.lang.String toString() {
1629
                return "SarifLog.Run.RunBuilder(tool=" + this.tool + ", results=" + this.results + ", invocations=" + this.invocations + ")";
×
1630
            }
1631
        }
1632

1633
        @java.lang.SuppressWarnings("all")
1634
        public static SarifLog.Run.RunBuilder builder() {
1635
            return new SarifLog.Run.RunBuilder();
1✔
1636
        }
1637

1638
        /**
1639
         * Information about the tool or tool pipeline that generated the results in this run. A run can only contain
1640
         * results produced by a single tool or tool pipeline. A run can aggregate results from multiple log files, as long
1641
         * as context around the tool run (tool command-line arguments and the like) is identical for all aggregated files.
1642
         */
1643
        @java.lang.SuppressWarnings("all")
1644
        public Tool getTool() {
1645
            return this.tool;
×
1646
        }
1647

1648
        /**
1649
         * The set of results contained in an SARIF log. The results array can be omitted when a run is solely exporting
1650
         * rules metadata. It must be present (but may be empty) if a log file represents an actual scan.
1651
         */
1652
        @java.lang.SuppressWarnings("all")
1653
        public List<Result> getResults() {
1654
            return this.results;
×
1655
        }
1656

1657
        /**
1658
         * The set of invocations providing information about the tool execution such as configuration errors or runtime
1659
         * exceptions
1660
         */
1661
        @java.lang.SuppressWarnings("all")
1662
        public List<Invocation> getInvocations() {
1663
            return this.invocations;
×
1664
        }
1665

1666
        /**
1667
         * Information about the tool or tool pipeline that generated the results in this run. A run can only contain
1668
         * results produced by a single tool or tool pipeline. A run can aggregate results from multiple log files, as long
1669
         * as context around the tool run (tool command-line arguments and the like) is identical for all aggregated files.
1670
         * @return {@code this}.
1671
         */
1672
        @java.lang.SuppressWarnings("all")
1673
        public SarifLog.Run setTool(final Tool tool) {
1674
            this.tool = tool;
×
1675
            return this;
×
1676
        }
1677

1678
        /**
1679
         * The set of results contained in an SARIF log. The results array can be omitted when a run is solely exporting
1680
         * rules metadata. It must be present (but may be empty) if a log file represents an actual scan.
1681
         * @return {@code this}.
1682
         */
1683
        @java.lang.SuppressWarnings("all")
1684
        public SarifLog.Run setResults(final List<Result> results) {
1685
            this.results = results;
×
1686
            return this;
×
1687
        }
1688

1689
        /**
1690
         * The set of invocations providing information about the tool execution such as configuration errors or runtime
1691
         * exceptions
1692
         * @return {@code this}.
1693
         */
1694
        @java.lang.SuppressWarnings("all")
1695
        public SarifLog.Run setInvocations(final List<Invocation> invocations) {
1696
            this.invocations = invocations;
×
1697
            return this;
×
1698
        }
1699

1700
        @java.lang.Override
1701
        @java.lang.SuppressWarnings("all")
1702
        public boolean equals(final java.lang.Object o) {
1703
            if (o == this) {
×
1704
                return true;
×
1705
            }
1706
            if (!(o instanceof SarifLog.Run)) {
×
1707
                return false;
×
1708
            }
1709
            final SarifLog.Run other = (SarifLog.Run) o;
×
1710
            if (!other.canEqual((java.lang.Object) this)) {
×
1711
                return false;
×
1712
            }
1713
            final java.lang.Object this$tool = this.getTool();
×
1714
            final java.lang.Object other$tool = other.getTool();
×
1715
            if (this$tool == null ? other$tool != null : !this$tool.equals(other$tool)) {
×
1716
                return false;
×
1717
            }
1718
            final java.lang.Object this$results = this.getResults();
×
1719
            final java.lang.Object other$results = other.getResults();
×
1720
            if (this$results == null ? other$results != null : !this$results.equals(other$results)) {
×
1721
                return false;
×
1722
            }
1723
            final java.lang.Object this$invocations = this.getInvocations();
×
1724
            final java.lang.Object other$invocations = other.getInvocations();
×
1725
            if (this$invocations == null ? other$invocations != null : !this$invocations.equals(other$invocations)) {
×
1726
                return false;
×
1727
            }
1728
            return true;
×
1729
        }
1730

1731
        @java.lang.SuppressWarnings("all")
1732
        protected boolean canEqual(final java.lang.Object other) {
1733
            return other instanceof SarifLog.Run;
×
1734
        }
1735

1736
        @java.lang.Override
1737
        @java.lang.SuppressWarnings("all")
1738
        public int hashCode() {
1739
            final int PRIME = 59;
×
1740
            int result = 1;
×
1741
            final java.lang.Object $tool = this.getTool();
×
1742
            result = result * PRIME + ($tool == null ? 43 : $tool.hashCode());
×
1743
            final java.lang.Object $results = this.getResults();
×
1744
            result = result * PRIME + ($results == null ? 43 : $results.hashCode());
×
1745
            final java.lang.Object $invocations = this.getInvocations();
×
1746
            result = result * PRIME + ($invocations == null ? 43 : $invocations.hashCode());
×
1747
            return result;
×
1748
        }
1749

1750
        @java.lang.Override
1751
        @java.lang.SuppressWarnings("all")
1752
        public java.lang.String toString() {
1753
            return "SarifLog.Run(tool=" + this.getTool() + ", results=" + this.getResults() + ", invocations=" + this.getInvocations() + ")";
×
1754
        }
1755
    }
1756

1757

1758
    /**
1759
     * The analysis tool that was run.
1760
     */
1761
    public static class Tool {
1762
        /**
1763
         * The analysis tool that was run.
1764
         */
1765
        private Component driver;
1766

1767
        @java.lang.SuppressWarnings("all")
1768
        Tool(final Component driver) {
1✔
1769
            this.driver = driver;
1✔
1770
        }
1✔
1771

1772

1773
        @java.lang.SuppressWarnings("all")
1774
        public static class ToolBuilder {
1775
            @java.lang.SuppressWarnings("all")
1776
            private Component driver;
1777

1778
            @java.lang.SuppressWarnings("all")
1779
            ToolBuilder() {
1✔
1780
            }
1✔
1781

1782
            /**
1783
             * The analysis tool that was run.
1784
             * @return {@code this}.
1785
             */
1786
            @java.lang.SuppressWarnings("all")
1787
            public SarifLog.Tool.ToolBuilder driver(final Component driver) {
1788
                this.driver = driver;
1✔
1789
                return this;
1✔
1790
            }
1791

1792
            @java.lang.SuppressWarnings("all")
1793
            public SarifLog.Tool build() {
1794
                return new SarifLog.Tool(this.driver);
1✔
1795
            }
1796

1797
            @java.lang.Override
1798
            @java.lang.SuppressWarnings("all")
1799
            public java.lang.String toString() {
1800
                return "SarifLog.Tool.ToolBuilder(driver=" + this.driver + ")";
×
1801
            }
1802
        }
1803

1804
        @java.lang.SuppressWarnings("all")
1805
        public static SarifLog.Tool.ToolBuilder builder() {
1806
            return new SarifLog.Tool.ToolBuilder();
1✔
1807
        }
1808

1809
        /**
1810
         * The analysis tool that was run.
1811
         */
1812
        @java.lang.SuppressWarnings("all")
1813
        public Component getDriver() {
1814
            return this.driver;
×
1815
        }
1816

1817
        /**
1818
         * The analysis tool that was run.
1819
         * @return {@code this}.
1820
         */
1821
        @java.lang.SuppressWarnings("all")
1822
        public SarifLog.Tool setDriver(final Component driver) {
1823
            this.driver = driver;
×
1824
            return this;
×
1825
        }
1826

1827
        @java.lang.Override
1828
        @java.lang.SuppressWarnings("all")
1829
        public boolean equals(final java.lang.Object o) {
1830
            if (o == this) {
×
1831
                return true;
×
1832
            }
1833
            if (!(o instanceof SarifLog.Tool)) {
×
1834
                return false;
×
1835
            }
1836
            final SarifLog.Tool other = (SarifLog.Tool) o;
×
1837
            if (!other.canEqual((java.lang.Object) this)) {
×
1838
                return false;
×
1839
            }
1840
            final java.lang.Object this$driver = this.getDriver();
×
1841
            final java.lang.Object other$driver = other.getDriver();
×
1842
            if (this$driver == null ? other$driver != null : !this$driver.equals(other$driver)) {
×
1843
                return false;
×
1844
            }
1845
            return true;
×
1846
        }
1847

1848
        @java.lang.SuppressWarnings("all")
1849
        protected boolean canEqual(final java.lang.Object other) {
1850
            return other instanceof SarifLog.Tool;
×
1851
        }
1852

1853
        @java.lang.Override
1854
        @java.lang.SuppressWarnings("all")
1855
        public int hashCode() {
1856
            final int PRIME = 59;
×
1857
            int result = 1;
×
1858
            final java.lang.Object $driver = this.getDriver();
×
1859
            result = result * PRIME + ($driver == null ? 43 : $driver.hashCode());
×
1860
            return result;
×
1861
        }
1862

1863
        @java.lang.Override
1864
        @java.lang.SuppressWarnings("all")
1865
        public java.lang.String toString() {
1866
            return "SarifLog.Tool(driver=" + this.getDriver() + ")";
×
1867
        }
1868
    }
1869

1870

1871
    /**
1872
     * A component, such as a plug-in or the driver, of the analysis tool that was run.
1873
     */
1874
    public static class Component {
1875
        /**
1876
         * The name of the tool component.
1877
         */
1878
        private String name;
1879
        /**
1880
         * The tool component version, in whatever format the component natively provides.
1881
         */
1882
        private String version;
1883
        /**
1884
         * The absolute URI at which information about this version of the tool component can be found.
1885
         */
1886
        private String informationUri;
1887
        /**
1888
         * An array of reportingDescriptor objects relevant to the analysis performed by the tool component.
1889
         */
1890
        private List<ReportingDescriptor> rules;
1891

1892
        @java.lang.SuppressWarnings("all")
1893
        Component(final String name, final String version, final String informationUri, final List<ReportingDescriptor> rules) {
1✔
1894
            this.name = name;
1✔
1895
            this.version = version;
1✔
1896
            this.informationUri = informationUri;
1✔
1897
            this.rules = rules;
1✔
1898
        }
1✔
1899

1900

1901
        @java.lang.SuppressWarnings("all")
1902
        public static class ComponentBuilder {
1903
            @java.lang.SuppressWarnings("all")
1904
            private String name;
1905
            @java.lang.SuppressWarnings("all")
1906
            private String version;
1907
            @java.lang.SuppressWarnings("all")
1908
            private String informationUri;
1909
            @java.lang.SuppressWarnings("all")
1910
            private List<ReportingDescriptor> rules;
1911

1912
            @java.lang.SuppressWarnings("all")
1913
            ComponentBuilder() {
1✔
1914
            }
1✔
1915

1916
            /**
1917
             * The name of the tool component.
1918
             * @return {@code this}.
1919
             */
1920
            @java.lang.SuppressWarnings("all")
1921
            public SarifLog.Component.ComponentBuilder name(final String name) {
1922
                this.name = name;
1✔
1923
                return this;
1✔
1924
            }
1925

1926
            /**
1927
             * The tool component version, in whatever format the component natively provides.
1928
             * @return {@code this}.
1929
             */
1930
            @java.lang.SuppressWarnings("all")
1931
            public SarifLog.Component.ComponentBuilder version(final String version) {
1932
                this.version = version;
1✔
1933
                return this;
1✔
1934
            }
1935

1936
            /**
1937
             * The absolute URI at which information about this version of the tool component can be found.
1938
             * @return {@code this}.
1939
             */
1940
            @java.lang.SuppressWarnings("all")
1941
            public SarifLog.Component.ComponentBuilder informationUri(final String informationUri) {
1942
                this.informationUri = informationUri;
1✔
1943
                return this;
1✔
1944
            }
1945

1946
            /**
1947
             * An array of reportingDescriptor objects relevant to the analysis performed by the tool component.
1948
             * @return {@code this}.
1949
             */
1950
            @java.lang.SuppressWarnings("all")
1951
            public SarifLog.Component.ComponentBuilder rules(final List<ReportingDescriptor> rules) {
1952
                this.rules = rules;
1✔
1953
                return this;
1✔
1954
            }
1955

1956
            @java.lang.SuppressWarnings("all")
1957
            public SarifLog.Component build() {
1958
                return new SarifLog.Component(this.name, this.version, this.informationUri, this.rules);
1✔
1959
            }
1960

1961
            @java.lang.Override
1962
            @java.lang.SuppressWarnings("all")
1963
            public java.lang.String toString() {
1964
                return "SarifLog.Component.ComponentBuilder(name=" + this.name + ", version=" + this.version + ", informationUri=" + this.informationUri + ", rules=" + this.rules + ")";
×
1965
            }
1966
        }
1967

1968
        @java.lang.SuppressWarnings("all")
1969
        public static SarifLog.Component.ComponentBuilder builder() {
1970
            return new SarifLog.Component.ComponentBuilder();
1✔
1971
        }
1972

1973
        @java.lang.SuppressWarnings("all")
1974
        public SarifLog.Component.ComponentBuilder toBuilder() {
1975
            return new SarifLog.Component.ComponentBuilder().name(this.name).version(this.version).informationUri(this.informationUri).rules(this.rules);
1✔
1976
        }
1977

1978
        /**
1979
         * The name of the tool component.
1980
         */
1981
        @java.lang.SuppressWarnings("all")
1982
        public String getName() {
1983
            return this.name;
×
1984
        }
1985

1986
        /**
1987
         * The tool component version, in whatever format the component natively provides.
1988
         */
1989
        @java.lang.SuppressWarnings("all")
1990
        public String getVersion() {
1991
            return this.version;
×
1992
        }
1993

1994
        /**
1995
         * The absolute URI at which information about this version of the tool component can be found.
1996
         */
1997
        @java.lang.SuppressWarnings("all")
1998
        public String getInformationUri() {
1999
            return this.informationUri;
×
2000
        }
2001

2002
        /**
2003
         * An array of reportingDescriptor objects relevant to the analysis performed by the tool component.
2004
         */
2005
        @java.lang.SuppressWarnings("all")
2006
        public List<ReportingDescriptor> getRules() {
2007
            return this.rules;
×
2008
        }
2009

2010
        /**
2011
         * The name of the tool component.
2012
         * @return {@code this}.
2013
         */
2014
        @java.lang.SuppressWarnings("all")
2015
        public SarifLog.Component setName(final String name) {
2016
            this.name = name;
×
2017
            return this;
×
2018
        }
2019

2020
        /**
2021
         * The tool component version, in whatever format the component natively provides.
2022
         * @return {@code this}.
2023
         */
2024
        @java.lang.SuppressWarnings("all")
2025
        public SarifLog.Component setVersion(final String version) {
2026
            this.version = version;
×
2027
            return this;
×
2028
        }
2029

2030
        /**
2031
         * The absolute URI at which information about this version of the tool component can be found.
2032
         * @return {@code this}.
2033
         */
2034
        @java.lang.SuppressWarnings("all")
2035
        public SarifLog.Component setInformationUri(final String informationUri) {
2036
            this.informationUri = informationUri;
×
2037
            return this;
×
2038
        }
2039

2040
        /**
2041
         * An array of reportingDescriptor objects relevant to the analysis performed by the tool component.
2042
         * @return {@code this}.
2043
         */
2044
        @java.lang.SuppressWarnings("all")
2045
        public SarifLog.Component setRules(final List<ReportingDescriptor> rules) {
2046
            this.rules = rules;
×
2047
            return this;
×
2048
        }
2049

2050
        @java.lang.Override
2051
        @java.lang.SuppressWarnings("all")
2052
        public boolean equals(final java.lang.Object o) {
2053
            if (o == this) {
×
2054
                return true;
×
2055
            }
2056
            if (!(o instanceof SarifLog.Component)) {
×
2057
                return false;
×
2058
            }
2059
            final SarifLog.Component other = (SarifLog.Component) o;
×
2060
            if (!other.canEqual((java.lang.Object) this)) {
×
2061
                return false;
×
2062
            }
2063
            final java.lang.Object this$name = this.getName();
×
2064
            final java.lang.Object other$name = other.getName();
×
2065
            if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
×
2066
                return false;
×
2067
            }
2068
            final java.lang.Object this$version = this.getVersion();
×
2069
            final java.lang.Object other$version = other.getVersion();
×
2070
            if (this$version == null ? other$version != null : !this$version.equals(other$version)) {
×
2071
                return false;
×
2072
            }
2073
            final java.lang.Object this$informationUri = this.getInformationUri();
×
2074
            final java.lang.Object other$informationUri = other.getInformationUri();
×
2075
            if (this$informationUri == null ? other$informationUri != null : !this$informationUri.equals(other$informationUri)) {
×
2076
                return false;
×
2077
            }
2078
            final java.lang.Object this$rules = this.getRules();
×
2079
            final java.lang.Object other$rules = other.getRules();
×
2080
            if (this$rules == null ? other$rules != null : !this$rules.equals(other$rules)) {
×
2081
                return false;
×
2082
            }
2083
            return true;
×
2084
        }
2085

2086
        @java.lang.SuppressWarnings("all")
2087
        protected boolean canEqual(final java.lang.Object other) {
2088
            return other instanceof SarifLog.Component;
×
2089
        }
2090

2091
        @java.lang.Override
2092
        @java.lang.SuppressWarnings("all")
2093
        public int hashCode() {
2094
            final int PRIME = 59;
×
2095
            int result = 1;
×
2096
            final java.lang.Object $name = this.getName();
×
2097
            result = result * PRIME + ($name == null ? 43 : $name.hashCode());
×
2098
            final java.lang.Object $version = this.getVersion();
×
2099
            result = result * PRIME + ($version == null ? 43 : $version.hashCode());
×
2100
            final java.lang.Object $informationUri = this.getInformationUri();
×
2101
            result = result * PRIME + ($informationUri == null ? 43 : $informationUri.hashCode());
×
2102
            final java.lang.Object $rules = this.getRules();
×
2103
            result = result * PRIME + ($rules == null ? 43 : $rules.hashCode());
×
2104
            return result;
×
2105
        }
2106

2107
        @java.lang.Override
2108
        @java.lang.SuppressWarnings("all")
2109
        public java.lang.String toString() {
2110
            return "SarifLog.Component(name=" + this.getName() + ", version=" + this.getVersion() + ", informationUri=" + this.getInformationUri() + ", rules=" + this.getRules() + ")";
×
2111
        }
2112
    }
2113

2114

2115
    /**
2116
     * Metadata that describes a specific report produced by the tool, as part of the analysis it provides or its runtime
2117
     * reporting.
2118
     */
2119
    public static class ReportingDescriptor {
2120
        /**
2121
         * A stable, opaque identifier for the report.
2122
         */
2123
        private String id;
2124
        /**
2125
         * A report identifier that is understandable to an end user.
2126
         */
2127
        private String name;
2128
        /**
2129
         * A concise description of the report. Should be a single sentence that is understandable when visible space is
2130
         * limited to a single line of text.
2131
         */
2132
        private MultiformatMessage shortDescription;
2133
        /**
2134
         * A description of the report. Should, as far as possible, provide details sufficient to enable resolution of any
2135
         * problem indicated by the result.
2136
         */
2137
        private MultiformatMessage fullDescription;
2138
        /**
2139
         * A set of name/value pairs with arbitrary names. Each value is a multiformatMessageString object, which holds
2140
         * message strings in plain text and (optionally) Markdown format. The strings can include placeholders, which can
2141
         * be used to construct a message in combination with an arbitrary number of additional string arguments.
2142
         */
2143
        private MultiformatMessage messageStrings;
2144
        /**
2145
         * A URI where the primary documentation for the report can be found.
2146
         */
2147
        private String helpUri;
2148
        /**
2149
         * Provides the primary documentation for the report, useful when there is no online documentation.
2150
         */
2151
        private MultiformatMessage help;
2152
        /**
2153
         * Key/value pairs that provide additional information about the report.
2154
         */
2155
        private PropertyBag properties;
2156
        /**
2157
         * The default configuration of a rule, can contain a default level and other properties.
2158
         */
2159
        private ReportingConfiguration defaultConfiguration;
2160

2161
        @java.lang.SuppressWarnings("all")
2162
        ReportingDescriptor(final String id, final String name, final MultiformatMessage shortDescription, final MultiformatMessage fullDescription, final MultiformatMessage messageStrings, final String helpUri, final MultiformatMessage help, final PropertyBag properties, final ReportingConfiguration defaultConfiguration) {
1✔
2163
            this.id = id;
1✔
2164
            this.name = name;
1✔
2165
            this.shortDescription = shortDescription;
1✔
2166
            this.fullDescription = fullDescription;
1✔
2167
            this.messageStrings = messageStrings;
1✔
2168
            this.helpUri = helpUri;
1✔
2169
            this.help = help;
1✔
2170
            this.properties = properties;
1✔
2171
            this.defaultConfiguration = defaultConfiguration;
1✔
2172
        }
1✔
2173

2174

2175
        @java.lang.SuppressWarnings("all")
2176
        public static class ReportingDescriptorBuilder {
2177
            @java.lang.SuppressWarnings("all")
2178
            private String id;
2179
            @java.lang.SuppressWarnings("all")
2180
            private String name;
2181
            @java.lang.SuppressWarnings("all")
2182
            private MultiformatMessage shortDescription;
2183
            @java.lang.SuppressWarnings("all")
2184
            private MultiformatMessage fullDescription;
2185
            @java.lang.SuppressWarnings("all")
2186
            private MultiformatMessage messageStrings;
2187
            @java.lang.SuppressWarnings("all")
2188
            private String helpUri;
2189
            @java.lang.SuppressWarnings("all")
2190
            private MultiformatMessage help;
2191
            @java.lang.SuppressWarnings("all")
2192
            private PropertyBag properties;
2193
            @SuppressWarnings("all")
2194
            private ReportingConfiguration defaultConfiguration;
2195

2196
            @java.lang.SuppressWarnings("all")
2197
            ReportingDescriptorBuilder() {
1✔
2198
            }
1✔
2199

2200
            /**
2201
             * A stable, opaque identifier for the report.
2202
             * @return {@code this}.
2203
             */
2204
            @java.lang.SuppressWarnings("all")
2205
            public SarifLog.ReportingDescriptor.ReportingDescriptorBuilder id(final String id) {
2206
                this.id = id;
1✔
2207
                return this;
1✔
2208
            }
2209

2210
            /**
2211
             * A report identifier that is understandable to an end user.
2212
             * @return {@code this}.
2213
             */
2214
            @java.lang.SuppressWarnings("all")
2215
            public SarifLog.ReportingDescriptor.ReportingDescriptorBuilder name(final String name) {
2216
                this.name = name;
×
2217
                return this;
×
2218
            }
2219

2220
            /**
2221
             * A concise description of the report. Should be a single sentence that is understandable when visible space is
2222
             * limited to a single line of text.
2223
             * @return {@code this}.
2224
             */
2225
            @java.lang.SuppressWarnings("all")
2226
            public SarifLog.ReportingDescriptor.ReportingDescriptorBuilder shortDescription(final MultiformatMessage shortDescription) {
2227
                this.shortDescription = shortDescription;
1✔
2228
                return this;
1✔
2229
            }
2230

2231
            /**
2232
             * A description of the report. Should, as far as possible, provide details sufficient to enable resolution of any
2233
             * problem indicated by the result.
2234
             * @return {@code this}.
2235
             */
2236
            @java.lang.SuppressWarnings("all")
2237
            public SarifLog.ReportingDescriptor.ReportingDescriptorBuilder fullDescription(final MultiformatMessage fullDescription) {
2238
                this.fullDescription = fullDescription;
1✔
2239
                return this;
1✔
2240
            }
2241

2242
            /**
2243
             * A set of name/value pairs with arbitrary names. Each value is a multiformatMessageString object, which holds
2244
             * message strings in plain text and (optionally) Markdown format. The strings can include placeholders, which can
2245
             * be used to construct a message in combination with an arbitrary number of additional string arguments.
2246
             * @return {@code this}.
2247
             */
2248
            @java.lang.SuppressWarnings("all")
2249
            public SarifLog.ReportingDescriptor.ReportingDescriptorBuilder messageStrings(final MultiformatMessage messageStrings) {
2250
                this.messageStrings = messageStrings;
×
2251
                return this;
×
2252
            }
2253

2254
            /**
2255
             * A URI where the primary documentation for the report can be found.
2256
             * @return {@code this}.
2257
             */
2258
            @java.lang.SuppressWarnings("all")
2259
            public SarifLog.ReportingDescriptor.ReportingDescriptorBuilder helpUri(final String helpUri) {
2260
                this.helpUri = helpUri;
1✔
2261
                return this;
1✔
2262
            }
2263

2264
            /**
2265
             * Provides the primary documentation for the report, useful when there is no online documentation.
2266
             * @return {@code this}.
2267
             */
2268
            @java.lang.SuppressWarnings("all")
2269
            public SarifLog.ReportingDescriptor.ReportingDescriptorBuilder help(final MultiformatMessage help) {
2270
                this.help = help;
1✔
2271
                return this;
1✔
2272
            }
2273

2274
            /**
2275
             * Key/value pairs that provide additional information about the report.
2276
             * @return {@code this}.
2277
             */
2278
            @java.lang.SuppressWarnings("all")
2279
            public SarifLog.ReportingDescriptor.ReportingDescriptorBuilder properties(final PropertyBag properties) {
2280
                this.properties = properties;
1✔
2281
                return this;
1✔
2282
            }
2283

2284
            /**
2285
             * The default configuration of a rule, can contain a default level and other properties.
2286
             * @return {@code this}.
2287
             */
2288
            public SarifLog.ReportingDescriptor.ReportingDescriptorBuilder defaultConfiguration(final ReportingConfiguration defaultConfiguration) {
2289
                this.defaultConfiguration = defaultConfiguration;
1✔
2290
                return this;
1✔
2291
            }
2292

2293
            @java.lang.SuppressWarnings("all")
2294
            public SarifLog.ReportingDescriptor build() {
2295
                return new SarifLog.ReportingDescriptor(this.id, this.name, this.shortDescription, this.fullDescription, this.messageStrings, this.helpUri, this.help, this.properties, this.defaultConfiguration);
1✔
2296
            }
2297

2298
            @java.lang.Override
2299
            @java.lang.SuppressWarnings("all")
2300
            public java.lang.String toString() {
2301
                return "SarifLog.ReportingDescriptor.ReportingDescriptorBuilder(id=" + this.id + ", name=" + this.name + ", shortDescription=" + this.shortDescription + ", fullDescription=" + this.fullDescription + ", messageStrings=" + this.messageStrings + ", helpUri=" + this.helpUri + ", help=" + this.help + ", properties=" + this.properties + ", defaultConfiguration=" + this.defaultConfiguration + ")";
×
2302
            }
2303
        }
2304

2305
        @java.lang.SuppressWarnings("all")
2306
        public static SarifLog.ReportingDescriptor.ReportingDescriptorBuilder builder() {
2307
            return new SarifLog.ReportingDescriptor.ReportingDescriptorBuilder();
1✔
2308
        }
2309

2310
        /**
2311
         * A stable, opaque identifier for the report.
2312
         */
2313
        @java.lang.SuppressWarnings("all")
2314
        public String getId() {
2315
            return this.id;
1✔
2316
        }
2317

2318
        /**
2319
         * A report identifier that is understandable to an end user.
2320
         */
2321
        @java.lang.SuppressWarnings("all")
2322
        public String getName() {
2323
            return this.name;
1✔
2324
        }
2325

2326
        /**
2327
         * A concise description of the report. Should be a single sentence that is understandable when visible space is
2328
         * limited to a single line of text.
2329
         */
2330
        @java.lang.SuppressWarnings("all")
2331
        public MultiformatMessage getShortDescription() {
2332
            return this.shortDescription;
1✔
2333
        }
2334

2335
        /**
2336
         * A description of the report. Should, as far as possible, provide details sufficient to enable resolution of any
2337
         * problem indicated by the result.
2338
         */
2339
        @java.lang.SuppressWarnings("all")
2340
        public MultiformatMessage getFullDescription() {
2341
            return this.fullDescription;
1✔
2342
        }
2343

2344
        /**
2345
         * A set of name/value pairs with arbitrary names. Each value is a multiformatMessageString object, which holds
2346
         * message strings in plain text and (optionally) Markdown format. The strings can include placeholders, which can
2347
         * be used to construct a message in combination with an arbitrary number of additional string arguments.
2348
         */
2349
        @java.lang.SuppressWarnings("all")
2350
        public MultiformatMessage getMessageStrings() {
2351
            return this.messageStrings;
1✔
2352
        }
2353

2354
        /**
2355
         * A URI where the primary documentation for the report can be found.
2356
         */
2357
        @java.lang.SuppressWarnings("all")
2358
        public String getHelpUri() {
2359
            return this.helpUri;
1✔
2360
        }
2361

2362
        /**
2363
         * Provides the primary documentation for the report, useful when there is no online documentation.
2364
         */
2365
        @java.lang.SuppressWarnings("all")
2366
        public MultiformatMessage getHelp() {
2367
            return this.help;
1✔
2368
        }
2369

2370
        /**
2371
         * Key/value pairs that provide additional information about the report.
2372
         */
2373
        @java.lang.SuppressWarnings("all")
2374
        public PropertyBag getProperties() {
2375
            return this.properties;
1✔
2376
        }
2377

2378
        /**
2379
         * The default configuration of a rule, can contain a default level and other properties.
2380
         */
2381
        @SuppressWarnings("all")
2382
        public ReportingConfiguration getDefaultConfiguration() {
2383
            return this.defaultConfiguration;
1✔
2384
        }
2385

2386
        /**
2387
         * A stable, opaque identifier for the report.
2388
         * @return {@code this}.
2389
         */
2390
        @java.lang.SuppressWarnings("all")
2391
        public SarifLog.ReportingDescriptor setId(final String id) {
2392
            this.id = id;
×
2393
            return this;
×
2394
        }
2395

2396
        /**
2397
         * A report identifier that is understandable to an end user.
2398
         * @return {@code this}.
2399
         */
2400
        @java.lang.SuppressWarnings("all")
2401
        public SarifLog.ReportingDescriptor setName(final String name) {
2402
            this.name = name;
×
2403
            return this;
×
2404
        }
2405

2406
        /**
2407
         * A concise description of the report. Should be a single sentence that is understandable when visible space is
2408
         * limited to a single line of text.
2409
         * @return {@code this}.
2410
         */
2411
        @java.lang.SuppressWarnings("all")
2412
        public SarifLog.ReportingDescriptor setShortDescription(final MultiformatMessage shortDescription) {
2413
            this.shortDescription = shortDescription;
×
2414
            return this;
×
2415
        }
2416

2417
        /**
2418
         * A description of the report. Should, as far as possible, provide details sufficient to enable resolution of any
2419
         * problem indicated by the result.
2420
         * @return {@code this}.
2421
         */
2422
        @java.lang.SuppressWarnings("all")
2423
        public SarifLog.ReportingDescriptor setFullDescription(final MultiformatMessage fullDescription) {
2424
            this.fullDescription = fullDescription;
×
2425
            return this;
×
2426
        }
2427

2428
        /**
2429
         * A set of name/value pairs with arbitrary names. Each value is a multiformatMessageString object, which holds
2430
         * message strings in plain text and (optionally) Markdown format. The strings can include placeholders, which can
2431
         * be used to construct a message in combination with an arbitrary number of additional string arguments.
2432
         * @return {@code this}.
2433
         */
2434
        @java.lang.SuppressWarnings("all")
2435
        public SarifLog.ReportingDescriptor setMessageStrings(final MultiformatMessage messageStrings) {
2436
            this.messageStrings = messageStrings;
×
2437
            return this;
×
2438
        }
2439

2440
        /**
2441
         * A URI where the primary documentation for the report can be found.
2442
         * @return {@code this}.
2443
         */
2444
        @java.lang.SuppressWarnings("all")
2445
        public SarifLog.ReportingDescriptor setHelpUri(final String helpUri) {
2446
            this.helpUri = helpUri;
×
2447
            return this;
×
2448
        }
2449

2450
        /**
2451
         * Provides the primary documentation for the report, useful when there is no online documentation.
2452
         * @return {@code this}.
2453
         */
2454
        @java.lang.SuppressWarnings("all")
2455
        public SarifLog.ReportingDescriptor setHelp(final MultiformatMessage help) {
2456
            this.help = help;
×
2457
            return this;
×
2458
        }
2459

2460
        /**
2461
         * Key/value pairs that provide additional information about the report.
2462
         * @return {@code this}.
2463
         */
2464
        @java.lang.SuppressWarnings("all")
2465
        public SarifLog.ReportingDescriptor setProperties(final PropertyBag properties) {
2466
            this.properties = properties;
×
2467
            return this;
×
2468
        }
2469

2470
        /**
2471
         * The default configuration of a rule, can contain a default level and other properties.
2472
         * @return {@code this}.
2473
         */
2474
        @SuppressWarnings("all")
2475
        public SarifLog.ReportingDescriptor setDefaultConfiguration(final ReportingConfiguration defaultConfiguration) {
2476
            this.defaultConfiguration = defaultConfiguration;
×
2477
            return this;
×
2478
        }
2479

2480
        @java.lang.Override
2481
        @java.lang.SuppressWarnings("all")
2482
        public boolean equals(final java.lang.Object o) {
2483
            if (o == this) {
1!
2484
                return true;
×
2485
            }
2486
            if (!(o instanceof SarifLog.ReportingDescriptor)) {
1!
2487
                return false;
×
2488
            }
2489
            final SarifLog.ReportingDescriptor other = (SarifLog.ReportingDescriptor) o;
1✔
2490
            if (!other.canEqual((java.lang.Object) this)) {
1!
2491
                return false;
×
2492
            }
2493
            final java.lang.Object this$id = this.getId();
1✔
2494
            final java.lang.Object other$id = other.getId();
1✔
2495
            if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
1!
2496
                return false;
1✔
2497
            }
2498
            final java.lang.Object this$name = this.getName();
1✔
2499
            final java.lang.Object other$name = other.getName();
1✔
2500
            if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
1!
2501
                return false;
×
2502
            }
2503
            final java.lang.Object this$shortDescription = this.getShortDescription();
1✔
2504
            final java.lang.Object other$shortDescription = other.getShortDescription();
1✔
2505
            if (this$shortDescription == null ? other$shortDescription != null : !this$shortDescription.equals(other$shortDescription)) {
1!
2506
                return false;
×
2507
            }
2508
            final java.lang.Object this$fullDescription = this.getFullDescription();
1✔
2509
            final java.lang.Object other$fullDescription = other.getFullDescription();
1✔
2510
            if (this$fullDescription == null ? other$fullDescription != null : !this$fullDescription.equals(other$fullDescription)) {
1!
2511
                return false;
×
2512
            }
2513
            final java.lang.Object this$messageStrings = this.getMessageStrings();
1✔
2514
            final java.lang.Object other$messageStrings = other.getMessageStrings();
1✔
2515
            if (this$messageStrings == null ? other$messageStrings != null : !this$messageStrings.equals(other$messageStrings)) {
1!
2516
                return false;
×
2517
            }
2518
            final java.lang.Object this$helpUri = this.getHelpUri();
1✔
2519
            final java.lang.Object other$helpUri = other.getHelpUri();
1✔
2520
            if (this$helpUri == null ? other$helpUri != null : !this$helpUri.equals(other$helpUri)) {
1!
2521
                return false;
×
2522
            }
2523
            final java.lang.Object this$help = this.getHelp();
1✔
2524
            final java.lang.Object other$help = other.getHelp();
1✔
2525
            if (this$help == null ? other$help != null : !this$help.equals(other$help)) {
1!
2526
                return false;
×
2527
            }
2528
            final java.lang.Object this$properties = this.getProperties();
1✔
2529
            final java.lang.Object other$properties = other.getProperties();
1✔
2530
            if (this$properties == null ? other$properties != null : !this$properties.equals(other$properties)) {
1!
2531
                return false;
×
2532
            }
2533
            final Object this$defaultConfiguration = this.getDefaultConfiguration();
1✔
2534
            final Object other$defaultConfiguration = other.getDefaultConfiguration();
1✔
2535
            if (this$defaultConfiguration == null ? other$defaultConfiguration != null : !this$defaultConfiguration.equals(other$defaultConfiguration)) {
1!
2536
                return false;
×
2537
            }
2538
            return true;
1✔
2539
        }
2540

2541
        @java.lang.SuppressWarnings("all")
2542
        protected boolean canEqual(final java.lang.Object other) {
2543
            return other instanceof SarifLog.ReportingDescriptor;
1✔
2544
        }
2545

2546
        @java.lang.Override
2547
        @java.lang.SuppressWarnings("all")
2548
        public int hashCode() {
2549
            final int PRIME = 59;
×
2550
            int result = 1;
×
2551
            final java.lang.Object $id = this.getId();
×
2552
            result = result * PRIME + ($id == null ? 43 : $id.hashCode());
×
2553
            final java.lang.Object $name = this.getName();
×
2554
            result = result * PRIME + ($name == null ? 43 : $name.hashCode());
×
2555
            final java.lang.Object $shortDescription = this.getShortDescription();
×
2556
            result = result * PRIME + ($shortDescription == null ? 43 : $shortDescription.hashCode());
×
2557
            final java.lang.Object $fullDescription = this.getFullDescription();
×
2558
            result = result * PRIME + ($fullDescription == null ? 43 : $fullDescription.hashCode());
×
2559
            final java.lang.Object $messageStrings = this.getMessageStrings();
×
2560
            result = result * PRIME + ($messageStrings == null ? 43 : $messageStrings.hashCode());
×
2561
            final java.lang.Object $helpUri = this.getHelpUri();
×
2562
            result = result * PRIME + ($helpUri == null ? 43 : $helpUri.hashCode());
×
2563
            final java.lang.Object $help = this.getHelp();
×
2564
            result = result * PRIME + ($help == null ? 43 : $help.hashCode());
×
2565
            final java.lang.Object $properties = this.getProperties();
×
2566
            result = result * PRIME + ($properties == null ? 43 : $properties.hashCode());
×
2567
            final Object $defaultConfiguration = this.getDefaultConfiguration();
×
2568
            result = result * PRIME + ($defaultConfiguration == null ? 43 : $defaultConfiguration.hashCode());
×
2569
            return result;
×
2570
        }
2571

2572
        @java.lang.Override
2573
        @java.lang.SuppressWarnings("all")
2574
        public java.lang.String toString() {
2575
            return "SarifLog.ReportingDescriptor(id=" + this.getId() + ", name=" + this.getName() + ", shortDescription=" + this.getShortDescription() + ", fullDescription=" + this.getFullDescription() + ", messageStrings=" + this.getMessageStrings() + ", helpUri=" + this.getHelpUri() + ", help=" + this.getHelp() + ", properties=" + this.getProperties() + ", defaultConfiguration=" + this.getDefaultConfiguration() + ")";
×
2576
        }
2577
    }
2578

2579

2580
    /**
2581
     * Configure the Sarif reporting defined by a reportingDescriptor.
2582
     * Can be used as the defaultConfiguration of a reportingDescriptor.
2583
     * Can also be used in configurationOverride to override those defaults.
2584
     */
2585
    public static class ReportingConfiguration {
2586

2587

2588
        /**
2589
         * Boolean, to dis- and enable the config based on matching a rule (through the Descriptor).
2590
         * Default: true.
2591
         */
2592
        private Boolean enabled;
2593

2594
        /**
2595
         * Takes the levelProperty of the Descriptor (if present) or provides a default/override.
2596
         * Default: warning.
2597
         */
2598
        private String level;
2599

2600
        /**
2601
         * Takes the rank/priority of the Descriptor (if present) or provides a default/override value between 1.0 and 100.0.
2602
         * Default: -1.0.
2603
         */
2604
        private Double rank;
2605

2606
        /**
2607
         * Define configuration information (propertyBag) specific to the Descriptor.
2608
         */
2609
        private PropertyBag parameters;
2610

2611
        @SuppressWarnings("all")
2612
        ReportingConfiguration(final Boolean enabled, final String level, final Double rank, final PropertyBag parameters) {
1✔
2613
            this.enabled = enabled;
1✔
2614
            this.level = level;
1✔
2615
            this.rank = rank;
1✔
2616
            this.parameters = parameters;
1✔
2617
        }
1✔
2618

2619

2620
        @SuppressWarnings("all")
2621
        public static class ReportingConfigurationBuilder {
2622
            @SuppressWarnings("all")
2623
            private Boolean enabled;
2624
            @SuppressWarnings("all")
2625
            private String level;
2626
            @SuppressWarnings("all")
2627
            private Double rank;
2628
            @SuppressWarnings("all")
2629
            private PropertyBag parameters;
2630

2631
            @SuppressWarnings("all")
2632
            ReportingConfigurationBuilder() {
1✔
2633
            }
1✔
2634

2635
            /**
2636
             * Boolean, to dis- and enable the config based on matching a rule (through the Descriptor).
2637
             */
2638
            @SuppressWarnings("all")
2639
            public SarifLog.ReportingConfiguration.ReportingConfigurationBuilder enabled(final Boolean enabled) {
2640
                this.enabled = enabled;
×
2641
                return this;
×
2642
            }
2643

2644
            /**
2645
             * Takes the levelProperty of the Descriptor (if present) or provides a default/override.
2646
             */
2647
            @SuppressWarnings("all")
2648
            public SarifLog.ReportingConfiguration.ReportingConfigurationBuilder level(final String level) {
2649
                this.level = level;
1✔
2650
                return this;
1✔
2651
            }
2652

2653
            /**
2654
             * Takes the rank/priority of the Descriptor (if present) or provides a default/override value between 1.0 and 100.0.
2655
             */
2656
            @SuppressWarnings("all")
2657
            public SarifLog.ReportingConfiguration.ReportingConfigurationBuilder rank(final Double rank) {
2658
                this.rank = rank;
×
2659
                return this;
×
2660
            }
2661

2662
            /**
2663
             * Define configuration information (propertyBag) specific to the Descriptor.
2664
             */
2665
            @SuppressWarnings("all")
2666
            public SarifLog.ReportingConfiguration.ReportingConfigurationBuilder parameters(final PropertyBag parameters) {
2667
                this.parameters = parameters;
×
2668
                return this;
×
2669
            }
2670

2671
            @SuppressWarnings("all")
2672
            public SarifLog.ReportingConfiguration build() {
2673
                return new SarifLog.ReportingConfiguration(this.enabled, this.level, this.rank, this.parameters);
1✔
2674
            }
2675

2676
            @Override
2677
            @SuppressWarnings("all")
2678
            public String toString() {
2679
                return "SarifLog.ReportingConfiguration.ReportingConfigurationBuilder(enabled=" + this.enabled + ", level=" + this.level + ", rank=" + this.rank + ", parameters=" + this.parameters + ")";
×
2680
            }
2681
        }
2682

2683
        @SuppressWarnings("all")
2684
        public static SarifLog.ReportingConfiguration.ReportingConfigurationBuilder builder() {
2685
            return new SarifLog.ReportingConfiguration.ReportingConfigurationBuilder();
1✔
2686
        }
2687

2688
        /**
2689
         * Boolean, to dis- and enable the config based on matching a rule (through the Descriptor).
2690
         */
2691
        @SuppressWarnings("all")
2692
        public Boolean getEnabled() {
2693
            return this.enabled;
1✔
2694
        }
2695

2696
        /**
2697
         * Takes the levelProperty of the Descriptor (if present) or provides a default/override.
2698
         */
2699
        @SuppressWarnings("all")
2700
        public String getLevel() {
2701
            return this.level;
1✔
2702
        }
2703

2704
        /**
2705
         * Takes the rank/priority of the Descriptor (if present) or provides a default/override value between 1.0 and 100.0.
2706
         */
2707
        @SuppressWarnings("all")
2708
        public Double getRank() {
2709
            return this.rank;
1✔
2710
        }
2711

2712
        /**
2713
         * Define configuration information (propertyBag) specific to the Descriptor.
2714
         */
2715
        @SuppressWarnings("all")
2716
        public PropertyBag getParameters() {
2717
            return this.parameters;
1✔
2718
        }
2719

2720
        /**
2721
         * Boolean, to dis- and enable the config based on matching a rule (through the Descriptor).
2722
         * @return {@code this}.
2723
         */
2724
        @SuppressWarnings("all")
2725
        public SarifLog.ReportingConfiguration setEnabled(final Boolean enabled) {
2726
            this.enabled = enabled;
×
2727
            return this;
×
2728
        }
2729

2730
        /**
2731
         * Takes the levelProperty of the Descriptor (if present) or provides a default/override.
2732
         * @return {@code this}.
2733
         */
2734
        @SuppressWarnings("all")
2735
        public SarifLog.ReportingConfiguration setLevel(final String level) {
2736
            this.level = level;
×
2737
            return this;
×
2738
        }
2739

2740
        /**
2741
         * Takes the rank/priority of the Descriptor (if present) or provides a default/override value between 1.0 and 100.0.
2742
         * @return {@code this}.
2743
         */
2744
        @SuppressWarnings("all")
2745
        public SarifLog.ReportingConfiguration setRank(final Double rank) {
2746
            this.rank = rank;
×
2747
            return this;
×
2748
        }
2749

2750
        /**
2751
         * Define configuration information (propertyBag) specific to the Descriptor.
2752
         * @return {@code this}.
2753
         */
2754
        @SuppressWarnings("all")
2755
        public SarifLog.ReportingConfiguration setParameters(final PropertyBag parameters) {
2756
            this.parameters = parameters;
×
2757
            return this;
×
2758
        }
2759

2760
        @Override
2761
        @SuppressWarnings("all")
2762
        public boolean equals(final Object o) {
2763
            if (o == this) {
1!
2764
                return true;
×
2765
            }
2766
            if (!(o instanceof SarifLog.ReportingConfiguration)) {
1!
2767
                return false;
×
2768
            }
2769
            final SarifLog.ReportingConfiguration other = (SarifLog.ReportingConfiguration) o;
1✔
2770
            if (!other.canEqual((Object) this)) {
1!
2771
                return false;
×
2772
            }
2773
            final Object this$enabled = this.getEnabled();
1✔
2774
            final Object other$enabled = other.getEnabled();
1✔
2775
            if (this$enabled == null ? other$enabled != null : !this$enabled.equals(other$enabled)) {
1!
2776
                return false;
×
2777
            }
2778
            final Object this$level = this.getLevel();
1✔
2779
            final Object other$level = other.getLevel();
1✔
2780
            if (this$level == null ? other$level != null : !this$level.equals(other$level)) {
1!
2781
                return false;
×
2782
            }
2783
            final Object this$rank = this.getRank();
1✔
2784
            final Object other$rank = other.getRank();
1✔
2785
            if (this$rank == null ? other$rank != null : !this$rank.equals(other$rank)) {
1!
2786
                return false;
×
2787
            }
2788
            final Object this$parameters = this.getParameters();
1✔
2789
            final Object other$parameters = other.getParameters();
1✔
2790
            if (this$parameters == null ? other$parameters != null : !this$parameters.equals(other$parameters)) {
1!
2791
                return false;
×
2792
            }
2793
            return true;
1✔
2794
        }
2795

2796
        @SuppressWarnings("all")
2797
        protected boolean canEqual(final Object other) {
2798
            return other instanceof SarifLog.ReportingConfiguration;
1✔
2799
        }
2800

2801
        @Override
2802
        @SuppressWarnings("all")
2803
        public int hashCode() {
2804
            final int PRIME = 59;
×
2805
            int result = 1;
×
2806
            final Object $enabled = this.getEnabled();
×
2807
            result = result * PRIME + ($enabled == null ? 43 : $enabled.hashCode());
×
2808
            final Object $level = this.getLevel();
×
2809
            result = result * PRIME + ($level == null ? 43 : $level.hashCode());
×
2810
            final Object $rank = this.getRank();
×
2811
            result = result * PRIME + ($rank == null ? 43 : $rank.hashCode());
×
2812
            final Object $parameters = this.getParameters();
×
2813
            result = result * PRIME + ($parameters == null ? 43 : $parameters.hashCode());
×
2814
            return result;
×
2815
        }
2816

2817
        @Override
2818
        @SuppressWarnings("all")
2819
        public String toString() {
2820
            return "SarifLog.ReportingConfiguration(enabled=" + this.getEnabled() + ", level=" + this.getLevel() + ", rank=" + this.getRank() + ", parameters=" + this.getParameters() + ")";
×
2821
        }
2822
    }
2823

2824

2825
    /**
2826
     * A message string or message format string rendered in multiple formats.
2827
     */
2828
    public static class MultiformatMessage {
2829
        /**
2830
         * A plain text message string or format string.
2831
         */
2832
        private String text;
2833
        /**
2834
         * A Markdown message string or format string.
2835
         */
2836
        private String markdown;
2837

2838
        public MultiformatMessage(String text) {
1✔
2839
            this.text = text;
1✔
2840
        }
1✔
2841

2842

2843
        @java.lang.SuppressWarnings("all")
2844
        public static class MultiformatMessageBuilder {
2845
            @java.lang.SuppressWarnings("all")
2846
            private String text;
2847
            @java.lang.SuppressWarnings("all")
2848
            private String markdown;
2849

2850
            @java.lang.SuppressWarnings("all")
2851
            MultiformatMessageBuilder() {
×
2852
            }
×
2853

2854
            /**
2855
             * A plain text message string or format string.
2856
             * @return {@code this}.
2857
             */
2858
            @java.lang.SuppressWarnings("all")
2859
            public SarifLog.MultiformatMessage.MultiformatMessageBuilder text(final String text) {
2860
                this.text = text;
×
2861
                return this;
×
2862
            }
2863

2864
            /**
2865
             * A Markdown message string or format string.
2866
             * @return {@code this}.
2867
             */
2868
            @java.lang.SuppressWarnings("all")
2869
            public SarifLog.MultiformatMessage.MultiformatMessageBuilder markdown(final String markdown) {
2870
                this.markdown = markdown;
×
2871
                return this;
×
2872
            }
2873

2874
            @java.lang.SuppressWarnings("all")
2875
            public SarifLog.MultiformatMessage build() {
2876
                return new SarifLog.MultiformatMessage(this.text, this.markdown);
×
2877
            }
2878

2879
            @java.lang.Override
2880
            @java.lang.SuppressWarnings("all")
2881
            public java.lang.String toString() {
2882
                return "SarifLog.MultiformatMessage.MultiformatMessageBuilder(text=" + this.text + ", markdown=" + this.markdown + ")";
×
2883
            }
2884
        }
2885

2886
        @java.lang.SuppressWarnings("all")
2887
        public static SarifLog.MultiformatMessage.MultiformatMessageBuilder builder() {
2888
            return new SarifLog.MultiformatMessage.MultiformatMessageBuilder();
×
2889
        }
2890

2891
        /**
2892
         * A plain text message string or format string.
2893
         */
2894
        @java.lang.SuppressWarnings("all")
2895
        public String getText() {
2896
            return this.text;
1✔
2897
        }
2898

2899
        /**
2900
         * A Markdown message string or format string.
2901
         */
2902
        @java.lang.SuppressWarnings("all")
2903
        public String getMarkdown() {
2904
            return this.markdown;
1✔
2905
        }
2906

2907
        /**
2908
         * A plain text message string or format string.
2909
         * @return {@code this}.
2910
         */
2911
        @java.lang.SuppressWarnings("all")
2912
        public SarifLog.MultiformatMessage setText(final String text) {
2913
            this.text = text;
×
2914
            return this;
×
2915
        }
2916

2917
        /**
2918
         * A Markdown message string or format string.
2919
         * @return {@code this}.
2920
         */
2921
        @java.lang.SuppressWarnings("all")
2922
        public SarifLog.MultiformatMessage setMarkdown(final String markdown) {
2923
            this.markdown = markdown;
×
2924
            return this;
×
2925
        }
2926

2927
        @java.lang.Override
2928
        @java.lang.SuppressWarnings("all")
2929
        public boolean equals(final java.lang.Object o) {
2930
            if (o == this) {
1!
2931
                return true;
×
2932
            }
2933
            if (!(o instanceof SarifLog.MultiformatMessage)) {
1!
2934
                return false;
×
2935
            }
2936
            final SarifLog.MultiformatMessage other = (SarifLog.MultiformatMessage) o;
1✔
2937
            if (!other.canEqual((java.lang.Object) this)) {
1!
2938
                return false;
×
2939
            }
2940
            final java.lang.Object this$text = this.getText();
1✔
2941
            final java.lang.Object other$text = other.getText();
1✔
2942
            if (this$text == null ? other$text != null : !this$text.equals(other$text)) {
1!
2943
                return false;
×
2944
            }
2945
            final java.lang.Object this$markdown = this.getMarkdown();
1✔
2946
            final java.lang.Object other$markdown = other.getMarkdown();
1✔
2947
            if (this$markdown == null ? other$markdown != null : !this$markdown.equals(other$markdown)) {
1!
2948
                return false;
×
2949
            }
2950
            return true;
1✔
2951
        }
2952

2953
        @java.lang.SuppressWarnings("all")
2954
        protected boolean canEqual(final java.lang.Object other) {
2955
            return other instanceof SarifLog.MultiformatMessage;
1✔
2956
        }
2957

2958
        @java.lang.Override
2959
        @java.lang.SuppressWarnings("all")
2960
        public int hashCode() {
2961
            final int PRIME = 59;
×
2962
            int result = 1;
×
2963
            final java.lang.Object $text = this.getText();
×
2964
            result = result * PRIME + ($text == null ? 43 : $text.hashCode());
×
2965
            final java.lang.Object $markdown = this.getMarkdown();
×
2966
            result = result * PRIME + ($markdown == null ? 43 : $markdown.hashCode());
×
2967
            return result;
×
2968
        }
2969

2970
        @java.lang.Override
2971
        @java.lang.SuppressWarnings("all")
2972
        public java.lang.String toString() {
2973
            return "SarifLog.MultiformatMessage(text=" + this.getText() + ", markdown=" + this.getMarkdown() + ")";
×
2974
        }
2975

2976
        @java.lang.SuppressWarnings("all")
2977
        public MultiformatMessage() {
×
2978
        }
×
2979

2980
        @java.lang.SuppressWarnings("all")
2981
        public MultiformatMessage(final String text, final String markdown) {
×
2982
            this.text = text;
×
2983
            this.markdown = markdown;
×
2984
        }
×
2985
    }
2986

2987

2988
    /**
2989
     * An exception information object, for the tool runtime errors.
2990
     */
2991
    public static class Exception {
2992
        /**
2993
         * A plain text message string or format string.
2994
         */
2995
        private String message;
2996

2997
        @java.lang.SuppressWarnings("all")
2998
        Exception(final String message) {
1✔
2999
            this.message = message;
1✔
3000
        }
1✔
3001

3002

3003
        @java.lang.SuppressWarnings("all")
3004
        public static class ExceptionBuilder {
3005
            @java.lang.SuppressWarnings("all")
3006
            private String message;
3007

3008
            @java.lang.SuppressWarnings("all")
3009
            ExceptionBuilder() {
1✔
3010
            }
1✔
3011

3012
            /**
3013
             * A plain text message string or format string.
3014
             * @return {@code this}.
3015
             */
3016
            @java.lang.SuppressWarnings("all")
3017
            public SarifLog.Exception.ExceptionBuilder message(final String message) {
3018
                this.message = message;
1✔
3019
                return this;
1✔
3020
            }
3021

3022
            @java.lang.SuppressWarnings("all")
3023
            public SarifLog.Exception build() {
3024
                return new SarifLog.Exception(this.message);
1✔
3025
            }
3026

3027
            @java.lang.Override
3028
            @java.lang.SuppressWarnings("all")
3029
            public java.lang.String toString() {
3030
                return "SarifLog.Exception.ExceptionBuilder(message=" + this.message + ")";
×
3031
            }
3032
        }
3033

3034
        @java.lang.SuppressWarnings("all")
3035
        public static SarifLog.Exception.ExceptionBuilder builder() {
3036
            return new SarifLog.Exception.ExceptionBuilder();
1✔
3037
        }
3038

3039
        @java.lang.SuppressWarnings("all")
3040
        public SarifLog.Exception.ExceptionBuilder toBuilder() {
3041
            return new SarifLog.Exception.ExceptionBuilder().message(this.message);
×
3042
        }
3043

3044
        /**
3045
         * A plain text message string or format string.
3046
         */
3047
        @java.lang.SuppressWarnings("all")
3048
        public String getMessage() {
3049
            return this.message;
×
3050
        }
3051

3052
        /**
3053
         * A plain text message string or format string.
3054
         * @return {@code this}.
3055
         */
3056
        @java.lang.SuppressWarnings("all")
3057
        public SarifLog.Exception setMessage(final String message) {
3058
            this.message = message;
×
3059
            return this;
×
3060
        }
3061

3062
        @java.lang.Override
3063
        @java.lang.SuppressWarnings("all")
3064
        public boolean equals(final java.lang.Object o) {
3065
            if (o == this) {
×
3066
                return true;
×
3067
            }
3068
            if (!(o instanceof SarifLog.Exception)) {
×
3069
                return false;
×
3070
            }
3071
            final SarifLog.Exception other = (SarifLog.Exception) o;
×
3072
            if (!other.canEqual((java.lang.Object) this)) {
×
3073
                return false;
×
3074
            }
3075
            final java.lang.Object this$message = this.getMessage();
×
3076
            final java.lang.Object other$message = other.getMessage();
×
3077
            if (this$message == null ? other$message != null : !this$message.equals(other$message)) {
×
3078
                return false;
×
3079
            }
3080
            return true;
×
3081
        }
3082

3083
        @java.lang.SuppressWarnings("all")
3084
        protected boolean canEqual(final java.lang.Object other) {
3085
            return other instanceof SarifLog.Exception;
×
3086
        }
3087

3088
        @java.lang.Override
3089
        @java.lang.SuppressWarnings("all")
3090
        public int hashCode() {
3091
            final int PRIME = 59;
×
3092
            int result = 1;
×
3093
            final java.lang.Object $message = this.getMessage();
×
3094
            result = result * PRIME + ($message == null ? 43 : $message.hashCode());
×
3095
            return result;
×
3096
        }
3097

3098
        @java.lang.Override
3099
        @java.lang.SuppressWarnings("all")
3100
        public java.lang.String toString() {
3101
            return "SarifLog.Exception(message=" + this.getMessage() + ")";
×
3102
        }
3103
    }
3104

3105

3106
    /**
3107
     * An associated rule to the toolConfigurationNotification.
3108
     */
3109
    public static class AssociatedRule {
3110
        /**
3111
         * The stable, unique identifier of the rule, if any, to which this result is relevant.
3112
         */
3113
        private String id;
3114

3115
        @java.lang.SuppressWarnings("all")
3116
        AssociatedRule(final String id) {
1✔
3117
            this.id = id;
1✔
3118
        }
1✔
3119

3120

3121
        @java.lang.SuppressWarnings("all")
3122
        public static class AssociatedRuleBuilder {
3123
            @java.lang.SuppressWarnings("all")
3124
            private String id;
3125

3126
            @java.lang.SuppressWarnings("all")
3127
            AssociatedRuleBuilder() {
1✔
3128
            }
1✔
3129

3130
            /**
3131
             * The stable, unique identifier of the rule, if any, to which this result is relevant.
3132
             * @return {@code this}.
3133
             */
3134
            @java.lang.SuppressWarnings("all")
3135
            public SarifLog.AssociatedRule.AssociatedRuleBuilder id(final String id) {
3136
                this.id = id;
1✔
3137
                return this;
1✔
3138
            }
3139

3140
            @java.lang.SuppressWarnings("all")
3141
            public SarifLog.AssociatedRule build() {
3142
                return new SarifLog.AssociatedRule(this.id);
1✔
3143
            }
3144

3145
            @java.lang.Override
3146
            @java.lang.SuppressWarnings("all")
3147
            public java.lang.String toString() {
3148
                return "SarifLog.AssociatedRule.AssociatedRuleBuilder(id=" + this.id + ")";
×
3149
            }
3150
        }
3151

3152
        @java.lang.SuppressWarnings("all")
3153
        public static SarifLog.AssociatedRule.AssociatedRuleBuilder builder() {
3154
            return new SarifLog.AssociatedRule.AssociatedRuleBuilder();
1✔
3155
        }
3156

3157
        @java.lang.SuppressWarnings("all")
3158
        public SarifLog.AssociatedRule.AssociatedRuleBuilder toBuilder() {
3159
            return new SarifLog.AssociatedRule.AssociatedRuleBuilder().id(this.id);
×
3160
        }
3161

3162
        /**
3163
         * The stable, unique identifier of the rule, if any, to which this result is relevant.
3164
         */
3165
        @java.lang.SuppressWarnings("all")
3166
        public String getId() {
3167
            return this.id;
×
3168
        }
3169

3170
        /**
3171
         * The stable, unique identifier of the rule, if any, to which this result is relevant.
3172
         * @return {@code this}.
3173
         */
3174
        @java.lang.SuppressWarnings("all")
3175
        public SarifLog.AssociatedRule setId(final String id) {
3176
            this.id = id;
×
3177
            return this;
×
3178
        }
3179

3180
        @java.lang.Override
3181
        @java.lang.SuppressWarnings("all")
3182
        public boolean equals(final java.lang.Object o) {
3183
            if (o == this) {
×
3184
                return true;
×
3185
            }
3186
            if (!(o instanceof SarifLog.AssociatedRule)) {
×
3187
                return false;
×
3188
            }
3189
            final SarifLog.AssociatedRule other = (SarifLog.AssociatedRule) o;
×
3190
            if (!other.canEqual((java.lang.Object) this)) {
×
3191
                return false;
×
3192
            }
3193
            final java.lang.Object this$id = this.getId();
×
3194
            final java.lang.Object other$id = other.getId();
×
3195
            if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
×
3196
                return false;
×
3197
            }
3198
            return true;
×
3199
        }
3200

3201
        @java.lang.SuppressWarnings("all")
3202
        protected boolean canEqual(final java.lang.Object other) {
3203
            return other instanceof SarifLog.AssociatedRule;
×
3204
        }
3205

3206
        @java.lang.Override
3207
        @java.lang.SuppressWarnings("all")
3208
        public int hashCode() {
3209
            final int PRIME = 59;
×
3210
            int result = 1;
×
3211
            final java.lang.Object $id = this.getId();
×
3212
            result = result * PRIME + ($id == null ? 43 : $id.hashCode());
×
3213
            return result;
×
3214
        }
3215

3216
        @java.lang.Override
3217
        @java.lang.SuppressWarnings("all")
3218
        public java.lang.String toString() {
3219
            return "SarifLog.AssociatedRule(id=" + this.getId() + ")";
×
3220
        }
3221
    }
3222

3223

3224
    /**
3225
     * An invocation property to specify tool configuration errors.
3226
     */
3227
    public static class ToolConfigurationNotification {
3228
        /**
3229
         * An associated rule
3230
         */
3231
        private AssociatedRule associatedRule;
3232
        /**
3233
         * A message component to detail the configuration error
3234
         */
3235
        private Message message;
3236

3237
        @java.lang.SuppressWarnings("all")
3238
        ToolConfigurationNotification(final AssociatedRule associatedRule, final Message message) {
1✔
3239
            this.associatedRule = associatedRule;
1✔
3240
            this.message = message;
1✔
3241
        }
1✔
3242

3243

3244
        @java.lang.SuppressWarnings("all")
3245
        public static class ToolConfigurationNotificationBuilder {
3246
            @java.lang.SuppressWarnings("all")
3247
            private AssociatedRule associatedRule;
3248
            @java.lang.SuppressWarnings("all")
3249
            private Message message;
3250

3251
            @java.lang.SuppressWarnings("all")
3252
            ToolConfigurationNotificationBuilder() {
1✔
3253
            }
1✔
3254

3255
            /**
3256
             * An associated rule
3257
             * @return {@code this}.
3258
             */
3259
            @java.lang.SuppressWarnings("all")
3260
            public SarifLog.ToolConfigurationNotification.ToolConfigurationNotificationBuilder associatedRule(final AssociatedRule associatedRule) {
3261
                this.associatedRule = associatedRule;
1✔
3262
                return this;
1✔
3263
            }
3264

3265
            /**
3266
             * A message component to detail the configuration error
3267
             * @return {@code this}.
3268
             */
3269
            @java.lang.SuppressWarnings("all")
3270
            public SarifLog.ToolConfigurationNotification.ToolConfigurationNotificationBuilder message(final Message message) {
3271
                this.message = message;
1✔
3272
                return this;
1✔
3273
            }
3274

3275
            @java.lang.SuppressWarnings("all")
3276
            public SarifLog.ToolConfigurationNotification build() {
3277
                return new SarifLog.ToolConfigurationNotification(this.associatedRule, this.message);
1✔
3278
            }
3279

3280
            @java.lang.Override
3281
            @java.lang.SuppressWarnings("all")
3282
            public java.lang.String toString() {
3283
                return "SarifLog.ToolConfigurationNotification.ToolConfigurationNotificationBuilder(associatedRule=" + this.associatedRule + ", message=" + this.message + ")";
×
3284
            }
3285
        }
3286

3287
        @java.lang.SuppressWarnings("all")
3288
        public static SarifLog.ToolConfigurationNotification.ToolConfigurationNotificationBuilder builder() {
3289
            return new SarifLog.ToolConfigurationNotification.ToolConfigurationNotificationBuilder();
1✔
3290
        }
3291

3292
        @java.lang.SuppressWarnings("all")
3293
        public SarifLog.ToolConfigurationNotification.ToolConfigurationNotificationBuilder toBuilder() {
3294
            return new SarifLog.ToolConfigurationNotification.ToolConfigurationNotificationBuilder().associatedRule(this.associatedRule).message(this.message);
×
3295
        }
3296

3297
        /**
3298
         * An associated rule
3299
         */
3300
        @java.lang.SuppressWarnings("all")
3301
        public AssociatedRule getAssociatedRule() {
3302
            return this.associatedRule;
×
3303
        }
3304

3305
        /**
3306
         * A message component to detail the configuration error
3307
         */
3308
        @java.lang.SuppressWarnings("all")
3309
        public Message getMessage() {
3310
            return this.message;
×
3311
        }
3312

3313
        /**
3314
         * An associated rule
3315
         * @return {@code this}.
3316
         */
3317
        @java.lang.SuppressWarnings("all")
3318
        public SarifLog.ToolConfigurationNotification setAssociatedRule(final AssociatedRule associatedRule) {
3319
            this.associatedRule = associatedRule;
×
3320
            return this;
×
3321
        }
3322

3323
        /**
3324
         * A message component to detail the configuration error
3325
         * @return {@code this}.
3326
         */
3327
        @java.lang.SuppressWarnings("all")
3328
        public SarifLog.ToolConfigurationNotification setMessage(final Message message) {
3329
            this.message = message;
×
3330
            return this;
×
3331
        }
3332

3333
        @java.lang.Override
3334
        @java.lang.SuppressWarnings("all")
3335
        public boolean equals(final java.lang.Object o) {
3336
            if (o == this) {
×
3337
                return true;
×
3338
            }
3339
            if (!(o instanceof SarifLog.ToolConfigurationNotification)) {
×
3340
                return false;
×
3341
            }
3342
            final SarifLog.ToolConfigurationNotification other = (SarifLog.ToolConfigurationNotification) o;
×
3343
            if (!other.canEqual((java.lang.Object) this)) {
×
3344
                return false;
×
3345
            }
3346
            final java.lang.Object this$associatedRule = this.getAssociatedRule();
×
3347
            final java.lang.Object other$associatedRule = other.getAssociatedRule();
×
3348
            if (this$associatedRule == null ? other$associatedRule != null : !this$associatedRule.equals(other$associatedRule)) {
×
3349
                return false;
×
3350
            }
3351
            final java.lang.Object this$message = this.getMessage();
×
3352
            final java.lang.Object other$message = other.getMessage();
×
3353
            if (this$message == null ? other$message != null : !this$message.equals(other$message)) {
×
3354
                return false;
×
3355
            }
3356
            return true;
×
3357
        }
3358

3359
        @java.lang.SuppressWarnings("all")
3360
        protected boolean canEqual(final java.lang.Object other) {
3361
            return other instanceof SarifLog.ToolConfigurationNotification;
×
3362
        }
3363

3364
        @java.lang.Override
3365
        @java.lang.SuppressWarnings("all")
3366
        public int hashCode() {
3367
            final int PRIME = 59;
×
3368
            int result = 1;
×
3369
            final java.lang.Object $associatedRule = this.getAssociatedRule();
×
3370
            result = result * PRIME + ($associatedRule == null ? 43 : $associatedRule.hashCode());
×
3371
            final java.lang.Object $message = this.getMessage();
×
3372
            result = result * PRIME + ($message == null ? 43 : $message.hashCode());
×
3373
            return result;
×
3374
        }
3375

3376
        @java.lang.Override
3377
        @java.lang.SuppressWarnings("all")
3378
        public java.lang.String toString() {
3379
            return "SarifLog.ToolConfigurationNotification(associatedRule=" + this.getAssociatedRule() + ", message=" + this.getMessage() + ")";
×
3380
        }
3381
    }
3382

3383

3384
    /**
3385
     * An invocation property to specify tool runtime errors.
3386
     */
3387
    public static class ToolExecutionNotification {
3388
        /**
3389
         * A list of related locations to the error
3390
         */
3391
        private List<Location> locations;
3392
        /**
3393
         * A message component to detail the runtime error
3394
         */
3395
        private Message message;
3396
        /**
3397
         * An exception component to detail the tool exception
3398
         */
3399
        private Exception exception;
3400

3401
        @java.lang.SuppressWarnings("all")
3402
        ToolExecutionNotification(final List<Location> locations, final Message message, final Exception exception) {
1✔
3403
            this.locations = locations;
1✔
3404
            this.message = message;
1✔
3405
            this.exception = exception;
1✔
3406
        }
1✔
3407

3408

3409
        @java.lang.SuppressWarnings("all")
3410
        public static class ToolExecutionNotificationBuilder {
3411
            @java.lang.SuppressWarnings("all")
3412
            private List<Location> locations;
3413
            @java.lang.SuppressWarnings("all")
3414
            private Message message;
3415
            @java.lang.SuppressWarnings("all")
3416
            private Exception exception;
3417

3418
            @java.lang.SuppressWarnings("all")
3419
            ToolExecutionNotificationBuilder() {
1✔
3420
            }
1✔
3421

3422
            /**
3423
             * A list of related locations to the error
3424
             * @return {@code this}.
3425
             */
3426
            @java.lang.SuppressWarnings("all")
3427
            public SarifLog.ToolExecutionNotification.ToolExecutionNotificationBuilder locations(final List<Location> locations) {
3428
                this.locations = locations;
1✔
3429
                return this;
1✔
3430
            }
3431

3432
            /**
3433
             * A message component to detail the runtime error
3434
             * @return {@code this}.
3435
             */
3436
            @java.lang.SuppressWarnings("all")
3437
            public SarifLog.ToolExecutionNotification.ToolExecutionNotificationBuilder message(final Message message) {
3438
                this.message = message;
1✔
3439
                return this;
1✔
3440
            }
3441

3442
            /**
3443
             * A exception component to detail the tool exception
3444
             * @return {@code this}.
3445
             */
3446
            @java.lang.SuppressWarnings("all")
3447
            public SarifLog.ToolExecutionNotification.ToolExecutionNotificationBuilder exception(final Exception exception) {
3448
                this.exception = exception;
1✔
3449
                return this;
1✔
3450
            }
3451

3452
            @java.lang.SuppressWarnings("all")
3453
            public SarifLog.ToolExecutionNotification build() {
3454
                return new SarifLog.ToolExecutionNotification(this.locations, this.message, this.exception);
1✔
3455
            }
3456

3457
            @java.lang.Override
3458
            @java.lang.SuppressWarnings("all")
3459
            public java.lang.String toString() {
3460
                return "SarifLog.ToolExecutionNotification.ToolExecutionNotificationBuilder(locations=" + this.locations + ", message=" + this.message + ", exception=" + this.exception + ")";
×
3461
            }
3462
        }
3463

3464
        @java.lang.SuppressWarnings("all")
3465
        public static SarifLog.ToolExecutionNotification.ToolExecutionNotificationBuilder builder() {
3466
            return new SarifLog.ToolExecutionNotification.ToolExecutionNotificationBuilder();
1✔
3467
        }
3468

3469
        @java.lang.SuppressWarnings("all")
3470
        public SarifLog.ToolExecutionNotification.ToolExecutionNotificationBuilder toBuilder() {
3471
            return new SarifLog.ToolExecutionNotification.ToolExecutionNotificationBuilder().locations(this.locations).message(this.message).exception(this.exception);
×
3472
        }
3473

3474
        /**
3475
         * A list of related locations to the error
3476
         */
3477
        @java.lang.SuppressWarnings("all")
3478
        public List<Location> getLocations() {
3479
            return this.locations;
×
3480
        }
3481

3482
        /**
3483
         * A message component to detail the runtime error
3484
         */
3485
        @java.lang.SuppressWarnings("all")
3486
        public Message getMessage() {
3487
            return this.message;
×
3488
        }
3489

3490
        /**
3491
         * A exception component to detail the tool exception
3492
         */
3493
        @java.lang.SuppressWarnings("all")
3494
        public Exception getException() {
3495
            return this.exception;
×
3496
        }
3497

3498
        /**
3499
         * A list of related locations to the error
3500
         * @return {@code this}.
3501
         */
3502
        @java.lang.SuppressWarnings("all")
3503
        public SarifLog.ToolExecutionNotification setLocations(final List<Location> locations) {
3504
            this.locations = locations;
×
3505
            return this;
×
3506
        }
3507

3508
        /**
3509
         * A message component to detail the runtime error
3510
         * @return {@code this}.
3511
         */
3512
        @java.lang.SuppressWarnings("all")
3513
        public SarifLog.ToolExecutionNotification setMessage(final Message message) {
3514
            this.message = message;
×
3515
            return this;
×
3516
        }
3517

3518
        /**
3519
         * A exception component to detail the tool exception
3520
         * @return {@code this}.
3521
         */
3522
        @java.lang.SuppressWarnings("all")
3523
        public SarifLog.ToolExecutionNotification setException(final Exception exception) {
3524
            this.exception = exception;
×
3525
            return this;
×
3526
        }
3527

3528
        @java.lang.Override
3529
        @java.lang.SuppressWarnings("all")
3530
        public boolean equals(final java.lang.Object o) {
3531
            if (o == this) {
×
3532
                return true;
×
3533
            }
3534
            if (!(o instanceof SarifLog.ToolExecutionNotification)) {
×
3535
                return false;
×
3536
            }
3537
            final SarifLog.ToolExecutionNotification other = (SarifLog.ToolExecutionNotification) o;
×
3538
            if (!other.canEqual((java.lang.Object) this)) {
×
3539
                return false;
×
3540
            }
3541
            final java.lang.Object this$locations = this.getLocations();
×
3542
            final java.lang.Object other$locations = other.getLocations();
×
3543
            if (this$locations == null ? other$locations != null : !this$locations.equals(other$locations)) {
×
3544
                return false;
×
3545
            }
3546
            final java.lang.Object this$message = this.getMessage();
×
3547
            final java.lang.Object other$message = other.getMessage();
×
3548
            if (this$message == null ? other$message != null : !this$message.equals(other$message)) {
×
3549
                return false;
×
3550
            }
3551
            final java.lang.Object this$exception = this.getException();
×
3552
            final java.lang.Object other$exception = other.getException();
×
3553
            if (this$exception == null ? other$exception != null : !this$exception.equals(other$exception)) {
×
3554
                return false;
×
3555
            }
3556
            return true;
×
3557
        }
3558

3559
        @java.lang.SuppressWarnings("all")
3560
        protected boolean canEqual(final java.lang.Object other) {
3561
            return other instanceof SarifLog.ToolExecutionNotification;
×
3562
        }
3563

3564
        @java.lang.Override
3565
        @java.lang.SuppressWarnings("all")
3566
        public int hashCode() {
3567
            final int PRIME = 59;
×
3568
            int result = 1;
×
3569
            final java.lang.Object $locations = this.getLocations();
×
3570
            result = result * PRIME + ($locations == null ? 43 : $locations.hashCode());
×
3571
            final java.lang.Object $message = this.getMessage();
×
3572
            result = result * PRIME + ($message == null ? 43 : $message.hashCode());
×
3573
            final java.lang.Object $exception = this.getException();
×
3574
            result = result * PRIME + ($exception == null ? 43 : $exception.hashCode());
×
3575
            return result;
×
3576
        }
3577

3578
        @java.lang.Override
3579
        @java.lang.SuppressWarnings("all")
3580
        public java.lang.String toString() {
3581
            return "SarifLog.ToolExecutionNotification(locations=" + this.getLocations() + ", message=" + this.getMessage() + ", exception=" + this.getException() + ")";
×
3582
        }
3583
    }
3584

3585

3586
    /**
3587
     * An invocation component to specify tool invocation details/errors.
3588
     */
3589
    public static class Invocation {
3590
        /**
3591
         * An indicator of execution status
3592
         */
3593
        private Boolean executionSuccessful;
3594
        /**
3595
         * A list of associated tool configuration errors
3596
         */
3597
        private List<ToolConfigurationNotification> toolConfigurationNotifications;
3598
        /**
3599
         * A list of associated tool runtime errors
3600
         */
3601
        private List<ToolExecutionNotification> toolExecutionNotifications;
3602

3603
        @java.lang.SuppressWarnings("all")
3604
        Invocation(final Boolean executionSuccessful, final List<ToolConfigurationNotification> toolConfigurationNotifications, final List<ToolExecutionNotification> toolExecutionNotifications) {
1✔
3605
            this.executionSuccessful = executionSuccessful;
1✔
3606
            this.toolConfigurationNotifications = toolConfigurationNotifications;
1✔
3607
            this.toolExecutionNotifications = toolExecutionNotifications;
1✔
3608
        }
1✔
3609

3610

3611
        @java.lang.SuppressWarnings("all")
3612
        public static class InvocationBuilder {
3613
            @java.lang.SuppressWarnings("all")
3614
            private Boolean executionSuccessful;
3615
            @java.lang.SuppressWarnings("all")
3616
            private List<ToolConfigurationNotification> toolConfigurationNotifications;
3617
            @java.lang.SuppressWarnings("all")
3618
            private List<ToolExecutionNotification> toolExecutionNotifications;
3619

3620
            @java.lang.SuppressWarnings("all")
3621
            InvocationBuilder() {
1✔
3622
            }
1✔
3623

3624
            @java.lang.SuppressWarnings("all")
3625
            public SarifLog.Invocation.InvocationBuilder executionSuccessful(final Boolean executionSuccessful) {
3626
                this.executionSuccessful = executionSuccessful;
1✔
3627
                return this;
1✔
3628
            }
3629

3630
            @java.lang.SuppressWarnings("all")
3631
            public SarifLog.Invocation.InvocationBuilder toolConfigurationNotifications(final List<ToolConfigurationNotification> toolConfigurationNotifications) {
3632
                this.toolConfigurationNotifications = toolConfigurationNotifications;
1✔
3633
                return this;
1✔
3634
            }
3635

3636
            @java.lang.SuppressWarnings("all")
3637
            public SarifLog.Invocation.InvocationBuilder toolExecutionNotifications(final List<ToolExecutionNotification> toolExecutionNotifications) {
3638
                this.toolExecutionNotifications = toolExecutionNotifications;
1✔
3639
                return this;
1✔
3640
            }
3641

3642
            @java.lang.SuppressWarnings("all")
3643
            public SarifLog.Invocation build() {
3644
                return new SarifLog.Invocation(this.executionSuccessful, this.toolConfigurationNotifications, this.toolExecutionNotifications);
1✔
3645
            }
3646

3647
            @java.lang.Override
3648
            @java.lang.SuppressWarnings("all")
3649
            public java.lang.String toString() {
3650
                return "SarifLog.Invocation.InvocationBuilder(executionSuccessful=" + this.executionSuccessful + ", toolConfigurationNotifications=" + this.toolConfigurationNotifications + ", toolExecutionNotifications=" + this.toolExecutionNotifications + ")";
×
3651
            }
3652
        }
3653

3654
        @java.lang.SuppressWarnings("all")
3655
        public static SarifLog.Invocation.InvocationBuilder builder() {
3656
            return new SarifLog.Invocation.InvocationBuilder();
1✔
3657
        }
3658

3659
        @java.lang.SuppressWarnings("all")
3660
        public SarifLog.Invocation.InvocationBuilder toBuilder() {
3661
            return new SarifLog.Invocation.InvocationBuilder().executionSuccessful(this.executionSuccessful).toolConfigurationNotifications(this.toolConfigurationNotifications).toolExecutionNotifications(this.toolExecutionNotifications);
×
3662
        }
3663

3664
        @java.lang.SuppressWarnings("all")
3665
        public Boolean getExecutionSuccessful() {
3666
            return this.executionSuccessful;
×
3667
        }
3668

3669
        @java.lang.SuppressWarnings("all")
3670
        public List<ToolConfigurationNotification> getToolConfigurationNotifications() {
3671
            return this.toolConfigurationNotifications;
×
3672
        }
3673

3674
        @java.lang.SuppressWarnings("all")
3675
        public List<ToolExecutionNotification> getToolExecutionNotifications() {
3676
            return this.toolExecutionNotifications;
×
3677
        }
3678

3679
        @java.lang.SuppressWarnings("all")
3680
        public SarifLog.Invocation setExecutionSuccessful(final Boolean executionSuccessful) {
3681
            this.executionSuccessful = executionSuccessful;
×
3682
            return this;
×
3683
        }
3684

3685
        @java.lang.SuppressWarnings("all")
3686
        public SarifLog.Invocation setToolConfigurationNotifications(final List<ToolConfigurationNotification> toolConfigurationNotifications) {
3687
            this.toolConfigurationNotifications = toolConfigurationNotifications;
×
3688
            return this;
×
3689
        }
3690

3691
        @java.lang.SuppressWarnings("all")
3692
        public SarifLog.Invocation setToolExecutionNotifications(final List<ToolExecutionNotification> toolExecutionNotifications) {
3693
            this.toolExecutionNotifications = toolExecutionNotifications;
×
3694
            return this;
×
3695
        }
3696

3697
        @java.lang.Override
3698
        @java.lang.SuppressWarnings("all")
3699
        public boolean equals(final java.lang.Object o) {
3700
            if (o == this) {
×
3701
                return true;
×
3702
            }
3703
            if (!(o instanceof SarifLog.Invocation)) {
×
3704
                return false;
×
3705
            }
3706
            final SarifLog.Invocation other = (SarifLog.Invocation) o;
×
3707
            if (!other.canEqual((java.lang.Object) this)) {
×
3708
                return false;
×
3709
            }
3710
            final java.lang.Object this$executionSuccessful = this.getExecutionSuccessful();
×
3711
            final java.lang.Object other$executionSuccessful = other.getExecutionSuccessful();
×
3712
            if (this$executionSuccessful == null ? other$executionSuccessful != null : !this$executionSuccessful.equals(other$executionSuccessful)) {
×
3713
                return false;
×
3714
            }
3715
            final java.lang.Object this$toolConfigurationNotifications = this.getToolConfigurationNotifications();
×
3716
            final java.lang.Object other$toolConfigurationNotifications = other.getToolConfigurationNotifications();
×
3717
            if (this$toolConfigurationNotifications == null ? other$toolConfigurationNotifications != null : !this$toolConfigurationNotifications.equals(other$toolConfigurationNotifications)) {
×
3718
                return false;
×
3719
            }
3720
            final java.lang.Object this$toolExecutionNotifications = this.getToolExecutionNotifications();
×
3721
            final java.lang.Object other$toolExecutionNotifications = other.getToolExecutionNotifications();
×
3722
            if (this$toolExecutionNotifications == null ? other$toolExecutionNotifications != null : !this$toolExecutionNotifications.equals(other$toolExecutionNotifications)) {
×
3723
                return false;
×
3724
            }
3725
            return true;
×
3726
        }
3727

3728
        @java.lang.SuppressWarnings("all")
3729
        protected boolean canEqual(final java.lang.Object other) {
3730
            return other instanceof SarifLog.Invocation;
×
3731
        }
3732

3733
        @java.lang.Override
3734
        @java.lang.SuppressWarnings("all")
3735
        public int hashCode() {
3736
            final int PRIME = 59;
×
3737
            int result = 1;
×
3738
            final java.lang.Object $executionSuccessful = this.getExecutionSuccessful();
×
3739
            result = result * PRIME + ($executionSuccessful == null ? 43 : $executionSuccessful.hashCode());
×
3740
            final java.lang.Object $toolConfigurationNotifications = this.getToolConfigurationNotifications();
×
3741
            result = result * PRIME + ($toolConfigurationNotifications == null ? 43 : $toolConfigurationNotifications.hashCode());
×
3742
            final java.lang.Object $toolExecutionNotifications = this.getToolExecutionNotifications();
×
3743
            result = result * PRIME + ($toolExecutionNotifications == null ? 43 : $toolExecutionNotifications.hashCode());
×
3744
            return result;
×
3745
        }
3746

3747
        @java.lang.Override
3748
        @java.lang.SuppressWarnings("all")
3749
        public java.lang.String toString() {
3750
            return "SarifLog.Invocation(executionSuccessful=" + this.getExecutionSuccessful() + ", toolConfigurationNotifications=" + this.getToolConfigurationNotifications() + ", toolExecutionNotifications=" + this.getToolExecutionNotifications() + ")";
×
3751
        }
3752
    }
3753

3754
    @java.lang.SuppressWarnings("all")
3755
    private static String defaultSchema() {
3756
        return "https://json.schemastore.org/sarif-2.1.0.json";
1✔
3757
    }
3758

3759
    @java.lang.SuppressWarnings("all")
3760
    private static String defaultVersion() {
3761
        return "2.1.0";
1✔
3762
    }
3763

3764
    @java.lang.SuppressWarnings("all")
3765
    SarifLog(final String schema, final String version, final List<Run> runs) {
1✔
3766
        this.schema = schema;
1✔
3767
        this.version = version;
1✔
3768
        this.runs = runs;
1✔
3769
    }
1✔
3770

3771

3772
    @java.lang.SuppressWarnings("all")
3773
    public static class SarifLogBuilder {
3774
        @java.lang.SuppressWarnings("all")
3775
        private boolean schemaSet;
3776
        @java.lang.SuppressWarnings("all")
3777
        private String schemaValue;
3778
        @java.lang.SuppressWarnings("all")
3779
        private boolean versionSet;
3780
        @java.lang.SuppressWarnings("all")
3781
        private String versionValue;
3782
        @java.lang.SuppressWarnings("all")
3783
        private List<Run> runs;
3784

3785
        @java.lang.SuppressWarnings("all")
3786
        SarifLogBuilder() {
1✔
3787
        }
1✔
3788

3789
        /**
3790
         * The URI of the JSON schema corresponding to the version.
3791
         * @return {@code this}.
3792
         */
3793
        @java.lang.SuppressWarnings("all")
3794
        public SarifLog.SarifLogBuilder schema(final String schema) {
3795
            this.schemaValue = schema;
×
3796
            schemaSet = true;
×
3797
            return this;
×
3798
        }
3799

3800
        /**
3801
         * The SARIF format version of this log file.
3802
         * @return {@code this}.
3803
         */
3804
        @java.lang.SuppressWarnings("all")
3805
        public SarifLog.SarifLogBuilder version(final String version) {
3806
            this.versionValue = version;
×
3807
            versionSet = true;
×
3808
            return this;
×
3809
        }
3810

3811
        /**
3812
         * The set of runs contained in this log file.
3813
         * @return {@code this}.
3814
         */
3815
        @java.lang.SuppressWarnings("all")
3816
        public SarifLog.SarifLogBuilder runs(final List<Run> runs) {
3817
            this.runs = runs;
1✔
3818
            return this;
1✔
3819
        }
3820

3821
        @java.lang.SuppressWarnings("all")
3822
        public SarifLog build() {
3823
            String schemaValue = this.schemaValue;
1✔
3824
            if (!this.schemaSet) {
1!
3825
                schemaValue = SarifLog.defaultSchema();
1✔
3826
            }
3827
            String versionValue = this.versionValue;
1✔
3828
            if (!this.versionSet) {
1!
3829
                versionValue = SarifLog.defaultVersion();
1✔
3830
            }
3831
            return new SarifLog(schemaValue, versionValue, this.runs);
1✔
3832
        }
3833

3834
        @java.lang.Override
3835
        @java.lang.SuppressWarnings("all")
3836
        public java.lang.String toString() {
3837
            return "SarifLog.SarifLogBuilder(schema$value=" + this.schemaValue + ", version$value=" + this.versionValue + ", runs=" + this.runs + ")";
×
3838
        }
3839
    }
3840

3841
    @java.lang.SuppressWarnings("all")
3842
    public static SarifLog.SarifLogBuilder builder() {
3843
        return new SarifLog.SarifLogBuilder();
1✔
3844
    }
3845

3846
    /**
3847
     * The URI of the JSON schema corresponding to the version.
3848
     */
3849
    @java.lang.SuppressWarnings("all")
3850
    public String getSchema() {
3851
        return this.schema;
×
3852
    }
3853

3854
    /**
3855
     * The SARIF format version of this log file.
3856
     */
3857
    @java.lang.SuppressWarnings("all")
3858
    public String getVersion() {
3859
        return this.version;
×
3860
    }
3861

3862
    /**
3863
     * The set of runs contained in this log file.
3864
     */
3865
    @java.lang.SuppressWarnings("all")
3866
    public List<Run> getRuns() {
3867
        return this.runs;
×
3868
    }
3869

3870
    /**
3871
     * The URI of the JSON schema corresponding to the version.
3872
     * @return {@code this}.
3873
     */
3874
    @java.lang.SuppressWarnings("all")
3875
    public SarifLog setSchema(final String schema) {
3876
        this.schema = schema;
×
3877
        return this;
×
3878
    }
3879

3880
    /**
3881
     * The SARIF format version of this log file.
3882
     * @return {@code this}.
3883
     */
3884
    @java.lang.SuppressWarnings("all")
3885
    public SarifLog setVersion(final String version) {
3886
        this.version = version;
×
3887
        return this;
×
3888
    }
3889

3890
    /**
3891
     * The set of runs contained in this log file.
3892
     * @return {@code this}.
3893
     */
3894
    @java.lang.SuppressWarnings("all")
3895
    public SarifLog setRuns(final List<Run> runs) {
3896
        this.runs = runs;
×
3897
        return this;
×
3898
    }
3899

3900
    @java.lang.Override
3901
    @java.lang.SuppressWarnings("all")
3902
    public boolean equals(final java.lang.Object o) {
3903
        if (o == this) {
×
3904
            return true;
×
3905
        }
3906
        if (!(o instanceof SarifLog)) {
×
3907
            return false;
×
3908
        }
3909
        final SarifLog other = (SarifLog) o;
×
3910
        if (!other.canEqual((java.lang.Object) this)) {
×
3911
            return false;
×
3912
        }
3913
        final java.lang.Object this$schema = this.getSchema();
×
3914
        final java.lang.Object other$schema = other.getSchema();
×
3915
        if (this$schema == null ? other$schema != null : !this$schema.equals(other$schema)) {
×
3916
            return false;
×
3917
        }
3918
        final java.lang.Object this$version = this.getVersion();
×
3919
        final java.lang.Object other$version = other.getVersion();
×
3920
        if (this$version == null ? other$version != null : !this$version.equals(other$version)) {
×
3921
            return false;
×
3922
        }
3923
        final java.lang.Object this$runs = this.getRuns();
×
3924
        final java.lang.Object other$runs = other.getRuns();
×
3925
        if (this$runs == null ? other$runs != null : !this$runs.equals(other$runs)) {
×
3926
            return false;
×
3927
        }
3928
        return true;
×
3929
    }
3930

3931
    @java.lang.SuppressWarnings("all")
3932
    protected boolean canEqual(final java.lang.Object other) {
3933
        return other instanceof SarifLog;
×
3934
    }
3935

3936
    @java.lang.Override
3937
    @java.lang.SuppressWarnings("all")
3938
    public int hashCode() {
3939
        final int PRIME = 59;
×
3940
        int result = 1;
×
3941
        final java.lang.Object $schema = this.getSchema();
×
3942
        result = result * PRIME + ($schema == null ? 43 : $schema.hashCode());
×
3943
        final java.lang.Object $version = this.getVersion();
×
3944
        result = result * PRIME + ($version == null ? 43 : $version.hashCode());
×
3945
        final java.lang.Object $runs = this.getRuns();
×
3946
        result = result * PRIME + ($runs == null ? 43 : $runs.hashCode());
×
3947
        return result;
×
3948
    }
3949

3950
    @java.lang.Override
3951
    @java.lang.SuppressWarnings("all")
3952
    public java.lang.String toString() {
3953
        return "SarifLog(schema=" + this.getSchema() + ", version=" + this.getVersion() + ", runs=" + this.getRuns() + ")";
×
3954
    }
3955
}
3956
// CPD-ON
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc