auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView profile ) { return profile == ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView.EMPTY ) ? org.ovirt.engine.ui.webadmin.section.main.view.popup.vm.register.VnicProfileMappingPopupView.messages.emptyProfile ( ) . asString ( ) : org.ovirt.engine.ui.webadmin.section.main.view.popup.vm.register.VnicProfileMappingPopupView.messages.profileAndNetworkSelected ( profile.getName ( ) , profile.getNetworkName ( ) ) . asString ( ) ; }

Target:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView profile ) { return profile == ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView.EMPTY ) ? org.ovirt.engine.ui.webadmin.section.main.view.popup.vm.register.VnicProfileMappingPopupView.messages.emptyProfile ( ) . asString ( ) : org.ovirt.engine.ui.webadmin.section.main.view.popup.vm.register.VnicProfileMappingPopupView.messages.profileAndNetworkSelected ( profile.getName ( ) , profile.getNetworkName ( ) ) ; }
Source:
public void setStaticData ( final org.ovirt.engine.core.common.businessentities.VmStatic value ) { if ( value == null ) { vmStatic = new org.ovirt.engine.core.common.businessentities.VmStatic ( ) ; } else { vmStatic = value ; } }

Target:
public void setStaticData ( final org.ovirt.engine.core.common.businessentities.VmStatic value ) { vmStatic = ( value == null ) ? new org.ovirt.engine.core.common.businessentities.VmStatic ( ) : value ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return n.getId ( ) . equals ( getNetwork ( ) . getId ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return n.getId ( ) . equals ( getNetwork ( ) . getId ( ) ) ; }
Source:
public void areAllVfsFreeFalseNoNic ( ) { freeVfCommon ( 6 , 0 , 1 , 0 , 0 ) ; org.junit.Assert.assertFalse ( networkDeviceHelper.areAllVfsFree ( nic ) ) ; }

Target:
public void areAllVfsFreeFalseNoNic ( ) { freeVfCommon ( 6 , 0 , 1 , 0 , 0 , 0 ) ; org.junit.Assert.assertFalse ( networkDeviceHelper.areAllVfsFree ( nic ) ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , true ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false ) ; }
Source:
public void setAvailableDiskSize ( java.lang.Integer availableDiskSize ) { getStorageDynamicData ( ) . setavailable_disk_size ( availableDiskSize ) ; UpdateTotalDiskSize ( ) ; updateOverCommitPercent ( ) ; }

Target:
public void setAvailableDiskSize ( java.lang.Integer availableDiskSize ) { getStorageDynamicData ( ) . setAvailableDiskSize ( availableDiskSize ) ; UpdateTotalDiskSize ( ) ; updateOverCommitPercent ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object.getstatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object.getStatus ( ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getUserID ( ) { if ( ( user ) == null ) { return null ; } return user.getUserId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getUserID ( ) { if ( ( user ) == null ) { return null ; } return user.getId ( ) ; }
Source:
public void validateFailureOnMovingVmLunDisk ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; vmDevice.setSnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void validateFailureOnMovingVmLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; vmDevice.setSnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
void onRemoval ( ) ;

Target:
default void onRemoval ( ) { }
Source:
public void testGetVmBootActiveDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk bootDisk = dao.getVmBootActiveDisk ( FixturesTool.VM_RHEL5_POOL_57 ) ; org.junit.Assert.assertNotNull ( "VM should have a boot disk attached" , bootDisk ) ; org.junit.Assert.assertEquals ( "Wrong boot disk for VM" , bootDisk.getId ( ) , FixturesTool.BOOTABLE_DISK_ID ) ; }

Target:
public void testGetVmBootActiveDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk bootDisk = dao.getVmBootActiveDisk ( FixturesTool.VM_RHEL5_POOL_57 ) ; org.junit.Assert.assertNotNull ( "VM should have a boot disk attached" , bootDisk ) ; org.junit.Assert.assertEquals ( "Wrong boot disk for VM" , FixturesTool.BOOTABLE_DISK_ID , bootDisk.getId ( ) ) ; }
Source:
public static org.ovirt.engine.api.model.WatchdogModel map ( org.ovirt.engine.core.common.businessentities.VmWatchdogType model , org.ovirt.engine.api.model.WatchdogModel incoming ) { switch ( model ) { case i6300esb : return org.ovirt.engine.api.model.WatchdogModel.I6300ESB ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.WatchdogModel map ( org.ovirt.engine.core.common.businessentities.VmWatchdogType model ) { switch ( model ) { case i6300esb : return org.ovirt.engine.api.model.WatchdogModel.I6300ESB ; default : return null ; } }
Source:
private void initListBoxEditors ( ) { serverEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor < org.ovirt.engine.core.common.businessentities.VDS > ( new org.ovirt.engine.ui.common.widget.renderer.NullSafeRenderer < org.ovirt.engine.core.common.businessentities.VDS > ( ) { @ java.lang.Override public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return vds.getHostName ( ) ; } } ) ; }

Target:
private void initListBoxEditors ( ) { serverEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NullSafeRenderer < org.ovirt.engine.core.common.businessentities.VDS > ( ) { @ java.lang.Override public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return vds.getHostName ( ) ; } } ) ; }
Source:
public boolean validateBrickCount ( ) { return org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeBrickModel.validateBrickCount ( ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType ) ( getTypeList ( ) . getSelectedItem ( ) ) ) , getBricks ( ) , getReplicaCountValue ( ) , getStripeCountValue ( ) , true ) ; }

Target:
public boolean validateBrickCount ( ) { return org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeBrickModel.validateBrickCount ( getTypeList ( ) . getSelectedItem ( ) , getBricks ( ) , getReplicaCountValue ( ) , getStripeCountValue ( ) , true ) ; }
Source:
private void setUpAccessBaseAgingExpectations ( ) { java.lang.ref.ReferenceQueue < java.lang.Integer > queue = org.mockito.Mockito.mock ( java.lang.ref.ReferenceQueue.class ) ; map = new org.ovirt.engine.core.utils.ReapedMap < java.lang.String , java.lang.Integer > ( 1000 , true , queue ) ; }

Target:
private void setUpAccessBaseAgingExpectations ( ) { java.lang.ref.ReferenceQueue < java.lang.Integer > queue = org.mockito.Mockito.mock ( java.lang.ref.ReferenceQueue.class ) ; map = new org.ovirt.engine.core.utils.ReapedMap ( 1000 , true , queue ) ; }
Source:
protected java.lang.String extractNameFromEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate entity ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( entity ) ) . getname ( ) ; }

Target:
protected java.lang.String extractNameFromEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate entity ) { return entity.getname ( ) ; }
Source:
public void search ( ) { if ( ( getEntityStronglyTyped ( ) ) != null ) { super . search ( ) ; } }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }
Source:
public T get ( ID id ) { return org.ovirt.engine.core.dao.DefaultReadDao.getCallsHandler ( ) . executeRead ( getProcedureNameForGet ( ) , createEntityRowMapper ( ) , createIdParameterMapper ( id ) ) ; }

Target:
public T get ( ID id ) { if ( id == null ) { return null ; } else { return org.ovirt.engine.core.dao.DefaultReadDao.getCallsHandler ( ) . executeRead ( getProcedureNameForGet ( ) , createEntityRowMapper ( ) , createIdParameterMapper ( id ) ) ; } }
Source:
protected java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ) ( object ) ) . getName ( ) ; }

Target:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface network ) { return network.getName ( ) ; }
Source:
private org.apache.http.HttpResponse send ( org.apache.http.client.methods.HttpUriRequest request , boolean last ) { try { injectHeaders ( request , last ) ; return client.execute ( request ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public org.apache.http.HttpResponse send ( org.apache.http.client.methods.HttpUriRequest request ) { try { injectHeaders ( request ) ; return client.execute ( request ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveProfileParams ( org.ovirt.engine.core.common.businessentities.profiles.CpuProfile profile ) { return new org.ovirt.engine.core.common.action.CpuProfileParameters ( profile , profile.getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveProfileParams ( org.ovirt.engine.core.common.businessentities.profiles.CpuProfile profile ) { return new org.ovirt.engine.core.common.action.CpuProfileParameters ( profile ) ; }
Source:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommand ( new org.ovirt.engine.core.common.action.gluster.RemoveGlusterServerParameters ( org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.CLUSTER_ID , org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.SERVER_NAME , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommand ( new org.ovirt.engine.core.common.action.gluster.RemoveGlusterServerParameters ( org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.CLUSTER_ID , org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.SERVER_NAME , false ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getCompensationContext ( ) . snapshotEntityStatus ( diskImage.getImage ( ) , diskImage.getImageStatus ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; setImageStatus ( ImageStatus.LOCKED ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getCompensationContext ( ) . snapshotEntityStatus ( diskImage.getImage ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; setImageStatus ( ImageStatus.LOCKED ) ; return null ; }
Source:
private static java.util.Map < java.lang.String , java.lang.Object > getCdDeviceSpecParams ( java.lang.String srcCdPath , java.lang.String dstCdPath ) { return java.util.Collections.< java.lang.String , java.lang.Object > singletonMap ( VdsProperties.Path , org.ovirt.engine.core.bll.utils.VmDeviceUtils.getCdPath ( srcCdPath , dstCdPath ) ) ; }

Target:
private java.util.Map < java.lang.String , java.lang.Object > getCdDeviceSpecParams ( java.lang.String srcCdPath , java.lang.String dstCdPath ) { return java.util.Collections.< java.lang.String , java.lang.Object > singletonMap ( VdsProperties.Path , getCdPath ( srcCdPath , dstCdPath ) ) ; }
Source:
public static org.ovirt.engine.core.common.queries.VdcQueryReturnValue instantiate ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader ) throws com.google.gwt.user.client.rpc.SerializationException { org.ovirt.engine.core.common.queries.VdcQueryReturnValue vqrv = new org.ovirt.engine.core.common.queries.VdcQueryReturnValue ( ) ; return vqrv ; }

Target:
public static org.ovirt.engine.core.common.queries.VdcQueryReturnValue instantiate ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader ) throws com.google.gwt.user.client.rpc.SerializationException { return new org.ovirt.engine.core.common.queries.VdcQueryReturnValue ( ) ; }
Source:
public void MoveTag ( org.ovirt.engine.core.bll.Guid tagId , org.ovirt.engine.core.bll.Guid newParent ) { org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . MoveTag ( tagId , newParent ) ; }

Target:
public void MoveTag ( org.ovirt.engine.core.compat.Guid tagId , org.ovirt.engine.core.compat.Guid newParent ) { org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . MoveTag ( tagId , newParent ) ; }
Source:
public void setVdsId ( org.ovirt.engine.core.compat.Guid vdsId ) { this . vdsId = vdsId ; this . statistics.setVdsId ( ( vdsId != null ? vdsId.getValue ( ) : null ) ) ; }

Target:
public void setVdsId ( org.ovirt.engine.core.compat.Guid vdsId ) { this . vdsId = vdsId ; this . statistics.setVdsId ( vdsId ) ; }
Source:
protected boolean areUpdatedFieldsLegal ( ) { return VmHandler.mUpdateVmsStatic.IsUpdateValid ( org.ovirt.engine.core.bll.UpdateVmCommand.getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.UpdateVmCommand.getVm ( ) . getstatus ( ) ) ; }

Target:
protected boolean areUpdatedFieldsLegal ( ) { return VmHandler.mUpdateVmsStatic.IsUpdateValid ( org.ovirt.engine.core.bll.UpdateVmCommand.getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.UpdateVmCommand.getVm ( ) . getStatus ( ) ) ; }
Source:
public void isNotISCSIConnectionAndDomain ( ) { connection.setstorage_type ( StorageType.NFS ) ; domain.setStorageType ( StorageType.NFS ) ; org.junit.Assert.assertEquals ( EngineMessage.ACTION_TYPE_FAILED_ACTION_IS_SUPPORTED_ONLY_FOR_ISCSI_DOMAINS , validator.isISCSIConnectionAndDomain ( domain ) . getMessage ( ) ) ; }

Target:
public void isNotISCSIConnectionAndDomain ( ) { connection.setStorageType ( StorageType.NFS ) ; domain.setStorageType ( StorageType.NFS ) ; org.junit.Assert.assertEquals ( EngineMessage.ACTION_TYPE_FAILED_ACTION_IS_SUPPORTED_ONLY_FOR_ISCSI_DOMAINS , validator.isISCSIConnectionAndDomain ( domain ) . getMessage ( ) ) ; }
Source:
public java.lang.Boolean getNetConfigDirty ( ) { return mVdsDynamic.getnet_config_dirty ( ) ; }

Target:
public java.lang.Boolean getNetConfigDirty ( ) { return mVdsDynamic.getNetConfigDirty ( ) ; }
Source:
public void setUp ( ) { super . setUp ( ) ; generateStorageToDisksMap ( ) ; initDestSDs ( ) ; org.mockito.Mockito.doReturn ( ValidationResult.VALID ) . when ( storageDomainValidator ) . isDomainWithinThresholds ( ) ; }

Target:
public void setUp ( ) { super . setUp ( ) ; generateStorageToDisksMap ( ) ; initDestSDs ( ) ; }
Source:
public void testGetAllNetworkQosForStoragePool ( ) { org.junit.Assert.assertTrue ( ( ( dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_MIXED_TYPES ) . size ( ) ) == 2 ) ) ; }

Target:
public void testGetAllNetworkQosForStoragePool ( ) { org.junit.Assert.assertEquals ( 2 , dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_MIXED_TYPES ) . size ( ) ) ; }
Source:
private void initStorageConnectionsPanel ( ) { com.google.gwt.user.client.ui.VerticalPanel panel = new com.google.gwt.user.client.ui.VerticalPanel ( ) ; connectionsTable = new org.ovirt.engine.ui.common.widget.editor.ListModelObjectCellTable < org.ovirt.engine.core.common.businessentities.StorageServerConnections , org.ovirt.engine.ui.uicommonweb.models.ListModel > ( true ) ; panel.add ( connectionsTable ) ; storageTargetsPanel.setWidget ( panel ) ; }

Target:
private void initStorageConnectionsPanel ( ) { com.google.gwt.user.client.ui.VerticalPanel panel = new com.google.gwt.user.client.ui.VerticalPanel ( ) ; connectionsTable = new org.ovirt.engine.ui.common.widget.editor.ListModelObjectCellTable ( true ) ; panel.add ( connectionsTable ) ; storageTargetsPanel.setWidget ( panel ) ; }
Source:
public java.lang.String getVmName ( ) { if ( ( ( mVmName ) == null ) && ( ( getVm ( ) ) != null ) ) { mVmName = getVm ( ) . getVmName ( ) ; } return mVmName ; }

Target:
public java.lang.String getVmName ( ) { if ( ( ( mVmName ) == null ) && ( ( getVm ( ) ) != null ) ) { mVmName = getVm ( ) . getName ( ) ; } return mVmName ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.scheduling.PolicyUnit > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( result.size ( ) , org.ovirt.engine.core.dao.PolicyUnitDaoTest.NUMBER_OF_POLICY_UNITS ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.scheduling.PolicyUnit > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.PolicyUnitDaoTest.NUMBER_OF_POLICY_UNITS , result.size ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > > filter ( final org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VDS ... hosts ) { return inClusterUpgradeWeightPolicyUnit.score ( java.util.Arrays.asList ( hosts ) , vm , null ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > > filter ( final org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VDS ... hosts ) { return inClusterUpgradeWeightPolicyUnit.score ( new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) , java.util.Arrays.asList ( hosts ) , vm , null ) ; }
Source:
public static java.lang.String renderVmNamesList ( java.util.List < java.lang.String > names ) { return org.ovirt.engine.ui.uicompat.external.StringUtils.join ( names , ", " ) ; }

Target:
public static java.lang.String renderVmNamesList ( java.util.List < java.lang.String > names ) { return java.lang.String.join ( ", " , names ) ; }
Source:
public void detachedClusterMovesToDcWithExistingManagementNetwork ( ) { prepareManagementNetworkMocks ( ) ; mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , Guid.Empty ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; setupCpu ( ) ; storagePoolIsLocalFS ( ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void detachedClusterMovesToDcWithExistingManagementNetwork ( ) { prepareManagementNetworkMocks ( ) ; mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , Guid.Empty ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; setupCpu ( ) ; storagePoolIsLocalFS ( ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = getProvider ( ) ; org.ovirt.engine.core.bll.provider.ProviderProxy proxy = org.ovirt.engine.core.bll.provider.ProviderProxyFactory.getInstance ( ) . create ( provider ) ; org.ovirt.engine.core.bll.GetProviderCertificateChainQuery.getQueryReturnValue ( ) . setReturnValue ( chainToString ( proxy.getCertificateChain ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = getProvider ( ) ; org.ovirt.engine.core.bll.provider.ProviderProxy proxy = org.ovirt.engine.core.bll.provider.ProviderProxyFactory.getInstance ( ) . create ( provider ) ; org.ovirt.engine.core.bll.GetProviderCertificateChainQuery.getQueryReturnValue ( ) . setReturnValue ( proxy.getCertificateChain ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage_pool object ) { return object.getdescription ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getdescription ( ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( object ) ) . getname ( ) ; }

Target:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( object ) ) . getName ( ) ; }
Source:
void OnSuccess ( T result ) ;

Target:
void onSuccess ( T result ) ;
Source:
public void setstorage_name ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( getStorageStaticData ( ) . getstorage_name ( ) , value ) ) ) { getStorageStaticData ( ) . setstorage_name ( value ) ; } }

Target:
public void setstorage_name ( java.lang.String value ) { getStorageStaticData ( ) . setstorage_name ( value ) ; }
Source:
public void osTypeChanged ( java.lang.Integer selectedItem ) { isWindowsOS = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( selectedItem ) ; getDomain ( ) . setIsAvailable ( ( ( selectedItem != null ) && ( isWindowsOS ) ) ) ; }

Target:
public void osTypeChanged ( java.lang.Integer selectedItem ) { isWindowsOS = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( selectedItem ) ; }
Source:
public void persistCommandWithContext ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallBack ) { persistCommand ( parentCommand , getContext ( ) , enableCallBack ) ; }

Target:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { persistCommand ( parentCommand , getContext ( ) , false ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.NetworkStatus getStatus ( ) { return ( getEntity ( ) . getCluster ( ) ) == null ? null : getEntity ( ) . getCluster ( ) . getstatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkStatus getStatus ( ) { return ( getEntity ( ) . getCluster ( ) ) == null ? null : getEntity ( ) . getCluster ( ) . getStatus ( ) ; }
Source:
private boolean isHostInSupportedClusterForProxyHost ( org.ovirt.engine.core.common.businessentities.VDS host ) { return ( org.ovirt.engine.core.common.FeatureSupported.importVmFromExternalProvider ( host.getClusterCompatibilityVersion ( ) ) ) && ( ( org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand.getClusterDao ( ) . get ( host.getClusterId ( ) ) . getArchitecture ( ) ) != ( org.ovirt.engine.core.common.businessentities.ArchitectureType.ppc64 ) ) ; }

Target:
private boolean isHostInSupportedClusterForProxyHost ( org.ovirt.engine.core.common.businessentities.VDS host ) { return ( org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand.getClusterDao ( ) . get ( host.getClusterId ( ) ) . getArchitecture ( ) ) != ( org.ovirt.engine.core.common.businessentities.ArchitectureType.ppc64 ) ; }
Source:
public java.lang.String getdepartment ( ) { return this . department ; }

Target:
public org.ovirt.engine.core.compat.Guid getId ( ) { return id ; }
Source:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VmTemplate source , org.ovirt.engine.core.common.businessentities.VmTemplate destination ) { return org.ovirt.engine.core.bll.VmTemplateHandler.updateVmTemplate.IsUpdateValid ( source , destination ) ; }

Target:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VmTemplate source , org.ovirt.engine.core.common.businessentities.VmTemplate destination ) { return org.ovirt.engine.core.bll.VmTemplateHandler.updateVmTemplate.isUpdateValid ( source , destination ) ; }
Source:
java.util.Set < java.lang.String > getLabelsByVfsConfigId ( org.ovirt.engine.core.compat.Guid vfsConfigId ) { return new java.util.HashSet < java.lang.String > ( getCallsHandler ( ) . executeReadList ( "GetLabelsByVfsConfigId" , new org.springframework.jdbc.core.SingleColumnRowMapper < java.lang.String > ( ) , createVfsConfigIdParameter ( vfsConfigId ) ) ) ; }

Target:
java.util.Set < java.lang.String > getLabelsByVfsConfigId ( org.ovirt.engine.core.compat.Guid vfsConfigId ) { return new java.util.HashSet ( getCallsHandler ( ) . executeReadList ( "GetLabelsByVfsConfigId" , new org.springframework.jdbc.core.SingleColumnRowMapper ( ) , createVfsConfigIdParameter ( vfsConfigId ) ) ) ; }
Source:
protected void failedToRunVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getstatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { super . failedToRunVm ( ) ; } }

Target:
protected void failedToRunVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { super . failedToRunVm ( ) ; } }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 1 ; }
Source:
public void testGet ( ) { setUpGetVmHostDevicesExpectations ( ) ; control.replay ( ) ; org.ovirt.engine.api.model.HostDevice device = resource.get ( ) ; verifyHostDevice ( device ) ; }

Target:
public void testGet ( ) { setUpGetVmHostDevicesExpectations ( ) ; org.ovirt.engine.api.model.HostDevice device = resource.get ( ) ; verifyHostDevice ( device ) ; }
Source:
public void setname ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( this . name , value ) ) ) { this . name = value ; } }

Target:
public void setname ( java.lang.String value ) { this . name = value ; }
Source:
public void setStaticData ( org.ovirt.engine.core.common.businessentities.VmStatic value ) { if ( ( vmStatic ) == null ) { vmStatic = new org.ovirt.engine.core.common.businessentities.VmStatic ( ) ; } vmStatic = value ; }

Target:
public void setStaticData ( final org.ovirt.engine.core.common.businessentities.VmStatic value ) { if ( value == null ) { vmStatic = new org.ovirt.engine.core.common.businessentities.VmStatic ( ) ; } else { vmStatic = value ; } }
Source:
public java.lang.Integer calcMaxVCpu ( ) { return org.ovirt.engine.core.common.utils.VmCpuCountHelper.calcMaxVCpu ( vm.getStaticData ( ) , vm.getClusterCompatibilityVersion ( ) ) ; }

Target:
public java.lang.Integer calcMaxVCpu ( ) { return org.ovirt.engine.core.common.utils.VmCpuCountHelper.calcMaxVCpu ( vm , vm.getClusterCompatibilityVersion ( ) ) ; }
Source:
public java.lang.String getStoragePoolName ( ) { if ( ( getStoragePool ( ) ) != null ) { return getStoragePool ( ) . getname ( ) ; } else { return "" ; } }

Target:
public java.lang.String getStoragePoolName ( ) { if ( ( getStoragePool ( ) ) != null ) { return getStoragePool ( ) . getname ( ) ; } return "" ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . hide ( ) ; }

Target:
public void hide ( ) { getView ( ) . hide ( ) ; }
Source:
private void verifyCertificate ( org.ovirt.engine.api.model.Vm model ) { assertNotNull ( model.getDisplay ( ) ) ; assertNotNull ( model.getDisplay ( ) . getCertificate ( ) ) ; assertEquals ( model.getDisplay ( ) . getCertificate ( ) . getSubject ( ) , org.ovirt.engine.api.restapi.resource.BackendVmResourceTest.CERTIFICATE ) ; }

Target:
private void verifyCertificate ( org.ovirt.engine.api.model.Vm model ) { assertNotNull ( model.getDisplay ( ) ) ; assertNotNull ( model.getDisplay ( ) . getCertificate ( ) ) ; assertEquals ( org.ovirt.engine.api.restapi.resource.BackendVmResourceTest.CERTIFICATE , model.getDisplay ( ) . getCertificate ( ) . getSubject ( ) ) ; }
Source:
public java.lang.String getNetworkName ( ) { return getEntity ( ) . getname ( ) ; }

Target:
public java.lang.String getNetworkName ( ) { return getEntity ( ) . getName ( ) ; }
Source:
private void mockValidateCustomProperties ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateCustomProperties ( org.mockito.ArgumentMatchers.any ( ) , org.mockito.ArgumentMatchers.any ( ) ) ; }

Target:
private void mockValidateCustomProperties ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateCustomProperties ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
protected void executeCommand ( ) { HandleUserSession ( ldapUser ) ; setActionReturnValue ( org.ovirt.engine.core.bll.LoginBaseCommand.getCurrentUser ( ) ) ; org.ovirt.engine.core.bll.UserCommandBase.persistAuthenticatedUser ( ldapUser ) ; getReturnValue ( ) . setLoginResult ( LoginResult.Autheticated ) ; updateUserData ( ) ; org.ovirt.engine.core.bll.LoginBaseCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { setActionReturnValue ( org.ovirt.engine.core.bll.LoginBaseCommand.getCurrentUser ( ) ) ; org.ovirt.engine.core.bll.UserCommandBase.persistAuthenticatedUser ( ldapUser ) ; getReturnValue ( ) . setLoginResult ( LoginResult.Autheticated ) ; updateUserData ( ) ; org.ovirt.engine.core.bll.LoginBaseCommand.setSucceeded ( true ) ; }
Source:
public java.lang.String getDuration ( ) { return java.lang.String.valueOf ( ( ( ( ( new java.util.Date ( ) . getTime ( ) ) - ( org.ovirt.engine.core.bll.MigrateVmCommand.getParameters ( ) . getStartTime ( ) . getTime ( ) ) ) / 1000 ) % 60 ) ) ; }

Target:
public java.lang.String getDuration ( ) { return java.lang.String.valueOf ( ( ( ( new java.util.Date ( ) . getTime ( ) ) - ( org.ovirt.engine.core.bll.MigrateVmCommand.getParameters ( ) . getStartTime ( ) . getTime ( ) ) ) / 1000 ) ) ; }
Source:
private void updateVolumeType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { getVolumeType ( ) . setSelectedItem ( ( storageType.isBlockDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated : org.ovirt.engine.core.common.businessentities.VolumeType.Sparse ) ) ; volumeType_SelectedItemChanged ( ) ; }

Target:
protected abstract void updateVolumeType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) ;
Source:
public void setVdsName ( java.lang.String value ) { this . name = value ; }

Target:
public void setVdsName ( java.lang.String value ) { name = value ; }
Source:
protected org.ovirt.engine.ui.webadmin.widget.storage.TemplatesTree < org.ovirt.engine.ui.uicommonweb.models.storage.StorageTemplateListModel > getTree ( ) { return new org.ovirt.engine.ui.webadmin.widget.storage.TemplatesTree < org.ovirt.engine.ui.uicommonweb.models.storage.StorageTemplateListModel > ( ) ; }

Target:
protected org.ovirt.engine.ui.webadmin.widget.storage.TemplatesTree < org.ovirt.engine.ui.uicommonweb.models.storage.StorageTemplateListModel > getTree ( ) { return new org.ovirt.engine.ui.webadmin.widget.storage.TemplatesTree ( ) ; }
Source:
public org.ovirt.engine.core.common.TimeZoneType getTimeZoneType ( ) { int vmOsType = ( ( java.lang.Integer ) ( getModel ( ) . getOSType ( ) . getSelectedItem ( ) ) ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( vmOsType ) ? org.ovirt.engine.core.common.TimeZoneType.WINDOWS_TIMEZONE : org.ovirt.engine.core.common.TimeZoneType.GENERAL_TIMEZONE ; }

Target:
public org.ovirt.engine.core.common.TimeZoneType getTimeZoneType ( ) { java.lang.Integer vmOsType = ( ( java.lang.Integer ) ( getModel ( ) . getOSType ( ) . getSelectedItem ( ) ) ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( vmOsType ) ? org.ovirt.engine.core.common.TimeZoneType.WINDOWS_TIMEZONE : org.ovirt.engine.core.common.TimeZoneType.GENERAL_TIMEZONE ; }
Source:
public void cleanup ( ) { getCommand ( ) . getPropertyChangedEvent ( ) . removeListener ( listener ) ; }

Target:
public void cleanup ( ) { if ( ( getCommand ( ) ) != null ) { getCommand ( ) . getPropertyChangedEvent ( ) . removeListener ( listener ) ; } }
Source:
private static java.lang.Double assignDoubleValueWithNullProtection ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct input , java.lang.String name ) { java.lang.Double doubleValue = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.AssignDoubleValue ( input , name ) ; return doubleValue == null ? 0.0 : doubleValue ; }

Target:
private static java.lang.Double assignDoubleValueWithNullProtection ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct input , java.lang.String name ) { java.lang.Double doubleValue = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.AssignDoubleValue ( input , name ) ; return doubleValue == null ? java.lang.Double.valueOf ( 0.0 ) : doubleValue ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.LdapGroup > getAllTimeLeasedForPool ( int id ) { return getCallsHandler ( ) . executeReadList ( "Gettime_leasedad_groups_by_vm_pool_id" , new org.ovirt.engine.core.dao.AdGroupDAODbFacadeImpl.ADGroupRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "vmPoolId" , id ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.LdapGroup > getAllTimeLeasedForPool ( int id ) { return getCallsHandler ( ) . executeReadList ( "Gettime_leasedad_groups_by_vm_pool_id" , org.ovirt.engine.core.dao.AdGroupDAODbFacadeImpl.ADGroupRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vmPoolId" , id ) ) ; }
Source:
public java.security.cert.X509Certificate [ ] getAcceptedIssuers ( ) { return new java.security.cert.X509Certificate [ 0 ] ; }

Target:
public java.security.cert.X509Certificate [ ] getAcceptedIssuers ( ) { return new java.security.cert.X509Certificate [ ] { } ; }
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 boolean isRunOnlyIfAllCanDoPass , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , isRunOnlyIfAllCanDoPass , callback , state , true ) ; }

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 boolean isRunOnlyIfAllCanDoPass , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , isRunOnlyIfAllCanDoPass , callback , state , true , false ) ; }
Source:
public org.ovirt.engine.api.model.Bookmark update ( org.ovirt.engine.api.model.Bookmark incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetBookmarkByBookmarkId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateBookmark , new org.ovirt.engine.api.restapi.resource.BackendBookmarkResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Bookmark update ( org.ovirt.engine.api.model.Bookmark incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetBookmarkByBookmarkId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateBookmark , new org.ovirt.engine.api.restapi.resource.BackendBookmarkResource.UpdateParametersProvider ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.SearchQuery < org.ovirt.engine.core.common.queries.SearchParameters > spySearchQuery ( org.ovirt.engine.core.common.queries.SearchParameters searchParam ) { org.ovirt.engine.core.bll.SearchQuery < org.ovirt.engine.core.common.queries.SearchParameters > searchQuery = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.SearchQuery < org.ovirt.engine.core.common.queries.SearchParameters > ( searchParam ) ) ; mockInjections ( searchQuery ) ; return searchQuery ; }

Target:
private org.ovirt.engine.core.bll.SearchQuery < org.ovirt.engine.core.common.queries.SearchParameters > spySearchQuery ( org.ovirt.engine.core.common.queries.SearchParameters searchParam ) { org.ovirt.engine.core.bll.SearchQuery < org.ovirt.engine.core.common.queries.SearchParameters > searchQuery = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.SearchQuery ( searchParam ) ) ; mockInjections ( searchQuery ) ; return searchQuery ; }
Source:
private long getHeartbeatTime ( ) { return ( java.lang.System.currentTimeMillis ( ) ) - ( ( this . lastIncomingHeartbeat ) + ( this . policy.getIncomingHeartbeat ( ) ) ) ; }

Target:
private long getHeartbeatTime ( ) { return ( java.lang.System.currentTimeMillis ( ) ) - ( this . lastIncomingHeartbeat ) ; }
Source:
public void validateFileToBlockSupported ( ) { storagePool.setCompatibilityVersion ( Version.v3_6 ) ; validateInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.NFS , StorageType.ISCSI , true ) ; }

Target:
public void validateFileToBlockSupported ( ) { storagePool.setCompatibilityVersion ( Version.v3_6 ) ; validateInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.NFS , StorageType.ISCSI ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.VmNic createNewInterface ( ) { org.ovirt.engine.core.common.businessentities.network.VmNic iface = new org.ovirt.engine.core.common.businessentities.network.VmNic ( ) ; iface.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; iface.setMacAddress ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; return iface ; }

Target:
private static org.ovirt.engine.core.common.businessentities.network.VmNic createNewInterface ( ) { org.ovirt.engine.core.common.businessentities.network.VmNic iface = new org.ovirt.engine.core.common.businessentities.network.VmNic ( ) ; iface.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; iface.setMacAddress ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; return iface ; }
Source:
private org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters buildDetachDetachVmDiskParameters ( org.ovirt.engine.core.common.businessentities.storage.DiskImage activeDiskSnapshot ) { return new org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( activeDiskSnapshot.getId ( ) , org.ovirt.engine.core.bll.RestoreStatelessVmCommand.getVmId ( ) ) , false , false ) ; }

Target:
private org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters buildDetachDetachVmDiskParameters ( org.ovirt.engine.core.common.businessentities.storage.DiskImage activeDiskSnapshot ) { return new org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( activeDiskSnapshot.getId ( ) , org.ovirt.engine.core.bll.RestoreStatelessVmCommand.getVmId ( ) ) , false ) ; }
Source:
protected org.ovirt.engine.core.bll.RolesCommandBase < org.ovirt.engine.core.common.action.RolesParameterBase > generateCommand ( ) { return new org.ovirt.engine.core.bll.RolesCommandBase < org.ovirt.engine.core.common.action.RolesParameterBase > ( getParams ( ) ) { private static final long serialVersionUID = 4949793152063462580L ; @ java.lang.Override protected void executeCommand ( ) { } } ; }

Target:
protected org.ovirt.engine.core.bll.RolesCommandBase < org.ovirt.engine.core.common.action.RolesParameterBase > generateCommand ( ) { return new org.ovirt.engine.core.bll.RolesCommandBase < org.ovirt.engine.core.common.action.RolesParameterBase > ( getParams ( ) ) { @ java.lang.Override protected void executeCommand ( ) { } } ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( java.lang.String.format ( "%saddresses/management_port" , VdsmEnv.CONFIG_PREFIX ) , java.lang.Integer.toString ( _vds.getPort ( ) ) ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( java.lang.String.format ( "%saddresses/management_port" , VdsmEnv.CONFIG_PREFIX ) , java.lang.Integer.toString ( _vds.getPort ( ) ) ) ; return true ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; behavior.ExecuteCommand ( command ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; behavior.executeCommand ( command ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3VmServer getVmResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmServer ( delegate.getVmResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3VmServer getVmResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmServer ( id , delegate.getVmResource ( id ) ) ; }
Source:
public boolean getIsAvailable ( ) { return isUserElement ( getDetailModel ( ) ) ; }

Target:
public boolean getIsAvailable ( ) { return isUserElement ( ) ; }
Source:
public static boolean isPayload ( java.util.Map < java.lang.String , java.lang.Object > specParams ) { return specParams.containsKey ( org.ovirt.engine.core.common.businessentities.VmPayload.SpecParamsPayload ) ; }

Target:
public static boolean isPayload ( java.util.Map < java.lang.String , java.lang.Object > specParams ) { return specParams == null ? false : specParams.containsKey ( org.ovirt.engine.core.common.businessentities.VmPayload.SpecParamsPayload ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; InitSpmPriorities1 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; InitSpmPriorities1 ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return n.getId ( ) . equals ( getParameters ( ) . getNetwork ( ) . getId ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return n.getId ( ) . equals ( getNetwork ( ) . getId ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VdsStatic getByHostName ( java.lang.String host ) { return getCallsHandler ( ) . executeRead ( "GetVdsStaticByHostName" , new org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "host_name" , host ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsStatic getByHostName ( java.lang.String host ) { return getCallsHandler ( ) . executeRead ( "GetVdsStaticByHostName" , org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "host_name" , host ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getClusters ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > list = new java.util.ArrayList < > ( ) ; list.add ( createCluster ( Version.v3_4 ) ) ; list.add ( createCluster ( Version.v3_5 ) ) ; return list ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getClusters ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > list = new java.util.ArrayList < > ( ) ; list.add ( createCluster ( 0 , Version.v3_4 ) ) ; list.add ( createCluster ( 1 , Version.v3_5 ) ) ; return list ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 , 0 , false ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 , 0 , false ) ; verifyModel ( resource.get ( ) , 0 ) ; }
Source:
private static void generateRsdlFile ( org.ovirt.engine.api.rsdl.MetaData metadata , java.lang.String baseUri , java.lang.String outputFileName , java.util.List < java.lang.String > rels ) throws java.io.IOException , java.lang.ClassNotFoundException { org.ovirt.engine.api.model.RSDL rsdl = org.ovirt.engine.api.rsdl.RsdlManager.buildRsdl ( metadata , rels , baseUri ) ; org.ovirt.engine.api.rsdl.RsdlManager.serializeRsdl ( rsdl , outputFileName ) ; }

Target:
private static void generateRsdlFile ( org.ovirt.engine.api.rsdl.MetaData metadata , java.lang.String outputFileName , java.util.List < java.lang.String > rels ) throws java.io.IOException , java.lang.ClassNotFoundException { org.ovirt.engine.api.model.RSDL rsdl = org.ovirt.engine.api.rsdl.RsdlManager.buildRsdl ( metadata , rels ) ; org.ovirt.engine.api.rsdl.RsdlManager.serializeRsdl ( rsdl , outputFileName ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getIsInternal ( ) . setEntity ( false ) ; revealStorageView ( disk ) ; revealDiskPanel ( disk ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getIsInternal ( ) . setEntity ( true ) ; revealDiskPanel ( disk ) ; }
Source:
protected void getHostListByCluster ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetHostsByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( cluster.getId ( ) ) , query ) ; }

Target:
protected void getHostListByCluster ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetHostsByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( cluster.getId ( ) ) , query ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.VDS object ) { return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDS getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object ; }
Source:
public static boolean IsSDItemExistInList ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage_domains > items , org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.core.common.businessentities.storage_domains b : items ) { if ( b.getId ( ) . equals ( id ) ) { return true ; } } return false ; }

Target:
public static boolean IsSDItemExistInList ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > items , org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain b : items ) { if ( b.getId ( ) . equals ( id ) ) { return true ; } } return false ; }