@@ -73,19 +73,19 @@ public BintrayService(RestTemplateBuilder builder, BintrayProperties bintrayProp
73
73
this .restTemplate = builder .build ();
74
74
}
75
75
76
- public boolean isDistributionComplete (ReleaseInfo releaseInfo , Set <String > requiredDigets , Duration timeout ) {
77
- return isDistributionComplete (releaseInfo , requiredDigets , timeout , Duration .ofSeconds (20 ));
76
+ public boolean isDistributionComplete (ReleaseInfo releaseInfo , Set <String > requiredDigests , Duration timeout ) {
77
+ return isDistributionComplete (releaseInfo , requiredDigests , timeout , Duration .ofSeconds (20 ));
78
78
}
79
79
80
- public boolean isDistributionComplete (ReleaseInfo releaseInfo , Set <String > requiredDigets , Duration timeout ,
80
+ public boolean isDistributionComplete (ReleaseInfo releaseInfo , Set <String > requiredDigests , Duration timeout ,
81
81
Duration pollInterval ) {
82
82
logger .debug ("Checking if distribution is complete" );
83
83
RequestEntity <Void > request = getRequest (releaseInfo , 0 );
84
84
try {
85
85
waitAtMost (timeout ).with ().pollDelay (Duration .ZERO ).pollInterval (pollInterval ).until (() -> {
86
86
logger .debug ("Checking bintray" );
87
87
PackageFile [] published = this .restTemplate .exchange (request , PackageFile [].class ).getBody ();
88
- return hasPublishedAll (published , requiredDigets );
88
+ return hasPublishedAll (published , requiredDigests );
89
89
});
90
90
}
91
91
catch (ConditionTimeoutException ex ) {
@@ -95,12 +95,12 @@ public boolean isDistributionComplete(ReleaseInfo releaseInfo, Set<String> requi
95
95
return true ;
96
96
}
97
97
98
- private boolean hasPublishedAll (PackageFile [] published , Set <String > requiredDigets ) {
98
+ private boolean hasPublishedAll (PackageFile [] published , Set <String > requiredDigests ) {
99
99
if (published == null || published .length == 0 ) {
100
100
logger .debug ("Bintray returned no published files" );
101
101
return false ;
102
102
}
103
- Set <String > remaining = new HashSet <>(requiredDigets );
103
+ Set <String > remaining = new HashSet <>(requiredDigests );
104
104
for (PackageFile publishedFile : published ) {
105
105
logger .debug (
106
106
"Found published file " + publishedFile .getName () + " with digest " + publishedFile .getSha256 ());
0 commit comments