langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/SerializedFormBuilder.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2011, 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 |
373 * @param classDoc the class to print the overview for. |
373 * @param classDoc the class to print the overview for. |
374 * @param classContentTree content tree to which the documentation will be added |
374 * @param classContentTree content tree to which the documentation will be added |
375 */ |
375 */ |
376 public void buildFieldSerializationOverview(ClassDoc classDoc, Content classContentTree) { |
376 public void buildFieldSerializationOverview(ClassDoc classDoc, Content classContentTree) { |
377 if (classDoc.definesSerializableFields()) { |
377 if (classDoc.definesSerializableFields()) { |
378 FieldDoc serialPersistentField = |
378 FieldDoc serialPersistentField = classDoc.serializableFields()[0]; |
379 Util.asList(classDoc.serializableFields()).get(0); |
|
380 // Check to see if there are inline comments, tags or deprecation |
379 // Check to see if there are inline comments, tags or deprecation |
381 // information to be printed. |
380 // information to be printed. |
382 if (fieldWriter.shouldPrintOverview(serialPersistentField)) { |
381 if (fieldWriter.shouldPrintOverview(serialPersistentField)) { |
383 Content serializableFieldsTree = fieldWriter.getSerializableFieldsHeader(); |
382 Content serializableFieldsTree = fieldWriter.getSerializableFieldsHeader(); |
384 Content fieldsOverviewContentTree = fieldWriter.getFieldsContentHeader(true); |
383 Content fieldsOverviewContentTree = fieldWriter.getFieldsContentHeader(true); |