MCPcopy Create free account
hub / github.com/ReadyTalk/avian / getenv

Method getenv

classpath/java/lang/System.java:134–141  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

132 }
133
134 public static String getenv(String name) throws NullPointerException,
135 SecurityException {
136 if (getSecurityManager() != null) { // is this allowed?
137 getSecurityManager().
138 checkPermission(new RuntimePermission("getenv." + name));
139 }
140 return getenv().get(name);
141 }
142
143 public static Map<String, String> getenv() throws SecurityException {
144 if (getSecurityManager() != null) { // is this allowed?

Callers

nothing calls this directly

Calls 8

getSecurityManagerMethod · 0.95
getEnvironmentMethod · 0.95
getMethod · 0.65
indexOfMethod · 0.65
lengthMethod · 0.65
putMethod · 0.65
checkPermissionMethod · 0.45
substringMethod · 0.45

Tested by

no test coverage detected