Skip to content

Commit

Permalink
HDFS-17637. Fix spotbugs in HttpFSFileSystem#getXAttr (apache#7099) C…
Browse files Browse the repository at this point in the history
…ontributed by Hualong Zhang.

Reviewed-by: Shilun Fan <[email protected]>
Signed-off-by: Shilun Fan <[email protected]>
  • Loading branch information
zhtttylz authored Oct 6, 2024
1 parent 5ea3a1b commit 1f0d9df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ public byte[] getXAttr(Path f, String name) throws IOException {
JSONObject json = (JSONObject) HttpFSUtils.jsonParse(conn);
Map<String, byte[]> xAttrs = createXAttrMap(
(JSONArray) json.get(XATTRS_JSON));
return xAttrs != null ? xAttrs.get(name) : null;
return xAttrs.get(name);
}

/** Convert xAttrs json to xAttrs map */
Expand Down

0 comments on commit 1f0d9df

Please sign in to comment.