langtools/src/share/classes/com/sun/tools/javac/processing/ServiceProxy.java
changeset 1789 7ac8c0815000
parent 1264 076a3cde30d5
child 5520 86e4b9a9da40
equal deleted inserted replaced
1788:ced0a1a7ec80 1789:7ac8c0815000
    53         }
    53         }
    54     }
    54     }
    55 
    55 
    56     private static final String prefix = "META-INF/services/";
    56     private static final String prefix = "META-INF/services/";
    57 
    57 
    58     private static void fail(Class service, String msg)
    58     private static void fail(Class<?> service, String msg)
    59             throws ServiceConfigurationError {
    59             throws ServiceConfigurationError {
    60         throw new ServiceConfigurationError(service.getName() + ": " + msg);
    60         throw new ServiceConfigurationError(service.getName() + ": " + msg);
    61     }
    61     }
    62 
    62 
    63     private static void fail(Class service, URL u, int line, String msg)
    63     private static void fail(Class<?> service, URL u, int line, String msg)
    64             throws ServiceConfigurationError {
    64             throws ServiceConfigurationError {
    65         fail(service, u + ":" + line + ": " + msg);
    65         fail(service, u + ":" + line + ": " + msg);
    66     }
    66     }
    67 
    67 
    68     /**
    68     /**
    79      *
    79      *
    80      * @throws ServiceConfigurationError
    80      * @throws ServiceConfigurationError
    81      *         If an I/O error occurs while reading from the given URL, or
    81      *         If an I/O error occurs while reading from the given URL, or
    82      *         if a configuration-file format error is detected
    82      *         if a configuration-file format error is detected
    83      */
    83      */
    84     private static boolean parse(Class service, URL u) throws ServiceConfigurationError {
    84     private static boolean parse(Class<?> service, URL u) throws ServiceConfigurationError {
    85         InputStream in = null;
    85         InputStream in = null;
    86         BufferedReader r = null;
    86         BufferedReader r = null;
    87         try {
    87         try {
    88             in = u.openStream();
    88             in = u.openStream();
    89             r = new BufferedReader(new InputStreamReader(in, "utf-8"));
    89             r = new BufferedReader(new InputStreamReader(in, "utf-8"));