<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Activity extends ContextThemeWrapper
 a . recycle ( ) ;
 if ( colorPrimary != NUMBER0 ) {
 ActivityManager . TaskDescription td = new ActivityManager . TaskDescription ( ) ;
 - td . setPrimaryColor ( colorPrimary ) ;
 - td . setBackgroundColor ( colorBg ) ;
 + if ( Color . alpha ( colorPrimary ) == NUMBER1 ) {
 + td . setPrimaryColor ( colorPrimary ) ;
 + }
 + if ( Color . alpha ( colorBg ) == NUMBER1 ) {
 + td . setBackgroundColor ( colorBg ) ;
 + }
 setTaskDescription ( td ) ;
 }
 }

Only set the task description if the colors are opaque


<nb> public class CCDeleteTaskWindow extends CCTaskWindowAction {
 private static final Logger LOG = Logger . getInstance ( CCDeleteTaskWindow . class ) ;

 public CCDeleteTaskWindow ( ) {
 - super ( STRING0 , STRING0 , null ) ;
 + super ( STRING1 , STRING1 , null ) ;
 }

 @ override
 <nb> import NAMESPACE ;
 public class CCShowTaskWindowDetails extends CCTaskWindowAction {

 public CCShowTaskWindowDetails ( ) {
 - super ( STRING2 , STRING3 , null ) ;
 + super ( STRING4 , STRING4 , null ) ;
 }

 @ override


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

 import NAMESPACE ;


<nb> public final class DefaultBlockWorker extends AbstractWorker implements BlockWor
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 @ override


<nb> public class ChannelOption < T > extends UniqueName {
 public static final ChannelOption < Boolean > TCP_NODELAY = valueOf ( STRING0 ) ;

 @ deprecated
 - public static final ChannelOption < Long > AIO_READ_TIMEOUT = valueOf ( STRING1 ) ;
 - @ deprecated
 - public static final ChannelOption < Long > AIO_WRITE_TIMEOUT = valueOf ( STRING2 ) ;
 -
 - @ deprecated
 public static final ChannelOption < Boolean > DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION =
 valueOf ( STRING3 ) ;

Remove the irrelevant AIO channel options


<nb> public class AuthenticatorActivity extends AccountAuthenticatorActivity
 public void onOkClick ( View view ) {
 String prefix = STRING0 ;
 String url = ( ( TextView ) findViewById ( R . id . host_URL ) ) . getText ( )
 - . toString ( ) ;
 + . toString ( ) . trim ( ) ;
 if ( mIsSslConn ) {
 prefix = STRING1 ;
 } else {
 <nb> public class AuthenticatorActivity extends AccountAuthenticatorActivity
 mStatusText = mStatusIcon = NUMBER0 ;
 mStatusCorrect = false ;
 String t_url = ( ( TextView ) findViewById ( R . id . host_URL ) ) . getText ( )
 - . toString ( ) . toLowerCase ( ) ;
 + . toString ( ) . trim ( ) . toLowerCase ( ) ;

 switch ( type ) {
 case OK_SSL :

Added forgotten trim s on the content of the URL field


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ClassMappingNameConverter extends ResolvingConverter . StringConverte
 SuggestedNameInfo info = codeStyleManager . suggestVariableName ( VariableKind . LOCAL_VARIABLE , null , null , classType ) ;
 return Arrays . asList ( info . names ) ;
 }
 +
 + @ override
 + public PsiElement resolve ( String o , ConvertContext context ) {
 + DomElement parent = context . getInvocationElement ( ) . getParent ( ) ;
 + assert parent != null ;
 + return parent . getXmlElement ( ) ;
 + }
 }
 <nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 + @ retention ( RetentionPolicy . RUNTIME )
 public @ interface MappingClass {
 }


<nb> public class FileBufferManager {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + private synchronized void setStateToWriting ( ) {
 + this . status = FileEntryStatus . WRITING ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class FileBufferManager {
 fbme = new FileBufferManagerEntry ( true , this . tmpDir ) ;
 this . dataSources . put ( sourceChannelID , fbme ) ;
 }
 +
 + fbme . setStateToWriting ( ) ;
 }

 return fbme . getFileChannelForWriting ( ) ;

Fixed internal state of FileBufferManagerEntry


<nb> public class GitBlit implements ServletContextListener {
 public void configureContext ( IStoredSettings settings , boolean startFederation ) {
 logger . info ( STRING0 + settings . toString ( ) ) ;
 this . settings = settings ;
 -
 +
 + repositoriesFolder = getRepositoriesFolder ( ) ;
 + logger . info ( STRING1 + repositoriesFolder . getAbsolutePath ( ) ) ;
 +
 SINGLE
 mailExecutor = new MailExecutor ( settings ) ;
 luceneExecutor = new LuceneExecutor ( settings , repositoriesFolder ) ;
 gcExecutor = new GCExecutor ( settings ) ;

 - repositoriesFolder = getRepositoriesFolder ( ) ;
 - logger . info ( STRING1 + repositoriesFolder . getAbsolutePath ( ) ) ;
 -
 SINGLE
 repositoryListSettingsChecksum . set ( getRepositoryListSettingsChecksum ( ) ) ;

Fixed regression in setting up Lucene executor


<nb> public class TextUtilsTest extends TestCase {
 Spannable s3 = new SpannableString ( s1 ) ;
 s3 . setSpan ( new StyleSpan ( NUMBER0 ) , NUMBER1 , NUMBER2 , Spannable . SPAN_EXCLUSIVE_EXCLUSIVE ) ;
 TextPaint p = new TextPaint ( ) ;
 + p . setFlags ( p . getFlags ( ) & ~ p . DEV_KERN_TEXT_FLAG ) ;

 for ( int i = NUMBER0 ; i < NUMBER3 ; i ++ ) {
 for ( int j = NUMBER0 ; j < NUMBER4 ; j ++ ) {

Turn off kerning when testing TextUtils ellipsize


<nb> public class SIPCommMenu
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public SelectedObject getSelected ( )
 - {
 - return new SelectedObject ( getText ( ) , getIcon ( ) , getSelectedObject ( ) ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class UploadActivity extends SherlockFragmentActivity implements ServiceC

 mNewAlbumButton . setOnClickListener ( this ) ;

 - mAlbumAdapter = new ArrayAdapter < Album > ( this , android . R . layout . simple_spinner_dropdown_item , mAlbums ) ;
 + mAlbumAdapter = new ArrayAdapter < Album > ( this , android . R . layout . simple_spinner_item , mAlbums ) ;
 + mAlbumAdapter . setDropDownViewResource ( android . R . layout . simple_spinner_dropdown_item ) ;
 mAlbumSpinner . setAdapter ( mAlbumAdapter ) ;

 bindService ( new Intent ( this , PhotoUploadService . class ) , this , Context . BIND_AUTO_CREATE ) ;


<nb>
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 package NAMESPACE ;

 import NAMESPACE ;


<nb> public class BatchNode extends Node implements Savable {
 List < Geometry > list = map . get ( g . getMaterial ( ) ) ;
 if ( list == null ) {
 SINGLE
 - for ( Material mat : map . keySet ( ) ) {
 - if ( g . getMaterial ( ) . isEqual ( mat ) ) {
 - list = map . get ( mat ) ;
 + for ( Map . Entry < Material , List < Geometry > > mat : map . entrySet ( ) ) {
 + if ( g . getMaterial ( ) . isEqual ( mat . getKey ( ) ) ) {
 + list = mat . getValue ( ) ;
 }
 }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ProviderConnection {
 } catch ( RuntimeException e ) {
 for ( Throwable t = e ; t != null ; t = t . getCause ( ) ) {
 SINGLE
 - if ( t instanceof UnsupportedOperationException ) {
 - throw new InternalUnsupportedModelException ( ) ;
 + if ( t instanceof UnknownModelException ) {
 + throw ( InternalUnsupportedModelException ) ( new InternalUnsupportedModelException ( ) . initCause ( t ) ) ;
 }
 }
 throw e ;

Provider wraps unknown model exception in protocol wrapper


<nb> public class MSSQLDatabase extends AbstractJdbcDatabase {
 systemTablesAndViews . add ( STRING0 ) ;
 systemTablesAndViews . add ( STRING1 ) ;
 systemTablesAndViews . add ( STRING2 ) ;
 + systemTablesAndViews . add ( STRING3 ) ;

 systemTablesAndViews . add ( STRING4 ) ;
 systemTablesAndViews . add ( STRING5 ) ;

Added sysdiagrams to list of system tables views


<nb> public class WorldEdit extends Plugin {
 commands . put ( STRING0 , STRING1 ) ;
 commands . put ( STRING2 , STRING3 ) ;
 commands . put ( STRING4 , STRING5 ) ;
 + commands . put ( STRING6 , STRING7 ) ;
 commands . put ( STRING8 , STRING9 ) ;
 commands . put ( STRING10 , STRING11 ) ;
 commands . put ( STRING12 , STRING13 ) ;


<nb> public final class UnsignedLongs {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static long parseUnsignedLong ( String s , int radix ) {
 checkNotNull ( s ) ;

Document the NPE in UnsignedLongs parseUnsignedLong


<nb> public class CasLoggerFactoryTests {

 private static final File LOG_FILE = new File ( STRING0 , STRING1 ) ;

 - private static final String ID1 = TicketGrantingTicket . PREFIX + STRING2 ;
 - private static final String ID2 = TicketGrantingTicket . PROXY_GRANTING_TICKET_PREFIX + STRING3 ;
 - private static final String ID3 = TicketGrantingTicket . PROXY_GRANTING_TICKET_IOU_PREFIX + STRING3 ;
 + private static final String ID1 = TicketGrantingTicket . PREFIX
 + + STRING2 ;
 + private static final String ID2 = TicketGrantingTicket . PROXY_GRANTING_TICKET_PREFIX
 + + STRING3 ;
 + private static final String ID3 = TicketGrantingTicket . PROXY_GRANTING_TICKET_IOU_PREFIX
 + + STRING3 ;
 private Logger logger ;

 @ beforeclass


<nb> public class PsiPackageImpl extends PsiPackageBase implements PsiPackage , Querya
 @ notnull
 @ override
 public PsiClass [ ] findClassByShortName ( @ notnull String name , @ notnull GlobalSearchScope scope ) {
 + if ( ! containsClassNamed ( name ) ) return PsiClass . EMPTY_ARRAY ;
 return getFacade ( ) . findClassByShortName ( name , this , scope ) ;
 }

PsiPackageImpl findClassByShortName should check containsClassNamed before linearly traversing all the package files


<nb> public class ShowAnnotationColorsAction extends ActionGroup {
 if ( enabled ) {
 myType . set ( ) ;
 }
 - else {
 - if ( myType == ColorMode . NONE ) {
 - ColorMode . ORDER . set ( ) ;
 - }
 - else {
 - ColorMode . NONE . set ( ) ;
 - }
 - }
 myGutter . revalidateMarkup ( ) ;
 }
 }
 <nb> public class ShowShortenNames extends ActionGroup {
 if ( enabled ) {
 myType . set ( ) ;
 }
 - else {
 - if ( myType == ShortNameType . NONE ) {
 - ShortNameType . LASTNAME . set ( ) ;
 - }
 - else {
 - ShortNameType . NONE . set ( ) ;
 - }
 - }
 myGutter . revalidateMarkup ( ) ;
 }
 }


<nb> public class RSConnectAccountWizard
 return pages ;
 }

 - public static final String SERVICE_NAME = STRING0 ;
 + public static final String SERVICE_NAME = STRING1 ;
 public static final String SERVICE_DESCRIPTION =
 - STRING2 +
 + STRING3 +
 STRING4 ;
 }
 <nb> public class PublishingPreferencesPane extends PreferencesPane
 missingPkgPanel . getElement ( ) . getStyle ( ) . setMarginBottom ( NUMBER0 , Unit . PX ) ;
 add ( missingPkgPanel ) ;

 - final CheckBox chkEnableRSConnect = checkboxPref ( STRING5 ,
 + final CheckBox chkEnableRSConnect = checkboxPref ( STRING6 ,
 uiPrefs_ . enableRStudioConnect ( ) ) ;
 final HorizontalPanel rsconnectPanel = checkBoxWithHelp ( chkEnableRSConnect ,
 STRING7 ) ;

remove beta designantion from rstudio connect label title


<nb> public final class RequestProcessor implements IRequestProcessor {

 BugLog . getInstance ( ) . assertNotNull ( requests ) ;

 - final ProcessRequestsHelper helper = ( myTimeout == - NUMBER0 ) ?
 - new DirectProcessRequestHelper ( ) : new TimedOutProcessRequestHelper ( ) ;
 + COMMENT
 + COMMENT
 + final ProcessRequestsHelper helper = new DirectProcessRequestHelper ( ) ;
 return helper . processRequests ( requests , connectionStreams , communicationProgressHandler ) ;
 }

after import with checkout files have incorrect statuses


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SearchLookup {
 sourceLookup . setNextDocId ( docId ) ;
 fieldsLookup . setNextDocId ( docId ) ;
 }
 +
 + SINGLE
 + SINGLE
 + public void setNextReader ( IndexReader reader ) {
 + if ( AtomicReader . class . isInstance ( reader ) ) {
 + throw new ElasticSearchIllegalArgumentException ( STRING0 + reader . getClass ( ) ) ;
 + }
 + AtomicReaderContext context = ( AtomicReaderContext ) reader . getContext ( ) ;
 + setNextReader ( context ) ;
 + }
 }


<nb> public class TestDiscoveryExtension extends RunConfigurationExtension {
 if ( ( root == null || root . getHandler ( ) == handler ) ) {
 final String fullTestName = test . getLocationUrl ( ) ;
 if ( fullTestName != null && fullTestName . startsWith ( JavaTestLocator . TEST_PROTOCOL ) ) {
 - myCompletedMethodNames . add ( fullTestName . substring ( JavaTestLocator . TEST_PROTOCOL . length ( ) + NUMBER0 ) ) ;
 + myCompletedMethodNames . add ( ( ( TestDiscoveryConfiguration ) configuration ) . getFrameworkPrefix ( ) + fullTestName . substring ( JavaTestLocator . TEST_PROTOCOL . length ( ) + NUMBER0 ) ) ;
 if ( myCompletedMethodNames . size ( ) > NUMBER1 ) {
 final String [ ] fullTestNames = ArrayUtil . toStringArray ( myCompletedMethodNames ) ;
 myCompletedMethodNames . clear ( ) ;


<nb> import NAMESPACE ;
 public @ interface Unroll {
 SINGLE
 SINGLE
 - String value ( ) default STRING0 ;
 + String value ( ) default STRING1 ;
 }

undid accidental change that wasn t supposed to be committed yet


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ActionNamesBackwardsCompatibilityTest extends ElasticsearchBackward
 actionsVersions . put ( BenchmarkAction . NAME , Version . V_1_4_0 ) ;
 actionsVersions . put ( BenchmarkStatusAction . NAME , Version . V_1_4_0 ) ;
 actionsVersions . put ( AbortBenchmarkAction . NAME , Version . V_1_4_0 ) ;
 + actionsVersions . put ( GetIndexAction . NAME , Version . V_1_4_0 ) ;

 actionsVersions . put ( ExistsAction . NAME , Version . V_1_4_0 ) ;
 actionsVersions . put ( ExistsAction . NAME + STRING0 , Version . V_1_4_0 ) ;

TEST added exception for GET index API to bwc tests


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CamelPostProcessorHelper implements CamelContextAware {
 String key ;
 String prefix = getCamelContext ( ) . getPropertyPrefixToken ( ) ;
 String suffix = getCamelContext ( ) . getPropertySuffixToken ( ) ;
 - if ( ! propertyName . contains ( prefix ) ) {
 +
 + if ( prefix == null && suffix == null ) {
 + SINGLE
 + prefix = PropertiesComponent . DEFAULT_PREFIX_TOKEN ;
 + suffix = PropertiesComponent . DEFAULT_SUFFIX_TOKEN ;
 + }
 +
 + if ( ! propertyName . startsWith ( prefix ) ) {
 SINGLE
 key = prefix + propertyName + suffix ;
 } else {

Avoid potential NPE when using PropertyInject with Camel main


<nb> public class Squeezebox {
 }

 SINGLE
 - SINGLE
 + squeezeServer . clearPlaylist ( playerId ) ;

 SINGLE
 if ( volume != - NUMBER0 ) {

added language parameter for action squeezeboxSpeak


<nb> public class TypeCheck implements NodeTraversal . Callback , CompilerPass {

 SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - static final DiagnosticType BAD_DELETE =
 - DiagnosticType . warning (
 - STRING0 ,
 - STRING1 ) ;
 -
 -
 - SINGLE
 SINGLE
 SINGLE

Delete an unused compiler warning definition


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class Log4j2Impl implements Log {

 private Logger log ;


<nb> public class TypeElement extends Element {
 myType = type ;
 }

 - public Type getMyType ( ) {
 + public Type getType ( ) {
 return myType ;
 }

 <nb> public class ExpressionVisitor extends StatementVisitor {

 TypeElement typeElement = ( TypeElement ) getConverter ( ) . elementToElement ( expression . getOperand ( ) ) ;
 - typeElement . getMyType ( ) . convertedToNotNull ( ) ;
 + typeElement . getType ( ) . convertedToNotNull ( ) ;
 myResult = new ClassObjectAccessExpression ( typeElement ) ;
 }

 <nb> public class ExpressionVisitor extends StatementVisitor {
 super . visitInstanceOfExpression ( expression ) ;

 TypeElement typeElement = ( TypeElement ) getConverter ( ) . elementToElement ( expression . getCheckType ( ) ) ;
 - typeElement . getMyType ( ) . convertedToNotNull ( ) ;
 + typeElement . getType ( ) . convertedToNotNull ( ) ;
 myResult = new IsOperator ( getConverter ( ) . expressionToExpression ( expression . getOperand ( ) ) , typeElement ) ;
 }


<nb> public class StandardContext

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 private HashMap < String , String > taglibs = new HashMap < String , String > ( ) ;

Make clear this isn t the complete list if tag libraries for the app


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BaseFilterLexerUtil {
 return data ;
 }

 - final boolean needTodo = content . getFile ( ) . getFileSystem ( ) . getProtocol ( ) . equals ( StandardFileSystems . FILE_PROTOCOL ) ;
 + final boolean needTodo = content . getFile ( ) . isInLocalFileSystem ( ) ; SINGLE
 final boolean needIdIndex = IdTableBuilding . getFileTypeIndexer ( content . getFileType ( ) ) instanceof LexerBasedIdIndexer ;

 final IdDataConsumer consumer = needIdIndex ? new IdDataConsumer ( ) : null ;

build todo data flag should have the same value as todoindex isAcceptable


<nb> public class LiveTemplateCompletionContributor extends CompletionContributor {
 final TemplateImpl template = findApplicableTemplate ( file , offset , prefix ) ;
 if ( template != null ) {
 result . addElement ( new LiveTemplateLookupElement ( template ) ) ;
 - } else {
 - for ( final TemplateImpl possible : listApplicableTemplates ( file , offset ) ) {
 - result . restartCompletionOnPrefixChange ( possible . getKey ( ) ) ;
 - }
 + }
 + for ( final TemplateImpl possible : listApplicableTemplates ( file , offset ) ) {
 + result . restartCompletionOnPrefixChange ( possible . getKey ( ) ) ;
 }

 }

restart completion when a live template name is entered also when another live template with shorter name was already suggested


<nb> class AvailableContribution extends Contribution {
 url = params . get ( STRING0 ) ;
 sentence = params . get ( STRING1 ) ;
 paragraph = params . get ( STRING2 ) ;
 - version = PApplet . parseInt ( params . get ( STRING3 ) , NUMBER0 ) ;
 + String versionStr = params . get ( STRING3 ) ;
 + if ( versionStr != null ) {
 + version = PApplet . parseInt ( versionStr , NUMBER0 ) ;
 + }
 prettyVersion = params . get ( STRING4 ) ;
 }


<nb> public class WsInputStream extends java . io . InputStream {

 SINGLE

 + SINGLE
 +
 int i = processor . read ( ) ;
 this . wsFrameHeader = new WsFrameHeader ( i ) ;


<nb> public class JibriIq
 PENDING ( STRING0 ) ,

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + RETRYING ( STRING1 ) ,
 +
 + COMMENT
 COMMENT
 COMMENT
 FAILED ( STRING2 ) ,


<nb> public class ShadowPopupWindow {
 showAsDropDown ( anchor ) ;
 }

 + @ implementation
 + public void showAtLocation ( View parent , int gravity , int x , int y ) {
 + showAsDropDown ( parent ) ;
 + }
 +
 public boolean dispatchTouchEvent ( MotionEvent e ) {
 return onTouchInterceptor != null && onTouchInterceptor . onTouch ( realPopupWindow . getContentView ( ) , e ) ;
 }


<nb> public class PSqlStatement extends BaseObject implements Iterator {
 resultSet = statement . executeQuery ( ) ;

 if ( resultSet != null ) {
 - resultSet . next ( ) ;
 + valid = resultSet . next ( ) ;
 + } else {
 + valid = false ;
 }
 } catch ( SQLException e ) {
 throw new WrapSqlException ( env , e ) ;

Fix sql statement iterator bug in sql ext


<nb> public class Allocation extends BaseObj {
 return mUsage ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public int getSizeBytes ( ) {
 + return mType . getCount ( ) * mType . getElement ( ) . getSizeBytes ( ) ;
 + }
 +
 private void updateCacheInfo ( Type t ) {
 mCurrentDimX = t . getX ( ) ;
 mCurrentDimY = t . getY ( ) ;
 <nb> public class Allocation extends BaseObj {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Allocation extends BaseObj {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class HttpParser
 case CLOSED :
 case END :
 break ;
 +
 + case EOF_CONTENT :
 + _handler . messageComplete ( ) ;
 + break ;
 +
 default:
 - LOG . warn ( STRING0 , this ) ;
 + if ( _state . ordinal ( ) > State . END . ordinal ( ) )
 + _handler . earlyEOF ( ) ;
 + else
 + LOG . warn ( STRING0 , this ) ;
 }
 setState ( State . CLOSED ) ;
 _endOfContent = EndOfContent . UNKNOWN_CONTENT ;


<nb> public class LoaderCursorSupport extends SherlockFragmentActivity {
 MenuItem item = menu . add ( STRING0 ) ;
 item . setIcon ( android . R . drawable . ic_menu_search ) ;
 item . setShowAsAction ( MenuItem . SHOW_AS_ACTION_ALWAYS ) ;
 - View searchView = SearchViewCompat . newSearchView ( getActivity ( ) ) ;
 + SherlockFragmentActivity activity = ( SherlockFragmentActivity ) getActivity ( ) ;
 + View searchView = SearchViewCompat . newSearchView ( activity . getSupportActionBar ( ) . getThemedContext ( ) ) ;
 if ( searchView != null ) {
 SearchViewCompat . setOnQueryTextListener ( searchView ,
 new OnQueryTextListenerCompat ( ) {


<nb> enum ConvenientModeEnum {
 }

 enum DirectionEnum {
 - Auto ( NUMBER0 ) , SwingUD ( NUMBER1 ) , Rotation ( NUMBER2 ) , Fixed ( NUMBER3 ) ;
 + Auto ( NUMBER0 ) , SwingUD ( NUMBER1 ) , Rotation ( NUMBER2 ) , Fixed ( NUMBER3 ) , SwingLR ( NUMBER4 ) ;
 int value ;

 private DirectionEnum ( int number ) {


<nb> public class Tomcat7CometSupport extends AsynchronousProcessor {
 }

 private void bz51881 ( CometEvent event ) throws IOException {
 - String [ ] tomcatVersion = config . getServletContext ( ) . getServerInfo ( ) . substring ( NUMBER0 ) . split ( STRING0 ) ;
 try {
 + String [ ] tomcatVersion = config . getServletContext ( ) . getServerInfo ( ) . substring ( NUMBER0 ) . split ( STRING0 ) ;
 String minorVersion = tomcatVersion [ NUMBER1 ] ;
 if ( minorVersion . indexOf ( STRING1 ) != - NUMBER2 ) {
 minorVersion = minorVersion . substring ( NUMBER3 , minorVersion . indexOf ( STRING1 ) ) ;


<nb> public class ORuntimeKeyIndexDefinition < T > extends ODocumentWrapperNoClass imple
 protected void fromStream ( ) {
 final byte keySerializerId = ( ( Number ) document . field ( STRING0 ) ) . byteValue ( ) ;
 serializer = ( OBinarySerializer < T > ) OBinarySerializerFactory . INSTANCE . getObjectSerializer ( keySerializerId ) ;
 + if ( serializer == null )
 + throw new OConfigurationException ( STRING1 + keySerializerId
 + + STRING2 ) ;
 }

 public Object getDocumentValueToIndex ( final ODocument iDocument ) {

returned an exception in case the custom serializer is not present on unmarshalling of index definition


<nb> public final class ImageLoaderConfiguration {
 final int httpReadTimeout ;
 final int threadPoolSize ;
 final int threadPriority ;
 - final boolean allowCacheImageMultipleSizesInMemory ;
 final MemoryCacheable < String , Bitmap > memoryCache ;
 final DiscCache discCache ;
 final DisplayImageOptions defaultDisplayImageOptions ;
 <nb> public final class ImageLoaderConfiguration {
 httpReadTimeout = builder . httpReadTimeout ;
 threadPoolSize = builder . threadPoolSize ;
 threadPriority = builder . threadPriority ;
 - allowCacheImageMultipleSizesInMemory = builder . allowCacheImageMultipleSizesInMemory ;
 discCache = builder . discCache ;
 memoryCache = builder . memoryCache ;
 defaultDisplayImageOptions = builder . defaultDisplayImageOptions ;


<nb> public class LocationManagerService extends ILocationManager . Stub {
 for ( UpdateRecord record : records ) {
 if ( isCurrentProfile ( UserHandle . getUserId ( record . mReceiver . mUid ) ) ) {
 LocationRequest locationRequest = record . mRequest ;
 +
 + SINGLE
 + SINGLE
 + if ( ! providerRequest . locationRequests . contains ( locationRequest ) ) {
 + continue ;
 + }
 +
 if ( locationRequest . getInterval ( ) <= thresholdInterval ) {
 if ( record . mReceiver . mWorkSource != null
 && record . mReceiver . mWorkSource . size ( ) > NUMBER0

Blame only location observers that actually receive updates


<nb> public final class HazelcastCacheProvider implements CacheProvider {
 this . instance = instance ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 public Cache buildCache ( final String name , final Properties properties ) throws CacheException {
 return new HazelcastCache ( instance , name , properties ) ;
 }


<nb> public class CameraUtil {

 @ targetapi ( Build . VERSION_CODES . LOLLIPOP )
 public static boolean hasCamera2 ( Context context ) {
 - if ( context != null ) return false ; SINGLE
 if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . LOLLIPOP ) return false ;
 try {
 CameraManager manager = ( CameraManager ) context . getSystemService ( Context . CAMERA_SERVICE ) ;


<nb> public class Material implements CloneableSmartAsset , Cloneable , Savable {
 }
 ColorRGBA color = l . getColor ( ) ;
 SINGLE
 - lightData . setVector4InArray ( color . getRed ( ) ,
 - color . getGreen ( ) ,
 - color . getBlue ( ) ,
 - l . getType ( ) . getId ( ) ,
 - lightDataIndex ) ;
 - lightDataIndex ++ ;
 +
 + if ( l . getType ( ) != Light . Type . Probe ) {
 + lightData . setVector4InArray ( color . getRed ( ) ,
 + color . getGreen ( ) ,
 + color . getBlue ( ) ,
 + l . getType ( ) . getId ( ) ,
 + lightDataIndex ) ;
 + lightDataIndex ++ ;
 + }

 switch ( l . getType ( ) ) {
 case Directional :

Fixed an issue in material when having classic lights along with a LightProbe


<nb> import NAMESPACE ;

 import NAMESPACE ;

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

remove unused imports that may cause the build to fail


<nb> public abstract class WrapperManager < T extends ActionWrapper > {
 return set ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public < R extends T > void register ( String name , R actionWrapper ) {
 - madvocContextInjector . injectMadvocContext ( actionWrapper ) ;
 - madvocContextInjector . injectMadvocParams ( actionWrapper ) ;
 -
 - wrappers . put ( name , actionWrapper ) ;
 - }

 COMMENT
 COMMENT


<nb> public abstract class Visibility extends Transition {
 DisappearListener disappearListener = new DisappearListener ( viewToKeep ,
 finalVisibility , isForcedVisibility ) ;
 animator . addListener ( disappearListener ) ;
 + animator . addPauseListener ( disappearListener ) ;
 addListener ( disappearListener ) ;
 } else if ( ! isForcedVisibility ) {
 viewToKeep . setTransitionVisibility ( originalVisibility ) ;


<nb>
 - package NAMESPACE ;
 + package NAMESPACE ;

 public class PersonList {

 <nb>
 - package NAMESPACE ;
 + package NAMESPACE ;

 import NAMESPACE ;

Fix package names in sample for EclipseIntegrationTest


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

 COMMENT
 <nb> public class FileMenuFilter {
 if ( mComponentsGetter != null && mFile != null && mAccount != null ) {
 FileDownloaderBinder downloaderBinder = mComponentsGetter . getFileDownloaderBinder ( ) ;
 downloading = downloaderBinder != null && downloaderBinder . isDownloading ( mAccount , mFile ) ;
 + OperationsServiceBinder opsBinder = mComponentsGetter . getOperationsServiceBinder ( ) ;
 + downloading |= ( opsBinder != null && opsBinder . isSynchronizing ( mAccount , mFile . getRemotePath ( ) ) ) ;
 FileUploaderBinder uploaderBinder = mComponentsGetter . getFileUploaderBinder ( ) ;
 uploading = uploaderBinder != null && uploaderBinder . isUploading ( mAccount , mFile ) ;
 }

Allow cancelling download of folders as soon as the SynchronizeFolderOperation is in the OperationsService


<nb> class RobotiumUtils {
 }

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

 public boolean isCheckBoxChecked ( int index )
 <nb> public class Solo {
 }

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

Clarified javadoc for isCheckBoxChecked in Solo and RobotiumUtils


<nb> public class NewRMarkdownDialog extends ModalDialog < NewRMarkdownDialog . Result >
 @ override
 protected boolean validate ( Result input )
 {
 - return true ;
 + SINGLE
 + SINGLE
 + if ( input . isNewDocument ( ) ||
 + input . getFromTemplate ( ) . getTemplatePath ( ) != null )
 + return true ;
 + return false ;
 }

 @ override

don t accept input if user hasn t chosen a template


<nb> import NAMESPACE ;
 COMMENT
 public class ConnectedComponents {

 + private ConnectedComponents ( ) { }
 +
 private static final < T extends Comparable < T > > void visit ( Map < Vertex < T > , Integer > map , List < List < Vertex < T > > > list , Vertex < T > v , int c ) {
 map . put ( v , c ) ;

Made the connected components constructor private


<nb> public abstract class LinkColumn < T > extends Column < T , String >
 Element . as ( evTarget ) . getClassName ( ) . startsWith (
 RESOURCES . styles ( ) . link ( ) ) )
 {
 - onClicked . execute (
 - dataProvider . getList ( ) . get ( context . getIndex ( ) ) ) ;
 + int idx = context . getIndex ( ) ;
 + if ( idx >= NUMBER0 && idx < dataProvider . getList ( ) . size ( ) )
 + onClicked . execute ( dataProvider . getList ( ) . get ( idx ) ) ;
 }
 }
 }


<nb> public class DataExporterCSV extends StreamExporterAbstract {
 SINGLE
 final boolean hasQuotes = useQuotes && value . indexOf ( quoteChar ) != - NUMBER0 ;
 if ( ! quote && ! value . isEmpty ( ) ) {
 - if ( hasQuotes || value . indexOf ( delimiter ) != - NUMBER0 || value . contains ( rowDelimiter ) ) {
 + if ( hasQuotes ||
 + value . indexOf ( delimiter ) != - NUMBER0 ||
 + value . indexOf ( STRING0 ) != - NUMBER0 ||
 + value . indexOf ( STRING1 ) != - NUMBER0 ||
 + value . contains ( rowDelimiter ) )
 + {
 quote = true ;
 }
 }

CSV quoting fix explicit check for r and n


<nb> public abstract class IntroduceVariableBase extends IntroduceHandlerBase impleme
 text = stripped ;
 }

 + if ( literalExpression != null && text . equals ( literalExpression . getText ( ) ) ) return literalExpression ;
 +
 final PsiElement parent = literalExpression != null ? literalExpression : elementAt ;
 tempExpr = elementFactory . createExpressionFromText ( text , parent ) ;


<nb> public class Environment implements Runnable , IOReadableWritable {

 if ( this . executingThread == null ) {
 if ( this . taskName == null ) {
 - this . executingThread = new Thread ( this , this . taskName ) ;
 - } else {
 this . executingThread = new Thread ( this ) ;
 + } else {
 + this . executingThread = new Thread ( this , this . taskName ) ;
 }
 }

Fixed possible NullPointerException in Environment


<nb> public class ExifInterface {
 }

 SINGLE
 - getJpegAttributes ( in ) ;
 + try {
 + getJpegAttributes ( in ) ;
 + } catch ( IOException e ) {
 + SINGLE
 + SINGLE
 + Log . w ( TAG , STRING0 , e ) ;
 + }

 if ( DEBUG ) {
 printAttributes ( ) ;

ignore exceptions when getting wrong images


<nb> public class RexsterTokens {
 public static final String LONG = STRING0 ;

 public static final String ACCEPT = STRING1 ;
 - public static final String APPLICATION_REXSTER_TYPED_JSON = STRING2 ;
 + public static final String APPLICATION_REXSTER_TYPED_JSON = STRING3 ;

 }


<nb> import NAMESPACE ;
 COMMENT
 public class BaseBulletTest extends BulletTest {
 SINGLE
 - private final static String customDesktopLib = STRING0 ;
 + private final static String customDesktopLib = null ; SINGLE

 private static boolean initialized = false ;
 private static void init ( ) {


<nb> public class DelayedActionSystem implements UpdateSubscriberSystem {

 for ( DelayedOperation delayedOperation : operationsToInvoke ) {
 if ( delayedOperation . entityRef . exists ( ) ) {
 + delayedOperation . entityRef . removeComponent ( DelayedActionComponent . class ) ;
 delayedOperation . entityRef . send ( new DelayedActionTriggeredEvent ( delayedOperation . operationId ) ) ;
 }
 }

Removing the DelayActionComponent when the delayed action is triggered


<nb> public class GPUImageView extends FrameLayout {
 return bitmap ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + public void onPause ( ) {
 + mGLSurfaceView . onPause ( ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public void onResume ( ) {
 + mGLSurfaceView . onResume ( ) ;
 + }
 +
 public static class Size {
 int width ;
 int height ;

Add onPause and onResume methods to pause resume GLSurfaceView


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SettingsFragment extends PreferenceFragment implements SharedPrefer
 if ( defaultBrowserIcon != null ) {
 preference . setIcon ( defaultBrowserIcon ) ;
 defaultAppsPreference . setIcon ( defaultBrowserIcon ) ;
 +
 + SINGLE
 + Dialog dialog = defaultAppsPreference . getDialog ( ) ;
 + if ( dialog != null ) {
 + dialog . setOnDismissListener ( new DialogInterface . OnDismissListener ( ) {
 + @ override
 + public void onDismiss ( DialogInterface dialog ) {
 + getActivity ( ) . finish ( ) ;
 + }
 + } ) ;
 + }
 }
 }
 } ) ;

Add brutal hack to prevent stale icon displaying on Settings


<nb> public class FindInFilesDialog extends ModalDialog < FindInFilesDialog . Result >
 return mainWidget_ ;
 }

 + @ override
 + protected void onDialogShown ( )
 + {
 + super . onDialogShown ( ) ;
 +
 + txtSearchPattern_ . setFocus ( true ) ;
 + }
 +
 @ uifield
 TextBox txtSearchPattern_ ;
 @ uifield
 <nb> public class FindOutputTab extends DelayLoadWorkbenchTab < FindOutputPresenter >
 Commands commands ,
 final Session session )
 {
 - super ( STRING0 , shim ) ;
 + super ( STRING1 , shim ) ;
 shim_ = shim ;

 if ( ! session . getSessionInfo ( ) . isFindInFilesEnabled ( ) )


<nb> public class MessageCompose extends K9Activity implements OnClickListener , OnFoc
 if ( k9identity . containsKey ( IdentityField . ORIGINAL_MESSAGE ) ) {
 mMessageReference = null ;
 try {
 - mMessageReference = new MessageReference ( k9identity . get ( IdentityField . ORIGINAL_MESSAGE ) ) ;
 + String originalMessage = k9identity . get ( IdentityField . ORIGINAL_MESSAGE ) ;
 + MessageReference messageReference = new MessageReference ( originalMessage ) ;
 +
 + SINGLE
 + Preferences prefs = Preferences . getPreferences ( getApplicationContext ( ) ) ;
 + Account account = prefs . getAccount ( messageReference . accountUuid ) ;
 + if ( account != null ) {
 + mMessageReference = messageReference ;
 + }
 } catch ( MessagingException e ) {
 Log . e ( K9 . LOG_TAG , STRING0 , e ) ;
 }

Validate original message field of identity header when loading drafts


<nb> public class ByteBuddyAgent {
 COMMENT
 public static Dispatcher make ( ) {
 try {
 - Class < ? > processHandle = Class . forName ( STRING0 ) ;
 - return new ForJava9CapableVm ( processHandle . getDeclaredMethod ( STRING1 ) ,
 - processHandle . getDeclaredMethod ( STRING2 ) ) ;
 + return new ForJava9CapableVm ( Class . forName ( STRING0 ) . getDeclaredMethod ( STRING1 ) ,
 + Class . forName ( STRING0 ) . getDeclaredMethod ( STRING2 ) ) ;
 } catch ( RuntimeException exception ) {
 throw exception ;
 } catch ( Exception ignored ) {


<nb> public final class InputConnectionCompat {
 final ClipDescription description = data . getParcelable (
 COMMIT_CONTENT_DESCRIPTION_KEY ) ;
 final Uri linkUri = data . getParcelable ( COMMIT_CONTENT_LINK_URI_KEY ) ;
 - final int flags = data . getParcelable ( COMMIT_CONTENT_FLAGS_KEY ) ;
 + final int flags = data . getInt ( COMMIT_CONTENT_FLAGS_KEY ) ;
 final Bundle opts = data . getParcelable ( COMMIT_CONTENT_OPTS_KEY ) ;
 final InputContentInfoCompat inputContentInfo =
 new InputContentInfoCompat ( contentUri , description , linkUri ) ;

Fix a type mismatch in COMMIT_CONTENT_FLAGS_KEY


<nb> final class IncomingDataPoints implements WritableDataPoints {
 throw new IllegalArgumentException ( STRING0 + timestamp
 + STRING1 + last_ts
 + STRING2 + value + STRING3 + this ) ;
 - } else if ( timestamp - base_time > Const . MAX_TIMESPAN ) {
 + } else if ( timestamp - base_time >= Const . MAX_TIMESPAN ) {
 SINGLE
 SINGLE
 SINGLE
 <nb> final class IncomingDataPoints implements WritableDataPoints {
 SINGLE
 final int new_size = Math . min ( size * NUMBER0 , Const . MAX_TIMESPAN ) ;
 if ( new_size == size ) {
 - throw new AssertionError ( STRING4 + this + STRING5 ) ;
 + throw new AssertionError ( STRING4 + this + STRING6 + size ) ;
 }
 values = Arrays . copyOf ( values , new_size ) ;
 qualifiers = Arrays . copyOf ( qualifiers , new_size ) ;

Fix an off by one in a comparison when adding new data points


<nb> public class ServiceManager {
 private ServiceManager ( ) { }

 public static < T > T getService ( @ notnull Class < T > serviceClass ) {
 - return doGetService ( ApplicationManager . getApplication ( ) , serviceClass ) ;
 + final Application application = ApplicationManager . getApplication ( ) ;
 + assert application != null : STRING0 + serviceClass . getSimpleName ( ) ;
 + return doGetService ( application , serviceClass ) ;
 }

 public static < T > T getService ( @ notnull Project project , @ notnull Class < T > serviceClass ) {

improve exception message when no Application


<nb> package NAMESPACE ;

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

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

 <nb> public final class TransferEnvelope {
 return duplicatedTransferEnvelope ;
 }

 + public boolean isLastEnvelope ( ) {
 +
 + if ( this . eventList == null ) {
 + return false ;
 + }
 +
 + final Iterator < AbstractEvent > it = this . eventList . iterator ( ) ;
 + while ( it . hasNext ( ) ) {
 + if ( it . next ( ) instanceof ChannelCloseEvent ) {
 + return true ;
 + }
 + }
 +
 + return false ;
 + }
 +
 @ override
 public boolean equals ( final Object obj ) {

Implemented convenience method to detect last envelope transfered through a channel


<nb> class IRFactory {
 COMMENT
 COMMENT
 private void handleBlockComment ( Comment comment ) {
 - Pattern p = Pattern . compile ( STRING0 ) ;
 + Pattern p = Pattern . compile ( STRING1 ) ;
 if ( p . matcher ( comment . getValue ( ) ) . find ( ) ) {
 errorReporter . warning (
 SUSPICIOUS_COMMENT_WARNING ,
 <nb> public class ParserTest extends BaseJSTypeTestCase {
 parse ( STRING2 , SUSPICIOUS_COMMENT_WARNING ) ;
 }

 + public void testSuspiciousBlockCommentWarning7 ( ) {
 + SINGLE
 + parse ( STRING3 ) ;
 + }
 +
 + public void testSuspiciousBlockCommentWarning8 ( ) {
 + SINGLE
 + parse ( STRING4 ) ;
 + }
 +
 public void testCatchClauseForbidden ( ) {
 parseError ( STRING5 ,
 STRING6 ) ;

Tighten the suspicious comment check to avoid false positives


<nb> public abstract class SerializerBase < S extends SerializerBase < S > > implements Vis
 public Void visit ( Constant < ? > expr , Void context ) {
 if ( ! getConstantToLabel ( ) . containsKey ( expr . getConstant ( ) ) ) {
 String constLabel = constantPrefix + ( getConstantToLabel ( ) . size ( ) + NUMBER0 ) ;
 - constantToLabel . put ( expr . getConstant ( ) , constLabel ) ;
 + getConstantToLabel ( ) . put ( expr . getConstant ( ) , constLabel ) ;
 append ( constLabel ) ;
 } else {
 append ( getConstantToLabel ( ) . get ( expr . getConstant ( ) ) ) ;
 <nb> public abstract class SerializerBase < S extends SerializerBase < S > > implements Vis
 } else {
 paramLabel = paramPrefix + param . getName ( ) ;
 }
 - constantToLabel . put ( param , paramLabel ) ;
 + getConstantToLabel ( ) . put ( param , paramLabel ) ;
 append ( paramLabel ) ;
 return null ;
 }


<nb> public class MapVectorLayer extends BaseMapLayer {
 if ( ! bmp . isRecycled ( ) ) {
 canvas . drawBitmap ( bmp , null , destImage , paintImg ) ;
 }
 + canvas . rotate ( rot , view . getCenterPointX ( ) , view . getCenterPointY ( ) ) ;
 }
 }


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

 COMMENT


<nb> public class PhoneWindowManager implements WindowManagerPolicy {
 mTmpNavigationFrame . offset ( mNavigationBarWidth , NUMBER0 ) ;
 }
 }
 + SINGLE
 + SINGLE
 + mContentTop = mCurTop = mDockTop ;
 + mContentBottom = mCurBottom = mDockBottom ;
 + mContentLeft = mCurLeft = mDockLeft ;
 + mContentRight = mCurRight = mDockRight ;
 SINGLE
 mNavigationBar . computeFrameLw ( mTmpNavigationFrame , mTmpNavigationFrame ,
 mTmpNavigationFrame , mTmpNavigationFrame ) ;

Missing menu entries in portrait when in compatibility mode


<nb> public class RealmIntroExampleActivity extends Activity {
 showStatus ( STRING0 ) ;
 showStatus ( STRING1 + realm . allObjects ( Person . class ) . size ( ) ) ;

 - RealmResults < Person > results = realm . where ( Person . class ) . equalTo ( STRING2 , STRING3 ) . findAll ( ) ;
 + RealmResults < Person > results = realm . where ( Person . class ) . equalTo ( STRING2 , STRING4 ) . findAll ( ) ;

 showStatus ( STRING5 + results . size ( ) ) ;
 }


<nb> public class CountingLatchTest extends TestCase {
 for ( int i = NUMBER0 ; i < COUNT ; i ++ ) {
 latch . increment ( ) ;
 sleep ( ) ;
 +
 }
 }
 } ) ;
 <nb> public class CountingLatchTest extends TestCase {
 }
 } ) ;
 up . start ( ) ;
 - down . start ( ) ;
 - assertFalse ( STRING0 , latch . await ( NUMBER1 , TimeUnit . MILLISECONDS ) ) ;
 - SINGLE
 + down . start ( ) ;
 assertLatchDone ( ) ;
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 private void assertLatchDone ( ) throws InterruptedException {

Fixed the unit test error of CountingLatchTest


<nb> public class AddExchanges

 SINGLE
 PlanNode result = ChildReplacer . replaceChildren ( node , ImmutableList . of ( probeSource . getNode ( ) , node . getIndexSource ( ) ) ) ;
 - return new PlanWithProperties ( result , deriveProperties ( result , probeProperties ) ) ;
 + return new PlanWithProperties ( result , deriveProperties ( result , probeSource . getProperties ( ) ) ) ;
 }

 @ override


<nb> public interface MergeVersion {
 }

 public static void reportProjectFileChangeIfNeeded ( Project project , VirtualFile file ) {
 - if ( file != null ) {
 + if ( file != null && ! file . isDirectory ( ) ) {
 if ( ProjectUtil . isProjectOrWorkspaceFile ( file ) || isProjectFile ( file ) ) {
 ProjectManagerEx . getInstanceEx ( ) . saveChangedProjectFile ( file , project ) ;
 }
 <nb> public interface MergeVersion {
 public static Runnable prepareToReportChangedProjectFiles ( final Project project , final Collection < VirtualFile > files ) {
 final Set < VirtualFile > vfs = new HashSet < VirtualFile > ( ) ;
 for ( VirtualFile vf : files ) {
 - if ( vf != null ) {
 + if ( vf != null && ! vf . isDirectory ( ) ) {
 if ( ProjectUtil . isProjectOrWorkspaceFile ( vf ) || isProjectFile ( vf ) ) {
 vfs . add ( vf ) ;
 }

fix apply patch exception check whether files reported as changed from project directories are directories and save only files


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public interface Converter < F , T > {
 T convert ( F value ) throws IOException ;


<nb> public class Sample {
 this . v1 = v1 ;
 this . t1 = t1 ;
 }
 -
 +
 public byte evalBoardings ( ShortestPathTree spt ) {
 State s0 = spt . getState ( v0 ) ;
 State s1 = spt . getState ( v1 ) ;
 <nb> public class Sample {
 return ( byte ) ( ( m0 < m1 ) ? m0 : m1 ) ;
 }

 - public byte evalByte ( ShortestPathTree spt ) {
 - long t = eval ( spt ) / NUMBER0 ;
 - if ( t >= NUMBER1 )
 - t = NUMBER1 ;
 - return ( byte ) t ;
 - }
 -
 public long eval ( ShortestPathTree spt ) {
 State s0 = spt . getState ( v0 ) ;
 State s1 = spt . getState ( v1 ) ;

remove unused evalByte method from sample


<nb> class ReaderPostRenderer {
 private String mRenderedHtml ;
 private ImageSizeMap mAttachmentSizes ;

 - private static int mDebugCnt = NUMBER0 ;
 -
 @ suppresslint ( STRING0 )
 ReaderPostRenderer ( ReaderWebView webView , ReaderPost post ) {
 - COMMENT
 - if ( mDebugCnt == NUMBER1 ) {
 - Debug . startMethodTracing ( STRING1 ) ;
 - } else if ( mDebugCnt == NUMBER2 ) {
 - Debug . stopMethodTracing ( ) ;
 - COMMENT
 -
 if ( webView == null ) {
 throw new IllegalArgumentException ( STRING2 ) ;
 }


<nb> public class MessageGenerator extends AbstractGenerator {
 return null ;
 }
 packet . setAxolotlMessage ( axolotlMessage . toElement ( ) ) ;
 - packet . addChild ( STRING0 , STRING1 ) ;
 + packet . addChild ( STRING2 , STRING1 ) ;
 return packet ;
 }

renamed pretty please store message hint to store


<nb> public class FingerprintService extends SystemService implements IBinder . DeathRe
 }
 SINGLE
 SINGLE
 - if ( mIsKeyguard && authenticated ) {
 + if ( authenticated ) {
 mPowerManager . wakeUp ( SystemClock . uptimeMillis ( ) ,
 STRING0 ) ;
 }


<nb> public class InvalidPropertyKeyFormInspection extends StringDescriptorInspection
 final FormErrorCollector collector ) {
 String error = checkDescriptor ( descriptor , module ) ;
 if ( error != null ) {
 - collector . addError ( getID ( ) , component , prop , error , null ) ;
 + collector . addError ( getID ( ) , component , prop , error ) ;
 }
 }

 <nb> public class OneButtonGroupInspection extends BaseFormInspection {
 return ;
 }
 }
 - collector . addError ( getID ( ) , component , null , UIDesignerBundle . message ( STRING0 ) , null ) ;
 + collector . addError ( getID ( ) , component , null , UIDesignerBundle . message ( STRING0 ) ) ;
 }
 }
 }

don t pass null quickfix provider if none is available


<nb> package NAMESPACE ;

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

 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT


<nb> public class CommandTest {

 @ test
 public void testOnlyReadsPartialInput ( ) throws Exception {
 - Command command = new Command ( new String [ ] { STRING0 , STRING1 , STRING2 } ) ;
 + SINGLE
 + Command command = new Command ( new String [ ] { STRING0 , STRING3 , STRING2 } ) ;
 OutputStream out = new ByteArrayOutputStream ( ) ;
 InputStream in = new InputStream ( ) {


<nb> public class MenuDrawerManager {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void toggleMenu ( boolean animate ) {
 + mMenuDrawer . toggleMenu ( animate ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 public void openMenu ( ) {
 <nb> public class MenuDrawerManager {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void openMenu ( boolean animate ) {
 + mMenuDrawer . openMenu ( animate ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 public void closeMenu ( ) {
 <nb> public class MenuDrawerManager {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void closeMenu ( boolean animate ) {
 + mMenuDrawer . closeMenu ( animate ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add open close methods to MenuDrawerManager


<nb> public final class UnderFileSystemFileOutStream extends OutputStream {
 COMMENT
 COMMENT
 COMMENT
 - public static Factory get ( ) {
 + public static synchronized Factory get ( ) {
 if ( sInstance == null ) {
 sInstance = new Factory ( ) ;
 }


<nb> public class TestAll implements Test {
 private static final int CHECK_MEMORY = NUMBER0 ;
 private static final int FILTER_CLASSES = NUMBER1 ;

 - public static int ourMode = SAVE_MEMORY_SNAPSHOT | START_GUARD COMMENT | FILTER_CLASSES ;
 + public static int ourMode = SAVE_MEMORY_SNAPSHOT COMMENT | FILTER_CLASSES ;
 private int myLastTestTestMethodCount = NUMBER2 ;
 public static final int MAX_FAILURE_TEST_COUNT = NUMBER3 ;

disable own hand written out of time check for tests


<nb> class ModelControllerImpl implements ModelController {
 final OperationContext delegateContext = activeOperations . get ( operationId ) ;
 if ( delegateContext == null ) {
 SINGLE
 - throw MESSAGES . noContextToDelegateTo ( operationId ) ; ;
 + throw MESSAGES . noContextToDelegateTo ( operationId ) ;
 }
 final ModelNode response = new ModelNode ( ) ;
 final OperationTransactionControl originalResultTxControl = control == null ? null : new OperationTransactionControl ( ) {


<nb> public class BottomBarBadge extends TextView {
 return isVisible ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - public void removeFromParent ( ) {
 - ( ( ViewGroup ) getParent ( ) ) . removeView ( this ) ;
 - }
 -
 protected BottomBarBadge ( Context context , final View tabToAddTo , SINGLE
 int backgroundColor ) {
 super ( context ) ;

Removed a method for removing badges as that could cause some bugs


<nb> public class ServerSocketReader extends SocketReader {
 }
 return true ;
 }
 + else if ( STRING0 . equals ( doc . getNamespacePrefix ( ) ) && STRING1 . equals ( doc . getName ( ) ) ) {
 + SINGLE
 + SINGLE
 + ( ( IncomingServerSession ) session ) . verifyReceivedKey ( doc ) ;
 + return true ;
 + }
 return false ;
 }

Verify key when remote server is reusing existing connection


<nb> public class FileFunction implements SkyFunction {
 public FileFunctionException ( FileSymlinkException e ) {
 super ( e , Transience . PERSISTENT ) ;
 }
 -
 - public FileFunctionException ( IOException e , Transience transience ) {
 - super ( e , transience ) ;
 - }
 }
 }

Removed unused FileFunctionException constructor


<nb> public class AssistContent implements Parcelable {
 COMMENT
 public void setDefaultIntent ( Intent intent ) {
 mIntent = intent ;
 - setWebUri ( null ) ;
 + mIsAppProvidedIntent = false ;
 + mIsAppProvidedWebUri = false ;
 + mUri = null ;
 if ( intent != null && Intent . ACTION_VIEW . equals ( intent . getAction ( ) ) ) {
 Uri uri = intent . getData ( ) ;
 if ( uri != null ) {
 <nb> public class AssistContent implements Parcelable {
 }
 mIsAppProvidedIntent = in . readInt ( ) == NUMBER0 ;
 mExtras = in . readBundle ( ) ;
 + mIsAppProvidedWebUri = in . readInt ( ) == NUMBER0 ;
 }

 void writeToParcelInternal ( Parcel dest , int flags ) {
 <nb> public class AssistContent implements Parcelable {
 }
 dest . writeInt ( mIsAppProvidedIntent ? NUMBER0 : NUMBER1 ) ;
 dest . writeBundle ( mExtras ) ;
 + dest . writeInt ( mIsAppProvidedWebUri ? NUMBER0 : NUMBER1 ) ;
 }

 @ override

Make isAppProvidedWebUri false from setDefaultIntent


<nb> public abstract class SupervisedModel < M extends Model < M , P , O > , P extends Supervis
 COMMENT
 COMMENT
 COMMENT
 -
 - COMMENT
 - COMMENT
 - COMMENT
 public boolean _toEnum = false ;

 COMMENT

Remove comment I accidentally checked in


<nb> public class Views {
 }

 public enum Finder {
 - VIEW ( ) {
 + VIEW {
 @ suppresswarnings ( STRING0 ) @ override
 public < T extends View > T findById ( Object source , int id ) {
 return ( T ) ( ( View ) source ) . findViewById ( id ) ;
 }
 } ,
 - ACTIVITY ( ) {
 + ACTIVITY {
 @ suppresswarnings ( STRING0 ) @ override
 public < T extends View > T findById ( Object source , int id ) {
 return ( T ) ( ( Activity ) source ) . findViewById ( id ) ;


<nb> public abstract class Language {
 private static Language [ ] getRealLanguages ( ) {
 List < Language > result = new ArrayList < > ( ) ;
 for ( Language lang : LANGUAGES ) {
 - if ( ! lang . getShortName ( ) . equals ( STRING0 ) ) { SINGLE
 + if ( ! STRING0 . equals ( lang . getShortName ( ) ) ) { SINGLE
 result . add ( lang ) ;
 }
 }

flip equals in case a language has null as a name


<nb> public class UseOfSunClassesInspection extends VariableInspection {
 public void visitVariable ( @ notnull PsiVariable variable ) {
 super . visitVariable ( variable ) ;
 final PsiType type = variable . getType ( ) ;
 - if ( type == null ) {
 - return ;
 - }
 final PsiType deepComponentType = type . getDeepComponentType ( ) ;
 - if ( deepComponentType == null ) {
 - return ;
 - }
 if ( ! ( deepComponentType instanceof PsiClassType ) ) {
 return ;
 }


<nb> public class BuckConstant {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - public static final String BUCK_OUTPUT_DIRECTORY = STRING0 ;
 + public static final String BUCK_OUTPUT_DIRECTORY =
 + System . getProperty ( STRING1 , STRING0 ) ;

 SINGLE
 SINGLE

Make buck out directory configurable in the environment


<nb> public abstract class ManagedChannelBuilder < T extends ManagedChannelBuilder < T > >
 COMMENT
 COMMENT
 COMMENT
 - @ experimentalapi ( STRING0 )
 public static ManagedChannelBuilder < ? > forTarget ( String target ) {
 return ManagedChannelProvider . provider ( ) . builderForTarget ( target ) ;
 }


<nb> public interface ApplicationConfig {
 COMMENT
 COMMENT
 String HANDLER_MAPPING_REGEX = ApplicationConfig . class . getPackage ( ) . getName ( ) + STRING0 ;
 - String ANNOTATION_PROCESSOR = AnnotationProcessor . class . getName ( ) ;
 + COMMENT
 + COMMENT
 + COMMENT
 + String ANNOTATION_PROCESSOR = AnnotationProcessor . class . getName ( ) ;
 }
 <nb> public class AtmosphereFramework implements ServletContextProvider {
 asyncSupportListener ( new AsyncSupportListenerAdapter ( ) ) ;

 installAnnotationProcessor ( scFacade ) ;
 +
 autoConfigureService ( scFacade . getServletContext ( ) ) ;
 patchContainer ( ) ;
 doInitParams ( scFacade ) ;

Add support for defining in web xml an annotation processor


<nb> public class PrivacyService extends IPrivacyService . Stub {
 synchronized ( mRestrictionCache ) {
 mRestrictionCache . clear ( ) ;
 }
 + synchronized ( mAskedOnceCache ) {
 + mAskedOnceCache . clear ( ) ;
 + }
 synchronized ( mSettingCache ) {
 mSettingCache . clear ( ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class OperationServiceImpl implements InternalOperationService , Pac
 Packet packet = new Packet ( bytes , partitionId ) ;
 packet . setFlag ( Packet . FLAG_OP ) ;

 - if ( op instanceof UrgentSystemOperation ) {
 + if ( op . isUrgent ( ) ) {
 packet . setFlag ( Packet . FLAG_URGENT ) ;
 }

Replaced instanceof urgentop by isUrgent


<nb> public class DefaultCompositeByteBuf extends AbstractByteBuf implements Composit
 int localLength = Math . min ( length , s . capacity ( ) - ( index - adjustment ) ) ;
 int localReadBytes = s . setBytes ( index - adjustment , in , localLength ) ;

 + if ( localReadBytes == NUMBER0 ) {
 + break ;
 + }
 +
 + if ( localReadBytes < NUMBER0 ) {
 + if ( readBytes == NUMBER0 ) {
 + return - NUMBER1 ;
 + } else {
 + break ;
 + }
 + }
 +
 if ( localReadBytes == localLength ) {
 index += localLength ;
 length -= localLength ;

Fix an infinite loop in DefaultCompositeByteBuf setBytes


<nb> public class HttpConnectorFactory

 public ServerConnector createConnector ( Server server , String host , int port , JettyThreadCalculator jettyThreadCalculator , ConnectionFactory . . . httpFactories )
 {
 -
 - int availableProcessors = Runtime . getRuntime ( ) . availableProcessors ( ) ;
 -
 int acceptors = jettyThreadCalculator . getAcceptors ( ) ;
 int selectors = jettyThreadCalculator . getSelectors ( ) ;


<nb> public class DBCollection implements IDBCollection {
 COMMENT
 public void setInternalClass ( final String path , final Class < ? extends DBObject > aClass ) {
 setObjectFactory ( objectFactory . update ( aClass , Arrays . asList ( path . split ( STRING0 ) ) ) ) ;
 + }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + protected Class < ? extends DBObject > getInternalClass ( final String path ) {
 + return objectFactory . getClassForPath ( Arrays . asList ( path . split ( STRING0 ) ) ) ;
 }

 @ override
 <nb> public final class DBObjectFactory {
 return map ;
 }

 - private Class < ? extends DBObject > getClassForPath ( final List < String > path ) {
 + Class < ? extends DBObject > getClassForPath ( final List < String > path ) {
 if ( pathToClassMap . containsKey ( path ) ) {
 return pathToClassMap . get ( path ) ;
 } else {

refactor driver compat add getObjectClass to DBCollection


<nb> public class BodyResolver {
 }
 }

 - public void resolveBodies ( @ notnull BodiesResolveContext bodiesResolveContext ) {
 - context = bodiesResolveContext ;
 - resolveBodies ( ) ;
 - }
 -
 public void resolveBodies ( ) {
 resolveBehaviorDeclarationBodies ( context ) ;
 controlFlowAnalyzer . process ( context ) ;
 <nb> public class TopDownAnalyzer {
 overloadResolver . process ( ) ;

 if ( ! topDownAnalysisParameters . isAnalyzingBootstrapLibrary ( ) ) {
 - bodyResolver . resolveBodies ( context ) ;
 + bodyResolver . resolveBodies ( ) ;
 }

 context . debug ( STRING0 ) ;

Remove context reassignment in BodyResolver


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

 public class TestWebSocketFrameClient extends TomcatBaseTest {


<nb> public class CleanPathTest extends TestCase {
 public void testMadbotsBug ( ) {
 assertEquals ( STRING0 , Files . simplifyPath ( STRING0 ) ) ;
 assertEquals ( STRING1 , Files . simplifyPath ( STRING1 ) ) ;
 + assertEquals ( STRING2 , Files . simplifyPath ( STRING3 ) ) ;
 + }
 +
 + SINGLE
 + public void test705 ( ) {
 + assertEquals ( STRING4 , Files . simplifyPath ( STRING5 ) ) ;
 + assertEquals ( STRING6 , Files . simplifyPath ( STRING7 ) ) ;
 }
 }
 <nb> public final class Files {
 }
 } else {
 COMMENT
 - if ( name [ q ] != name [ firstNonSlash ] ) {
 + if ( name [ q ] != name [ firstNonSlash ] || name [ q ] == STRING8 ) {
 name [ q ++ ] = STRING9 ;
 }
 while ( ( q < name . length && p < name . length ) &&


<nb> public class RegistrationTest extends TomcatBaseTest {

 SINGLE
 onames = mbeanServer . queryNames ( new ObjectName ( STRING0 ) , null ) ;
 - assertTrue ( STRING1 , onames . size ( ) > NUMBER0 ) ;
 + assertTrue ( STRING1 , onames . size ( ) >= NUMBER1 ) ;

 tomcat . stop ( ) ;

Increase the threshold to try and catch if MBean registration breaks and MBeans don t get registered


<nb> public class MavenProjectsTree {
 } ) ;
 result . myRootProjects . addAll ( readProjectsRecursively ( in , result ) ) ;
 }
 + catch ( IOException e ) {
 + in . close ( ) ;
 + file . delete ( ) ;
 + throw e ;
 + }
 catch ( Throwable e ) {
 throw new IOException ( e ) ;
 }


<nb> public class OperationSkipUntil < T , U > implements OnSubscribeFunc < T > {

 @ override
 public void onCompleted ( ) {
 - if ( ! running . get ( ) ) {
 - ResultManager . this . onCompleted ( ) ;
 - } else {
 - self . unsubscribe ( ) ;
 - }
 + self . unsubscribe ( ) ;
 }

 }
 <nb> public class OperationSkipUntilTest {

 verify ( observer , never ( ) ) . onError ( any ( Throwable . class ) ) ;
 verify ( observer , never ( ) ) . onNext ( any ( ) ) ;
 - verify ( observer , times ( NUMBER0 ) ) . onCompleted ( ) ;
 + verify ( observer , never ( ) ) . onCompleted ( ) ;
 }
 @ test
 public void otherFiresAndCompletes ( ) {

Fixed case with skipUntil empty never matches RxdotNet


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


<nb> public abstract class Event implements Serializable {
 }

 protected Event ( final String name ) {
 - Validate . notNull ( name , STRING0 ) ;
 + Validate . notNull ( name , STRING1 ) ;
 this . name = name ;
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public interface ICollapsible < T > {
 + public interface ICollapsible < T , Item extends IItem > {
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface ICollapsible < T > {
 COMMENT
 COMMENT
 COMMENT
 - List < IItem > getSubItems ( ) ;
 + List < Item > getSubItems ( ) ;
 }

make item type generic inside ICollapsible interface


<nb> public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal
 invalidate ( ) ;
 sendAccessibilityEvent ( AccessibilityEvent . TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED ) ;
 notifyAccessibilityStateChanged ( ) ;
 - SINGLE
 - setAccessibilityCursorPosition ( ACCESSIBILITY_CURSOR_POSITION_UNDEFINED ) ;
 }
 SINGLE
 SINGLE
 <nb> public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal
 void clearAccessibilityFocusNoCallbacks ( ) {
 if ( ( mPrivateFlags2 & ACCESSIBILITY_FOCUSED ) != NUMBER0 ) {
 mPrivateFlags2 &= ~ ACCESSIBILITY_FOCUSED ;
 - setAccessibilityCursorPosition ( ACCESSIBILITY_CURSOR_POSITION_UNDEFINED ) ;
 invalidate ( ) ;
 }
 }

Accessibility focus should not clear selection when taken away


<nb> public class WXRecycleImageManager {
 }

 public void loadImage ( ) {
 - if ( ! IfRecycleImage ) {
 + if ( ! IfRecycleImage || mAllImages == null ) {
 return ;
 }
 ImageInfo imageInfo ;

android update recycleImageManager java np


<nb> public abstract class TransportSearchTypeAction extends TransportAction < SearchRe
 sb . append ( result . shardTarget ( ) ) ;
 }

 - logger . debug ( STRING0 , sb ) ;
 + logger . debug ( STRING1 , sb , clusterState . version ( ) ) ;
 }
 moveToSecondPhase ( ) ;
 }

Added cluster state version to the debug logging of shards instances used in search


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

Updated Javadoc of OrderedMemoryAwareThreadPoolExecutor


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> 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 ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class UserInfoTokenServicesRefreshTokenTests {
 @ restcontroller
 protected static class Application {

 - @ requestmapping ( value = STRING0 )
 + @ requestmapping ( STRING0 )
 public User user ( @ requestheader ( STRING1 ) String authorization ) {
 if ( authorization . endsWith ( STRING2 ) ) {
 throw new InvalidTokenException ( STRING3 ) ;


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

Fix bean classname in Javadoc for SwitchUserFilter


<nb> public class ProviderInjectionTest extends TestCase {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public void testCreationTimeInjectionOrdering ( ) {
 Injector injector = Guice . createInjector ( new AbstractModule ( ) {

Fixing the Provider injection bug wherein we were using a Provider before it had been itself injected


<nb> public abstract class SlidingActivity extends AppCompatActivity {

 if ( scroller . willUseReverseExpansion ( ) ) {
 content . removeAllViews ( ) ;
 - photoView . setVisibility ( View . GONE ) ;
 - photoViewTempBackground . setVisibility ( View . VISIBLE ) ;

 final Interpolator interpolator ;

don t touch the header area on the reverse expansion animation


<nb> public abstract class ServiceTestCase < T extends Service > extends AndroidTestCase
 }
 if ( mServiceCreated ) {
 mService . onDestroy ( ) ;
 + mServiceCreated = false ;
 }
 }

Set mServiceCreated to false when onDestroy


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

 <nb> public class WebSocketClientTest
 }

 @ test
 + @ ignore ( STRING0 )
 public void testBasicEcho_FromServer ( ) throws Exception
 {
 TrackingSocket wsocket = new TrackingSocket ( ) ;


<nb> public class GLModel implements GLConstants , PConstants {
 int offset = firstUpdateIdx * NUMBER0 ;
 int size = ( lastUpdateIdx - firstUpdateIdx + NUMBER1 ) * NUMBER0 ;

 - texCoords . put ( updateNormalArray , offset , size ) ;
 + texCoords . put ( updateTexCoordArray , offset , size ) ;
 texCoords . position ( NUMBER2 ) ;

 gl . glBufferSubData ( GL11 . GL_ARRAY_BUFFER , offset * SIZEOF_FLOAT , size * SIZEOF_FLOAT , texCoords ) ;


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

 COMMENT
 <nb> public class BatchInvalidator extends Invalidator {
 }

 private List < Invalidation > pollInvalidations ( InvalidationQueue invalidationQueue ) {
 - final int size = min ( batchSize , invalidationQueue . size ( ) ) ;
 - if ( size == NUMBER0 ) {
 - return emptyList ( ) ;
 - }
 + final int size = invalidationQueue . size ( ) ;

 List < Invalidation > invalidations = new ArrayList < Invalidation > ( size ) ;

 <nb> public class BatchInvalidator extends Invalidator {
 }

 invalidations . add ( invalidation ) ;
 -
 }
 +
 return invalidations ;
 }

Sent all existing enqueued invalidations


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class AnActionEvent implements PlaceProvider < String > {
 }

 @ notnull
 - public < T > T getRequiredData ( @ notnull DataKey < T > key ) {
 + public < T > T getDataChecked ( @ notnull DataKey < T > key ) {
 T data = getData ( key ) ;
 assert data != null ;
 return data ;
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + @ notnull
 + public < T > T getRequiredData ( @ notnull DataKey < T > key ) {
 + return getDataChecked ( key ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class ModelLoader extends ModelBakery
 }
 ModelBlock model = this . model ;
 if ( hasItemModel ( model ) ) model = makeItemModel ( model ) ;
 + if ( model == null ) return getMissingModel ( ) . bake ( state , format , bakedTextureGetter ) ;
 if ( isCustomRenderer ( model ) ) return new IFlexibleBakedModel . Wrapper ( new BuiltInModel ( new ItemCameraTransforms ( model . getThirdPersonTransform ( ) , model . getFirstPersonTransform ( ) , model . getHeadTransform ( ) , model . getInGuiTransform ( ) ) ) , Attributes . DEFAULT_BAKED_FORMAT ) ;
 return new IFlexibleBakedModel . Wrapper ( bakeModel ( model , state . apply ( this ) , state instanceof UVLock ) , Attributes . DEFAULT_BAKED_FORMAT ) ;
 }

Hopefully fix NPE during baking of empty vanilla item models


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


<nb> public class ConversationActor extends ModuleActor {
 docs . clear ( ) ;
 inPendingIndex . clear ( ) ;
 outPendingIndex . clear ( ) ;
 - if ( ! isHiddenPeer ) {
 - dialogsActor . send ( new DialogsActor . ChatClear ( peer ) ) ;
 - }
 + dialogsActor . send ( new DialogsActor . ChatClear ( peer ) ) ;
 }

 @ verified
 <nb> public class ConversationActor extends ModuleActor {
 docs . clear ( ) ;
 inPendingIndex . clear ( ) ;
 outPendingIndex . clear ( ) ;
 - if ( ! isHiddenPeer ) {
 - dialogsActor . send ( new DialogsActor . ChatDelete ( peer ) ) ;
 - }
 + dialogsActor . send ( new DialogsActor . ChatDelete ( peer ) ) ;
 }

 SINGLE


<nb> public class MavenProjectsStructure extends SimpleTreeStructure {
 @ override
 public boolean isVisible ( ) {
 SINGLE
 - return getDisplayKind ( ) != DisplayKind . NEVER ;
 + return super . isVisible ( ) || getDisplayKind ( ) != DisplayKind . NEVER ;
 }
 }

displaying plugins goals in the select before run task dialog


<nb> public final class DeprecatedProfiles {
 this . deprecatedCheckProfiles = new CheckProfile [ NUMBER0 ] ;
 this . deprecatedCheckProfileProviders = new CheckProfileProvider [ NUMBER0 ] ;
 }
 +
 + public DeprecatedProfiles ( Plugins plugins , RuleFinder ruleFinder ) {
 + this . deprecatedRepositories = new RulesRepository [ NUMBER0 ] ;
 + this . plugins = plugins ;
 + this . ruleFinder = ruleFinder ;
 + this . deprecatedCheckProfiles = new CheckProfile [ NUMBER0 ] ;
 + this . deprecatedCheckProfileProviders = new CheckProfileProvider [ NUMBER0 ] ;
 + }

 public List < ProfileDefinition > getProfiles ( ) {
 List < ProfileDefinition > profiles = new ArrayList < ProfileDefinition > ( ) ;


<nb> public class GBM extends SharedTree < GBMModel , GBMModel . GBMParameters , GBMModel . GBM
 error ( STRING0 , STRING1 ) ;
 }
 SINGLE
 - _initialPrediction = _nclass > NUMBER0 || _parms . _distribution == Distributions . Family . bernoulli ? NUMBER1 : getInitialValue ( ) ;
 + _initialPrediction = _nclass > NUMBER0 ? NUMBER1 : getInitialValue ( ) ;
 }

 switch ( _parms . _distribution ) {
 <nb> public class Distributions extends Iced {
 case gaussian :
 return f ;
 case bernoulli :
 - assert ( NUMBER1 < f && f < NUMBER2 ) ;
 - return log ( f / ( NUMBER2 - f ) ) ;
 + return log ( f / ( NUMBER2 - f ) ) ;
 case multinomial :
 case poisson :
 case gamma :


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

 import NAMESPACE ;

 <nb> public class Http2ServerDowngraderTest {
 assertTrue ( ch . writeInbound ( new DefaultHttp2HeadersFrame ( headers , true ) ) ) ;

 FullHttpRequest request = ch . readInbound ( ) ;
 + ReferenceCountUtil . releaseLater ( request ) ;
 assertThat ( request . uri ( ) , is ( STRING0 ) ) ;
 assertThat ( request . method ( ) , is ( HttpMethod . GET ) ) ;
 assertThat ( request . protocolVersion ( ) , is ( HttpVersion . HTTP_1_1 ) ) ;


<nb> public class MasterInfo implements ImageWriter {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - private Pair < Inode , Integer > traverseToInode ( String path ) throws InvalidPathException {
 - return traverseToInode ( CommonUtils . getPathComponents ( path ) ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb>

 package NAMESPACE ;

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

 public class JetHighlightingColors {
 SINGLE
 - public final static TextAttributesKey KEYWORD = createTextAttributesKey ( STRING0 , DefaultLanguageHighlighterColors . KEYWORD ) ;
 - public static final TextAttributesKey BUILTIN_ANNOTATION = createTextAttributesKey ( STRING1 , DefaultLanguageHighlighterColors . KEYWORD ) ;
 + public static final TextAttributesKey KEYWORD = createTextAttributesKey ( STRING0 , JavaHighlightingColors . KEYWORD ) ;
 + public static final TextAttributesKey BUILTIN_ANNOTATION = createTextAttributesKey ( STRING1 , JavaHighlightingColors . KEYWORD ) ;
 public static final TextAttributesKey NUMBER = createTextAttributesKey ( STRING2 , DefaultLanguageHighlighterColors . NUMBER ) ;
 public static final TextAttributesKey STRING = createTextAttributesKey ( STRING3 , DefaultLanguageHighlighterColors . STRING ) ;
 public static final TextAttributesKey STRING_ESCAPE = createTextAttributesKey ( STRING4 , DefaultLanguageHighlighterColors . VALID_STRING_ESCAPE ) ;

Made keywords not bold in Darcula as in Java


<nb> public class OleAutoTest extends TestCase {
 public void testLoadRegTypeLib ( ) {
 SINGLE
 CLSID clsid = new CLSID ( ) ;
 - SINGLE
 + SINGLE
 HRESULT hr = Ole32 . INSTANCE . CLSIDFromString ( new WString (
 - STRING0 ) , clsid ) ;
 + STRING1 ) , clsid ) ;
 COMUtils . checkTypeLibRC ( hr ) ;
 assertEquals ( NUMBER0 , hr . intValue ( ) ) ;

 SINGLE
 LCID lcid = Kernel32 . INSTANCE . GetUserDefaultLCID ( ) ;
 PointerByReference pWordTypeLib = new PointerByReference ( ) ;
 - SINGLE
 - hr = OleAuto . INSTANCE . LoadRegTypeLib ( clsid , NUMBER1 , NUMBER2 , lcid , pWordTypeLib ) ;
 + SINGLE
 + hr = OleAuto . INSTANCE . LoadRegTypeLib ( clsid , NUMBER3 , NUMBER0 , lcid , pWordTypeLib ) ;
 COMUtils . checkTypeLibRC ( hr ) ;
 assertEquals ( NUMBER0 , hr . intValue ( ) ) ;
 }

use a different CLSID remove dependency on Word


<nb> public class PortugueseAccentuationCheckRule extends PortugueseRule {

 @ override
 public String getId ( ) {
 - return STRING0 ;
 + return STRING1 ;
 }

 @ override


<nb> public class JavaConstantExpressionEvaluator extends JavaRecursiveElementWalking
 final PsiConstantEvaluationHelper . AuxEvaluator auxEvaluator ) {
 if ( expression == null ) return null ;

 + if ( expression instanceof PsiLiteralExpression ) {
 + return ( ( PsiLiteralExpression ) expression ) . getValue ( ) ; SINGLE
 + }
 +
 JavaConstantExpressionEvaluator evaluator = new JavaConstantExpressionEvaluator ( visitedVars , throwExceptionOnOverflow , expression . getProject ( ) , auxEvaluator ) ;

 if ( expression instanceof PsiCompiledElement ) {

don t cache and retrieve getProject for that constant values of java literal expressions


<nb> class VolatileGroup

 VolatileGroup ( ) { }

 + VolatileGroup ( String groupName )
 + {
 + this . groupName = groupName ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT

Added a constructor with a groupname param in order to be able and use the class for unresolved groups


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 -
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class CqlRecordReader extends RecordReader < Long , Row >
 - implements org . apache . hadoop . mapred . RecordReader < Long , Row >
 + implements org . apache . hadoop . mapred . RecordReader < Long , Row > , AutoCloseable
 {
 private static final Logger logger = LoggerFactory . getLogger ( CqlRecordReader . class ) ;

 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - class CqlRecordWriter extends AbstractColumnFamilyRecordWriter < Map < String , ByteBuffer > , List < ByteBuffer > >
 + class CqlRecordWriter extends AbstractColumnFamilyRecordWriter < Map < String , ByteBuffer > , List < ByteBuffer > > implements AutoCloseable
 {
 private static final Logger logger = LoggerFactory . getLogger ( CqlRecordWriter . class ) ;

make CqlRecordReader Writer autocloseable


<nb> public abstract class AbstractPropertyViewAttribute < T > implements PropertyViewAt
 return ;
 }

 - if ( propertyBindingDetails . twoWayBinding )
 - ignoreNextValueModelUpdate = true ;
 -
 valueModelUpdated ( valueModel . getValue ( ) ) ;
 }
 } ) ;
 <nb> public abstract class AbstractTypeMappedTwoWayPropertyAttributeTest < IT , VST > ext
 @ test
 public void givenViewBoundWithEither1WayOr2WayBinding_WhenUpdatingValueModel_ThenViewShouldBeUpdated ( )
 {
 - createAttributeWith2WayBinding ( ) ;
 - SINGLE
 + createAttributeWithEither1WayOr2WayBinding ( ) ;

 for ( BindingExpectation < IT , VST > bindingExpectation : bindingExpectations )
 {
 <nb> public class ValueModelUtils
 @ override
 public void setValue ( T newValue )
 {
 - T oldValue = getValue ( ) ;
 - if ( oldValue == newValue )
 - return ;
 value = newValue ;
 - fireValueChange ( oldValue , newValue ) ;
 + fireValueChange ( ) ;
 }
 - private void fireValueChange ( Object oldValue , Object newValue )
 + private void fireValueChange ( )
 {
 propertyChangeSupport . firePropertyChange ( PROPERTY_VALUE ) ;
 }


<nb> public class SvnCheckinEnvironment implements CheckinEnvironment {
 mySvnVcs = svnVcs ;
 }

 - public RevisionsFactory getRevisionsFactory ( ) {
 - return new SvnRevisionsFactory ( mySvnVcs ) ;
 - }
 -
 public RefreshableOnComponent createAdditionalOptionsPanelForCheckinProject ( Refreshable panel ) {
 return new KeepLocksComponent ( panel , true ) ;
 }

killed most of the old checkin implementation


<nb> import NAMESPACE ;
 COMMENT
 public class ListOrderByPersistentMethod extends AbstractStaticPersistentMethod {

 - private static final String METHOD_PATTERN = STRING0 ;
 + private static final String METHOD_PATTERN = STRING1 ;

 public ListOrderByPersistentMethod ( SessionFactory sessionFactory , ClassLoader classLoader ) {
 super ( sessionFactory , classLoader , Pattern . compile ( METHOD_PATTERN ) ) ;
 <nb> public class ListOrderByPersistentMethod extends AbstractStaticPersistentMethod
 Object [ ] arguments ) {

 Matcher match = getPattern ( ) . matcher ( methodName ) ;
 + SINGLE
 + match . find ( ) ;

 String nameInSignature = match . group ( NUMBER0 ) ;
 - final String propertyName = nameInSignature . substring ( NUMBER1 , NUMBER1 ) . toLowerCase ( ) +
 + final String propertyName = nameInSignature . substring ( NUMBER1 , NUMBER2 ) . toLowerCase ( ) +
 nameInSignature . substring ( NUMBER2 ) ;

 int temp = - NUMBER2 ;


<nb> public class MongoInputSplit implements Writable , InputSplit {
 log . info ( STRING0
 + getLength ( )
 + STRING1
 - + getLocations ( )
 + + java . util . Arrays . toString ( getLocations ( ) )
 + STRING2
 + _querySpec
 + STRING3


<nb> public class FillCapacityWithAffinityWorkerSelectStrategy extends FillCapacityWo

 @ override
 public Optional < ImmutableZkWorker > findWorkerForTask (
 - RemoteTaskRunnerConfig config , ImmutableMap < String , ImmutableZkWorker > zkWorkers , Task task
 + final RemoteTaskRunnerConfig config ,
 + final ImmutableMap < String , ImmutableZkWorker > zkWorkers ,
 + final Task task
 )
 {
 SINGLE
 <nb> public class FillCapacityWorkerSelectStrategy implements WorkerSelectStrategy
 {
 @ override
 public Optional < ImmutableZkWorker > findWorkerForTask (
 - RemoteTaskRunnerConfig config , ImmutableMap < String , ImmutableZkWorker > zkWorkers , Task task
 + final RemoteTaskRunnerConfig config ,
 + final ImmutableMap < String , ImmutableZkWorker > zkWorkers ,
 + final Task task
 )
 {
 TreeSet < ImmutableZkWorker > sortedWorkers = Sets . newTreeSet (


<nb> public class CordovaWebViewTestActivity extends Activity {

 SINGLE
 ConfigXmlParser parser = new ConfigXmlParser ( ) ;
 + parser . parse ( this ) ;

 SystemWebView webView = ( SystemWebView ) findViewById ( R . id . cordovaWebView ) ;
 cordovaWebView = new CordovaWebViewImpl ( this , new SystemWebViewEngine ( webView ) ) ;

Fix manual tests not finding activity plugin


<nb> public class UserManagerService extends IUserManager . Stub {
 COMMENT
 public boolean removeUser ( int userHandle ) {
 checkManageUsersPermission ( STRING0 ) ;
 + if ( getUserRestrictions ( UserHandle . getCallingUserId ( ) ) . getBoolean (
 + UserManager . DISALLOW_REMOVE_USER , false ) ) {
 + Log . w ( LOG_TAG , STRING1 ) ;
 + return false ;
 + }
 +
 long ident = Binder . clearCallingIdentity ( ) ;
 try {
 final UserInfo user ;

If DISALLOW_REMOVE_USER is enabled UserManager removeUser should not remove users


<nb> public class Transformer implements ClassFileTransformer

 SINGLE
 Label futureIsDoneLabel = new Label ( ) ;
 + futureIsDoneLabel . info = new LabelNode ( ) ;
 SwitchEntry se = new SwitchEntry ( ) ;
 se . frame = frame ;
 se . futureIsDoneLabel = futureIsDoneLabel ;


<nb> public final class TestCluster implements Iterable < Client > {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 synchronized void beforeTest ( Random random , double transportClientRatio ) {
 reset ( random , true , transportClientRatio ) ;


<nb> public class Solo {

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

 <nb> class ViewFetcher {
 }

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

Clarified javadoc for getCurrentSpinners in Solo and ViewFetcher


<nb> public final class DisplayInfo implements Parcelable {
 @ override
 public void writeToParcel ( Parcel dest , int flags ) {
 dest . writeInt ( layerStack ) ;
 - dest . writeInt ( flags ) ;
 + dest . writeInt ( this . flags ) ;
 dest . writeString ( name ) ;
 dest . writeInt ( appWidth ) ;
 dest . writeInt ( appHeight ) ;


<nb> public class ReplyMessage < T > {

 if ( replyHeader . getNumberReturned ( ) > NUMBER0 ) {
 InputBuffer inputBuffer = new BasicInputBuffer ( responseBuffers . getBodyByteBuffer ( ) ) ;
 - try {
 - while ( documents . size ( ) < replyHeader . getNumberReturned ( ) ) {
 - BSONReader reader = new BSONBinaryReader ( new BSONReaderSettings ( ) , inputBuffer , false ) ;
 - try {
 - documents . add ( decoder . decode ( reader ) ) ;
 - } finally {
 - reader . close ( ) ;
 - }
 + while ( documents . size ( ) < replyHeader . getNumberReturned ( ) ) {
 + BSONReader reader = new BSONBinaryReader ( new BSONReaderSettings ( ) , inputBuffer , false ) ;
 + try {
 + documents . add ( decoder . decode ( reader ) ) ;
 + } finally {
 + reader . close ( ) ;
 }
 - } finally {
 - inputBuffer . close ( ) ;
 }
 }
 }

Avoid double freeing of ByteBuf of the body


<nb> public final class DefaultStepRunner implements StepRunner , Closeable {
 private final ExecutionContext context ;
 private final ListeningExecutorService listeningExecutorService ;

 - COMMENT
 - COMMENT
 - COMMENT
 - public DefaultStepRunner ( ExecutionContext context ) {
 - this ( context , NUMBER0 ) ;
 - }
 -
 public DefaultStepRunner ( ExecutionContext context ,
 int numThreads ) {
 this ( context , listeningDecorator ( newMultiThreadExecutor ( STRING0 , numThreads ) ) ) ;


<nb> final class NativeDaemonConnector implements Runnable {
 LocalSocketAddress . Namespace . RESERVED ) ;

 socket . connect ( address ) ;
 +
 + mOutputStream = socket . getOutputStream ( ) ;
 mCallbacks . onDaemonConnected ( ) ;

 InputStream inputStream = socket . getInputStream ( ) ;
 - mOutputStream = socket . getOutputStream ( ) ;

 byte [ ] buffer = new byte [ BUFFER_SIZE ] ;
 int start = NUMBER0 ;


<nb> public class ExtensionHttpSessions extends ExtensionAdaptor implements SessionCh

 @ override
 public void onHttpRequestSend ( HttpMessage msg , int initiator , HttpSender sender ) {
 - if ( initiator == HttpSender . CHECK_FOR_UPDATES_INITIATOR ) {
 + if ( initiator == HttpSender . CHECK_FOR_UPDATES_INITIATOR || initiator == HttpSender . AUTHENTICATION_INITIATOR ) {
 return ;
 }

 <nb> public class ExtensionHttpSessions extends ExtensionAdaptor implements SessionCh
 @ override
 public void onHttpResponseReceive ( HttpMessage msg , int initiator , HttpSender sender ) {
 if ( initiator == HttpSender . ACTIVE_SCANNER_INITIATOR || initiator == HttpSender . SPIDER_INITIATOR
 - || initiator == HttpSender . CHECK_FOR_UPDATES_INITIATOR || initiator == HttpSender . FUZZER_INITIATOR ) {
 + || initiator == HttpSender . CHECK_FOR_UPDATES_INITIATOR || initiator == HttpSender . FUZZER_INITIATOR
 + || initiator == HttpSender . AUTHENTICATION_INITIATOR ) {
 SINGLE
 return ;
 }

Do not process auth messages for HTTP Sessions tab


<nb> import NAMESPACE ;
 COMMENT
 public class PartialLRUEvictor extends BlockStoreEventListenerBase implements Evictor {
 private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ;
 - private final BlockMetadataManager mMeta ;
 -
 private static final int LINKED_HASH_MAP_INIT_CAPACITY = NUMBER0 ;
 private static final float LINKED_HASH_MAP_INIT_LOAD_FACTOR = FLOAT0 ;
 private static final boolean LINKED_HASH_MAP_ACCESS_ORDERED = true ;
 private static final boolean UNUSED_MAP_VALUE = true ;
 +
 + private final BlockMetadataManager mMeta ;

 COMMENT
 COMMENT


<nb> public class ModelMetrics extends Keyed < ModelMetrics > {
 public void reduce ( T mb ) {
 _sumsqe += mb . _sumsqe ;
 _count += mb . _count ;
 - _wsum += _wsum ;
 + _wsum += mb . _wsum ;
 }

 public void postGlobal ( ) { }


<nb> public class PrimaryDrawerItem extends BasePrimaryDrawerItem < PrimaryDrawerItem ,
 }
 }

 - protected static class ViewHolder extends BaseViewHolder {
 + public static class ViewHolder extends BaseViewHolder {
 private View badgeContainer ;
 private TextView badge ;


<nb> public class MongoGraph implements Graph {
 } else if ( ! outVertexId . equals ( vertexId ) ) {
 ( ( MongoVertex ) edge . getOutVertex ( ) ) . removeEdgeId ( edge . getId ( ) , OUT_EDGES ) ;
 }
 + this . edgeCollection . remove ( ( ( MongoEdge ) edge ) . getRawObject ( ) ) ;
 }
 this . vertexCollection . remove ( ( ( MongoVertex ) vertex ) . getRawObject ( ) ) ;
 }

did some more work on the MongoDB connector


<nb> public class SQLEditor extends SQLEditorBase implements
 releaseExecutionContext ( ) ;
 } else if ( curDataSource != dataSource ) {
 releaseExecutionContext ( ) ;
 - if ( DBeaverCore . getGlobalPreferenceStore ( ) . getBoolean ( DBeaverPreferences . EDITOR_SEPARATE_CONNECTION ) ) {
 + if ( dataSourceContainer . getPreferenceStore ( ) . getBoolean ( DBeaverPreferences . EDITOR_SEPARATE_CONNECTION ) ) {
 try {
 DBeaverUI . runInProgressDialog ( new DBRRunnableWithProgress ( ) {
 @ override

Use isolated execution contexts in SQL editor


<nb> public class GrailsASTUtils {
 public static MethodNode addDelegateInstanceMethod ( ClassNode classNode , Expression delegate , MethodNode declaredMethod , AnnotationNode markerAnnotation , boolean thisAsFirstArgument ) {
 return addDelegateInstanceMethod ( classNode , delegate , declaredMethod , markerAnnotation , thisAsFirstArgument , null , false ) ;
 }
 -
 + public static MethodNode addDelegateInstanceMethod ( ClassNode classNode , Expression delegate , MethodNode declaredMethod , AnnotationNode markerAnnotation , boolean thisAsFirstArgument , Map < String , ClassNode > genericsPlaceholders ) {
 + return addDelegateInstanceMethod ( classNode , delegate , declaredMethod , markerAnnotation , thisAsFirstArgument , genericsPlaceholders , false ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT

Add previous method signature for backwards compatibility


<nb> public class ExtensionsConfigurationFragment extends SherlockFragment

 SINGLE
 List < ExtensionManager . Extension > enabledExtensionsList = new ArrayList < > ( ) ;
 - for ( ComponentName extensionName : mEnabledExtensions ) {
 + List < ComponentName > enabledExtensionNames = new ArrayList < > ( mEnabledExtensions ) ;
 + for ( ComponentName extensionName : enabledExtensionNames ) {
 ExtensionManager . Extension extension = enabledExtensionsMap . get ( extensionName ) ;
 if ( extension == null ) {
 SINGLE
 + mEnabledExtensions . remove ( extensionName ) ;
 continue ;
 }
 enabledExtensionsList . add ( extension ) ;

Also remove any unavailable extensions to avoid saving them again


<nb> public class JobManager implements DeploymentManager , ExtendedManagementProtocol

 private final int recommendedClientPollingInterval ;

 - private final ExecutorService executorService = Executors . newSingleThreadExecutor ( ) ;
 + private final ExecutorService executorService = Executors . newCachedThreadPool ( ) ;

 private final static int SLEEPINTERVAL = NUMBER0 ;

 <nb> public class TaskManager implements TaskOperationProtocol , PluginCommunicationPr

 private final static int FAILURERETURNCODE = - NUMBER1 ;

 - private final static int DEFAULTPERIODICTASKSINTERVAL = NUMBER0 ;
 + private final static int DEFAULTPERIODICTASKSINTERVAL = NUMBER2 ;

 COMMENT
 COMMENT

Changed executor service in JobManager to support larger clusters


<nb> public class MessageInputStreamTest
 }
 }

 - @ test ( timeout = NUMBER0 )
 + @ test ( timeout = NUMBER1 )
 public void testBlockOnRead ( ) throws Exception
 {
 LocalWebSocketConnection conn = new LocalWebSocketConnection ( testname ) ;


<nb> public class XBreakpointBase < Self extends XBreakpoint < P > , P extends XBreakpointP

 @ override
 public void setLogExpressionObject ( @ nullable XExpression expression ) {
 + setLogExpressionEnabled ( true ) ;
 if ( ! Comparing . equal ( myLogExpression , expression ) ) {
 myLogExpression = expression ;
 fireBreakpointChanged ( ) ;
 <nb> public class XBreakpointBase < Self extends XBreakpoint < P > , P extends XBreakpointP

 @ override
 public void setConditionExpression ( @ nullable XExpression condition ) {
 + setConditionEnabled ( true ) ;
 if ( ! Comparing . equal ( condition , myCondition ) ) {
 myCondition = condition ;
 fireBreakpointChanged ( ) ;


<nb> public class TableLayout extends BaseTableLayout < Actor > {
 final String type ;

 public DebugRect ( String type , int x , int y , int width , int height ) {
 - super ( x , y , width , height - NUMBER0 ) ;
 + super ( x , y , width , height ) ;
 this . type = type ;
 }
 }


<nb> public class ThirdEyeAvroUtils {
 for ( int i = NUMBER0 ; i < fieldNames . length - NUMBER1 ; i ++ ) {
 String name = fieldNames [ i ] ;
 current = ( GenericRecord ) current . get ( name ) ;
 + if ( current == null ) {
 + return NULL_VALUE ;
 + }
 }

 SINGLE
 String terminalField = fieldNames [ fieldNames . length - NUMBER1 ] ;
 Object dimensionObj = current . get ( terminalField ) ;
 +
 if ( dimensionObj == null ) {
 return NULL_VALUE ;
 }

Handle null nested fields in ThirdeyeAvroUtils


<nb> public class WindowManagerService extends IWindowManager . Stub
 SINGLE
 SINGLE
 transit = AppTransition . TRANSIT_WALLPAPER_CLOSE ;
 - mAnimateWallpaperWithTarget = true ;
 if ( DEBUG_APP_TRANSITIONS ) Slog . v ( TAG ,
 STRING0 + transit ) ;
 } else if ( mWallpaperTarget != null && mWallpaperTarget . isVisibleLw ( ) ) {

Restore jankless transition keyguard to wallpaper


<nb> public class Semaphore {
 if ( sync . tryAcquireShared ( NUMBER0 ) >= NUMBER1 ) return true ;
 return sync . tryAcquireSharedNanos ( NUMBER0 , TimeUnit . MILLISECONDS . toNanos ( msTimeout ) ) ;
 }
 -
 - public boolean isDown ( ) {
 - return sync . isAcquired ( ) ;
 - }
 }

removed dangerous non thread safe friendly method isDown


<nb> public class Allocation extends BaseObj {
 COMMENT
 COMMENT
 public int getBytesSize ( ) {
 + if ( mType . mDimYuv != NUMBER0 ) {
 + return ( int ) Math . ceil ( mType . getCount ( ) * mType . getElement ( ) . getBytesSize ( ) * FLOAT0 ) ;
 + }
 return mType . getCount ( ) * mType . getElement ( ) . getBytesSize ( ) ;
 }


<nb> public class LocalFileRecordCursor
 @ override
 public void close ( )
 {
 + reader . close ( ) ;
 }

 private static class FilesReader
 <nb> public class LocalFileRecordCursor
 return fields ;
 }
 }
 + reader . close ( ) ;
 reader = createNextReader ( ) ;
 newReader = true ;
 }
 <nb> public class LocalFileRecordCursor
 long millis = ISO_FORMATTER . parseDateTime ( fields . get ( timestampOrdinalPosition . getAsInt ( ) ) ) . getMillis ( ) ;
 return domain . get ( ) . includesNullableValue ( millis ) ;
 }
 +
 + public void close ( )
 + {
 + if ( reader != null ) {
 + try {
 + reader . close ( ) ;
 + }
 + catch ( IOException e ) {
 + throw Throwables . propagate ( e ) ;
 + }
 + }
 + }
 }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class NVarcharType extends CharType {

 @ override
 public DatabaseDataType toDatabaseDataType ( Database database ) {
 - if ( database instanceof HsqlDatabase ) {
 + if ( database instanceof HsqlDatabase || database instanceof PostgresDatabase ) {
 return new DatabaseDataType ( STRING0 , getParameters ( ) ) ;
 }
 if ( database instanceof OracleDatabase ) {

Postgresql does not handle nvarchar type


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public final class FileBufferManager {
 + public class FileBufferManager {

 COMMENT
 COMMENT

Removed final modifier from FileBufferManager class


<nb> public class EvictionTest extends HazelcastTestSupport {
 }

 @ test
 + @ category ( NightlyTest . class )
 public void testNumberOfEventsFired_withMaxIdleSeconds_whenReadBackupDataEnabled ( ) throws Exception {
 final int maxIdleSeconds = NUMBER0 ;
 final int numberOfEntriesToBeAdded = NUMBER1 ;
 <nb> public class EvictionTest extends HazelcastTestSupport {
 map . get ( i ) ;
 }

 - assertOpenEventually ( evictedEntryLatch ) ;
 + assertOpenEventually ( evictedEntryLatch , NUMBER2 ) ;
 SINGLE
 SINGLE
 sleepSeconds ( NUMBER3 ) ;

add testNumberOfEventsFired_withMaxIdleSeconds_whenReadBackupDataEnabled to nightly test


<nb> public abstract class Downsampler {
 }

 final Bitmap result = BitmapFactory . decodeStream ( bis , null , options ) ;
 - if ( result == null && ! options . inJustDecodeBounds ) {
 - throw new IllegalArgumentException ( STRING0 + options . inSampleSize ) ;
 - }

 try {
 if ( options . inJustDecodeBounds ) {


<nb> public class Client {
 JobGraph job = gen . compileJobGraph ( optPlan ) ;
 job . addJar ( new Path ( prog . getJarFile ( ) . getAbsolutePath ( ) ) ) ;

 - try {
 + COMMENT
 File [ ] containedJars = prog . extractContainedLibaries ( ) ;
 if ( containedJars != null ) {
 for ( int i = NUMBER0 ; i < containedJars . length ; i ++ ) {
 <nb> public class Client {
 }
 catch ( IOException ioex ) {
 throw new ProgramInvocationException ( STRING0 + ioex . getMessage ( ) , ioex ) ;
 - }
 + COMMENT

 return job ;
 }

Nested JAR file feature of PACT layer causes problems disabled the feature temporarily


<nb> public class PatchTest extends PatchTestCase {
 Patch patch = createPatch ( ) ;
 File f = new File ( myOlderDir , STRING0 ) ;
 try ( FileOutputStream s = new FileOutputStream ( f , true ) ; FileLock ignored = s . getChannel ( ) . lock ( ) ) {
 - String message = UtilsTest . mIsWindows ? STRING1 : ValidationResult . ACCESS_DENIED_MESSAGE ;
 + String message = UtilsTest . mIsWindows ? System . getProperty ( STRING2 ) . contains ( STRING3 )
 + ? STRING4 : STRING1
 + : ValidationResult . ACCESS_DENIED_MESSAGE ;
 ValidationResult . Option option = UtilsTest . mIsWindows ? ValidationResult . Option . KILL_PROCESS : ValidationResult . Option . IGNORE ;
 assertThat ( patch . validate ( myOlderDir , TEST_UI ) ) . containsOnly (
 new ValidationResult ( ValidationResult . Kind . ERROR ,


<nb> public class MainActivity extends Activity {
 STRING0 ,
 STRING1 ,
 STRING2 ,
 - SINGLE
 + STRING3 ,
 STRING4

 } ;


<nb> public class HeliosSoloIT {

 @ rule
 public final TemporaryJobs soloTemporaryJobs = TemporaryJobs . builder ( STRING0 )
 + . hostFilter ( TEST_HOST )
 . client ( soloClient )
 . prefixDirectory ( STRING1 )
 . build ( ) ;


<nb> public class MimeMessage extends Message {

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public MimeMessage ( InputStream in ) throws IOException , MessagingException {
 parse ( in ) ;
 <nb> public class MimeMessage extends Message {
 COMMENT
 COMMENT
 public MimeMessage ( InputStream in , boolean recurse ) throws IOException , MessagingException {
 - parse ( in , true ) ;
 + parse ( in , recurse ) ;
 }

 protected void parse ( InputStream in ) throws IOException , MessagingException {

Fix MimeMessage InputStream in boolean recurse


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class StreamThread extends Thread {
 private void commitOne ( AbstractTask task , long now ) {
 try {
 task . commit ( ) ;
 + } catch ( CommitFailedException e ) {
 + SINGLE
 + log . warn ( STRING0 + task . getClass ( ) . getSimpleName ( ) + STRING1 + task . id ( ) + STRING2 + this . getName ( ) + STRING3 , e ) ;
 } catch ( KafkaException e ) {
 + SINGLE
 log . error ( STRING0 + task . getClass ( ) . getSimpleName ( ) + STRING1 + task . id ( ) + STRING2 + this . getName ( ) + STRING3 , e ) ;
 throw e ;
 }

catch a commit failure due to rebalance in StreamThread


<nb> import NAMESPACE ;
 COMMENT
 public class WidgetSettings {

 + public interface Type {
 + int UPCOMING = NUMBER0 ;
 + int RECENT = NUMBER1 ;
 + int FAVORITES = NUMBER2 ;
 + }
 +
 public static final String SETTINGS_FILE = STRING0 ;

 public static final String KEY_PREFIX_WIDGET_BACKGROUND_COLOR = STRING1 ;
 <nb> public class WidgetSettings {
 private static final int DEFAULT_WIDGET_BACKGROUND_OPACITY = NUMBER3 ;

 public static int getWidgetListType ( Context context , int appWidgetId ) {
 - int type = NUMBER0 ;
 + int type = Type . UPCOMING ;
 try {
 type = Integer . parseInt ( context . getSharedPreferences ( SETTINGS_FILE , NUMBER0 )
 . getString ( KEY_PREFIX_WIDGET_LISTTYPE + appWidgetId , STRING2 ) ) ;


<nb> public class DomElementsErrorPanel extends JPanel implements CommittablePanel , H
 protected void fillDaemonCodeAnalyzerErrorsSatus ( DaemonCodeAnalyzerStatus status , boolean fillErrorsCount ) {
 for ( int i = NUMBER0 ; i < status . errorCount . length ; i ++ ) {
 final HighlightSeverity minSeverity = SeverityRegistrar . getInstance ( myProject ) . getSeverityByIndex ( i ) ;
 + if ( minSeverity == null ) {
 + continue ;
 + }
 +
 int sum = NUMBER0 ;
 for ( DomElement element : myDomElements ) {
 final DomElementsProblemsHolder holder = myAnnotationsManager . getCachedProblemHolder ( element ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class TransportSearchTypeAction extends TransportAction < SearchRe
 }
 if ( successfulOps . get ( ) == NUMBER0 ) {
 if ( logger . isDebugEnabled ( ) ) {
 - logger . debug ( STRING0 , firstPhaseName ( ) , t ) ;
 + logger . debug ( STRING0 , t , firstPhaseName ( ) ) ;
 }
 SINGLE
 raiseEarlyFailure ( new SearchPhaseExecutionException ( firstPhaseName ( ) , STRING1 , buildShardFailures ( ) ) ) ;


<nb> public class SyslogEventHandler implements SyslogServerSessionlessEventHandlerIF
 gelf . setHost ( event . getHost ( ) ) ;
 gelf . setFacility ( Tools . syslogFacilityToReadable ( event . getFacility ( ) ) ) ;
 gelf . setLevel ( event . getLevel ( ) ) ;
 - gelf . setFullMessage ( new String ( event . getRaw ( ) ) ) ;

 try {
 SimpleGELFClientHandler gelfHandler = new SimpleGELFClientHandler ( gelf ) ;

don t set syslog raw message as GELF full message


<nb> public class HttpClientTest extends AbstractHttpClientServerTest
 @ override
 public void succeeded ( List < InetSocketAddress > result )
 {
 - SINGLE
 - SINGLE
 - result . set ( NUMBER0 , new InetSocketAddress ( STRING0 , NUMBER1 ) ) ;
 + SINGLE
 + SINGLE
 + result . add ( NUMBER0 , new InetSocketAddress ( STRING0 , NUMBER1 ) ) ;
 promise . succeeded ( result ) ;
 }


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

 import NAMESPACE ;
 <nb> public class FloatingActionButton extends VisibilityAwareImageButton {
 return false ;
 }

 - private static boolean isBottomSheet ( View view ) {
 - CoordinatorLayout . LayoutParams lp =
 - ( CoordinatorLayout . LayoutParams ) view . getLayoutParams ( ) ;
 - return lp != null && lp . getBehavior ( ) instanceof BottomSheetBehavior ;
 + private static boolean isBottomSheet ( @ nonnull View view ) {
 + final ViewGroup . LayoutParams lp = view . getLayoutParams ( ) ;
 + if ( lp instanceof CoordinatorLayout . LayoutParams ) {
 + return ( ( CoordinatorLayout . LayoutParams ) lp )
 + . getBehavior ( ) instanceof BottomSheetBehavior ;
 + }
 + return false ;
 }

 @ visiblefortesting

Fix FloatingActionButton with nested anchors


<nb> public class ActivityFragment extends Fragment implements

 mGridView = ( StickyGridHeadersGridView ) v . findViewById ( R . id . gridViewUpcoming ) ;
 mGridView . setEmptyView ( emptyView ) ;
 - mGridView . setAreHeadersSticky ( true ) ;
 + mGridView . setAreHeadersSticky ( false ) ;

 return v ;
 }
 <nb> public abstract class StreamFragment extends Fragment implements

 mGridView . setOnItemClickListener ( this ) ;
 mGridView . setEmptyView ( mEmptyView ) ;
 + mGridView . setAreHeadersSticky ( false ) ;

 SINGLE
 showProgressBar ( true ) ;

Make activity and stream headers not sticky


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

improve Spring java example to prevent initializing for each request


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class CRFClassifierEvaluator < IN extends CoreMap > extends CmdEvaluator {
 +
 private CRFClassifier < IN > classifier ;
 - SINGLE
 + SINGLE
 private String cmdStr = STRING0 ;
 private String [ ] cmd ;