<nb> public class ProtocolProviderFactoryJabberImpl

 static
 {
 - ProviderManager . setInstance ( new ProviderManagerExt ( ) ) ;
 -
 - providerManager = ProviderManager . getInstance ( ) ;
 + try
 + {
 + ProviderManager . setInstance ( new ProviderManagerExt ( ) ) ;
 + }
 + catch ( Throwable t )
 + {
 + SINGLE
 + SINGLE
 + }
 + finally
 + {
 + providerManager = ProviderManager . getInstance ( ) ;
 + }

 - if ( ! ( providerManager instanceof ProviderManagerExt ) )
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + if ( ! ( providerManager . getClass ( ) . getName ( )
 + . equals ( ProviderManagerExt . class . getName ( ) ) ) )
 {
 throw new RuntimeException (
 STRING0 ) ;

Fixes tests unloading loading bundle ProviderManagerExt class is loaded two times


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - public class WrapProcessor extends DelegateAsyncProcessor implements Traceable {
 -
 + public class WrapProcessor extends DelegateAsyncProcessor {
 private final Processor wrapped ;

 public WrapProcessor ( Processor processor , Processor wrapped ) {
 <nb> public class WrapProcessor extends DelegateAsyncProcessor implements Traceable {
 public String toString ( ) {
 return STRING0 + wrapped + STRING1 + processor ;
 }
 -
 - public String getTraceLabel ( ) {
 - return STRING2 + wrapped + STRING3 ;
 - }

 @ override
 public List < Processor > next ( ) {


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class EditorWindowImpl extends UserDataHolderBase implements EditorWindow
 @ override
 public EditorHighlighter getHighlighter ( ) {
 EditorColorsScheme scheme = EditorColorsManager . getInstance ( ) . getGlobalScheme ( ) ;
 - EditorHighlighter highlighter = HighlighterFactory . createHighlighter ( myInjectedFile . getVirtualFile ( ) , scheme , getProject ( ) ) ;
 + SyntaxHighlighter syntaxHighlighter =
 + SyntaxHighlighterFactory . getSyntaxHighlighter ( myInjectedFile . getLanguage ( ) , getProject ( ) , myInjectedFile . getVirtualFile ( ) ) ;
 + EditorHighlighter highlighter = HighlighterFactory . createHighlighter ( syntaxHighlighter , scheme ) ;
 highlighter . setText ( getDocument ( ) . getText ( ) ) ;
 highlighter . setEditor ( new LightHighlighterClient ( getDocument ( ) , getProject ( ) ) ) ;
 return highlighter ;

Injection editor should create editor highlighter by injected language not


<nb> public class AppearanceToolbar implements AppearanceUIModelListener {
 controlToolbar = new ControlToolbar ( ) ;

 controller . addPropertyChangeListener ( this ) ;
 +
 + AppearanceUIModel uimodel = controller . getModel ( ) ;
 + if ( uimodel != null ) {
 + setup ( uimodel ) ;
 + }
 }

 public JToolBar getCategoryToolbar ( ) {
 <nb> public class AppearanceUIController {
 AppearanceModel appearanceModel = appearanceController . getModel ( pc . getCurrentWorkspace ( ) ) ;
 model = new AppearanceUIModel ( this , appearanceModel ) ;
 pc . getCurrentWorkspace ( ) . add ( model ) ;
 + model . select ( ) ;
 + tableObserver = new TableChangeObserver ( pc . getCurrentWorkspace ( ) ) ;
 + tableObserver . start ( ) ;
 }
 }


<nb> public class IoUtil
 {
 delete ( directory , false ) ;
 }
 - catch ( IOException e )
 + catch ( final IOException ex )
 {
 - throw new IllegalArgumentException ( STRING0 + name + STRING1 + directory , e ) ;
 + throw new IllegalArgumentException ( STRING0 + name + STRING1 + directory , ex ) ;
 }

 callback . accept ( directory . getAbsolutePath ( ) , name ) ;
 <nb> public class IoUtil
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public static void checkDirectoryExists ( final File directory , final String name )
 - throws IllegalArgumentException
 - {
 - if ( ! directory . exists ( ) || ! directory . isDirectory ( ) )
 - {
 - throw new IllegalArgumentException ( name + STRING2 + directory ) ;
 - }
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public final class Installer extends SystemService {
 }
 }

 - public int pruneDexCache ( String cacheSubDir ) {
 - return mInstaller . execute ( STRING0 + cacheSubDir ) ;
 - }
 -
 public int freeCache ( long freeStorageSize ) {
 StringBuilder builder = new StringBuilder ( STRING1 ) ;
 builder . append ( STRING2 ) ;
 <nb> public class PackageManagerService extends IPackageManager . Stub {
 }
 }

 - if ( didDexOptLibraryOrTool ) {
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - for ( String dexCodeInstructionSet : dexCodeInstructionSets ) {
 - mInstaller . pruneDexCache ( dexCodeInstructionSet ) ;
 - }
 -
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - mInstaller . pruneDexCache ( STRING3 ) ;
 - }
 -
 SINGLE
 SINGLE
 SINGLE


<nb> public class PipeItemsWood extends Pipe implements IPowerReceptor {
 public ItemStack [ ] checkExtract ( IInventory inventory , boolean doRemove , Orientations from ) {

 SINGLE
 - if ( inventory instanceof ISpecialInventory )
 - return ( ( ISpecialInventory ) inventory ) . extractItem ( doRemove , from , NUMBER0 ) ;
 + if ( inventory instanceof ISpecialInventory ) {
 + ItemStack [ ] stacks = ( ( ISpecialInventory ) inventory ) . extractItem ( doRemove , from , ( int ) powerProvider . getEnergyStored ( ) ) ;
 + if ( stacks != null && doRemove ) {
 + for ( ItemStack stack : stacks ) {
 + powerProvider . useEnergy ( stack . stackSize , stack . stackSize , true ) ;
 + }
 + }
 + return stacks ;
 + }

 if ( inventory instanceof ISidedInventory ) {
 ISidedInventory sidedInv = ( ISidedInventory ) inventory ;

Consume energy when pulling from ISpecialInventory


<nb> public class HyperLogLogPlus implements ICardinality
 SINGLE
 private int sortThreshold ;

 - SINGLE
 private int [ ] tmpSet ;
 private int tmpIndex = NUMBER0 ;
 private int [ ] sparseSet ;

remove misleading comment about thread safety of a couple variables


<nb> public class GracefulStopTest
 long start = System . nanoTime ( ) ;
 server . stop ( ) ;
 long stop = System . nanoTime ( ) ;
 - assertThat ( TimeUnit . NANOSECONDS . toMillis ( stop - start ) , greaterThan ( NUMBER0 ) ) ;
 + assertThat ( TimeUnit . NANOSECONDS . toMillis ( stop - start ) , greaterThan ( NUMBER1 ) ) ;
 assertThat ( TimeUnit . NANOSECONDS . toMillis ( stop - start ) , lessThan ( NUMBER2 ) ) ;

 String response = IO . toString ( client1 . getInputStream ( ) ) ;

Improved graceful shutdown and added tests


<nb> public class TLSUtils {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class TLSUtils {
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static class AcceptAllTrustManager implements X509TrustManager {

 @ override
 <nb> public class TLSUtils {

 @ override
 public X509Certificate [ ] getAcceptedIssuers ( ) {
 - throw new UnsupportedOperationException ( ) ;
 + return new X509Certificate [ NUMBER0 ] ;
 }
 }
 }


<nb> public final class GitSimplePushResult {

 @ notnull
 public static GitSimplePushResult error ( @ notnull String errorOutput ) {
 - return new GitSimplePushResult ( Type . REJECT , errorOutput , Collections . < String > emptyList ( ) ) ;
 + return new GitSimplePushResult ( Type . ERROR , errorOutput , Collections . < String > emptyList ( ) ) ;
 }

 @ notnull


<nb> class WatchServiceRegistrar implements FileWatcherListener {
 void watch ( FileSystemSubset fileSystemSubset ) throws IOException {
 lock . lock ( ) ;
 try {
 + LOG . debug ( STRING0 , fileSystemSubset ) ;
 final WatchPointsRegistry . Delta delta = watchPointsRegistry . appendFileSystemSubset ( fileSystemSubset ) ;
 Iterable < ? extends File > startingWatchPoints = delta . getStartingWatchPoints ( ) ;

 for ( File dir : startingWatchPoints ) {
 - LOG . debug ( STRING1 , dir ) ;
 + LOG . debug ( STRING2 , dir ) ;
 if ( FILE_TREE_WATCHING_SUPPORTED ) {
 watchDir ( dir . toPath ( ) ) ;
 } else {
 <nb> class WatchServiceRegistrar implements FileWatcherListener {
 }
 } ) ;
 }
 + LOG . debug ( STRING3 , dir ) ;
 }
 + LOG . debug ( STRING4 , fileSystemSubset ) ;
 } finally {
 lock . unlock ( ) ;
 }


<nb> class WallpaperManagerService extends IWallpaperManager . Stub {
 if ( Intent . ACTION_USER_REMOVED . equals ( action ) ) {
 onRemoveUser ( intent . getIntExtra ( Intent . EXTRA_USER_HANDLE ,
 UserHandle . USER_NULL ) ) ;
 - } else if ( Intent . ACTION_USER_STOPPING . equals ( action ) ) {
 - onStoppingUser ( intent . getIntExtra ( Intent . EXTRA_USER_HANDLE ,
 - UserHandle . USER_NULL ) ) ;
 }
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 }
 } , userFilter ) ;

Don t clean up wallpaper map entry when stopping a user


<nb> public final class HashingOutputStream extends FilterOutputStream {
 public HashCode hash ( ) {
 return hasher . hash ( ) ;
 }
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + @ override public void close ( ) throws IOException {
 + out . close ( ) ;
 + }
 }
 <nb> public final class CountingOutputStream extends FilterOutputStream {
 out . write ( b ) ;
 count ++ ;
 }
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + @ override public void close ( ) throws IOException {
 + out . close ( ) ;
 + }
 }
 <nb> public class LittleEndianDataOutputStream extends FilterOutputStream
 @ override public void writeUTF ( String str ) throws IOException {
 ( ( DataOutputStream ) out ) . writeUTF ( str ) ;
 }
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + @ override public void close ( ) throws IOException {
 + out . close ( ) ;
 + }
 }

Override close in all subclasses of FilterOutputStream to ensure they do not swallow exceptions thrown when flushing the delegate stream


<nb> public class SeriesGuideContract {

 public static final String SORT_SEASON_ASC = Episodes . SEASON + STRING0 ;

 + public static final String SORT_NUMBER_ASC = Episodes . NUMBER + STRING0 ;
 +
 public static Uri buildEpisodeUri ( String episodeId ) {
 return CONTENT_URI . buildUpon ( ) . appendPath ( episodeId ) . build ( ) ;
 }


<nb> public class XmlNode extends RubyObject {
 return ( RubyArray ) this . namespace_definitions ;
 }

 + @ jrubymethod
 + public IRubyObject namespace_scopes ( ThreadContext context ) {
 + throw getRuntime ( ) . newNotImplementedError ( STRING0 ) ;
 + }
 +
 @ jrubymethod ( name = STRING1 )
 public IRubyObject namespaced_key_p ( ThreadContext context , IRubyObject elementLName , IRubyObject namespaceUri ) {
 return this . attribute_with_ns ( context , elementLName , namespaceUri ) . isNil ( ) ?


<nb> public class FailsafeFutureTest {
 waiter . resume ( ) ;
 } ) . get ( ( ) - > STRING0 ) ;

 - waiter . await ( NUMBER0 ) ;
 + waiter . await ( NUMBER1 ) ;
 assertFalse ( future . cancel ( true ) ) ;
 assertFalse ( future . isCancelled ( ) ) ;
 assertTrue ( future . isDone ( ) ) ;


<nb> public class GelfChunkAggregator implements CodecAggregator {
 final byte [ ] allChunks [ ] = new byte [ sequenceCount ] [ ] ;
 for ( int i = NUMBER0 ; i < entry . payloadArray . length ( ) ; i ++ ) {
 final GELFMessageChunk messageChunk = entry . payloadArray . get ( i ) ;
 - allChunks [ i ] = messageChunk . getData ( ) ;
 -
 + if ( messageChunk == null ) {
 + log . debug ( STRING0 , i , messageId ) ;
 + } else {
 + allChunks [ i ] = messageChunk . getData ( ) ;
 + }
 }
 completeMessages . inc ( ) ;
 return ChannelBuffers . wrappedBuffer ( allChunks ) ;

Fix NPE in GelfChunkAggregator checkForCompletion


<nb> public class RowCountException extends PersistenceException {
 RowCountException ( long expected , long actual ) {
 super ( STRING0 + expected + STRING1 + actual ) ;
 this . expected = expected ;
 - this . actual = expected ;
 + this . actual = actual ;
 }

 COMMENT


<nb> public class OSQLFunctionGremlin extends OSQLFunctionAbstract {

 public Object execute ( Object iThis , final OIdentifiable iCurrentRecord , Object iCurrentResult , final Object [ ] iParams ,
 final OCommandContext iContext ) {
 - if ( ! ( iCurrentRecord instanceof ODocument ) )
 - SINGLE
 - return null ;
 -
 final ODatabaseDocumentTx db = OGremlinHelper . getGraphDatabase ( ODatabaseRecordThreadLocal . INSTANCE . get ( ) ) ;

 result = new ArrayList < Object > ( ) ;
 <nb> public class OSQLFunctionGremlin extends OSQLFunctionAbstract {
 new OGremlinHelper . OGremlinCallback ( ) {

 @ override
 - public boolean call ( ScriptEngine iEngine , OrientBaseGraph iGraph ) {
 + public boolean call ( final ScriptEngine iEngine , final OrientBaseGraph iGraph ) {
 + if ( iCurrentRecord == null )
 + SINGLE
 + return true ;
 +
 final ODocument document = ( ODocument ) iCurrentRecord ;
 OClass clazz = ODocumentInternal . getImmutableSchemaClass ( document ) ;
 if ( clazz != null && clazz . isSubClassOf ( OrientEdgeType . CLASS_NAME ) ) {

fixed issue on calling gremlin function with no targer


<nb> public class PlainStreetEdge extends StreetEdge implements Cloneable {
 private String name ;

 @ getter @ setter
 + private String label ;
 +
 + @ getter @ setter
 private boolean wheelchairAccessible = true ;

 @ getter @ setter
 <nb> public abstract class StreetEdge extends EdgeWithElevation {
 public static final int CLASS_TRAIN_PLATFORM = NUMBER0 ;
 public static final int ANY_PLATFORM_MASK = NUMBER1 ;
 public static final int CROSSING_CLASS_MASK = NUMBER2 ; SINGLE
 - public static final int CLASS_LINK = NUMBER3 ; SINGLE
 - SINGLE
 + public static final int CLASS_LINK = NUMBER3 ; SINGLE

 public StreetEdge ( StreetVertex v1 , StreetVertex v2 ) {
 super ( v1 , v2 ) ;
 <nb> public abstract class StreetEdge extends EdgeWithElevation {
 public abstract boolean canTraverse ( RoutingRequest options ) ;

 public abstract boolean canTraverse ( TraverseModeSet modes ) ;
 -
 +
 + public abstract String getLabel ( ) ;
 +
 public abstract double getLength ( ) ;

 public abstract float getCarSpeed ( ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MatcherImpl {
 match ( el ) ;
 }
 if ( element instanceof PsiLanguageInjectionHost ) {
 - ( ( PsiLanguageInjectionHost ) element ) . processInjectedPsi ( new PsiLanguageInjectionHost . InjectedPsiVisitor ( ) {
 + InjectedLanguageUtil . enumerate ( element , new PsiLanguageInjectionHost . InjectedPsiVisitor ( ) {
 @ override
 public void visit ( @ notnull PsiFile injectedPsi , @ notnull List < PsiLanguageInjectionHost . Shred > places ) {
 match ( injectedPsi ) ;

get rid of identical method implementations in PsiLanguageInjectionHost interface delegate clients directly to InjectedLanguageUtil


<nb> public class ReaderActivityLauncher {
 intent . putExtra ( ReaderConstants . ARG_CONTENT , content ) ;
 }

 - if ( context instanceof Activity ) {
 + if ( context instanceof Activity && sourceView != null ) {
 Activity activity = ( Activity ) context ;
 ActivityOptionsCompat options =
 ActivityOptionsCompat . makeScaleUpAnimation ( sourceView , startX , startY , NUMBER0 , NUMBER0 ) ;


<nb> public class FileDownloadRunnable implements Runnable {
 COMMENT
 COMMENT
 COMMENT
 - if ( model . getTotal ( ) == - NUMBER0 && ex instanceof IOException ) {
 + if ( model . getTotal ( ) == - NUMBER0 && ex instanceof IOException &&
 + new File ( model . getPath ( ) ) . exists ( ) ) {
 SINGLE
 final long freeSpaceBytes = FileDownloadUtils .
 getFreeSpaceBytes ( model . getPath ( ) ) ;

handle the crash when delete the chunked download file during downloading


<nb>
 - package NAMESPACE ;
 + package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;

Fixed small merge bug in FailureExample java


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JetCompletionResultSet {
 public JetCompletionResultSet (
 @ notnull CompletionResultSet result ,
 @ notnull ResolveSessionForBodies resolveSession ,
 - @ notnull BindingContext bindingContext ) {
 - this ( result , resolveSession , bindingContext , Conditions . < DeclarationDescriptor > alwaysTrue ( ) ) ;
 - }
 -
 - public JetCompletionResultSet (
 - @ notnull CompletionResultSet result ,
 - @ notnull ResolveSessionForBodies resolveSession ,
 @ notnull BindingContext bindingContext ,
 @ notnull Condition < DeclarationDescriptor > descriptorFilter ) {
 this . result = result ;


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

 public class WorldEditCommands {
 private static final DateFormat dateFormat = new SimpleDateFormat ( STRING0 ) ;
 <nb> public class WorldEditCommands {
 usage = STRING1 ,
 desc = STRING2 ,
 min = NUMBER0 ,
 - max = NUMBER0
 + max = NUMBER1
 )
 public void cui ( CommandContext args , LocalSession session , LocalPlayer player ,
 EditSession editSession ) throws WorldEditException {
 + if ( args . getInteger ( NUMBER0 , - NUMBER1 ) < CUIEvent . MIN_PROTOCOL ) {
 + player . printError ( STRING3 ) ;
 + }
 session . setCUISupport ( true ) ;
 session . dispatchCUISetup ( player ) ;
 }
 <nb>
 package NAMESPACE ;

 public interface CUIEvent {
 +
 + SINGLE
 + public static final int MIN_PROTOCOL = NUMBER0 , CURRENT_PROTOCOL = NUMBER0 ;
 +
 public String getTypeId ( ) ;

 public String [ ] getParameters ( ) ;


<nb> public class SpiceManager implements Runnable {
 } ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public < T > Future < T > getDataFromCache ( final Class < T > clazz ,
 final String cacheKey ) throws CacheLoadingException {
 return executorService . submit ( new Callable < T > ( ) {


<nb> public final class ActivityThread {
 Log . e ( TAG , STRING0 +
 STRING1 ) ;
 }
 - }

 - SINGLE
 - SINGLE
 - ThreadedRenderer . setLibDir ( data . info . getLibDir ( ) ) ;
 + SINGLE
 + SINGLE
 + ThreadedRenderer . setLibDir ( data . info . getLibDir ( ) ) ;
 + }

 SINGLE
 SINGLE


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DataFormatClause < T extends ProcessorDefinition < ? > > {
 XMLSecurityDataFormat xsdf = new XMLSecurityDataFormat ( secureTag , namespaces , secureTagContents , recipientKeyAlias , xmlCipherAlgorithm ,
 keyCipherAlgorithm , keyOrTrustStoreParameters , keyPassword , digestAlgorithm ) ;
 return dataFormat ( xsdf ) ;
 - }
 -
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public T tarFile ( ) {
 + TarFileDataFormat tfdf = new TarFileDataFormat ( ) ;
 + return dataFormat ( tfdf ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class ImapStore extends Store
 SINGLE
 SINGLE
 SINGLE
 - capabilities . add ( ( String ) capability ) ;
 + capabilities . add ( ( ( String ) capability ) . toUpperCase ( ) ) ;
 }
 }

Save capabilities in upper case so we handle them case insensitively


<nb> public class ReconnectPluginActivator
 COMMENT
 public synchronized void configurationChanged ( ChangeEvent event )
 {
 - String ifaceName = ( String ) event . getSource ( ) ;
 -
 if ( event . getType ( ) == ChangeEvent . IFACE_UP )
 {
 SINGLE
 <nb> public class ReconnectPluginActivator
 needsReconnection . clear ( ) ;
 }

 - connectedInterfaces . add ( ifaceName ) ;
 + connectedInterfaces . add ( ( String ) event . getSource ( ) ) ;
 }
 else if ( event . getType ( ) == ChangeEvent . IFACE_DOWN )
 {
 + String ifaceName = ( String ) event . getSource ( ) ;
 +
 connectedInterfaces . remove ( ifaceName ) ;

 SINGLE
 <nb> public class SystemActivityEvent
 {
 return this . eventID ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public String toString ( ) {
 + return getClass ( ) . getName ( ) + STRING0 + eventID + STRING1 ;
 + }
 }

Fixes a class cast exception with dns event fire


<nb> public class EditorSearchComponent extends JPanel implements DataProvider {
 model . setPreserveCase ( myPreserveCase . isEnabled ( ) && myPreserveCase . isSelected ( ) ) ;
 }

 + if ( allowedToChangedEditorSelection ) {
 + FindManager findManager = FindManager . getInstance ( myProject ) ;
 + findManager . setFindWasPerformed ( ) ;
 + findManager . setFindNextModel ( model ) ;
 + }
 +
 myLivePreviewController . setFindModel ( model ) ;
 myLivePreview . update ( ) ;
 }

fixed behavoir of find next prev action after find action


<nb> public abstract class Service extends ContextWrapper implements ComponentCallbac
 protected void dump ( FileDescriptor fd , PrintWriter writer , String [ ] args ) {
 writer . println ( STRING0 ) ;
 }
 -
 - @ override
 - protected void finalize ( ) throws Throwable {
 - super . finalize ( ) ;
 - SINGLE
 - }

 SINGLE


<nb> class AndroidParcelableExtension implements TypeGenerationExtension {
 FieldSpec . builder ( parcelerType , STRING0 ,
 Modifier . PRIVATE , Modifier . STATIC , Modifier . FINAL )
 . initializer ( STRING1 , parcelerType ,
 - entity . staticTypeName ( ) ) . build ( ) ) ;
 + EntityGenerator . TYPE_NAME ) . build ( ) ) ;
 }
 }
 <nb> import NAMESPACE ;
 COMMENT
 class EntityGenerator implements SourceGenerator {

 - private static final String PROXY_NAME = STRING2 ;
 - private static final String TYPE_NAME = STRING3 ;
 + static final String PROXY_NAME = STRING2 ;
 + static final String TYPE_NAME = STRING3 ;

 private final ProcessingEnvironment processingEnvironment ;
 private final Elements elements ;


<nb> public class DefaultValueStack < V > implements ValueStack < V > {

 public V pop ( int down ) {
 head = pop ( down , head ) ;
 - return tempValue ;
 + V result = tempValue ;
 + tempValue = null ; SINGLE
 + return result ;
 }

 @ suppresswarnings ( STRING0 )

Fix small memory leak in DefaultValueStack


<nb> public class AppleLibraryDescription implements
 if ( type . isPresent ( ) && type . get ( ) . getValue ( ) . equals ( Type . FRAMEWORK ) ) {
 if ( ! args . infoPlist . isPresent ( ) ) {
 throw new HumanReadableException (
 - STRING0 ,
 + STRING0 +
 STRING1 ,
 params . getBuildTarget ( ) . getUnflavoredBuildTarget ( ) ) ;
 }


<nb> public class Image extends NativeObject implements Savable COMMENT {
 protected int width , height , depth ;
 protected int [ ] mipMapSizes ;
 protected ArrayList < ByteBuffer > data ;
 - protected transient Object efficientData ;
 protected int multiSamples = NUMBER0 ;
 protected ColorSpace colorSpace = null ;
 SINGLE
 <nb> public class Image extends NativeObject implements Savable COMMENT {
 COMMENT
 @ deprecated
 public void setEfficentData ( Object efficientData ) {
 - this . efficientData = efficientData ;
 - setUpdateNeeded ( ) ;
 }

 COMMENT
 <nb> public class Image extends NativeObject implements Savable COMMENT {
 COMMENT
 @ deprecated
 public Object getEfficentData ( ) {
 - return efficientData ;
 + return null ;
 }

 COMMENT


<nb> public class DefaultResponseTransmitter implements ResponseTransmitter {
 } else {
 notifyListeners ( responseStatus , channel . newSucceededFuture ( ) ) ;
 }
 - channel . attr ( ATTRIBUTE_KEY ) . remove ( ) ;
 }

 private void notifyListeners ( final HttpResponseStatus responseStatus , ChannelFuture future ) {
 if ( outcomeListeners != null ) {
 future . addListener ( ignore - > {
 + channel . attr ( ATTRIBUTE_KEY ) . remove ( ) ;
 SentResponse sentResponse = new DefaultSentResponse ( new NettyHeadersBackedHeaders ( responseHeaders ) , new DefaultStatus ( responseStatus ) ) ;
 RequestOutcome requestOutcome = new DefaultRequestOutcome ( ratpackRequest , sentResponse , stopTime ) ;
 for ( Action < ? super RequestOutcome > outcomeListener : outcomeListeners ) {

Don t clear the transmitter key until the response has been sent


<nb> public class ParserTest {
 Document doc = Jsoup . parse ( h ) ;
 assertEquals ( STRING0 , doc . select ( STRING1 ) . first ( ) . html ( ) ) ;
 }
 +
 + @ test public void handlesSolidusInA ( ) {
 + SINGLE
 + String h = STRING2 ;
 + Document doc = Jsoup . parse ( h ) ;
 + Element a = doc . select ( STRING3 ) . first ( ) ;
 + assertEquals ( STRING4 , a . text ( ) ) ;
 + assertEquals ( STRING5 , a . attr ( STRING6 ) ) ;
 + }
 }

Added test to verify that solidus as end of unquoted attribute in tag is handled as part of attribute and


<nb> public final class UsbAlsaManager {
 if ( audioDevice != null ) {
 if ( audioDevice . mHasPlayback || audioDevice . mHasPlayback ) {
 notifyDeviceState ( audioDevice , false ) ;
 + mSelectedAudioDevice = null ;
 +
 + SINGLE
 + selectDefaultDevice ( ) ;
 }
 }
 UsbMidiDevice usbMidiDevice = mMidiDevices . remove ( usbDevice ) ;
 if ( usbMidiDevice != null ) {
 IoUtils . closeQuietly ( usbMidiDevice ) ;
 }
 -
 - mSelectedAudioDevice = null ;
 -
 - SINGLE
 - selectDefaultDevice ( ) ;
 }

 COMMENT

Don t reselect current USB audio device on all USB disconnects


<nb> public class AccountHeaderBuilder {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 + @ deprecated
 public AccountHeaderBuilder withSelectionFistLineShown ( boolean selectionFirstLineShown ) {
 this . mSelectionFirstLineShown = selectionFirstLineShown ;
 return this ;
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public AccountHeaderBuilder withSelectionFirstLineShown ( boolean selectionFirstLineShown ) {
 + this . mSelectionFirstLineShown = selectionFirstLineShown ;
 + return this ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Deprecate misspelled method and replace with corrected version


<nb> public class RealmQueryTest extends AndroidTestCase {
 Dog dog = dogs . where ( ) . equalTo ( STRING0 , FLOAT0 ) . findFirst ( ) ;
 assertEquals ( dog1 , dog ) ;
 }
 +
 + public void testSubqueryScope ( ) {
 + populateTestRealm ( ) ;
 + RealmResults < AllTypes > result = testRealm . where ( AllTypes . class ) . lessThan ( STRING1 , NUMBER0 ) . findAll ( ) ;
 + RealmResults < AllTypes > subQueryResult = result . where ( ) . greaterThan ( STRING1 , NUMBER1 ) . findAll ( ) ;
 + assertEquals ( NUMBER2 , subQueryResult . size ( ) ) ;
 + }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GeneralHighlightingPass extends ProgressableTextEditorHighlightingP
 TextAttributes attributes = todoItem . getPattern ( ) . getAttributes ( ) . getTextAttributes ( ) ;
 HighlightInfo . Builder builder = HighlightInfo . newHighlightInfo ( HighlightInfoType . TODO ) . range ( range ) ;
 builder . textAttributes ( attributes ) ;
 - builder . descriptionAndTooltip ( description ) ;
 + builder . description ( description ) ;
 + builder . unescapedToolTip ( StringUtil . shortenPathWithEllipsis ( description , NUMBER0 ) ) ;
 HighlightInfo info = builder . createUnconditionally ( ) ;
 ( priorityRange . containsRange ( info . getStartOffset ( ) , info . getEndOffset ( ) ) ? insideResult : outsideResult ) . add ( info ) ;
 }


<nb> public abstract class Animation3D {
 COMMENT
 COMMENT
 public void update ( final double deltaTime ) {
 - if ( mPaused )
 + if ( mPaused || ! mPlaying )
 return ;

 SINGLE


<nb> class MaxConstraint extends AbstractConstraint {
 COMMENT
 COMMENT
 public boolean supports ( Class type ) {
 - System . out . println ( STRING0 + type ) ;
 - Map m = GrailsClassUtils . PRIMITIVE_TYPE_COMPATIBLE_CLASSES ;
 - System . out . println ( STRING1 + m ) ;
 - Class c = ( Class ) GrailsClassUtils . PRIMITIVE_TYPE_COMPATIBLE_CLASSES . get ( type ) ;
 - System . out . println ( STRING2 + c ) ;
 -
 return type != null && ( Comparable . class . isAssignableFrom ( type ) ||
 GrailsClassUtils . isAssignableOrConvertibleFrom ( Number . class , type ) ) ;
 }


<nb> public class MemberIsAvailable
 clusterUri = URI . create ( in . readUTF ( ) ) ;
 roleUri = URI . create ( in . readUTF ( ) ) ;
 }
 +
 + @ override
 + public String toString ( )
 + {
 + return String . format ( STRING0 ,
 + role , instanceId . toString ( ) , roleUri . toString ( ) , clusterUri . toString ( ) ) ;
 + }
 }
 <nb> public class MemberIsUnavailable
 clusterUri = URI . create ( in . readUTF ( ) ) ;
 }

 + @ override
 + public String toString ( )
 + {
 + return String . format ( STRING1 ,
 + role , instanceId . toString ( ) , clusterUri . toString ( ) ) ;
 + }
 }

Adds toString in MemberIsAvailable MemberIsUnavailable


<nb> public class GuiIngameForge extends GuiIngame
 if ( slot >= NUMBER0 ) objective = scoreboard . getObjectiveInDisplaySlot ( NUMBER1 + slot ) ;
 }
 ScoreObjective scoreobjective1 = objective != null ? objective : scoreboard . getObjectiveInDisplaySlot ( NUMBER2 ) ;
 - if ( renderObjective && objective != null )
 + if ( renderObjective && scoreobjective1 != null )
 {
 - this . func_180475_a ( objective , res ) ;
 + this . func_180475_a ( scoreobjective1 , res ) ;
 }

 GlStateManager . enableBlend ( ) ;

Fix Scoreboard rendering for the sidebar


<nb> public class PointLocationLayer extends OsmandMapLayer {

 private RectF getHeadingRect ( int locationX , int locationY ) {
 - int rad = ( int ) ( view . getDensity ( ) * NUMBER0 ) ;
 + int rad = ( int ) ( view . getDensity ( ) * NUMBER1 ) ;
 return new RectF ( locationX - rad , locationY - rad , locationX + rad , locationY + rad ) ;
 }


<nb> public class LeakTrackingByteBufferPool extends ContainerLifeCycle implements By
 @ override
 public void release ( ByteBuffer buffer )
 {
 + if ( buffer == null )
 + return ;
 if ( ! leakDetector . released ( buffer ) )
 LOG . warn ( STRING0 , buffer , System . identityHashCode ( buffer ) ) ;
 delegate . release ( buffer ) ;

Do not track null ByteBuffers that are being released


<nb> public class OLuceneIndexNotUnique extends OIndexNotUnique implements OLuceneInd

 public OLuceneIndexNotUnique ( String name , String typeId , String algorithm , OLuceneIndexEngine engine ,
 String valueContainerAlgorithm , ODocument metadata ) {
 - super ( typeId , algorithm , engine , valueContainerAlgorithm , metadata ) ;
 + super ( name , typeId , algorithm , engine , valueContainerAlgorithm , metadata ) ;

 engine . setIndexMetadata ( metadata ) ;
 }


<nb> public abstract class MixinEventUseItemStack extends MixinEventPlayer implements

 private ItemStackSnapshot itemResultSnapshot ;
 private ItemStackTransaction itemResultTransaction ;
 - @ shadow public ItemStack result ;

 @ inject ( method = STRING0 , at = @ at ( STRING1 ) )
 - public void onConstructed ( EntityPlayer player , net . minecraft . item . ItemStack item , int duration , CallbackInfo ci ) {
 + public void onConstructed ( EntityPlayer player , net . minecraft . item . ItemStack item , int duration , net . minecraft . item . ItemStack result , CallbackInfo ci ) {
 itemResultSnapshot = ( ( ItemStack ) result ) . createSnapshot ( ) ;
 this . itemResultTransaction = new ItemStackTransaction ( itemResultSnapshot ) ;
 }
 <nb> public abstract class MixinEventUseItemStack extends MixinEventPlayer implements
 return this . itemResultTransaction ;
 }

 -
 }

 @ override


<nb> public class ConstantNameCheckTest
 } ;
 verify ( checkConfig , getPath ( STRING0 + File . separator + STRING1 ) , expected ) ;
 }
 +
 + @ test
 + public void testIntoInterface ( ) throws Exception
 + {
 + final DefaultConfiguration checkConfig =
 + createCheckConfig ( ConstantNameCheck . class ) ;
 + final String [ ] expected = {
 + STRING2 ,
 + STRING3 ,
 + STRING4 ,
 + STRING5 ,
 + STRING6 ,
 + STRING7 ,
 + STRING8 ,
 + STRING9 ,
 + } ;
 + verify ( checkConfig , getPath ( STRING0 + File . separator + STRING10 ) , expected ) ;
 + }
 }

Investigated conflict into MemberNameCheck


<nb> public class PopupWindow {

 mContentView = contentView ;

 - if ( mContext == null ) {
 + if ( mContext == null && mContentView != null ) {
 mContext = mContentView . getContext ( ) ;
 }

 - if ( mWindowManager == null ) {
 + if ( mWindowManager == null && mContentView != null ) {
 mWindowManager = ( WindowManager ) mContext . getSystemService ( Context . WINDOW_SERVICE ) ;
 }
 }
 <nb> public class PopupWindow {
 COMMENT
 COMMENT
 private void invokePopup ( WindowManager . LayoutParams p ) {
 - p . packageName = mContext . getPackageName ( ) ;
 + if ( mContext != null ) {
 + p . packageName = mContext . getPackageName ( ) ;
 + }
 mWindowManager . addView ( mPopupView , p ) ;
 }

Fix NPE when calling PopupWindow s default constructor


<nb> public abstract class TitanBlueprintsTransaction implements TitanTransaction {
 longId = ( ( Number ) id ) . longValue ( ) ;
 } else {
 try {
 - longId = Double . valueOf ( id . toString ( ) ) . longValue ( ) ;
 + longId = Long . valueOf ( id . toString ( ) ) . longValue ( ) ;
 } catch ( NumberFormatException e ) {
 return null ;
 }

If id is a string do a Long valueOf not Double valueOf


<nb> public class HoltWintersModel extends MovAvgModel {
 }

 if ( seasonalityType != null ) {
 - builder . field ( STRING0 , seasonalityType ) ;
 + builder . field ( STRING1 , seasonalityType . getName ( ) ) ;
 }

 builder . endObject ( ) ;

Fix value of HoltWinters seasonality param in builder


<nb> class SipSessionGroup implements SipListener {
 }

 synchronized void onConnectivityChanged ( ) {
 - for ( SipSessionImpl s : mSessionMap . values ( ) ) {
 + SipSessionImpl [ ] ss = mSessionMap . values ( ) . toArray (
 + new SipSessionImpl [ mSessionMap . size ( ) ] ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + for ( SipSessionImpl s : ss ) {
 s . onError ( SipErrorCode . DATA_CONNECTION_LOST ,
 STRING0 ) ;
 }

Fix SipSessionGroup from throwing ConcurrentModificationException


<nb> public class InferenceSession {
 if ( parentMethod instanceof PsiMethod ) {
 final PsiParameter [ ] parameters = ( ( PsiMethod ) parentMethod ) . getParameterList ( ) . getParameters ( ) ;
 if ( parameters . length == NUMBER0 ) return null ;
 + final PsiExpression [ ] args = argumentList . getExpressions ( ) ;
 + if ( ! ( ( PsiMethod ) parentMethod ) . isVarArgs ( ) && parameters . length != args . length ) return null ;
 PsiElement arg = context ;
 while ( arg . getParent ( ) instanceof PsiParenthesizedExpression ) {
 arg = arg . getParent ( ) ;
 }
 - final PsiExpression [ ] args = argumentList . getExpressions ( ) ;
 final int i = ArrayUtilRt . find ( args , arg ) ;
 if ( i < NUMBER0 ) return null ;
 if ( pair != null ) {


<nb> public class HgContentRevision implements ByteBackedContentRevision {
 myRevisionNumber = revisionNumber ;
 }

 + SINGLE
 + @ notnull
 + public HgFile getHgFile ( ) {
 + return myHgFile ;
 + }
 +
 @ notnull
 public static HgContentRevision create ( Project project , @ notnull HgFile hgFile , @ notnull HgRevisionNumber revisionNumber ) {
 return ! hgFile . toFilePath ( ) . getFileType ( ) . isBinary ( )

Add getter for myHgFile to use in Upsource plugin


<nb> public final class FileSystemMaster extends AbstractMaster {
 UnderFileSystem ufs = resolution . getUfs ( ) ;
 try {
 if ( ! ufs . exists ( ufsUri . toString ( ) ) ) {
 + SINGLE
 + SINGLE
 + if ( path . isRoot ( ) ) {
 + InodeDirectory inode = ( InodeDirectory ) inodePath . getInode ( ) ;
 + inode . setDirectChildrenLoaded ( true ) ;
 + return AsyncJournalWriter . INVALID_FLUSH_COUNTER ;
 + }
 throw new FileDoesNotExistException (
 ExceptionMessage . PATH_DOES_NOT_EXIST . getMessage ( path . getPath ( ) ) ) ;
 }


<nb> import static NAMESPACE ;

 @ runwith ( HazelcastParallelClassRunner . class )
 @ category ( { QuickTest . class , ParallelTest . class } )
 - @ ignore SINGLE
 public class ClientWriteBehindFlushTest extends HazelcastTestSupport {

 private static final String MAP_NAME = STRING0 ;
 <nb> public class ClientWriteBehindFlushTest extends HazelcastTestSupport {

 @ test
 + @ ignore SINGLE
 public void testWriteBehindQueues_emptied_onOwnerAndBackupNodes ( ) throws Exception {
 IMap map = client . getMap ( MAP_NAME ) ;

 <nb> import static NAMESPACE ;

 @ runwith ( HazelcastParallelClassRunner . class )
 @ category ( { QuickTest . class , ParallelTest . class } )
 - @ ignore SINGLE
 public class WriteBehindFlushTest extends HazelcastTestSupport {

 @ test
 <nb> public class WriteBehindFlushTest extends HazelcastTestSupport {
 }

 @ test
 + @ ignore SINGLE
 public void testWriteBehindQueues_emptied_onBackupNodes ( ) throws Exception {
 int nodeCount = NUMBER0 ;
 String mapName = randomName ( ) ;

ignored Client WriteBehindFlushTest testWriteBehindQueues_emptied_onBackupNodes testWriteBehindQueues_emptied_onOwnerAndBackupNodes


<nb> public class GtasksSyncProvider extends SyncProvider < GtasksTaskContainer > {
 public void run ( ) {
 String token = preferenceActivity . getAuthManager ( ) . getAuthToken ( ) ;
 if ( token != null ) {
 + token = STRING0 + token ;
 gtasksPreferenceService . setToken ( token ) ;
 activity . startService ( new Intent ( SyncBackgroundService . SYNC_ACTION , null ,
 activity , GtasksBackgroundService . class ) ) ;


<nb> public abstract class XmlIndex < V > implements FileBasedIndexExtension < String , V >
 return new VirtualFileFilter ( ) {

 private final ProjectFileIndex myFileIndex = ProjectRootManager . getInstance ( project ) . getFileIndex ( ) ;
 - private final VirtualFile myStandardSchemas = ExternalResourcesRootsProvider . getStandardSchemas ( ) ;

 public boolean accept ( final VirtualFile file ) {
 - return myFileIndex . isInContent ( file ) || myFileIndex . isInLibraryClasses ( file ) || file . getParent ( ) == myStandardSchemas ;
 + final VirtualFile parent = file . getParent ( ) ;
 + assert parent != null ;
 + return myFileIndex . isInContent ( file ) || myFileIndex . isInLibraryClasses ( file ) || parent . getName ( ) . equals ( STRING0 ) ;
 }
 } ;
 }


<nb> public class CallManager
 SINGLE
 NotificationManager . fireNotification (
 NotificationManager . INCOMING_CALL ,
 - null ,
 + GuiActivator . getResources ( ) . getSettingsString (
 + STRING0 ) ,
 STRING1
 + sourceCall . getCallParticipants ( ) . next ( ) ) ;
 }

provides some string as the notification title rather than null


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class Intention implements IntentionAction {
 }

 SelectionModel selectionModel = editor . getSelectionModel ( ) ;
 - if ( selectionModel . hasSelection ( ) ) {
 + if ( selectionModel . hasSelection ( ) && ! selectionModel . hasBlockSelection ( ) ) {
 TextRange selectionRange = new TextRange ( selectionModel . getSelectionStart ( ) , selectionModel . getSelectionEnd ( ) ) ;
 PsiElement element = GroovyRefactoringUtil
 . findElementInRange ( file , selectionModel . getSelectionStart ( ) , selectionModel . getSelectionEnd ( ) , PsiElement . class ) ;

don t use selection model if block selection is enabled


<nb> public class Camera {
 }

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

Improve camera getSupportedPreviewFormats javadoc


<nb> public class AIMSICDDbAdapter extends SQLiteOpenHelper {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class AIMSICDDbAdapter extends SQLiteOpenHelper {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class RosterItemProvider {
 private void insertGroups ( long rosterID , Iterator < String > iter , Connection con ) throws SQLException
 {
 PreparedStatement pstmt = null ;
 + String groupName = null ;
 try {
 pstmt = con . prepareStatement ( CREATE_ROSTER_ITEM_GROUPS ) ;
 pstmt . setLong ( NUMBER0 , rosterID ) ;
 for ( int i = NUMBER1 ; iter . hasNext ( ) ; i ++ ) {
 pstmt . setInt ( NUMBER2 , i ) ;
 - pstmt . setString ( NUMBER3 , iter . next ( ) ) ;
 + groupName = iter . next ( ) ;
 + pstmt . setString ( NUMBER3 , groupName ) ;
 try {
 pstmt . executeUpdate ( ) ;
 }
 <nb> public class RosterItemProvider {
 }
 }
 catch ( Exception e ) {
 - Log . error ( e ) ;
 + Log . error ( STRING0 + groupName + STRING1 + rosterID , e ) ;
 }
 }
 }


<nb> public class VirtualWebappLoader extends WebappLoader {
 while ( tkn . hasMoreTokens ( ) ) {
 String token = tkn . nextToken ( ) . trim ( ) ;

 + if ( token . isEmpty ( ) ) {
 + continue ;
 + }
 +
 if ( log . isDebugEnabled ( ) )
 log . debug ( sm . getString ( STRING0 , token ) ) ;

Explicitly ignore empty tokens in the value of VirtualWebappLoader virtualClasspath


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

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

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

 import NAMESPACE ;


<nb> import NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 + import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class DBTest extends DatabaseTestCase {

 @ test
 public void shouldInsertDocumentsUsingEval ( ) {
 + assumeFalse ( isAuthenticated ( ) ) ;
 SINGLE
 database . eval ( STRING0 + collectionName + STRING1 ) ;


<nb> public class CalendarCellView extends TextView {

 public void setHighlighted ( boolean highlighted ) {
 isHighlighted = highlighted ;
 + refreshDrawableState ( ) ;
 }

 @ override protected int [ ] onCreateDrawableState ( int extraSpace ) {


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


<nb> public class DBCollection {
 throw new IllegalArgumentException ( STRING0 + skip ) ;
 }

 - SINGLE
 Find find = new Find ( wrapAllowNull ( query ) ) . limit ( ( int ) limit ) . skip ( ( int ) skip ) . maxTime ( maxTime , maxTimeUnit ) ;

 return execute ( new CountOperation ( getNamespace ( ) , find ) , readPreference ) ;

Removed outdated TODO about limit and skip


<nb> public class StanfordCoreNLP extends AnnotationPipeline {
 case SERIALIZED : defaultExtension = STRING0 ; break ;
 default : throw new IllegalArgumentException ( STRING1 + outputFormat ) ;
 }
 - final String serializerClass = properties . getProperty ( STRING2 ) ;
 + final String serializerClass = properties . getProperty ( STRING2 , GenericAnnotationSerializer . class . getName ( ) ) ;
 final String inputSerializerClass = properties . getProperty ( STRING3 , serializerClass ) ;
 final String inputSerializerName = ( serializerClass . equals ( inputSerializerClass ) ) ? STRING2 : STRING3 ;
 final String outputSerializerClass = properties . getProperty ( STRING4 , serializerClass ) ;


<nb> class CoordinationPattern extends TregexPattern {
 public String toString ( ) {
 StringBuilder sb = new StringBuilder ( ) ;
 if ( isConj ) {
 + if ( isNegated ( ) ) {
 + sb . append ( STRING0 ) ;
 + }
 for ( TregexPattern node : children ) {
 sb . append ( node . toString ( ) ) ;
 }
 + if ( isNegated ( ) ) {
 + sb . append ( STRING1 ) ;
 + }
 } else {
 + if ( isNegated ( ) ) {
 + sb . append ( STRING2 ) ;
 + }
 sb . append ( STRING3 ) ;
 for ( Iterator < TregexPattern > iter = children . iterator ( ) ; iter . hasNext ( ) ; ) {
 TregexPattern node = iter . next ( ) ;

Fix the CoordinationPattern toString for negated nodes


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class RemoteRevisionsCache implements PlusMinus < Pair < String , AbstractVcs >
 }

 public void directoryMappingChanged ( ) {
 - updateOnDirectoryMappingChanged ( ) ;
 - myRemoteRevisionsNumbersCache . directoryMappingChanged ( ) ;
 - myRemoteRevisionsStateCache . directoryMappingChanged ( ) ;
 + try {
 + updateOnDirectoryMappingChanged ( ) ;
 + myRemoteRevisionsNumbersCache . directoryMappingChanged ( ) ;
 + myRemoteRevisionsStateCache . directoryMappingChanged ( ) ;
 + } catch ( ProcessCanceledException ignore ) {
 + }
 }

 public void plus ( final Pair < String , AbstractVcs > pair ) {

do not throw process canceled from listener just suppress actions


<nb> public class BeaconService extends Service {
 bluetoothCrashResolver . start ( ) ;

 SINGLE
 - mExecutor = Executors . newFixedThreadPool ( Runtime . getRuntime ( ) . availableProcessors ( ) * NUMBER0 + NUMBER1 ) ;
 + SINGLE
 + mExecutor = Executors . newFixedThreadPool ( Runtime . getRuntime ( ) . availableProcessors ( ) + NUMBER1 ) ;

 mCycledScanner = CycledLeScanner . createScanner ( this , BeaconManager . DEFAULT_FOREGROUND_SCAN_PERIOD ,
 BeaconManager . DEFAULT_FOREGROUND_BETWEEN_SCAN_PERIOD , mBackgroundFlag , mCycledLeScanCallback , bluetoothCrashResolver ) ;

halve the size of the scanning thread pool so as not to hog CPU


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class InProcessGradleExecuter extends AbstractGradleExecuter {
 ) ;
 BuildRequestContext buildRequestContext = new DefaultBuildRequestContext (
 new DefaultBuildRequestMetaData ( new GradleLauncherMetaData ( ) ,
 - ManagementFactory . getRuntimeMXBean ( ) . getStartTime ( ) ) ,
 + System . currentTimeMillis ( ) ) ,
 new DefaultBuildCancellationToken ( ) ,
 new NoOpBuildEventConsumer ( ) ,
 outputListener , errorListener ) ;

Speed up embedded tests by using the correct start time of the build


<nb> public class GLMTest2 extends TestUtil {
 Key parsed = Key . make ( STRING0 ) ;
 Key modelKey = Key . make ( STRING1 ) ;
 GLMModel model = null ;
 - Frame fr = getFrameForFile ( parsed , STRING2 , new String [ ] { STRING3 } , STRING4 ) ;
 + Frame fr = getFrameForFile ( parsed , STRING5 , new String [ ] { STRING3 } , STRING4 ) ;
 Key k = Key . make ( STRING6 ) ;
 H2O . submitTask ( new RebalanceDataSet ( fr , k , NUMBER0 ) ) . join ( ) ;
 fr . delete ( ) ;

foxed glm test use correct prostate file in testBounds


<nb> class ComputingConcurrentHashMap < K , V > extends CustomConcurrentHashMap < K , V >
 public void clear ( ) {
 SINGLE
 SINGLE
 + setValueReference ( new ComputedReference < K , V > ( null ) ) ;
 +
 SINGLE
 - synchronized ( this ) {
 - notifyAll ( ) ;
 - }
 }

 public void notifyValueReclaimed ( ) { }
 <nb> class ComputingConcurrentHashMap < K , V > extends CustomConcurrentHashMap < K , V >

 void setValueReference ( ValueReference < K , V > valueReference ) {
 synchronized ( this ) {
 - computedReference = valueReference ;
 - notifyAll ( ) ;
 + if ( computedReference == UNSET ) {
 + computedReference = valueReference ;
 + notifyAll ( ) ;
 + }
 }
 }
 }

only allow computed value to be set once


<nb> public class TurnEdge implements DirectEdge , StreetEdge , Serializable {

 @ override
 public double timeLowerBound ( TraverseOptions options ) {
 - return fromv . length / options . speed ;
 + return ( fromv . length + turnCost / NUMBER0 ) / options . speed ;
 }

 }


<nb> public class CompanyLocalServiceImpl extends CompanyLocalServiceBaseImpl {
 String emailAddress =
 PropsUtil . get (
 PropsUtil . DEFAULT_ADMIN_EMAIL_ADDRESS_PREFIX ) +
 - STRING0 + webId ;
 + STRING0 + mx ;
 Locale locale = defaultUser . getLocale ( ) ;
 String firstName = PropsUtil . get (
 PropsUtil . DEFAULT_ADMIN_FIRST_NAME ) ;

Default user used webId instead of mx minor typo


<nb> public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback
 Log . d ( TAG , STRING0 + mDetached ) ;
 }
 if ( mDetached && ( mRenderer != null ) ) {
 + int renderMode = RENDERMODE_CONTINUOUSLY ;
 + if ( mGLThread != null ) {
 + renderMode = mGLThread . getRenderMode ( ) ;
 + }
 mGLThread = new GLThread ( mRenderer ) ;
 + if ( renderMode != RENDERMODE_CONTINUOUSLY ) {
 + mGLThread . setRenderMode ( renderMode ) ;
 + }
 mGLThread . start ( ) ;
 }
 mDetached = false ;

Preserve the render mode when recreating the render thread


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 - public class InternalFailure implements FailureVersion1 {
 + public class InternalFailure implements FailureVersion1 , Serializable {
 private final String message ;
 private final String description ;
 private final InternalFailure cause ;


<nb> public class IncrementalIndexStorageAdapter implements StorageAdapter
 {
 IncrementalIndex . DimensionDesc dimensionDesc = index . getDimension ( dimension ) ;
 if ( dimensionDesc == null ) {
 - return new BooleanValueMatcher ( false ) ;
 + return new BooleanValueMatcher ( predicate . apply ( null ) ) ;
 }
 final int dimIndex = dimensionDesc . getIndex ( ) ;
 final IncrementalIndex . DimDim dimDim = dimensionDesc . getValues ( ) ;

Fix predicate based ValueMatcher behavior for IncrementalIndex on missing columns


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

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

 COMMENT
 COMMENT
 - public class AwarenessAllocationTests {
 + public class AwarenessAllocationTests extends ElasticsearchTestCase {

 private final ESLogger logger = Loggers . getLogger ( AwarenessAllocationTests . class ) ;

AwarenessAllocationTests must extend ESTestCase in order to respect AwaitsFix annotations


<nb> public class ExecutionPointHighlighter {
 if ( mySourcePosition instanceof HighlighterProvider ) {
 TextRange range = ( ( HighlighterProvider ) mySourcePosition ) . getHighlightRange ( ) ;
 if ( range != null ) {
 - range = range . intersection ( DocumentUtil . getLineTextRange ( document , line ) ) ;
 - if ( range != null && ! range . isEmpty ( ) ) {
 + TextRange lineRange = DocumentUtil . getLineTextRange ( document , line ) ;
 + range = range . intersection ( lineRange ) ;
 + if ( range != null && ! range . isEmpty ( ) && ! range . equals ( lineRange ) ) {
 myRangeHighlighter = markupModel . addRangeHighlighter ( range . getStartOffset ( ) , range . getEndOffset ( ) ,
 DebuggerColors . EXECUTION_LINE_HIGHLIGHTERLAYER , attributes ,
 HighlighterTargetArea . EXACT_RANGE ) ;

add line highlighter not range if lambda body fully contains the current line


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 - @ deprecated
 public abstract class AbstractContextualMonitor < T , M extends Monitor < T > >
 implements CompositeMonitor < T > {

 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 - @ deprecated
 public class ContextualCounter extends AbstractContextualMonitor < Number , Counter >
 implements Counter {

 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 - @ deprecated
 public class ContextualTimer extends AbstractContextualMonitor < Long , Timer > implements Timer {

 COMMENT
 <nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 - @ deprecated
 public interface TaggingContext {
 COMMENT
 TagList getTags ( ) ;
 <nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 - @ deprecated
 public final class ThreadLocalTaggingContext implements TaggingContext {

 private final ThreadLocal < TagList > context = new ThreadLocal < TagList > ( ) ;

Remove deprecation from Contextual monitors


<nb> public class ContentView extends FrameLayout {
 boolean isCopyToClipboardAction = actionItem . mPackageName . equals ( STRING0 )
 && actionItem . mActivityClassName . equals ( STRING1 ) ;

 - if ( closeBubbleOnShare && isCopyToClipboardAction == false && MainController . get ( ) != null ) {
 - MainController . get ( ) . closeTab ( mOwnerTabView , true ) ;
 - }
 + SINGLE
 + SINGLE
 + SINGLE
 }
 } ) ;
 alertDialog . show ( ) ;

Sharing doesn t automatically close the current tab


<nb> public abstract class BaseMod implements cpw . mods . fml . common . modloader . BaseMod
 if ( tick == TickType . WORLD && tickEnd ) {
 return onTickInGame ( ( MinecraftServer ) minecraftInstance ) ;
 } else {
 - return false ;
 + return true ;
 }
 }


<nb> public class Mustache {
 line . set ( compiled [ i ] . getLine ( ) ) ;
 }
 Code [ ] truncate = truncate ( compiled , i + NUMBER0 ) ;
 - System . out . println ( STRING0 + compiled [ i ] . toString ( ) ) ;
 current = compiled [ i ] . unexecute ( current , text , position , truncate ) ;
 }
 return current ;


<nb> public class WordPress extends Application {
 ReaderPrefs . reset ( ) ;
 ReaderDatabase . reset ( ) ;

 + SINGLE
 + WordPress . wpDB . clearNotes ( ) ;
 +
 SINGLE
 SINGLE
 Intent broadcastIntent = new Intent ( ) ;


<nb> public abstract class PackageManager {

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class PackageManager {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Refer to hasSystemFeature String int in Vulkan feature docs


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class NestedScrollView extends FrameLayout implements NestedScrollingPare
 initOrResetVelocityTracker ( ) ;
 mVelocityTracker . addMovement ( ev ) ;
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 + mScroller . computeScrollOffset ( ) ;
 mIsBeingDragged = ! mScroller . isFinished ( ) ;
 startNestedScroll ( ViewCompat . SCROLL_AXIS_VERTICAL ) ;
 break ;

Fix NSV not allowing clicks after a small fling


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MongoDBRiver extends AbstractRiverComponent implements River {
 }

 script = scriptService . executable ( scriptType , mongoSettings
 - . get ( SCRIPT_FIELD ) . toString ( ) , Maps . newHashMap ( ) ) ;
 + . get ( SCRIPT_FIELD ) . toString ( ) , ImmutableMap . of ( STRING0 , logger ) ) ;
 } else {
 script = null ;
 }


<nb> public class AsyncHttpClient {

 @ override
 protected void finalize ( ) throws Throwable {
 - if ( ! isClosed . get ( ) ) {
 + if ( isClosed . get ( ) ) {
 close ( ) ;
 }
 super . finalize ( ) ;


<nb> public abstract class ReadOnlyConnectorMetadata
 }

 @ override
 - public void createView ( ConnectorSession session , SchemaTableName viewName , String viewData , boolean replace )
 + public final void createView ( ConnectorSession session , SchemaTableName viewName , String viewData , boolean replace )
 {
 throw new UnsupportedOperationException ( ) ;
 }

 @ override
 - public void dropView ( ConnectorSession session , SchemaTableName viewName )
 + public final void dropView ( ConnectorSession session , SchemaTableName viewName )
 {
 throw new UnsupportedOperationException ( ) ;
 }

 @ override
 - public List < SchemaTableName > listViews ( ConnectorSession session , String schemaNameOrNull )
 + public final List < SchemaTableName > listViews ( ConnectorSession session , String schemaNameOrNull )
 {
 return emptyList ( ) ;
 }

 @ override
 - public Map < SchemaTableName , String > getViews ( ConnectorSession session , SchemaTablePrefix prefix )
 + public final Map < SchemaTableName , String > getViews ( ConnectorSession session , SchemaTablePrefix prefix )
 {
 return emptyMap ( ) ;
 }

Make ReadOnlyConnectorMetadata methods final


<nb> public class Account implements BaseAccount {

 cacheChips ( ) ;

 + SINGLE
 + if ( mDescription == null ) {
 + mDescription = getEmail ( ) ;
 + }
 }

 protected synchronized void delete ( Preferences preferences ) {

Make sure Account getDescription never returns null


<nb> public class GraphMLWriter {
 return GraphMLTokens . LONG ;
 else if ( object instanceof Float )
 return GraphMLTokens . FLOAT ;
 - else if ( object instanceof Double )
 + else if ( object instanceof Number )
 return GraphMLTokens . DOUBLE ;
 else if ( object instanceof Boolean )
 return GraphMLTokens . BOOLEAN ;

updated GraphMLWriter to support other types of numbers being represented as a double


<nb> public abstract class HardwareRenderer {
 if ( full && mCanvas != null ) {
 mCanvas = null ;
 }
 -
 - if ( ! isEnabled ( ) || mDestroyed ) return ;

 - mDestroyed = true ;
 + if ( ! isEnabled ( ) || mDestroyed ) {
 + setEnabled ( false ) ;
 + return ;
 + }

 destroySurface ( ) ;
 + setEnabled ( false ) ;

 + mDestroyed = true ;
 mGl = null ;
 -
 - setEnabled ( false ) ;
 }

 void destroySurface ( ) {

Prevent crash with NPE in HardwareRenderer


<nb> public final class MediaStore {
 COMMENT
 public static final String INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH =
 STRING0 ;
 -
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class MediaStore {
 public static final String INTENT_ACTION_STILL_IMAGE_CAMERA = STRING1 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE =
 + STRING2 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 public static final String INTENT_ACTION_VIDEO_CAMERA = STRING3 ;


<nb> package 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 ;

 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public abstract class WebSecurityConfigurerAdapter implements SecurityConfigurer < Filter , WebSecurity > {
 + public abstract class WebSecurityConfigurerAdapter implements WebSecurityConfigurer < WebSecurity > {
 private final Log logger = LogFactory . getLog ( WebSecurityConfigurerAdapter . class ) ;

 private ApplicationContext context ;


<nb> public class WindowManagerService extends IWindowManager . Stub
 }

 SINGLE
 - void updateStatusBarVisibilityLocked ( int visibility ) {
 + boolean updateStatusBarVisibilityLocked ( int visibility ) {
 if ( mLastDispatchedSystemUiVisibility == visibility ) {
 - return ;
 + return false ;
 }
 final int globalDiff = ( visibility ^ mLastDispatchedSystemUiVisibility )
 SINGLE
 <nb> public class WindowManagerService extends IWindowManager . Stub
 SINGLE
 }
 }
 + return true ;
 }

 @ override
 public void reevaluateStatusBarVisibility ( ) {
 synchronized ( mWindowMap ) {
 int visibility = mPolicy . adjustSystemUiVisibilityLw ( mLastStatusBarVisibility ) ;
 - updateStatusBarVisibilityLocked ( visibility ) ;
 - mWindowPlacerLocked . requestTraversal ( ) ;
 + if ( updateStatusBarVisibilityLocked ( visibility ) ) {
 + mWindowPlacerLocked . requestTraversal ( ) ;
 + }
 }
 }

Only request traversals if status bar visibility changed on reevaluation


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

 import NAMESPACE ;

 <nb> public abstract class LookupElementDecorator < T extends LookupElement > extends Lo
 return myDelegate . isCaseSensitive ( ) ;
 }

 + @ override
 + public boolean isWorthShowingInAutoPopup ( ) {
 + return myDelegate . isWorthShowingInAutoPopup ( ) ;
 + }
 +
 + @ nullable
 + @ override
 + public PsiElement getPsiElement ( ) {
 + return myDelegate . getPsiElement ( ) ;
 + }
 +
 private static class InsertingDecorator < T extends LookupElement > extends LookupElementDecorator < T > {
 private final InsertHandler < ? super LookupElementDecorator < T > > myInsertHandler ;


<nb> public final class FileSystemMasterTest {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class FileSystemMasterTest {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class FileSystemMasterTest {
 }

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


<nb> public class Messages {
 COMMENT
 COMMENT
 public static void showMessageDialog ( String message , @ notnull String title , @ nullable Icon icon ) {
 - if ( canShowMacSheetPanel ( ) ) {
 - MacMessages . getInstance ( ) . showOkMessageDialog ( title , message , OK_BUTTON ) ;
 - return ;
 + try {
 + if ( canShowMacSheetPanel ( ) ) {
 + MacMessages . getInstance ( ) . showOkMessageDialog ( title , message , OK_BUTTON ) ;
 + return ;
 + }
 + } catch ( Exception ignored ) {
 }
 -
 showDialog ( message , title , new String [ ] { OK_BUTTON } , NUMBER0 , icon ) ;
 }

Missed try catch for MacMessagesException


<nb> public class OAtomicOperation {
 }

 private static class FilePageChanges {
 - private OWALChanges changes = new OWALChangesTree ( ) ;
 + private OWALChanges changes = new OWALPageChangesPortion ( ) ;
 private OLogSequenceNumber lsn = null ;
 private boolean isNew = false ;
 private boolean pinPage = false ;
 <nb> public class OUpdatePageRecord extends OAbstractPageWALRecord {
 public int fromStream ( final byte [ ] content , int offset ) {
 offset = super . fromStream ( content , offset ) ;

 - changes = new OWALChangesTree ( ) ;
 + changes = new OWALPageChangesPortion ( ) ;
 offset = changes . fromStream ( offset , content ) ;

 return offset ;

enabled changes portion only for benchmarking porpouse


<nb> public class OLocalPaginatedStorage extends OStorageLocalAbstract {
 case ORecordOperation . CREATED : {
 SINGLE
 byte [ ] stream = txEntry . getRecord ( ) . toStream ( ) ;
 + if ( stream == null ) {
 + OLogManager . instance ( ) . warn ( this , STRING0 , rid ) ;
 + break ;
 + }

 final ORecordId oldRID = rid . isNew ( ) ? rid . copy ( ) : rid ;

 <nb> public class OLocalPaginatedStorage extends OStorageLocalAbstract {

 case ORecordOperation . UPDATED : {
 byte [ ] stream = txEntry . getRecord ( ) . toStream ( ) ;
 + if ( stream == null ) {
 + OLogManager . instance ( ) . warn ( this , STRING1 , rid ) ;
 + break ;
 + }
 +
 txEntry
 . getRecord ( )
 . getRecordVersion ( )

Added log when record returns NULL stream in transaction


<nb> import NAMESPACE ;
 @ runwith ( JUnit4TestRunner . class )
 public class CamelAhcTest extends AbstractFeatureTest {

 - public static final String COMPONENT = extractName ( CamelAhcTest . class ) ;
 -
 @ test
 public void test ( ) throws Exception {
 - testComponent ( COMPONENT ) ;
 + testComponent ( ) ;
 }

 @ configuration
 - public static Option [ ] configure ( ) {
 - return configure ( COMPONENT ) ;
 + public Option [ ] configure ( ) {
 + return configureComponent ( ) ;
 }

 }


<nb> public class NodeRenderer implements Renderer {
 if ( borderSize > NUMBER0 ) {
 graphics . setColor ( new Color ( borderColor . getRed ( ) , borderColor . getGreen ( ) , borderColor . getBlue ( ) , alpha ) ) ;
 graphics . setStroke ( new BasicStroke ( borderSize ) ) ;
 + graphics . draw ( ellipse ) ;
 }

 graphics . setColor ( new Color ( color . getRed ( ) , color . getGreen ( ) , color . getBlue ( ) , alpha ) ) ;


<nb> public class NettyClientTest {
 NettyHttpLoadBalancerErrorHandler errorHandler = new NettyHttpLoadBalancerErrorHandler ( NUMBER0 , NUMBER1 , true ) ;
 BaseLoadBalancer lb = new BaseLoadBalancer ( new DummyPing ( ) , new AvailabilityFilteringRule ( ) ) ;
 NettyHttpClient < ByteBuf , ByteBuf > lbObservables = ( NettyHttpClient < ByteBuf , ByteBuf > ) RibbonTransport . newHttpClient ( lb , config , errorHandler ) ;
 + HttpClientListener externalListener = HttpClientListener . newHttpListener ( STRING0 ) ;
 + lbObservables . subscribe ( externalListener ) ;
 Server server1 = new Server ( STRING1 + server . getPort ( ) ) ;
 Server server2 = new Server ( STRING1 + port ) ;
 List < Server > servers = Lists . newArrayList ( server1 , server2 ) ;
 <nb> public class NettyClientTest {
 assertEquals ( NUMBER2 , listener . getPoolReleases ( ) ) ;
 assertEquals ( NUMBER2 , listener . getConnectionCount ( ) ) ;
 assertEquals ( NUMBER3 , listener . getPoolReuse ( ) ) ;
 +
 + assertEquals ( NUMBER2 , externalListener . getPoolAcquires ( ) ) ;
 }

 @ test

Added assertion about subscribing external listener


<nb> public abstract class Server < M , R > extends Protocol implements ChannelPipelineFa
 {
 if ( ! channelIsOpen ( entry . getKey ( ) ) )
 {
 - System . out . println ( STRING0 + entry . getKey ( ) + STRING1 + entry . getValue ( ) ) ;
 + msgLog . logMessage ( STRING0 + entry . getKey ( ) + STRING1 + entry . getValue ( ) ) ;
 finishOffConnection ( entry . getKey ( ) , entry . getValue ( ) ) ;
 - System . out . println ( STRING2 + entry . getKey ( ) + STRING1 + entry . getValue ( ) ) ;
 + msgLog . logMessage ( STRING2 + entry . getKey ( ) + STRING1 + entry . getValue ( ) ) ;
 channelsToRemove . add ( entry . getKey ( ) ) ;
 }
 }

Prints some System outs to msgLog instead


<nb> public class TestCipher {
 Collections . unmodifiableSet ( new HashSet < > ( Arrays . asList (
 STRING0 ,
 STRING1 ,
 + STRING2 ,
 + STRING3 ,
 + STRING4 ,
 + STRING5 ,
 STRING6 ,
 STRING7 ,
 STRING8 ,
 <nb> public class TestCipher {
 STRING9 ,
 STRING10 ,
 STRING11 ,
 + STRING2 ,
 STRING12 ,
 STRING13 ,
 STRING14 ,
 <nb> public class TestCipher {
 STRING15 ,
 STRING16 ,
 STRING17 ,
 + STRING3 ,
 STRING18 ,
 STRING19 ,
 STRING20 ,
 STRING21 ,
 STRING22 ,
 + STRING4 ,
 STRING23 ,
 STRING24 ,
 STRING25 ,
 + STRING5 ,
 STRING26 ,
 STRING27 ,
 STRING28 ,

Neither Oracle nor IBm JREs support these new ciphers


<nb> import NAMESPACE ;
 COMMENT
 public class Route < E extends Exchange > {

 - final private Map < String , Object > properties = new HashMap < String , Object > ( NUMBER0 ) ;
 + private final Map < String , Object > properties = new HashMap < String , Object > ( NUMBER0 ) ;
 private Endpoint < E > endpoint ;
 private Processor < E > processor ;

 <nb> public class Route < E extends Exchange > {
 this . processor = processor ;
 }

 - public Endpoint < E > getEndpoint ( ) {
 + @ override
 + public String toString ( ) {
 + return STRING0 + endpoint + STRING1 + processor + STRING2 ;
 + }
 +
 + public Endpoint < E > getEndpoint ( ) {
 return endpoint ;
 }


<nb> class LoaderManagerImpl implements LoaderManager {
 void stop ( ) {
 if ( DEBUG ) Log . v ( TAG , STRING0 + this ) ;
 mStarted = false ;
 - if ( mLoader != null && mListenerRegistered ) {
 - SINGLE
 - mListenerRegistered = false ;
 - mLoader . unregisterListener ( this ) ;
 - mLoader . stopLoading ( ) ;
 + if ( ! mRetaining ) {
 + if ( mLoader != null && mListenerRegistered ) {
 + SINGLE
 + mListenerRegistered = false ;
 + mLoader . unregisterListener ( this ) ;
 + mLoader . stopLoading ( ) ;
 + }
 + mData = null ;
 }
 }

This may fix LoaderManager bug where a closed cursor could be used


<nb> public class FileInStream extends InputStream implements BoundedStream , Seekable
 return ;
 }

 + SINGLE
 seekBlockInStream ( pos ) ;
 SINGLE
 mCurrentBlockInStream . seek ( mPos % mBlockSize ) ;
 <nb> public class FileInStream extends InputStream implements BoundedStream , Seekable
 readCurrentBlockToPos ( pos ) ;
 } else {
 seekBlockInStream ( pos ) ;
 + SINGLE
 mCurrentBlockInStream . seek ( mPos % mBlockSize ) ;
 }
 }


<nb> public class Configuration
 FileOutputStream fos = new FileOutputStream ( file ) ;
 BufferedWriter buffer = new BufferedWriter ( new OutputStreamWriter ( fos , defaultEncoding ) ) ;

 - buffer . write ( STRING0 + NEW_LINE ) ;
 - buffer . write ( STRING1 + DateFormat . getInstance ( ) . format ( new Date ( ) ) + NEW_LINE + NEW_LINE ) ;
 + buffer . write ( STRING0 + NEW_LINE + NEW_LINE ) ;

 if ( children . isEmpty ( ) )
 {

Kill generated timestamp in config files if you want to retreive this information usethe file s modified time


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class PyTargetExpressionImpl extends PyPresentableElementImpl < PyTargetExpressionStub > implements PyTargetExpression {
 + QualifiedName myQualifiedName ;

 public PyTargetExpressionImpl ( ASTNode astNode ) {
 super ( astNode ) ;
 <nb> public class PyTargetExpressionImpl extends PyPresentableElementImpl < PyTargetExp
 @ nullable
 @ override
 public QualifiedName asQualifiedName ( ) {
 - return PyPsiUtils . asQualifiedName ( this ) ;
 + if ( myQualifiedName == null ) {
 + myQualifiedName = PyPsiUtils . asQualifiedName ( this ) ;
 + }
 + return myQualifiedName ;
 }

 public String toString ( ) {
 <nb> public class PyTargetExpressionImpl extends PyPresentableElementImpl < PyTargetExp
 }
 return null ;
 }
 +
 + @ override
 + public void subtreeChanged ( ) {
 + super . subtreeChanged ( ) ;
 + myQualifiedName = null ;
 + }
 }


<nb> public class CarrierConfigManager {
 public static final String KEY_MMS_UA_PROF_URL_STRING = STRING0 ;
 public static final String KEY_MMS_USER_AGENT_STRING = STRING1 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL =
 + STRING2 ;
 +
 COMMENT
 private final static PersistableBundle sDefaults ;

 <nb> public class CarrierConfigManager {
 sDefaults . putString ( KEY_MMS_UA_PROF_TAG_NAME_STRING , STRING3 ) ;
 sDefaults . putString ( KEY_MMS_UA_PROF_URL_STRING , STRING4 ) ;
 sDefaults . putString ( KEY_MMS_USER_AGENT_STRING , STRING4 ) ;
 + sDefaults . putBoolean ( KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL , true ) ;
 }

 COMMENT

Add carrier config for allowing non emerg calls in ECM mode


<nb> public class JsrWebSocketServer07Test {
 public void onOpen ( final Session session , EndpointConfig config ) {
 connected . set ( true ) ;
 session . addMessageHandler ( new MessageHandler . Partial < String > ( ) {
 +
 + StringBuilder sb = new StringBuilder ( ) ;
 +
 @ override
 public void onMessage ( String message , boolean last ) {
 - Assert . assertTrue ( last ) ;
 + sb . append ( message ) ;
 + if ( ! last ) {
 + return ;
 + }
 try {
 - session . getBasicRemote ( ) . sendText ( message ) ;
 + session . getBasicRemote ( ) . sendText ( sb . toString ( ) ) ;
 } catch ( IOException e ) {
 e . printStackTrace ( ) ;
 cause . set ( e ) ;


<nb> public class Index extends GraphDatabaseApp

 SINGLE
 XaDataSource dataSource = xaManager . getXaDataSource ( xaName ) ;
 - Method getterMethod = dataSource . getClass ( ) . getDeclaredMethod (
 - STRING0 ) ;
 + Method getterMethod = dataSource . getClass ( ) . getMethod ( STRING0 ) ;
 getterMethod . setAccessible ( true ) ;
 context = new IndexServiceContext (
 getterMethod . invoke ( dataSource ) , false ) ;

Fixed a problem with LuceneFulltextIndexService in the shell index command


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ZContext implements Closeable
 return ;

 if ( sockets . contains ( s ) ) {
 - s . setLinger ( linger ) ;
 + try {
 + s . setLinger ( linger ) ;
 + } catch ( ZError . CtxTerminatedException e ) { }
 s . close ( ) ;
 sockets . remove ( s ) ;
 }

Ignore CtxTerminatedException at ZContext destroy


<nb> package NAMESPACE ;

 import NAMESPACE ;

 - import NAMESPACE ;
 -
 public class CRestriction {
 private long mExpiry ;
 public int mUid ;


<nb> public class StarTreeRecordStoreCircularBufferImpl implements StarTreeRecordStor
 getDimensions ( currentDimensions ) ;

 SINGLE
 - if ( matches ( targetDimensions , currentDimensions ) )
 + for ( int i = NUMBER0 ; i < numTimeBuckets ; i ++ )
 {
 - updateSums ( sums , timeBuckets ) ;
 + if ( matches ( targetDimensions , currentDimensions ) )
 + {
 + updateSums ( sums , timeBuckets ) ;
 + }
 }

 SINGLE


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

 public class GLRMModelV2 extends ModelSchema < GLRMModel , GLRMModelV2 , GLRMModel . GLRMParameters , GLRMV2 . GLRMParametersV2 , GLRMModel . GLRMOutput , GLRMModelV2 . GLRMModelOutputV2 > {
 public static final class GLRMModelOutputV2 extends ModelOutputSchema < GLRMModel . GLRMOutput , GLRMModelOutputV2 > {


<nb> public class CppCompletionPopupMenu extends ScrollableToolbarPopupMenu
 return ;
 }

 + SINGLE
 + if ( ! completion . isFunction ( ) && ! completion . isVariable ( ) )
 + {
 + toolTip_ . setVisible ( false ) ;
 + return ;
 + }
 +
 SINGLE
 toolTip_ . setText ( text ) ;

 <nb> public class CppCompletion extends JavaScriptObject
 int kind = getKind ( ) ;
 return kind == FUNCTION_DECL ||
 kind == CXX_METHOD ||
 - kind == FUNCTION_TEMPLATE ;
 + kind == FUNCTION_TEMPLATE ||
 + kind == CONSTRUCTOR ||
 + kind == DESTRUCTOR ;
 + }
 +
 + public final boolean isVariable ( )
 + {
 + int kind = getKind ( ) ;
 + return kind == FIELD_DECL ||
 + kind == VAR_DECL ;
 }

 public native final String getTypedText ( ) / * - {

only show tooltips for functions and variables


<nb> public class ContextConfig
 String type = ae . getAnnotationType ( ) ;
 if ( STRING0 . equals ( type ) ) {
 processAnnotationWebServlet ( className , ae , fragment ) ;
 + } else if ( STRING1 . equals ( type ) ) {
 + fragment . addListener ( className ) ;
 } else {
 SINGLE
 SINGLE


<nb> public class MocoRunner {
 Optional < Request > request = Optional . absent ( ) ;
 return new ByteArrayInputStream ( resource . readFor ( request ) ) ;
 }
 +
 + private MocoRunner ( ) { }
 }


<nb> public class DefaultServer extends BlockJUnit4ClassRunner {
 private static void runInternal ( final RunNotifier notifier ) {
 if ( first ) {
 first = false ;
 - xnio = Xnio . getInstance ( DefaultServer . class . getClassLoader ( ) ) ;
 + xnio = Xnio . getInstance ( STRING0 , DefaultServer . class . getClassLoader ( ) ) ;
 try {
 worker = xnio . createWorker ( OptionMap . builder ( )
 . set ( Options . WORKER_IO_THREADS , NUMBER0 )

Stop the test suite foring the use of the NIO provider


<nb> public class ChunkViewCoreImpl implements ChunkViewCore {
 }

 int chunkIndex = relChunkIndex ( blockX , blockY , blockZ ) ;
 - return chunks [ chunkIndex ] . getBlock ( ChunkMath . calcBlockPos ( blockX , blockY , blockZ , chunkFilterSize ) ) ;
 + return chunks [ chunkIndex ] . getBlock ( ChunkMath . calcBlockPosX ( blockX , chunkFilterSize . x ) , ChunkMath . calcBlockPosY ( blockY , chunkFilterSize . y ) , ChunkMath . calcBlockPosZ ( blockZ , chunkFilterSize . z ) ) ;
 }

 @ override

avoid vector allocation in ChunkViewCoreImpl


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

Fix compile errors that somehow never appeared until now


<nb> public abstract class AbstractModelConverter implements ModelConverter {
 else if ( STRING0 . equals ( typeName ) ) {
 property = new DateTimeProperty ( ) ;
 }
 + else if ( STRING1 . equals ( typeName ) ) {
 + property = new StringProperty ( ) ;
 + ( ( StringProperty ) property ) . setFormat ( STRING1 ) ;
 + }
 return property ;
 }


<nb> public class SbeExample
 sb . append ( STRING0 ) . append ( car . available ( ) ) ;
 sb . append ( STRING1 ) . append ( car . code ( ) ) ;

 - sb . append ( STRING2 ) ;
 + sb . append ( STRING3 ) ;
 for ( int i = NUMBER0 , size = car . someNumbersLength ( ) ; i < size ; i ++ )
 {
 sb . append ( car . someNumbers ( i ) ) . append ( STRING4 ) ;
 }

 - sb . append ( STRING3 ) ;
 + sb . append ( STRING2 ) ;
 for ( int i = NUMBER0 , size = car . vehicleCodeLength ( ) ; i < size ; i ++ )
 {
 sb . append ( ( char ) car . vehicleCode ( i ) ) ;

Fixed name of output field in SbeExample


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


<nb> public final class SkylarkStatistics {
 out . println ( STRING0 ) ;
 out . println ( STRING1 ) ;
 out . println ( STRING2 ) ;
 - out . println ( STRING3 ) ;
 out . println ( STRING4 ) ;
 + out . println ( STRING3 ) ;
 out . println ( STRING5 ) ;
 out . println ( STRING6 ) ;
 out . println ( STRING7 ) ;

Fix incorrect rendering of first histogram on click in table


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class JavaBasePlugin implements Plugin < Project > {
 + public class JavaBasePlugin implements Plugin < ProjectInternal > {
 public static final String CHECK_TASK_NAME = STRING0 ;
 public static final String BUILD_TASK_NAME = STRING1 ;
 public static final String BUILD_DEPENDENTS_TASK_NAME = STRING2 ;
 <nb> public class JavaBasePlugin implements Plugin < Project > {
 this . instantiator = instantiator ;
 }

 - public void apply ( Project project ) {
 + public void apply ( ProjectInternal project ) {
 project . getPlugins ( ) . apply ( BasePlugin . class ) ;
 project . getPlugins ( ) . apply ( ReportingBasePlugin . class ) ;
 project . getPlugins ( ) . apply ( LegacyJavaComponentPlugin . class ) ;

 - JavaPluginConvention javaConvention = new JavaPluginConvention ( ( ProjectInternal ) project , instantiator ) ;
 + JavaPluginConvention javaConvention = new JavaPluginConvention ( project , instantiator ) ;
 project . getConvention ( ) . getPlugins ( ) . put ( STRING3 , javaConvention ) ;

 configureCompileDefaults ( project , javaConvention ) ;


<nb> public abstract class HiveRecordCursor
 close ( ) ;
 }
 catch ( RuntimeException e ) {
 - throwable . addSuppressed ( e ) ;
 + SINGLE
 + if ( throwable != e ) {
 + throwable . addSuppressed ( e ) ;
 + }
 }
 }
 }
 <nb> public class Driver
 inFlightException = newException ;
 }
 else {
 - inFlightException . addSuppressed ( newException ) ;
 + SINGLE
 + if ( inFlightException != newException ) {
 + inFlightException . addSuppressed ( newException ) ;
 + }
 }
 }
 else {


<nb> public abstract class HttpRequestParser {
 state . stringBuilder . setLength ( NUMBER0 ) ;
 if ( next == STRING0 ) {
 parseState = AWAIT_DATA_END ;
 + } else if ( next == STRING1 ) {
 + state . state = ParseState . PARSE_COMPLETE ;
 + return ;
 } else {
 state . state = ParseState . HEADER ;
 state . parseState = NUMBER0 ;
 <nb> public class SimpleParserTestCase {

 @ test
 public void testLineFeedsLineEnds ( ) {
 - byte [ ] in = STRING2 . getBytes ( ) ;
 + byte [ ] in = STRING3 . getBytes ( ) ;
 runTest ( in ) ;
 }

Fix issue with parsing non RFC compliant requests


<nb> public class MessageCounterTest {

 assertEquals ( counter . toString ( ) , NUMBER0 , counter . getCount ( GROUP1 , NotificationSource . PROJECT_SYNC , null , OTHER_BUILD_SYSTEM ) ) ;
 assertEquals ( counter . toString ( ) , NUMBER1 , counter . getCount ( GROUP2 , NotificationSource . PROJECT_SYNC , null , OTHER_BUILD_SYSTEM ) ) ;
 +
 + counter . remove ( GROUP2 , NotificationSource . PROJECT_SYNC , OTHER_BUILD_SYSTEM ) ;
 + assertEquals ( counter . toString ( ) , NUMBER2 , counter . getCount ( GROUP2 , NotificationSource . PROJECT_SYNC , null , OTHER_BUILD_SYSTEM ) ) ;
 + assertEquals ( counter . toString ( ) , NUMBER0 , counter . getCount ( null , NotificationSource . PROJECT_SYNC , null , OTHER_BUILD_SYSTEM ) ) ;
 + counter . remove ( null , NotificationSource . PROJECT_SYNC , OTHER_BUILD_SYSTEM ) ;
 + assertEquals ( counter . toString ( ) , NUMBER2 , counter . getCount ( null , NotificationSource . PROJECT_SYNC , null , OTHER_BUILD_SYSTEM ) ) ;
 }
 }


<nb> public class HeaderItem extends Item < HeaderItem > {
 throw new RuntimeException ( STRING0 ) ;
 }

 - SINGLE
 - if ( in . readInt ( ) != NUMBER0 ) {
 - throw new RuntimeException ( STRING1 ) ;
 - }
 -
 - SINGLE
 - if ( in . readInt ( ) != NUMBER0 ) {
 - throw new RuntimeException ( STRING1 ) ;
 + SINGLE
 + if ( ( in . readInt ( ) | in . readInt ( ) ) != NUMBER0 ) {
 + System . err . println ( STRING2 ) ;
 }

 int sectionSize ;


<nb> public abstract class GraphDatabaseSetting < T >

 File path = new File ( rawValue ) ;

 - System . out . println ( STRING0 + path ) ;
 - System . out . println ( STRING1 + path . isAbsolute ( ) ) ;
 -
 - if ( ! path . isAbsolute ( ) && relativeTo != null )
 + if ( ! path . isAbsolute ( ) && relativeTo != null )
 {
 File baseDir = new File ( config . get ( relativeTo ) ) ;
 path = new File ( baseDir , rawValue ) ;
 - System . out . println ( STRING2 + path ) ;
 }

 - System . out . println ( STRING3 + path . isAbsolute ( ) ) ;
 -
 - if ( makeCanonical )
 + if ( makeCanonical )
 {
 try
 {


<nb> public class SingletonComponentDescription extends SessionBeanComponentDescripti
 return new SingletonBMTInterceptor ( ( SingletonComponent ) component ) ;
 }
 } ;
 + if ( getClassDescription ( ) . getPostConstructMethod ( ) != null ) {
 + configuration . addPostConstructInterceptor ( slsbBmtInterceptorFactory , InterceptorOrder . ComponentPostConstruct . TRANSACTION_INTERCEPTOR ) ;
 + }
 + if ( getClassDescription ( ) . getPreDestroyMethod ( ) != null ) {
 + configuration . addPreDestroyInterceptor ( slsbBmtInterceptorFactory , InterceptorOrder . ComponentPreDestroy . TRANSACTION_INTERCEPTOR ) ;
 + }
 SINGLE
 configuration . addComponentInterceptor ( slsbBmtInterceptorFactory , InterceptorOrder . Component . BMT_TRANSACTION_INTERCEPTOR , false ) ;
 }

make sure a tx is rolledback when the BMT singleton did not complete it


<nb> public class UndeployMojo extends AbstractAndroidMojo {
 if ( file != null ) {
 undeployApk ( file ) ;
 } else {
 + if ( ! SUPPORTED_PACKAGING_TYPES . contains ( project . getPackaging ( ) ) ) {
 + getLog ( ) . info ( STRING0 + project . getPackaging ( ) ) ;
 + return ;
 + }
 packageToUndeploy = extractPackageNameFromAndroidManifest ( androidManifestFile ) ;
 undeployApk ( packageToUndeploy ) ;
 }


<nb> public abstract class JerseyTest {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + protected Client getClient ( ) {
 return client . get ( ) ;
 }

 <nb> public abstract class JerseyTest {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + protected Client setClient ( final Client client ) {
 return this . client . getAndSet ( client ) ;
 }

 <nb> public abstract class JerseyTestNg extends JerseyTest {
 }

 @ override
 - COMMENT
 + protected final Client getClient ( ) {
 return strategy . client ( ) ;
 }

 @ override
 - COMMENT
 + protected final Client setClient ( final Client client ) {
 return strategy . client ( client ) ;
 }

Allow JerseyTest to create client with non default ClientBuilder


<nb> public class SparkMapRecordHandler extends SparkRecordHandler {
 }
 } catch ( Throwable e ) {
 abort = true ;
 + Utilities . setMapWork ( jc , null ) ;
 if ( e instanceof OutOfMemoryError ) {
 SINGLE
 throw ( OutOfMemoryError ) e ;
 <nb> public class SparkReduceRecordHandler extends SparkRecordHandler {

 } catch ( Throwable e ) {
 abort = true ;
 + Utilities . setReduceWork ( jc , null ) ;
 if ( e instanceof OutOfMemoryError ) {
 SINGLE
 throw ( OutOfMemoryError ) e ;

Retrying task could use cached bad operators Spark Branch Jimmy Xiang via Szehon


<nb> public final class Matcher {
 COMMENT
 COMMENT
 public static boolean matchPath ( Set < String [ ] > patternSet , String str ) {
 - boolean result ;
 for ( String [ ] patternTokens : patternSet ) {
 if ( matchPath ( patternTokens , tokenizePathAsArray ( str ) , true ) ) {
 return true ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ApnsConnectionTest {
 connection . DELAY_IN_MS = NUMBER0 ;
 connection . sendMessage ( msg ) ;
 Assert . assertArrayEquals ( msg . marshall ( ) , baos . toByteArray ( ) ) ;
 + connection . close ( ) ;
 }
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class AclImpl implements Acl , MutableAcl , AuditableAcl , OwnershipAcl {
 SINGLE


<nb> public class GeneratorTask < T > extends ConventionTask {
 File inputFile = getInputFile ( ) ;
 if ( inputFile == null ) {
 File outputFile = getOutputFile ( ) ;
 - if ( outputFile . exists ( ) ) {
 + if ( outputFile != null && outputFile . exists ( ) ) {
 return outputFile ;
 } else {
 return null ;

Fixed GeneratorTask to handle the case where both input and output files are null


<nb> public class HealthCheckTest extends InstrumentationTestCase {

 assertEquals ( testCaseMessage ( STRING0 , testCaseComment ) , outputUrl ,
 xmlrpcUrl ) ;
 +
 + server . shutdown ( ) ;
 }

 private MockWebServer setupMockHttpServer ( MockWebServer server , JSONObject requestResponsesJson ) throws

Shutdown the MockWebServer between mock tests


<nb> public class SwingHelper {
 textPane . setFont ( font != null ? font : UIUtil . getLabelFont ( ) ) ;
 textPane . setContentType ( UIUtil . HTML_MIME ) ;
 textPane . setEditable ( false ) ;
 - textPane . setBackground ( background != null ? background : UIUtil . getLabelBackground ( ) ) ;
 + if ( background != null ) {
 + textPane . setBackground ( background ) ; SINGLE
 + }
 + else {
 + textPane . setOpaque ( false ) ;
 + if ( UIUtil . isUnderNimbusLookAndFeel ( ) ) {
 + textPane . setBackground ( UIUtil . TRANSPARENT_COLOR ) ;
 + }
 + }
 textPane . setForeground ( foreground != null ? foreground : UIUtil . getLabelForeground ( ) ) ;
 return textPane ;
 }

html viewer should have no visible background if background null specified at creation time


<nb> public class CanvasView extends FrameLayout {
 mBottomMaskView . animate ( ) . alpha ( mCurrentAlpha ) . setDuration ( Constant . CANVAS_FADE_ANIM_TIME ) ;
 }

 - if ( ! mEnabled || ( mCurrentAlpha == FLOAT0 && mContentViewY == ( int ) ( mTargetY ) ) ) {
 + if ( ! mEnabled || mCurrentAlpha == FLOAT0 ) {

 try {
 clearFocus ( ) ;

Orientation change causes background to not be scrollable


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class GifDrawableResource extends DrawableResource < GifDrawable > {

 @ override
 public int getSize ( ) {
 - return drawable . getBuffer ( ) . limit ( ) + Util . getBitmapByteSize ( drawable . getFirstFrame ( ) ) ;
 + Bitmap firstFrame = drawable . getFirstFrame ( ) ;
 + return drawable . getBuffer ( ) . limit ( ) + Util . getBitmapByteSize ( firstFrame . getWidth ( ) ,
 + firstFrame . getHeight ( ) , firstFrame . getConfig ( ) ) ;
 }

 @ override
 <nb> public class LruCache < T , Y > {
 COMMENT
 COMMENT
 COMMENT
 - protected void trimToSize ( int size ) {
 + protected synchronized void trimToSize ( int size ) {
 Map . Entry < T , Y > last ;
 while ( currentSize > size ) {
 last = cache . entrySet ( ) . iterator ( ) . next ( ) ;

Fix issues allowing memory cache size to get out of sync


<nb> public class QueryLoggerIT
 SINGLE
 db . getManager ( ) . newUser ( STRING0 , STRING1 , false ) ;
 db . getManager ( ) . newUser ( STRING2 , STRING1 , false ) ;
 - db . getManager ( ) . addUserToRole ( STRING0 , STRING3 ) ;
 - db . getManager ( ) . addUserToRole ( STRING2 , STRING4 ) ;
 + db . getManager ( ) . addRoleToUser ( STRING3 , STRING0 ) ;
 + db . getManager ( ) . addRoleToUser ( STRING4 , STRING2 ) ;

 EnterpriseAuthSubject mats = db . login ( STRING0 , STRING1 ) ;

Fix compilation error due to parallel merges


<nb> public class TxEngine extends EngineWrapper {
 public static Engine createSnapshotFor ( Engine engine ) {
 if ( engine . isReadOnly ( ) )
 return engine ;
 - if ( engine instanceof EngineWrapper )
 - return createSnapshotFor ( ( ( EngineWrapper ) engine ) . getWrappedEngine ( ) ) ;
 - return ( ( TxEngine ) engine ) . snapshot ( ) ;
 + if ( engine instanceof TxEngine )
 + return ( ( TxEngine ) engine ) . snapshot ( ) ;
 + return createSnapshotFor ( ( ( EngineWrapper ) engine ) . getWrappedEngine ( ) ) ;
 }

 public Engine snapshot ( ) {


<nb> public class PinnedSectionListView extends ListView {
 if ( adapter == null || visibleItemCount == NUMBER0 ) return ; SINGLE

 SINGLE
 - int candidatePosition = findNextCandidatePosition ( firstVisibleItem , visibleItemCount ) ;
 - if ( candidatePosition == - NUMBER1 ) {
 - candidatePosition = findPreviousCandidatePosition ( firstVisibleItem ) ;
 - if ( candidatePosition == - NUMBER1 ) return ; SINGLE
 - }
 + int candidatePosition = findNextVisibleCandidatePosition ( firstVisibleItem , visibleItemCount ) ;
 + if ( candidatePosition == - NUMBER1 ) return ; SINGLE

 SINGLE
 int childIndex = candidatePosition - firstVisibleItem ;
 <nb> public class PinnedSectionListView extends ListView {
 mPinnedShadow = null ;
 }

 - private int findNextCandidatePosition ( int firstVisibleItem , int visibleItemCount ) {
 + private int findNextVisibleCandidatePosition ( int firstVisibleItem , int visibleItemCount ) {
 PinnedSectionListAdapter adapter = ( PinnedSectionListAdapter ) getAdapter ( ) ;
 for ( int childIndex = NUMBER0 ; childIndex < visibleItemCount ; childIndex ++ ) {
 int position = firstVisibleItem + childIndex ;

fixing NPE when there is a single section in a visible area in the list


<nb> public class DocumentationManager {
 DocumentationProvider elementProvider =
 element == null || elementLanguage . is ( containingFileLanguage ) ? null : LanguageDocumentation . INSTANCE . forLanguage ( elementLanguage ) ;

 - ContainerUtil . addIfNotNull ( elementProvider , result ) ;
 ContainerUtil . addIfNotNull ( originalProvider , result ) ;
 + ContainerUtil . addIfNotNull ( elementProvider , result ) ;
 if ( containingFile != null ) {
 final Language baseLanguage = containingFile . getViewProvider ( ) . getBaseLanguage ( ) ;
 if ( ! baseLanguage . is ( containingFileLanguage ) ) {


<nb> public class ProtocolProviderServiceJabberImpl
 public static final String URN_IETF_RFC_3264 = STRING0 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + SINGLE
 + @ suppresswarnings ( STRING1 )
 + public static final String URN_XMPP_IQ_VERSION = STRING2 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<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 ;
 - import NAMESPACE ;
 - import NAMESPACE ;

 public class PopupMenuShowAlert extends ExtensionPopupMenuItem implements Comparable < PopupMenuShowAlert > {


<nb> public class MessageView extends K9Activity
 Animation . RELATIVE_TO_PARENT , right , Animation . RELATIVE_TO_PARENT , left ,
 Animation . RELATIVE_TO_PARENT , FLOAT0 , Animation . RELATIVE_TO_PARENT , FLOAT0
 ) ;
 - slide . setDuration ( NUMBER0 ) ;
 + slide . setDuration ( NUMBER1 ) ;
 slide . setFillBefore ( true ) ;
 slide . setInterpolator ( new AccelerateInterpolator ( ) ) ;
 return slide ;

Speed up the page flip animation now that we load message views so much faster


<nb> public abstract class AbstractAnnotationProcessor extends AbstractProcessor {
 writer . write ( content ) ;
 } catch ( IOException e ) {
 logger . error ( STRING0 + filename ) ;
 - throw new RuntimeException ( STRING0 + filename , e ) ;
 } finally {
 if ( writer != null ) {
 try {
 writer . close ( ) ;
 } catch ( IOException e ) {
 logger . error ( STRING0 + filename ) ;
 - throw new RuntimeException ( STRING0 + filename , e ) ;
 }
 }
 }

Fixed code generation interruption due to file name duplication


<nb> public class MockTypeConverterRegistry implements TypeConverterRegistry {
 }

 public void addTypeConverter ( Class toType , Class fromType , TypeConverter typeConverter ) {
 - System . out . println ( STRING0 + typeConverter ) ;
 + typeConverters . add ( typeConverter ) ;
 }

 public void addFallbackTypeConverter ( TypeConverter typeConverter ) {
 - System . out . println ( STRING1 + typeConverter ) ;
 + fallbackTypeConverters . add ( typeConverter ) ;
 }

 public TypeConverter lookup ( Class toType , Class fromType ) {

Fixed the test error with my last commit


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class MultiDetector extends Detector {

 public DetectorResult [ ] detectMulti ( Map < DecodeHintType , ? > hints ) throws NotFoundException {
 BitMatrix image = getImage ( ) ;
 - MultiFinderPatternFinder finder = new MultiFinderPatternFinder ( image ) ;
 + ResultPointCallback resultPointCallback =
 + hints == null ? null : ( ResultPointCallback ) hints . get ( DecodeHintType . NEED_RESULT_POINT_CALLBACK ) ;
 + MultiFinderPatternFinder finder = new MultiFinderPatternFinder ( image , resultPointCallback ) ;
 FinderPatternInfo [ ] infos = finder . findMulti ( hints ) ;

 if ( infos . length == NUMBER0 ) {

Add result point callback to multi QR code detector


<nb>

 package NAMESPACE ;

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

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

 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 @ beta
 @ gwtcompatible
 public final class HtmlEscapers {
 - private HtmlEscapers ( ) { }
 -
 - SINGLE
 - SINGLE
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class HtmlEscapers {
 return HTML_ESCAPER ;
 }

 + SINGLE
 + SINGLE
 +
 private static final Escaper HTML_ESCAPER =
 Escapers . builder ( )
 . addEscape ( STRING0 , STRING1 )
 <nb> public final class HtmlEscapers {
 . addEscape ( STRING2 , STRING3 )
 . addEscape ( STRING4 , STRING5 )
 . build ( ) ;
 +
 + private HtmlEscapers ( ) { }
 }


<nb> public class Checker

 SINGLE
 final String stripped ;
 - if ( ( mConfig . getBasedir ( ) == null )
 - || ! aFileName . startsWith ( mConfig . getBasedir ( ) ) )
 - {
 + final String basedir = mConfig . getBasedir ( ) ;
 + if ( ( basedir == null ) || ! aFileName . startsWith ( basedir ) ) {
 stripped = aFileName ;
 }
 else {
 SINGLE
 - stripped = aFileName . substring ( mConfig . getBasedir ( ) . length ( ) + NUMBER0 ) ;
 + final int skipSep = basedir . endsWith ( File . separator ) ? NUMBER1 : NUMBER0 ;
 + stripped = aFileName . substring ( basedir . length ( ) + skipSep ) ;
 }

 LineText [ ] errors ;

fixed bug where reported file names were not correct when checkstyle basedir ended with File separator


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SQLFileChange extends AbstractSQLChange {
 if ( sqlStream == null ) {
 return null ;
 }
 - return getChangeSet ( ) . getChangeLogParameters ( ) . expandExpressions ( StreamUtil . getStreamContents ( sqlStream , encoding ) ) ;
 + String content = StreamUtil . getStreamContents ( sqlStream , encoding ) ;
 + if ( getChangeSet ( ) != null ) {
 + ChangeLogParameters parameters = getChangeSet ( ) . getChangeLogParameters ( ) ;
 + if ( parameters != null ) {
 + content = parameters . expandExpressions ( content ) ;
 + }
 + }
 + return content ;
 } catch ( IOException e ) {
 throw new UnexpectedLiquibaseException ( e ) ;
 }

Handle potentially null changeSet and changeLogParameters


<nb> public abstract class WPActionBarActivity extends SherlockFragmentActivity {
 mBlogSpinner . setAdapter ( mSpinnerAdapter ) ;
 }

 - if ( blogNames . length >= NUMBER0 )
 + if ( blogNames . length >= NUMBER0 ) {
 + setupCurrentBlog ( ) ;
 onBlogChanged ( ) ;
 + }
 }
 }
 break ;
 <nb> public class BlogPreferencesActivity extends SherlockFragmentActivity {
 protected void onNewIntent ( Intent intent ) {
 super . onNewIntent ( intent ) ;
 loadSettingsForBlog ( ) ;
 -
 }

 private void loadSettingsForBlog ( ) {

Call setupCurrentBlog to get currentBlog in case user deleted the current blog in the Settings


<nb> public class AgentWebsocketService {

 @ onwebsocketclose
 public void onClose ( int closeCode , String closeReason ) {
 - LOGGER . info ( STRING0 , sessionName ( ) , closeReason ) ;
 + LOGGER . debug ( STRING1 , sessionName ( ) , closeCode , closeReason ) ;
 }

 @ onwebsocketerror

Improve logging of onClose websocket callback


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class StartupBean {
 ApplicationSettingsService applicationSettingsService ;

 @ inject
 - FeedRefreshUpdater feedRefreshUpdater ;
 -
 - @ inject
 Instance < FeedRefreshWorker > workers ;

 private long startupTime ;
 <nb> public class StartupBean {
 log . error ( STRING0 ) ;
 }
 }
 - feedRefreshUpdater . shutdown ( ) ;
 }

 }
 <nb> import NAMESPACE ;
 import NAMESPACE ;

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

 <nb> public class FeedRefreshUpdater {
 } ) ;
 }

 + @ predestroy
 public void shutdown ( ) {
 pool . shutdownNow ( ) ;
 while ( ! pool . isTerminated ( ) ) {

remove predestroy responsability from startupbean


<nb> public class VcsLogUtil {
 @ override
 public int compare ( VirtualFile root1 , VirtualFile root2 ) {
 if ( root1 . equals ( root2 ) ) return NUMBER0 ;
 - if ( VfsUtilCore . isAncestor ( root1 , root2 , false ) ) {
 - SINGLE
 - return - NUMBER1 ;
 - }
 - if ( VfsUtilCore . isAncestor ( root2 , root1 , false ) ) {
 - return NUMBER1 ;
 - }
 return root1 . getPath ( ) . compareTo ( root2 . getPath ( ) ) ;
 }
 } ) ;


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class AsyncTaskTest {

 @ before public void setUp ( ) throws Exception {
 transcript = new Transcript ( ) ;
 -
 - Robolectric . logMissingInvokedShadowMethods ( ) ;
 }

 @ test


<nb> public class Jsonschema2PojoMojo extends AbstractMojo implements GenerationConfi
 COMMENT
 private boolean useJodaLocalTimes = false ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 private String dateTimeType = null ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 private String timeType = null ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 private String dateType = null ;

 COMMENT

Adding date time types to Maven plugin mojo configuration


<nb> public class HexDumpProxyFrontendHandler extends ChannelInboundHandlerAdapter {
 private final String remoteHost ;
 private final int remotePort ;

 - private volatile Channel outboundChannel ;
 + SINGLE
 + SINGLE
 + private Channel outboundChannel ;

 public HexDumpProxyFrontendHandler ( String remoteHost , int remotePort ) {
 this . remoteHost = remoteHost ;

Remove volatile from field as its not needed


<nb> public interface ProtocolNames
 COMMENT
 COMMENT
 public static final String SKYPE = STRING0 ;
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String SIP_COMMUNICATOR_MOCK = STRING1 ;
 +
 }

Added a protocol name for the mock sip comm protocol


<nb> public class NumberPicker extends LinearLayout implements OnClickListener ,
 COMMENT
 COMMENT
 public int getCurrent ( ) {
 + String str = String . valueOf ( ( ( TextView ) mText ) . getText ( ) ) ;
 + validateCurrentView ( str ) ;
 return mCurrent ;
 }
 }

Fixed a bug where values typed into the text of a number picker could be ignored