src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/EnumConstantBuilder.java

changeset 1606
ccbe7ffdd867
parent 1410
bfec2a1cc869
child 2525
2eb010b6cb22
equal deleted inserted replaced
1605:94e67bed460d 1606:ccbe7ffdd867
1 /* 1 /*
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
85 this.writer = writer; 85 this.writer = writer;
86 visibleMemberMap = 86 visibleMemberMap =
87 new VisibleMemberMap( 87 new VisibleMemberMap(
88 classDoc, 88 classDoc,
89 VisibleMemberMap.ENUM_CONSTANTS, 89 VisibleMemberMap.ENUM_CONSTANTS,
90 configuration.nodeprecated); 90 configuration);
91 enumConstants = 91 enumConstants =
92 new ArrayList<ProgramElementDoc>(visibleMemberMap.getMembersFor(classDoc)); 92 new ArrayList<ProgramElementDoc>(visibleMemberMap.getMembersFor(classDoc));
93 if (configuration.getMemberComparator() != null) { 93 if (configuration.getMemberComparator() != null) {
94 Collections.sort(enumConstants, configuration.getMemberComparator()); 94 Collections.sort(enumConstants, configuration.getMemberComparator());
95 } 95 }

mercurial