contentType.name = name;
contentType.priority = priority;
if ((fileExtensions != null && fileExtensions.length > 0) || (fileNames != null && fileNames.length > 0)) {
contentType.builtInAssociations = true;
contentType.fileSpecs = new ArrayList<>(fileExtensions.length + fileNames.length);
<BUG>for (int i = 0; i < fileNames.length; i++)
contentType.internalAddFileSpec(fileNames[i], FILE_NAME_SPEC | SPEC_PRE_DEFINED);
for (int i = 0; i < fileExtensions.length; i++)
contentType.internalAddFileSpec(fileExtensions[i], FILE_EXTENSION_SPEC | SPEC_PRE_DEFINED);
}</BUG>
contentType.defaultProperties = defaultProperties;

contentType.name = name;
contentType.priority = priority;
if ((fileExtensions != null && fileExtensions.length > 0) || (fileNames != null && fileNames.length > 0)) {
contentType.builtInAssociations = true;
contentType.fileSpecs = new ArrayList<>(fileExtensions.length + fileNames.length);
for (String fileName : fileNames)
contentType.internalAddFileSpec(fileName, FILE_NAME_SPEC | SPEC_PRE_DEFINED);
for (String fileExtension : fileExtensions)
contentType.internalAddFileSpec(fileExtension, FILE_EXTENSION_SPEC | SPEC_PRE_DEFINED);
}
contentType.defaultProperties = defaultProperties;
