<nb> public abstract class AutoProxyUtils {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 static void exposeTargetClass ( ConfigurableListableBeanFactory beanFactory , String beanName , Class < ? > targetClass ) {
 - if ( beanFactory . containsBeanDefinition ( beanName ) ) {
 + if ( beanName != null && beanFactory . containsBeanDefinition ( beanName ) ) {
 beanFactory . getMergedBeanDefinition ( beanName ) . setAttribute ( ORIGINAL_TARGET_CLASS_ATTRIBUTE , targetClass ) ;
 }
 }

Avoid exposeTargetClass attempt if bean name is null


<nb> public class DownloadIndexActivity extends OsmandExpandableListActivity {
 private Map < String , String > indexActivatedFileNames = null ;
 private TreeMap < String , DownloadEntry > entriesToDownload = new TreeMap < String , DownloadEntry > ( ) ;

 - private int MAXIMUM_AVAILABLE_FREE_DOWNLOADS = NUMBER0 ;
 + private int MAXIMUM_AVAILABLE_FREE_DOWNLOADS = NUMBER1 ;

 private TextWatcher textWatcher ;


<nb> public class IconModel {
 private static final String PATH_DRAWABLE_PREFIX = STRING0 ;
 private static final String VECTOR_SIZE_NAME = STRING1 ;
 private static final String VECTOR_DEFAULT_DP = STRING2 ;
 + private static final String VECTOR_VIEWPORT_SIZE = STRING3 ;
 private static final String UNDERBAR = STRING4 ;
 private static final String PNG_SUFFIX = STRING5 ;
 private static final String XML_SUFFIX = STRING6 ;
 <nb> public class IconModel {
 }

 public String getViewportSize ( ) {
 - if ( dp != null ) {
 - return dp . replace ( DP , STRING7 ) + STRING8 ;
 - } else {
 - return null ;
 - }
 + return VECTOR_VIEWPORT_SIZE ;
 }

 public String getFileName ( ) {


<nb> public class HttpParser implements Parser
 break ;

 case HttpTokens . NO_CONTENT :
 - _state = _persistent || ( _responseStatus >= NUMBER0 && _responseStatus < NUMBER1 ) ? STATE_END : STATE_SEEKING_EOF ;
 _handler . headerComplete ( ) ;
 + _state = _persistent || ( _responseStatus >= NUMBER0 && _responseStatus < NUMBER1 ) ? STATE_END : STATE_SEEKING_EOF ;
 _handler . messageComplete ( _contentPosition ) ;
 break ;


<nb> public class FileReferenceQuickFixProvider {
 }
 } else {
 final Collection < PsiElement > defaultContexts = fileReferenceSet . getDefaultContexts ( reference . getElement ( ) ) ;
 - PsiElement psiElement = defaultContexts . iterator ( ) . next ( ) ;
 + final PsiElement psiElement = ( ! defaultContexts . isEmpty ( ) ) ? defaultContexts . iterator ( ) . next ( ) : null ;

 if ( psiElement instanceof PsiDirectory ) {
 directory = ( PsiDirectory ) psiElement ;
 <nb> public class FileReferenceSet {
 if ( dir != null ) {
 if ( properties != null ) {
 result = JspManager . getInstance ( project ) . findWebDirectoryByFile ( dir . getVirtualFile ( ) , properties ) ;
 + if ( result == null ) result = dir ;
 }
 else {
 result = dir ;

fixed NoSuchElementException using current dir as default context in webmodule if there is no parent webdir


<nb> public class SearchScrollWithFailingNodesTests extends ElasticsearchIntegrationT
 assertThat ( numHits , equalTo ( NUMBER0 ) ) ;
 clearScroll ( STRING0 ) ;

 - cluster ( ) . stopRandomDataNode ( ) ;
 + cluster ( ) . stopRandomNonMasterNode ( ) ;

 searchResponse = client ( ) . prepareSearch ( )
 . setQuery ( matchAllQuery ( ) )


<nb> public class SyncFailsafeTest extends AbstractFailsafeTest {
 } catch ( Exception e ) {
 assertTrue ( e instanceof FailsafeException ) ;
 assertTrue ( e . getCause ( ) instanceof InterruptedException ) ;
 + SINGLE
 + Thread . interrupted ( ) ;
 }
 }


<nb> public class TestServlet extends HttpServlet {
 PrintWriter out = response . getWriter ( ) ;
 out . println ( STRING0 ) ;
 out . println ( STRING1 ) ;
 - out . println ( STRING2 ) ;
 + out . println ( STRING3 ) ;
 out . println ( STRING4 ) ;
 out . println ( STRING5 ) ;
 - out . println ( STRING6 + request . getContextPath ( ) + STRING7 ) ;
 + out . println ( STRING8 ) ;
 Client client = ClientBuilder . newClient ( ) ;
 WebTarget target = client . target ( STRING9
 + request . getServerName ( )


<nb> public abstract class QueueOperation extends Operation
 }

 @ override
 - public boolean returnsResponse ( ) {
 - return true ;
 - }
 -
 - @ override
 public final Object getResponse ( ) {
 return response ;
 }
 <nb> public class GetOperation extends Operation implements IdentifiedDataSerializabl
 }

 @ override
 - public boolean returnsResponse ( ) {
 - return true ;
 - }
 -
 - @ override
 public Object getResponse ( ) {
 return response ;
 }

Removed returnsResponse true implementations


<nb> public class JetChangeSignatureUsageProcessor implements ChangeSignatureUsagePro
 if ( processor . processUsage ( javaChangeInfo , usage , beforeMethodChange , javaUsageInfos ) ) break ;
 }
 if ( usage instanceof OverriderUsageInfo ) {
 - PsiMethod overridingMethod = ( ( OverriderUsageInfo ) usage ) . getElement ( ) ;
 + PsiMethod overridingMethod = ( ( OverriderUsageInfo ) usage ) . getOverridingMethod ( ) ;
 if ( overridingMethod != null ) {
 nullabilityPropagator . processMethod ( overridingMethod ) ;
 }

Fixed compilation error IDEA API changed


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class RadioAccessFamily implements Parcelable {
 COMMENT
 COMMENT
 COMMENT
 + @ override
 public void writeToParcel ( Parcel outParcel , int flags ) {
 outParcel . writeInt ( mPhoneId ) ;
 outParcel . writeInt ( mRadioAccessFamily ) ;
 <nb> public class RadioAccessFamily implements Parcelable {
 return new RadioAccessFamily [ size ] ;
 }
 } ;
 +
 + public static int getRafFromNetworkType ( int type ) {
 + SINGLE
 + switch ( type ) {
 + case RILConstants . NETWORK_MODE_WCDMA_PREF :
 + case RILConstants . NETWORK_MODE_GSM_UMTS :
 + return RAF_UMTS | RAF_GSM ;
 + case RILConstants . NETWORK_MODE_GSM_ONLY :
 + return RAF_GSM ;
 + default :
 + return RAF_UNKNOWN ;
 + }
 + }
 }

Add mapping between RAT and Network Mode


<nb> public final class HttpUtils {
 }

 public static boolean isWebSocket ( String scheme ) {
 - return WEBSOCKET . equalsIgnoreCase ( scheme ) || WEBSOCKET_SSL . equalsIgnoreCase ( scheme ) ;
 + return WEBSOCKET . equals ( scheme ) || WEBSOCKET_SSL . equals ( scheme ) ;
 }

 public static boolean isSecure ( String scheme ) {
 - return HTTPS . equalsIgnoreCase ( scheme ) || WEBSOCKET_SSL . equalsIgnoreCase ( scheme ) ;
 + return HTTPS . equals ( scheme ) || WEBSOCKET_SSL . equals ( scheme ) ;
 }

 public static boolean isSecure ( UriComponents uri ) {

Would would write schemes not in lowercase


<nb> public class RttManager {
 if ( mRttCapabilities == null ) {
 if ( getRttCapabilities ( ) == null ) {
 Log . e ( TAG , STRING0 ) ;
 - SINGLE
 + throw new IllegalStateException ( STRING1 ) ;
 }
 }

 <nb> public class RttManager {
 return true ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 +
 public void startRanging ( RttParams [ ] params , RttListener listener ) {
 int index = NUMBER0 ;
 for ( RttParams rttParam : params ) {


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public class MusicFactory {
 SINGLE
 SINGLE

 + public static Music createMusicFromFile ( final MusicManager pMusicManager , final Context pContext , final File pFile ) throws IOException {
 + final MediaPlayer mediaPlayer = new MediaPlayer ( ) ;
 +
 + mediaPlayer . setDataSource ( new FileInputStream ( pFile ) . getFD ( ) ) ;
 + mediaPlayer . prepare ( ) ;
 +
 + final Music music = new Music ( pMusicManager , mediaPlayer ) ;
 + pMusicManager . add ( music ) ;
 +
 + return music ;
 + }
 +
 public static Music createMusicFromAsset ( final MusicManager pMusicManager , final Context pContext , final String pAssetPath ) throws IOException {
 final MediaPlayer mediaPlayer = new MediaPlayer ( ) ;

Added createMusicFromFile method to MusicFactory Thx to cpasjuste


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Rewrite misleading Note in FingerprintTrustManagerFactory javadoc


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 -
 - import static NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class DefaultIdeaModule implements Serializable , IdeaModule {
 }

 public DomainObjectSet < ? extends HierarchicalElement > getChildren ( ) {
 - return new ImmutableDomainObjectSet < HierarchicalElement > ( ( Set < HierarchicalElement > ) emptySet ( ) ) ;
 + return new ImmutableDomainObjectSet < HierarchicalElement > ( Collections . < HierarchicalElement > emptySet ( ) ) ;
 }

 public String getDescription ( ) {

fix broken attempt at fixing unchecked error


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;


<nb> import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 + import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;

 <nb> public class OkHttpClientTransportTest {
 assertEquals ( Status . INTERNAL . getCode ( ) , listener1 . status . getCode ( ) ) ;
 assertEquals ( NETWORK_ISSUE_MESSAGE , listener2 . status . getCause ( ) . getMessage ( ) ) ;
 verify ( listener ) . transportShutdown ( ) ;
 - verify ( listener ) . transportTerminated ( ) ;
 + verify ( listener , timeout ( TIME_OUT_MS ) ) . transportTerminated ( ) ;
 }

 @ test


<nb> public class J2ObjCTest extends GenerationTest {

 SINGLE
 public void testAnnotationProcessing ( ) throws Exception {
 + if ( runningInEclipse ( ) ) {
 + SINGLE
 + return ;
 + }
 String processorPath = getResourceAsFile ( STRING0 ) ;
 Options . getClassPathEntries ( ) . add ( processorPath ) ;

 <nb> public class J2ObjCTest extends GenerationTest {
 assertTranslation ( translatedAnnotationImpl , STRING1 ) ;
 assertTranslation ( translatedAnnotationImpl , STRING2 ) ;
 }
 +
 + private boolean runningInEclipse ( ) {
 + Throwable t = new Throwable ( ) ;
 + StackTraceElement [ ] trace = t . getStackTrace ( ) ;
 + return trace [ trace . length - NUMBER0 ] . getClassName ( ) . startsWith ( STRING3 ) ;
 + }
 }

Don t run test that fails in Eclipse due to Eclipse build limitation


<nb> public class RecipeServiceClientImpl implements RecipeServiceClient {
 tagsParam . toString ( ) ;

 if ( type != null ) {
 - url += STRING0 + type ;
 + url += STRING1 + type ;
 }

 return asyncRequestFactory . createGetRequest ( url )


<nb> public class TileEngine extends TileBuildCraft implements IPowerReceptor , IInven
 }
 @ override public ILiquidTank getTank ( ForgeDirection direction , LiquidStack type ) { return null ; }

 - @ override
 - public ILiquidTank getTank ( ForgeDirection direction , LiquidStack type ) {
 - SINGLE
 - return null ;
 - }
 }


<nb> public class MediaUtils {
 return false ;
 }

 - private static boolean isVideo ( String url ) {
 + public static boolean isVideo ( String url ) {
 if ( url == null )
 return false ;
 if ( url . endsWith ( STRING0 ) || url . endsWith ( STRING1 ) || url . endsWith ( STRING2 ) || url . endsWith ( STRING3 ) ||

Changing isVideo utility method visibility to public


<nb> public class ShouldRunChangeSetFilter implements ChangeSetFilter {

 private String getPath ( RanChangeSet ranChangeSet ) {
 - return stripClasspathPrefix ( ranChangeSet . getChangeLog ( ) ) ;
 + return normalizePath ( ranChangeSet . getChangeLog ( ) ) ;
 }

 private String getPath ( ChangeSet changeSet ) {
 - return stripClasspathPrefix ( changeSet . getFilePath ( ) ) ;
 + return normalizePath ( changeSet . getFilePath ( ) ) ;
 }

 - private String stripClasspathPrefix ( String filePath ) {
 + protected String normalizePath ( String filePath ) {
 if ( ignoreClasspathPrefix ) {
 return filePath . replaceFirst ( STRING0 , STRING1 ) ;
 }

renamed stripClasspathPrefix to normalizePath and made it protected


<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener
 COMMENT
 COMMENT
 COMMENT
 + @ viewdebug.exportedproperty ( category = STRING0 )
 public float getTextSize ( ) {
 return mTextPaint . getTextSize ( ) ;
 }

Add TextView textSize as a ViewDebug for hierarchyviewer


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;

 import static NAMESPACE ;
 import static NAMESPACE ;
 + import static NAMESPACE ;

 public class ElementFindingTest extends BaseTest {
 @ test
 <nb> public class ElementFindingTest extends BaseTest {
 assertEquals ( inputField . getText ( ) , active . getText ( ) ) ;
 assertTrue ( inputField . equals ( active ) ) ;
 }
 +
 + @ test
 + public void failToFindNonExistentElement ( ) {
 + WebDriver d = getDriver ( ) ;
 +
 + d . get ( STRING0 ) ;
 + try {
 + WebElement inputField = d . findElement ( By . cssSelector ( STRING1 ) ) ;
 + fail ( ) ;
 + } catch ( NoSuchElementException e ) {
 + SINGLE
 + }
 + }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public abstract class AbstractPollingReporter implements Reporter {
 COMMENT
 COMMENT
 <nb> public abstract class AbstractPollingReporter implements Reporter {
 } , period , period , unit ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public void stop ( ) {
 executor . shutdown ( ) ;
 try {


<nb> public class SoundTriggerHelper implements SoundTrigger . StatusListener {
 if ( status != STATUS_OK ) {
 Slog . w ( TAG , STRING0 + model . getHandle ( ) ) ;
 }
 - model . clearState ( ) ;
 + model . setStopped ( ) ;
 + model . setRequested ( false ) ;
 + model . clearCallback ( ) ;
 + model . setRecognitionConfig ( null ) ;
 }
 }
 internalClearGlobalStateLocked ( ) ;


<nb> public class JBossStandaloneJtaExampleTest extends TestCase {
 for ( String mapping : mappings ) {
 cfg . addResource ( mapping , Thread . currentThread ( ) . getContextClassLoader ( ) ) ;
 }
 + cfg . buildMappings ( ) ;
 Iterator iter = cfg . getClassMappings ( ) ;
 while ( iter . hasNext ( ) ) {
 PersistentClass clazz = ( PersistentClass ) iter . next ( ) ;

Fix unit test by adding necessary Configuration buildMappings call otherwise cache strategy is not set correctly in entity


<nb> class ScopedAliases implements HotSwapCompilerPass {
 } else if ( isVar || isFunctionDecl ) {
 boolean isHoisted = NodeUtil . isHoistedFunctionDeclaration ( parent ) ;
 Node grandparent = parent . getParent ( ) ;
 - Node value = v . getInitialValue ( ) != null ?
 - v . getInitialValue ( ) :
 - null ;
 + Node value = v . getInitialValue ( ) ;
 Node varNode = null ;

 SINGLE


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class TextEditor extends JTextPane implements Pageable , Printable {
 aMap = aMap . getParent ( ) ;
 } while ( aMap != null ) ;
 aMap = getActionMap ( ) ;
 - KeyStroke keyStroke =
 - KeyStroke . getKeyStroke ( KeyEvent . VK_BACK_SPACE , NUMBER0 , false ) ;
 InputMap iMap = getInputMap ( ) ;
 + KeyStroke keyStroke = KeyStroke . getKeyStroke ( KeyEvent . VK_BACK_SPACE , NUMBER0 , false ) ;
 + iMap . put ( keyStroke , STRING0 ) ;
 + keyStroke = KeyStroke . getKeyStroke ( KeyEvent . VK_BACK_SPACE , KeyEvent . SHIFT_MASK , false ) ;
 iMap . put ( keyStroke , STRING0 ) ;
 aMap . put ( STRING0 , action ) ;

Shift Backspace does not delete character before caret


<nb> public class CompilerTest extends GroovyTestCase {
 dir . mkdirs ( ) ;

 CompilerConfiguration config = new CompilerConfiguration ( ) ;
 + config . setTargetDirectory ( dir ) ;
 config . setDebug ( dumpClass ) ;

 compiler = new Compiler ( config ) ;

test was using incorrect target directory noise in source tree


<nb> public class SelectCategoriesActivity extends SherlockListActivity {
 }
 }
 } ) ;
 -
 +
 mSelectedCategories = new HashSet < String > ( ) ;

 Bundle extras = getIntent ( ) . getExtras ( ) ;
 <nb> public class SelectCategoriesActivity extends SherlockListActivity {
 if ( extras . containsKey ( STRING0 ) )
 mSelectedCategories = ( HashSet < String > ) extras . getSerializable ( STRING0 ) ;
 }
 + if ( mSelectedCategories == null ) {
 + mSelectedCategories = new HashSet < String > ( ) ;
 + }

 populateOrFetchCategories ( ) ;
 }

fix a NPE when a user doesn t have rights to post but create a local draft


<nb> class DynamicConnectionStatus extends ConnectionStatus {
 }
 }

 - private synchronized void notifyOfOkNode ( DynamicNode node ) {
 + private void notifyOfOkNode ( DynamicNode node ) {
 synchronized ( this ) {
 if ( connectionStatus != null ) {
 return ;
 <nb> class DynamicConnectionStatus extends ConnectionStatus {
 private boolean isMongos ;
 }

 - private synchronized ConnectionStatus getConnectionStatus ( ) {
 + private ConnectionStatus getConnectionStatus ( ) {
 if ( connectionStatus == null ) {
 try {
 synchronized ( this ) {


<nb> public class ImapStore extends Store

 List < ImapResponse > responses =
 executeSimpleCommand (
 - String . format ( STRING0 , messageId ) ) ;
 + String . format ( STRING1 , messageId ) ) ;
 for ( ImapResponse response1 : responses )
 {
 if ( response1 . mTag == null && response1 . get ( NUMBER0 ) . equals ( STRING2 )

Changed IMAP command UID SEARCH HEADER MESSAGE ID s to UID SEARCH HEADER MESSAGE ID s


<nb> public class BluetoothService extends IBluetooth . Stub {

 handlePanDeviceStateChange ( device , BluetoothPan . STATE_CONNECTING ,
 BluetoothPan . LOCAL_PANU_ROLE ) ;
 - if ( connectPanDeviceNative ( objectPath , STRING0 , STRING1 ) ) {
 + if ( connectPanDeviceNative ( objectPath , STRING0 ) ) {
 log ( STRING2 ) ;
 return true ;
 } else {


<nb> public class PluginController {
 this . pluginManager = pluginManager ;
 }

 - @ requestmapping ( value = STRING0 , method = RequestMethod . GET )
 + @ requestmapping ( value = STRING0 , method = { RequestMethod . GET , RequestMethod . POST , RequestMethod . PUT , RequestMethod . DELETE } )
 public ModelAndView handlePluginInteractRequest (
 @ pathvariable String pluginId ,
 @ pathvariable String requestName ,

Go Server should delegate all HTTP verbs to plugin


<nb> final class ALPNHackClientHelloExplorer {
 SINGLE
 return null ;
 } else if ( firstByte == NUMBER0 ) { SINGLE
 - if ( secondByte == NUMBER1 && thirdByte == NUMBER1 ) {
 - SINGLE
 + if ( secondByte == NUMBER1 && thirdByte >= NUMBER2 && thirdByte <= NUMBER1 ) {
 exploreTLSRecord ( input ,
 firstByte , secondByte , thirdByte , alpnProtocols , null ) ;
 return alpnProtocols ;
 <nb> final class ALPNHackClientHelloExplorer {
 out . write ( helloMajorVersion & NUMBER3 ) ;
 out . write ( helloMinorVersion & NUMBER3 ) ;
 }
 + if ( helloMajorVersion != NUMBER1 && helloMinorVersion != NUMBER1 ) {
 + SINGLE
 + return ;
 + }
 +

 SINGLE
 for ( int i = NUMBER4 ; i < NUMBER5 ; ++ i ) { SINGLE

Check the server hello version not the record layer version


<nb> public class RouteService extends ServiceSupport {

 SINGLE

 - for ( Route route : routes ) {
 - List < Service > services = route . getServicesForRoute ( ) ;
 - for ( Service service : services ) {
 - stopChildService ( service ) ;
 - }
 - }
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 }

 protected LifecycleStrategy getLifecycleStrategy ( ) {

Fixed a bug where we potential start some consumers again when stopping


<nb> public class LightweightThread implements Serializable {
 COMMENT
 public static LightweightThread currentLightweightThread ( ) {
 try {
 - return LightweightThreadForkJoinTask . getCurrent ( ) . getLightweightThread ( ) ;
 + final LightweightThreadForkJoinTask currentFJTask = LightweightThreadForkJoinTask . getCurrent ( ) ;
 + if ( currentFJTask == null )
 + return null ;
 + return currentFJTask . getLightweightThread ( ) ;
 } catch ( ClassCastException e ) {
 return null ;
 }


<nb> public class GELFClientHandlerThread extends Thread {
 Log . crit ( STRING0 + e . toString ( ) ) ;
 } catch ( jave . io . EOFException e ) {
 Log . crit ( STRING1 + e . toString ( ) ) ;
 + } catch ( java . net . SocketException e ) {
 + Log . crit ( STRING2 + e . toString ( ) ) ;
 }
 }

added another exception which has to be caught in the GELF handler thread


<nb> abstract class AbstractGenerator implements Generator {
 boolean generateJPAAnnotations = false ;
 boolean generateValidationAnnotations = false ;

 - GeneratorStrategyWrapper strategy ;
 + protected GeneratorStrategyWrapper strategy ;

 @ override
 public void setStrategy ( GeneratorStrategy strategy ) {

Allow extended classes to access the strategy


<nb> public class BytesContainer {
 offset += read ;
 }

 + public byte [ ] fitBytes ( ) {
 + byte [ ] fitted = new byte [ offset ] ;
 + System . arraycopy ( bytes , NUMBER0 , fitted , NUMBER0 , offset ) ;
 + return fitted ;
 + }
 +
 }
 <nb> public class ORecordSerializerBinary implements ORecordSerializer {
 int pos = container . alloc ( NUMBER1 ) ;
 container . bytes [ pos ] = LAST_RECORD_VERSION ;
 serializerByVersion [ LAST_RECORD_VERSION ] . serialize ( ( ODocument ) iSource , container ) ;
 - return container . bytes ;
 +
 + return container . fitBytes ( ) ;
 }

 }

removed empty bytes from the serliazation bytes resutl


<nb> public abstract class PythonRemoteInterpreterManager {
 COMMENT
 COMMENT
 COMMENT
 + @ deprecated
 public abstract ProcessOutput runRemoteProcess ( @ nullable Project project ,
 RemoteSdkCredentials data ,
 @ notnull PyRemotePathMapper pathMapper ,

Add Deprecated to runRemoteProcess interface and implementation methods


<nb> class PowerManagerService extends IPowerManager . Stub
 mWakeLockState = mLocks . gatherState ( ) ;
 SINGLE
 if ( ( wl . flags & PowerManager . ON_AFTER_RELEASE ) != NUMBER0 ) {
 - userActivity ( SystemClock . uptimeMillis ( ) , false ) ;
 + userActivity ( SystemClock . uptimeMillis ( ) , - NUMBER1 , false , OTHER_EVENT , false ) ;
 }
 setPowerState ( mWakeLockState | mUserState ) ;
 }


<nb> public class MustacheLetterTest extends CamelTestSupport {
 public void testMustacheLetter ( ) throws Exception {
 MockEndpoint mock = getMockEndpoint ( STRING0 ) ;
 mock . expectedMessageCount ( NUMBER0 ) ;
 - mock . expectedBodiesReceived ( STRING1
 - + STRING2 ) ;
 + mock . message ( NUMBER1 ) . body ( ) . contains ( STRING3 ) ;

 template . send ( STRING4 , createLetter ( ) ) ;


<nb> public class Config extends HashMap < String , Object > {
 public static final String STORM_META_SERIALIZATION_DELEGATE = STRING0 ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 @ isstringlist


<nb> public class MultiDexHelper {
 if ( extractedFile . isFile ( ) ) {
 sourcePaths . add ( extractedFile . getAbsolutePath ( ) ) ;
 SINGLE
 - } else {
 - throw new IOException ( STRING0 +
 - extractedFile . getPath ( ) + STRING1 ) ;
 }
 }

Fixing migration to single dex after multidex


<nb> public interface ModuleConfigManager {
 String getStringVariable ( String moduleName , String propertyName , String defaultValue ) ;
 int getIntVariable ( String moduleName , String propertyName , int defaultValue ) ;
 float getFloatVariable ( String moduleName , String propertyName , float defaultValue ) ;
 + boolean getBooleanVariable ( String moduleName , String propertyName , boolean defaultValue ) ;
 }
 <nb> public class ModuleConfigSystem extends BaseComponentSystem implements ModuleCon
 return getVariable ( moduleName , propertyName , Float : : parseFloat , defaultValue ) ;
 }

 + @ override
 + public boolean getBooleanVariable ( String moduleName , String propertyName , boolean defaultValue ) {
 + return getVariable ( moduleName , propertyName , Boolean : : parseBoolean , defaultValue ) ;
 + }
 +
 private < T > T getVariable ( String moduleName , String propertyName , Function < String , T > extractFunction , T defaultValue ) {
 Map < String , String > moduleProperties = propertiesPerModule . get ( moduleName ) ;
 if ( moduleProperties == null ) {

Added support for boolean module config variables


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class ServiceState implements Parcelable {
 return TelephonyManager . NETWORK_TYPE_LTE ;
 case ServiceState . RIL_RADIO_TECHNOLOGY_HSPAP :
 return TelephonyManager . NETWORK_TYPE_HSPAP ;
 + case ServiceState . RIL_RADIO_TECHNOLOGY_GSM :
 + return TelephonyManager . NETWORK_TYPE_GSM ;
 default :
 return TelephonyManager . NETWORK_TYPE_UNKNOWN ;
 }
 <nb> public class TelephonyManager {
 public static final int NETWORK_TYPE_EHRPD = NUMBER0 ;
 COMMENT
 public static final int NETWORK_TYPE_HSPAP = NUMBER1 ;
 + COMMENT
 + public static final int NETWORK_TYPE_GSM = NUMBER2 ;

 COMMENT
 COMMENT
 <nb> public class TelephonyManager {
 public static int getNetworkClass ( int networkType ) {
 switch ( networkType ) {
 case NETWORK_TYPE_GPRS :
 + case NETWORK_TYPE_GSM :
 case NETWORK_TYPE_EDGE :
 case NETWORK_TYPE_CDMA :
 case NETWORK_TYPE_1xRTT :
 <nb> public class TelephonyManager {
 return STRING0 ;
 case NETWORK_TYPE_HSPAP :
 return STRING1 ;
 + case NETWORK_TYPE_GSM :
 + return STRING2 ;
 default :
 return STRING3 ;
 }


<nb> public class UpdateIntegrationTest extends SQLTransportIntegrationTest {
 execute ( STRING0 , new Object [ ] { map } ) ;
 assertEquals ( NUMBER0 , response . rowCount ( ) ) ;
 refresh ( ) ;
 + waitNoPendingTasksOnAll ( ) ;

 Map < String , Object > new_map = new HashMap < > ( ) ;
 new_map . put ( STRING1 , NUMBER0 ) ;


<nb> public abstract class Request < T > implements Comparable < Request < T > > {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + public Response . ErrorListener getErrorListener ( ) {
 + return mErrorListener ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 public int getTrafficStatsTag ( ) {

Add a public accessor for a Request s ErrorListener


<nb> public class TestNonBlockingAPI extends TomcatBaseTest {
 @ override
 public void onWritePossible ( ) throws IOException {
 long start = System . currentTimeMillis ( ) ;
 - long end = System . currentTimeMillis ( ) ;
 int before = written ;
 while ( written < WRITE_SIZE &&
 ctx . getResponse ( ) . getOutputStream ( ) . isReady ( ) ) {
 <nb> public class TestNonBlockingAPI extends TomcatBaseTest {
 SINGLE
 ctx . getResponse ( ) . flushBuffer ( ) ;
 }
 - log . info ( STRING0 + ( end - start ) +
 + log . info ( STRING1 + ( System . currentTimeMillis ( ) - start ) +
 STRING2 + before + STRING3 + written ) ;
 SINGLE
 if ( ctx . getResponse ( ) . getOutputStream ( ) . isReady ( ) &&


<nb> public abstract class BaseSprite extends BaseRectangle {
 return this . mTextureRegion ;
 }

 + public void setTextureRegionFlippedHorizontal ( final boolean pFlippedHorizontal ) {
 + this . mTextureRegion . setFlippedHorizontal ( pFlippedHorizontal ) ;
 + }
 +
 + public void setTextureRegionFlippedVertical ( final boolean pFlippedVertical ) {
 + this . mTextureRegion . setFlippedVertical ( pFlippedVertical ) ;
 + }
 +
 SINGLE
 SINGLE
 SINGLE

Added convenience methods in BaseSprite to flip its TextureRegion horizontally or vertically


<nb> public class MapInfoLayer extends OsmandMapLayer {
 themeId = calcThemeId ;
 boolean textBold = following ;
 int textColor = nightMode ? view . getResources ( ) . getColor ( R . color . widgettext_night ) : Color . BLACK ;
 + SINGLE
 int textShadowColor = transparent && ! nightMode ? Color . WHITE : NUMBER0 ;
 int boxTop ;
 int boxTopStack ;
 <nb> public class RulerControl extends MapControls {

 SINGLE
 SINGLE
 - SINGLE
 + SINGLE

 ShadowText cacheRulerText = null ;
 double cacheRulerZoom = NUMBER1 ;

add comments for night view readability fixes


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public abstract class AbstractArgumentExtractor implements
 - ArgumentExtractor {
 + public abstract class AbstractArgumentExtractor implements ArgumentExtractor {

 - private final Logger logger = LoggerFactory . getLogger ( getClass ( ) ) ;
 + COMMENT
 + COMMENT
 + COMMENT
 + protected final Logger logger = LoggerFactory . getLogger ( getClass ( ) ) ;

 + @ override
 public final WebApplicationService extractService ( final HttpServletRequest request ) {
 final WebApplicationService service = extractServiceInternal ( request ) ;

Making the logger instance available to extensions


<nb> public class Main extends Application {
 SINGLE
 if ( params == RegTestParams . get ( ) ) {
 bitcoin . connectToLocalHost ( ) ; SINGLE
 - } else if ( params == MainNetParams . get ( ) ) {
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - bitcoin . setCheckpoints ( getClass ( ) . getResourceAsStream ( STRING0 ) ) ;
 } else if ( params == TestNet3Params . get ( ) ) {
 - bitcoin . setCheckpoints ( getClass ( ) . getResourceAsStream ( STRING1 ) ) ;
 SINGLE
 bitcoin . useTor ( ) ;
 }

Fix WalletTemplate now that checkpoints are included


<nb> public class ObjcProtoLibrary implements RuleConfiguredTargetFactory {
 actionsBuilder
 . registerCompileAndArchiveActions (
 compilationArtifacts , common . getObjcProvider ( ) , OptionsProvider . DEFAULT ,
 - COMMENT
 + ruleContext . getConfiguration ( ) . isCodeCoverageEnabled ( ) ) ;
 actionsBuilder . registerXcodegenActions (
 new ObjcRuleClasses . Tools ( ruleContext ) ,
 ruleContext . getImplicitOutputArtifact ( XcodeSupport . PBXPROJ ) ,

Compiling protos should generate coverage files


<nb> public interface SecurityLogger extends BasicLogger {
 COMMENT
 COMMENT
 COMMENT
 - @ message ( id = NONE , value = STRING0 )
 + @ message ( id = NUMBER0 , value = STRING0 )
 IllegalArgumentException incorrectKeystoreParameters ( final String keystoreName ) ;

 }

Revise NONE id in previous fix which should only be used for vault logging messages


<nb> public class ContextMenuAdapter {
 tv . setCompoundDrawables ( imageId , null , null , null ) ;
 tv . setCompoundDrawablePadding ( paddingInPixels ) ;
 } else {
 - Drawable drawable = ContextCompat . getDrawable ( getContext ( ) , item . getLightIcon ( ) ) ;
 - DrawableCompat . setTint ( drawable , item . getThemedColor ( getContext ( ) ) ) ;
 - if ( drawable != null ) {
 + if ( item . getLightIcon ( ) != - NUMBER0 ) {
 + Drawable drawable = ContextCompat . getDrawable ( getContext ( ) , item . getLightIcon ( ) ) ;
 + DrawableCompat . setTint ( drawable , item . getThemedColor ( getContext ( ) ) ) ;
 ( ( AppCompatImageView ) convertView . findViewById ( R . id . icon ) ) . setImageDrawable ( drawable ) ;
 convertView . findViewById ( R . id . icon ) . setVisibility ( View . VISIBLE ) ;
 } else if ( convertView . findViewById ( R . id . icon ) != null ) {


<nb> import NAMESPACE ;
 COMMENT
 public abstract class ActionBarSherlock {
 protected static final String TAG = STRING0 ;
 - protected static final boolean DEBUG = true ;
 + protected static final boolean DEBUG = false ;

 private static final Class < ? > [ ] CONSTRUCTOR_ARGS = new Class [ ] { Activity . class , int . class } ;
 private static final HashMap < Implementation , Class < ? extends ActionBarSherlock > > IMPLEMENTATIONS =
 <nb> import NAMESPACE ;
 import NAMESPACE ;

 public abstract class SherlockFragmentActivity extends FragmentActivity implements OnCreatePanelMenuListener , OnPreparePanelListener , OnMenuItemSelectedListener , OnActionModeStartedListener , OnActionModeFinishedListener {
 - static final boolean DEBUG = true ;
 + static final boolean DEBUG = false ;
 private static final String TAG = STRING1 ;

 private ActionBarSherlock mSherlock ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TestPullUpdates
 }

 @ test
 + @ ignore ( STRING0 )
 public void makeSureUpdatePullerGetsGoingAfterMasterSwitch ( ) throws Throwable
 {
 File root = TargetDirectory . forTest ( getClass ( ) ) . directory ( STRING1 ) ;

Ignores TestPullUpdates test as it s being fragile


<nb> public class RequestCounter {
 SINGLE
 latencyMax , valueBytesMax , keyBytesMax , getAllKeysCountMax ,
 SINGLE
 - getAllKeysCountSampledTotal ,
 + getAllKeysCountSampledTotal , emptyResponseKeysSampledTotal ,
 SINGLE
 - requestSampledCount , emptyResponseKeysSampledCount ,
 + requestSampledCount ,
 SINGLE
 requestAllTimeCount ,
 SINGLE
 <nb> public class RequestCounter {
 String emptyResponseKeysSensorName = name + STRING0 ;
 this . emptyResponseKeysSensor =
 metricsRepository . sensor ( emptyResponseKeysSensorName , metricConfig , emptyResponseKeysParentSensors ) ;
 - this . emptyResponseKeysSampledCount =
 - this . emptyResponseKeysSensor . add ( emptyResponseKeysSensorName + STRING1 , new SampledCount ( ) ) ;
 + this . emptyResponseKeysSampledTotal =
 + this . emptyResponseKeysSensor . add ( emptyResponseKeysSensorName + STRING2 , new SampledTotal ( ) ) ;

 SINGLE

 <nb> public class RequestCounter {
 COMMENT
 COMMENT
 public long getNumEmptyResponses ( ) {
 - return ( long ) emptyResponseKeysSampledCount . value ( ) ;
 + return ( long ) emptyResponseKeysSampledTotal . value ( ) ;
 }

 COMMENT

Fixed a problem with RequestCounter getNumEmptyResponses


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;

 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 public class DefaultSharedByteArrayParams {
 SINGLE
 - private static final int DEFAULT_MAX_BYTE_ARRAY_SIZE = NUMBER0 * ByteConstants . MB ;
 + public static final int DEFAULT_MAX_BYTE_ARRAY_SIZE = NUMBER0 * ByteConstants . MB ;
 SINGLE
 private static final int DEFAULT_MIN_BYTE_ARRAY_SIZE = NUMBER1 * ByteConstants . KB ;

 private DefaultSharedByteArrayParams ( ) {
 }

 + public static SparseIntArray generateBuckets ( int min , int max ) {
 + SparseIntArray buckets = new SparseIntArray ( ) ;
 + for ( int i = min ; i <= max ; i *= NUMBER2 ) {
 + buckets . put ( i , NUMBER3 ) ;
 + }
 + return buckets ;
 + }
 +
 public static PoolParams get ( ) {
 return new PoolParams (
 DEFAULT_MAX_BYTE_ARRAY_SIZE ,
 DEFAULT_MAX_BYTE_ARRAY_SIZE ,
 - null ,
 + generateBuckets ( DEFAULT_MIN_BYTE_ARRAY_SIZE , DEFAULT_MAX_BYTE_ARRAY_SIZE ) ,
 DEFAULT_MIN_BYTE_ARRAY_SIZE ,
 DEFAULT_MAX_BYTE_ARRAY_SIZE
 ) ;


<nb> public class AsyncHttpServer {
 response . end ( ) ;
 return ;
 }
 - callback . onConnected ( new WebSocketImpl ( request , response ) , request . getHeaders ( ) ) ;
 + callback . onConnected ( createWebSocket ( request , response ) , request . getHeaders ( ) ) ;
 }
 } ) ;
 }

 + protected WebSocket createWebSocket ( final AsyncHttpServerRequest request , final AsyncHttpServerResponse response ) {
 + return new WebSocketImpl ( request , response ) ;
 + }
 +
 public void get ( String regex , HttpServerRequestCallback callback ) {
 addAction ( AsyncHttpGet . METHOD , regex , callback ) ;
 }

Added protected API for WebSocket creation


<nb> public class SASLAuthentication {

 private void sendChallenge ( byte [ ] challenge ) {
 StringBuilder reply = new StringBuilder ( NUMBER0 ) ;
 + String challenge_b64 = StringUtils . encodeBase64 ( challenge ) . trim ( ) ;
 + if ( STRING0 . equals ( challenge_b64 ) ) {
 + challenge_b64 = STRING1 ; SINGLE
 + }
 reply . append (
 STRING2 ) ;
 - reply . append ( StringUtils . encodeBase64 ( challenge ) . trim ( ) ) ;
 + reply . append ( challenge_b64 ) ;
 reply . append ( STRING3 ) ;
 connection . deliverRawText ( reply . toString ( ) ) ;
 }


<nb> public class MuzeiWatchFace extends CanvasWatchFaceService {

 @ override
 public void onPeekCardPositionUpdate ( Rect bounds ) {
 - super . onPeekCardPositionUpdate ( bounds ) ;
 if ( Log . isLoggable ( TAG , Log . DEBUG ) ) {
 Log . d ( TAG , STRING0 + bounds ) ;
 }

Remove double call to super onPeekCardPositionUpdate from watch face


<nb> public class LibraryImpl implements LibraryEx . ModifiableModelEx , LibraryEx {
 for ( VirtualFile file : myRoots . get ( rootType ) . getFiles ( ) ) {
 if ( file . isDirectory ( ) ) {
 final Boolean expandRecursively = myJarDirectories . get ( file . getUrl ( ) ) ;
 - if ( expandRecursively != null ) {
 + if ( Boolean . TRUE . equals ( expandRecursively ) ) {
 addChildren ( file , expanded , expandRecursively . booleanValue ( ) ) ;
 continue ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class AttributeDefinition {
 if ( operationObject . has ( name ) ) {
 node . set ( operationObject . get ( name ) ) ;
 }
 + if ( isAllowExpression ( ) && node . getType ( ) == ModelType . STRING ) {
 + node = ParseUtils . parsePossibleExpression ( node . asString ( ) ) ;
 + }
 if ( ! node . isDefined ( ) && defaultValue . isDefined ( ) ) {
 validator . validateParameter ( name , defaultValue ) ;
 } else {

Handle string expressions in operation values


<nb> public class OtrAndroidKeyManagerImpl extends IOtrKeyManager . Stub implements Otr
 return ;

 FileInputStream fis = null ;
 -
 + OpenSSLPBEInputStream encIS = null ;
 try {

 fis = new FileInputStream ( mStoreFile ) ;

 SINGLE
 - OpenSSLPBEInputStream encIS = new OpenSSLPBEInputStream ( fis , STORE_ALGORITHM , NUMBER0 , password . toCharArray ( ) ) ;
 + encIS = new OpenSSLPBEInputStream ( fis , STORE_ALGORITHM , NUMBER0 , password . toCharArray ( ) ) ;

 mProperties . load ( encIS ) ;

 } catch ( FileNotFoundException fnfe ) {
 OtrDebugLogger . log ( STRING0 ) ;
 mStoreFile . getParentFile ( ) . mkdirs ( ) ;
 -
 -
 - }
 + } finally {
 + encIS . close ( ) ;
 + fis . close ( ) ;
 + }
 }

 public void setProperty ( String id , byte [ ] value ) {


<nb> public class ZRTPTransformEngine
 private short senderZrtpSeqNo = NUMBER0 ;

 COMMENT
 - COMMENT
 - COMMENT
 - private long sendPacketCount = NUMBER0 ;
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ZRTPTransformEngine
 }

 SINGLE
 - sendPacketCount ++ ;
 if ( srtpOutTransformer == null )
 {
 return pkt ;


<nb> public class ComputationStepRegistry implements ServerComponent {
 public List < ComputationStep > steps ( ) {
 List < ComputationStep > steps = Lists . newArrayList ( ) ;
 SINGLE
 - steps . add ( pico . getComponentByType ( DigestReportStep . class ) ) ;
 + SINGLE
 + SINGLE
 SINGLE
 steps . add ( pico . getComponentByType ( SynchronizeProjectPermissionsStep . class ) ) ;
 SINGLE
 <nb> public class ComputationStepRegistryMediumTest {
 @ test
 public void steps_returned_in_the_right_order ( ) throws Exception {
 List < Class < ? extends ComputationStep > > wishStepsClasses = Lists . newArrayList (
 - DigestReportStep . class ,
 + SINGLE
 SynchronizeProjectPermissionsStep . class ,
 SwitchSnapshotStep . class ,
 InvalidatePreviewCacheStep . class ,

Remove DigestReportStep from Computation steps as it throw an NPE in some cases


<nb> public class Log {
 COMMENT
 COMMENT
 public static final int SEVERITY_EMERG = NUMBER0 ;
 +
 + private Log ( ) { }

 COMMENT
 COMMENT
 <nb> public class Main {
 COMMENT
 COMMENT
 public static Properties masterConfig = null ;
 -
 +
 + private Main ( ) { }
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> package NAMESPACE ;
 COMMENT
 public class Tools {

 + private Tools ( ) { }
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> package NAMESPACE ;
 COMMENT
 COMMENT
 public class ReceiveHookManager {
 +
 + private ReceiveHookManager ( ) { }
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class GELF {
 COMMENT
 public static final String HEADER_TYPE_CHUNKED_GELF = STRING0 ;

 + private GELF ( ) { }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class GradleDistributionExecuter extends AbstractGradleExecuter implement
 TestFile tmpDir = getTmpDir ( ) ;
 if ( tmpDir != null ) {
 tmpDir . deleteDir ( ) . createDir ( ) ;
 - forkingGradleExecuter . addGradleOpts ( String . format ( STRING0 , tmpDir ) ) ;
 + forkingGradleExecuter . addGradleOpts ( String . format ( STRING1 , tmpDir ) ) ;
 }
 returnedExecuter = forkingGradleExecuter ;
 }

Quote the tmp dir arg in a way that works for winblows and nix


<nb> public class IndexVectorMapCreator extends AbstractIndexPartCreator {

 private Node checkOuterWaysEncloseInnerWays ( List < List < Way > > completedRings , Map < Entity , String > entities ) {
 List < List < Way > > innerWays = new ArrayList < List < Way > > ( ) ;
 - Boundary outerBoundary = new Boundary ( ) ;
 + Boundary outerBoundary = new Boundary ( true ) ;
 Node toReturn = null ;
 for ( List < Way > ring : completedRings ) {
 boolean innerType = STRING0 . equals ( entities . get ( ring . get ( NUMBER0 ) ) ) ; SINGLE


<nb> public class StageStateMachine
 public synchronized boolean transitionToScheduled ( )
 {
 schedulingComplete . compareAndSet ( null , DateTime . now ( ) ) ;
 - return stageState . setIf ( SCHEDULED , currentState - > currentState == PLANNED || currentState == SCHEDULING ) ;
 + return stageState . setIf ( SCHEDULED , currentState - > currentState == PLANNED || currentState == SCHEDULING || currentState == SCHEDULING_SPLITS ) ;
 }

 public boolean transitionToRunning ( )

Allow Stage state transition from SCHEDULING_SPLITS to SCHEDULED


<nb> public class SimpleDiffViewer extends TwosideTextDiffViewer {

 private class MyToggleExpandByDefaultAction extends ToggleExpandByDefaultAction {
 @ override
 - public boolean isEnabled ( ) {
 - return myFoldingModel != null ;
 - }
 -
 - @ override
 protected void expandAll ( boolean expand ) {
 - assert myFoldingModel != null ;
 - myFoldingModel . expandAll ( expand ) ;
 + if ( myFoldingModel != null ) myFoldingModel . expandAll ( expand ) ;
 }
 }

 <nb> public abstract class TextDiffViewerBase extends ListenerDiffViewerBase {
 }

 @ override
 + public boolean isVisible ( ) {
 + return getTextSettings ( ) . getContextRange ( ) != - NUMBER0 ;
 + }
 +
 + @ override
 public boolean isSelected ( AnActionEvent e ) {
 return ! getTextSettings ( ) . isExpandByDefault ( ) ;
 }

do not disable ToggleExpand action if there are no folding model


<nb> public class FluxParser {
 String propertiesFile , boolean envSub ) throws IOException {
 Yaml yaml = yaml ( ) ;
 InputStream in = FluxParser . class . getResourceAsStream ( resource ) ;
 + if ( in == null ) {
 + LOG . error ( STRING0 + resource ) ;
 + System . exit ( NUMBER0 ) ;
 + }
 TopologyDef topology = loadYaml ( yaml , in , propertiesFile , envSub ) ;
 in . close ( ) ;
 if ( dumpYaml ) {

when a resource can t be found log an error and exit rather than throw NPE


<nb> public class SearchCoreFactory {
 SearchResult res = new SearchResult ( phrase ) ;
 res . localeName = pt . getTranslation ( ) ;
 res . object = pt ;
 - res . priority = SEARCH_AMENITY_TYPE_PRIORITY + ( pt instanceof PoiCategory ? FLOAT0 : FLOAT1 ) ;
 + res . priority = SEARCH_AMENITY_TYPE_PRIORITY ;
 res . priorityDistance = NUMBER0 ;
 res . objectType = ObjectType . POI_TYPE ;
 resultMatcher . publish ( res ) ;


<nb> import NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ReachTest extends TestCase {
 List < RoutingRequest > optionlist = Arrays . asList ( options ) ;
 SINGLE
 SINGLE
 - graph . save ( new File ( STRING0 ) ) ;
 + graph . save ( File . createTempFile ( STRING1 , STRING2 ) ) ;
 }

 void makeGraph ( Graph graph ) {

give reach test graph a unique name and OS independent location


<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Fixed missing opening quotes for href in javadoc


<nb> import NAMESPACE ;
 private void maybeContinueLoading ( ) {
 long nextLoadPositionUs = loadingPeriod . mediaPeriod . getNextLoadPositionUs ( ) ;
 if ( nextLoadPositionUs != C . END_OF_SOURCE_US ) {
 - long positionUs = internalPositionUs - loadingPeriod . offsetUs ;
 + long positionUs = internalPositionUs - loadingPeriod . offsetUs + loadingPeriod . startPositionUs ;
 long bufferedDurationUs = nextLoadPositionUs - positionUs ;
 boolean continueLoading = loadControl . shouldContinueLoading ( bufferedDurationUs ) ;
 setIsLoading ( continueLoading ) ;
 <nb> public final class ConcatenatingMediaSource implements MediaSource {
 @ override
 public long getWindowOffsetInFirstPeriodUs ( int windowIndex ) {
 int sourceIndex = getSourceIndexForWindow ( windowIndex ) ;
 - int firstWindowIndexInSource = getFirstPeriodIndexInSource ( sourceIndex ) ;
 + int firstWindowIndexInSource = getFirstWindowIndexInSource ( sourceIndex ) ;
 return timelines [ sourceIndex ] . getWindowOffsetInFirstPeriodUs (
 windowIndex - firstWindowIndexInSource ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GoMultiplePackagesInspection extends GoInspectionBase {

 @ override
 protected void checkFile ( @ notnull GoFile file , @ notnull ProblemsHolder problemsHolder ) {
 - if ( ! GoUtil . allowed ( file ) ) return ;
 + if ( GoUtil . directoryToIgnore ( file . getName ( ) ) || ( ( ScratchFileType ) ScratchFileType . INSTANCE ) . isMyFileType ( file . getVirtualFile ( ) ) ) return ;
 GoPackageClause packageClause = file . getPackage ( ) ;
 if ( packageClause != null ) {
 String packageName = file . getPackageName ( ) ;

Do not inspect scratch files for multiple packages better ignore check


<nb> public abstract class OAbstractPaginatedStorage extends OStorageAbstract impleme

 if ( checkPointRecord != null ) {
 OLogManager . instance ( ) . warn ( this , STRING0 ) ;
 -
 + return restoreFromCheckPoint ( ( OAbstractCheckPointStartRecord ) checkPointRecord ) ;
 } else {
 OLogManager . instance ( ) . warn ( this , STRING1 ) ;
 return restoreFromBegging ( ) ;

Fixed bug when previous checkpoint is not accounted


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;

 public class BluetoothInstrumentation extends Instrumentation {
 <nb> public class BluetoothInstrumentation extends Instrumentation {
 getAddress ( ) ;
 } else if ( STRING0 . equals ( command ) ) {
 getBondedDevices ( ) ;
 + } else if ( STRING1 . equals ( command ) ) {
 + enableBtSnoop ( ) ;
 } else {
 finish ( null ) ;
 }
 <nb> public class BluetoothInstrumentation extends Instrumentation {
 finish ( mSuccessResult ) ;
 }

 + public void enableBtSnoop ( ) {
 + Assert . assertTrue ( STRING2 ,
 + getBluetoothAdapter ( ) . configHciSnoopLog ( true ) ) ;
 + finish ( mSuccessResult ) ;
 + }
 +
 public void finish ( Bundle result ) {
 if ( result == null ) {
 result = new Bundle ( ) ;


<nb> public abstract class ODatabasePoolAbstract < DB extends ODatabase > extends OAdapt

 if ( pool != null ) {
 for ( DB db : pool . getResources ( ) ) {
 - if ( db . getStorage ( ) . getStatus ( ) == OStorage . STATUS . OPEN )
 + final OStorage stg = db . getStorage ( ) ;
 + if ( stg != null && stg . getStatus ( ) == OStorage . STATUS . OPEN )
 try {
 OLogManager . instance ( ) . debug ( this , STRING0 , db . getName ( ) ) ;
 ( ( ODatabasePooled ) db ) . forceClose ( ) ;


<nb> public class AtmosphereServlet extends AbstractAsyncServlet implements CometProc
 ( ( AsynchronousProcessor ) cometSupport ) . shutdown ( ) ;
 }

 + SINGLE
 + BroadcasterConfig bc = null ;
 + for ( Entry < String , AtmosphereHandlerWrapper > entry : atmosphereHandlers . entrySet ( ) ) {
 + AtmosphereHandlerWrapper handlerWrapper = entry . getValue ( ) ;
 + handlerWrapper . atmosphereHandler . destroy ( ) ;
 + }
 +
 BroadcasterFactory factory = BroadcasterFactory . getDefault ( ) ;
 if ( factory != null ) {
 factory . destroy ( ) ;


<nb> public abstract class AbsActionBarView extends ViewGroup {

 @ override
 public void setVisibility ( int visibility ) {
 - if ( mVisibilityAnim != null ) {
 - mVisibilityAnim . end ( ) ;
 + if ( visibility != getVisibility ( ) ) {
 + if ( mVisibilityAnim != null ) {
 + mVisibilityAnim . end ( ) ;
 + }
 + super . setVisibility ( visibility ) ;
 }
 - super . setVisibility ( visibility ) ;
 }

 public boolean showOverflowMenu ( ) {

Fix stack overflow during animation of action bar


<nb> public class TransactionSignature extends ECKey . ECDSASignature {
 COMMENT
 COMMENT
 public static TransactionSignature dummy ( ) {
 - BigInteger val = BigInteger . ONE . shiftLeft ( NUMBER0 * NUMBER1 ) ; SINGLE
 + BigInteger val = BigInteger . ONE . shiftLeft ( NUMBER0 * NUMBER1 ) ; SINGLE
 return new TransactionSignature ( val , val ) ;
 }

Fix a bad comment in TransactionSignature


<nb> public abstract class AbstractJPATest {

 @ test
 @ nobatoojpa
 - @ noeclipselink
 public void Treat ( ) {
 QDomesticCat domesticCat = QDomesticCat . domesticCat ;
 query ( ) . from ( cat )


<nb> public class Lists {
 return Collections . isNullOrEmpty ( list ) ? None . < T > instance ( ) : new Some < T > ( list . get ( list
 . size ( ) - NUMBER0 ) ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static < T > T [ ] toArray ( List < T > list ) {
 + @ suppresswarnings ( STRING0 )
 + final T [ ] array = ( T [ ] ) new Object [ list . size ( ) ] ;
 + return list . toArray ( array ) ;
 + }

 }


<nb> public class PacketExtensionFilter implements PacketFilter {
 this ( null , namespace ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public PacketExtensionFilter ( PacketExtension packetExtension ) {
 this ( packetExtension . getElementName ( ) , packetExtension . getNamespace ( ) ) ;
 }

 - public PacketExtensionFilter ( Class < ? extends PacketExtension > packetExtensionClass ) throws InstantiationException , IllegalAccessException {
 - this ( packetExtensionClass . newInstance ( ) ) ;
 - }
 -
 public boolean accept ( Packet packet ) {
 return packet . hasExtension ( elementName , namespace ) ;
 }

Remove PacketExtensionFilter Class constructor


<nb> class PackageManagerService extends IPackageManager . Stub {
 Log . v ( TAG , STRING0 + packageName + STRING1 + path ) ;
 PackageSetting pkgSetting ;
 final int uid = Binder . getCallingUid ( ) ;
 - boolean allowedByPermission = false ;
 + final int permission = mContext . checkCallingPermission (
 + android . Manifest . permission . INSTALL_PACKAGES ) ;
 + final boolean allowedByPermission = ( permission == PackageManager . PERMISSION_GRANTED ) ;
 synchronized ( mPackages ) {
 pkgSetting = mSettings . mPackages . get ( packageName ) ;
 if ( pkgSetting == null ) {

Allow things that can install packages to set Obb paths


<nb> public class CreateColumnFamilyStatement extends SchemaAlteringStatement
 {
 AbstractType type = columns . get ( t ) ;
 if ( type == null )
 - throw new InvalidRequestException ( String . format ( STRING0 , t ) ) ;
 + throw new InvalidRequestException ( String . format ( STRING1 , t ) ) ;
 columns . remove ( t ) ;
 Boolean isReversed = definedOrdering . get ( t ) ;
 return isReversed != null && isReversed ? ReversedType . getInstance ( type ) : type ;


<nb> import NAMESPACE ;
 COMMENT
 public class ControlledRandom extends Random {
 public ControlledRandom ( ) {
 - super ( ) ;
 + super ( NUMBER0 ) ;
 }
 COMMENT
 COMMENT


<nb> public final class DescriptorToDeclarationUtil {
 }

 @ nullable
 - public static PsiElement getDeclaration ( JetFile file , DeclarationDescriptor descriptor , BindingContext bindingContext ) {
 + public static PsiElement getDeclaration (
 + @ notnull JetFile file ,
 + @ notnull DeclarationDescriptor descriptor ,
 + @ notnull BindingContext bindingContext
 + ) {
 return getDeclaration ( file . getProject ( ) , descriptor , bindingContext ) ;
 }

 @ nullable
 - public static PsiElement getDeclaration ( Project project , DeclarationDescriptor descriptor , BindingContext bindingContext ) {
 + public static PsiElement getDeclaration (
 + @ notnull Project project ,
 + @ notnull DeclarationDescriptor descriptor ,
 + @ notnull BindingContext bindingContext
 + ) {
 Collection < PsiElement > elements = BindingContextUtils . descriptorToDeclarations ( bindingContext , descriptor ) ;
 if ( elements . isEmpty ( ) ) {
 elements = findDeclarationsForDescriptorWithoutTrace ( project , descriptor ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

Added a necessary import statement in RepairJob for ReadOnlyStorageConfiguration


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class ConfigUtils {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - public static void set ( Map < String , String > overlay , String key , Path value ) throws IOException {
 - overlay . put ( key , STRING0 + value . toRealPath ( LinkOption . NOFOLLOW_LINKS ) . toUri ( ) + STRING0 ) ;
 + public static void set ( Map < String , String > overlay , String key , Path path ) throws IOException {
 + Path finalPath = Files . exists ( path , LinkOption . NOFOLLOW_LINKS ) ?
 + path . toRealPath ( LinkOption . NOFOLLOW_LINKS ) :
 + path ;
 + overlay . put ( key , STRING0 + finalPath . toUri ( ) + STRING0 ) ;
 }

 COMMENT

Fix new ConfigUtils handling of Path that does not exist


<nb> public class DatasourceIngestionSpec
 return new DatasourceIngestionSpec ( dataSource , interval , filter , granularity , dimensions , metrics ) ;
 }

 + public DatasourceIngestionSpec withQueryGranularity ( QueryGranularity granularity )
 + {
 + return new DatasourceIngestionSpec ( dataSource , interval , filter , granularity , dimensions , metrics ) ;
 + }
 +
 @ override
 public boolean equals ( Object o )
 {
 <nb> public class DatasourcePathSpec implements PathSpec
 updatedIngestionSpec = updatedIngestionSpec . withMetrics ( Lists . newArrayList ( metrics ) ) ;
 }

 + updatedIngestionSpec = updatedIngestionSpec . withQueryGranularity ( config . getGranularitySpec ( ) . getQueryGranularity ( ) ) ;
 +
 job . getConfiguration ( ) . set ( DatasourceInputFormat . CONF_DRUID_SCHEMA , mapper . writeValueAsString ( updatedIngestionSpec ) ) ;
 job . getConfiguration ( ) . set ( DatasourceInputFormat . CONF_INPUT_SEGMENTS , mapper . writeValueAsString ( segments ) ) ;
 job . getConfiguration ( ) . set ( DatasourceInputFormat . CONF_MAX_SPLIT_SIZE , String . valueOf ( maxSplitSize ) ) ;

For dataSource inputSpec in hadoop batch ingestion use configured query granularity for reading existing segments instead of NONE


<nb> public abstract class Operation implements DataSerializable {
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class SpringSecurityLdapTemplate extends LdapTemplate {
 SearchControls ctls = new SearchControls ( ) ;
 ctls . setSearchScope ( searchControls . getSearchScope ( ) ) ;
 ctls . setReturningAttributes ( new String [ ] { attributeName } ) ;
 - ctls . setReturningObjFlag ( false ) ;

 search ( base , formattedFilter , ctls , roleMapper ) ;

Removed the line setting returningObj to false


<nb> public class XMPPBOSHConnection extends AbstractXMPPConnection {
 BodyQName . create ( XMPPBOSHConnection . BOSH_URI , STRING0 ) , getServiceName ( ) ) . build ( ) ) ;
 Success success = new Success ( parser . nextText ( ) ) ;
 getSASLAuthentication ( ) . authenticated ( success ) ;
 + break ;
 case STRING1 :
 parseFeatures ( parser ) ;
 break ;

Add missing break statement in BOSHPacketReader


<nb> static public void writeClassFile ( String internalName , byte [ ] bytecode ) throws I
 {
 cfs . write ( bytecode ) ;
 cfs . flush ( ) ;
 - cfs . getFD ( ) . sync ( ) ;
 }
 finally
 {

Remove call to FileDescriptor sync in Compiler writeClassFile


<nb> public class EmmetOptions implements PersistentStateComponent < EmmetOptions > , Exp
 private boolean myBemFilterEnabledByDefault = false ;
 private boolean myEmmetEnabled = true ;
 private int myEmmetExpandShortcut = TemplateSettings . TAB_CHAR ;
 - private boolean myFuzzySearchEnabled = false ;
 + private boolean myFuzzySearchEnabled = true ;
 private boolean myAutoInsertCssPrefixedEnabled = true ;
 private boolean myPreviewEnabled = false ;
 private Set < String > myFiltersEnabledByDefault = ContainerUtil . newHashSet ( ) ;

enable fuzzy abbreviation search by default


<nb> public class I2C {
 transmitting = false ;
 out = null ;
 if ( ret < NUMBER0 ) {
 + if ( ret == - NUMBER1 ) { SINGLE
 + System . err . println ( STRING0 ) ;
 + }
 throw new RuntimeException ( NativeInterface . getError ( ret ) ) ;
 }
 }
 <nb> public class I2C {
 transmitting = false ;
 out = null ;
 if ( ret < NUMBER0 ) {
 + if ( ret == - NUMBER1 ) { SINGLE
 + System . err . println ( STRING0 ) ;
 + }
 throw new RuntimeException ( NativeInterface . getError ( ret ) ) ;
 }


<nb> public class MediaMimeTest extends ActivityInstrumentationTestCase2 < MediaFramewo
 assertMediaPlaybackActivityHandles ( STRING0 ) ;
 }

 - @ mediumtest
 + SINGLE
 + SINGLE
 SINGLE
 SINGLE
 SINGLE

Remove testCheckMediaPlaybackHandlesApplicationItunes from continuous


<nb> public class AvroStreamInputRowParserTest

 public static void assertInputRowCorrect ( InputRow inputRow )
 {
 - Collections . sort ( DIMENSIONS ) ;
 assertEquals ( DIMENSIONS , inputRow . getDimensions ( ) ) ;
 assertEquals ( DATE_TIME . getMillis ( ) , inputRow . getTimestampFromEpoch ( ) ) ;

Remove sorting of dimensions in AvroStreamInputRowParserTest


<nb> class WrapperDrawable extends Drawable {
 public int getIntrinsicWidth ( ) {
 return mDrawable . getIntrinsicWidth ( ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public BitmapDrawable toBitmapDrawable ( ) {
 + return mDrawable ;
 + }
 }


<nb> public class LockPatternKeyguardView extends KeyguardViewBase {
 if ( DEBUG ) Log . d ( TAG , STRING0 ) ;
 mScreenOn = false ;
 mForgotPattern = false ;
 - if ( mBiometricUnlock != null ) {
 - mSuppressBiometricUnlock =
 - mUpdateMonitor . getPhoneState ( ) != TelephonyManager . CALL_STATE_IDLE
 - || mHasDialog ;
 - }

 SINGLE
 if ( mLockScreen != null ) {
 <nb> public class LockPatternKeyguardView extends KeyguardViewBase {
 restartBiometricUnlock = mBiometricUnlock . stop ( ) ;
 }

 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + if ( ! mScreenOn ) {
 + mSuppressBiometricUnlock =
 + mUpdateMonitor . getPhoneState ( ) != TelephonyManager . CALL_STATE_IDLE
 + || mHasDialog ;
 + }
 +
 SINGLE
 SINGLE
 mBiometricUnlock = null ;

Moved setting the flag to suppress face unlock during a phone call


<nb> public class GroupByTypeComparator implements Comparator < NodeDescriptor > {
 }

 private boolean isAbbreviateQualifiedNames ( ) {
 - return myProjectView != null && myProjectView . isSortByType ( myPaneId ) ;
 + return myProjectView != null && myProjectView . isAbbreviatePackageNames ( myPaneId ) ;
 }

 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> final class LabelVisitor {
 COMMENT
 private void visit (
 Target from , Attribute attribute , final Target target , int depth , int count ) {
 - Preconditions . checkNotNull ( target , String . format ( STRING0 ,
 - from == null ? STRING1 : from . getLabel ( ) . toString ( ) ,
 - attribute == null ? STRING1 : attribute . getName ( ) ) ) ;
 + if ( target == null ) {
 + throw new NullPointerException (
 + String . format ( STRING0 ,
 + from == null ? STRING1 : from . getLabel ( ) . toString ( ) ,
 + attribute == null ? STRING1 : attribute . getName ( ) ) ) ;
 + }
 if ( depth > maxDepth ) {
 return ;
 }

Don t waste time formatting an assertion message we re not going to throw


<nb> public class BitSetFlags implements Flags {
 myBitSet = new BitSet ( size ) ;
 }

 + public BitSetFlags ( int size , boolean defaultValue ) {
 + this ( size ) ;
 + if ( defaultValue )
 + setAll ( true ) ;
 + }
 +
 @ override
 public int size ( ) {
 return mySize ;


<nb> public class JsonParser {
 Map map = ( Map ) value ;

 value = mapToBean . map2bean ( map , null ) ;
 - } else if ( value instanceof List ) {
 - SINGLE
 }
 }


<nb> class Task implements DimLayer . DimLayerUser {
 }

 boolean isResizeableByDockedStack ( ) {
 - return mStack != null && getDisplayContent ( ) . getDockedStackLocked ( ) != null &&
 - StackId . isTaskResizeableByDockedStack ( mStack . mStackId ) ;
 + final DisplayContent displayContent = getDisplayContent ( ) ;
 + return displayContent != null && displayContent . getDockedStackLocked ( ) != null
 + && mStack != null && StackId . isTaskResizeableByDockedStack ( mStack . mStackId ) ;
 }

 COMMENT

Fixed NPE in Task isResizeableByDockedStack


<nb> public class TtsService extends Service implements OnCompletionListener {
 try {
 synthAvailable = synthesizerLock . tryLock ( ) ;
 if ( ! synthAvailable ) {
 - mSynthBusy = true ;
 + synchronized ( this ) {
 + mSynthBusy = true ;
 + }
 Thread . sleep ( NUMBER0 ) ;
 Thread synth = ( new Thread ( new SynthThread ( ) ) ) ;
 synth . start ( ) ;
 - mSynthBusy = false ;
 + synchronized ( this ) {
 + mSynthBusy = false ;
 + }
 return ;
 }
 String language = STRING0 ;

Setting the synth busy flag inside a synchronized block for


<nb> public class BasicManagers extends Poller implements Managers {

 public void init ( ) {
 config = ReaderConfig . getInstance ( ) ;
 - doWork ( ) ;
 start ( NUMBER0 ) ;
 }

 <nb> public class BasicReservationService extends Poller implements ReservationServic

 AwsUtils . downloadFileIfNotExist ( config . workS3BucketName , config . workS3BucketPrefix , file ) ;
 if ( ! file . exists ( ) ) {
 - try {
 - poll ( ) ;
 - }
 - catch ( Exception e ) {
 - throw new RuntimeException ( STRING0 + e . getMessage ( ) ) ;
 - }
 - start ( NUMBER1 * NUMBER2 , NUMBER1 * NUMBER2 , true ) ;
 + start ( NUMBER1 * NUMBER2 ) ;
 }
 else {
 try {
 <nb> public class ProcessorConfig extends Config {
 }
 }

 - billingFileProcessor . start ( NUMBER0 ) ;
 + SINGLE
 + billingFileProcessor . start ( NUMBER3 , NUMBER3 * NUMBER4 , true ) ;
 }

 public void shutdown ( ) {

Make slow tasks non blocking during initialisation


<nb> public class SeparatorBasedImporter extends TabularImportingParserBase {
 ) {
 SINGLE
 String sep = JSONUtilities . getString ( options , STRING0 , STRING1 ) ;
 - if ( sep == null ) {
 + if ( sep == null || STRING2 . equals ( sep ) ) {
 sep = STRING1 ;
 }
 boolean processQuotes = JSONUtilities . getBoolean ( options , STRING3 , true ) ;

Fix index out of bounds exception when separator is the empty string


<nb> public abstract class BaseManager {
 return node . isSuperClient ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 protected void log ( final Object obj ) {
 - logger . log ( Level . FINEST , obj . toString ( ) ) ;
 + if ( logger . isLoggable ( Level . FINEST ) ) {
 + logger . log ( Level . FINEST , obj . toString ( ) ) ;
 + }
 }

 protected Packet obtainPacket ( ) {


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 @ runwith ( JUnit4 . class )
 - public class JimfsWindowsLikeIntegrationTest extends AbstractJimfsIntegrationTest {
 + public class JimfsWindowsLikeFileSystemTest extends AbstractJimfsIntegrationTest {

 @ override
 protected FileSystem createFileSystem ( ) {


<nb> public class ShowsActivity extends BaseTopShowsActivity implements OnFirstRunDis
 SINGLE
 for ( int i = fetchCount . get ( ) ; i < count ; i ++ ) {
 if ( isCancelled ( ) ||
 - Utils . isAllowedLargeDataConnection ( ShowsActivity . this , false ) ) {
 + ! Utils . isAllowedLargeDataConnection ( ShowsActivity . this , false ) ) {
 SINGLE
 return UPDATE_INCOMPLETE ;
 }


<nb> public final class CaptureActivity extends Activity implements SurfaceHolder . Cal
 try {
 return getExternalFilesDir ( Environment . MEDIA_MOUNTED ) ;
 } catch ( NullPointerException e ) {
 + SINGLE
 Log . e ( TAG , STRING0 ) ;
 - showErrorMessage ( STRING1 , STRING2 ) ;
 + showErrorMessage ( STRING1 , STRING3 ) ;
 }

 SINGLE


<nb> public class ShiftReduceParser extends ParserGrammar implements Serializable {
 wordLabel = ( CoreLabel ) hw ;
 tag = wordLabel . tag ( ) ;
 CoreLabel cl = ( CoreLabel ) hw ;
 - System . err . println ( STRING0 + cl . word ( ) + STRING1 + cl . value ( ) + STRING1 + cl . tag ( ) ) ;
 } else {
 wordLabel = new CoreLabel ( ) ;
 wordLabel . setValue ( hw . word ( ) ) ;


<nb> package NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb>
 package NAMESPACE ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class MessageList
 hideBatchButtons ( ) ;
 break ;
 case WIDGET_MULTISELECT :
 - showBatchButtons ( ) ;
 + toggleBatchButtons ( ) ;
 break ;
 }

Don t automatically show the batch buttons when entering multiselect mode


<nb> public class CustomActionsSchema implements JDOMExternalizable {
 final ActionManager actionManager = ActionManager . getInstance ( ) ;
 for ( Iterator < String > iterator = myIdToName . keySet ( ) . iterator ( ) ; iterator . hasNext ( ) ; ) {
 String name = iterator . next ( ) ;
 - if ( name . equals ( IdeActions . GROUP_MAIN_MENU ) ) {
 - root . add ( ActionsTreeUtil . createNode ( ActionsTreeUtil . createMainMenuGroup ( false ) ) ) ;
 - } else {
 - root . add ( ActionsTreeUtil . createNode ( ActionsTreeUtil . createGroup ( ( ActionGroup ) actionManager . getAction ( name ) , myIdToName . get ( name ) , null , null , true ) ) ) ;
 - }
 + root . add ( ActionsTreeUtil . createNode ( ActionsTreeUtil . createGroup ( ( ActionGroup ) actionManager . getAction ( name ) , myIdToName . get ( name ) , null , null , true ) ) ) ;
 }
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class BlockDataManager {
 - private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ;
 -
 COMMENT
 private final BlockHeartbeatReporter mHeartbeatReporter ;
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DOMCategory {
 return nodes . get ( index ) ;
 }
 }
 - }
 + }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class ReaderPostPagerActivity extends Activity
 }

 @ override
 + public boolean onOptionsItemSelected ( final MenuItem item ) {
 + switch ( item . getItemId ( ) ) {
 + case android . R . id . home :
 + onBackPressed ( ) ;
 + return true ;
 + default :
 + return super . onOptionsItemSelected ( item ) ;
 + }
 + }
 +
 + @ override
 public boolean onRequestFullScreen ( boolean enableFullScreen ) {
 if ( ! isFullScreenSupported ( ) || enableFullScreen == mIsFullScreen ) {
 return false ;


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ReflectionCacheSourceCreator {
 StringBuilder b = new StringBuilder ( ) ;
 b . append ( STRING0 ) ;
 for ( Annotation annotation : annotations ) {
 - SINGLE
 + SINGLE
 Class < ? > type = annotation . annotationType ( ) ;
 + Retention retention = type . getAnnotation ( Retention . class ) ;
 + if ( retention == null || retention . value ( ) != RetentionPolicy . RUNTIME ) {
 + continue ;
 + }
 + SINGLE
 b . append ( STRING1 ) . append ( type . getCanonicalName ( ) ) . append ( STRING2 ) ;
 SINGLE
 Method [ ] methods = type . getDeclaredMethods ( ) ;

Aligned GWT backend with other platforms to only include RetentionPolicy RUNTIME annotations


<nb> public class SmsMessage extends SmsMessageBase {
 COMMENT
 COMMENT
 COMMENT
 - return mEnvelope . messageType ;
 + SINGLE
 + SINGLE
 + if ( mEnvelope . serviceCategory != NUMBER0 ) {
 + return SmsEnvelope . MESSAGE_TYPE_BROADCAST ;
 + } else {
 + return SmsEnvelope . MESSAGE_TYPE_POINT_TO_POINT ;
 + }
 }

 COMMENT

Fix detection of CDMA cell broadcast messages


<nb> public final class EarClippingTriangulator {
 SINGLE
 SINGLE
 SINGLE
 + SINGLE
 if ( ! ( ( areaSign1 > NUMBER0 || areaSign2 > NUMBER0 || areaSign3 > NUMBER0 ) && ( areaSign1 < NUMBER0 || areaSign2 < NUMBER0 || areaSign3 < NUMBER0 ) ) ) {
 return false ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Drawer {
 public void setStatusBarColor ( int statusBarColor ) {
 if ( mDrawerBuilder . mDrawerContentRoot != null ) {
 mDrawerBuilder . mDrawerContentRoot . setInsetForeground ( statusBarColor ) ;
 + mDrawerBuilder . mDrawerContentRoot . invalidate ( ) ;
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public ScrimInsetsFrameLayout getScrimInsetsFrameLayout ( ) {
 + return mDrawerBuilder . mDrawerContentRoot ;
 + }
 +

 COMMENT
 COMMENT

add new api go get the DrawerContentRoot


<nb> public final class ActivityThread {
 synchronized ( this ) {
 getSystemContext ( ) . installSystemApplicationInfo ( info ) ;

 + SINGLE
 + SINGLE
 + mPackages . put ( STRING0 , new WeakReference < LoadedApk > ( getSystemContext ( ) . mPackageInfo ) ) ;
 +
 SINGLE
 mProfiler = new Profiler ( ) ;
 }

Fix getPackageInfo for the android package in the system server


<nb> public final class FBView extends ZLTextView {
 }

 public synchronized void paint ( ZLPaintContext context ) {
 + final ZLFile wallpaper = getWallpaperFile ( ) ;
 + if ( wallpaper != null ) {
 + context . clear ( wallpaper , wallpaper instanceof ZLResourceFile ) ;
 + } else {
 + context . clear ( getBackgroundColor ( ) ) ;
 + }
 +
 final FBReaderApp reader = myReader ;
 if ( reader == null ) {
 return ;
 <nb> public final class FBView extends ZLTextView {
 final String infoString = info . toString ( ) ;

 final int infoWidth = context . getStringWidth ( infoString ) ;
 - final ZLFile wallpaper = getWallpaperFile ( ) ;
 - if ( wallpaper != null ) {
 - context . clear ( wallpaper , wallpaper instanceof ZLResourceFile ) ;
 - } else {
 - context . clear ( getBackgroundColor ( ) ) ;
 - }

 SINGLE
 context . setTextColor ( fgColor ) ;


<nb> public class CoordinationTransformer implements TreeTransformer {
 }

 private static TregexPattern moveRBTregex [ ] = {
 - TregexPattern . compile ( STRING0 ) ,
 + TregexPattern . compile ( STRING1 ) ,
 TregexPattern . compile ( STRING2 ) ,
 TregexPattern . compile ( STRING3 ) ,
 } ;

Add NP to the set of labels under which we transform RB


<nb> import NAMESPACE ;
 public final class SonarMojo extends AbstractMojo {

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 private MavenSession session ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class SonarMojo extends AbstractMojo {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Mapping {
 return type ;
 }

 - private static Map < String , String > typeTimeWithMillis ( ) {
 - final Map < String , String > type = Maps . newHashMap ( ) ;
 + private static Map < String , Serializable > typeTimeWithMillis ( ) {
 + final Map < String , Serializable > type = Maps . newHashMap ( ) ;
 type . put ( STRING0 , STRING1 ) ;
 type . put ( STRING2 , Tools . ES_DATE_FORMAT ) ;
 + type . put ( STRING3 , true ) ;

 return type ;
 }

Save message timestamps as doc values in ES


<nb> public final class UnderStoreBlockInStream extends BlockInStream {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public UnderStoreBlockInStream ( long initPos , long length , long fileBlockSize ,

Add javadoc about responsibility of closing factory


<nb> public class BindDynamicMethod extends AbstractDynamicMethodInvocation {
 if ( arguments . length < NUMBER0 )
 throw new MissingMethodException ( METHOD_SIGNATURE , target . getClass ( ) , arguments ) ;
 if ( arguments [ NUMBER1 ] == null )
 - throw new IllegalArgumentException ( STRING0 + target . getClass ( ) + STRING1 ) ;
 + throw new IllegalArgumentException ( STRING2 + target . getClass ( ) + STRING1 ) ;

 Object targetObject = arguments [ NUMBER1 ] ;
 Object bindParams = arguments [ NUMBER2 ] ;

Typo in exception showed bind instead of bindData as method name


<nb> public abstract class AbstractInFileObjectPersisterTest extends AndroidTestCase

 public void testGetCachePrefix ( ) {
 String actual = inFileObjectPersister . getCachePrefix ( ) ;
 - assertEquals ( inFileObjectPersister . getClass ( ) . getSimpleName ( ) + STRING0 , actual ) ;
 + assertEquals ( inFileObjectPersister . getClass ( ) . getSimpleName ( ) + STRING0 + inFileObjectPersister . getHandledClass ( ) . getSimpleName ( ) + STRING0 , actual ) ;
 }

 public void testRemoveDataFromCache ( Object data , Object cacheKey ) throws Exception {
 <nb> public abstract class InFileObjectPersister < T > extends ObjectPersister < T > {
 protected abstract T readCacheDataFromFile ( File file ) throws CacheLoadingException ;

 protected final String getCachePrefix ( ) {
 - return factoryCachePrefix + getClass ( ) . getSimpleName ( ) + CACHE_PREFIX_END ;
 + return factoryCachePrefix + getClass ( ) . getSimpleName ( ) + CACHE_PREFIX_END + getHandledClass ( ) . getSimpleName ( ) + CACHE_PREFIX_END ;
 }

 protected boolean isCachedAndNotExpired ( Object cacheKey , long maxTimeInCacheBeforeExpiry ) {

Fix inFileObjectPersister file cache name generation for correct cache deletion handling


<nb> public class ConnectivityManagerCompat {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public static NetworkInfo getNetworkInfoFromBroadcast ( ConnectivityManager cm , Intent intent ) {
 final NetworkInfo info = intent . getParcelableExtra ( ConnectivityManager . EXTRA_NETWORK_INFO ) ;
 - return cm . getNetworkInfo ( info . getType ( ) ) ;
 + if ( info != null ) {
 + return cm . getNetworkInfo ( info . getType ( ) ) ;
 + } else {
 + return null ;
 + }
 }
 }

Avoid NPE when missing EXTRA_NETWORK_INFO


<nb> public class ValidatorHelper {
 private boolean elementHasAnnotationSafe ( Class < ? extends Annotation > annotation , Element element ) {
 List < ? extends AnnotationMirror > annotationMirrors = element . getAnnotationMirrors ( ) ;
 for ( AnnotationMirror annotationMirror : annotationMirrors ) {
 - if ( annotationMirror . toString ( ) . equals ( STRING0 + annotation . getName ( ) ) ) {
 + if ( annotationMirror . getAnnotationType ( ) . toString ( ) . equals ( annotation . getName ( ) ) ) {
 return true ;
 }
 }


<nb> public class HtmlHighlightingLexer extends BaseHtmlLexer {
 }
 }
 else if ( tokenType == XmlTokenType . XML_WHITE_SPACE ) {
 - tokenType = ( getState ( ) != NUMBER0 ) ? XmlTokenType . TAG_WHITE_SPACE : XmlTokenType . XML_REAL_WHITE_SPACE ;
 + if ( hasSeenTag ( ) && ( hasSeenStyle ( ) || hasSeenScript ( ) ) ) {
 + int a = NUMBER1 ;
 + } else {
 + tokenType = ( getState ( ) != NUMBER0 ) ? XmlTokenType . TAG_WHITE_SPACE : XmlTokenType . XML_REAL_WHITE_SPACE ;
 + }
 }
 return tokenType ;
 }

fixed issue with tag whitespace appearing before style or script


<nb> class GroovyScriptRunConfiguration extends ModuleBasedConfiguration {
 @ nonnls private static final String GROOVY_STARTER_CONF = STRING0 ;

 SINGLE
 - @ nonnls private static final String DGROOVY_STARTER_CONF = STRING1 ;
 + @ nonnls private static final String DGROOVY_STARTER_CONF = STRING2 ;
 @ nonnls private static final String DTOOLS_JAR = STRING3 ;
 @ nonnls private static final String DGROOVY_HOME = STRING4 ;

missed in command line property definition


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class AccountHeader {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setHeaderBackground ( ImageHolder imageHolder ) {
 + ImageHolder . applyTo ( imageHolder , mAccountHeaderBuilder . mAccountHeaderBackground ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

add new api method to set the header background via the result object


<nb> public abstract class DataConnection extends HierarchicalStateMachine {
 phone . mCM . deactivateDataCall ( cid , obtainMessage ( EVENT_DEACTIVATE_DONE , o ) ) ;
 } else {
 if ( DBG ) log ( STRING0 ) ;
 - sendMessage ( obtainMessage ( EVENT_DEACTIVATE_DONE , o ) ) ;
 + AsyncResult ar = new AsyncResult ( o , null , null ) ;
 + sendMessage ( obtainMessage ( EVENT_DEACTIVATE_DONE , ar ) ) ;
 }
 }

Fix a FATAL ClassCastException in DataConnection java


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BaseFunctionalTestCase {

 protected static DataSource dataSource ;

 + private static Logger logger = LoggerFactory . getLogger ( BaseFunctionalTestCase . class ) ;
 +
 @ beforeclass
 public static void startAll ( ) throws Exception {
 startJetty ( ) ;
 <nb> public class BaseFunctionalTestCase {
 jettyServer = JettyFactory . buildTestServer ( Start . TEST_PORT , Start . CONTEXT ) ;
 jettyServer . start ( ) ;

 + logger . info ( STRING0 ) ;
 +
 dataSource = SpringContextHolder . getBean ( STRING1 ) ;
 }
 }


<nb> public final class ConfigFileFixture {
 + STRING0
 + STRING1
 + CONFIG_SCHEMA_VERSION + STRING2
 - + STRING3
 + + STRING4
 + STRING5
 + STRING6
 + STRING7

Add agent autoregisterkey to fixture as it s being defaulted


<nb> public class Materials extends BaseCollection < Material > {
 }
 }

 - public int count ( Class < ? extends Material > materiaClass ) {
 + public int count ( Class < ? extends Material > materialClass ) {
 int count = NUMBER0 ;
 for ( Material material : this ) {
 - if ( materiaClass . isInstance ( material ) ) {
 + if ( materialClass . isInstance ( material ) ) {
 count ++ ;
 }
 }


<nb> public class ResourceHttpRequestHandler extends WebContentGenerator
 return true ;
 }
 }
 - if ( path . contains ( STRING0 ) ) {
 + if ( path . contains ( STRING1 ) ) {
 path = StringUtils . cleanPath ( path ) ;
 if ( path . contains ( STRING0 ) ) {
 if ( logger . isTraceEnabled ( ) ) {


<nb> public class CropImageView extends FrameLayout {
 COMMENT
 COMMENT
 public Bitmap getCroppedImage ( ) {
 + return getCroppedImage ( NUMBER0 , NUMBER0 ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public Bitmap getCroppedImage ( int reqWidth , int reqHeight ) {
 if ( mLoadedImageUri != null && mLoadedSampleSize > NUMBER1 ) {
 Rect rect = getActualCropRectNoRotation ( ) ;
 + reqWidth = reqWidth > NUMBER0 ? reqWidth : rect . width ( ) ;
 + reqHeight = reqHeight > NUMBER0 ? reqHeight : rect . height ( ) ;
 ImageViewUtil . DecodeBitmapResult result =
 - ImageViewUtil . decodeSampledBitmapRegion ( getContext ( ) , mLoadedImageUri , rect , rect . width ( ) , rect . height ( ) ) ;
 + ImageViewUtil . decodeSampledBitmapRegion ( getContext ( ) , mLoadedImageUri , rect , reqWidth , reqHeight ) ;

 Bitmap bitmap = result . bitmap ;
 if ( mDegreesRotated > NUMBER0 ) {

support required size of cropped image for URI loaded image


<nb> public class EnglishGrammaticalStructureTest extends TestCase {
 STRING0 ,
 STRING1 ,
 STRING2 ,
 + STRING3 ,
 + STRING4 ,
 +
 SINGLE
 SINGLE

 <nb> public class EnglishGrammaticalStructureTest extends TestCase {
 STRING5 +
 STRING6 ,

 + STRING7 +
 + STRING8 +
 + STRING9 +
 + STRING10 +
 + STRING11 ,
 +
 +
 + STRING12 +
 + STRING13 +
 + STRING14 +
 + STRING15 ,
 +
 } ;

 SINGLE
 <nb> public class EnglishGrammaticalStructureTest extends TestCase {
 STRING16 +
 STRING5 +
 STRING6 ,
 +
 + STRING7 +
 + STRING8 +
 + STRING9 +
 + STRING10 +
 + STRING11 ,
 +
 +
 + STRING12 +
 + STRING13 +
 + STRING14 +
 + STRING15 ,
 +
 } ;

 assertEquals ( STRING17 , testTrees . length , basicAnswers . length ) ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class AndroidResourceLoader implements ResourceLoader {
 - private Context context ;
 + private final Context context ;

 public AndroidResourceLoader ( Context context ) {
 this . context = context ;


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FileDisplayActivity extends HookActivity
 public void onBackPressed ( ) {
 OCFileListFragment listOfFiles = getListOfFilesFragment ( ) ;
 if ( mDualPane || getSecondFragment ( ) == null ) {
 - if ( getFile ( ) != null && getFile ( ) . getParentId ( ) == NUMBER0 ) {
 + OCFile currentDir = getCurrentDir ( ) ;
 + if ( currentDir == null || currentDir . getParentId ( ) == FileDataStorageManager . ROOT_PARENT_ID ) {
 finish ( ) ;
 return ;
 }

Fixed condition to browse up when current file shown is uploading for first time or a failed upload


<nb> public interface PsiElement extends UserDataHolder , Iconable {
 COMMENT
 COMMENT
 COMMENT
 - PsiFile getContainingFile ( ) ;
 + @ nullable PsiFile getContainingFile ( ) ;

 COMMENT
 COMMENT

Fix NotNull exception with com intellij psi impl source resolve reference ReferenceProvidersRegistry getManipulator ReferenceProvidersRegistry java


<nb> public class XActivityThread extends XHook {
 listHook . add ( new XActivityThread ( Methods . handleReceiver , PrivacyManager . cSystem ,
 Intent . ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE ) ) ;

 - listHook . add ( new XActivityThread ( Methods . performConfigurationChanged , PrivacyManager . cPhone , null ) ) ;
 + listHook . add ( new XActivityThread ( Methods . performConfigurationChanged , null , null ) ) ;

 return listHook ;
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - @ suppresswarnings ( { STRING0 , STRING1 } )
 public final class Fun {

 <nb> public final class Fun {
 R run ( A a , B b ) ;
 }

 - public interface Runnable2 < A , B > {
 - void run ( A a , B b ) ;
 - }
 -
 - public interface Runnable3 < A , B , C > {
 - void run ( A a , B b , C c ) ;
 - }
 -

 public static < K , V > Fun . Function1 < K , Fun . Tuple2 < K , V > > extractKey ( ) {
 return new Fun . Function1 < K , Fun . Tuple2 < K , V > > ( ) {


<nb> import NAMESPACE ;
 public abstract class LightVariableBase extends LightElement implements PsiVariable {
 protected PsiElement myScope ;
 protected PsiIdentifier myNameIdentifier ;
 - protected final PsiType myType ;
 + protected PsiType myType ;
 protected final PsiModifierList myModifierList ;
 protected boolean myWritable ;

 <nb> public abstract class LightVariableBase extends LightElement implements PsiVaria

 @ notnull
 public PsiType getType ( ) {
 + if ( myType == null ) {
 + myType = computeType ( ) ;
 + }
 return myType ;
 }

 @ notnull
 + protected PsiType computeType ( ) {
 + return PsiType . VOID ;
 + }
 +
 + @ notnull
 public PsiTypeElement getTypeElement ( ) {
 return JavaPsiFacade . getInstance ( getProject ( ) ) . getElementFactory ( ) . createTypeElement ( myType ) ;
 }

composite element attributes with types and top level completion


<nb> public final class EmailAddressResultHandler extends ResultHandler {
 EmailAddressParsedResult emailResult = ( EmailAddressParsedResult ) getResult ( ) ;
 switch ( index ) {
 case NUMBER0 :
 - sendEmailFromUri ( emailResult . getMailtoURI ( ) , emailResult . getEmailAddress ( ) , null , null ) ;
 + sendEmailFromUri ( emailResult . getMailtoURI ( ) ,
 + emailResult . getEmailAddress ( ) ,
 + emailResult . getSubject ( ) ,
 + emailResult . getBody ( ) ) ;
 break ;
 case NUMBER1 :
 String [ ] addresses = new String [ NUMBER1 ] ;

Actually add subject body per GeoSixPack


<nb> public class ZMQException extends RuntimeException
 code = errno ;
 }

 + public ZMQException ( String message , int errno )
 + {
 + super ( message ) ;
 + code = errno ;
 + }
 +
 + public ZMQException ( ZMQException cause )
 + {
 + super ( cause . getMessage ( ) , cause ) ;
 + code = cause . code ;
 + }
 +
 public int getErrorCode ( )
 {
 return code ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class UIUtil {
 private static final Color INACTIVE_HEADER_COLOR = Gray . _128 ;
 private static final Color BORDER_COLOR = Color . LIGHT_GRAY ;

 - public static final Color AQUA_SEPARATOR_FOREGROUND_COLOR = Gray . _190 ;
 - public static final Color AQUA_SEPARATOR_BACKGROUND_COLOR = Gray . _240 ;
 + public static final Color AQUA_SEPARATOR_FOREGROUND_COLOR = new JBColor ( Gray . _190 , Gray . x51 ) ;
 + public static final Color AQUA_SEPARATOR_BACKGROUND_COLOR = new JBColor ( Gray . _240 , Gray . x51 ) ;
 public static final Color TRANSPARENT_COLOR = new Color ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ;

 public static final int DEFAULT_HGAP = NUMBER1 ;

switch between lafs doesn t change separator color


<nb> public class CombinedChannelHandler implements ChannelInboundHandler < Object > ,
 private ChannelOutboundHandler < Object > out ;
 private ChannelInboundHandler < Object > in ;

 - public CombinedChannelHandler ( ) {
 + protected CombinedChannelHandler ( ) {
 SINGLE
 }

Make the default constructor of CombinedChannelHandler protected


<nb> public class DBCollection {
 COMMENT
 COMMENT
 public DBObject group ( final GroupCommand cmd , final ReadPreference readPreference ) {
 - SINGLE
 MongoCursor < DBObject > cursor = execute ( new GroupOperation < DBObject > ( getNamespace ( ) , cmd . toNew ( getDefaultDBObjectCodec ( ) ) ,
 getDefaultDBObjectCodec ( ) ) ,
 readPreference ) ;


<nb> import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

Use correct Guava API in stress test client


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 public class HexDumpProxyInitializer extends ChannelInitializer < SocketChannel > {

 <nb> public class HexDumpProxyInitializer extends ChannelInitializer < SocketChannel > {
 @ override
 public void initChannel ( SocketChannel ch ) throws Exception {
 ch . pipeline ( ) . addLast (
 - new ByteLoggingHandler ( LogLevel . INFO ) ,
 + new LoggingHandler ( LogLevel . INFO ) ,
 new HexDumpProxyFrontendHandler ( remoteHost , remotePort ) ) ;
 }
 }


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 class DefaultCachedModuleResolution implements ModuleResolutionCache . CachedModuleResolution {
 - private final ModuleRevisionId requestedVersion ;
 + private final ModuleVersionIdentifier requestedVersion ;
 private final ModuleVersionIdentifier resolvedVersion ;
 private final long ageMillis ;

 public DefaultCachedModuleResolution ( ModuleRevisionId requestedVersion , ModuleResolutionCacheEntry entry , TimeProvider timeProvider ) {
 - this . requestedVersion = requestedVersion ;
 + this . requestedVersion = new DefaultModuleVersionIdentifier ( requestedVersion . getOrganisation ( ) , requestedVersion . getName ( ) , requestedVersion . getRevision ( ) ) ;
 this . resolvedVersion = entry . moduleVersionIdentifier ;
 ageMillis = timeProvider . getCurrentTime ( ) - entry . createTimestamp ;
 }

Fix DefaultCachedModuleResolution isDynamicVersion was always reporting true


<nb> final class SpanGroup implements DataPoints {
 ? Double . longBitsToDouble ( values [ prev ] )
 : values [ prev ] ) ;
 final long x1 = timestamps [ prev ] & TIME_MASK ;
 + assert x0 > x1 : ( STRING0 + x0 + STRING1
 + + STRING2 + x1 + STRING3
 + + STRING4 + this ) ;
 final double r = ( y0 - y1 ) / ( x0 - x1 ) ;
 SINGLE
 SINGLE


<nb> public final class LocalFileBlockReader implements BlockReader {
 public ByteBuffer read ( long offset , long length ) throws IOException {
 Preconditions . checkArgument ( offset + length <= mFileSize ,
 STRING0 , offset , length , mFileSize ) ;
 - SINGLE
 + SINGLE
 if ( length == - NUMBER0 ) {
 length = mFileSize - offset ;
 }
 <nb> public class LocalFileBlockWriterTest {
 Assert . assertEquals ( TEST_BLOCK_SIZE , mWriter . append ( buf ) ) ;
 mWriter . close ( ) ;
 Assert . assertEquals ( NUMBER1 * TEST_BLOCK_SIZE , new File ( mTestFilePath ) . length ( ) ) ;
 - SINGLE
 + SINGLE
 + SINGLE
 }

 @ test

Tagging TODOs in tachyon worker block io


<nb> public class DefaultPaymentApi extends DefaultApiBase implements PaymentApi {
 checkNotNullParameter ( amount , STRING0 ) ;
 checkNotNullParameter ( currency , STRING1 ) ;
 }
 - checkNotNullParameter ( paymentTransactionExternalKey , STRING2 ) ;
 +
 checkNotNullParameter ( properties , STRING3 ) ;

 if ( paymentMethodId == null && ! paymentOptions . isExternalPayment ( ) ) {

Removed unnecessary not null check for transactionExternalKey


<nb> public class AUC extends Iced {
 throw new IllegalArgumentException ( STRING0 ) ;
 if ( ! vactual . isInt ( ) )
 throw new IllegalArgumentException ( STRING1 ) ;
 + if ( vpredict . isInt ( ) )
 + throw new IllegalArgumentException ( STRING2 ) ;
 }

 SINGLE

Check that AUC isn t given a label instead of a probability


<nb> public class HTTPServer extends ContentOracle {
 if ( daemon . isRunning ( ) )
 System . out . println ( STRING0 ) ;
 else
 - throw new RuntimeException ( STRING1 ) ;
 + throw new RuntimeException ( STRING2 + port
 + + STRING3 ) ;
 }

 public String demultiplex ( Request connRequest , Response connResponse ) {


<nb> public class AnalyticsTrackerMixpanel implements AnalyticsTracker . Tracker {
 case EDITOR_PUBLISHED_POST_WITH_PHOTO :
 instructions = AnalyticsTrackerMixpanelInstructionsForStat .
 mixpanelInstructionsWithSuperPropertyAndPeoplePropertyIncrementor (
 - STRING0 ) ;
 + STRING1 ) ;
 break ;
 case EDITOR_PUBLISHED_POST_WITH_VIDEO :
 instructions = AnalyticsTrackerMixpanelInstructionsForStat .
 mixpanelInstructionsWithSuperPropertyAndPeoplePropertyIncrementor (
 - STRING2 ) ;
 + STRING3 ) ;
 break ;
 case EDITOR_PUBLISHED_POST_WITH_CATEGORIES :
 instructions = AnalyticsTrackerMixpanelInstructionsForStat .
 mixpanelInstructionsWithSuperPropertyAndPeoplePropertyIncrementor (
 - STRING4 ) ;
 + STRING5 ) ;
 break ;
 case EDITOR_PUBLISHED_POST_WITH_TAGS :
 instructions = AnalyticsTrackerMixpanelInstructionsForStat .
 mixpanelInstructionsWithSuperPropertyAndPeoplePropertyIncrementor (
 - STRING6 ) ;
 + STRING7 ) ;
 break ;
 case NOTIFICATIONS_ACCESSED :
 instructions = AnalyticsTrackerMixpanelInstructionsForStat .

Adjusting property names of some publishing related analytics


<nb> public final class GrailsDomainBinder {

 OneToMany oneToMany = new OneToMany ( collection . getOwner ( ) ) ;
 collection . setElement ( oneToMany ) ;
 - if ( property . isBidirectional ( ) ) {
 + COMMENT
 collection . setReferencedPropertyName ( property . getOtherSide ( ) . getName ( ) ) ;
 - }
 + COMMENT

 bindOneToMany ( property , oneToMany , mappings ) ;
 }

fixed bug causing property not found on entity mapping exception


<nb> public abstract class Language {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class Language {
 }
 throw new IllegalArgumentException ( STRING0 + shortLanguageCode + STRING1 ) ;
 }
 - if ( shortLanguageCode . length ( ) != STRING2 . length ( ) && shortLanguageCode . length ( ) != STRING3 . length ( ) ) {
 - throw new IllegalArgumentException ( STRING0 + shortLanguageCode + STRING4 ) ;
 - }
 -
 for ( Language element : Language . LANGUAGES ) {
 if ( shortLanguageCode . equals ( element . getShortName ( ) ) ) {
 return element ;

remove an exception that s misleading now that we have language variants e g en US


<nb> public class AceEditor implements DocDisplay ,
 widget_ . getEditor ( ) . getRenderer ( ) . setPrintMarginColumn ( column ) ;
 }

 + public void setReadOnly ( boolean readOnly )
 + {
 + widget_ . getEditor ( ) . setReadOnly ( readOnly ) ;
 + }
 +
 public HandlerRegistration addCursorChangedHandler ( final CursorChangedHandler handler )
 {
 return widget_ . addCursorChangedHandler ( handler ) ;
 <nb> public class AceEditorNative extends JavaScriptObject {
 this . setHighlightSelectedWord ( highlight ) ;
 } - * / ;

 + public native final void setReadOnly ( boolean readOnly ) COMMENT
 + COMMENT
 + COMMENT ;
 +
 public native final void focus ( ) COMMENT
 COMMENT
 COMMENT ;


<nb> public class GitDiffProvider implements DiffProvider , DiffMixin {
 return null ;
 }
 try {
 - return GitHistoryUtils . getCurrentRevision ( myProject , VcsUtil . getFilePath ( file . getPath ( ) ) , null ) ;
 + return GitHistoryUtils . getCurrentRevision ( myProject , VcsUtil . getFilePath ( file . getPath ( ) ) , STRING0 ) ;
 }
 catch ( VcsException e ) {
 return null ;

correctly determine current revision for a file


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;

 + @ runwith ( HazelcastParallelClassRunner . class )
 + @ category ( { QuickTest . class , ParallelTest . class } )
 public class EventMessageConstTest extends HazelcastTestSupport {

 @ test

Added missing RunWith and Category to EventMessageConstTest


<nb> public interface ChatStateListener extends ChatMessageListener {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 void stateChanged ( Chat chat , ChatState state , Message message ) ;
 }


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;


<nb> import NAMESPACE ;
 @ supportedsourceversion ( SourceVersion . RELEASE_6 )
 public class AndroidAnnotationProcessor extends AnnotatedAbstractProcessor {

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - private boolean alreadyProcessed = false ;
 -
 private final TimeStats timeStats = new TimeStats ( ) ;

 @ override
 <nb> public class AndroidAnnotationProcessor extends AnnotatedAbstractProcessor {
 return ;
 }

 - alreadyProcessed = true ;
 -
 AnnotationElementsHolder extractedModel = extractAnnotations ( annotations , roundEnv ) ;

 AndroidManifest androidManifest = extractAndroidManifest ( ) ;
 <nb> public class AndroidAnnotationProcessor extends AnnotatedAbstractProcessor {
 }

 private boolean nothingToDo ( Set < ? extends TypeElement > annotations , RoundEnvironment roundEnv ) {
 - return roundEnv . processingOver ( ) || annotations . size ( ) == NUMBER0 || alreadyProcessed ;
 + return roundEnv . processingOver ( ) || annotations . size ( ) == NUMBER0 ;
 }

 private AnnotationElementsHolder extractAnnotations ( Set < ? extends TypeElement > annotations , RoundEnvironment roundEnv ) {


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TestDiscoverySearchHelper {

 final JavaPsiFacade psiFacade = JavaPsiFacade . getInstance ( project ) ;
 final GlobalSearchScope searchScope = GlobalSearchScope . projectScope ( project ) ;
 - return new HashSet < > ( ContainerUtil . filter ( patterns , fqn - > psiFacade . findClass ( fqn , searchScope ) != null ) ) ;
 + return new HashSet < > ( ContainerUtil . filter ( patterns , fqn - > ReadAction . compute ( ( ) - > psiFacade . findClass ( StringUtil . getPackageName ( fqn , STRING0 ) , searchScope ) != null ) ) ) ;
 }

 private static void collectPatterns ( final Project project ,

read action added search for class names not methods


<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode ,
 }
 for ( int i = NUMBER0 ; i < toRemove . size ( ) ; i ++ ) {
 removeNotification ( toRemove . get ( i ) . getStatusBarNotification ( ) . getKey ( ) , ranking ) ;
 + SINGLE
 + SINGLE
 + mStackScroller . removeViewStateForView ( toRemove . get ( i ) ) ;
 }
 }
 }
 <nb> public class NotificationStackScrollLayout extends ViewGroup
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void removeViewStateForView ( View view ) {
 + mCurrentStackScrollState . removeViewStateForView ( view ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 public interface OnChildLocationsChangedListener {

Fixed a memory leak with notification children


<nb> public class MediaScanner
 } else if ( MediaFile . isAudioFileType ( mFileType ) ) {
 map . put ( Audio . Media . ARTIST , ( mArtist != null && mArtist . length ( ) > NUMBER0 ) ?
 mArtist : MediaStore . UNKNOWN_STRING ) ;
 - SINGLE
 - SINGLE
 - SINGLE
 + map . put ( Audio . Media . ALBUM_ARTIST , ( mAlbumArtist != null &&
 + mAlbumArtist . length ( ) > NUMBER0 ) ? mAlbumArtist : null ) ;
 map . put ( Audio . Media . ALBUM , ( mAlbum != null && mAlbum . length ( ) > NUMBER0 ) ?
 mAlbum : MediaStore . UNKNOWN_STRING ) ;
 map . put ( Audio . Media . COMPOSER , mComposer ) ;

Send album artist to the media provider again


<nb> public class AvailableToolChains {
 for ( int i = NUMBER0 ; i < gppCandidates . size ( ) ; i ++ ) {
 File candidate = gppCandidates . get ( i ) ;
 GccVersionResult version = versionDeterminer . transform ( candidate ) ;
 - if ( version . isAvailable ( ) && version . getVersion ( ) . startsWith ( STRING0 ) ) {
 + if ( version . isAvailable ( ) ) {
 InstalledGcc gcc = new InstalledGcc ( STRING1 ) ;
 if ( i > NUMBER0 ) {
 SINGLE

Changed the test fixtures to select whichever version of gcc happens to be available on the path


<nb> public LazyCons ( IFn f ) {

 LazyCons ( IPersistentMap meta , Object first , ISeq rest ) {
 super ( meta ) ;
 - this . _first = sentinel ;
 - this . _rest = sentinel ;
 + this . _first = first ;
 + this . _rest = rest ;
 }

 final


<nb> public class SchemaReferencesProvider implements PsiReferenceProvider {
 }
 }

 - static class NameReference implements PsiReference {
 + public static class NameReference implements PsiReference {
 private PsiElement myElement ;

 - NameReference ( PsiElement element ) {
 + public NameReference ( PsiElement element ) {
 myElement = element ;
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class MenuItemPresentationFactory extends PresentationFactory {
 + private final boolean myForceHide ;
 +
 + public MenuItemPresentationFactory ( ) {
 + this ( false ) ;
 + }
 +
 + public MenuItemPresentationFactory ( boolean forceHide ) {
 + myForceHide = forceHide ;
 + }
 +
 protected Presentation processPresentation ( Presentation presentation ) {
 - if ( ! UISettings . getInstance ( ) . SHOW_ICONS_IN_MENUS ) {
 + if ( ! UISettings . getInstance ( ) . SHOW_ICONS_IN_MENUS || myForceHide ) {
 presentation . setIcon ( null ) ;
 presentation . setDisabledIcon ( null ) ;
 presentation . setHoveredIcon ( null ) ;