ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/util/compat/JrePlatform.java

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

      
    
Rootfs path

      
    
Size
1812 (1.8 KB)
MD5
be25e3b8627d88267727e6b98adc9ece
SHA1
b68ab6147ff04ff39d74cd5f8fd477a2c32e02ec
SHA256
7b1b965de922a5099bdfe44028419979c4671dc4756c98f9ae7cb8e2761d01e2
SHA512

      
    
SHA1_git
5930029e581a29f8841902e4e4ffdd399a10d8a9
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
JrePlatform.java | 1.8 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 org.apache.tomcat.util.compat; import java.util.Locale; public class JrePlatform { private static final String OS_NAME_PROPERTY = "os.name"; static { /* * There are a few places where a) the behaviour of the Java API depends on the underlying platform and b) those * behavioural differences have an impact on Tomcat. * * Tomcat therefore needs to be able to determine the platform it is running on to account for those * differences. * * In an ideal world this code would not exist. */ // This check is derived from the check in Apache Commons Lang String osName = System.getProperty(OS_NAME_PROPERTY); IS_MAC_OS = osName.toLowerCase(Locale.ENGLISH).startsWith("mac os x"); IS_WINDOWS = osName.startsWith("Windows"); } public static final boolean IS_MAC_OS; public static final boolean IS_WINDOWS; }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
49.17
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