File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
src/main/java/org/apache/maven/buildcache Expand file tree Collapse file tree 2 files changed +12
-5
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 .rebuilt ;
106105import static org .apache .maven .buildcache .CacheResult .success ;
107106import static org .apache .maven .buildcache .RemoteCacheRepository .BUILDINFO_XML ;
108107import static org .apache .maven .buildcache .checksum .KeyUtils .getVersionlessProjectKey ;
@@ -529,7 +528,7 @@ public void save(
529528 hashFactory .getAlgorithm ());
530529 populateGitInfo (build , session );
531530 build .getDto ().set_final (cacheConfig .isSaveToRemoteFinal ());
532- cacheResults .put (getVersionlessProjectKey (project ), rebuilt (cacheResult , build ));
531+ cacheResults .put (getVersionlessProjectKey (project ), CacheResult . rebuilt (cacheResult , build ));
533532
534533 localCache .beforeSave (context );
535534
Original file line number Diff line number Diff line change @@ -70,10 +70,18 @@ public static CacheResult failure(CacheContext context) {
7070 return new CacheResult (RestoreStatus .FAILURE , null , context );
7171 }
7272
73- public static CacheResult rebuilt (CacheResult orig , Build build ) {
74- requireNonNull (orig );
73+ public static CacheResult rebuilt (CacheResult original , Build build ) {
74+ requireNonNull (original );
7575 requireNonNull (build );
76- return new CacheResult (orig .status , build , orig .context );
76+ return new CacheResult (original .status , build , original .context );
77+ }
78+
79+ /**
80+ * @deprecated Use {@link #rebuilt(CacheResult, Build)} instead.
81+ */
82+ @ Deprecated
83+ public static CacheResult rebuilded (CacheResult original , Build build ) {
84+ return rebuilt (original , build );
7785 }
7886
7987 public boolean isSuccess () {
You can’t perform that action at this time.
0 commit comments