projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add silent mode to examples Makefiles
[lttng-ust.git]
/
doc
/
examples
/
java-jul
/
ApplicationContextExample.java
diff --git
a/doc/examples/java-jul/ApplicationContextExample.java
b/doc/examples/java-jul/ApplicationContextExample.java
index 3da3ac82e22c6574277b1937a9aa60bcb5d68a39..52cef3f216044fa9dbaf313002e7ee6a8b5b8f42 100644
(file)
--- a/
doc/examples/java-jul/ApplicationContextExample.java
+++ b/
doc/examples/java-jul/ApplicationContextExample.java
@@
-67,12
+67,11
@@
public class ApplicationContextExample {
@Override
public Object retrieveContextInfo(String key) {
@Override
public Object retrieveContextInfo(String key) {
- switch (key) {
- case CONTEXT_NAME_SHORT:
+ if (CONTEXT_NAME_SHORT.equals(key)) {
return (short) 42;
return (short) 42;
- case CONTEXT_NAME_STRING:
+ } else if (CONTEXT_NAME_STRING.equals(key)) {
return "context-value!";
return "context-value!";
- default:
+ } else {
return null;
}
}
return null;
}
}
This page took
0.025379 seconds
and
4
git commands to generate.