ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/jakarta/servlet/TestServletResponse.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/jakarta/servlet/TestServletResponse.java
Status
scanned
Type
file
Name
TestServletResponse.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
1393 (1.4 KB)
MD5
939584c9ebac8d51f0bbdc0fb5ff3ba3
SHA1
0dab5f834aa3787346b0f4589c87d61db86ae840
SHA256
3b30aecc095e1456918b72b8db94cd6aa71818953cfd4d89e94332b6964e310a
SHA512

      
    
SHA1_git
b7a142eb20e9dddc53fe477b4deb9755fe7bd8c0
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestServletResponse.java | 1.4 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jakarta.servlet; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import org.junit.Test; import org.apache.catalina.filters.TesterHttpServletResponse; public class TestServletResponse { @Test public void testSetCharacterEncodingNull() throws Exception { ServletResponse servletResponse = new TesterHttpServletResponse(); servletResponse.setCharacterEncoding(StandardCharsets.UTF_8); // Should not fail with an NPE servletResponse.setCharacterEncoding((Charset) null); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
70.41
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9