jaxws/src/java.xml.ws/share/classes/javax/xml/soap/FactoryFinder.java
changeset 43852 93a527059d8a
parent 36263 d5333008e409
equal deleted inserted replaced
43752:3c68ef249093 43852:93a527059d8a
     1 /*
     1 /*
     2  * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   243             }
   243             }
   244         }
   244         }
   245         return null;
   245         return null;
   246     }
   246     }
   247 
   247 
   248     private static String getSystemProperty(String property) {
   248     private static String getSystemProperty(final String property) {
   249         logger.log(Level.FINE, "Checking system property {0}", property);
   249         logger.log(Level.FINE, "Checking system property {0}", property);
   250         String value = AccessController.doPrivileged(
   250         String value = AccessController.doPrivileged(new PrivilegedAction<String>() {
   251                 (PrivilegedAction<String>) () -> System.getProperty(property));
   251             @Override
       
   252             public String run() {
       
   253                 return System.getProperty(property);
       
   254             }
       
   255         });
   252         logFound(value);
   256         logFound(value);
   253         return value;
   257         return value;
   254     }
   258     }
   255 
   259 
   256     private static void logFound(String value) {
   260     private static void logFound(String value) {