auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testCreate ( ) throws java.lang.Exception { java.util.Properties props = createExpectedProps ( ) ; java.lang.Package p = new com.android.sdklib.internal.repository.packages.PackageTest.MockPackage ( null , props , ( - 1 ) , null , null , null , com.android.sdklib.internal.repository.archives.Archive.Os.ANY , com.android.sdklib.internal.repository.archives.Archive.Arch.ANY , com.android.sdklib.internal.repository.packages.PackageTest.LOCAL_ARCHIVE_PATH ) ; testCreatedPackage ( p ) ; }

Target:
public void testCreate ( ) throws java.lang.Exception { java.util.Properties props = createExpectedProps ( ) ; java.lang.Package p = new com.android.sdklib.internal.repository.packages.PackageTest.MockPackage ( null , props , ( - 1 ) , null , null , null , com.android.sdklib.internal.repository.packages.PackageTest.LOCAL_ARCHIVE_PATH ) ; testCreatedPackage ( p ) ; }
Source:
private com.android.server.wifi.hotspot2.DomainMatcher.Label getSubLabel ( java.lang.String labelString ) { return mSubDomains.get ( labelString ) ; }

Target:
public com.android.server.wifi.hotspot2.DomainMatcher.Label getSubLabel ( java.lang.String labelString ) { return mSubDomains.get ( labelString ) ; }
Source:
public native char getChar ( java.lang.Object object ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;

Target:
public native char getChar ( java.lang.Object obj ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;
Source:
synchronized boolean isClosed ( ) { return closed ; }

Target:
public synchronized boolean isClosed ( ) { return closed ; }
Source:
public void cleanup ( ) { mWaiting.clear ( ) ; mPlayersChanged = false ; if ( ( mCurrentBrowser ) != null ) mCurrentBrowser.disconnect ( ) ; }

Target:
public void cleanup ( ) { if ( ( mWaiting ) != null ) mWaiting.clear ( ) ; mPlayersChanged = false ; if ( ( mCurrentBrowser ) != null ) mCurrentBrowser.disconnect ( ) ; }
Source:
public void getUpdatePackageFile_works ( ) throws java.lang.Exception { com.example.android.systemupdatersample.UpdateConfig c = com.example.android.systemupdatersample.UpdateConfig.fromJson ( com.example.android.systemupdatersample.UpdateConfigTest.JSON_NON_STREAMING ) ; org.junit.Assert.assertEquals ( "correct path" , "/builds/a.zip" , c.getUpdatePackageFile ( ) . getAbsolutePath ( ) ) ; }

Target:
public void getUpdatePackageFile_works ( ) throws java.lang.Exception { com.example.android.systemupdatersample.UpdateConfig c = com.example.android.systemupdatersample.UpdateConfig.fromJson ( com.example.android.systemupdatersample.UpdateConfigTest.JSON_NON_STREAMING ) ; org.junit.Assert.assertEquals ( "/builds/a.zip" , c.getUpdatePackageFile ( ) . getAbsolutePath ( ) ) ; }
Source:
public void performFirstLoad ( ) { loadPackages ( true ) ; }

Target:
public void performFirstLoad ( ) { loadPackages ( true ) ; loadPackages ( false ) ; }
Source:
private static void displayAddonManifestWarning ( com.android.sdklib.ISdkLog log , java.lang.String addonName , java.lang.String valueName ) { log.warning ( null , "Ignoring add-on '%1$s': '%2$s' is missing from %3$s." , addonName , valueName , SdkConstants.FN_MANIFEST_INI ) ; }

Target:
private static void displayAddonManifestWarning ( com.android.sdklib.ISdkLog log , java.lang.String addonName , java.lang.String valueName ) { log.warning ( "Ignoring add-on '%1$s': '%2$s' is missing from %3$s." , addonName , valueName , SdkConstants.FN_MANIFEST_INI ) ; }
Source:
native void rsnAllocationElementData1D ( int con , int id , int xoff , int mip , int compIdx , byte [ ] d , int sizeBytes ) ;

Target:
native void rsnAllocationElementData1D ( long con , long id , int xoff , int mip , int compIdx , byte [ ] d , int sizeBytes ) ;
Source:
public void testCancelSoon ( ) throws java.lang.Exception { doTestDragAndDrop ( android.wm.cts.CrossAppDragAndDropTests.CANCEL_SOON , android.wm.cts.CrossAppDragAndDropTests.REQUEST_NONE , null ) ; assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_DRAG_STARTED , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_EXTRAS , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; }

Target:
public void testCancelSoon ( ) throws java.lang.Exception { if ( ! ( doTestDragAndDrop ( android.wm.cts.CrossAppDragAndDropTests.CANCEL_SOON , android.wm.cts.CrossAppDragAndDropTests.REQUEST_NONE , null ) ) ) { return ; } assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_DRAG_STARTED , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_EXTRAS , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassLiteral x ) { com.android.jack.ir.ast.JClassLiteral classLiteral = new com.android.jack.ir.ast.JClassLiteral ( x.getSourceInfo ( ) , x.getRefType ( ) , ( ( com.android.jack.ir.ast.JClass ) ( x.getType ( ) ) ) ) ; expression = classLiteral ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassLiteral x ) { com.android.jack.ir.ast.JClassLiteral classLiteral = new com.android.jack.ir.ast.JClassLiteral ( x.getSourceInfo ( ) , x.getRefType ( ) ) ; expression = classLiteral ; return false ; }
Source:
public boolean processFileBytes ( java.lang.String name , long lastModified , byte [ ] bytes ) { return com.android.dx.command.dexer.Main.processFileBytes ( name , lastModified , bytes ) ; }

Target:
public boolean processFileBytes ( java.lang.String name , long lastModified , byte [ ] bytes ) { return this . processFileBytes ( name , lastModified , bytes ) ; }
Source:
public void testNewInstanceString_NoArgConstructor ( ) { runTestNewInstanceString ( "()V" , "" , new org.apache.harmony.jpda.tests.jdwp.ClassType.NoConstructorArgumentProvider ( ) ) ; }

Target:
public void testNewInstanceString_NoArgConstructor ( ) { runTestNewInstanceString ( "()V" , new org.apache.harmony.jpda.tests.jdwp.ClassType.NoConstructorArgumentProvider ( ) ) ; }
Source:
public int updateCOLP ( boolean enable ) throws android.os.RemoteException { return - 1 ; }

Target:
public int updateCOLP ( boolean enable ) throws android.os.RemoteException { return this . updateCOLP ( enable ) ; }
Source:
public void registerPage ( java.lang.String title , java.lang.Class < ? extends org.eclipse.swt.widgets.Composite > pageClass ) { mWindow.registerExtraPage ( title , pageClass ) ; }

Target:
public void registerPage ( java.lang.String title , java.lang.Class < ? extends org.eclipse.swt.widgets.Composite > pageClass ) { mWindow.registerPage ( title , pageClass ) ; }
Source:
public java.util.Iterator < com.android.jack.ir.ast.JDefinedClassOrInterface > sortAndNumber ( java.util.Collection < com.android.jack.ir.ast.JDefinedClassOrInterface > types ) { assert ! ( deterMultidex ) ; return types.iterator ( ) ; }

Target:
public java.util.Iterator < com.android.jack.ir.ast.JDefinedClassOrInterface > sortAndNumber ( java.util.Collection < com.android.jack.ir.ast.JDefinedClassOrInterface > types ) { return types.iterator ( ) ; }
Source:
private com.android.jack.ir.ast.JAnnotationType getDefaultAnnotationType ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { if ( ( defaultAnnotationType ) == null ) { defaultAnnotationType = com.android.jack.Jack.getSession ( ) . getPhantomLookup ( ) . getAnnotationType ( DexAnnotations.ANNOTATION_ANNOTATION_DEFAULT ) ; } assert ( defaultAnnotationType ) != null ; return defaultAnnotationType ; }

Target:
private com.android.jack.ir.ast.JAnnotationType getDefaultAnnotationType ( ) { if ( ( defaultAnnotationType ) == null ) { defaultAnnotationType = com.android.jack.Jack.getSession ( ) . getPhantomLookup ( ) . getAnnotationType ( DexAnnotations.ANNOTATION_ANNOTATION_DEFAULT ) ; } assert ( defaultAnnotationType ) != null ; return defaultAnnotationType ; }
Source:
android.os.ParcelUuid [ ] getUuids ( ) { synchronized ( mObject ) { return mUuids ; } }

Target:
android.os.ParcelUuid [ ] getUuids ( ) { return mUuids ; }
Source:
public void drawableHotspotChanged ( float x , float y ) { if ( ( mBackground ) != null ) { mBackground.setHotspot ( x , y ) ; } dispatchDrawableHotspotChanged ( x , y ) ; }

Target:
public void drawableHotspotChanged ( float x , float y ) { if ( ( mBackground ) != null ) { mBackground.setHotspot ( x , y ) ; } }
Source:
static native java.lang.reflect.Field getDeclaredField ( java.lang.Class < ? > clazz , java.lang.String name ) ;

Target:
static native java.lang.reflect.Field getDeclaredField ( java.lang.Class < ? > c , java.lang.String name ) ;
Source:
public static boolean isInManagedCall ( android.content.Context context ) { return com.android.dialer.telecom.TelecomUtil.instance.isInCall ( context ) ; }

Target:
public static boolean isInCall ( android.content.Context context ) { return com.android.dialer.telecom.TelecomUtil.instance.isInCall ( context ) ; }
Source:
public abstract com.android.tools.lint.client.api.JavaParser.ResolvedNode resolve ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.Node node ) ;

Target:
public com.android.tools.lint.client.api.JavaParser.ResolvedNode resolve ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.Node node ) { return null ; }
Source:
public abstract void libToExe ( @ javax.annotation.Nonnull java.io.File in , @ javax.annotation.Nonnull java.io.File out , boolean zipFile ) throws java.lang.Exception ;

Target:
public void libToExe ( @ javax.annotation.Nonnull java.io.File in , @ javax.annotation.Nonnull java.io.File out , boolean zipFile ) throws java.lang.Exception { libToExe ( new java.io.File [ ] { in } , out , zipFile ) ; }
Source:
protected com.android.jack.dx.dex.file.DexFile createDexFile ( ) { com.android.jack.dx.dex.DexOptions options = new com.android.jack.dx.dex.DexOptions ( ) ; options.forceJumbo = forceJumbo ; options.targetApiLevel = apiLevel.getReleasedLevel ( ) ; return new com.android.jack.dx.dex.file.DexFile ( options ) ; }

Target:
protected com.android.jack.dx.dex.file.DexFile createDexFile ( ) { com.android.jack.dx.dex.DexOptions options = new com.android.jack.dx.dex.DexOptions ( apiLevel , forceJumbo ) ; return new com.android.jack.dx.dex.file.DexFile ( options ) ; }
Source:
public static java.lang.String getDefaultIpAddresses ( android.content.Context context ) { android.net.ConnectivityManager cm = ( ( android.net.ConnectivityManager ) ( context.getSystemService ( Context.CONNECTIVITY_SERVICE ) ) ) ; android.net.LinkProperties prop = cm.getActiveLinkProperties ( ) ; return com.android.settings.Utils.formatIpAddresses ( prop ) ; }

Target:
public static java.lang.String getDefaultIpAddresses ( android.net.ConnectivityManager cm ) { android.net.LinkProperties prop = cm.getActiveLinkProperties ( ) ; return com.android.settings.Utils.formatIpAddresses ( prop ) ; }
Source:
public void testDecode_NullByteBuffer ( ) { tests.api.java.nio.charset.CharsetTest.MockCharset c = new tests.api.java.nio.charset.CharsetTest.MockCharset ( "mock" , null ) ; try { c.decode ( null ) ; fail ( "Should throw NullPointerException!" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void testDecode_NullByteBuffer ( ) { tests.api.java.nio.charset.CharsetTest.MockCharset c = new tests.api.java.nio.charset.CharsetTest.MockCharset ( "mock" , null ) ; try { c.decode ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public static short $noinline$intAnd0x17fffToShort ( int value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( short ) ( value & 98303 ) ) ; }

Target:
public static short $noinline$intAnd0x17fffToShort ( int value ) { return ( ( short ) ( value & 98303 ) ) ; }
Source:
public com.android.ims.ImsCallProfile createCallProfile ( int sessionId , int callServiceType , int callType ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . createCallProfile ( mSlotId , mSupportedFeature , sessionId , callServiceType , callType ) ; } }

Target:
public com.android.ims.ImsCallProfile createCallProfile ( int sessionId , int callServiceType , int callType ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . createCallProfile ( sessionId , callServiceType , callType ) ; } }
Source:
public abstract void handle ( com.android.ahat.Doc doc , com.android.ahat.Query query ) throws java.io.IOException ;

Target:
void handle ( com.android.ahat.Doc doc , com.android.ahat.Query query ) throws java.io.IOException ;
Source:
public com.android.tools.lint.TypeDescriptor getType ( ) { com.android.tools.lint.TypeDescriptor typeDescriptor = com.android.tools.lint.EcjParser.getTypeDescriptor ( mBinding.type ) ; assert typeDescriptor != null ; return typeDescriptor ; }

Target:
public com.android.tools.lint.TypeDescriptor getType ( ) { com.android.tools.lint.TypeDescriptor typeDescriptor = getTypeDescriptor ( mBinding.type ) ; assert typeDescriptor != null ; return typeDescriptor ; }
Source:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; }

Target:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 2 , notificationWithNumbers ( 2 ) ) ; }
Source:
public java.util.List < java.lang.String > getApplicableCallNames ( ) { return java.util.Arrays.asList ( com.android.tools.lint.checks.CleanupDetector.RECYCLE , com.android.tools.lint.checks.CleanupDetector.OBTAIN_STYLED_ATTRIBUTES , com.android.tools.lint.checks.CleanupDetector.OBTAIN , com.android.tools.lint.checks.CleanupDetector.OBTAIN_ATTRIBUTES , com.android.tools.lint.checks.CleanupDetector.OBTAIN_TYPED_ARRAY , com.android.tools.lint.checks.CleanupDetector.OBTAIN_MESSAGE , com.android.tools.lint.checks.CleanupDetector.OBTAIN_NO_HISTORY , com.android.tools.lint.checks.CleanupDetector.BEGIN_TRANSACTION , com.android.tools.lint.checks.CleanupDetector.COMMIT , com.android.tools.lint.checks.CleanupDetector.COMMIT_ALLOWING_LOSS ) ; }

Target:
public java.util.List < java.lang.String > getApplicableCallNames ( ) { return java.util.Arrays.asList ( com.android.tools.lint.checks.CleanupDetector.RECYCLE , com.android.tools.lint.checks.CleanupDetector.OBTAIN_STYLED_ATTRIBUTES , com.android.tools.lint.checks.CleanupDetector.OBTAIN , com.android.tools.lint.checks.CleanupDetector.OBTAIN_ATTRIBUTES , com.android.tools.lint.checks.CleanupDetector.OBTAIN_TYPED_ARRAY , com.android.tools.lint.checks.CleanupDetector.OBTAIN_NO_HISTORY , com.android.tools.lint.checks.CleanupDetector.BEGIN_TRANSACTION , com.android.tools.lint.checks.CleanupDetector.COMMIT , com.android.tools.lint.checks.CleanupDetector.COMMIT_ALLOWING_LOSS ) ; }
Source:
protected void runImpl ( android.annotation.cts.Profile profile ) throws com.android.cts.DeviceDisconnectedException { mDevice.runTest ( this , profile ) ; }

Target:
protected void runImpl ( ) throws com.android.cts.DeviceDisconnectedException { mDevice.runTest ( this ) ; }
Source:
public static void markAllNewVoicemailsAsRead ( @ android.support.annotation.NonNull final android.content.Context context ) { com.android.dialer.common.concurrent.ThreadUtil.postOnUiThread ( ( ) -> { new com.android.dialer.app.calllog.VoicemailQueryHandler ( context.getContentResolver ( ) ) . markNewVoicemailsAsOld ( null ) ; } ) ; }

Target:
public static void markAllNewVoicemailsAsRead ( @ android.support.annotation.NonNull final android.content.Context context ) { com.android.dialer.common.concurrent.ThreadUtil.postOnUiThread ( ( ) -> { new com.android.dialer.app.calllog.VoicemailQueryHandler ( context.getContentResolver ( ) ) . markNewVoicemailsAsOld ( context , null ) ; } ) ; }
Source:
public static int $noinline$intConditionEqualZero ( int i ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( i > 42 ) != ( Main.$inline$false ( ) ) ? 13 : 54 ; }

Target:
public static int $noinline$intConditionEqualZero ( int i ) { return ( i > 42 ) != ( Main.$inline$false ( ) ) ? 13 : 54 ; }
Source:
native void rsnScriptSetVarObj ( int con , int id , int slot , int val ) ;

Target:
native void rsnScriptSetVarObj ( long con , long id , int slot , long val ) ;
Source:
boolean isPartialView ( ) { return ( ( offset ) != 0 ) || ( ( size ) != ( array.length ) ) ; }

Target:
boolean isPartialView ( ) { return ( size ) != ( array.length ) ; }
Source:
private static boolean isCdmaVoice ( ) { int activePhone = android.telephony.TelephonyManager.getDefault ( ) . getCurrentPhoneType ( ) ; return ( android.telephony.TelephonyManager.PHONE_TYPE_CDMA ) == activePhone ; }

Target:
private static boolean isCdmaVoice ( int subId ) { int activePhone = android.telephony.TelephonyManager.getDefault ( ) . getCurrentPhoneType ( subId ) ; return ( android.telephony.TelephonyManager.PHONE_TYPE_CDMA ) == activePhone ; }
Source:
synchronized void nAllocationData1D ( int id , int off , int mip , int count , short [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData1D ( mContext , id , off , mip , count , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData1D ( long id , int off , int mip , int count , long [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData1D ( mContext , id , off , mip , count , d , sizeBytes ) ; }
Source:
public static java.io.File getAapt ( ) { return com.android.build.gradle.integration.common.utils.SdkHelper.getBuildTool ( com.android.sdklib.repository.FullRevision.parseRevision ( "21" ) , BuildToolInfo.PathId.AAPT ) ; }

Target:
public static java.io.File getAapt ( ) { return com.android.build.gradle.integration.common.utils.SdkHelper.getAapt ( com.android.sdklib.repository.FullRevision.parseRevision ( "21" ) ) ; }
Source:
private void modifyClass ( org.objectweb.asm.tree.ClassNode classNode ) { classNode.access &= ~ ( org.objectweb.asm.Opcodes.ACC_FINAL ) ; java.util.List < org.objectweb.asm.tree.MethodNode > methodNodes = classNode.methods ; for ( org.objectweb.asm.tree.MethodNode methodNode : methodNodes ) { methodNode.access &= ~ ( org.objectweb.asm.Opcodes.ACC_FINAL ) ; fixMethodBody ( methodNode ) ; } }

Target:
private void modifyClass ( org.objectweb.asm.tree.ClassNode classNode ) { classNode.access &= ~ ( org.objectweb.asm.Opcodes.ACC_FINAL ) ; java.util.List < org.objectweb.asm.tree.MethodNode > methodNodes = classNode.methods ; for ( org.objectweb.asm.tree.MethodNode methodNode : methodNodes ) { methodNode.access &= ~ ( org.objectweb.asm.Opcodes.ACC_FINAL ) ; fixMethodBody ( methodNode , classNode ) ; } }
Source:
private void setNotification ( boolean enable ) { android.bluetooth.BluetoothGattCharacteristic characteristic = getCharacteristic ( com.android.cts.verifier.bluetooth.BleClientService.UPDATE_CHARACTERISTIC_UUID ) ; if ( characteristic != null ) mBluetoothGatt.setCharacteristicNotification ( characteristic , enable ) ; }

Target:
private void setNotification ( boolean enable ) { android.bluetooth.BluetoothGattCharacteristic characteristic = getCharacteristic ( com.android.cts.verifier.bluetooth.BleClientService.UPDATE_CHARACTERISTIC_UUID ) ; if ( characteristic != null ) { setNotification ( characteristic , enable ) ; } }
Source:
void addRegistrationListener ( int sessionId , com.android.ims.internal.IImsRegistrationListener listener ) throws android.os.RemoteException ;

Target:
void addRegistrationListener ( com.android.ims.internal.IImsRegistrationListener listener ) throws android.os.RemoteException ;
Source:
void releasePendingPointerLocked ( com.android.server.WindowManagerService.Session s ) { if ( com.android.server.WindowManagerService.DEBUG_INPUT ) android.util.Log.v ( com.android.server.WindowManagerService.TAG , ( "releasePendingPointer " + ( s.mPendingPointerMove ) ) ) ; if ( ( s.mPendingPointerMove ) != null ) { mQueue.recycleEvent ( s.mPendingPointerMove ) ; s.mPendingPointerMove = null ; } }

Target:
void releasePendingPointerLocked ( com.android.server.WindowManagerService.Session s ) { if ( com.android.server.WindowManagerService.DEBUG_INPUT ) android.util.Slog.v ( com.android.server.WindowManagerService.TAG , ( "releasePendingPointer " + ( s.mPendingPointerMove ) ) ) ; if ( ( s.mPendingPointerMove ) != null ) { mQueue.recycleEvent ( s.mPendingPointerMove ) ; s.mPendingPointerMove = null ; } }
Source:
public void testApi1 ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/deprecation.xml:2: Warning: AbsoluteLayout is deprecated [Deprecated]\n" + ( ( ( ( ( ( "<AbsoluteLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" + "^\n" ) + "res/layout/deprecation.xml:18: Warning: android:editable is deprecated: Use an <EditText> to make it editable [Deprecated]\n" ) + " android:editable=\"true\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 2 warnings\n" ) + "" ) ) , lintProject ( "apicheck/minsdk1.xml=>AndroidManifest.xml" , "res/layout/deprecation.xml" ) ) ; }

Target:
public void testApi1 ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/deprecation.xml:2: Warning: AbsoluteLayout is deprecated [Deprecated]\n" + ( ( ( ( ( ( ( ( ( ( ( "<AbsoluteLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" + "^\n" ) + "res/layout/deprecation.xml:18: Warning: android:editable is deprecated: Use an <EditText> to make it editable [Deprecated]\n" ) + " android:editable=\"true\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/deprecation.xml:26: Warning: android:editable is deprecated: <EditText> is already editable [Deprecated]\n" ) + " <EditText android:editable=\"true\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/deprecation.xml:27: Warning: android:editable is deprecated: Use inputType instead [Deprecated]\n" ) + " <EditText android:editable=\"false\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 4 warnings\n" ) ) , lintProject ( "apicheck/minsdk1.xml=>AndroidManifest.xml" , "res/layout/deprecation.xml" ) ) ; }
Source:
public void setOwnedByTransform ( ) { if ( mOwnedByTransform ) { new java.lang.IllegalStateException ( "Cannot own an SPI twice!" ) ; } mOwnedByTransform = true ; }

Target:
public void setOwnedByTransform ( ) { if ( mOwnedByTransform ) { throw new java.lang.IllegalStateException ( "Cannot own an SPI twice!" ) ; } mOwnedByTransform = true ; }
Source:
synchronized long nAllocationIoReceive ( long alloc ) { validate ( ) ; return rsnAllocationIoReceive ( mContext , alloc ) ; }

Target:
synchronized void nAllocationIoReceive ( long alloc ) { validate ( ) ; rsnAllocationIoReceive ( mContext , alloc ) ; }
Source:
private void a2 ( java.lang.StringBuffer sb , int x ) { if ( x < 10 ) { sb.append ( '0' ) ; } sb.append ( x ) ; }

Target:
private void a2 ( java.lang.StringBuilder sb , int x ) { if ( x < 10 ) { sb.append ( '0' ) ; } sb.append ( x ) ; }
Source:
public boolean cleanup ( ) { mService = null ; return true ; }

Target:
public synchronized void cleanup ( ) { mService = null ; }
Source:
public static void setProperty ( java.lang.String key , java.lang.String datum ) { java.security.Security.check ( ( "setProperty." + key ) ) ; java.security.Security.props.put ( key , datum ) ; java.security.Security.increaseVersion ( ) ; java.security.Security.invalidateSMCache ( key ) ; }

Target:
public static void setProperty ( java.lang.String key , java.lang.String datum ) { java.security.Security.props.put ( key , datum ) ; java.security.Security.increaseVersion ( ) ; java.security.Security.invalidateSMCache ( key ) ; }
Source:
public static void end ( java.lang.String name , java.lang.String arg ) { org.chromium.base.EarlyTraceEvent.end ( name ) ; if ( org.chromium.base.TraceEvent.sEnabled ) org.chromium.base.TraceEvent.nativeEnd ( name , arg ) ; }

Target:
public static void end ( java.lang.String name , java.lang.String arg ) { if ( org.chromium.base.TraceEvent.sEnabled ) org.chromium.base.TraceEvent.nativeEnd ( name , arg ) ; }
Source:
public com.android.dialer.callintent.CallIntentBuilder setAllowAssistedDial ( boolean allowAssistedDial , @ android.support.annotation.NonNull com.android.dialer.assisteddialing.AssistedDialingMediator assistedDialingMediator ) { this . assistedDialingMediator = com.android.dialer.common.Assert.isNotNull ( assistedDialingMediator ) ; this . allowAssistedDial = allowAssistedDial ; return this ; }

Target:
public com.android.dialer.callintent.CallIntentBuilder setAllowAssistedDial ( boolean allowAssistedDial ) { this . allowAssistedDial = allowAssistedDial ; return this ; }
Source:
public static char [ ] copyOf ( char [ ] original , int newLength ) { if ( newLength < 0 ) { throw new java.lang.NegativeArraySizeException ( ) ; } return java.util.Arrays.copyOfRange ( original , 0 , newLength ) ; }

Target:
public static char [ ] copyOf ( char [ ] original , int newLength ) { if ( newLength < 0 ) { throw new java.lang.NegativeArraySizeException ( java.lang.Integer.toString ( newLength ) ) ; } return java.util.Arrays.copyOfRange ( original , 0 , newLength ) ; }
Source:
public void cleanup ( ) { mSingleScanListeners.removeAllForClient ( this ) ; mSingleScanStateMachine.removeSingleScanRequests ( this ) ; mBackgroundScanStateMachine.removeBackgroundScanSettings ( this ) ; mBackgroundScanStateMachine.removeHotlistSettings ( this ) ; unregister ( ) ; localLog ( ( "Successfully stopped all requests for client " + ( this ) ) ) ; }

Target:
public void cleanup ( ) { mSingleScanListeners.removeAllForClient ( this ) ; mSingleScanStateMachine.removeSingleScanRequests ( this ) ; mBackgroundScanStateMachine.removeBackgroundScanSettings ( this ) ; unregister ( ) ; localLog ( ( "Successfully stopped all requests for client " + ( this ) ) ) ; }
Source:
private void stopAdvertise ( ) { if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "stopAdvertise" ) ; mAdvertiser.stopAdvertising ( mAdvertiseCallback ) ; }

Target:
private void stopAdvertise ( ) { if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) { android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "stopAdvertise" ) ; } if ( ( mAdvertiser ) != null ) { mAdvertiser.stopAdvertising ( mAdvertiseCallback ) ; } }
Source:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; }

Target:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; }
Source:
public vogar.commands.VmCommandBuilder env ( java.lang.String key , java.lang.String value ) { this . env.put ( key , value ) ; return this ; }

Target:
public vogar.commands.VmCommandBuilder env ( java.lang.String key , java.lang.String value ) { env.put ( key , value ) ; return this ; }
Source:
public void testV1OneSignerMD5withRSAAccepted ( ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assumeThatMd5AcceptedInPkcs7Signature ( ) ; assertVerifiedForEach ( "v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.1-%s.apk" , com.android.apksig.ApkVerifierTest.RSA_KEY_NAMES ) ; assertVerifiedForEach ( "v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.4-%s.apk" , com.android.apksig.ApkVerifierTest.RSA_KEY_NAMES ) ; }

Target:
public void testV1OneSignerMD5withRSAAccepted ( ) throws java.lang.Exception { assertVerifiedForEach ( "v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.1-%s.apk" , com.android.apksig.ApkVerifierTest.RSA_KEY_NAMES ) ; assertVerifiedForEach ( "v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.4-%s.apk" , com.android.apksig.ApkVerifierTest.RSA_KEY_NAMES ) ; }
Source:
public abstract lombok.ast.Node parseJava ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context ) ;

Target:
public lombok.ast.Node parseJava ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context ) { return null ; }
Source:
public static < E > org.hamcrest.Matcher < E [ ] > arrayContainingInAnyOrder ( org.hamcrest.Matcher < ? super E > ... itemMatchers ) { return org.hamcrest.collection.IsArrayContainingInAnyOrder.arrayContainingInAnyOrder ( java.util.Arrays.asList ( itemMatchers ) ) ; }

Target:
public static < E > org.hamcrest.Matcher < E [ ] > arrayContainingInAnyOrder ( org.hamcrest.Matcher < ? super E > ... itemMatchers ) { return org.hamcrest.collection.IsArrayContainingInAnyOrder.arrayContainingInAnyOrder ( ( ( java.util.List ) ( java.util.Arrays.asList ( itemMatchers ) ) ) ) ; }
Source:
public void test_createEffect ( ) throws java.lang.Exception { assertTrue ( android.security.cts.AudioFlingerBinderTest.native_test_createEffect ( ) ) ; android.security.cts.d155d4 Merge ; into ( ( ( ( lollipop ) - ( cts ) ) - ( dev ) ) ) ; }

Target:
public void test_createEffect ( ) throws java.lang.Exception { assertTrue ( android.security.cts.AudioFlingerBinderTest.native_test_createEffect ( ) ) ; }
Source:
public void uidsChangedRsp ( byte [ ] address , int type , int uidCounter ) { if ( ! ( registerNotificationRspUIDsChangedNative ( type , com.android.bluetooth.avrcp.Avrcp.sUIDCounter ) ) ) { android.util.Log.e ( com.android.bluetooth.avrcp.Avrcp.AvrcpMediaRsp.TAG , "registerNotificationRspUIDsChangedNative failed!" ) ; } }

Target:
public void uidsChangedRsp ( int type ) { if ( ! ( registerNotificationRspUIDsChangedNative ( type , com.android.bluetooth.avrcp.Avrcp.sUIDCounter ) ) ) { android.util.Log.e ( com.android.bluetooth.avrcp.Avrcp.AvrcpMediaRsp.TAG , "registerNotificationRspUIDsChangedNative failed!" ) ; } }
Source:
void onDropped ( com.android.ide.eclipse.adt.editors.layout.gscripts.INode targetNode , com.android.ide.eclipse.adt.editors.layout.gscripts.IDragElement [ ] elements , com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback feedback , com.android.ide.eclipse.adt.editors.layout.gscripts.Point where , boolean isCopy , boolean sameCanvas ) ;

Target:
void onDropped ( com.android.ide.eclipse.adt.editors.layout.gscripts.INode targetNode , com.android.ide.eclipse.adt.editors.layout.gscripts.IDragElement [ ] elements , com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback feedback , com.android.ide.eclipse.adt.editors.layout.gscripts.Point where ) ;
Source:
public void run ( ) { mCallback.onCharacteristicRead ( this , characteristic , status ) ; }

Target:
public void run ( ) { if ( ( mCallback ) != null ) { mCallback.onCharacteristicRead ( this , characteristic , status ) ; } }
Source:
public static long LongSubtraction ( ) { long a ; long b ; long c ; a = Main.$inline$long ( 6L ) ; b = Main.$inline$long ( 2L ) ; c = a - b ; return c ; }

Target:
public static long LongSubtraction ( ) { long a ; long b ; long c ; a = 6L ; b = 2L ; c = a - b ; return c ; }
Source:
public android.telephony.RadioAccessSpecifier [ ] getSpecifiers ( ) { return mSpecifiers.clone ( ) ; }

Target:
public android.telephony.RadioAccessSpecifier [ ] getSpecifiers ( ) { return ( mSpecifiers ) == null ? null : mSpecifiers.clone ( ) ; }
Source:
public com.android.server.wifi.HalDeviceManager getHalDeviceManager ( ) { if ( ( mHalDeviceManager ) == null ) { mHalDeviceManager = new com.android.server.wifi.HalDeviceManager ( ) ; mHalDeviceManager.initialize ( ) ; } return mHalDeviceManager ; }

Target:
public com.android.server.wifi.HalDeviceManager getHalDeviceManager ( ) { return mHalDeviceManager ; }
Source:
public static boolean isVoicemailVibrationEnabled ( android.telephony.TelephonyManager telephonyManager , android.telecom.PhoneAccountHandle accountHandle ) { return ( ( android.os.Build.VERSION.SDK_INT ) < ( android.os.Build.VERSION_CODES.N ) ) || ( telephonyManager.isVoicemailVibrationEnabled ( accountHandle ) ) ; }

Target:
public static boolean isVoicemailVibrationEnabled ( android.telephony.TelephonyManager telephonyManager , android.telecom.PhoneAccountHandle accountHandle ) { return telephonyManager.isVoicemailVibrationEnabled ( accountHandle ) ; }
Source:
private void onUpdateSelected ( ) { mUpdaterData.updateOrInstallAll_WithGUI ( null ) ; }

Target:
private void onUpdateSelected ( ) { mUpdaterData.updateOrInstallAll_WithGUI ( null , false ) ; }
Source:
void ndk ( org.gradle.api.Action < com.android.build.gradle.internal.dsl.NdkOptions > action ) { action.execute ( ndkConfig ) ; if ( ! ( project.hasProperty ( com.android.build.gradle.tasks.NdkCompile.USE_DEPRECATED_NDK ) ) ) { throw new java.lang.RuntimeException ( ( "Error: NDK integration is deprecated in the current plugin. Consider trying " + ( ( ( "the new experimental plugin. For details, see " + "http://tools.android.com/tech-docs/new-build-system/gradle-experimental. " ) + "Set \"$USE_DEPRECATED_NDK=true\" in gradle.properties to " ) + "continue using the current NDK integration." ) ) ) ; } }

Target:
public void ndk ( org.gradle.api.Action < com.android.build.gradle.internal.dsl.NdkOptions > action ) { action.execute ( ndkConfig ) ; if ( ! ( project.hasProperty ( com.android.build.gradle.tasks.NdkCompile.USE_DEPRECATED_NDK ) ) ) { throw new java.lang.RuntimeException ( ( ( ( ( "Error: NDK integration is deprecated in the current plugin. Consider trying " + ( ( "the new experimental plugin. For details, see " + "http://tools.android.com/tech-docs/new-build-system/gradle-experimental. " ) + "Set \"" ) ) + ( com.android.build.gradle.tasks.NdkCompile.USE_DEPRECATED_NDK ) ) + "=true\" in gradle.properties to " ) + "continue using the current NDK integration." ) ) ; } }
Source:
public void actionPerformed ( java.awt.event.ActionEvent e ) { lastOpenFiles = com.android.preload.Main.getUI ( ) . showOpenDialog ( true ) ; if ( ( lastOpenFiles ) != null ) { new java.lang.Thread ( this ) . start ( ) ; } }

Target:
public void actionPerformed ( java.awt.event.ActionEvent e ) { lastOpenFiles = com.android.preload.Main.getUI ( ) . showOpenDialog ( true ) ; if ( ( lastOpenFiles ) != null ) { super . actionPerformed ( e ) ; } }
Source:
public void printf ( java.lang.String msgFormat , java.lang.Object ... args ) { mLog.printf ( msgFormat , args ) ; }

Target:
public void info ( java.lang.String msgFormat , java.lang.Object ... args ) { mLog.info ( msgFormat , args ) ; }
Source:
public void run ( ) { getActivity ( ) . finish ( ) ; }

Target:
public void run ( ) { if ( ( getActivity ( ) ) != null ) { getActivity ( ) . finish ( ) ; } }
Source:
private static com.android.build.SplitOutput computeBestOutput ( @ com.android.annotations.NonNull java.util.List < ? extends com.android.build.SplitOutput > outputs , int density , @ com.android.annotations.NonNull java.lang.String ... abis ) { return com.android.ide.common.build.SplitOutputMatcher.computeBestOutput ( outputs , java.util.Collections.< java.lang.String > emptySet ( ) , density , java.util.Arrays.asList ( abis ) ) ; }

Target:
private static com.android.build.SplitOutput computeBestOutput ( @ com.android.annotations.NonNull java.util.List < ? extends com.android.build.SplitOutput > outputs , int density , @ com.android.annotations.NonNull java.lang.String ... abis ) { return com.android.ide.common.build.SplitOutputMatcher.computeBestOutput ( outputs , null , density , java.util.Arrays.asList ( abis ) ) ; }
Source:
public void testExtract1 ( ) throws java.lang.Exception { checkRefactoring ( "sample3.xml" , "newlayout1" , true , true , "@+id/button2" ) ; }

Target:
public void testExtract1 ( ) throws java.lang.Exception { checkRefactoring ( "sample3.xml" , "newlayout1" , false , null , 2 , "@+id/button2" ) ; }
Source:
public static int getModCount ( ) { try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.r.lock ( ) ; return com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getRecords ( ) . getInt ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.HEADER_GLOBAL_MOD_COUNT_OFFSET ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.r.unlock ( ) ; } }

Target:
public static int getModCount ( ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.r.lock ( ) ; try { return com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getRecords ( ) . getInt ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.HEADER_GLOBAL_MOD_COUNT_OFFSET ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.r.unlock ( ) ; } }
Source:
public int dpToPx ( int dp ) { fail ( "Not supported in tests yet" ) ; return 0 ; }

Target:
public int dpToPx ( int dp ) { return 3 * dp ; }
Source:
public android.test.suitebuilder.TestGrouping removePackagesRecursive ( java.lang.String ... packageNames ) { for ( java.lang.String packageName : packageNames ) { testCaseClasses.removeAll ( testCaseClassesInPackage ( packageName ) ) ; } return this ; }

Target:
void removePackagesRecursive ( java.lang.String ... packageNames ) { for ( java.lang.String packageName : packageNames ) { testCaseClasses.removeAll ( testCaseClassesInPackage ( packageName ) ) ; } }
Source:
public void tearDown ( ) throws java.lang.Exception { intento.internalRelease ( ) ; intento = null ; super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { intento.internalRelease ( ) ; intento = null ; }
Source:
public void callSessionConferenceExtendReceived ( com.android.ims.internal.IImsCallSession session , com.android.ims.internal.IImsCallSession newSession , com.android.ims.ImsCallProfile profile ) { if ( ( mListener ) != null ) { mListener.callSessionConferenceExtendReceived ( this , new com.android.ims.internal.ImsCallSession ( newSession ) , profile ) ; } }

Target:
public void callSessionConferenceExtendReceived ( com.android.ims.internal.IImsCallSession newSession , com.android.ims.ImsCallProfile profile ) { if ( ( mListener ) != null ) { mListener.callSessionConferenceExtendReceived ( this , new com.android.ims.internal.ImsCallSession ( newSession ) , profile ) ; } }
Source:
public java.lang.String getName ( ) { return name ; }

Target:
public java.lang.String getName ( ) { assert ( name ) != null ; return name ; }
Source:
public void testPrimitives ( ) { android.renderscript.cts.ScriptC_primitives t = new android.renderscript.cts.ScriptC_primitives ( mRS , mRes , R.raw.primitives ) ; assertTrue ( initializeGlobals ( t ) ) ; t.invoke_test ( ) ; waitForMessage ( ) ; assertEquals ( result , android.renderscript.cts.RS_MSG_TEST_PASSED ) ; }

Target:
public void testPrimitives ( ) { android.renderscript.cts.ScriptC_primitives t = new android.renderscript.cts.ScriptC_primitives ( mRS , mRes , R.raw.primitives ) ; assertTrue ( initializeGlobals ( t ) ) ; t.invoke_test ( ) ; waitForMessage ( ) ; assertEquals ( android.renderscript.cts.RS_MSG_TEST_PASSED , result ) ; }
Source:
public void testConnectTimeouts ( ) throws java.io.IOException { tests.net.StuckServer ss = new tests.net.StuckServer ( ) ; int serverPort = ss.getLocalPort ( ) ; java.net.URLConnection urlConnection = new java.net.URL ( ( "http://localhost:" + serverPort ) ) . openConnection ( ) ; int timeout = 1000 ; urlConnection.setConnectTimeout ( timeout ) ; long start = java.lang.System.currentTimeMillis ( ) ; try { urlConnection.getInputStream ( ) ; fail ( ) ; } catch ( java.net.SocketTimeoutException expected ) { long elapsed = ( java.lang.System.currentTimeMillis ( ) ) - start ; int attempts = java.net.InetAddress.getAllByName ( "localhost" ) . length ; assertTrue ( ( ( ( ( ( "timeout=" + timeout ) + ", elapsed=" ) + elapsed ) + ", attempts=" ) + attempts ) , ( ( java.lang.Math.abs ( ( ( attempts * timeout ) - elapsed ) ) ) < 500 ) ) ; } finally { ss.close ( ) ; } }

Target:
public void testConnectTimeouts ( ) throws java.io.IOException { tests.net.StuckServer ss = new tests.net.StuckServer ( false ) ; int serverPort = ss.getLocalPort ( ) ; java.net.URLConnection urlConnection = new java.net.URL ( ( "http://localhost:" + serverPort ) ) . openConnection ( ) ; int timeout = 1000 ; urlConnection.setConnectTimeout ( timeout ) ; long start = java.lang.System.currentTimeMillis ( ) ; try { urlConnection.getInputStream ( ) ; fail ( ) ; } catch ( java.net.SocketTimeoutException expected ) { long elapsed = ( java.lang.System.currentTimeMillis ( ) ) - start ; int attempts = java.net.InetAddress.getAllByName ( "localhost" ) . length ; assertTrue ( ( ( ( ( ( "timeout=" + timeout ) + ", elapsed=" ) + elapsed ) + ", attempts=" ) + attempts ) , ( ( java.lang.Math.abs ( ( ( attempts * timeout ) - elapsed ) ) ) < 500 ) ) ; } finally { ss.close ( ) ; } }
Source:
public static int $noinline$UShr28And7 ( int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( arg > > > 28 ) & 7 ; }

Target:
public static int $noinline$UShr28And7 ( int arg ) { return ( arg > > > 28 ) & 7 ; }
Source:
public void testGrantNoneRequestNone ( ) throws java.lang.Exception { if ( ! ( doTestDragAndDrop ( android.wm.cts.CrossAppDragAndDropTests.GRANT_NONE , android.wm.cts.CrossAppDragAndDropTests.REQUEST_NONE , android.wm.cts.CrossAppDragAndDropTests.RESULT_EXCEPTION ) ) ) { return ; } assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_DRAG_STARTED , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_EXTRAS , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; }

Target:
public void testGrantNoneRequestNone ( ) throws java.lang.Exception { doTestDragAndDrop ( android.wm.cts.CrossAppDragAndDropTests.GRANT_NONE , android.wm.cts.CrossAppDragAndDropTests.REQUEST_NONE , android.wm.cts.CrossAppDragAndDropTests.RESULT_EXCEPTION ) ; assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_DRAG_STARTED , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_EXTRAS , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; }
Source:
final void appDiedLocked ( com.android.server.am.ProcessRecord app ) { appDiedLocked ( app , app.pid , app.thread ) ; }

Target:
final void appDiedLocked ( com.android.server.am.ProcessRecord app ) { appDiedLocked ( app , app.pid , app.thread , false ) ; }
Source:
public boolean disconnect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) android.util.Log.v ( com.android.bluetooth.map.BluetoothMapService.TAG , "disconnect()" ) ; com.android.bluetooth.map.BluetoothMapService service = getService ( ) ; if ( service == null ) return false ; return service.disconnect ( device ) ; }

Target:
public boolean disconnect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.map.BluetoothMapService.TAG , "disconnect()" ) ; } com.android.bluetooth.map.BluetoothMapService service = getService ( ) ; if ( service == null ) { return false ; } return service.disconnect ( device ) ; }
Source:
public void incProgress ( int delta ) { assert ( mSubCoef ) > 0 ; subIncProgress ( ( delta * ( mSubCoef ) ) ) ; }

Target:
public void incProgress ( int delta ) { if ( ( delta > 0 ) && ( ( mSubCoef ) > 0 ) ) { subIncProgress ( ( delta * ( mSubCoef ) ) ) ; } }
Source:
public static final com.android.jack.test.toolchain.IToolchain getCandidateToolchain ( ) { com.android.jack.test.toolchain.IToolchain result = com.android.jack.test.toolchain.AbstractTestTools.createToolchain ( "candidate.toolchain" ) ; return result ; }

Target:
public static final com.android.jack.test.toolchain.IToolchain getCandidateToolchain ( ) { return com.android.jack.test.toolchain.AbstractTestTools.createToolchain ( "candidate.toolchain" ) ; }
Source:
public boolean isOpened ( int sessionId ) throws com.android.ims.ImsException { checkAndThrowExceptionIfServiceUnavailable ( ) ; try { return mImsServiceProxy.isOpened ( sessionId ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "isOpened()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }

Target:
public boolean isOpened ( ) throws com.android.ims.ImsException { checkAndThrowExceptionIfServiceUnavailable ( ) ; try { return mImsServiceProxy.isOpened ( ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "isOpened()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }
Source:
public static void sort ( short [ ] a ) { java.util.DualPivotQuicksort.sort ( a ) ; }

Target:
public static void sort ( short [ ] a ) { java.util.DualPivotQuicksort.sort ( a , 0 , ( ( a.length ) - 1 ) , null , 0 , 0 ) ; }
Source:
public void changePathRsp ( byte [ ] address , int rspStatus , int numItems ) { if ( ! ( changePathRspNative ( address , rspStatus , numItems ) ) ) android.util.Log.e ( com.android.bluetooth.avrcp.Avrcp.AvrcpMediaRsp.TAG , "changePathRspNative failed!" ) ; }

Target:
public void changePathRsp ( byte [ ] address , int rspStatus , int numItems ) { if ( ! ( changePathRspNative ( address , rspStatus , numItems ) ) ) { android.util.Log.e ( com.android.bluetooth.avrcp.Avrcp.AvrcpMediaRsp.TAG , "changePathRspNative failed!" ) ; } }
Source:
public void accept ( int result ) { if ( result == ( com.android.cts.verifier.notifications.MockListener.MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ) { status = PASS ; } else { logFail ( ) ; status = FAIL ; } next ( ) ; }

Target:
public void accept ( int result ) { if ( ( result & ( com.android.cts.verifier.notifications.MockListener.MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ) == ( com.android.cts.verifier.notifications.MockListener.MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ) { status = PASS ; } else { logFail ( ) ; status = FAIL ; } next ( ) ; }
Source:
private void recordClosingOfWindow ( int window ) { synchronized ( android.database.CursorWindow.sWindowToPidMap ) { if ( ( android.database.CursorWindow.sWindowToPidMap.size ( ) ) == 0 ) { return ; } android.database.CursorWindow.sWindowToPidMap.delete ( window ) ; } }

Target:
private void recordClosingOfWindow ( long window ) { synchronized ( android.database.CursorWindow.sWindowToPidMap ) { if ( ( android.database.CursorWindow.sWindowToPidMap.size ( ) ) == 0 ) { return ; } android.database.CursorWindow.sWindowToPidMap.delete ( window ) ; } }
Source:
public void printf ( java.lang.String msgFormat , java.lang.Object ... args ) { java.lang.System.out.printf ( msgFormat , args ) ; }

Target:
public void info ( java.lang.String msgFormat , java.lang.Object ... args ) { java.lang.System.out.printf ( msgFormat , args ) ; }
Source:
public final void log ( java.lang.String message ) { msg ( message , android.icu.dev.test.LOG , true , false ) ; }

Target:
public static final void log ( java.lang.String message ) { }
Source:
public android.net.IpSecManager.UdpEncapsulationSocket openUdpEncapsulationSocket ( int port ) throws android.net.IpSecManager.ResourceUnavailableException , java.io.IOException { if ( ( port < 1 ) || ( port > 65535 ) ) { throw new java.lang.IllegalArgumentException ( "Specified port number must be a valid UDP port" ) ; } return new android.net.IpSecManager.UdpEncapsulationSocket ( mService , port ) ; }

Target:
public android.net.IpSecManager.UdpEncapsulationSocket openUdpEncapsulationSocket ( int port ) throws android.net.IpSecManager.ResourceUnavailableException , java.io.IOException { return new android.net.IpSecManager.UdpEncapsulationSocket ( mService , port ) ; }
Source:
static void addKeepClassMembers ( @ javax.annotation.Nonnull com.android.jack.shrob.spec.Flags flags , com.android.jack.shrob.spec.ClassSpecification classSpecification , @ javax.annotation.CheckForNull com.android.jack.shrob.spec.KeepModifier keepModifier ) { assert classSpecification != null ; if ( keepModifier == null ) { keepModifier = com.android.jack.shrob.spec.KeepModifier.NONE ; } classSpecification.setKeepModifier ( keepModifier ) ; flags.addKeepClassMembers ( classSpecification ) ; }

Target:
static void addKeepClassMembers ( @ javax.annotation.Nonnull com.android.jack.shrob.spec.Flags flags , com.android.jack.shrob.spec.ClassSpecification classSpecification , @ javax.annotation.Nonnull com.android.jack.shrob.spec.KeepModifier keepModifier ) { assert classSpecification != null ; classSpecification.setKeepModifier ( keepModifier ) ; flags.addKeepClassMembers ( classSpecification ) ; }
Source:
public boolean cleanup ( ) { mService = null ; return true ; }

Target:
public void cleanup ( ) { mService = null ; }
Source:
public java.util.ArrayList < com.android.tools.perflib.heap.Instance > getReferences ( ) { if ( ( mReferences ) == null ) { mReferences = new java.util.ArrayList < com.android.tools.perflib.heap.Instance > ( ) ; } return mReferences ; }

Target:
public java.util.ArrayList < com.android.tools.perflib.heap.Instance > getReferences ( ) { return mReferences ; }