Tilman Hausherr created PDFBOX-6387:
---------------------------------------

             Summary: 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
             Fix For: 3.0.9 PDFBox, 4.0.0


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.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to