MCPcopy Create free account
hub / github.com/apache/storm / forceDeleteImpl

Method forceDeleteImpl

storm-client/src/jvm/org/apache/storm/utils/Utils.java:1778–1787  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

1776
1777 // Non-static impl methods exist for mocking purposes.
1778 protected void forceDeleteImpl(String path) throws IOException {
1779 LOG.debug("Deleting path {}", path);
1780 if (checkFileExists(path)) {
1781 try {
1782 FileUtils.forceDelete(new File(path));
1783 } catch (FileNotFoundException ignored) {
1784 //ignore
1785 }
1786 }
1787 }
1788
1789 // Non-static impl methods exist for mocking purposes.
1790 public UptimeComputer makeUptimeComputerImpl() {

Callers 1

forceDeleteMethod · 0.80

Calls 3

checkFileExistsMethod · 0.95
forceDeleteMethod · 0.80
debugMethod · 0.65

Tested by

no test coverage detected