Skip to content

Commit

Permalink
cleaned up code
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudenw committed Apr 26, 2024
1 parent f55d091 commit ac1b770
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

import org.apache.rat.api.Document;


/**
* This class provides a numerical overview about
* the report.
Expand Down Expand Up @@ -69,16 +68,6 @@ public void incCounter(Counter key, int 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<Counter, int[]> getCounterMap() {
// return counterMap;
// }

/**
* Returns the counts for the counter.
* @param documentType the document type to get the counter for.
Expand All @@ -98,25 +87,6 @@ public void incCounter(Document.Type documentType, int value) {
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);
Expand All @@ -136,15 +106,7 @@ public void incLicenseFamilyCount(String licenseFamilyName, int value) {
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());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ac1b770

Please sign in to comment.