MCPcopy Index your code
hub / github.com/ArtifexSoftware/mupdf / acceleratorValid

Method acceleratorValid

platform/java/example/ViewerCore.java:75–83  ·  view source on GitHub ↗
(String documentPath, String acceleratorPath)

Source from the content-addressed store, hash-verified

73 }
74 }
75 protected boolean acceleratorValid(String documentPath, String acceleratorPath) {
76 try {
77 long documentModified = new File(documentPath).lastModified();
78 long acceleratorModified = new File(acceleratorPath).lastModified();
79 return acceleratorModified != 0 && acceleratorModified > documentModified;
80 } catch (Exception e) {
81 return false;
82 }
83 }
84 public void work() {
85 String acceleratorPath = getAcceleratorPath(documentPath);
86 if (!acceleratorValid(documentPath, acceleratorPath))

Callers 1

workMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected