gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritTriggerParameters.java
/**
     * There are two uploader fields in the event, this method gets one of them if one is null.
     *
     * @param event the event to search.
     * @return the uploader if any.
     */
There are two uploader fields in the event, this method gets one of them if one is null.
@param event the event to search.
@return the uploader if any.
There are two uploader fields in the event this method gets one of them if one is null . @param event the event to search . @return the uploader if any .
private static Account findUploader(ChangeBasedEvent event) {
        if (event.getPatchSet() != null && event.getPatchSet().getUploader() != null) {
            return event.getPatchSet().getUploader();
        } else {
            return event.getAccount();
        }
    }
private static Account findUploader ( ChangeBasedEvent event ) { if ( event . getPatchSet ( ) != null && event . getPatchSet ( ) . getUploader ( ) != null ) { return event . getPatchSet ( ) . getUploader ( ) ; } else { return event . getAccount ( ) ; } }
There are two uploader fields in the event, this method gets one of them if one is null.
There are two uploader fields in the event this method gets one of them if one is null .