[
https://issues.apache.org/jira/browse/PDFBOX-6387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18155695#comment-18155695
]
ASF subversion and git services commented on PDFBOX-6387:
---------------------------------------------------------
Commit 1941398 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1941398 ]
PDFBOX-6387: adjust implementation to javadoc
> 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]