[
https://issues.apache.org/jira/browse/PDFBOX-6387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr updated PDFBOX-6387:
------------------------------------
Description:
The javadoc and these 4 parameters and the implementation are confusing:
{noformat}
setupMixed(-1) mainMem=true tempFile=true memRestricted=false
maxMem=-1 maxStore=-1
setupMainMemoryOnly() mainMem=true tempFile=false memRestricted=false
maxMem=-1 maxStore=-1
setupMixed(0) mainMem=false tempFile=true memRestricted=true
maxMem=0 maxStore=-1
setupTempFileOnly() mainMem=false tempFile=true memRestricted=false
maxMem=-1 maxStore=-1
{noformat}
Copilot recommends to change the javadoc, I prefer to adjust the implementation.
was:
The javadoc and these 4 parameters and the implementation are confusing:
setupMixed(-1) mainMem=true tempFile=true memRestricted=false
maxMem=-1 maxStore=-1
setupMainMemoryOnly() mainMem=true tempFile=false memRestricted=false
maxMem=-1 maxStore=-1
setupMixed(0) mainMem=false tempFile=true memRestricted=true
maxMem=0 maxStore=-1
setupTempFileOnly() mainMem=false tempFile=true memRestricted=false
maxMem=-1 maxStore=-1
Copilot recommends to change the javadoc, I prefer to adjust the
implementation.
> MemoryUsageSetting.setupMixed's javadoc names two equivalences, and neither
> holds
> ---------------------------------------------------------------------------------
>
> Key: PDFBOX-6387
> URL: https://issues.apache.org/jira/browse/PDFBOX-6387
> Project: PDFBox
> Issue Type: Sub-task
> Components: Documentation, IO
> Affects Versions: 3.0.8 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Minor
> Fix For: 3.0.9 PDFBox, 4.0.0
>
>
> The javadoc and these 4 parameters and the implementation are confusing:
> {noformat}
> setupMixed(-1) mainMem=true tempFile=true memRestricted=false
> maxMem=-1 maxStore=-1
> setupMainMemoryOnly() mainMem=true tempFile=false memRestricted=false
> maxMem=-1 maxStore=-1
> setupMixed(0) mainMem=false tempFile=true memRestricted=true
> maxMem=0 maxStore=-1
> setupTempFileOnly() mainMem=false tempFile=true memRestricted=false
> maxMem=-1 maxStore=-1
> {noformat}
> Copilot recommends to change the javadoc, I prefer to adjust the
> implementation.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]