|
15 | 15 | limitations under the License. |
16 | 16 | --> |
17 | 17 | <FindBugsFilter> |
18 | | - |
19 | | - <!-- same code as in FileSystem is triggering the same warning. --> |
20 | | - <Match> |
21 | | - <Class name="org.apache.hadoop.fs.s3native.S3xLoginHelper" /> |
22 | | - <Method name="checkPath" /> |
23 | | - <Bug pattern="ES_COMPARING_STRINGS_WITH_EQ" /> |
24 | | - </Match> |
25 | 18 | <!-- Redundant null check makes code clearer, future-proof here. --> |
26 | 19 | <Match> |
27 | | - <Class name="org.apache.hadoop.fs.s3a.S3AFileSystem" /> |
28 | | - <Method name="s3Exists" /> |
| 20 | + <Class name="org.apache.hadoop.fs.gs.GoogleCloudStorage" /> |
| 21 | + <Method name="createItemInfoForBlob" /> |
29 | 22 | <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" /> |
30 | 23 | </Match> |
31 | | - <!-- we are using completable futures, so ignore the Future which submit() returns --> |
32 | | - <Match> |
33 | | - <Class name="org.apache.hadoop.fs.s3a.impl.InputStreamCallbacksImpl" /> |
34 | | - <Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE" /> |
35 | | - </Match> |
36 | 24 |
|
37 | | - <!-- |
38 | | - findbugs gets confused by lambda expressions in synchronized methods |
39 | | - and considers references to fields to be unsynchronized. |
40 | | - As you can't disable the methods individually, we have to disable |
41 | | - them for the entire class. |
42 | | - --> |
43 | | - <Match> |
44 | | - <Class name="org.apache.hadoop.fs.s3a.S3AInputStream"/> |
45 | | - <Bug pattern="IS2_INCONSISTENT_SYNC"/> |
46 | | - </Match> |
47 | | - <!-- |
48 | | - findbugs reporting RV ignored. Not true. |
49 | | - "Return value of S3AReadOpContext.getReadInvoker() ignored, |
50 | | - but method has no side effect" |
51 | | - --> |
52 | | - <Match> |
53 | | - <Class name="org.apache.hadoop.fs.s3a.S3AInputStream"/> |
54 | | - <Method name="reopen"/> |
55 | | - <Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT"/> |
56 | | - </Match> |
57 | | - <Match> |
58 | | - <Class name="org.apache.hadoop.fs.s3a.S3AFileSystem"/> |
59 | | - <Method name="openFileWithOptions"/> |
60 | | - <Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE"/> |
61 | | - </Match> |
62 | | - <Match> |
63 | | - <Class name="org.apache.hadoop.fs.s3a.S3AFileSystem"/> |
64 | | - <Field name="futurePool"/> |
65 | | - <Bug pattern="IS2_INCONSISTENT_SYNC"/> |
66 | | - </Match> |
67 | | - <Match> |
68 | | - <Class name="org.apache.hadoop.fs.s3a.s3guard.S3GuardTool$BucketInfo"/> |
69 | | - <Method name="run"/> |
70 | | - <Bug pattern="SF_SWITCH_FALLTHROUGH"/> |
71 | | - </Match> |
72 | | - |
73 | | - <!-- |
74 | | - Some of the S3A Instrumentation classes increment volatile references from |
75 | | - within synchronized contexts; they use volatile to keep the cost |
76 | | - of these updates and reading them down. |
77 | | - --> |
78 | | - <Match> |
79 | | - <Class name="org.apache.hadoop.fs.s3a.S3AInstrumentation$InputStreamStatisticsImpl"/> |
80 | | - <Bug pattern="VO_VOLATILE_INCREMENT"/> |
81 | | - </Match> |
82 | | - |
83 | | - <!-- Ignore return value from this method call --> |
84 | | - <Match> |
85 | | - <Class name="org.apache.hadoop.fs.s3a.impl.StoreContext"/> |
86 | | - <Method name="submit"/> |
87 | | - <Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE"/> |
88 | | - </Match> |
89 | 25 | </FindBugsFilter> |
0 commit comments