auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResource ( org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResourceTest.CLUSTER_ID , "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResource ( "foo" , null ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage_domains domain ) { return ( domain.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.ISO ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain domain ) { return ( domain.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.ISO ) ; }
Source:
public void getAllExistingVariables ( ) { for ( org.ovirt.engine.core.common.businessentities.DwhHistoryTimekeepingVariable var : org.ovirt.engine.core.common.businessentities.DwhHistoryTimekeepingVariable.values ( ) ) { if ( var != ( org.ovirt.engine.core.common.businessentities.DwhHistoryTimekeepingVariable.UNDEFINED ) ) { org.junit.Assert.assertNotNull ( dbFacade.getDwhHistoryTimekeepingDao ( ) . get ( var ) ) ; } } }

Target:
public void getAllExistingVariables ( ) { for ( org.ovirt.engine.core.common.businessentities.DwhHistoryTimekeepingVariable var : org.ovirt.engine.core.common.businessentities.DwhHistoryTimekeepingVariable.values ( ) ) { if ( var != ( org.ovirt.engine.core.common.businessentities.DwhHistoryTimekeepingVariable.UNDEFINED ) ) { org.junit.Assert.assertNotNull ( dao.get ( var ) ) ; } } }
Source:
public void sparsifyNotSupportedWhenDiskIsPreallocated ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = createStorageDomainForDisk ( StorageType.NFS ) ; disk.getImage ( ) . setVolumeType ( VolumeType.Preallocated ) ; org.junit.Assert.assertThat ( validator.isSparsifySupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SPARSIFY_NOT_SUPPORTED_FOR_PREALLOCATED ) ) ; }

Target:
public void sparsifyNotSupportedWhenDiskIsPreallocated ( ) { createStorageDomainForDisk ( StorageType.NFS ) ; disk.getImage ( ) . setVolumeType ( VolumeType.Preallocated ) ; org.junit.Assert.assertThat ( validator.isSparsifySupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SPARSIFY_NOT_SUPPORTED_FOR_PREALLOCATED ) ) ; }
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 ) && ( ! ( quotaName.equals ( "" ) ) ) ; }
Source:
protected boolean isISO ( org.ovirt.engine.core.common.businessentities.storage_domains dom ) { return ( dom.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.ISO ) ; }

Target:
protected boolean isISO ( org.ovirt.engine.core.common.businessentities.StorageDomain dom ) { return ( dom.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.ISO ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Network object ) { return object.getname ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.Network object ) { return object.getname ( ) ; }
Source:
private org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > createCommand ( org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters params ) { org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand ( params ) ) ; org.mockito.Mockito.doReturn ( vdsDao ) . when ( command ) . getVdsDao ( ) ; return command ; }

Target:
private org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > createCommand ( org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters params ) { org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand ( params , null ) ) ; org.mockito.Mockito.doReturn ( vdsDao ) . when ( command ) . getVdsDao ( ) ; return command ; }
Source:
public org.ovirt.engine.api.model.Vm get ( ) { switch ( parent.getStorageDomainType ( ) ) { case Data : case Master : return getFromDataDomain ( ) ; case ImportExport : return getFromExportDomain ( ) ; case ISO : case Unknown : default : return null ; } }

Target:
public org.ovirt.engine.api.model.Vm get ( ) { switch ( parent.getStorageDomainType ( ) ) { case Data : case Master : return getFromDataDomain ( ) ; case ImportExport : return getFromExportDomain ( ) ; default : return null ; } }
Source:
public org.ovirt.engine.core.common.businessentities.VDSStatus getStatus ( ) { return org.ovirt.engine.core.common.businessentities.VDSStatus.forValue ( status ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSStatus getStatus ( ) { return status ; }
Source:
public java.lang.String getid ( ) { return this . id ; }

Target:
public java.lang.String getId ( ) { return this . id ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getStorageDomainDao ( ) ) ; existingDomain = dao.get ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_DOMAIN_ID ) ; newStaticDomain = new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ; newStaticDomain.setstorage ( "fDMzhE-wx3s-zo3q-Qcxd-T0li-yoYU-QvVePl" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStorageDomainDao ( ) ; existingDomain = dao.get ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_DOMAIN_ID ) ; newStaticDomain = new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ; newStaticDomain.setstorage ( "fDMzhE-wx3s-zo3q-Qcxd-T0li-yoYU-QvVePl" ) ; }
Source:
protected java.util.Map [ ] getVmInfo ( java.util.List < java.lang.String > vmsToUpdate ) { return ( ( java.util.Map [ ] ) ( new org.ovirt.engine.core.vdsbroker.vdsbroker.FullListVdsCommand < org.ovirt.engine.core.common.vdscommands.FullListVDSCommandParameters > ( new org.ovirt.engine.core.common.vdscommands.FullListVDSCommandParameters ( _vds.getId ( ) , vmsToUpdate ) ) . executeWithReturnValue ( ) ) ) ; }

Target:
protected java.util.Map [ ] getVmInfo ( java.util.List < java.lang.String > vmsToUpdate ) { return ( ( java.util.Map [ ] ) ( new org.ovirt.engine.core.vdsbroker.vdsbroker.FullListVdsCommand < org.ovirt.engine.core.common.vdscommands.FullListVDSCommandParameters > ( new org.ovirt.engine.core.common.vdscommands.FullListVDSCommandParameters ( _vds , vmsToUpdate ) ) . executeWithReturnValue ( ) ) ) ; }
Source:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , null ) ; org.junit.Assert.assertTrue ( "Should be map of disk alias and disk description" , jsonDescription.equals ( "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"\"}" ) ) ; }

Target:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , null ) ; org.junit.Assert.assertEquals ( "Should be map of disk alias and disk description" , "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"\"}" , jsonDescription ) ; }
Source:
public void testQueryWithSameUserAndDisks ( ) { assertExecuteQueryCommandResult ( getUser ( ) . getUserId ( ) , true , true ) ; }

Target:
public void testQueryWithSameUserAndDisks ( ) { assertExecuteQueryCommandResult ( getUser ( ) . getId ( ) , true , true ) ; }
Source:
public void testCanDoActionCommand ( ) throws java.lang.Exception { mockStoragePoolDAO ( ) ; org.ovirt.engine.core.bll.RemoveQuotaCommand < org.ovirt.engine.core.common.action.QuotaCRUDParameters > removeQuotaCommand = createCommand ( ) ; junit.framework.Assert.assertTrue ( removeQuotaCommand.canDoAction ( ) ) ; }

Target:
public void testCanDoActionCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.RemoveQuotaCommand < org.ovirt.engine.core.common.action.QuotaCRUDParameters > removeQuotaCommand = createCommand ( ) ; junit.framework.Assert.assertTrue ( removeQuotaCommand.canDoAction ( ) ) ; }
Source:
public static java.lang.String getEngineSSHPublicKey ( ) { return org.ovirt.engine.core.utils.crypt.OpenSSHUtils.getKeyString ( org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.getCertificate ( ) . getPublicKey ( ) , org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.SSHKeyAlias ) ) ; }

Target:
public static java.lang.String getEngineSSHPublicKey ( ) { return org.ovirt.engine.core.utils.crypt.OpenSSHUtils.getKeyString ( org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.getCertificate ( ) . getPublicKey ( ) , org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.SSHKeyAlias ) ) ; }
Source:
private org.ovirt.engine.core.common.action.SetupNetworksParameters createParametersForSync ( java.lang.String network , org.ovirt.engine.core.common.businessentities.VdsNetworkInterface ... nics ) { org.ovirt.engine.core.common.action.SetupNetworksParameters params = createParametersForNics ( nics ) ; params.setNetworksToSync ( java.util.Collections.singletonList ( network ) ) ; return params ; }

Target:
private org.ovirt.engine.core.common.action.SetupNetworksParameters createParametersForSync ( java.lang.String network , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ... nics ) { org.ovirt.engine.core.common.action.SetupNetworksParameters params = createParametersForNics ( nics ) ; params.setNetworksToSync ( java.util.Collections.singletonList ( network ) ) ; return params ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( NAMES [ index ] , model.getUserName ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( ( ( ( NAMES [ index ] ) + "@" ) + ( DOMAIN ) ) , model.getUserName ( ) ) ; }
Source:
public void rollbackQuota ( ) { org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getQuotaManager ( ) . rollbackQuota ( getStoragePool ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getQuotaManager ( ) . getQuotaListFromParameters ( getStorageQuotaListParameters ( ) ) ) ; }

Target:
public void rollbackQuota ( ) { org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getQuotaManager ( ) . rollbackQuota ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getStoragePool ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getQuotaManager ( ) . getQuotaListFromParameters ( getStorageQuotaListParameters ( ) ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network network ) { return network.getId ( ) . equals ( nc.getnetwork_id ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network network ) { return network.getId ( ) . equals ( nc.getnetwork_id ( ) ) ; }
Source:
public void testExecuteCommandNoUpdateNonInheritableRole ( ) { getRole ( ) . setAllowsViewingChildren ( false ) ; getParams ( ) . setActionGroups ( new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ActionGroup > ( java.util.Collections.singletonList ( ActionGroup.CREATE_VM ) ) ) ; getCommand ( ) . executeCommand ( ) ; verifyRoleSaving ( false ) ; }

Target:
public void testExecuteCommandNoUpdateNonInheritableRole ( ) { getRole ( ) . setAllowsViewingChildren ( false ) ; getParams ( ) . setActionGroups ( new java.util.ArrayList ( java.util.Collections.singletonList ( ActionGroup.CREATE_VM ) ) ) ; getCommand ( ) . executeCommand ( ) ; verifyRoleSaving ( false ) ; }
Source:
public void addHost ( org.ovirt.engine.core.compat.Guid host ) { if ( ( possibleHosts ) == null ) { possibleHosts = new java.util.LinkedList < > ( ) ; } possibleHosts.add ( host ) ; }

Target:
public void addHost ( org.ovirt.engine.core.compat.Guid host ) { possibleHosts.add ( host ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { refreshCustomProperties ( currentLoadBalance ) ; currentLoadBalance = ( ( org.ovirt.engine.core.common.scheduling.PolicyUnit ) ( getLoadBalanceList ( ) . getSelectedItem ( ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { refreshCustomProperties ( currentLoadBalance , false ) ; currentLoadBalance = ( ( org.ovirt.engine.core.common.scheduling.PolicyUnit ) ( getLoadBalanceList ( ) . getSelectedItem ( ) ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( org.ovirt.engine.core.common.businessentities.aaa.DbUser userToLogoff ) ;

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( ) ;
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.async_tasks > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskRowMapper mapper = new org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskRowMapper ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromasync_tasks" , mapper , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.async_tasks > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromasync_tasks" , org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskRowMapper.instance , parameterSource ) ; }
Source:
public void diskSnapshotsExist ( ) { org.junit.Assert.assertEquals ( validator.diskSnapshotsNotExist ( java.util.Arrays.asList ( disk1.getImageId ( ) , disk2.getImageId ( ) ) ) , ValidationResult.VALID ) ; }

Target:
public void diskSnapshotsExist ( ) { org.junit.Assert.assertEquals ( ValidationResult.VALID , validator.diskSnapshotsNotExist ( java.util.Arrays.asList ( disk1.getImageId ( ) , disk2.getImageId ( ) ) ) ) ; }
Source:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( org.ovirt.engine.core.compat.StringFormat.format ( "Vms: network=%1$s" , getEntity ( ) . getname ( ) ) ) ; super . Search ( ) ; } }

Target:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { super . Search ( ) ; } }
Source:
public static int getCdDeviceIndex ( java.lang.String cdInterface ) { switch ( cdInterface ) { case "scsi" : return 0 ; case "ide" : return 2 ; case "sata" : return 0 ; default : return - 1 ; } }

Target:
public static int getCdDeviceIndex ( java.lang.String cdInterface ) { switch ( cdInterface ) { case "scsi" : case "ide" : case "sata" : return 2 ; default : return - 1 ; } }
Source:
public boolean validate ( ) { super . validate ( ) ; getSizeExtend ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.NonNegativeLongNumberValidation ( ) } ) ; return getSizeExtend ( ) . getIsValid ( ) ; }

Target:
public boolean validate ( ) { getSizeExtend ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.NonNegativeLongNumberValidation ( ) } ) ; return ( super . validate ( ) ) && ( getSizeExtend ( ) . getIsValid ( ) ) ; }
Source:
public void areAllVfsFreeFalseAttachedToVm ( ) { freeVfCommon ( 7 , 3 , 0 , 0 , 0 ) ; org.junit.Assert.assertFalse ( networkDeviceHelper.areAllVfsFree ( nic ) ) ; }

Target:
public void areAllVfsFreeFalseAttachedToVm ( ) { freeVfCommon ( 7 , 3 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertFalse ( networkDeviceHelper.areAllVfsFree ( nic ) ) ; }
Source:
private static org.ovirt.engine.api.rsdl.ServiceTreeNode buildTree ( ) { return org.ovirt.engine.api.rsdl.ServiceTree.buildNode ( org.ovirt.engine.api.resource.SystemResource.class , "" ) ; }

Target:
private static org.ovirt.engine.api.rsdl.ServiceTreeNode buildTree ( ) { return org.ovirt.engine.api.rsdl.ServiceTree.buildNode ( org.ovirt.engine.api.resource.SystemResource.class ) ; }
Source:
public org.ovirt.engine.api.resource.SchedulingPolicyUnitResource getSchedulingPolicyUnitSubResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendSchedulingPolicyUnitResource ( id , getPolicyUnit ( id ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.SchedulingPolicyUnitResource getSchedulingPolicyUnitSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendSchedulingPolicyUnitResource ( id ) ) ; }
Source:
public org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VDS , org.ovirt.engine.core.common.vdscommands.VDSReturnValue > call ( ) throws java.lang.Exception { org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue = runVdsCommand ( VDSCommandType.GlusterHooksList , new org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase ( upServer.getId ( ) ) ) ; return new org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VDS , org.ovirt.engine.core.common.vdscommands.VDSReturnValue > ( upServer , returnValue ) ; }

Target:
public org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VDS , org.ovirt.engine.core.common.vdscommands.VDSReturnValue > call ( ) throws java.lang.Exception { org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue = runVdsCommand ( VDSCommandType.GlusterHooksList , new org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase ( upServer.getId ( ) ) ) ; return new org.ovirt.engine.core.common.utils.Pair ( upServer , returnValue ) ; }
Source:
public void testGetWindowsOss ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( ( ( OsRepositoryImpl.INSTANCE.getWindowsOss ( ) . size ( ) ) == 0 ) ) ; }

Target:
public void testGetWindowsOss ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( 0 , OsRepositoryImpl.INSTANCE.getWindowsOss ( ) . size ( ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVms ( ) { if ( ( vms ) == null ) { vms = getDbFacade ( ) . getVmDao ( ) . getAllForNetwork ( network.getId ( ) ) ; } return vms ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVms ( ) { if ( ( vms ) == null ) { vms = getVmDao ( ) . getAllForNetwork ( network.getId ( ) ) ; } return vms ; }
Source:
public void testParseInvalidOption ( ) { try { org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:one=1,two=2,three" , "one=bool,two=int,three=bool" ) ; fail ( "expected IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException iae ) { } }

Target:
public void testParseInvalidOption ( ) { org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:one=1,two=2,three" , "one=bool,two=int,three=bool" ) ; }
Source:
public void testCDAStoragePoolValid ( ) { vds.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertFalse ( "canDoAction did not fail on mismatch Storage Pool" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessagesContains ( command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_NOT_IN_POOL ) ; }

Target:
public void testCDAStoragePoolValid ( ) { vds.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertFalse ( "canDoAction did not fail on mismatch Storage Pool" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessagesContains ( command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_NOT_IN_POOL ) ; }
Source:
protected void loadClusterPolicies ( ) { java.util.List < org.ovirt.engine.core.common.scheduling.ClusterPolicy > allClusterPolicies = getClusterPolicyDao ( ) . getAll ( ) ; for ( org.ovirt.engine.core.common.scheduling.ClusterPolicy clusterPolicy : allClusterPolicies ) { policyMap.put ( clusterPolicy.getId ( ) , clusterPolicy ) ; } }

Target:
private void loadClusterPolicies ( ) { java.util.List < org.ovirt.engine.core.common.scheduling.ClusterPolicy > allClusterPolicies = getClusterPolicyDao ( ) . getAll ( ) ; for ( org.ovirt.engine.core.common.scheduling.ClusterPolicy clusterPolicy : allClusterPolicies ) { policyMap.put ( clusterPolicy.getId ( ) , clusterPolicy ) ; } }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( commandId , phase , lastUpdated , message , vdsId , diskId , imagedTicketId , proxyUri , signedTicket , bytesSent , bytesTotal ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( commandId , phase , type , lastUpdated , message , vdsId , diskId , imagedTicketId , proxyUri , signedTicket , bytesSent , bytesTotal ) ; }
Source:
protected org.ovirt.engine.core.dao.ImageDao prepareDao ( ) { return prepareDAO ( dbFacade.getImageDao ( ) ) ; }

Target:
protected org.ovirt.engine.core.dao.ImageDao prepareDao ( ) { return dbFacade.getImageDao ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSStatus getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object.getEntity ( ) ) ) . getstatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSStatus getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object.getEntity ( ) ) ) . getStatus ( ) ; }
Source:
java.lang.String templateSubVersion ( ) ;

Target:
java.lang.String template ( ) ;
Source:
java.lang.String hostDataCenter ( java.lang.String storagePoolName ) ;

Target:
java.lang.String hostDataCenter ( java.lang.String name ) ;
Source:
public void testGetProductKey ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.getProductKey ( 777 , null ) . equals ( org.ovirt.engine.core.utils.OsRepositoryImplTest.SOME_PRODUCT_KEY ) ) ; }

Target:
public void testGetProductKey ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( org.ovirt.engine.core.utils.OsRepositoryImplTest.SOME_PRODUCT_KEY , OsRepositoryImpl.INSTANCE.getProductKey ( 777 , null ) ) ; }
Source:
public org.ovirt.engine.api.model.User get ( ) { return performGet ( VdcQueryType.GetDbUserByUserId , new org.ovirt.engine.core.common.queries.GetDbUserByUserIdParameters ( guid ) , org.ovirt.engine.api.model.BaseResource.class ) ; }

Target:
public org.ovirt.engine.api.model.User get ( ) { return performGet ( VdcQueryType.GetDbUserByUserId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , org.ovirt.engine.api.model.BaseResource.class ) ; }
Source:
private static < V > java.util.concurrent.ExecutorCompletionService < V > createCompletionService ( ) { return new java.util.concurrent.ExecutorCompletionService < V > ( org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.es ) ; }

Target:
public static < V > java.util.concurrent.ExecutorCompletionService < V > createCompletionService ( ) { return new java.util.concurrent.ExecutorCompletionService < V > ( org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.es ) ; }
Source:
private java.lang.String getUserdefinedVMProperties ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.UserDefinedVMProperties , version.getValue ( ) ) ; }

Target:
public java.lang.String getUserdefinedVMProperties ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.UserDefinedVMProperties , version.getValue ( ) ) ; }
Source:
private void addCustomProperties ( org.ovirt.engine.api.model.VersionCaps version , java.util.List < org.ovirt.engine.api.model.CustomProperty > envs ) { version.setCustomProperties ( new org.ovirt.engine.api.model.CustomProperties ( ) ) ; version.getCustomProperties ( ) . getCustomProperty ( ) . addAll ( envs ) ; }

Target:
private void addCustomProperties ( org.ovirt.engine.api.model.VersionCaps version , java.util.List < org.ovirt.engine.api.model.CustomProperty > envs ) { version.setCustomProperties ( new org.ovirt.engine.api.model.CustomProperties ( ) ) ; version.getCustomProperties ( ) . getCustomProperties ( ) . addAll ( envs ) ; }
Source:
private org.ovirt.engine.core.common.job.Step generateNewEntity ( ) { org.ovirt.engine.core.common.job.Step step = new org.ovirt.engine.core.common.job.Step ( org.ovirt.engine.core.common.job.StepEnum.EXECUTING ) ; step.setJobId ( org.ovirt.engine.core.dao.StepDaoTest.EXISTING_JOB_ID ) ; step.setStepNumber ( 1 ) ; step.setDescription ( "Execution step" ) ; step.setCorrelationId ( "Some correlation id" ) ; return step ; }

Target:
protected org.ovirt.engine.core.common.job.Step generateNewEntity ( ) { org.ovirt.engine.core.common.job.Step step = new org.ovirt.engine.core.common.job.Step ( org.ovirt.engine.core.common.job.StepEnum.EXECUTING ) ; step.setJobId ( org.ovirt.engine.core.dao.StepDaoTest.EXISTING_JOB_ID ) ; step.setStepNumber ( 1 ) ; step.setDescription ( "Execution step" ) ; step.setCorrelationId ( "Some correlation id" ) ; return step ; }
Source:
private org.ovirt.engine.core.common.action.RemoveVmFromPoolParameters buildRemoveVmFromPoolParameters ( ) { org.ovirt.engine.core.common.action.RemoveVmFromPoolParameters parameters = new org.ovirt.engine.core.common.action.RemoveVmFromPoolParameters ( org.ovirt.engine.core.bll.UpdateVmVersionCommand.getVmId ( ) , false ) ; parameters.setTransactionScopeOption ( TransactionScopeOption.RequiresNew ) ; return parameters ; }

Target:
private org.ovirt.engine.core.common.action.RemoveVmFromPoolParameters buildRemoveVmFromPoolParameters ( ) { org.ovirt.engine.core.common.action.RemoveVmFromPoolParameters parameters = new org.ovirt.engine.core.common.action.RemoveVmFromPoolParameters ( org.ovirt.engine.core.bll.UpdateVmVersionCommand.getVmId ( ) , false , false ) ; parameters.setTransactionScopeOption ( TransactionScopeOption.RequiresNew ) ; return parameters ; }
Source:
public void setNetConfigDirty ( java.lang.Boolean value ) { mVdsDynamic.setnet_config_dirty ( value ) ; }

Target:
public void setNetConfigDirty ( java.lang.Boolean value ) { mVdsDynamic.setNetConfigDirty ( value ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > ) ( source ) ) . size ( ) ) > 0 ; } return false ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ! ( ( ( java.util.List < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }
Source:
protected int getMaxClonedNameLength ( java.lang.Object object ) { return org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.VM_TEMPLATE_AND_INSTANCE_TYPE_NAME_MAX_LIMIT ; }

Target:
protected int getMaxClonedNameLength ( ) { return org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.VM_TEMPLATE_AND_INSTANCE_TYPE_NAME_MAX_LIMIT ; }
Source:
public org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKey update ( org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKey resource ) { validateEnums ( org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKey.class , resource ) ; return performUpdate ( resource , new org.ovirt.engine.api.restapi.resource.openstack.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetLibvirtSecretById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateLibvirtSecret , new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeAuthenticationKeyResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKey update ( org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKey resource ) { validateEnums ( org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKey.class , resource ) ; return performUpdate ( resource , new org.ovirt.engine.api.restapi.resource.openstack.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetLibvirtSecretById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateLibvirtSecret , new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeAuthenticationKeyResource.UpdateParametersProvider ( ) ) ; }
Source:
public void onDataLoad ( ) { checkIfDefaultStorageApplicableForAllDisks ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmFromExportDomainModel.ON_DISK_LOAD ) ) ; }

Target:
public void onDataLoad ( ) { onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmFromExportDomainModel.ON_DISK_LOAD ) ) ; }
Source:
public static org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWith ( org.ovirt.engine.core.common.errors.VdcBllMessages expectedError , java.util.Collection < java.lang.String > variableReplacements ) { return new org.ovirt.engine.core.bll.validator.ValidationResultMatchers.Fails ( expectedError , variableReplacements.toArray ( new java.lang.String [ variableReplacements.size ( ) ] ) ) ; }

Target:
public static org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWith ( org.ovirt.engine.core.common.errors.EngineMessage expectedError , java.util.Collection < java.lang.String > variableReplacements ) { return new org.ovirt.engine.core.bll.validator.ValidationResultMatchers.Fails ( expectedError , variableReplacements.toArray ( new java.lang.String [ variableReplacements.size ( ) ] ) ) ; }
Source:
private void bindEventBus ( ) { bind ( com.google.web.bindery.event.shared.EventBus.class ) . to ( com.google.gwt.event.shared.EventBus.class ) ; bind ( com.google.gwt.event.shared.EventBus.class ) . to ( com.google.gwt.event.shared.SimpleEventBus.class ) . in ( com.google.inject.Singleton.class ) ; }

Target:
private void bindEventBus ( ) { bind ( com.google.gwt.event.shared.EventBus.class ) . to ( com.google.gwt.event.shared.EventBus.class ) ; bind ( com.google.gwt.event.shared.EventBus.class ) . to ( com.google.gwt.event.shared.SimpleEventBus.class ) . in ( com.google.inject.Singleton.class ) ; }
Source:
protected boolean canDoAction ( ) { return ( validate ( networkClusterAttachmentExists ( ) ) ) && ( validateAttachment ( ) ) ; }

Target:
protected boolean validate ( ) { return ( validate ( networkClusterAttachmentExists ( ) ) ) && ( validateAttachment ( ) ) ; }
Source:
public void setCommandId ( org.ovirt.engine.core.compat.Guid commandId ) { this . commandId = commandId ; this . cmdEntity.setId ( commandId ) ; }

Target:
public void setCommandId ( org.ovirt.engine.core.compat.Guid commandId ) { this . commandId = commandId ; }
Source:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Execution ) . withWait ( false ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Execution ) . withWait ( true ) ; }
Source:
public boolean shouldRepeatEndMethodsOnFail ( org.ovirt.engine.core.compat.Guid cmdId ) { return false ; }

Target:
default boolean shouldRepeatEndMethodsOnFail ( org.ovirt.engine.core.compat.Guid cmdId ) { return false ; }
Source:
public void onSave ( ) { if ( ! ( Validate ( ) ) ) { return ; } flush ( ) ; executeSave ( ) ; }

Target:
public void onSave ( ) { if ( ! ( validate ( ) ) ) { return ; } flush ( ) ; executeSave ( ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunUserAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( parameters.getHttpSessionId ( ) ) ) { return org.ovirt.engine.core.bll.Backend.NotAutorizedError ( ) ; } return RunAction ( actionType , parameters ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunUserAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( parameters.getHttpSessionId ( ) ) ) { return NotAutorizedError ( ) ; } return RunAction ( actionType , parameters ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.setUsbAutoShare ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.setUsbAutoShare ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }
Source:
protected void onPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . onPropertyChanged ( e ) ; getPropertyChangedEvent ( ) . raise ( this , e ) ; }

Target:
protected void onPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { getPropertyChangedEvent ( ) . raise ( this , e ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getEntityObject ( org.ovirt.engine.core.common.businessentities.VDS object ) { if ( object instanceof org.ovirt.engine.core.common.businessentities.VDS ) { return object ; } else { return null ; } }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getEntityObject ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object ; }
Source:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultNicType ( getVm ( ) . getOs ( ) ) ) ; }

Target:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultNicType ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . setHost ( host ) . setParams ( new org.ovirt.engine.core.common.action.HostSetupNetworksParameters ( host.getId ( ) ) ) . setNetworkBusinessEntityMap ( new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) ) . build ( ) ; }

Target:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks , org.ovirt.engine.core.common.action.HostSetupNetworksParameters params ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . setHost ( host ) . setParams ( params ) . setNetworkBusinessEntityMap ( new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) ) . build ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , name , true , null , null , networkName ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.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 ) ; }
Source:
private void initTables ( ) { entityTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable < org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.ui.uicommonweb.models.vms.ImportEntityData < E > > > ( false , true ) ; entityTable.enableColumnResizing ( ) ; splitLayoutPanel = new com.google.gwt.user.client.ui.SplitLayoutPanel ( 4 ) ; }

Target:
private void initTables ( ) { entityTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( false , true ) ; entityTable.enableColumnResizing ( ) ; splitLayoutPanel = new com.google.gwt.user.client.ui.SplitLayoutPanel ( 4 ) ; }
Source:
public void resizeColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , int newWidth ) { setColumnWidth ( column , ( newWidth + "px" ) ) ; }

Target:
public void resizeColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , int newWidth ) { super . resizeColumn ( column , newWidth ) ; table.resizeColumn ( column , newWidth ) ; }
Source:
public static < T > org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > mockConfig ( org.ovirt.engine.core.common.config.ConfigValues value , org.ovirt.engine.core.compat.Version version , T returnValue ) { return new org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > ( value , version.toString ( ) , returnValue ) ; }

Target:
public static < T > org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > mockConfig ( org.ovirt.engine.core.common.config.ConfigValues value , org.ovirt.engine.core.compat.Version version , T returnValue ) { return new org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor ( value , version.toString ( ) , returnValue ) ; }
Source:
public void getAAAProfilesList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.convertAAAProfilesResult ( aQuery ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAAAProfileList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
public void getAAAProfilesList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.convertAAAProfilesResult ( aQuery , false ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAAAProfileList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VmTemplate > object ) { return object.getSecond ( ) . getname ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VmTemplate > object ) { return object.getSecond ( ) . getName ( ) ; }
Source:
private void addDevices ( java.util.Map < java.lang.String , java.lang.Object > vmInfo , long fetchTime ) { org.ovirt.engine.core.vdsbroker.monitoring.VmDevicesMonitoring.Change change = vmDevicesMonitoring.createChange ( fetchTime ) ; change.updateVmFromFullList ( vmInfo ) ; change.flush ( ) ; }

Target:
protected void addDevices ( java.util.Map < java.lang.String , java.lang.Object > vmInfo , long fetchTime ) { org.ovirt.engine.core.vdsbroker.monitoring.VmDevicesMonitoring.Change change = vmDevicesMonitoring.createChange ( fetchTime ) ; change.updateVmFromFullList ( vmInfo ) ; change.flush ( ) ; }
Source:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback , final java.lang.Object state ) { org.ovirt.engine.ui.frontend.Frontend.runActionImpl ( actionType , parameters , ( callback != null ? callback : org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK ) , state ) ; }

Target:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback , final java.lang.Object state ) { org.ovirt.engine.ui.frontend.Frontend.runActionImpl ( actionType , parameters , ( callback != null ? callback : org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK ) , state , true ) ; }
Source:
protected java.lang.Object getSessionUser ( java.lang.String sessionID ) { return org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . getUser ( sessionID ) ; }

Target:
protected java.lang.Object getSessionUser ( java.lang.String sessionID ) { return org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . getUser ( sessionID , false ) ; }
Source:
, @ javax.validation.constraints.Pattern ( regexp = org.ovirt.engine.core.common.businessentities.network.VmNic.VALID_MAC_ADDRESS_FORMAT , message = org.ovirt.engine.core.common.businessentities.network.VmNic.VALIDATION_MESSAGE_MAC_ADDRESS_INVALID , groups = { org.ovirt.engine.core.common.validation.group.UpdateEntity.class } ) } ) public java.lang.String getMacAddress ( ) { return super . getMacAddress ( ) ; }

Target:
, @ javax.validation.constraints.Pattern ( regexp = org.ovirt.engine.core.common.businessentities.network.VmNic.UNICAST_MAC_ADDRESS_FORMAT , message = org.ovirt.engine.core.common.businessentities.network.VmNic.VALIDATION_MESSAGE_MAC_ADDRESS_INVALID , groups = { org.ovirt.engine.core.common.validation.group.UpdateEntity.class } ) , @ javax.validation.constraints.Pattern ( regexp = org.ovirt.engine.core.common.businessentities.network.VmNic.NON_NULLABLE_MAC_ADDRESS_FORMAT , message = org.ovirt.engine.core.common.businessentities.network.VmNic.VALIDATION_MESSAGE_MAC_ADDRESS_INVALID , groups = { org.ovirt.engine.core.common.validation.group.CreateEntity.class , org.ovirt.engine.core.common.validation.group.UpdateEntity.class } ) } ) public java.lang.String getMacAddress ( ) { return super . getMacAddress ( ) ; }
Source:
public void formatStringTest2 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{2}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1" , "1" , "1" ) ; org.junit.Assert.assertEquals ( "Result should be 'Testing 123: 1.1.1'" , "Testing 123: 1.1.1" , result ) ; }

Target:
public void formatStringTest2 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{2}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1" , "1" , "1" ) ; org.junit.Assert.assertEquals ( "Testing 123: 1.1.1" , result ) ; }
Source:
public void resizeColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , int newWidth ) { setColumnWidth ( column , ( newWidth + "px" ) , true ) ; }

Target:
public void resizeColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , int newWidth ) { setColumnWidth ( column , ( newWidth + "px" ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getDeviceList ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return getEntity ( java.util.List.class , VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( hostId , storageType ) , "GetDeviceList" , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getDeviceList ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return getEntity ( java.util.List.class , VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( hostId , storageType , false , null ) , "GetDeviceList" , true ) ; }
Source:
public void setConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections value ) { connection = value ; }

Target:
public void setConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection ) { this . connection = connection ; }
Source:
public void template_SelectedItemChanged ( ) { getModel ( ) . setIsDisksAvailable ( true ) ; updateHostPinning ( pool.getMigrationSupport ( ) ) ; }

Target:
public void template_SelectedItemChanged ( ) { getModel ( ) . setIsDisksAvailable ( true ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state , final boolean showErrorDialog ) { runMultipleAction ( actionType , parameters , false , callback , state , showErrorDialog ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , false , callback , state ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.GetStorageDomainByIdAndStoragePoolIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.storage.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getForStoragePool ( org.ovirt.engine.core.bll.storage.GetStorageDomainByIdAndStoragePoolIdQuery.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.GetStorageDomainByIdAndStoragePoolIdQuery.getParameters ( ) . getStoragePoolId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.GetStorageDomainByIdAndStoragePoolIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getForStoragePool ( org.ovirt.engine.core.bll.storage.GetStorageDomainByIdAndStoragePoolIdQuery.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.GetStorageDomainByIdAndStoragePoolIdQuery.getParameters ( ) . getStoragePoolId ( ) ) ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3Template get ( ) { return org.ovirt.engine.api.v3.helpers.V3TemplateHelper.addDisksLink ( adaptGet ( getDelegate ( ) :: get ) ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3Template get ( ) { org.ovirt.engine.api.v3.types.V3Template template = adaptGet ( getDelegate ( ) :: get ) ; org.ovirt.engine.api.v3.helpers.V3TemplateHelper.addDisksLink ( template ) ; return template ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliQuit ( ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _parser.cliQuit ( ) ; return true ; }