auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testSetup ( ) { org.mockito.Mockito.doReturn ( quotaDao ) . when ( command ) . getQuotaDao ( ) ; org.mockito.Mockito.when ( quotaDao.getById ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( mockGeneralStorageQuota ( ) ) ; }

Target:
public void testSetup ( ) { org.mockito.Mockito.when ( quotaDao.getById ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( mockGeneralStorageQuota ( ) ) ; }
Source:
public boolean isValid ( java.lang.String name , javax.validation.ConstraintValidatorContext context ) { return ( name != null ) && ( org.ovirt.engine.core.common.utils.ValidationUtils.validHostname ( name ) ) ; }

Target:
public boolean isValid ( java.lang.String name , javax.validation.ConstraintValidatorContext context ) { return ( name == null ) || ( org.ovirt.engine.core.common.utils.ValidationUtils.validHostname ( name ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { this . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { this . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return runMultipleActionsImpl ( actionType , parameters , true , executionContext ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmSnapshotListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmSnapshotListModel ) ( target ) ) ; model.setIsCloneVmSupported ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmSnapshotListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmSnapshotListModel ) ( target ) ) ; model.setIsCloneVmSupported ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }
Source:
public void updateFormItem ( org.ovirt.engine.ui.common.widget.form.FormItem item ) { updateFormItem ( item , 6 ) ; }

Target:
public void updateFormItem ( org.ovirt.engine.ui.common.widget.form.FormItem item ) { updateFormItem ( item , null ) ; }
Source:
private void updateLUNConnectionsInfo ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { lun.setLunConnections ( new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( org.ovirt.engine.core.bll.AbstractDiskVmCommand.getDbFacade ( ) . getStorageServerConnectionDao ( ) . getAllForLun ( lun.getLUN_id ( ) ) ) ) ; }

Target:
private void updateLUNConnectionsInfo ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { lun.setLunConnections ( new java.util.ArrayList ( org.ovirt.engine.core.bll.AbstractDiskVmCommand.getDbFacade ( ) . getStorageServerConnectionDao ( ) . getAllForLun ( lun.getLUN_id ( ) ) ) ) ; }
Source:
protected void setImageStatus ( org.ovirt.engine.core.common.businessentities.ImageStatus imageStatus ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = getRelevantDiskImage ( ) ; diskImage.setImageStatus ( imageStatus ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( diskImage.getImage ( ) . getId ( ) , imageStatus ) ; }

Target:
protected void setImageStatus ( org.ovirt.engine.core.common.businessentities.ImageStatus imageStatus ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = getRelevantDiskImage ( ) ; if ( diskImage != null ) { diskImage.setImageStatus ( imageStatus ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( diskImage.getImage ( ) . getId ( ) , imageStatus ) ; } }
Source:
public void setOS ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( os , value ) ) ) { os = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "OS" ) ) ; } }

Target:
public void setOS ( int value ) { if ( ( os ) != value ) { os = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "OS" ) ) ; } }
Source:
public void setsubscriber_id ( org.ovirt.engine.core.compat.Guid value ) { this . id.subscriberId = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "subscriber_id" ) ) ; }

Target:
public void setsubscriber_id ( org.ovirt.engine.core.compat.Guid value ) { this . id.subscriberId = value ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml statusWithAlertTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage , com.google.gwt.safehtml.shared.SafeHtml alertImage , java.lang.String id ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml statusWithAlertTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage , com.google.gwt.safehtml.shared.SafeHtml alertImage , java.lang.String id , java.lang.String status ) ;
Source:
public void testPoolForDataCenterMethod ( ) throws java.lang.Exception { expectNotInitializedException ( ) ; new org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc ( ) . poolForDataCenter ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }

Target:
public void testPoolForDataCenterMethod ( ) throws java.lang.Exception { expectNotInitializedException ( ) ; pool.poolForDataCenter ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel.ClientConsoleMode getDefaultConsoleMode ( ) { return org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel.ClientConsoleMode.valueOf ( ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.ClientModeSpiceDefault ) ) ) ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel.ClientConsoleMode getDefaultConsoleMode ( ) { return org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel.ClientConsoleMode.valueOf ( ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.ClientModeSpiceDefault ) ) ) ) ; }
Source:
private void initLogicalNetworksPanel ( ) { com.google.gwt.user.client.ui.VerticalPanel panel = new com.google.gwt.user.client.ui.VerticalPanel ( ) ; networksTable = new org.ovirt.engine.ui.common.widget.editor.ListModelObjectCellTable < org.ovirt.engine.core.common.businessentities.network.Network , org.ovirt.engine.ui.uicommonweb.models.ListModel > ( true ) ; panel.add ( networksTable ) ; logicalNetworksPanel.setWidget ( panel ) ; }

Target:
private void initLogicalNetworksPanel ( ) { com.google.gwt.user.client.ui.VerticalPanel panel = new com.google.gwt.user.client.ui.VerticalPanel ( ) ; networksTable = new org.ovirt.engine.ui.common.widget.editor.ListModelObjectCellTable ( true ) ; panel.add ( networksTable ) ; logicalNetworksPanel.setWidget ( panel ) ; }
Source:
private boolean isActiveCinderDomainAvailable ( org.ovirt.engine.core.compat.Guid poolId ) { return isActiveStorageDomainAvailable ( StorageType.CINDER , poolId ) ; }

Target:
public boolean isActiveCinderDomainAvailable ( org.ovirt.engine.core.compat.Guid poolId ) { return isActiveStorageDomainAvailable ( StorageType.CINDER , poolId ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = ( ( org.ovirt.engine.core.common.businessentities.Cluster ) ( returnValue ) ) ; if ( cluster != null ) { powerAction ( actionName , title , message , cluster.isOptionalReasonRequired ( ) ) ; } }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { if ( cluster != null ) { powerAction ( actionName , title , message , cluster.isOptionalReasonRequired ( ) ) ; } }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.userportal.PoolItemBehavior behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.PoolItemBehavior ) ( target ) ) ; org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model = behavior.getItem ( ) ; model.setEntity ( returnValue ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.userportal.PoolItemBehavior behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.PoolItemBehavior ) ( target ) ) ; org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model = behavior.getItem ( ) ; model.setEntity ( returnValue ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult validateVmNotDuringSnapshot ( ) { return createSnapshotValidator ( ) . vmNotDuringSnapshot ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getVmId ( ) ) ; }

Target:
protected boolean validateVmNotDuringSnapshot ( ) { return validate ( createSnapshotValidator ( ) . vmNotDuringSnapshot ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getVmId ( ) ) ) ; }
Source:
protected void OnTaskEndFailure ( ) { LogEndTaskFailure ( ) ; OnCurrentTaskEndFailure ( ) ; EndActionIfNecessary ( ) ; }

Target:
protected void OnTaskEndFailure ( ) { LogEndTaskFailure ( ) ; EndActionIfNecessary ( ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getstorage_pool_id ( ) { return storagePoolId ; }

Target:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return storagePoolId ; }
Source:
public void addWithExistingMacAddressSucceed ( ) { org.ovirt.engine.core.common.businessentities.network.VmNic iface = org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) ; runAddAndVerify ( iface , true , org.mockito.Mockito.times ( 1 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID ) ; }

Target:
public void addWithExistingMacAddressSucceed ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID , false ) ; }
Source:
public static void getTemplateListByDataCenter ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetVmTemplatesByStoragePoolId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) , aQuery ) ; }

Target:
public static void getTemplateListByDataCenter ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplatesByStoragePoolId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) , aQuery ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setGetVdsQueryExpectations ( 1 ) ; setGetNetworksQueryExpectations ( 1 ) ; setUpEntityQueryExpectations ( ) ; control.replay ( ) ; hostNicsResource.verifyModelSpecific ( resource.get ( ) , org.ovirt.engine.api.restapi.resource.BackendHostNicResourceTest.NIC_IDX ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setGetVdsQueryExpectations ( 1 ) ; setGetNetworksQueryExpectations ( 1 ) ; setUpEntityQueryExpectations ( ) ; hostNicsResource.verifyModelSpecific ( resource.get ( ) , org.ovirt.engine.api.restapi.resource.BackendHostNicResourceTest.NIC_IDX ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Network createNetwork ( java.lang.String networkName ) { return new org.ovirt.engine.core.common.businessentities.Network ( "" , "" , org.ovirt.engine.core.compat.Guid.NewGuid ( ) , networkName , "" , "" , 0 , 100 , false , 0 , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Network createNetwork ( java.lang.String networkName ) { return new org.ovirt.engine.core.common.businessentities.Network ( "" , "" , org.ovirt.engine.core.compat.Guid.NewGuid ( ) , networkName , "" , "" , 0 , null , false , 0 , true ) ; }
Source:
protected void replaceTimerChangeHandler ( ) { if ( ( timerChangeHandler ) == null ) { addTimerChangeHandler ( ) ; } else { removeTimerChangeHandler ( ) ; addTimerChangeHandler ( ) ; } }

Target:
protected void replaceTimerChangeHandler ( ) { if ( ( timerChangeHandler ) != null ) { removeTimerChangeHandler ( ) ; } addTimerChangeHandler ( ) ; }
Source:
protected void removeVmFromDb ( ) { removeLunDisks ( ) ; removeCinderDisks ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmSnapshots ( ) ; removeVmStatic ( getParameters ( ) . isRemovePermissions ( ) ) ; }

Target:
protected void removeVmFromDb ( ) { removeLunDisks ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmSnapshots ( ) ; removeVmStatic ( getParameters ( ) . isRemovePermissions ( ) ) ; }
Source:
public java.lang.Boolean getKsmState ( ) { return this . ksmState ; }

Target:
public java.lang.Boolean getKsmState ( ) { return ksmState ; }
Source:
private boolean validateAttachment ( ) { final org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator attachNetworkClusterValidator = createNetworkClusterValidator ( ) ; return ( validate ( attachNetworkClusterValidator.networkBelongsToClusterDataCenter ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getVdsGroup ( ) , org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getPersistedNetwork ( ) ) ) ) && ( super . validateAttachment ( attachNetworkClusterValidator ) ) ; }

Target:
private boolean validateAttachment ( ) { final org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator attachNetworkClusterValidator = createNetworkClusterValidator ( ) ; return ( validate ( attachNetworkClusterValidator.networkBelongsToClusterDataCenter ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getVdsGroup ( ) , org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getPersistedNetwork ( ) ) ) ) && ( validateAttachment ( attachNetworkClusterValidator ) ) ; }
Source:
public static boolean IsActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { boolean isActive = ( ( storageDomain.getstatus ( ) ) != null ) && ( ( storageDomain.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; return isActive ; }

Target:
public static boolean IsActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { boolean isActive = ( ( storageDomain.getStatus ( ) ) != null ) && ( ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; return isActive ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true , null , null ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < java.lang.String > ( ( ( java.util.ArrayList < java.lang.String > ) ( source ) ) ) : new java.util.ArrayList < java.lang.String > ( ) ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source == null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) : ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) ; }
Source:
public void addChildCommandInfo ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.action.VdcActionType vdcActionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { childCommandInfoMap.put ( id , new org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.action.VdcActionType , org.ovirt.engine.core.common.action.VdcActionParametersBase > ( vdcActionType , parameters ) ) ; }

Target:
public void addChildCommandInfo ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.action.VdcActionType vdcActionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { childCommandInfoMap.put ( id , new org.ovirt.engine.core.common.utils.Pair ( vdcActionType , parameters ) ) ; }
Source:
public void testGetMaxPciDevices ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( ( ( OsRepositoryImpl.INSTANCE.getMaxPciDevices ( 777 , null ) ) == 26 ) ) ; }

Target:
public void testGetMaxPciDevices ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( 26 , OsRepositoryImpl.INSTANCE.getMaxPciDevices ( 777 , null ) ) ; }
Source:
protected boolean formatStorage ( org.ovirt.engine.core.common.businessentities.storage_domains dom , org.ovirt.engine.core.common.businessentities.VDS vds ) { return getVdsBroker ( ) . RunVdsCommand ( VDSCommandType.FormatStorageDomain , new org.ovirt.engine.core.common.vdscommands.FormatStorageDomainVDSCommandParameters ( vds.getId ( ) , dom.getId ( ) ) ) . getSucceeded ( ) ; }

Target:
protected boolean formatStorage ( org.ovirt.engine.core.common.businessentities.StorageDomain dom , org.ovirt.engine.core.common.businessentities.VDS vds ) { return getVdsBroker ( ) . RunVdsCommand ( VDSCommandType.FormatStorageDomain , new org.ovirt.engine.core.common.vdscommands.FormatStorageDomainVDSCommandParameters ( vds.getId ( ) , dom.getId ( ) ) ) . getSucceeded ( ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.tab.TabDefinition createNewTab ( com.gwtplatform.mvp.client.TabData tabData ) { return org.ovirt.engine.ui.common.widget.tab.TabFactory.createTab ( tabData , this , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.instance ( ) . getEventBus ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.tab.TabDefinition createNewTab ( com.gwtplatform.mvp.client.TabData tabData ) { return org.ovirt.engine.ui.common.widget.tab.TabFactory.createTab ( tabData , this , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) ) ; }
Source:
protected boolean canDoAction ( ) { return validate ( org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionExtensionCommand.getConnectionExtensionValidator ( ) . isConnectionExtensionExists ( org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionExtensionCommand.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected boolean validate ( ) { return validate ( org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionExtensionCommand.getConnectionExtensionValidator ( ) . isConnectionExtensionExists ( org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionExtensionCommand.getParameters ( ) . getId ( ) ) ) ; }
Source:
private boolean isTypeOpenStackNetwork ( ) { return ( ( org.ovirt.engine.core.common.businessentities.ProviderType ) ( getType ( ) . getSelectedItem ( ) ) ) == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ; }

Target:
public boolean isTypeOpenStackNetwork ( ) { return ( ( org.ovirt.engine.core.common.businessentities.ProviderType ) ( getType ( ) . getSelectedItem ( ) ) ) == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ; }
Source:
public void setUp ( ) { org.mockito.Mockito.doReturn ( vmDaoMock ) . when ( command ) . getVmDao ( ) ; org.mockito.Mockito.doReturn ( vmDeviceDaoMock ) . when ( command ) . getVmDeviceDao ( ) ; }

Target:
public void setUp ( ) { org.mockito.Mockito.doReturn ( vmDeviceDaoMock ) . when ( command ) . getVmDeviceDao ( ) ; }
Source:
public void addHost ( java.lang.String policyUnit , org.ovirt.engine.core.compat.Guid host , java.lang.Integer score ) { if ( ( hostsWithScores ) == null ) { hostsWithScores = new java.util.ArrayList < > ( ) ; } hostsWithScores.add ( new org.ovirt.engine.core.bll.scheduling.external.WeightResultEntry ( host , score , policyUnit ) ) ; }

Target:
public void addHost ( java.lang.String policyUnit , org.ovirt.engine.core.compat.Guid host , java.lang.Integer score ) { hostsWithScores.add ( new org.ovirt.engine.core.bll.scheduling.external.WeightResultEntry ( host , score , policyUnit ) ) ; }
Source:
private org.ovirt.engine.core.aaa.DirectoryGroup getDirectoryGroup ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( new org.ovirt.engine.core.aaa.DirectoryStub ( DOMAIN ) , EXTERNAL_IDS [ index ] , org.ovirt.engine.api.restapi.resource.BackendGroupsResourceTest.GROUP_NAMES [ index ] ) ; }

Target:
private org.ovirt.engine.core.aaa.DirectoryGroup getDirectoryGroup ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , EXTERNAL_IDS [ index ] , org.ovirt.engine.api.restapi.resource.BackendGroupsResourceTest.GROUP_NAMES [ index ] ) ; }
Source:
public static java.util.Collection < java.lang.Object [ ] > comparisonParameters ( ) { return java.util.Arrays.asList ( new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { null , false } , new java.lang.Object [ ] { "" , false } , new java.lang.Object [ ] { "http://" , false } , new java.lang.Object [ ] { "www.redhat.com" , false } , new java.lang.Object [ ] { "192.168.0.1" , false } , new java.lang.Object [ ] { "ftp://www.redhat.com" , false } , new java.lang.Object [ ] { "ftp://192.168.0.1" , false } , new java.lang.Object [ ] { "http://1.2.3.4:666" , true } , new java.lang.Object [ ] { "http://1.2.3.4" , true } , new java.lang.Object [ ] { "http://[1:2:3:4:5:6:7:8]" , true } , new java.lang.Object [ ] { "http://[1:2:3:4:5:6:7:8]:666" , true } , new java.lang.Object [ ] { "http://www.redhat.com" , true } , new java.lang.Object [ ] { "http://www.redhat.com/main" , true } , new java.lang.Object [ ] { "http://www.redhat.com/main/index.html" , true } , new java.lang.Object [ ] { "http://www.redhat.com:80" , true } , new java.lang.Object [ ] { "http://www.redhat.com:80/main" , true } , new java.lang.Object [ ] { "http://www.redhat.com:80/main/index.html" , true } } ) ; }

Target:
public static java.lang.Object [ ] [ ] comparisonParameters ( ) { return new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { null , false } , new java.lang.Object [ ] { "" , false } , new java.lang.Object [ ] { "http://" , false } , new java.lang.Object [ ] { "www.redhat.com" , false } , new java.lang.Object [ ] { "192.168.0.1" , false } , new java.lang.Object [ ] { "ftp://www.redhat.com" , false } , new java.lang.Object [ ] { "ftp://192.168.0.1" , false } , new java.lang.Object [ ] { "http://1.2.3.4:666" , true } , new java.lang.Object [ ] { "http://1.2.3.4" , true } , new java.lang.Object [ ] { "http://[1:2:3:4:5:6:7:8]" , true } , new java.lang.Object [ ] { "http://[1:2:3:4:5:6:7:8]:666" , true } , new java.lang.Object [ ] { "http://www.redhat.com" , true } , new java.lang.Object [ ] { "http://www.redhat.com/main" , true } , new java.lang.Object [ ] { "http://www.redhat.com/main/index.html" , true } , new java.lang.Object [ ] { "http://www.redhat.com:80" , true } , new java.lang.Object [ ] { "http://www.redhat.com:80/main" , true } , new java.lang.Object [ ] { "http://www.redhat.com:80/main/index.html" , true } } ; }
Source:
protected int getEneitiesTotalCount ( ) { return 1 ; }

Target:
protected int getEneitiesTotalCount ( ) { return 2 ; }
Source:
public void updateGlusterHook ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook , org.ovirt.engine.core.compat.Guid hostId ) ;

Target:
public void updateGlusterHook ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook ) ;
Source:
protected void removeQuotaCommandLeftOver ( ) { org.ovirt.engine.core.bll.QuotaManager.removeVdsGroupDeltaQuotaCommand ( org.ovirt.engine.core.bll.RunVmCommand.getQuotaId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getvds_group_id ( ) , org.ovirt.engine.core.bll.RunVmCommand.getCommandId ( ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getQuotaId ( ) ; }
Source:
public void passthroughProfileContainsQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileContainsQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM createEmptyVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setClusterCompatibilityVersion ( Version.v3_4 ) ; vm.setCustomProperties ( StringUtils.EMPTY ) ; vm.setPredefinedProperties ( StringUtils.EMPTY ) ; vm.setUserDefinedProperties ( StringUtils.EMPTY ) ; return vm ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM createEmptyVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setCustomProperties ( StringUtils.EMPTY ) ; vm.setPredefinedProperties ( StringUtils.EMPTY ) ; vm.setUserDefinedProperties ( StringUtils.EMPTY ) ; return vm ; }
Source:
public void setVdsGroupId ( org.ovirt.engine.core.compat.Guid value ) { this . vdsGroupId = value ; }

Target:
public void setVdsGroupId ( org.ovirt.engine.core.compat.Guid value ) { vdsGroupId = value ; }
Source:
private void cleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.DisconnectStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , null , this ) ; }

Target:
private void cleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.DisconnectStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId , false ) , null , this ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( "foo" , null , null ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( "foo" , null , null , null ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { soundDeviceSupportMap = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( result ) ) . getReturnValue ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue result ) { soundDeviceSupportMap = result.getReturnValue ( ) ; }
Source:
protected boolean checkImageConfiguration ( ) { return org.ovirt.engine.core.bll.ImagesHandler.CheckImageConfiguration ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) . getStorageStaticData ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean checkImageConfiguration ( ) { return org.ovirt.engine.core.bll.ImagesHandler.checkImageConfiguration ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) . getStorageStaticData ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }
Source:
protected void doExecute ( ) { startProgress ( null ) ; }

Target:
protected void doExecute ( ) { startProgress ( ) ; }
Source:
private boolean checkVmNeedsHostDevices ( org.ovirt.engine.core.compat.Guid vmId ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > vfs = vmDeviceDao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.INTERFACE , VmDeviceType.HOST_DEVICE.getName ( ) ) ; return ( ! ( vfs.isEmpty ( ) ) ) || ( checkVmNeedsDirectPassthrough ( vmId ) ) ; }

Target:
private boolean checkVmNeedsHostDevices ( org.ovirt.engine.core.compat.Guid vmId ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > vfs = vmDeviceDao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.INTERFACE , VmDeviceType.HOST_DEVICE ) ; return ( ! ( vfs.isEmpty ( ) ) ) || ( checkVmNeedsDirectPassthrough ( vmId ) ) ; }
Source:
public org.ovirt.engine.api.model.Groups list ( ) { if ( isFiltered ( ) ) { return mapDbGroupsCollection ( getBackendCollection ( org.ovirt.engine.core.common.businessentities.DbUser.class , VdcQueryType.GetAllDbUsers , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapDbGroupsCollection ( getGroupsCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; } }

Target:
public org.ovirt.engine.api.model.Groups list ( ) { return mapDbGroupsCollection ( getGroupsCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; }
Source:
org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.bll.tasks.interfaces.SPMTask task , org.ovirt.engine.core.bll.job.ExecutionContext context ) ;

Target:
org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.bll.tasks.interfaces.SPMTask task ) ;
Source:
private void syncStorageDevices ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.SyncStorageDevices , new org.ovirt.engine.core.common.action.VdsActionParameters ( getEntity ( ) . getId ( ) ) ) ; }

Target:
private void syncStorageDevices ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.SyncStorageDevices , new org.ovirt.engine.core.common.action.VdsActionParameters ( getEntity ( ) . getId ( ) ) , null , true , true ) ; }
Source:
protected M getParentModel ( ) { return parentModelProvider.getModel ( ) ; }

Target:
protected M getParentModel ( ) { return parentModelProvider.get ( ) ; }
Source:
public void setUp ( ) { tested = new org.ovirt.engine.ui.common.utils.AddOnlyRingBuffer < java.lang.String > ( org.ovirt.engine.ui.common.utils.AddOnlyRingBufferTest.CAPACITY , new org.ovirt.engine.ui.common.utils.AddOnlyRingBufferTest.StringArrayBuffer ( ) ) ; }

Target:
public void setUp ( ) { tested = new org.ovirt.engine.ui.common.utils.AddOnlyRingBuffer ( org.ovirt.engine.ui.common.utils.AddOnlyRingBufferTest.CAPACITY , new org.ovirt.engine.ui.common.utils.AddOnlyRingBufferTest.StringArrayBuffer ( ) ) ; }
Source:
protected final void addCanDoActionMessages ( org.ovirt.engine.core.common.errors.VdcBllMessages ... messages ) { for ( org.ovirt.engine.core.common.errors.VdcBllMessages msg : messages ) { addCanDoActionMessage ( msg ) ; } }

Target:
protected final void addCanDoActionMessages ( org.ovirt.engine.core.common.errors.EngineMessage ... messages ) { for ( org.ovirt.engine.core.common.errors.EngineMessage msg : messages ) { addCanDoActionMessage ( msg ) ; } }
Source:
protected boolean shouldRemoveMemorySnapshotVolumes ( java.lang.String memoryVolume ) { return ( ! ( memoryVolume.isEmpty ( ) ) ) && ( ( getDbFacade ( ) . getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ) == 1 ) ; }

Target:
protected abstract boolean shouldRemoveMemorySnapshotVolumes ( java.lang.String memoryVolume ) ;
Source:
public void CancelConfirmWithFocus ( ) { setConfirmWindow ( null ) ; org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel hostModel = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( getWindow ( ) ) ) ; hostModel.setIsPowerManagementTabSelected ( true ) ; hostModel.getIsPm ( ) . setEntity ( true ) ; }

Target:
public void CancelConfirmWithFocus ( ) { setConfirmWindow ( null ) ; org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel hostModel = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( getWindow ( ) ) ) ; hostModel.setIsPowerManagementTabSelected ( true ) ; }
Source:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port , org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient.CertCallback certCallback ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.SSLStompClient ( reactor , selector , hostname , port , this . sslContext , certCallback ) ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.SSLStompClient ( reactor , selector , hostname , port , this . sslContext ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.NetworkStatus getRawValue ( org.ovirt.engine.core.common.businessentities.network object ) { return object.getStatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.NetworkStatus getRawValue ( org.ovirt.engine.core.common.businessentities.Network object ) { return object.getStatus ( ) ; }
Source:
public java.lang.Integer getIpv6Prefix ( ) { return networkAttachmentModel.getIpv6Prefix ( ) . getEntity ( ) ; }

Target:
public java.lang.Integer getIpv6Prefix ( ) { return ( networkAttachmentModel.getIpv6Prefix ( ) ) != null ? networkAttachmentModel.getIpv6Prefix ( ) . getEntity ( ) : null ; }
Source:
public void setContent ( com.google.gwt.user.client.ui.Widget widget ) { contentPanel.setWidget ( widget ) ; widget.addStyleName ( style.contentWidget ( ) ) ; }

Target:
public void setContent ( com.google.gwt.user.client.ui.Widget widget ) { contentPanel.setWidget ( widget ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { this . setVmsWithvNumaNodeList ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > ) ( returnValue ) ) ) ; initVNumaNodes ( ) ; this . modelReady ( ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > returnValue ) { setVmsWithvNumaNodeList ( returnValue ) ; initVNumaNodes ( ) ; modelReady ( ) ; }
Source:
public void setGroups ( java.util.List < org.ovirt.engine.core.aaa.DirectoryGroup > groups ) { this . groups = new java.util.ArrayList < org.ovirt.engine.core.aaa.DirectoryGroup > ( groups.size ( ) ) ; this . groups.addAll ( groups ) ; }

Target:
public void setGroups ( java.util.List < org.ovirt.engine.core.aaa.DirectoryGroup > groups ) { this . groups = groups ; }
Source:
public void testGetByNameAndDataCenter ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndDataCenter ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , datacenter ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , result.getname ( ) ) ; }

Target:
public void testGetByNameAndDataCenter ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndDataCenter ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , datacenter ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , result.getName ( ) ) ; }
Source:
protected void initTable ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { getModelBoundTableWidget ( ) . initTable ( constants ) ; }

Target:
protected void initTable ( ) { getModelBoundTableWidget ( ) . initTable ( ) ; }
Source:
public org.ovirt.engine.api.resource.ActionResource getActionSubresource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action , @ javax.ws.rs.PathParam ( value = "oid" ) java.lang.String oid ) ;

Target:
org.ovirt.engine.api.resource.ActionResource getActionSubresource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action , @ javax.ws.rs.PathParam ( value = "oid" ) java.lang.String oid ) ;
Source:
public void areAllVfsFreeTrueNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertTrue ( networkDeviceHelper.areAllVfsFree ( nic ) ) ; }

Target:
public void areAllVfsFreeTrueNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertTrue ( networkDeviceHelper.areAllVfsFree ( nic ) ) ; }
Source:
private org.ovirt.engine.core.bll.interfaces.BackendInternal getBackend ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.bll.interfaces.BackendInternal getBackend ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) ; }
Source:
private void saveDiskImageDynamic ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.common.businessentities.DiskImageDynamic diskDynamic = new org.ovirt.engine.core.common.businessentities.DiskImageDynamic ( ) ; diskDynamic.setId ( disk.getImageId ( ) ) ; diskDynamic.setactual_size ( disk.getactual_size ( ) ) ; getDiskImageDynamicDAO ( ) . save ( diskDynamic ) ; }

Target:
protected void saveDiskImageDynamic ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.common.businessentities.DiskImageDynamic diskDynamic = new org.ovirt.engine.core.common.businessentities.DiskImageDynamic ( ) ; diskDynamic.setId ( disk.getImageId ( ) ) ; diskDynamic.setactual_size ( disk.getactual_size ( ) ) ; getDiskImageDynamicDAO ( ) . save ( diskDynamic ) ; }
Source:
public org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType vdcObjectType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return org.ovirt.engine.core.compat.Guid.Empty ; }

Target:
public org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType vdcObjectType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return super . createTask ( taskId , asyncTaskCreationInfo , parentCommand , vdcObjectType , entityIds ) ; }
Source:
protected org.ovirt.engine.core.bll.AddVmCommand < org.ovirt.engine.core.common.action.AddVmParameters > createCommand ( ) { initVM ( ) ; return new org.ovirt.engine.core.bll.AddVmCommand ( new org.ovirt.engine.core.common.action.AddVmParameters ( vm ) , null ) ; }

Target:
protected org.ovirt.engine.core.bll.AddVmCommand < org.ovirt.engine.core.common.action.AddVmParameters > createCommand ( ) { return new org.ovirt.engine.core.bll.AddVmCommand ( new org.ovirt.engine.core.common.action.AddVmParameters ( vm ) , null ) ; }
Source:
public java.lang.String getDomain ( ) { return isLoggedIn ( ) ? loggedUser.getDomainControler ( ) : null ; }

Target:
public java.lang.String getDomain ( ) { return isLoggedIn ( ) ? loggedUser.getDomain ( ) : null ; }
Source:
private org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient getClient ( ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( this . client.isOpen ( ) ) { return this . client ; } this . client.connect ( ) ; return this . client ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient getClient ( ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( this . client.isOpen ( ) ) { return this . client ; } this . client.connect ( ) ; return this . client ; }
Source:
public void rollback ( ) { super . rollback ( ) ; try { org.ovirt.engine.core.bll.MacPoolManager.getInstance ( ) . freeMac ( getMacAddress ( ) ) ; } catch ( java.lang.Exception e ) { } }

Target:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.MacPoolManager.getInstance ( ) . freeMac ( getMacAddress ( ) ) ; }
Source:
public java.util.Set < org.ovirt.engine.sdk.entities.VM > getVms ( ) { return vms ; }

Target:
public java.util.Map < java.lang.String , org.ovirt.engine.sdk.entities.VM > getVms ( ) { return vms ; }
Source:
public boolean hasVlan ( ) { return ( getVlanId ( ) ) > 0 ; }

Target:
public boolean hasVlan ( ) { return ( getVlanId ( ) ) >= 0 ; }
Source:
public void setGlusterVolumeId ( org.ovirt.engine.core.compat.Guid value ) { glusterVolumeId = value ; }

Target:
public void setGlusterVolumeId ( org.ovirt.engine.core.compat.Guid glusterVolumeId ) { this . glusterVolumeId = glusterVolumeId ; }
Source:
public boolean isMonitoringNeeded ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( ( vds.getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VDSStatus.NonOperational ) ) || ( ( vds.getVmCount ( ) ) > 0 ) ; }

Target:
public boolean isMonitoringNeeded ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return true ; }
Source:
protected void setTooltip ( com.google.gwt.safehtml.shared.SafeHtml tooltipText ) { this . tooltipText = tooltipText ; setHeaderTooltipStyle ( tooltipText ) ; }

Target:
protected void setTooltip ( com.google.gwt.safehtml.shared.SafeHtml tooltipText ) { this . tooltipText = tooltipText ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; } return source ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.lang.Integer.valueOf ( 0 ) ; } return source ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return org.apache.commons.lang.StringUtils.equals ( i.getNetworkName ( ) , net.getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return org.apache.commons.lang.StringUtils.equals ( i.getNetworkName ( ) , net.getName ( ) ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUpGetDomainExpectations ( StorageType.NFS , true ) ; setUpGetConnectionExpectations ( ) ; setUriInfo ( setUpBasicUriExpectations ( ) ) ; control.replay ( ) ; verifyStorageDomain ( resource.get ( ) ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUpGetDomainExpectations ( StorageType.NFS , true ) ; setUpGetConnectionExpectations ( ) ; setUriInfo ( setUpBasicUriExpectations ( ) ) ; verifyStorageDomain ( resource.get ( ) ) ; }
Source:
public void getForNonExistentVds ( ) { org.ovirt.engine.core.common.businessentities.VdsKdumpStatus found = dbFacade.getVdsKdumpStatusDao ( ) . get ( new org.ovirt.engine.core.compat.Guid ( "11111111-2222-3333-4444-555555555555" ) ) ; org.junit.Assert.assertNull ( found ) ; }

Target:
public void getForNonExistentVds ( ) { org.ovirt.engine.core.common.businessentities.VdsKdumpStatus found = dao.get ( new org.ovirt.engine.core.compat.Guid ( "11111111-2222-3333-4444-555555555555" ) ) ; org.junit.Assert.assertNull ( found ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( object ) ) . getName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getName ( ) ; }
Source:
protected void init ( ) { resource.setBackend ( backend ) ; resource.setMappingLocator ( mapperLocator ) ; resource.setValidatorLocator ( validatorLocator ) ; resource.setSessionHelper ( sessionHelper ) ; resource.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }

Target:
protected void init ( ) { resource.setBackend ( backend ) ; resource.setMappingLocator ( mapperLocator ) ; resource.setValidatorLocator ( validatorLocator ) ; resource.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }
Source:
public void setDefaultDisplayType ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { vmStatic.setdefault_display_type ( value ) ; }

Target:
public void setDefaultDisplayType ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { vmStatic.setDefaultDisplayType ( value ) ; }
Source:
public boolean isTrue ( ) { java.lang.String quotaName = getModel ( ) . getQuotaName ( ) ; return ( quotaName != null ) && ( quotaName != "" ) ; }

Target:
public boolean isTrue ( ) { java.lang.String quotaName = getModel ( ) . getQuotaName ( ) ; return ( quotaName != null ) && ( ! ( "" . equals ( quotaName ) ) ) ; }
Source:
private void updateMtuChangeability ( ) { getMtu ( ) . setIsChangable ( ( ( ( java.lang.Boolean ) ( getHasMtu ( ) . getEntity ( ) ) ) && ( ! ( ( java.lang.Boolean ) ( getExport ( ) . getEntity ( ) ) ) ) ) ) ; }

Target:
private void updateMtuChangeability ( ) { getMtu ( ) . setIsChangable ( ( ( getHasMtu ( ) . getEntity ( ) ) && ( ! ( getExport ( ) . getEntity ( ) ) ) ) ) ; }