Skip to content

Commit

Permalink
Preserve the insertion-order of errata details
Browse files Browse the repository at this point in the history
  • Loading branch information
HoussemNasri committed Oct 1, 2023
1 parent 6912ded commit 73c5b89
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
Expand Down Expand Up @@ -134,12 +134,9 @@ public class ErrataHandler extends BaseHandler {
*/
@ReadOnly
public Map<String, Object> getDetails(User loggedInUser, String advisoryName) throws FaultException {
// Get the logged in user. We don't care what roles this user has, we
// just want to make sure the caller is logged in.

Errata errata = lookupAccessibleErratum(advisoryName, empty(), loggedInUser.getOrg());

Map<String, Object> errataMap = new HashMap<>();
Map<String, Object> errataMap = new LinkedHashMap<>();

errataMap.put("id", errata.getId());
if (errata.getIssueDate() != null) {
Expand Down

0 comments on commit 73c5b89

Please sign in to comment.