auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > getAllAsyncTasksFromDb ( ) { return coCoAsyncTaskHelper.getAllAsyncTasksFromDb ( this ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > getAllAsyncTasksFromDb ( ) { return coCoAsyncTaskHelper.getAllAsyncTasksFromDb ( ) ; }
Source:
private java.lang.String changeUserPasswd ( javax.servlet.http.HttpServletRequest request , org.ovirt.engine.core.sso.utils.Credentials userCredentials ) throws org.ovirt.engine.core.sso.utils.AuthenticationException { org.ovirt.engine.core.sso.servlets.InteractiveChangePasswdServlet.log.debug ( "Calling Authn to change password for user '{}@{}'." , userCredentials.getUsername ( ) , userCredentials.getProfile ( ) ) ; org.ovirt.engine.core.sso.utils.AuthenticationUtils.changePassword ( ssoContext , request , userCredentials ) ; org.ovirt.engine.core.sso.utils.SSOUtils.getSsoSession ( request ) . setChangePasswdCredentials ( null ) ; if ( org.ovirt.engine.core.sso.utils.SSOUtils.isUserAuthenticated ( request ) ) { org.ovirt.engine.core.sso.servlets.InteractiveChangePasswdServlet.log.debug ( "User is authenticated updating password in SSOSession for password-access scope." ) ; org.ovirt.engine.core.sso.utils.SSOUtils.persistUserPassword ( request , org.ovirt.engine.core.sso.utils.SSOUtils.getSsoSession ( request ) , userCredentials.getNewCredentials ( ) ) ; } else { org.ovirt.engine.core.sso.servlets.InteractiveChangePasswdServlet.log.debug ( "User password change succeeded, redirecting to login page." ) ; org.ovirt.engine.core.sso.utils.SSOUtils.getSsoSession ( request ) . setLoginMessage ( "Change password succeeded, enter new credentials to login." ) ; } return ( request.getContextPath ( ) ) + ( org.ovirt.engine.core.sso.utils.SSOConstants.INTERACTIVE_LOGIN_URI ) ; }

Target:
private java.lang.String changeUserPasswd ( javax.servlet.http.HttpServletRequest request , org.ovirt.engine.core.sso.utils.Credentials userCredentials ) throws org.ovirt.engine.core.sso.utils.AuthenticationException { org.ovirt.engine.core.sso.servlets.InteractiveChangePasswdServlet.log.debug ( "Calling Authn to change password for user '{}@{}'." , userCredentials.getUsername ( ) , userCredentials.getProfile ( ) ) ; org.ovirt.engine.core.sso.utils.AuthenticationUtils.changePassword ( ssoContext , request , userCredentials ) ; org.ovirt.engine.core.sso.utils.SSOUtils.getSsoSession ( request ) . setChangePasswdCredentials ( null ) ; if ( org.ovirt.engine.core.sso.utils.SSOUtils.isUserAuthenticated ( request ) ) { org.ovirt.engine.core.sso.servlets.InteractiveChangePasswdServlet.log.debug ( "User is authenticated updating password in SSOSession for password-access scope." ) ; org.ovirt.engine.core.sso.utils.SSOUtils.persistUserPassword ( request , org.ovirt.engine.core.sso.utils.SSOUtils.getSsoSession ( request ) , userCredentials.getNewCredentials ( ) ) ; } else { org.ovirt.engine.core.sso.servlets.InteractiveChangePasswdServlet.log.debug ( "User password change succeeded, redirecting to login page." ) ; org.ovirt.engine.core.sso.utils.SSOUtils.getSsoSession ( request ) . setLoginMessage ( ssoContext.getLocalizationUtils ( ) . localize ( SSOConstants.APP_MSG_CHANGE_PASSWORD_SUCCEEDED , ( ( java.util.Locale ) ( request.getAttribute ( SSOConstants.LOCALE ) ) ) ) ) ; } return ( request.getContextPath ( ) ) + ( org.ovirt.engine.core.sso.utils.SSOConstants.INTERACTIVE_LOGIN_URI ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Disk getOldDisk ( ) { if ( ( oldDisk ) == null ) { oldDisk = org.ovirt.engine.core.bll.UpdateVmDiskCommand.getDiskDao ( ) . get ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getParameters ( ) . getDiskId ( ) ) ; } return oldDisk ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Disk getOldDisk ( ) { if ( ( oldDisk ) == null ) { oldDisk = org.ovirt.engine.core.bll.UpdateVmDiskCommand.getDiskDao ( ) . get ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getParameters ( ) . getDiskId ( ) ) ; } return oldDisk ; }
Source:
private void assertGetHostsForStorageOperationCorrectStoragePool ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result ) { for ( org.ovirt.engine.core.common.businessentities.VDS vds : result ) { org.junit.Assert.assertEquals ( vds.getStoragePoolId ( ) , FixturesTool.STORAGE_POOL_RHEL6_ISCSI ) ; } }

Target:
private void assertGetHostsForStorageOperationCorrectStoragePool ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result ) { for ( org.ovirt.engine.core.common.businessentities.VDS vds : result ) { org.junit.Assert.assertEquals ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI , vds.getStoragePoolId ( ) ) ; } }
Source:
public void setDiskInfoList ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > diskInfoList ) { this . diskInfoList = diskInfoList ; }

Target:
public void setDiskInfoList ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > diskInfoList ) { this . diskInfoList = ( diskInfoList != null ) ? diskInfoList : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setCommandExecutionAllowedForProvider ( ( ( org.ovirt.engine.core.common.businessentities.Provider ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object returnValue ) { setCommandExecutionAllowedForProvider ( ( ( org.ovirt.engine.core.common.businessentities.Provider ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { parameters.setRefresh ( false ) ; return getBackend ( ) . runInternalQuery ( actionType , parameters , getEngineContext ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return getBackend ( ) . runInternalQuery ( actionType , parameters , getEngineContext ( ) ) ; }
Source:
public void testCloneFromTemplateWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Vm model = createModel ( createDisksCollection ( ) ) ; model.setPermissions ( new org.ovirt.engine.api.model.Permissions ( ) ) ; model.getPermissions ( ) . setClone ( true ) ; doTestCloneFromTemplateWithClonePermissions ( model , true ) ; }

Target:
public void testCloneFromTemplateWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Vm model = createModel ( createDisksCollection ( ) ) ; doTestCloneFromTemplateWithClonePermissions ( model , true ) ; }
Source:
public void getCustomValueFromEmptyMap ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; final java.lang.String s = b.getCustomValue ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; org.junit.Assert.assertEquals ( "" , s ) ; }

Target:
public void getCustomValueFromEmptyMap ( ) { final java.lang.String s = b.getCustomValue ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; org.junit.Assert.assertEquals ( "" , s ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM initializeMock ( final int domainSizeGB , final int sizeRequired ) { mockVmTemplateDaoReturnVmTemplate ( ) ; mockDiskImageDaoGetSnapshotById ( ) ; mockStorageDomainDaoGetForStoragePool ( domainSizeGB ) ; mockStorageDomainDaoGet ( domainSizeGB ) ; mockConfig ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.AddVmCommandTest.createVm ( ) ; return vm ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM initializeMock ( final int domainSizeGB ) { mockVmTemplateDaoReturnVmTemplate ( ) ; mockDiskImageDaoGetSnapshotById ( ) ; mockStorageDomainDaoGetForStoragePool ( domainSizeGB ) ; mockStorageDomainDaoGet ( domainSizeGB ) ; mockConfig ( ) ; return org.ovirt.engine.core.bll.AddVmCommandTest.createVm ( ) ; }
Source:
private boolean hasVolumeBricksOnServer ( ) { if ( ( getGlusterBrickDao ( ) . getGlusterVolumeBricksByServerId ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) . size ( ) ) > 0 ) { return true ; } else { return false ; } }

Target:
private boolean hasVolumeBricksOnServer ( ) { if ( ( org.ovirt.engine.core.bll.RemoveVdsCommand.getGlusterBrickDao ( ) . getGlusterVolumeBricksByServerId ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) . size ( ) ) > 0 ) { return true ; } else { return false ; } }
Source:
public java.lang.String getTimeZone ( ) { return vmStatic.gettime_zone ( ) ; }

Target:
public java.lang.String getTimeZone ( ) { return vmStatic.getTimeZone ( ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase params ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( commandType , params ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase params ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . runVdsCommand ( commandType , params ) ; }
Source:
public static boolean hasSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getSmartcardDevices ( vmId ) . isEmpty ( ) ) ; }

Target:
public boolean hasSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( getSmartcardDevices ( vmId ) . isEmpty ( ) ) ; }
Source:
public java.lang.String serialize ( java.lang.Object payload ) throws org.ovirt.engine.core.utils.SerializationExeption { return writeJsonAsString ( payload , org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer.formattedMapper ) ; }

Target:
public java.lang.String serialize ( java.lang.Object payload ) throws org.ovirt.engine.core.utils.SerializationExeption { if ( payload == null ) { return null ; } else { return writeJsonAsString ( payload , org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer.formattedMapper ) ; } }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.Disk > getAllAttachableDisksByPoolId ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.compat.Guid userId , boolean isFiltered ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.Disk > getAllAttachableDisksByPoolId ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid userId , boolean isFiltered ) ;
Source:
public void setup ( ) { org.mockito.Mockito.doReturn ( proxyLocator ) . when ( validator ) . getProxyLocator ( org.mockito.Mockito.any ( org.ovirt.engine.core.common.businessentities.VDS.class ) ) ; org.mockito.Mockito.doReturn ( backend ) . when ( validator ) . getBackend ( ) ; }

Target:
public void setup ( ) { org.mockito.Mockito.doReturn ( proxyLocator ) . when ( validator ) . getProxyLocator ( org.mockito.Mockito.any ( ) ) ; org.mockito.Mockito.doReturn ( backend ) . when ( validator ) . getBackend ( ) ; }
Source:
public static void cleanUp ( ) { if ( ( org.ovirt.engine.core.utils.ssh.TransferTest.local1 ) != null ) { org.ovirt.engine.core.utils.ssh.TransferTest.local1.delete ( ) ; org.ovirt.engine.core.utils.ssh.TransferTest.local1 = null ; } org.ovirt.engine.core.utils.ssh.TestCommon.terminate ( ) ; }

Target:
public static void cleanUp ( ) { if ( ( org.ovirt.engine.core.utils.ssh.TransferTest.local1 ) != null ) { if ( ! ( org.ovirt.engine.core.utils.ssh.TransferTest.local1.delete ( ) ) ) { } org.ovirt.engine.core.utils.ssh.TransferTest.local1 = null ; } org.ovirt.engine.core.utils.ssh.TestCommon.terminate ( ) ; }
Source:
private boolean isNicToConfigureContainTheLabel ( java.lang.String nicName , java.lang.String label ) { java.util.Set < java.lang.String > labelsToConfigure = getLabelsToConfigureOnNic ( nicName ) ; return labelsToConfigure == null ? false : labelsToConfigure.contains ( label ) ; }

Target:
private boolean isNicToConfigureContainTheLabel ( java.lang.String nicName , java.lang.String label ) { java.util.Set < java.lang.String > labelsToConfigure = getLabelsToConfigureOnNic ( nicName ) ; return ( labelsToConfigure != null ) && ( labelsToConfigure.contains ( label ) ) ; }
Source:
private boolean isEditConsoleEnabled ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel item ) { return ( ( item.getVM ( ) ) != null ) && ( item.getVM ( ) . isRunningOrPaused ( ) ) ; }

Target:
private boolean isEditConsoleEnabled ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel item ) { return ( ( item != null ) && ( ( item.getVM ( ) ) != null ) ) && ( item.getVM ( ) . isRunningOrPaused ( ) ) ; }
Source:
private java.lang.String generateMetaDataFile ( java.util.List < org.ovirt.engine.core.compat.Guid > vmAndTemplatesIds ) { java.util.Map < java.lang.String , java.lang.Object > data = new java.util.HashMap < > ( ) ; addVmsStatus ( vmAndTemplatesIds , data ) ; return buildJson ( data , true ) ; }

Target:
private java.util.Map < java.lang.String , java.lang.Object > generateMetaDataFile ( java.util.List < org.ovirt.engine.core.compat.Guid > vmAndTemplatesIds ) { java.util.Map < java.lang.String , java.lang.Object > data = new java.util.HashMap < > ( ) ; addVmsStatus ( vmAndTemplatesIds , data ) ; return data ; }
Source:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { valid = false ; applyCommonValidationStyles ( ) ; getValidatedWidgetStyle ( ) . setBorderColor ( "red" ) ; getValidatedWidget ( ) . setTitle ( getValidationTitle ( validationHints ) ) ; }

Target:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { valid = false ; applyCommonValidationStyles ( ) ; getValidatedWidgetStyle ( ) . setBorderColor ( "red" ) ; }
Source:
protected com.google.gwt.user.client.ui.TreeItem getNodeItem ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return getDiskNode ( new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ( java.util.Arrays.asList ( disk ) ) ) ; }

Target:
protected com.google.gwt.user.client.ui.TreeItem getNodeItem ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return getDiskNode ( new java.util.ArrayList ( java.util.Arrays.asList ( disk ) ) ) ; }
Source:
private void attachVmDisksToStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.common.businessentities.storage.DiskImage ... vmDisks ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : vmDisks ) { diskImage.setStorageIds ( new java.util.ArrayList < org.ovirt.engine.core.compat.Guid > ( java.util.Arrays.asList ( storageDomain.getId ( ) ) ) ) ; } }

Target:
private void attachVmDisksToStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.common.businessentities.storage.DiskImage ... vmDisks ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : vmDisks ) { diskImage.setStorageIds ( new java.util.ArrayList ( java.util.Arrays.asList ( storageDomain.getId ( ) ) ) ) ; } }
Source:
public void setIsVolumeFormatAvailable ( boolean isVolumeFormatAvailable ) { this . volumeFormatAvailable = isVolumeFormatAvailable ; }

Target:
public void setIsVolumeFormatAvailable ( boolean isVolumeFormatAvailable ) { this . isVolumeFormatAvailable = isVolumeFormatAvailable ; }
Source:
public void vnicProfileExist ( ) throws java.lang.Exception { vnicProfileValidationTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , true , false , false ) ; }

Target:
public void vnicProfileExist ( ) throws java.lang.Exception { vnicProfileValidationTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , true ) ; }
Source:
private void updateActionAvailability ( ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( getEntity ( ) ) ) ; }

Target:
private void updateActionAvailability ( ) { }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { allNetworks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; initNetworkModels ( ) ; initDcNetworkParams ( ) ; queryInterfaces ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { allNetworks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; queryInterfaces ( ) ; }
Source:
protected boolean isVersionSupportedForShareable ( org.ovirt.engine.core.common.businessentities.Disk disk , java.lang.String compVersion ) { if ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.ShareableDiskEnabled , compVersion ) ; } return true ; }

Target:
protected boolean isVersionSupportedForShareable ( org.ovirt.engine.core.common.businessentities.Disk disk , java.lang.String compVersion ) { if ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.ShareableDiskEnabled , compVersion ) ; } return true ; }
Source:
public org.ovirt.engine.api.resource.gluster.GlusterHookResource getGlusterHookSubResource ( @ javax.ws.rs.PathParam ( value = "hook_id" ) java.lang.String id ) ;

Target:
org.ovirt.engine.api.resource.gluster.GlusterHookResource getGlusterHookSubResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) ;
Source:
public void getClusterWithId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; b.setClusterId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.Cluster g = b.getCluster ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g.getId ( ) ) ; }

Target:
public void getClusterWithId ( ) { b.setClusterId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.Cluster g = b.getCluster ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g.getId ( ) ) ; }
Source:
java.lang.String nameDisk ( ) ;

Target:
java.lang.String name ( ) ;
Source:
public java.lang.String getTemplate ( java.lang.String realUrlParamName , java.lang.String headerParamName ) { org.ovirt.engine.sdk.codegen.utils.StringTemplateWrapper templateWrapper = new org.ovirt.engine.sdk.codegen.utils.StringTemplateWrapper ( getTemplate ( ) , true ) ; templateWrapper.set ( "realUrlParamName" , realUrlParamName ) ; templateWrapper.set ( "headerParamName" , headerParamName ) ; return templateWrapper.toString ( ) ; }

Target:
public java.lang.String getTemplate ( java.lang.String realUrlParamName , java.lang.String headerParamName ) { org.ovirt.engine.sdk.codegen.utils.StringTemplateWrapper templateWrapper = new org.ovirt.engine.sdk.codegen.utils.StringTemplateWrapper ( getTemplate ( ) ) ; templateWrapper.set ( "realUrlParamName" , realUrlParamName ) ; templateWrapper.set ( "headerParamName" , headerParamName ) ; return templateWrapper.toString ( ) ; }
Source:
public void testValidateUniqueTemplateNameInDC ( ) { org.ovirt.engine.core.bll.exportimport.ImportVmTemplateCommand command = setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . isVmTemplateWithSameNameExist ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VM_CANNOT_IMPORT_TEMPLATE_NAME_EXISTS ) ; }

Target:
public void testValidateUniqueTemplateNameInDC ( ) { setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . isVmTemplateWithSameNameExist ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VM_CANNOT_IMPORT_TEMPLATE_NAME_EXISTS ) ; }
Source:
public void setVmId ( org.ovirt.engine.core.compat.NGuid vmId ) { this . vmId = vmId ; this . statistics.setVmId ( vmId ) ; }

Target:
public void setVmId ( org.ovirt.engine.core.compat.Guid vmId ) { this . vmId = vmId ; this . statistics.setVmId ( vmId ) ; }
Source:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm , vm.getstatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vm.getId ( ) ) ; compensationContext.stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm , vm.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vm.getId ( ) ) ; compensationContext.stateChanged ( ) ; return null ; }
Source:
protected void persistCollectedData ( ) { updateNetConfigDirtyFlag ( ) ; hostNetworkTopologyPersister.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) , org.ovirt.engine.core.common.businessentities.Entities.entitiesByName ( getParameters ( ) . getInterfaces ( ) ) ) ; }

Target:
protected void persistCollectedData ( ) { updateNetConfigDirtyFlag ( ) ; hostNetworkTopologyPersister.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) , getParameters ( ) . getInterfaces ( ) ) ; }
Source:
protected void compileInternal ( ) { java.util.Set < java.lang.String > inParams = new java.util.HashSet < java.lang.String > ( getInParameterNames ( ) ) ; inParams.add ( "dummyParamNeverUsed" ) ; setInParameterNames ( inParams ) ; super . compileInternal ( ) ; }

Target:
protected void compileInternal ( ) { java.util.Set < java.lang.String > inParams = new java.util.HashSet ( getInParameterNames ( ) ) ; inParams.add ( "dummyParamNeverUsed" ) ; setInParameterNames ( inParams ) ; super . compileInternal ( ) ; }
Source:
public void testGet ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; resource.setParent ( getCollectionResourceMock ( ) ) ; control.replay ( ) ; org.ovirt.engine.api.model.Hook hook = resource.get ( ) ; assertEquals ( hook.getEventName ( ) , org.ovirt.engine.api.restapi.resource.BackendHostHookResourceTest.EVENT_2_NAME ) ; }

Target:
public void testGet ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; resource.setParent ( getCollectionResourceMock ( ) ) ; control.replay ( ) ; org.ovirt.engine.api.model.Hook hook = resource.get ( ) ; assertEquals ( org.ovirt.engine.api.restapi.resource.BackendHostHookResourceTest.EVENT_2_NAME , hook.getEventName ( ) ) ; }
Source:
private void validateAndExpectNoViolations ( org.ovirt.engine.core.bll.SetupNetworksHelper helper ) { java.util.List < org.ovirt.engine.core.dal.VdcBllMessages > violations = helper.validate ( ) ; junit.framework.Assert.assertTrue ( ( "Expected no violations, but got: " + violations ) , violations.isEmpty ( ) ) ; }

Target:
private void validateAndExpectNoViolations ( org.ovirt.engine.core.bll.SetupNetworksHelper helper ) { java.util.List < java.lang.String > violations = helper.validate ( ) ; junit.framework.Assert.assertTrue ( ( "Expected no violations, but got: " + violations ) , violations.isEmpty ( ) ) ; }
Source:
protected void setLock ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { context.withLock ( null ) ; }

Target:
protected void setLock ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { context.withLock ( lock ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUpGetEntityExpectations ( 0 , false ) ; setUriInfo ( setUpBasicUriExpectations ( ) ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUpGetEntityExpectations ( 0 , false ) ; setUriInfo ( setUpBasicUriExpectations ( ) ) ; verifyModel ( resource.get ( ) , 0 ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTasks > getTasksByEntity ( org.ovirt.engine.core.compat.Guid entityId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; parameterSource.addValue ( "entity_id" , entityId ) ; return getCallsHandler ( ) . executeReadList ( "GetAsyncTasksByEntityId" , org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskRowMapper.instance , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTasks > getTasksByEntity ( org.ovirt.engine.core.compat.Guid entityId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "entity_id" , entityId ) ; return getCallsHandler ( ) . executeReadList ( "GetAsyncTasksByEntityId" , org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskRowMapper.instance , parameterSource ) ; }
Source:
public void validateFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public static void setEngineSessionId ( javax.servlet.http.HttpSession session , java.lang.String sessionId ) { org.ovirt.engine.api.common.security.auth.SessionUtils.log.debug ( ( "setting engine session ID to " + sessionId ) ) ; session.setAttribute ( org.ovirt.engine.api.common.security.auth.SessionUtils.ENGINE_SESSION_ID_KEY , sessionId ) ; }

Target:
public static void setEngineSessionId ( javax.servlet.http.HttpSession session , java.lang.String sessionId ) { if ( session != null ) { org.ovirt.engine.api.common.security.auth.SessionUtils.log.debug ( ( "setting engine session ID to " + sessionId ) ) ; session.setAttribute ( org.ovirt.engine.api.common.security.auth.SessionUtils.ENGINE_SESSION_ID_KEY , sessionId ) ; } }
Source:
public void setStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { getStoragePoolIsoMapData ( ) . setstatus ( status ) ; }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { getStoragePoolIsoMapData ( ) . setStatus ( status ) ; }
Source:
private static org.ovirt.engine.core.bll.storage.pool.RemoveStoragePoolCommand < org.ovirt.engine.core.common.action.StoragePoolParametersBase > createCommand ( org.ovirt.engine.core.common.action.StoragePoolParametersBase param ) { return new org.ovirt.engine.core.bll.storage.pool.RemoveStoragePoolCommand < org.ovirt.engine.core.common.action.StoragePoolParametersBase > ( param ) ; }

Target:
private static org.ovirt.engine.core.bll.storage.pool.RemoveStoragePoolCommand < org.ovirt.engine.core.common.action.StoragePoolParametersBase > createCommand ( org.ovirt.engine.core.common.action.StoragePoolParametersBase param ) { return new org.ovirt.engine.core.bll.storage.pool.RemoveStoragePoolCommand ( param ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { logSsoOnDesktopFailedAgentNonResp ( spiceConsoleModel.getLogger ( ) , ( logonCommandReturnValue != null ? logonCommandReturnValue.getDescription ( ) : "" ) ) ; spiceConsoleModel.executeQuery ( getEntity ( ) ) ; getParentModel ( ) . setWindow ( null ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { getParentModel ( ) . setWindow ( null ) ; }
Source:
private void handleResult ( org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue result ) { if ( wasSkippedDueToPolicy ( result ) ) { org.ovirt.engine.core.bll.FenceVdsBaseCommand.setCommandShouldBeLogged ( false ) ; } setActionReturnValue ( result ) ; setSucceeded ( result.getSucceeded ( ) ) ; }

Target:
private void handleResult ( org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue result ) { if ( wasSkippedDueToPolicy ( result ) ) { org.ovirt.engine.core.bll.FenceVdsBaseCommand.setCommandShouldBeLogged ( false ) ; org.ovirt.engine.core.bll.FenceVdsBaseCommand.setSucceeded ( false ) ; } else { setSucceeded ( result.getSucceeded ( ) ) ; } setActionReturnValue ( result ) ; }
Source:
protected java.lang.String generateVmMetadata ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > AllVmImages ) { return ovfManager.exportVm ( vm , AllVmImages , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( vm ) ) ; }

Target:
protected java.lang.String generateVmMetadata ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > AllVmImages ) { return ovfManager.exportVm ( vm , AllVmImages , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( vm ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.HostsService hostsService = connection.systemService ( ) . hostsService ( ) ; org.ovirt.engine.sdk4.types.Host host = hostsService.list ( ) . search ( "name=myhost" ) . send ( ) . hosts ( ) . get ( 0 ) ; org.ovirt.engine.sdk4.services.HostService hostService = hostsService.hostService ( host.id ( ) ) ; if ( ! ( host.status ( ) . state ( ) . equals ( "maitenance" ) ) ) { hostService.deactivate ( ) . send ( ) ; } hostService.remove ( ) . send ( ) ; connection.close ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.HostsService hostsService = connection.systemService ( ) . hostsService ( ) ; org.ovirt.engine.sdk4.types.Host host = hostsService.list ( ) . search ( "name=myhost" ) . send ( ) . hosts ( ) . get ( 0 ) ; org.ovirt.engine.sdk4.services.HostService hostService = hostsService.hostService ( host.id ( ) ) ; if ( ( host.status ( ) ) != ( org.ovirt.engine.sdk4.types.HostStatus.MAINTENANCE ) ) { hostService.deactivate ( ) . send ( ) ; } hostService.remove ( ) . send ( ) ; connection.close ( ) ; }
Source:
default void inputDetail ( ) { org.ovirt.api.metamodel.language.ApiLanguage.or ( org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( storageDomain ( ) . id ( ) ) , org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( storageDomain ( ) . name ( ) ) ) ; org.ovirt.api.metamodel.language.ApiLanguage.optional ( storageDomain ( ) . backup ( ) ) ; }

Target:
default void inputDetail ( ) { org.ovirt.api.metamodel.language.ApiLanguage.or ( org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( storageDomain ( ) . id ( ) ) , org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( storageDomain ( ) . name ( ) ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setNumberOfVms ( ( ( java.lang.Integer ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { setNumberOfVms ( ( ( java.lang.Integer ) ( returnValue.getReturnValue ( ) ) ) ) ; }
Source:
private void assertCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages msg ) { org.junit.Assert.assertTrue ( "canDoAction failed for the wrong reason" , command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( msg.name ( ) ) ) ; }

Target:
private void assertCanDoActionMessage ( org.ovirt.engine.core.common.errors.EngineMessage msg ) { org.junit.Assert.assertTrue ( "canDoAction failed for the wrong reason" , command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( msg.name ( ) ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getbookmark_id ( ) { return id ; }

Target:
public org.ovirt.engine.core.compat.Guid getId ( ) { return id ; }
Source:
public void setVmSnapshotId ( org.ovirt.engine.core.compat.Guid snapshotId ) { getImage ( ) . setSnapshotId ( ( snapshotId == null ? null : snapshotId.getValue ( ) ) ) ; }

Target:
public void setVmSnapshotId ( org.ovirt.engine.core.compat.Guid snapshotId ) { getImage ( ) . setSnapshotId ( snapshotId ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getname ( ) ; }

Target:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getName ( ) ; }
Source:
public void insufficientDiskSpace ( ) { final org.ovirt.engine.core.bll.exportimport.ImportVmTemplateCommand command = setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateSpaceRequirements ( org.mockito.Matchers.anyList ( ) ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }

Target:
public void insufficientDiskSpace ( ) { setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateSpaceRequirements ( org.mockito.Matchers.anyList ( ) ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }
Source:
public void isISCSIConnectionAndDomain ( ) { connection.setstorage_type ( StorageType.ISCSI ) ; domain.setStorageType ( StorageType.ISCSI ) ; org.junit.Assert.assertTrue ( validator.isISCSIConnectionAndDomain ( domain ) . isValid ( ) ) ; }

Target:
public void isISCSIConnectionAndDomain ( ) { connection.setStorageType ( StorageType.ISCSI ) ; domain.setStorageType ( StorageType.ISCSI ) ; org.junit.Assert.assertTrue ( validator.isISCSIConnectionAndDomain ( domain ) . isValid ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.clusterFoundByName = org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.Cluster > ) ( returnValue ) ) ) ; prepare2 ( ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > returnValue ) { context.clusterFoundByName = org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( returnValue ) ; prepare2 ( ) ; }
Source:
public static org.ovirt.engine.core.common.TimeZoneType getTimeZoneByOs ( org.ovirt.engine.core.common.businessentities.VmOsType vmOsType ) { return vmOsType.isWindows ( ) ? org.ovirt.engine.core.common.TimeZoneType.WINDOWS_TIMEZONE : org.ovirt.engine.core.common.TimeZoneType.GENERAL_TIMEZONE ; }

Target:
public static org.ovirt.engine.core.common.TimeZoneType getTimeZoneByOs ( org.ovirt.engine.core.common.businessentities.VmOsType vmOsType ) { return ( vmOsType != null ) && ( vmOsType.isWindows ( ) ) ? org.ovirt.engine.core.common.TimeZoneType.WINDOWS_TIMEZONE : org.ovirt.engine.core.common.TimeZoneType.GENERAL_TIMEZONE ; }
Source:
public void addReturnsFalseWithCallToMacPoolManager ( ) { runAddAndVerify ( createNewInterface ( ) , false , org.mockito.Mockito.times ( 1 ) , false ) ; }

Target:
public void add ( ) { runAddAndVerify ( createNewInterface ( ) , true , org.mockito.Mockito.times ( 1 ) ) ; }
Source:
public java.lang.String render ( java.lang.Object object ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionInfo optionInfo = ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionInfo ) ( object ) ) ; if ( optionInfo != null ) { return optionInfo.getKey ( ) ; } return null ; }

Target:
public java.lang.String render ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionInfo optionInfo ) { if ( optionInfo != null ) { return optionInfo.getKey ( ) ; } return null ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult hasSpaceForSnapshots ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.List < org.ovirt.engine.core.common.businessentities.Disk > plugDisks ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult hasSpaceForSnapshots ( ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public static boolean isSerialNumberPolicySupported ( java.lang.String version ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.SerialNumberPolicySupported , version ) ) ) ; }

Target:
public boolean isSerialNumberPolicySupported ( java.lang.String version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.SerialNumberPolicySupported , version ) ) ) ; }
Source:
public void setVmName ( java.lang.String value ) { this . vmStatic.setVmName ( value ) ; }

Target:
public java.lang.String getName ( ) { return this . vmStatic.getName ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol getBootProtocol ( ) { return nic.getIpv4BootProtocol ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol getIpv4BootProtocol ( ) { return nic.getIpv4BootProtocol ( ) ; }
Source:
public void setUp ( ) { clusterId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( "session" ) ; }

Target:
public void setUp ( ) { clusterId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }
Source:
private void mockBackend ( ) { org.mockito.Mockito.when ( backend.runAction ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.ActionType.class ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.CpuProfileParameters.class ) ) ) . thenReturn ( new org.ovirt.engine.core.common.action.ActionReturnValue ( ) ) ; }

Target:
private void mockBackend ( ) { org.mockito.Mockito.when ( backend.runAction ( org.mockito.ArgumentMatchers.any ( ) , org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.action.ActionReturnValue ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.LunDisk createLunDisk ( org.ovirt.engine.core.common.businessentities.storage.ScsiGenericIO sgio , boolean isUsingScsiReservation ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk = org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createLunDisk ( ) ; lunDisk.setSgio ( sgio ) ; lunDisk.setUsingScsiReservation ( isUsingScsiReservation ) ; return lunDisk ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.LunDisk createLunDisk ( org.ovirt.engine.core.common.businessentities.storage.ScsiGenericIO sgio ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk = org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createLunDisk ( ) ; lunDisk.setSgio ( sgio ) ; return lunDisk ; }
Source:
public java.lang.Boolean isConsoleAddressPartiallyOverridden ( ) { return consoleAddressPartiallyOverridden ; }

Target:
public java.lang.Boolean isConsoleAddressPartiallyOverridden ( ) { return ( consoleAddressPartiallyOverridden ) == null ? java.lang.Boolean.FALSE : consoleAddressPartiallyOverridden ; }
Source:
public void testIsNetworkInSyncWhenNetworkQosIsNull ( ) throws java.lang.Exception { networkQos = null ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testIsNetworkInSyncWhenNetworkQosIsNull ( ) throws java.lang.Exception { networkQos = null ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
protected java.lang.String extractNameFromEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate entity ) { return entity.getname ( ) ; }

Target:
protected java.lang.String extractNameFromEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate entity ) { return entity.getName ( ) ; }
Source:
protected boolean canDoAction ( ) { return ( super . canDoAction ( ) ) && ( validate ( getVfsConfigValidator ( ) . labelNotInVfsConfig ( getLabel ( ) ) ) ) ; }

Target:
protected boolean validate ( ) { return ( super . validate ( ) ) && ( validate ( getVfsConfigValidator ( ) . labelNotInVfsConfig ( getLabel ( ) ) ) ) ; }
Source:
protected void initLinked ( ) { if ( hotUpdateSupported ) { getLinked ( ) . setEntity ( getNic ( ) . isLinked ( ) ) ; } else { getLinked ( ) . setEntity ( true ) ; getLinked ( ) . setIsAvailable ( false ) ; } }

Target:
protected void initLinked ( ) { getLinked ( ) . setEntity ( getNic ( ) . isLinked ( ) ) ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.Role object ) { return object.getname ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.Role object ) { return object.getName ( ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( returnValue ) ; postOnSetupNetworks ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; postOnSetupNetworks ( ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork externalNetwork = ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( model ) ) ; externalNetwork.setPublicUse ( value ) ; refreshImportedNetworks ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork model , java.lang.Boolean value ) { model.setPublicUse ( value ) ; refreshImportedNetworks ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getAllImageSnapshots ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) , diskImage.getImageTemplateId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getAllImageSnapshots ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.vm_pools getVmPool ( ) { if ( ( ( mVmPool ) == null ) && ( ( getVmPoolId ( ) ) != null ) ) { mVmPool = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDAO ( ) . get ( getVmPoolId ( ) ) ; } return mVmPool ; }

Target:
protected org.ovirt.engine.core.common.businessentities.vm_pools getVmPool ( ) { if ( ( ( mVmPool ) == null ) && ( ( getVmPoolId ( ) ) != null ) ) { mVmPool = getVmPoolDAO ( ) . get ( getVmPoolId ( ) ) ; } return mVmPool ; }