Improved: Updated case indentation to 0 for all switch statements in framework component. Also done formatting changes as per checkstyle best practices.

(OFBIZ-11904)
This commit is contained in:
Suraj Khurana
2020-07-25 13:50:37 +05:30
parent 4739019732
commit f4f2722d36
67 changed files with 977 additions and 945 deletions
@@ -183,8 +183,7 @@ public class DataFile {
try (FileOutputStream fos = new FileOutputStream(outFile);) {
writeDataFile(fos);
}
catch (IOException e) {
} catch (IOException e) {
throw new DataFileException("Error occured while writing data to file" + filename, e);
}
}
@@ -199,8 +198,7 @@ public class DataFile {
writeDataFile(bos);
outString = bos.toString("UTF-8");
}
catch (IOException e) {
} catch (IOException e) {
Debug.logWarning(e, MODULE);
}
return outString;
@@ -83,8 +83,7 @@ public class DataFile2EntityXml {
outFile.newLine();
}
outFile.write("</entity-engine-xml>");
}
catch (IOException e) {
} catch (IOException e) {
throw new DataFileException("Error writing to file " + fileName, e);
}
@@ -127,8 +126,7 @@ public class DataFile2EntityXml {
outFile.newLine();
}
}
}
catch (IOException e) {
} catch (IOException e) {
Debug.logError(e, MODULE);
}
}
@@ -54,8 +54,7 @@ public class RecordIterator {
InputStream urlStream = null;
try {
urlStream = fileUrl.openStream();
}
catch (IOException e) {
} catch (IOException e) {
throw new DataFileException("Error open URL: " + fileUrl.toString(), e);
}
this.setupStream(urlStream, fileUrl.toString());
@@ -72,8 +71,7 @@ public class RecordIterator {
String charsetStr = modelDataFile.getEncodingType();
try {
this.br = new BufferedReader(new InputStreamReader(dataFileStream, Charset.forName(charsetStr)));
}
catch (Exception e) {
} catch (Exception e) {
throw new DataFileException(charsetStr + " is not supported");
}
//move the cursor to the good start line
@@ -211,8 +209,7 @@ public class RecordIterator {
try {
this.br.close(); // this should also close the stream
this.closed = true;
}
catch (IOException e) {
} catch (IOException e) {
throw new DataFileException("Error closing data file input stream", e);
}
}