juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject [juneau] branch master updated: Javadoc Link Tester.
Date Sat, 03 Feb 2018 17:24:12 GMT
This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 5490a57  Javadoc Link Tester.
5490a57 is described below

commit 5490a57141b7a21c9bc18025c562749922c3e007
Author: JamesBognar <jamesbognar@apache.org>
AuthorDate: Sat Feb 3 12:24:10 2018 -0500

    Javadoc Link Tester.
---
 .../java/org/apache/juneau/utils/JavadocLinkTester.java    | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/juneau-core/juneau-core-test/src/test/java/org/apache/juneau/utils/JavadocLinkTester.java
b/juneau-core/juneau-core-test/src/test/java/org/apache/juneau/utils/JavadocLinkTester.java
index da32647..ec32e4e 100644
--- a/juneau-core/juneau-core-test/src/test/java/org/apache/juneau/utils/JavadocLinkTester.java
+++ b/juneau-core/juneau-core-test/src/test/java/org/apache/juneau/utils/JavadocLinkTester.java
@@ -26,9 +26,10 @@ import org.apache.juneau.internal.*;
  */
 public class JavadocLinkTester {
 
-	static Pattern p = Pattern.compile("(href|src)\\=['\\\"]([^'\\\"]+)['\\\"]");
-	static Pattern p2 = Pattern.compile("(name|id)\\=['\\\"]([^'\\\"]+)['\\\"]");
-	static int errors, files, directories, links;
+	private static Map<String,Set<String>> ANCHORS = new LinkedHashMap<>();
+	private static Pattern p = Pattern.compile("(href|src)\\=['\\\"]([^'\\\"]+)['\\\"]");
+	private static Pattern p2 = Pattern.compile("(name|id)\\=['\\\"]([^'\\\"]+)['\\\"]");
+	private static int errors, files, directories, links;
 	
 	public static void main(String[] args) {
 		try {
@@ -44,16 +45,11 @@ public class JavadocLinkTester {
 				System.err.println(errors + " errors");
 			}
 		} catch (Exception e) {
-			// TODO Auto-generated catch block
 			e.printStackTrace();
 		}
 	}
 	
-	static Map<String,Set<String>> ANCHORS = new LinkedHashMap<>();
-	
-	static Map<String,List<String>> ERRORS = new TreeMap<>();
-	
-	static void process(File f) throws Exception {
+	private static void process(File f) throws Exception {
 		if (f.isDirectory()) {
 			for (File fc : f.listFiles()) {
 				if (fc.isFile() && fc.getName().endsWith(".html")) {

-- 
To stop receiving notification emails like this one, please contact
jamesbognar@apache.org.

Mime
View raw message