Skip to content

Commit 2be4be7

Browse files
Copilotbrunoborges
andcommitted
Add SpotBugs annotations to suppress EI_EXPOSE_REP2 warnings
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
1 parent 222f4e1 commit 2be4be7

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@
6262
<version>2.20.1</version>
6363
</dependency>
6464

65+
<!-- SpotBugs annotations for suppressing warnings -->
66+
<dependency>
67+
<groupId>com.github.spotbugs</groupId>
68+
<artifactId>spotbugs-annotations</artifactId>
69+
<version>4.9.8</version>
70+
<scope>provided</scope>
71+
</dependency>
72+
6573
<!-- Test dependencies -->
6674
<dependency>
6775
<groupId>org.junit.jupiter</groupId>

src/main/java/com/github/copilot/sdk/events/package-info.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
*--------------------------------------------------------------------------------------------*/
44

5+
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value = "EI_EXPOSE_REP2", justification = "DTOs for JSON deserialization - low risk")
56
/**
67
* Event types emitted during Copilot session processing.
78
*

src/main/java/com/github/copilot/sdk/json/package-info.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
*--------------------------------------------------------------------------------------------*/
44

5+
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value = "EI_EXPOSE_REP2", justification = "DTOs for JSON deserialization - low risk")
56
/**
67
* Configuration classes and data transfer objects for the Copilot SDK.
78
*

0 commit comments

Comments
 (0)