File tree 2 files changed +6
-2
lines changed
src/test/java/com/google/gson/integration
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 146
146
Bundle-ContactAddress: ${project.parent.url}
147
147
148
148
# Optional dependency for JDK's sun.misc.Unsafe
149
+ # Optional dependency to google.errorprone
149
150
# https://bnd.bndtools.org/chapters/920-faq.html#remove-unwanted-imports-
150
- Import-Package: sun.misc;resolution:=optional, *
151
+ Import-Package: sun.misc;resolution:=optional, com.google.errorprone.*;resolution:=optional, *
151
152
152
153
-removeheaders: Private-Package
153
154
Original file line number Diff line number Diff line change @@ -114,7 +114,10 @@ public void testImports() throws Exception {
114
114
.containsExactly (
115
115
// Dependency on JDK's sun.misc.Unsafe should be optional
116
116
"sun.misc;resolution:=optional" ,
117
- "com.google.errorprone.annotations;version=\" " + errorProneVersionRange + "\" " );
117
+ // Dependency on error prone should be optional
118
+ "com.google.errorprone.annotations;resolution:=optional;version=\" "
119
+ + errorProneVersionRange
120
+ + "\" " );
118
121
119
122
// Should not contain any import for Gson's own packages, see
120
123
// https://github.com/google/gson/pull/2735#issuecomment-2330047410
You can’t perform that action at this time.
0 commit comments