-
Notifications
You must be signed in to change notification settings - Fork 78
/
spotbugs-exclude-filter.xml
299 lines (284 loc) · 10.3 KB
/
spotbugs-exclude-filter.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
<?xml version="1.0"?>
<!--
This file contains some false positive bugs detected by spotbugs. Their
false positive nature has been analyzed individually and they have been
put here to instruct spotbugs it must ignore them.
-->
<FindBugsFilter>
<!-- the following serialization classes already takes care of non-serializable parts. -->
<Match>
<Or>
<Class name="~.*\.DSSTPropagator\$MeanPlusShortPeriodicMapper\$DataTransferObject$" />
<Class name="~.*\.IntegratedEphemeris\$DataTransferObject$" />
<Class name="~.*\.KeplerianPropagator\$DataTransferObject$" />
<Class name="~.*\.EcksteinHechlerPropagator\$DataTransferObject$" />
<Class name="~.*\.SigmaEigenvectorsCovarianceKey$" />
</Or>
<Bug pattern="SE_BAD_FIELD" />
</Match>
<!-- the following classes are serialized using writeReplace/readResolve with proxy classes,
so the is no real problem about the base class not having a proper constructor. -->
<Match>
<Or>
<Class name="~.*\.AbstractAnalyticalPropagator\$BoundedPropagatorView$" />
<Class name="~.*\.KeplerianPropagator$" />
<Class name="~.*\.EcksteinHechlerPropagator$" />
<Class name="~.*\.Ephemeris$" />
<Class name="~.*\.GlobalIonosphereMapModel$" />
<Class name="~.*\.MarshallSolarActivityFutureEstimation$" />
<Class name="~.*\.CssiSpaceWeatherData$" />
<Class name="~.*\.IntegratedEphemeris$" />
<Class name="~.*\.DSSTPropagator\$MeanPlusShortPeriodicMapper$" />
<Class name="~.*\.NumericalPropagator\$OsculatingMapper$" />
</Or>
<Bug pattern="SE_NO_SUITABLE_CONSTRUCTOR" />
</Match>
<Match>
<Or>
<Class name="~.*\.DSSTPropagator\$MeanPlusShortPeriodicMapper$" />
<Class name="~.*\.AbstractGaussianContribution\$GaussianShortPeriodicCoefficients$" />
<Class name="~.*\.DSSTThirdBody\$ThirdBodyShortPeriodicCoefficients$" />
<Class name="~.*\.TesseralContributionContribution\$TesseralShortPeriodicCoefficients$" />
<Class name="~.*\.ZonalContribution\$ZonalShortPeriodicCoefficients$" />
<Class name="~.*\.FieldOfView$" />
<Class name="~.*\.FootprintOverlapDetector$" />
<Class name="~.*\.GeographicZoneDetector$" />
<Class name="~.*\.SaastamoinenModel$" />
<Class name="~.*\.EventEnablingPredicateFilter$" />
<Class name="~.*\.FixedTransformProvider$" />
<Class name="~.*\.InterpolatingTransformProvider$" />
<Class name="~.*\.ShiftingTransformProvider$" />
<Class name="~.*\.MODProvider$" />
<Class name="~.*\.TIRFProvider$" />
<Class name="~.*\.CartesianOrbit$" />
<Class name="~.*\.EstimatedEarthFrameProvider$" />
<Class name="~.*\.GNSSDate$" />
<Class name="~.*\.GLONASSDate$" />
<Class name="~.*\.PositionAngleDetector$" />
</Or>
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
</Match>
<!-- the following are in fact false positives from SpotBugs -->
<!-- their occurrence depends on the java compiler used -->
<Match>
<Class name="~.*\.EcksteinHechlerPropagator$"/>
<Method name="computeMeanParameters" />
<Or>
<Local name="epsilon" />
<Local name="thresholdAngles" />
</Or>
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.DTM2000$"/>
<Method name="computation" />
<Or>
<Local name="zlb" />
<Local name="zlbre" />
</Or>
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.SDP4$"/>
<Method name="thetaG" />
<Or>
<Local name="omega_E" />
<Local name="seconds_per_day" />
<Local name="jd_2000" />
</Or>
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.TLEPropagator$"/>
<Method name="computePVCoordinates" />
<Or>
<Local name="newtonRaphsonEpsilon" />
<Local name="cv" />
</Or>
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.JPLEphemeridesLoader$"/>
<Method name="tooFarRange" />
<Local name="fiftyDays" />
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.JB2006$"/>
<Method name="getDensity" />
<Local name="FACT1" />
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.JB2006$"/>
<Method name="dTc" />
<Local name="HP" />
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.OneAxisEllipsoid$"/>
<Method name="transform" />
<Local name="epsPhi" />
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.RangeTroposphericDelayModifier$"/>
<Method name="modify" />
<Local name="djac" />
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.RangeRateTroposphericDelayModifier$"/>
<Method name="modify" />
<Local name="djac" />
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.TurnAroundRangeTroposphericDelayModifier$"/>
<Method name="modify" />
<Or>
<Local name="primaryDjac" />
<Local name="secondaryDjac" />
</Or>
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.IERSConventions\$1"/>
<Method name="getEOPTidalCorrection" />
<Or>
<Local name="deciMilliS" />
</Or>
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.IERSConventions\$1"/>
<Method name="getXYSpXY2Function" />
<Or>
<Local name="fYCosOm" />
<Local name="fYCos2FDOm" />
</Or>
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.IERSConventions\$1"/>
<Method name="getXYSpXY2Function" />
<Or>
<Local name="fST" />
<Local name="fST3" />
</Or>
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.IERSConventions\$2"/>
<Method name="getGASTFunction" />
<Local name="microAS" />
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<Match>
<Class name="~.*\.IERSConventions\$2"/>
<Method name="getSolidPoleTide" />
<Local name="xp0" />
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<!-- the approximate constants do belong to the models -->
<Match>
<Class name="~.*\.JB2006$"/>
<Bug pattern="CNT_ROUGH_CONSTANT_VALUE" />
</Match>
<Match>
<Class name="~.*\.SEMParser$"/>
<Bug pattern="CNT_ROUGH_CONSTANT_VALUE" />
</Match>
<Match>
<Class name="~.*\.Units$"/>
<Bug pattern="CNT_ROUGH_CONSTANT_VALUE" />
</Match>
<Match>
<Class name="~.*\.IonosphereKlobucharMessage$"/>
<Bug pattern="CNT_ROUGH_CONSTANT_VALUE" />
</Match>
<!-- The following is a false positive from SpotBugs -->
<Match>
<Class name="~.*\.IntegratedEphemeris\$LocalProvider$"/>
<Method name="getAdditionalState" />
<Bug pattern="BC_VACUOUS_INSTANCEOF" />
</Match>
<!-- The following equality tests are intentional and needed for semantic purposes -->
<Match>
<Class name="org.orekit.time.TimeComponents" />
<Method name="equals" params="java.lang.Object" returns="boolean" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
<Match>
<Class name="org.orekit.orbits.KeplerianOrbit"/>
<Or>
<Method name ="eMeSinE" params="double,double" returns="double" />
<Method name ="eMeSinE" params="org.hipparchus.analysis.differentiation.DerivativeStructure,org.hipparchus.analysis.differentiation.DerivativeStructure" returns="org.hipparchus.analysis.differentiation.DerivativeStructure" />
</Or>
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
<Match>
<Class name="org.orekit.propagation.analytical.tle.TLE" />
<Method name="equals" params="java.lang.Object" returns="boolean" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
<!-- The following internal representation exposure are intentional,
They are used to pass data back and forth between classes
-->
<Match>
<Class name="org.orekit.forces.gravity.HolmesFeatherstoneAttractionModel$GradientHessian"/>
<Or>
<Method name="getGradient" params="" returns="double[]" />
<Method name="getHessian" params="" returns="double[][]" />
</Or>
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<Match>
<Class name="org.orekit.forces.gravity.HolmesFeatherstoneAttractionModel$GradientHessian"/>
<Method name="<init>" params="double[],double[][]" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" />
</Match>
<!-- the following is an intended switch fall-through in the SP3Parser -->
<Match>
<Class name="~.*\.SP3Parser$"/>
<Method name="parseHeaderLine" />
<Bug pattern="SF_SWITCH_FALLTHROUGH" />
</Match>
<!-- the following is a false positive as the listFiles method is called
on a parameter already known to be a directory (so it does not return null) -->
<Match>
<Class name="~.*\.DirectoryCrawler$"/>
<Method name="feed" params="java.util.regex.Pattern,org.orekit.data.DataLoader,java.io.File" returns="boolean" />
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" />
</Match>
<!-- the following is a false positive as the inverseCrossProducts method either
returns eatly, throws an exception or sets the omega variable to non-null -->
<Match>
<Class name="~.*\.FieldAngularCoordinates$"/>
<Method name="inverseCrossProducts" />
<Bug pattern="NP_NULL_ON_SOME_PATH_EXCEPTION" />
</Match>
<!-- the following is a false positive as the Direction.next() always return non-null
and Direction is an enumerate that can't be changed -->
<Match>
<Class name="~.*\.Mesh$"/>
<Method name="getTaxicabBoundary" params="boolean" />
<Bug pattern="NP_NULL_PARAM_DEREF" />
</Match>
<!-- the following is a false positive as this should never happen
with files embedded in Orekit -->
<Match>
<Class name="~.*\.IERSConventions$"/>
<Method name="loadLoveNumbers" />
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
</Match>
<!-- The following is intentional.
At the construction, the mapper is not set yet However, if the attitude provider is
changed afterwards, it must be changed in the mapper too
-->
<Match>
<Class name="~.*\.IntegratedEphemeris$"/>
<Method name="setAttitudeProvider" />
<Bug pattern="UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR" />
</Match>
</FindBugsFilter>