Skip to content

Commit

Permalink
use constant
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Lamy <olamy@apache.org>
  • Loading branch information
olamy committed Oct 17, 2023
1 parent c210043 commit fe0fbdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void deconfigure(WebAppContext context) throws Exception
* exit depends on value of persistTempDirectory.
* </li>
* <li>
* Iff jakarta.servlet.context.tempdir context attribute is set for
* If {@value jakarta.servlet.ServletContext#TEMPDIR} context attribute is set for
* this webapp &amp;&amp; exists &amp;&amp; writeable, then use it. Set delete on exit depends on
* value of persistTempDirectory.
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1997,7 +1997,7 @@ private void setNonComplianceViolationsOnRequest()
private MultiPartFormInputStream newMultiParts(MultipartConfigElement config, int maxParts) throws IOException
{
return new MultiPartFormInputStream(getInputStream(), getContentType(), config,
(_context != null ? (File)_context.getAttribute("jakarta.servlet.context.tempdir") : null), maxParts);
(_context != null ? (File)_context.getAttribute(ServletContext.TEMPDIR) : null), maxParts);
}

@Override
Expand Down

0 comments on commit fe0fbdd

Please sign in to comment.