Skip to content

Commit 0437aca

Browse files
hansonrhansonr
authored andcommitted
XML classes using java.util.logging.Loggger
1 parent 68a2dd3 commit 0437aca

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

sources/net.sf.j2s.java.core/src/javax/xml/bind/ContextFinder.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,19 @@ class ContextFinder {
9292
static {
9393
//logger = Logger.getLogger("javax.xml.bind");
9494
try {
95-
if (AccessController.doPrivileged(new GetPropertyAction("jaxb.debug")) != null) {
95+
// if (AccessController.doPrivileged(new GetPropertyAction("jaxb.debug")) != null) {
9696
// disconnect the logger from a bigger framework (if any)
9797
// and take the matters into our own hands
9898
//Logger.setUseParentHandlers(false);
9999
//Logger.setLevel(Level.ALL);
100-
ConsoleHandler handler = new ConsoleHandler();
101-
handler.setLevel(Level.ALL);
100+
// ConsoleHandler handler = new ConsoleHandler();
101+
// handler.setLevel(Level.ALL);
102102
//Logger.addHandler(handler);
103-
} else {
104-
// don't change the setting of this logger
105-
// to honor what other frameworks
106-
// have done on configurations.
107-
}
103+
// } else {
104+
// // don't change the setting of this logger
105+
// // to honor what other frameworks
106+
// // have done on configurations.
107+
// }
108108
} catch (Throwable t) {
109109
// just to be extra safe. in particular System.getProperty may throw
110110
// SecurityException.

sources/net.sf.j2s.java.core/src/javax/xml/validation/SchemaFactoryFinder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class SchemaFactoryFinder {
6868
// Use try/catch block to support applets
6969
try {
7070
debug = ss.getSystemProperty("jaxp.debug") != null;
71-
} catch (Exception _) {
71+
} catch (Exception e) {
7272
debug = false;
7373
}
7474
}
@@ -113,7 +113,7 @@ private void debugDisplayClassLoader() {
113113
debugPrintln("using thread context class loader ("+classLoader+") for search");
114114
return;
115115
}
116-
} catch( Throwable _ ) {
116+
} catch( Throwable e ) {
117117
; // getContextClassLoader() undefined in JDK1.1
118118
}
119119

0 commit comments

Comments
 (0)