< prev index next >
jaxws/src/java.xml.ws/share/classes/javax/xml/soap/FactoryFinder.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -243,14 +243,18 @@
}
}
return null;
}
- private static String getSystemProperty(String property) {
+ private static String getSystemProperty(final String property) {
logger.log(Level.FINE, "Checking system property {0}", property);
- String value = AccessController.doPrivileged(
- (PrivilegedAction<String>) () -> System.getProperty(property));
+ String value = AccessController.doPrivileged(new PrivilegedAction<String>() {
+ @Override
+ public String run() {
+ return System.getProperty(property);
+ }
+ });
logFound(value);
return value;
}
private static void logFound(String value) {
< prev index next >