auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void error ( java.lang.Throwable t , java.lang.String errorFormat , java.lang.Object ... args ) { if ( errorFormat != null ) { java.lang.System.err.printf ( ( "Error: " + errorFormat ) , args ) ; if ( ! ( errorFormat.endsWith ( "\n" ) ) ) { java.lang.System.err.printf ( "\n" ) ; } } if ( t != null ) { java.lang.System.err.printf ( "Error: %s\n" , t.getMessage ( ) ) ; } }

Target:
private void createLogger ( ) { mSdkLog = new com.android.utils.StdLogger ( StdLogger.Level.VERBOSE ) ; }
Source:
public static java.security.KeyFactory getInstance ( java.lang.String algorithm , java.lang.String provider ) throws java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException { sun.security.jca.GetInstance.Instance instance = sun.security.jca.GetInstance.getInstance ( "KeyFactory" , java.security.KeyFactorySpi.class , algorithm , provider ) ; return new java.security.KeyFactory ( ( ( java.security.KeyFactorySpi ) ( instance.impl ) ) , instance.provider , algorithm ) ; }

Target:
public static java.security.KeyFactory getInstance ( java.lang.String algorithm , java.lang.String provider ) throws java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException { sun.security.jca.Providers.checkBouncyCastleDeprecation ( provider , "KeyFactory" , algorithm ) ; sun.security.jca.GetInstance.Instance instance = sun.security.jca.GetInstance.getInstance ( "KeyFactory" , java.security.KeyFactorySpi.class , algorithm , provider ) ; return new java.security.KeyFactory ( ( ( java.security.KeyFactorySpi ) ( instance.impl ) ) , instance.provider , algorithm ) ; }
Source:
public java.util.List < com.intellij.ui.tabs.impl.TabInfo > getTabs ( ) { if ( ( myAllTabs ) != null ) return myAllTabs ; java.util.ArrayList < com.intellij.ui.tabs.impl.TabInfo > result = new java.util.ArrayList < com.intellij.ui.tabs.impl.TabInfo > ( ) ; result.addAll ( myVisibleInfos ) ; for ( com.intellij.ui.tabs.impl.TabInfo each : myHiddenInfos.keySet ( ) ) { result.add ( getIndexInVisibleArray ( each ) , each ) ; } myAllTabs = result ; return result ; }

Target:
public java.util.List < com.intellij.ui.tabs.impl.TabInfo > getTabs ( ) { if ( ( myAllTabs ) != null ) return myAllTabs ; java.util.ArrayList < com.intellij.ui.tabs.impl.TabInfo > result = new java.util.ArrayList < com.intellij.ui.tabs.impl.TabInfo > ( ) ; result.addAll ( myVisibleInfos ) ; for ( com.intellij.ui.tabs.impl.TabInfo each : myHiddenInfos.keySet ( ) ) { result.add ( getIndexInVisibleArray ( each ) , each ) ; } if ( isAlphabeticalMode ( ) ) { java.util.Collections.sort ( result , com.intellij.ui.tabs.impl.JBTabsImpl.ABC_COMPARATOR ) ; } myAllTabs = result ; return result ; }
Source:
protected void appendHandle ( final org.objectweb.asm.Handle h ) { buf.append ( '\n' ) . append ( tab3 ) ; int tag = h.getTag ( ) ; buf.append ( "// handle kind 0x" ) . append ( java.lang.Integer.toHexString ( tag ) ) . append ( " : " ) ; switch ( tag ) { case org.objectweb.asm.Opcodes.H_GETFIELD : buf.append ( "GETFIELD" ) ; break ; case org.objectweb.asm.Opcodes.H_GETSTATIC : buf.append ( "GETSTATIC" ) ; break ; case org.objectweb.asm.Opcodes.H_PUTFIELD : buf.append ( "PUTFIELD" ) ; break ; case org.objectweb.asm.Opcodes.H_PUTSTATIC : buf.append ( "PUTSTATIC" ) ; break ; case org.objectweb.asm.Opcodes.H_INVOKEINTERFACE : buf.append ( "INVOKEINTERFACE" ) ; break ; case org.objectweb.asm.Opcodes.H_INVOKESPECIAL : buf.append ( "INVOKESPECIAL" ) ; break ; case org.objectweb.asm.Opcodes.H_INVOKESTATIC : buf.append ( "INVOKESTATIC" ) ; break ; case org.objectweb.asm.Opcodes.H_INVOKEVIRTUAL : buf.append ( "INVOKEVIRTUAL" ) ; break ; case org.objectweb.asm.Opcodes.H_NEWINVOKESPECIAL : buf.append ( "NEWINVOKESPECIAL" ) ; break ; } buf.append ( '\n' ) ; buf.append ( tab3 ) ; appendDescriptor ( org.objectweb.asm.util.Textifier.INTERNAL_NAME , h.getOwner ( ) ) ; buf.append ( '.' ) ; buf.append ( h.getName ( ) ) ; buf.append ( '(' ) ; appendDescriptor ( org.objectweb.asm.util.Textifier.HANDLE_DESCRIPTOR , h.getDesc ( ) ) ; buf.append ( ')' ) . append ( '\n' ) ; }

Target:
public org.objectweb.asm.util.Printer visitLocalVariableAnnotation ( int typeRef , org.objectweb.asm.TypePath typePath , org.objectweb.asm.Label [ ] start , org.objectweb.asm.Label [ ] end , int [ ] index , java.lang.String desc , boolean visible ) { buf.setLength ( 0 ) ; buf.append ( tab2 ) . append ( "LOCALVARIABLE @" ) ; appendDescriptor ( org.objectweb.asm.util.Textifier.FIELD_DESCRIPTOR , desc ) ; buf.append ( '(' ) ; text.add ( buf.toString ( ) ) ; org.objectweb.asm.util.Textifier t = createTextifier ( ) ; text.add ( t.getText ( ) ) ; buf.setLength ( 0 ) ; buf.append ( ") : " ) ; appendTypeReference ( typeRef ) ; buf.append ( ", " ) . append ( typePath ) ; for ( int i = 0 ; i < ( start.length ) ; ++ i ) { buf.append ( " [ " ) ; appendLabel ( start [ i ] ) ; buf.append ( " - " ) ; appendLabel ( end [ i ] ) ; buf.append ( " - " ) . append ( index [ i ] ) . append ( " ]" ) ; } buf.append ( ( visible ? "\n" : " // invisible\n" ) ) ; text.add ( buf.toString ( ) ) ; return t ; }
Source:
public void TestNames ( ) { com.ibm.icu.util.ULocale en = com.ibm.icu.util.ULocale.ENGLISH ; boolean [ ] isChoiceFormat = new boolean [ 1 ] ; com.ibm.icu.util.Currency usd = com.ibm.icu.util.Currency.getInstance ( "USD" ) ; if ( ! ( noData ( ) ) ) { assertEquals ( "USD.getName(SYMBOL_NAME)" , "$" , usd.getName ( en , Currency.SYMBOL_NAME , isChoiceFormat ) ) ; assertEquals ( "USD.getName(LONG_NAME)" , "US Dollar" , usd.getName ( en , Currency.LONG_NAME , isChoiceFormat ) ) ; } }

Target:
public void testGetName_Locale_Int_String_BooleanArray ( ) { com.ibm.icu.util.Currency currency = com.ibm.icu.util.Currency.getInstance ( ULocale.CHINA ) ; boolean [ ] isChoiceFormat = new boolean [ 1 ] ; int nameStyle = com.ibm.icu.util.Currency.LONG_NAME ; java.lang.String pluralCount = "" ; java.lang.String ulocaleName = currency.getName ( ULocale.CANADA , nameStyle , pluralCount , isChoiceFormat ) ; assertEquals ( "currency name mismatch" , "Chinese Yuan" , ulocaleName ) ; java.lang.String localeName = currency.getName ( java.util.Locale.CANADA , nameStyle , pluralCount , isChoiceFormat ) ; assertEquals ( "currency name mismatch" , ulocaleName , localeName ) ; }
Source:
public java.lang.String getPackageName ( com.android.builder.VariantConfiguration testedVariant ) { java.lang.String packageName ; if ( ( mType ) == ( com.android.builder.VariantConfiguration.Type.TEST ) ) { packageName = getTestPackage ( testedVariant ) ; } else { packageName = getPackageOverride ( ) ; if ( packageName == null ) { packageName = getPackageFromManifest ( ) ; } } return packageName ; }

Target:
public java.lang.String getPackageName ( ) { java.lang.String packageName ; if ( ( mType ) == ( com.android.builder.VariantConfiguration.Type.TEST ) ) { packageName = mMergedFlavor.getTestPackageName ( ) ; if ( packageName == null ) { java.lang.String testedPackage = mTestedConfig.getPackageName ( ) ; packageName = testedPackage + ".test" ; } } else { packageName = getPackageOverride ( ) ; if ( packageName == null ) { packageName = getPackageFromManifest ( ) ; } } return packageName ; }
Source:
public void handleMessage ( android.os.Message msg ) { android.os.AsyncResult ar = ( ( android.os.AsyncResult ) ( msg.obj ) ) ; switch ( msg.what ) { case com.android.settings.SimLockSettings.ENABLE_SIM_PIN_COMPLETE : simLockChanged ( ( ( ar.exception ) == null ) ) ; break ; case com.android.settings.SimLockSettings.CHANGE_SIM_PIN_COMPLETE : simPinChanged ( ( ( ar.exception ) == null ) ) ; break ; } return ; }

Target:
public void handleMessage ( android.os.Message msg ) { android.os.AsyncResult ar = ( ( android.os.AsyncResult ) ( msg.obj ) ) ; switch ( msg.what ) { case com.android.settings.IccLockSettings.ENABLE_ICC_PIN_COMPLETE : iccLockChanged ( ( ( ar.exception ) == null ) ) ; break ; case com.android.settings.IccLockSettings.CHANGE_ICC_PIN_COMPLETE : iccPinChanged ( ( ( ar.exception ) == null ) ) ; break ; } return ; }
Source:
private boolean areAllApplicationsReady ( ) { for ( com.android.internal.telephony.uicc.UiccCardApplication app : mUiccApplications ) { if ( ( ( app != null ) && ( isSupportedApplication ( app ) ) ) && ( ! ( app.isReady ( ) ) ) ) { if ( com.android.internal.telephony.uicc.UiccProfile.VDBG ) log ( "areAllApplicationsReady: return false" ) ; return false ; } } if ( com.android.internal.telephony.uicc.UiccProfile.VDBG ) { log ( ( "areAllApplicationsReady: outside loop, return " + ( ( mUiccApplications [ 0 ] ) != null ) ) ) ; } return ( mUiccApplications [ 0 ] ) != null ; }

Target:
private boolean areAllApplicationsReady ( ) { for ( com.android.internal.telephony.uicc.UiccCardApplication app : mUiccApplications ) { if ( ( ( app != null ) && ( isSupportedApplication ( app ) ) ) && ( ! ( app.isReady ( ) ) ) ) { if ( com.android.internal.telephony.uicc.UiccProfile.VDBG ) com.android.internal.telephony.uicc.UiccProfile.log ( "areAllApplicationsReady: return false" ) ; return false ; } } if ( com.android.internal.telephony.uicc.UiccProfile.VDBG ) { com.android.internal.telephony.uicc.UiccProfile.log ( ( "areAllApplicationsReady: outside loop, return " + ( ( mUiccApplications [ 0 ] ) != null ) ) ) ; } return ( mUiccApplications [ 0 ] ) != null ; }
Source:
private void transform ( @ javax.annotation.Nonnull org.objectweb.asm.tree.ClassNode cn , @ javax.annotation.Nonnull java.io.OutputStream os ) throws java.io.IOException { com.android.jill.backend.jayce.JayceWriter writer = createWriter ( os ) ; com.android.jill.frontend.java.ClassNodeWriter asm2jayce = new com.android.jill.frontend.java.ClassNodeWriter ( writer , new com.android.jill.frontend.java.SourceInfoWriter ( writer ) , options ) ; asm2jayce.write ( cn ) ; writer.flush ( ) ; }

Target:
private void transform ( @ javax.annotation.Nonnull org.objectweb.asm.tree.ClassNode cn , @ javax.annotation.Nonnull java.io.OutputStream os ) throws java.io.IOException { com.android.sched.util.stream.UncloseableOutputStream uos = new com.android.sched.util.stream.UncloseableOutputStream ( os ) ; java.util.zip.DeflaterOutputStream dos = new java.util.zip.DeflaterOutputStream ( uos , new java.util.zip.Deflater ( ) ) ; try { com.android.jill.backend.jayce.JayceWriter writer = createWriter ( dos ) ; com.android.jill.frontend.java.ClassNodeWriter asm2jayce = new com.android.jill.frontend.java.ClassNodeWriter ( writer , new com.android.jill.frontend.java.SourceInfoWriter ( writer ) , options ) ; asm2jayce.write ( cn ) ; writer.flush ( ) ; } finally { dos.close ( ) ; } }
Source:
static java.lang.String readString ( java.io.InputStream is ) throws java.io.IOException { int n = ( ( int ) ( com.android.volley.toolbox.DiskBasedCache.readLong ( is ) ) ) ; byte [ ] b = com.android.volley.toolbox.DiskBasedCache.streamToBytes ( is , n ) ; return new java.lang.String ( b , "UTF-8" ) ; }

Target:
static java.lang.String readString ( com.android.volley.toolbox.DiskBasedCache.CountingInputStream cis ) throws java.io.IOException { long n = com.android.volley.toolbox.DiskBasedCache.readLong ( cis ) ; byte [ ] b = com.android.volley.toolbox.DiskBasedCache.streamToBytes ( cis , n ) ; return new java.lang.String ( b , "UTF-8" ) ; }
Source:
public static < K extends java.lang.Comparable < ? super K > , V > com.google.common.collect.ImmutableSortedMap < K , V > of ( K k1 , V v1 , K k2 , V v2 , K k3 , V v3 ) { return new com.google.common.collect.ImmutableSortedMap.Builder < K , V > ( com.google.common.collect.Ordering.natural ( ) ) . put ( k1 , v1 ) . put ( k2 , v2 ) . put ( k3 , v3 ) . build ( ) ; }

Target:
public static < K extends java.lang.Comparable < ? super K > , V > com.google.common.collect.ImmutableSortedMap < K , V > of ( K k1 , V v1 , K k2 , V v2 , K k3 , V v3 , K k4 , V v4 ) { return com.google.common.collect.ImmutableSortedMap.fromEntries ( com.google.common.collect.Ordering.natural ( ) , false , 4 , com.google.common.collect.ImmutableMap.entryOf ( k1 , v1 ) , com.google.common.collect.ImmutableMap.entryOf ( k2 , v2 ) , com.google.common.collect.ImmutableMap.entryOf ( k3 , v3 ) , com.google.common.collect.ImmutableMap.entryOf ( k4 , v4 ) ) ; }
Source:
private com.android.ide.eclipse.ddms.IAdbLocator [ ] instantiateAdbLocators ( org.eclipse.core.runtime.IConfigurationElement [ ] configElements ) throws org.eclipse.core.runtime.CoreException { java.util.ArrayList < com.android.ide.eclipse.ddms.IAdbLocator > list = new java.util.ArrayList < com.android.ide.eclipse.ddms.IAdbLocator > ( ) ; if ( ( configElements.length ) > 0 ) { org.eclipse.core.runtime.IConfigurationElement configElement = configElements [ 0 ] ; java.lang.Object obj = configElement.createExecutableExtension ( "class" ) ; if ( obj instanceof com.android.ide.eclipse.ddms.IAdbLocator ) { list.add ( ( ( com.android.ide.eclipse.ddms.IAdbLocator ) ( obj ) ) ) ; } } return list.toArray ( new com.android.ide.eclipse.ddms.IAdbLocator [ list.size ( ) ] ) ; }

Target:
private com.android.ide.eclipse.ddms.IToolsLocator [ ] instantiateToolsLocators ( org.eclipse.core.runtime.IConfigurationElement [ ] configElements ) throws org.eclipse.core.runtime.CoreException { java.util.ArrayList < com.android.ide.eclipse.ddms.IToolsLocator > list = new java.util.ArrayList < com.android.ide.eclipse.ddms.IToolsLocator > ( ) ; if ( ( configElements.length ) > 0 ) { org.eclipse.core.runtime.IConfigurationElement configElement = configElements [ 0 ] ; java.lang.Object obj = configElement.createExecutableExtension ( "class" ) ; if ( obj instanceof com.android.ide.eclipse.ddms.IToolsLocator ) { list.add ( ( ( com.android.ide.eclipse.ddms.IToolsLocator ) ( obj ) ) ) ; } } return list.toArray ( new com.android.ide.eclipse.ddms.IToolsLocator [ list.size ( ) ] ) ; }
Source:
public void onError ( int error ) { com.googlecode.android_scripting.Log.d ( ( "PacketKeepaliveCallback on error! - code:" + error ) ) ; if ( ( ( mEvents ) & ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_ERROR ) ) == ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_ERROR ) ) { mEventFacade.postEvent ( TelephonyConstants.EventPacketKeepaliveCallback , new com.googlecode.android_scripting.facade.telephony.TelephonyEvents.PacketKeepaliveEvent ( mId , com.googlecode.android_scripting.facade.ConnectivityManagerFacade.getPacketKeepaliveReceiverEventString ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_ERROR ) ) ) ; } }

Target:
public void onError ( int error ) { com.googlecode.android_scripting.Log.d ( ( "PacketKeepaliveCallback on error! - code:" + error ) ) ; if ( ( ( mEvents ) & ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_ERROR ) ) == ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_ERROR ) ) { mEventFacade.postEvent ( ConnectivityConstants.EventPacketKeepaliveCallback , new com.googlecode.android_scripting.facade.ConnectivityEvents.PacketKeepaliveEvent ( mId , com.googlecode.android_scripting.facade.ConnectivityManagerFacade.getPacketKeepaliveReceiverEventString ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_ERROR ) ) ) ; } }
Source:
public java.lang.Integer wifiNanAttach ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "nanConfig" ) org.json.JSONObject nanConfig ) throws android.os.RemoteException , org.json.JSONException { synchronized ( mLock ) { int sessionId = getNextSessionId ( ) ; mMgr.attach ( null , com.googlecode.android_scripting.facade.wifi.WifiNanManagerFacade.getConfigRequest ( nanConfig ) , new com.googlecode.android_scripting.facade.wifi.WifiNanManagerFacade.NanEventCallbackPostsEvents ( sessionId ) ) ; return sessionId ; } }

Target:
public java.lang.Integer wifiNanAttach ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "nanConfig" ) org.json.JSONObject nanConfig ) throws android.os.RemoteException , org.json.JSONException { synchronized ( mLock ) { int sessionId = getNextSessionId ( ) ; mMgr.attach ( null , com.googlecode.android_scripting.facade.wifi.WifiNanManagerFacade.getConfigRequest ( nanConfig ) , new com.googlecode.android_scripting.facade.wifi.WifiNanManagerFacade.NanAttachCallbackPostsEvents ( sessionId ) , new com.googlecode.android_scripting.facade.wifi.WifiNanManagerFacade.NanIdentityChangeListenerPostsEvents ( sessionId ) ) ; return sessionId ; } }
Source:
private void onDeviceConfigChange ( ) { if ( ( mDisableUpdates ) > 0 ) { return ; } if ( ( computeCurrentConfig ( false ) ) && ( ( mListener ) != null ) ) { mListener.onConfigurationChange ( ) ; } }

Target:
private void onRenderingTargetChange ( ) { if ( ( mDisableUpdates ) > 0 ) { return ; } if ( ( ( mListener ) != null ) && ( ( mRenderingTarget ) != null ) ) { mListener.onRenderingTargetPreChange ( mRenderingTarget ) ; } int index = mTargetCombo.getSelectionIndex ( ) ; mRenderingTarget = mTargetList.get ( index ) ; boolean computeOk = computeCurrentConfig ( ) ; updateThemes ( ) ; saveState ( ) ; if ( computeOk && ( ( mListener ) != null ) ) { mListener.onConfigurationChange ( ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testThrowException ( ) ; Main.testDropArguments ( ) ; Main.testCatchException ( ) ; Main.testGuardWithTest ( ) ; Main.testArrayElementGetter ( ) ; Main.testArrayElementSetter ( ) ; Main.testIdentity ( ) ; Main.testConstant ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testThrowException ( ) ; Main.testDropArguments ( ) ; Main.testCatchException ( ) ; Main.testGuardWithTest ( ) ; Main.testArrayElementGetter ( ) ; Main.testArrayElementSetter ( ) ; Main.testIdentity ( ) ; Main.testConstant ( ) ; Main.testBindTo ( ) ; Main.testFilterReturnValue ( ) ; }
Source:
static android.telephony.SignalStrength convertHalSignalStrength ( com.android.internal.telephony.V1_0.SignalStrength signalStrength ) { return new android.telephony.SignalStrength ( signalStrength.gw.signalStrength , signalStrength.gw.bitErrorRate , signalStrength.cdma.dbm , signalStrength.cdma.ecio , signalStrength.evdo.dbm , signalStrength.evdo.ecio , signalStrength.evdo.signalNoiseRatio , signalStrength.lte.signalStrength , signalStrength.lte.rsrp , signalStrength.lte.rsrq , signalStrength.lte.rssnr , signalStrength.lte.cqi , signalStrength.tdScdma.rscp , false ) ; }

Target:
public static android.telephony.SignalStrength convertHalSignalStrength ( com.android.internal.telephony.V1_0.SignalStrength signalStrength ) { int tdscdmaRscp_1_2 = 255 ; if ( ( ( signalStrength.tdScdma.rscp ) >= 25 ) && ( ( signalStrength.tdScdma.rscp ) <= 120 ) ) { int rscpDbm = - ( signalStrength.tdScdma.rscp ) ; tdscdmaRscp_1_2 = rscpDbm + 120 ; } return new android.telephony.SignalStrength ( signalStrength.gw.signalStrength , signalStrength.gw.bitErrorRate , signalStrength.cdma.dbm , signalStrength.cdma.ecio , signalStrength.evdo.dbm , signalStrength.evdo.ecio , signalStrength.evdo.signalNoiseRatio , signalStrength.lte.signalStrength , signalStrength.lte.rsrp , signalStrength.lte.rsrq , signalStrength.lte.rssnr , signalStrength.lte.cqi , tdscdmaRscp_1_2 ) ; }
Source:
private static java.lang.invoke.MethodHandle zero ( sun.invoke.util.Wrapper btw , java.lang.Class < ? > rtype ) { int pos = btw.ordinal ( ) ; java.lang.invoke.MethodHandle zero = java.lang.invoke.MethodHandles.ZERO_MHS [ pos ] ; if ( zero == null ) { zero = java.lang.invoke.MethodHandles.setCachedMethodHandle ( java.lang.invoke.MethodHandles.ZERO_MHS , pos , java.lang.invoke.MethodHandles.makeZero ( btw.primitiveType ( ) ) ) ; } if ( ( zero.type ( ) . returnType ( ) ) == rtype ) return zero ; assert btw == ( sun.invoke.util.Wrapper.OBJECT ) ; return java.lang.invoke.MethodHandles.makeZero ( rtype ) ; }

Target:
public static java.lang.invoke.MethodHandle identity ( java.lang.Class < ? > type ) { if ( type == null ) { throw new java.lang.NullPointerException ( "type == null" ) ; } if ( type.isPrimitive ( ) ) { try { return java.lang.invoke.MethodHandles.Lookup.PUBLIC_LOOKUP.findStatic ( java.lang.invoke.MethodHandles.class , "identity" , java.lang.invoke.MethodType.methodType ( type , type ) ) ; } catch ( java.lang.NoSuchMethodException | java.lang.IllegalAccessException e ) { throw new java.lang.AssertionError ( e ) ; } } return new java.lang.invoke.Transformers.ReferenceIdentity ( type ) ; }
Source:
private void writeSuppressInfo ( ) throws java.io.IOException { mWriter.write ( "\n<a name=\"SuppressInfo\"></a>\n" ) ; mWriter.write ( "<div class=\"category\">" ) ; mWriter.write ( "Suppressing Warnings and Errors" ) ; mWriter.write ( "<div class=\"categorySeparator\"></div>\n" ) ; mWriter.write ( "</div>\n" ) ; appendEscapedText ( com.android.tools.lint.Main.getSuppressHelp ( ) ) ; mWriter.write ( '\n' ) ; }

Target:
private void writeSuppressInfo ( ) throws java.io.IOException { mWriter.write ( "\n<a name=\"SuppressInfo\"></a>\n" ) ; mWriter.write ( "<div class=\"category\">" ) ; mWriter.write ( "Suppressing Warnings and Errors" ) ; mWriter.write ( "<div class=\"categorySeparator\"></div>\n" ) ; mWriter.write ( "</div>\n" ) ; mWriter.write ( TextFormat.RAW.convertTo ( com.android.tools.lint.Main.getSuppressHelp ( ) , TextFormat.HTML ) ) ; mWriter.write ( '\n' ) ; }
Source:
public void testTimeZoneDataVersion ( ) { java.lang.String icu4cTzVersion = libcore.icu.ICU.getTZDataVersion ( ) ; java.lang.String zoneInfoTzVersion = libcore.util.ZoneInfoDB.getInstance ( ) . getVersion ( ) ; assertEquals ( icu4cTzVersion , zoneInfoTzVersion ) ; java.lang.String icu4jTzVersion = android.icu.util.TimeZone.getTZDataVersion ( ) ; assertEquals ( icu4jTzVersion , zoneInfoTzVersion ) ; }

Target:
public void testTimeZoneDataVersion ( ) { java.lang.String icu4cTzVersion = libcore.icu.ICU.getTZDataVersion ( ) ; java.lang.String zoneInfoTzVersion = libcore.util.ZoneInfoDB.getInstance ( ) . getVersion ( ) ; assertEquals ( icu4cTzVersion , zoneInfoTzVersion ) ; java.lang.String icu4jTzVersion = android.icu.util.TimeZone.getTZDataVersion ( ) ; assertEquals ( icu4jTzVersion , zoneInfoTzVersion ) ; java.lang.String tzLookupTzVersion = libcore.util.TimeZoneFinder.getInstance ( ) . getIanaVersion ( ) ; assertEquals ( icu4jTzVersion , tzLookupTzVersion ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; tempDir = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createDirectory ( "tempDir" ) ; testInstallDir = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createDirectory ( "testInstall" ) ; testSystemTzDataDir = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createDirectory ( "testSystemTzData" ) ; java.io.File testSystemTzDataFile = new java.io.File ( testSystemTzDataDir , "tzdata" ) ; byte [ ] systemTzDataBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createTzData ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.SYSTEM_RULES_VERSION ) ; libcore.tzdata.update2.TimeZoneDistroInstallerTest.createFile ( testSystemTzDataFile , systemTzDataBytes ) ; installer = new libcore.tzdata.update2.TimeZoneDistroInstaller ( "TimeZoneDistroInstallerTest" , testSystemTzDataFile , testInstallDir ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; tempDir = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createUniqueDirectory ( null , "tempDir" ) ; testInstallDir = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createSubDirectory ( tempDir , "testInstall" ) ; testSystemTzDataDir = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createSubDirectory ( tempDir , "testSystemTzData" ) ; java.io.File testSystemTzDataFile = new java.io.File ( testSystemTzDataDir , "tzdata" ) ; byte [ ] systemTzDataBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createTzData ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.SYSTEM_RULES_VERSION ) ; libcore.tzdata.update2.TimeZoneDistroInstallerTest.createFile ( testSystemTzDataFile , systemTzDataBytes ) ; installer = new libcore.tzdata.update2.TimeZoneDistroInstaller ( "TimeZoneDistroInstallerTest" , testSystemTzDataFile , testInstallDir ) ; }
Source:
public void testWeights ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/inefficient_weight.xml:10: Warning: Use a layout_width of 0dip instead of match_parent for better performance [InefficientWeight]\n" + ( ( ( ( ( ( " android:layout_width=\"match_parent\"\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/inefficient_weight.xml:24: Warning: Use a layout_height of 0dip instead of wrap_content for better performance [InefficientWeight]\n" ) + " android:layout_height=\"wrap_content\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 2 warnings\n" ) + "" ) ) , lintFiles ( "res/layout/inefficient_weight.xml" ) ) ; }

Target:
public void testWeights ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/inefficient_weight.xml:3: Error: Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has multiple children where at least one has layout_width=\"match_parent\" [Orientation]\n" + ( ( ( ( ( ( ( ( "<LinearLayout\n" + "^\n" ) + "res/layout/inefficient_weight.xml:10: Warning: Use a layout_width of 0dip instead of match_parent for better performance [InefficientWeight]\n" ) + " android:layout_width=\"match_parent\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/inefficient_weight.xml:24: Warning: Use a layout_height of 0dip instead of wrap_content for better performance [InefficientWeight]\n" ) + " android:layout_height=\"wrap_content\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 2 warnings\n" ) ) , lintFiles ( "res/layout/inefficient_weight.xml" ) ) ; }
Source:
public java.lang.Class < ? > getEnclosingClass ( ) { java.lang.Class < ? > declaringClass = getDeclaringClass ( ) ; if ( declaringClass != null ) { return declaringClass ; } java.lang.reflect.AccessibleObject member = libcore.reflect.AnnotationAccess.getEnclosingMethodOrConstructor ( this ) ; if ( member != null ) { return ( ( java.lang.reflect.Member ) ( member ) ) . getDeclaringClass ( ) ; } return libcore.reflect.AnnotationAccess.getEnclosingClass ( this ) ; }

Target:
public java.lang.reflect.Method getEnclosingMethod ( ) { if ( classNameImpliesTopLevel ( ) ) { return null ; } return getEnclosingMethodNative ( ) ; }
Source:
public void moveAb ( java.lang.String apkPath , java.lang.String instructionSet , java.lang.String outputPath ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.moveAb ( apkPath , instructionSet , outputPath ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void deleteOdex ( java.lang.String apkPath , java.lang.String instructionSet , java.lang.String outputPath ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.deleteOdex ( apkPath , instructionSet , outputPath ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void testMultiExpression ( ) { org.junit.Assert.assertTrue ( new org.jacoco.core.runtime.WildcardMatcher ( "Hello:World" ) . matches ( "World" ) ) ; org.junit.Assert.assertTrue ( new org.jacoco.core.runtime.WildcardMatcher ( "Hello:World" ) . matches ( "World" ) ) ; org.junit.Assert.assertTrue ( new org.jacoco.core.runtime.WildcardMatcher ( "*Test:*Foo" ) . matches ( "UnitTest" ) ) ; }

Target:
public void testMultiExpression ( ) { org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "Hello:World" ) . matches ( "World" ) ) ; org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "Hello:World" ) . matches ( "World" ) ) ; org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "*Test:*Foo" ) . matches ( "UnitTest" ) ) ; }
Source:
public java.lang.String getIndent ( org.w3c.dom.Node xmlNode ) { assert ( xmlNode.getNodeType ( ) ) == ( org.w3c.dom.Node.ELEMENT_NODE ) ; if ( xmlNode instanceof org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) { org.eclipse.wst.sse.core.internal.provisional.IndexedRegion region = ( ( org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) ( xmlNode ) ) ; org.eclipse.jface.text.IDocument document = getStructuredSourceViewer ( ) . getDocument ( ) ; int startOffset = region.getStartOffset ( ) ; return com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.getIndentAtOffset ( document , startOffset ) ; } return "" ; }

Target:
public java.lang.String getIndent ( org.w3c.dom.Node xmlNode ) { return com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.getIndent ( getStructuredDocument ( ) , xmlNode ) ; }
Source:
private boolean canReadPhoneState ( java.lang.String callingPackage , java.lang.String message ) { try { mApp.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , message ) ; return true ; } catch ( java.lang.SecurityException e ) { mApp.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PHONE_STATE , message ) ; } if ( ( mAppOps.noteOp ( AppOpsManager.OP_READ_PHONE_STATE , android.os.Binder.getCallingUid ( ) , callingPackage ) ) != ( android.app.AppOpsManager.MODE_ALLOWED ) ) { return false ; } return true ; }

Target:
public int getCarrierPrivilegeStatusForUid ( int subId , int uid ) { final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone == null ) { com.android.phone.PhoneInterfaceManager.loge ( "getCarrierPrivilegeStatus: Invalid subId" ) ; return android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS ; } com.android.internal.telephony.uicc.UiccProfile profile = com.android.internal.telephony.uicc.UiccController.getInstance ( ) . getUiccProfileForPhone ( phone.getPhoneId ( ) ) ; if ( profile == null ) { com.android.phone.PhoneInterfaceManager.loge ( "getCarrierPrivilegeStatus: No UICC" ) ; return android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED ; } return profile.getCarrierPrivilegeStatusForUid ( phone.getContext ( ) . getPackageManager ( ) , uid ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( "Provider{" + ( java.lang.Integer.toHexString ( java.lang.System.identityHashCode ( this ) ) ) ) + " " ) + ( info.name ) ) + "}" ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 128 ) ; sb.append ( "Provider{" ) ; sb.append ( java.lang.Integer.toHexString ( java.lang.System.identityHashCode ( this ) ) ) ; sb.append ( ' ' ) ; appendComponentShortName ( sb ) ; sb.append ( '}' ) ; return sb.toString ( ) ; }
Source:
public void checkAndCopyProviderExtras ( android.content.Intent src , android.content.Intent dst ) { if ( src == null ) { return ; } if ( hasGatewayProviderExtras ( src ) ) { dst.putExtra ( com.android.server.telecom.NewOutgoingCallIntentBroadcaster.EXTRA_GATEWAY_PROVIDER_PACKAGE , src.getStringExtra ( com.android.server.telecom.NewOutgoingCallIntentBroadcaster.EXTRA_GATEWAY_PROVIDER_PACKAGE ) ) ; dst.putExtra ( com.android.server.telecom.NewOutgoingCallIntentBroadcaster.EXTRA_GATEWAY_URI , src.getStringExtra ( com.android.server.telecom.NewOutgoingCallIntentBroadcaster.EXTRA_GATEWAY_URI ) ) ; com.android.server.telecom.Log.d ( this , "Found and copied gateway provider extras to broadcast intent." ) ; return ; } com.android.server.telecom.Log.d ( this , "No provider extras found in call intent." ) ; }

Target:
public void checkAndCopyProviderExtras ( android.content.Intent src , android.content.Intent dst ) { if ( src == null ) { return ; } if ( hasGatewayProviderExtras ( src ) ) { dst.putExtra ( com.android.server.telecom.NewOutgoingCallIntentBroadcaster.EXTRA_GATEWAY_PROVIDER_PACKAGE , src.getStringExtra ( com.android.server.telecom.NewOutgoingCallIntentBroadcaster.EXTRA_GATEWAY_PROVIDER_PACKAGE ) ) ; dst.putExtra ( com.android.server.telecom.NewOutgoingCallIntentBroadcaster.EXTRA_GATEWAY_URI , src.getStringExtra ( com.android.server.telecom.NewOutgoingCallIntentBroadcaster.EXTRA_GATEWAY_URI ) ) ; android.telecom.Log.d ( this , "Found and copied gateway provider extras to broadcast intent." ) ; return ; } android.telecom.Log.d ( this , "No provider extras found in call intent." ) ; }
Source:
private void releaseWakeLockLocked ( ) { try { releaseWakeLockXLocked ( ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( com.android.server.LocationManagerService.TAG , "exception in releaseWakeLock()" , e ) ; } }

Target:
private void decrementPendingBroadcasts ( ) { synchronized ( mWakeLock ) { if ( ( -- ( mPendingBroadcasts ) ) == 0 ) { try { if ( mWakeLock.isHeld ( ) ) { mWakeLock.release ( ) ; log ( "Released wakelock" ) ; } else { log ( "Can't release wakelock again!" ) ; } } catch ( java.lang.Exception e ) { android.util.Log.e ( com.android.server.LocationManagerService.TAG , "exception in releaseWakeLock()" , e ) ; } } } }
Source:
static java.lang.String getSimpleName ( @ javax.annotation.Nonnull java.util.zip.ZipEntry entry ) { java.lang.String name = entry.getName ( ) ; assert ! ( name.endsWith ( ( "" + ( com.android.sched.vfs.ZipUtils.IN_ZIP_SEPARATOR ) ) ) ) ; int index = name.lastIndexOf ( com.android.sched.vfs.ZipUtils.IN_ZIP_SEPARATOR ) ; if ( index < 0 ) { return name ; } else { return name.substring ( ( index + 1 ) ) ; } }

Target:
static java.lang.String getFileSimpleName ( @ javax.annotation.Nonnull java.util.zip.ZipEntry entry ) { java.lang.String name = entry.getName ( ) ; assert ! ( name.endsWith ( com.android.sched.vfs.ZipUtils.ZIP_SEPARATOR_STRING ) ) ; int index = name.lastIndexOf ( com.android.sched.vfs.ZipUtils.ZIP_SEPARATOR ) ; if ( index < 0 ) { return name ; } else { return name.substring ( ( index + 1 ) ) ; } }
Source:
public void validateUserCredentialWithoutCaCert ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = new android.net.wifi.hotspot2.pps.Credential ( ) ; cred.realm = "realm" ; cred.userCredential = new android.net.wifi.hotspot2.pps.Credential.UserCredential ( ) ; cred.userCredential.username = "username" ; cred.userCredential.password = "password" ; cred.userCredential.eapType = android.net.wifi.EAPConstants.EAP_TTLS ; cred.userCredential.nonEapInnerMethod = "MS-CHAP" ; org.junit.Assert.assertFalse ( cred.validate ( ) ) ; }

Target:
public void validateUserCredentialWithoutCaCert ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = android.net.wifi.hotspot2.pps.CredentialTest.createCredentialWithUserCredential ( ) ; cred.setCaCertificate ( null ) ; org.junit.Assert.assertFalse ( cred.validate ( ) ) ; }
Source:
public boolean onEditorAction ( android.widget.TextView v , int actionId , android.view.KeyEvent event ) { if ( event != null ) { if ( ! ( event.isShiftPressed ( ) ) ) { if ( isPreparedForSending ( ) ) { confirmSendMessageIfNeeded ( ) ; } return true ; } return false ; } if ( isPreparedForSending ( ) ) { confirmSendMessageIfNeeded ( ) ; } return true ; }

Target:
public boolean onEditorAction ( android.widget.TextView v , int actionId , android.view.KeyEvent event ) { if ( event != null ) { if ( ( ! ( event.isShiftPressed ( ) ) ) && ( ( event.getAction ( ) ) == ( android.view.KeyEvent.ACTION_DOWN ) ) ) { if ( isPreparedForSending ( ) ) { confirmSendMessageIfNeeded ( ) ; } return true ; } return false ; } if ( isPreparedForSending ( ) ) { confirmSendMessageIfNeeded ( ) ; } return true ; }
Source:
public static void initDebugBridge ( java.lang.String adbLocation ) { if ( ( com.android.hierarchyviewerlib.device.DeviceBridge.sBridge ) == null ) { com.android.ddmlib.AndroidDebugBridge.init ( true ) ; } if ( ( ( com.android.hierarchyviewerlib.device.DeviceBridge.sBridge ) == null ) || ( ! ( com.android.hierarchyviewerlib.device.DeviceBridge.sBridge.isConnected ( ) ) ) ) { com.android.hierarchyviewerlib.device.DeviceBridge.sBridge = com.android.ddmlib.AndroidDebugBridge.createBridge ( adbLocation , true ) ; } }

Target:
public static void initDebugBridge ( java.lang.String adbLocation ) { if ( ( com.android.hierarchyviewerlib.device.DeviceBridge.sBridge ) == null ) { com.android.ddmlib.AndroidDebugBridge.init ( com.android.hierarchyviewerlib.HierarchyViewerDirector.isUsingDdmProtocol ( ) ) ; } if ( ( ( com.android.hierarchyviewerlib.device.DeviceBridge.sBridge ) == null ) || ( ! ( com.android.hierarchyviewerlib.device.DeviceBridge.sBridge.isConnected ( ) ) ) ) { com.android.hierarchyviewerlib.device.DeviceBridge.sBridge = com.android.ddmlib.AndroidDebugBridge.createBridge ( adbLocation , true ) ; } }
Source:
private boolean equals ( java.lang.String pat1 , java.lang.String pat2 ) { if ( ( pat1 == null ) || ( pat2 == null ) ) { return ( pat1 == null ) && ( pat2 == null ) ; } if ( pat1.equals ( pat2 ) ) { return true ; } return unquote ( pat1 ) . equals ( unquote ( pat2 ) ) ; }

Target:
public synchronized boolean equals ( java.lang.Object obj ) { if ( obj == null ) return false ; if ( obj == ( this ) ) return true ; if ( ! ( obj instanceof com.ibm.icu.text.DecimalFormat ) ) return false ; com.ibm.icu.text.DecimalFormat other = ( ( com.ibm.icu.text.DecimalFormat ) ( obj ) ) ; return ( properties.equals ( other.properties ) ) && ( symbols.equals ( other.symbols ) ) ; }
Source:
public void disconnect ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "disconnect" ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_ADMIN_PERM ) ; if ( service == null ) { return ; } service.disconnect ( ) ; }

Target:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getConnectionState: " + device ) ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( ) ; if ( service == null ) { return android.bluetooth.BluetoothAdapter.STATE_DISCONNECTED ; } return service.getConnectionState ( device ) ; }
Source:
public static void computeRemainder ( android.renderscript.cts.TestRemainder.ArgumentsFloatFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; double num = ( ( double ) ( args.inX ) ) ; double den = ( ( double ) ( args.inY ) ) ; args.out = ( ( float ) ( num - ( ( java.lang.StrictMath.round ( ( num / den ) ) ) * den ) ) ) ; }

Target:
public static void computeAsinh ( android.renderscript.cts.TestAsinh.ArgumentsFloatFloat args ) { args.ulf = 5 ; args.ulfRelaxed = 5 ; double x = ( ( double ) ( args.in ) ) ; args.out = ( ( float ) ( java.lang.StrictMath.log ( ( x + ( java.lang.StrictMath.sqrt ( ( ( x * x ) + 1.0 ) ) ) ) ) ) ) ; }
Source:
protected void collect ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType type ) { if ( type instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) { com.android.jack.ir.ast.JDefinedClassOrInterface jDefinedClassOrInterface = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( type ) ) ; synchronized ( jDefinedClassOrInterface ) { if ( ! ( jDefinedClassOrInterface.containsMarker ( com.android.jack.backend.dex.MainDexMarker.class ) ) ) { jDefinedClassOrInterface.addMarker ( MainDexMarker.INSTANCE ) ; } } } }

Target:
protected void collect ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType type ) { if ( type instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) { com.android.jack.ir.ast.JDefinedClassOrInterface jDefinedClassOrInterface = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( type ) ) ; jDefinedClassOrInterface.addMarkerIfAbsent ( MainDexMarker.INSTANCE ) ; } }
Source:
protected boolean processMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( com.android.internal.telephony.gsm.stk.RilMessageDecoder.CMD_START ) ) { if ( decodeMessageParams ( ( ( com.android.internal.telephony.gsm.stk.RilMessage ) ( msg.obj ) ) ) ) { transitionTo ( mStateCmdParamsReady ) ; } } else { com.android.internal.telephony.gsm.stk.StkLog.d ( this , ( ( ( "StateStart unexpected expecting START=" + ( com.android.internal.telephony.gsm.stk.RilMessageDecoder.CMD_START ) ) + " got " ) + ( msg.what ) ) ) ; } return true ; }

Target:
protected boolean processMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( com.android.internal.telephony.cat.RilMessageDecoder.CMD_START ) ) { if ( decodeMessageParams ( ( ( com.android.internal.telephony.cat.RilMessage ) ( msg.obj ) ) ) ) { transitionTo ( mStateCmdParamsReady ) ; } } else { com.android.internal.telephony.cat.CatLog.d ( this , ( ( ( "StateStart unexpected expecting START=" + ( com.android.internal.telephony.cat.RilMessageDecoder.CMD_START ) ) + " got " ) + ( msg.what ) ) ) ; } return true ; }
Source:
public boolean addGpsStatusListener ( android.location.IGpsStatusListener listener ) { if ( ( mGpsLocationProvider ) == null ) { return false ; } if ( ( mContext.checkCallingPermission ( com.android.server.LocationManagerService.ACCESS_FINE_LOCATION ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( "Requires ACCESS_FINE_LOCATION permission" ) ; } try { mGpsLocationProvider.addGpsStatusListener ( listener ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.server.LocationManagerService.TAG , "RemoteException in addGpsStatusListener" ) ; return false ; } return true ; }

Target:
public boolean addGpsStatusListener ( android.location.IGpsStatusListener listener ) { if ( ( mGpsStatusProvider ) == null ) { return false ; } if ( ( mContext.checkCallingOrSelfPermission ( com.android.server.LocationManagerService.ACCESS_FINE_LOCATION ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( "Requires ACCESS_FINE_LOCATION permission" ) ; } try { mGpsStatusProvider.addGpsStatusListener ( listener ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.LocationManagerService.TAG , "mGpsStatusProvider.addGpsStatusListener failed" , e ) ; return false ; } return true ; }
Source:
private void onOtaspCallStateChanged ( ) { com.android.phone.otasp.OtaspActivationService.logd ( ( "onOtaspCallStateChanged: " + ( mPhone.getState ( ) ) ) ) ; if ( mPhone.getState ( ) . equals ( PhoneConstants.State.IDLE ) ) { if ( mIsOtaspCallCommitted ) { com.android.phone.otasp.OtaspActivationService.logd ( "Otasp activation succeed" ) ; } else { com.android.phone.otasp.OtaspActivationService.logd ( "Otasp activation failed" ) ; } onComplete ( ) ; } }

Target:
private void onOtaspCallStateChanged ( ) { com.android.phone.otasp.OtaspActivationService.logd ( ( "onOtaspCallStateChanged: " + ( mPhone.getState ( ) ) ) ) ; if ( mPhone.getState ( ) . equals ( PhoneConstants.State.IDLE ) ) { if ( mIsOtaspCallCommitted ) { com.android.phone.otasp.OtaspActivationService.logd ( "Otasp activation succeed" ) ; com.android.phone.otasp.OtaspActivationService.updateActivationState ( this , true ) ; } else { com.android.phone.otasp.OtaspActivationService.logd ( "Otasp activation failed" ) ; com.android.phone.otasp.OtaspActivationService.updateActivationState ( this , false ) ; } onComplete ( ) ; } }
Source:
public final long long_literal ( ) throws org.jf.smali.RecognitionException { long value = 0 ; org.antlr.runtime.tree.CommonTree LONG_LITERAL192 = null ; try { { LONG_LITERAL192 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.LONG_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_LONG_LITERAL_in_long_literal3262 ) ) ) ; value = org.jf.smali.LiteralTools.parseLong ( ( LONG_LITERAL192 != null ? LONG_LITERAL192.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final long long_literal ( ) throws org.jf.smali.RecognitionException { long value = 0 ; org.antlr.runtime.tree.CommonTree LONG_LITERAL192 = null ; try { { LONG_LITERAL192 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.LONG_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_LONG_LITERAL_in_long_literal3264 ) ) ) ; value = org.jf.smali.LiteralTools.parseLong ( ( LONG_LITERAL192 != null ? LONG_LITERAL192.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
public void run ( ) { mHandler.removeCallbacks ( this ) ; final boolean succeded ; synchronized ( mInstallLock ) { succeded = deleteApplicationCacheFilesLI ( packageName ) ; } if ( observer != null ) { try { observer.onRemoveCompleted ( packageName , succeded ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( com.android.server.pm.PackageManagerService.TAG , "Observer no longer exists." ) ; } } }

Target:
public void run ( ) { mHandler.removeCallbacks ( this ) ; final boolean succeded ; synchronized ( mInstallLock ) { succeded = deleteApplicationCacheFilesLI ( packageName , userId ) ; } clearExternalStorageDataSync ( packageName , false ) ; if ( observer != null ) { try { observer.onRemoveCompleted ( packageName , succeded ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( com.android.server.pm.PackageManagerService.TAG , "Observer no longer exists." ) ; } } }
Source:
java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > nextEntry ( ) { if ( ( nextEntry ) == null ) throw new java.util.NoSuchElementException ( ) ; lastReturned = nextEntry ; advance ( ) ; return lastReturned ; }

Target:
final java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > nextEntry ( ) { java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > e = nextEntry ; if ( e == null ) throw new java.util.NoSuchElementException ( ) ; lastReturned = e ; if ( ( nextEntry = e.next ) == null ) advance ( ) ; return e ; }
Source:
private static java.lang.String getTypeKind ( @ javax.annotation.Nonnull java.lang.Class < ? extends com.android.jack.ir.ast.JType > typeClass ) { if ( com.android.jack.ir.ast.JEnum.class . isAssignableFrom ( typeClass ) ) { return "enum" ; } else if ( com.android.jack.ir.ast.JAnnotation.class . isAssignableFrom ( typeClass ) ) { return "annotation" ; } else if ( com.android.jack.ir.ast.JClass.class . isAssignableFrom ( typeClass ) ) { return "class" ; } else if ( com.android.jack.ir.ast.JInterface.class . isAssignableFrom ( typeClass ) ) { return "interface" ; } else { return "<undefined>" ; } }

Target:
private static java.lang.String getTypeKind ( @ javax.annotation.Nonnull java.lang.Class < ? extends com.android.jack.ir.ast.JType > typeClass ) { if ( com.android.jack.ir.ast.JEnum.class . isAssignableFrom ( typeClass ) ) { return "enum" ; } else if ( com.android.jack.ir.ast.JAnnotationType.class . isAssignableFrom ( typeClass ) ) { return "annotation" ; } else if ( com.android.jack.ir.ast.JClass.class . isAssignableFrom ( typeClass ) ) { return "class" ; } else if ( com.android.jack.ir.ast.JInterface.class . isAssignableFrom ( typeClass ) ) { return "interface" ; } else { return "<undefined>" ; } }
Source:
public com.android.sched.vfs.OutputVFile createFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull final com.android.sched.vfs.VPath typePath ) throws com.android.sched.util.file.CannotCreateFileException { putProperty ( fileType.buildPropertyName ( null ) , java.lang.String.valueOf ( true ) ) ; addFileType ( fileType ) ; return vfs.getRootDir ( ) . createOutputVFile ( fileType.buildFileVPath ( typePath ) ) ; }

Target:
public com.android.sched.vfs.OutputVFile createFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull final com.android.sched.vfs.VPath typePath ) throws com.android.sched.util.file.CannotCreateFileException { putProperty ( fileType.buildPropertyName ( null ) , java.lang.String.valueOf ( true ) ) ; addFileType ( fileType ) ; return vfs.getRootInputOutputVDir ( ) . createOutputVFile ( fileType.buildFileVPath ( typePath ) ) ; }