Branch: refs/heads/master
  Home:   https://github.com/jenkinsci/stash-pullrequest-builder-plugin
  Commit: 8747cbe8b9f5b67c5e302d9e0a4cc35498df45c9
      
https://github.com/jenkinsci/stash-pullrequest-builder-plugin/commit/8747cbe8b9f5b67c5e302d9e0a4cc35498df45c9
  Author: Pavel Roskin <[email protected]>
  Date:   2019-03-21 (Thu, 21 Mar 2019)

  Changed paths:
    M 
src/main/java/stashpullrequestbuilder/stashpullrequestbuilder/StashBuilds.java

  Log Message:
  -----------
  Remove StashBuilds#getCause(), call build.getCause() directly

The "build" argument in onStarted() and onCompleted() is not of a raw
type anymore, which enables type-safe behavior without casts.

build.getCause() returns a value of the type provided in its argument. If
cause is null or there is no cause of the given type, build.getCause()
returns null.

That is the desired behavior. No extra wrapper is required.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to