From 58a380bb184f8934e9b628dee02fa435cbea0bff Mon Sep 17 00:00:00 2001 From: Bruce Eckel Date: Mon, 1 May 2017 05:58:47 -0600 Subject: [PATCH] Extracted javadoc appendix --- check.bat | 2 +- {objects => javadoc}/Documentation1.java | 2 +- {objects => javadoc}/Documentation2.java | 2 +- {objects => javadoc}/Documentation3.java | 2 +- {objects => javadoc}/HelloDateDoc.java | 2 +- onjava/HTMLColors.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename {objects => javadoc}/Documentation1.java (90%) rename {objects => javadoc}/Documentation2.java (89%) rename {objects => javadoc}/Documentation3.java (90%) rename {objects => javadoc}/HelloDateDoc.java (95%) diff --git a/check.bat b/check.bat index 25446ee4..c250560b 100644 --- a/check.bat +++ b/check.bat @@ -1,2 +1,2 @@ cp ..\..\OnJava-Tools\verify_output.py . -py -3 verify_output.py +python verify_output.py diff --git a/objects/Documentation1.java b/javadoc/Documentation1.java similarity index 90% rename from objects/Documentation1.java rename to javadoc/Documentation1.java index 42d7bfb9..906df8dd 100644 --- a/objects/Documentation1.java +++ b/javadoc/Documentation1.java @@ -1,4 +1,4 @@ -// objects/Documentation1.java +// javadoc/Documentation1.java // (c)2017 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. diff --git a/objects/Documentation2.java b/javadoc/Documentation2.java similarity index 89% rename from objects/Documentation2.java rename to javadoc/Documentation2.java index db857a29..a1959472 100644 --- a/objects/Documentation2.java +++ b/javadoc/Documentation2.java @@ -1,4 +1,4 @@ -// objects/Documentation2.java +// javadoc/Documentation2.java // (c)2017 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. diff --git a/objects/Documentation3.java b/javadoc/Documentation3.java similarity index 90% rename from objects/Documentation3.java rename to javadoc/Documentation3.java index 582b8346..34f62ac3 100644 --- a/objects/Documentation3.java +++ b/javadoc/Documentation3.java @@ -1,4 +1,4 @@ -// objects/Documentation3.java +// javadoc/Documentation3.java // (c)2017 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. diff --git a/objects/HelloDateDoc.java b/javadoc/HelloDateDoc.java similarity index 95% rename from objects/HelloDateDoc.java rename to javadoc/HelloDateDoc.java index 93f326dd..8aef609b 100644 --- a/objects/HelloDateDoc.java +++ b/javadoc/HelloDateDoc.java @@ -1,4 +1,4 @@ -// objects/HelloDateDoc.java +// javadoc/HelloDateDoc.java // (c)2017 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. diff --git a/onjava/HTMLColors.java b/onjava/HTMLColors.java index c595e8b4..f960d23a 100644 --- a/onjava/HTMLColors.java +++ b/onjava/HTMLColors.java @@ -189,7 +189,7 @@ public class HTMLColors { public static void show(Map.Entry e) { System.out.format( - "0x%06X: %s\n", e.getKey(), e.getValue()); + "0x%06X: %s%n", e.getKey(), e.getValue()); } public static void show(Map m, int count) {