Skip to content

Commit b5f9acf

Browse files
committed
Do not use deprecated method in example code
1 parent a52520b commit b5f9acf

File tree

1 file changed

+1
-3
lines changed
  • samples/versions-in-platform/app/src/main/java/org/my/app

1 file changed

+1
-3
lines changed

samples/versions-in-platform/app/src/main/java/org/my/app/App.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ public static void main(String[] args) {
1111

1212
public static boolean doWork() {
1313
ObjectMapper om = new ObjectMapper();
14-
if (!om.canSerialize(LoggerFactoryBinder.class)) {
15-
throw new RuntimeException("Boom!");
16-
}
14+
LoggerFactoryBinder lfb;
1715
System.out.println(App.class.getModule().getName());
1816

1917
try {

0 commit comments

Comments
 (0)