Skip to content
Permalink
Browse files

[JENKINS-43507] Should be Descriptor.clazz not Descriptor.getT()

  • Loading branch information...
stephenc committed May 5, 2017
1 parent 49b92bb commit 5a064562ee6687364f95186b633ddb8499e2449d
@@ -140,7 +140,7 @@ public boolean isApplicableToSource(@NonNull Class<? extends SCMSource> sourceCl
* @return {@code true} if applicable to the specified {@link SCMSourceDescriptor}.
*/
public boolean isApplicableToSource(@NonNull SCMSourceDescriptor descriptor) {
return isApplicableToSource(descriptor.getT());
return isApplicableToSource(descriptor.clazz);
}

/**
@@ -179,7 +179,7 @@ public boolean isApplicableTo(@NonNull Class<? extends SCMNavigator> navigatorCl
* @return {@code true} if applicable to the specified {@link SCMNavigatorDescriptor}.
*/
public boolean isApplicableTo(@NonNull SCMNavigatorDescriptor descriptor) {
return isApplicableTo(descriptor.getT());
return isApplicableTo(descriptor.clazz);
}

/**
@@ -138,7 +138,7 @@ public boolean isApplicableTo(@NonNull Class<? extends SCMSource> sourceClass) {
* @return {@code true} if applicable to the specified {@link SCMSourceDescriptor}.
*/
public boolean isApplicableTo(@NonNull SCMSourceDescriptor descriptor) {
return isApplicableTo(descriptor.getT());
return isApplicableTo(descriptor.clazz);
}

/**
@@ -82,7 +82,7 @@ public boolean isApplicableToSCM(@NonNull Class<? extends SCM> scmClass) {
* @return {@code true} if applicable to the specified type of {@link SCM}.
*/
public boolean isApplicableToSCM(@NonNull SCMDescriptor<?> scm) {
return isApplicableToSCM(scm.getT());
return isApplicableToSCM(scm.clazz);
}

}

0 comments on commit 5a06456

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.