diff --git a/newio/MappedIO.java b/newio/MappedIO.java index 82f3cca7..93b4ddf3 100644 --- a/newio/MappedIO.java +++ b/newio/MappedIO.java @@ -2,6 +2,7 @@ // (c)2020 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. +// {ExcludeFromGradle} Runs too long under WSL2 import java.util.*; import java.nio.*; import java.nio.channels.*; diff --git a/patterns/BoxObserver.java b/patterns/BoxObserver.java index 355c4086..cb7e97d4 100644 --- a/patterns/BoxObserver.java +++ b/patterns/BoxObserver.java @@ -3,8 +3,8 @@ // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. // Demonstration of Observer pattern using -// Java's built-in observer classes -// {ExcludeFromTravisCI} +// Java's built-in observer classes. +// {ExcludeFromGradle} // Won't work under WSL2 import javax.swing.*; import java.awt.*; import java.awt.event.*; @@ -33,7 +33,8 @@ public class BoxObserver extends JFrame { cp.add(new OCBox(x, y, notifier)); } public static void main(String[] args) { - new TimedAbort(4); + // For automated test runs: + // new TimedAbort(4); int grid = 8; if(args.length > 0) grid = Integer.parseInt(args[0]);