Skip to content

Commit

Permalink
Redirect impls through the caching methods
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Dec 1, 2016
1 parent f08c59e commit 53704de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/jenkins/scm/api/SCMFile.java
Expand Up @@ -90,7 +90,7 @@ public abstract class SCMFile {
* @throws IOException if an error occurs while performing the operation.
* @throws InterruptedException if interrupted while performing the operation.
*/
public long lastModified() throws IOException, InterruptedException {
public final long lastModified() throws IOException, InterruptedException {
return modified != null ? modified : (modified = modified());
}

Expand Down Expand Up @@ -167,7 +167,7 @@ public final boolean isDirectory() throws IOException, InterruptedException {
* @throws InterruptedException if interrupted while performing the operation.
*/
@NonNull
public Type getType() throws IOException, InterruptedException {
public final Type getType() throws IOException, InterruptedException {
return type != null ? type : (type = type());
}

Expand Down

0 comments on commit 53704de

Please sign in to comment.