mirror of https://github.com/apache/poi.git
make array into immutable collection (spotbugs issue)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893862 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
41a48d80bc
commit
b2f0d5fc5a
|
@ -18,6 +18,10 @@ package org.apache.poi.hwpf.model;
|
||||||
|
|
||||||
import org.apache.poi.util.Internal;
|
import org.apache.poi.util.Internal;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Document text parts that can have text pieces (CPs)
|
* Document text parts that can have text pieces (CPs)
|
||||||
*/
|
*/
|
||||||
|
@ -41,15 +45,12 @@ public enum SubdocumentType {
|
||||||
HEADER_TEXTBOX();
|
HEADER_TEXTBOX();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of {@link SubdocumentType}s ordered by document position and FIB
|
* List of {@link SubdocumentType}s ordered by document position and FIB
|
||||||
* field order
|
* field order
|
||||||
*/
|
*/
|
||||||
public static final SubdocumentType[] ORDERED = new SubdocumentType[] {
|
public static final List<SubdocumentType> ORDERED = Collections.unmodifiableList(
|
||||||
MAIN, FOOTNOTE, HEADER, MACRO, ANNOTATION, ENDNOTE, TEXTBOX,
|
Arrays.asList(
|
||||||
HEADER_TEXTBOX };
|
MAIN, FOOTNOTE, HEADER, MACRO, ANNOTATION, ENDNOTE, TEXTBOX, HEADER_TEXTBOX
|
||||||
|
)
|
||||||
private SubdocumentType()
|
);
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue