ashutoshcipher commented on code in PR #4446:
URL: https://github.com/apache/hadoop/pull/4446#discussion_r906371020
##########
hadoop-maven-plugins/src/main/java/org/apache/hadoop/maven/plugin/protoc/ProtocRunner.java:
##########
@@ -172,6 +172,10 @@ private long computeChecksum(File file) throws IOException
{
public void writeChecksums() throws IOException {
ObjectMapper mapper = new ObjectMapper();
+ boolean folderCreated = checksumFile.getParentFile().mkdirs();
+ if (!folderCreated) {
+ throw new IOException("Unable to create path");
+ }
Review Comment:
@aajisaka - Shall I go ahead and do it this way and use @SuppressWarnings
tag along?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]