cleaned up code
diff --git a/apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java b/apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java
index c367962..df0a7fc 100644
--- a/apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java
+++ b/apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java
@@ -26,7 +26,6 @@
import org.apache.rat.api.Document;
-
/**
* This class provides a numerical overview about
* the report.
@@ -69,16 +68,6 @@
}
}
-// /**
-// * @return Returns a map with the file types. The map keys
-// * are file type names and the map values
-// * are integers with the number of resources matching
-// * the file type.
-// */
-// public Map<Counter, int[]> getCounterMap() {
-// return counterMap;
-// }
-
/**
* Returns the counts for the counter.
* @param documentType the document type to get the counter for.
@@ -98,25 +87,6 @@
num[0] += value;
}
}
-// /**
-// * @return Returns a map with the file types. The map keys
-// * are file type names and the map values
-// * are integers with the number of resources matching
-// * the file type.
-// */
-// public Map<Document.Type, int[]> getDocumentCategoryMap() {
-// return documentCategoryMap;
-// }
-
-// /**
-// * @return Returns a map with the license family codes. The map
-// * keys are license family category names,
-// * the map values are integers with the number of resources
-// * matching the license family code.
-// */
-// public Map<String, int[]> getLicenseFamilyCodeMap() {
-// return licenseFamilyCodeMap;
-// }
public int getLicenseFamilyCount(String licenseFamilyName) {
int[] count = licenseFamilyCodeMap.get(licenseFamilyName);
@@ -136,15 +106,7 @@
public Set<String> getLicenseFamilyNames() {
return Collections.unmodifiableSet(licenseFamilyCodeMap.keySet());
}
-// /**
-// * @return Returns a map with the license family codes. The map
-// * keys are the names of the license families and
-// * the map values are integers with the number of resources
-// * matching the license family name.
-// */
-// public Map<String, int[]> getLicenseFileNameMap() {
-// return licenseFamilyNameMap;
-// }
+
public Set<String> getLicenseFileNames() {
return Collections.unmodifiableSet(licenseFamilyNameMap.keySet());
}
diff --git a/apache-rat-core/src/main/java/org/apache/rat/walker/DirectoryWalker.java b/apache-rat-core/src/main/java/org/apache/rat/walker/DirectoryWalker.java
index 7465f63..80977c4 100644
--- a/apache-rat-core/src/main/java/org/apache/rat/walker/DirectoryWalker.java
+++ b/apache-rat-core/src/main/java/org/apache/rat/walker/DirectoryWalker.java
@@ -22,13 +22,10 @@
import java.io.File;
import java.io.FilenameFilter;
import java.util.Arrays;
-import java.util.Objects;
-import java.util.function.Predicate;
import java.util.regex.Pattern;
import org.apache.commons.io.filefilter.FalseFileFilter;
import org.apache.commons.io.filefilter.IOFileFilter;
-import org.apache.rat.api.Document;
import org.apache.rat.api.RatException;
import org.apache.rat.document.impl.FileDocument;
import org.apache.rat.report.IReportable;