File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
src/main/java/org/apache/maven/buildcache Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 102102import static org .apache .maven .buildcache .CacheResult .empty ;
103103import static org .apache .maven .buildcache .CacheResult .failure ;
104104import static org .apache .maven .buildcache .CacheResult .partialSuccess ;
105- import static org .apache .maven .buildcache .CacheResult .rebuilded ;
105+ import static org .apache .maven .buildcache .CacheResult .rebuilt ;
106106import static org .apache .maven .buildcache .CacheResult .success ;
107107import static org .apache .maven .buildcache .RemoteCacheRepository .BUILDINFO_XML ;
108108import static org .apache .maven .buildcache .checksum .KeyUtils .getVersionlessProjectKey ;
@@ -529,7 +529,7 @@ public void save(
529529 hashFactory .getAlgorithm ());
530530 populateGitInfo (build , session );
531531 build .getDto ().set_final (cacheConfig .isSaveToRemoteFinal ());
532- cacheResults .put (getVersionlessProjectKey (project ), rebuilded (cacheResult , build ));
532+ cacheResults .put (getVersionlessProjectKey (project ), rebuilt (cacheResult , build ));
533533
534534 localCache .beforeSave (context );
535535
Original file line number Diff line number Diff line change @@ -70,12 +70,20 @@ public static CacheResult failure(CacheContext context) {
7070 return new CacheResult (RestoreStatus .FAILURE , null , context );
7171 }
7272
73- public static CacheResult rebuilded (CacheResult orig , Build build ) {
73+ public static CacheResult rebuilt (CacheResult orig , Build build ) {
7474 requireNonNull (orig );
7575 requireNonNull (build );
7676 return new CacheResult (orig .status , build , orig .context );
7777 }
7878
79+ /**
80+ * @deprecated Use {@link #rebuilt(CacheResult, Build)} instead.
81+ */
82+ @ Deprecated
83+ public static CacheResult rebuilded (CacheResult orig , Build build ) {
84+ return rebuilt (orig , build );
85+ }
86+
7987 public boolean isSuccess () {
8088 return status == RestoreStatus .SUCCESS ;
8189 }
You can’t perform that action at this time.
0 commit comments