Skip to content

Commit

Permalink
eclipse-ee4j#1624: Order of Exceptions in generated classes is non-de…
Browse files Browse the repository at this point in the history
…terministic

Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Apr 5, 2022
1 parent 4691d4e commit 7714520
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@

package com.sun.codemodel;

import com.sun.codemodel.util.ClassNameComparator;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

/**
* JavaDoc comment.
Expand All @@ -28,13 +31,13 @@ public class JDocComment extends JCommentPart implements JGenerable {
private static final long serialVersionUID = 1L;

/** list of @param tags */
private final transient Map<String,JCommentPart> atParams = new HashMap<>();
private final transient Map<String,JCommentPart> atParams = new TreeMap<>();

/** list of xdoclets */
private final transient Map<String,Map<String,String>> atXdoclets = new HashMap<>();
private final transient Map<String,Map<String,String>> atXdoclets = new TreeMap<>();

/** list of @throws tags */
private final transient Map<JClass,JCommentPart> atThrows = new HashMap<>();
private final transient Map<JClass,JCommentPart> atThrows = new TreeMap<>(ClassNameComparator.theInstance);

/**
* The @return tag part.
Expand Down

0 comments on commit 7714520

Please sign in to comment.