Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f07d93d

Browse files
committed
Fixes so it runs OK under WSL2
1 parent 6457a1d commit f07d93d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

newio/MappedIO.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// (c)2020 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
5+
// {ExcludeFromGradle} Runs too long under WSL2
56
import java.util.*;
67
import java.nio.*;
78
import java.nio.channels.*;

patterns/BoxObserver.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// Demonstration of Observer pattern using
6-
// Java's built-in observer classes
7-
// {ExcludeFromTravisCI}
6+
// Java's built-in observer classes.
7+
// {ExcludeFromGradle} // Won't work under WSL2
88
import javax.swing.*;
99
import java.awt.*;
1010
import java.awt.event.*;
@@ -33,7 +33,8 @@ public BoxObserver(int grid) {
3333
cp.add(new OCBox(x, y, notifier));
3434
}
3535
public static void main(String[] args) {
36-
new TimedAbort(4);
36+
// For automated test runs:
37+
// new TimedAbort(4);
3738
int grid = 8;
3839
if(args.length > 0)
3940
grid = Integer.parseInt(args[0]);

0 commit comments

Comments
 (0)