Javadoc: Use "file name" instead of "filename".

Camel case vars "filename" to "fileName".
This commit is contained in:
Gary Gregory 2019-05-30 15:29:47 -04:00
parent 71aed1094c
commit 77e603a0fb
2 changed files with 12 additions and 12 deletions

View File

@ -196,17 +196,17 @@ public class KohonenTrainingTaskTest {
/**
* Prints a summary of the current state of the solver to the
* given filename.
* given file name.
*
* @param filename File.
* @param fileName File.
* @param solver Solver.
*/
@SuppressWarnings("unused")
private void printSummary(String filename,
private void printSummary(String fileName,
TravellingSalesmanSolver solver) {
PrintWriter out = null;
try {
out = new PrintWriter(filename);
out = new PrintWriter(fileName);
out.println(travelCoordinatesTable(solver));
final City[] result = solver.getCityList();

View File

@ -278,16 +278,16 @@ public class ChineseRingsClassifier {
}
/**
* Prints the U-matrix of the map to the given filename.
* Prints the U-matrix of the map to the given file name.
*
* @param filename File.
* @param fileName File.
* @param sofm Classifier.
*/
private static void printU(String filename,
private static void printU(String fileName,
ChineseRingsClassifier sofm) {
PrintWriter out = null;
try {
out = new PrintWriter(filename);
out = new PrintWriter(fileName);
final double[][] uMatrix = sofm.computeU();
for (int i = 0; i < uMatrix.length; i++) {
@ -308,16 +308,16 @@ public class ChineseRingsClassifier {
}
/**
* Prints the hit histogram of the map to the given filename.
* Prints the hit histogram of the map to the given file name.
*
* @param filename File.
* @param fileName File.
* @param sofm Classifier.
*/
private static void printHit(String filename,
private static void printHit(String fileName,
ChineseRingsClassifier sofm) {
PrintWriter out = null;
try {
out = new PrintWriter(filename);
out = new PrintWriter(fileName);
final int[][] histo = sofm.computeHitHistogram();
for (int i = 0; i < histo.length; i++) {