Skip to content
Snippets Groups Projects
Commit 1cde3f7f authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- enabled all warnings in javac

- handled return code of mkdirs()
parent dc65b62d
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ SLUBStoragePlugin.jar: $(OBJS)
@cd build; ${JAVAPATH}/jar cfvM ../$@ ./* ; cd ..
%.class: %.java
${JAVAPATH}/javac -classpath ${CLASSPATH}:${JUNITCLASSPATH} -Xlint:deprecation $<
${JAVAPATH}/javac -classpath ${CLASSPATH}:${JUNITCLASSPATH} -Xlint:all $<
doc: $(SOURCES)
javadoc -d doc/ $^
......
......@@ -126,7 +126,8 @@ public class SLUBStoragePlugin extends NFSStoragePlugin {
log.info("SLUBStoragePlugin.getStreamDirectory path=" + path);
log.info("SLUBStoragePlugin.getStreamDirectory fileName=" + fileName);
log.info("SLUBStoragePlugin.getStreamDirectory newDir.getAbsolutePath()=" + newDir.getAbsolutePath());
newDir.mkdirs();
boolean arecreated = newDir.mkdirs();
log.info("SLUBStoragePlugin.getStreamDirectory newDir.mkdirs(), directories are created:" + arecreated);
return new File(newDir.getAbsolutePath() + File.separator + fileName);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment