~ubuntu-branches/ubuntu/trusty/ehcache/trusty

« back to all changes in this revision

Viewing changes to src/main/java/net/sf/ehcache/pool/sizeof/JvmInformation.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2013-05-06 14:53:07 UTC
  • mfrom: (1.1.7) (2.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130506145307-v5bhw5yu70re00l3
Tags: 2.6.7-1
* Team upload.
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 *  Copyright 2003-2010 Terracotta, Inc.
 
2
 *  Copyright Terracotta, Inc.
3
3
 *
4
4
 *  Licensed under the Apache License, Version 2.0 (the "License");
5
5
 *  you may not use this file except in compliance with the License.
773
773
    }
774
774
 
775
775
    /**
 
776
     * Return true if the VM's vendor is Apple
 
777
     * @return true, if OS X
 
778
     */
 
779
    public static boolean isOSX() {
 
780
        final String vendor = System.getProperty("java.vm.vendor");
 
781
        return vendor != null && vendor.startsWith("Apple");
 
782
    }
 
783
 
 
784
    /**
776
785
     * Returns true if VM vendor is Hotspot
777
786
     * @return true, if Hotspot
778
787
     */