Skip to content

Commit

Permalink
Fix #12001: 14.0.1 Preserve order of constants (#12005)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed May 24, 2024
1 parent 24b9bf3 commit 0f9217c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
*/
package org.primefaces.component.importconstants;

import java.util.HashMap;
import java.util.LinkedHashMap;

import javax.faces.FacesException;

/**
* Custom {@link HashMap} which throws an {@link FacesException} if the key/constant does not exist.
* Custom {@link LinkedHashMap} which throws an {@link FacesException} if the key/constant does not exist.
*
* @param <K> The key type.
* @param <V> The value type.
*/
public class ConstantsHashMap<K, V> extends HashMap<K, V> {
public class ConstantsHashMap<K, V> extends LinkedHashMap<K, V> {

private static final long serialVersionUID = 1L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
*/
package org.primefaces.component.importenum;

import java.util.HashMap;
import java.util.LinkedHashMap;

import javax.faces.FacesException;

/**
* Custom {@link HashMap} which throws an {@link FacesException} if the key/constant does not exist.
* Custom {@link LinkedHashMap} which throws an {@link FacesException} if the key/constant does not exist.
*
* @param <K> The key type.
* @param <V> The value type.
*/
public class EnumHashMap<K, V> extends HashMap<K, V> {
public class EnumHashMap<K, V> extends LinkedHashMap<K, V> {

private static final long serialVersionUID = 1L;

Expand Down

0 comments on commit 0f9217c

Please sign in to comment.