Skip to content

Commit d0f304c

Browse files
committed
Change method signature and add deprecated to old promote getValidationStoreKeys
1 parent 6c84f27 commit d0f304c

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

addons/promote/common/src/main/java/org/commonjava/indy/promote/validate/PromotionValidationTools.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,25 @@ public PromotionValidationTools( final ContentManager manager, final StoreDataMa
149149
this.promoteConfig = config;
150150
}
151151

152-
public StoreKey[] getValidationStoreKeys( final ValidationRequest request, final boolean includeSource )
152+
public StoreKey[] getValidationStoreKeys( final ValidationRequest request )
153153
throws PromotionValidationException
154154
{
155-
return getValidationStoreKeys( request, includeSource, true );
155+
return getValidationStoreKeys( request, false );
156156
}
157157

158+
/**
159+
* @deprecated This method now is only used for api backward compatible
160+
*/
161+
@Deprecated
158162
public StoreKey[] getValidationStoreKeys( final ValidationRequest request, final boolean includeSource,
159163
final boolean includeTarget )
160164
throws PromotionValidationException
165+
{
166+
return getValidationStoreKeys( request, includeSource );
167+
}
168+
169+
public StoreKey[] getValidationStoreKeys( final ValidationRequest request, final boolean includeSource )
170+
throws PromotionValidationException
161171
{
162172
String verifyStores = request.getValidationParameter( PromotionValidationTools.AVAILABLE_IN_STORES );
163173
if ( verifyStores == null )

0 commit comments

Comments
 (0)