<nb> public class CoordinationTransformer implements TreeTransformer {
 SINGLE
 SINGLE
 private static TregexPattern flattenSQTregex =
 - TregexPattern . compile ( STRING0 + EnglishGrammaticalRelations . copularWordRegex + STRING1 +
 + TregexPattern . compile ( STRING2 + EnglishGrammaticalRelations . copularWordRegex + STRING1 +
 SINGLE
 STRING3 + EnglishGrammaticalRelations . copularWordRegex + STRING1 +
 SINGLE
 <nb> public class CoordinationTransformer implements TreeTransformer {
 SINGLE
 STRING4 +
 SINGLE
 - STRING5 + EnglishGrammaticalRelations . copularWordRegex + STRING6 ) ;
 + STRING5 + EnglishGrammaticalRelations . copularWordRegex + STRING7 ) ;

 private static TsurgeonPattern flattenSQTsurgeon = Tsurgeon . parseOperation ( STRING8 ) ;

Loosen the restrictions on where the WHNP appears to handle quotation marks and transition words such as So


<nb> public class NearCacheContext {
 private NearCacheManager nearCacheManager ;
 private SerializationService serializationService ;
 private NearCacheExecutor nearCacheExecutor ;
 - private Object nullPlaceHolder ;

 public NearCacheContext ( ) {


<nb> public abstract class OAbstractBlock implements OProcessorBlock {
 public void assignVariable ( final OCommandContext iContext , final String iName , final Object iValue ) {
 if ( iName != null ) {
 iContext . setVariable ( iName , iValue ) ;
 - debug ( iContext , STRING0 + iName + STRING1 + iValue ) ;
 + debug ( iContext , STRING2 , iName , iValue ) ;
 }
 }

 <nb> public abstract class OAbstractBlock implements OProcessorBlock {
 text . append ( getName ( ) ) ;
 text . append ( STRING3 ) ;
 text . append ( iText ) ;
 - OLogManager . instance ( ) . info ( this , text . toString ( ) , getName ( ) , iText , iArgs ) ;
 + OLogManager . instance ( ) . info ( this , text . toString ( ) , iArgs ) ;
 }
 }


<nb> public class ActivityMain extends ActivityBase implements OnItemSelectedListener
 menu . findItem ( R . id . menu_export ) . setEnabled ( mounted ) ;
 menu . findItem ( R . id . menu_import ) . setEnabled ( mounted ) ;
 menu . findItem ( R . id . menu_pro ) . setVisible ( ! Util . isProEnabled ( ) && Util . hasProLicense ( this ) == null ) ;
 + menu . findItem ( R . id . menu_update ) . setVisible ( mounted && PrivacyManager . cVersion3 ) ;

 SINGLE


<nb> class NewPropertyAction extends AnAction {

 @ override
 public boolean checkInput ( final String inputString ) {
 - return true ;
 + return ! inputString . isEmpty ( ) ;
 }

 @ override

NewPropertyAction checks empty property keys


<nb> public class Fields implements Iterable < String > , Serializable {
 _index . put ( _fields . get ( i ) , i ) ;
 }
 }
 +
 + @ override
 + public String toString ( ) {
 + return _fields . toString ( ) ;
 + }
 }


<nb> public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

collectMany should not use createSimilarCollection and instead behave like collect


<nb> public class XmlTagTreeHighlightingPass extends TextEditorHighlightingPass {
 myFile . getVirtualFile ( ) ,
 myProject , myInfoProvider ) ;

 - if ( elements == null || elements . length == NUMBER0 ) {
 - return ;
 - }
 -
 - if ( ! XmlTagTreeHighlightingUtil . containsTagsWithSameName ( elements ) ) {
 + if ( elements == null || elements . length == NUMBER0 || ! XmlTagTreeHighlightingUtil . containsTagsWithSameName ( elements ) ) {
 elements = PsiElement . EMPTY_ARRAY ;
 final FileViewProvider provider = myFile . getViewProvider ( ) ;
 for ( Language language : provider . getLanguages ( ) ) {


<nb> public class LocalFsBlobStore extends BlobStore {
 SettableBlobMeta meta = getStoredBlobMeta ( key ) ;
 _aclHandler . hasPermissions ( meta . get_acl ( ) , READ , who , key ) ;
 if ( zkClient . checkExists ( ) . forPath ( BLOBSTORE_SUBTREE + key ) == null ) {
 - zkClient . close ( ) ;
 return NUMBER0 ;
 }
 replicationCount = zkClient . getChildren ( ) . forPath ( BLOBSTORE_SUBTREE + key ) . size ( ) ;

removing close method as shutdown does that


<nb> public abstract class AbstractModelElement < E extends AbstractModelElement < E > > im
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public abstract E clone ( ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class EditAccountActivity extends XmppActivity implements OnAccountUpdate
 mAccount . setOption ( Account . OPTION_REGISTER , registerNewAccount ) ;
 xmppConnectionService . createAccount ( mAccount ) ;
 }
 - if ( jidToEdit != null && ! mAccount . isOptionSet ( Account . OPTION_DISABLED ) ) {
 + if ( jidToEdit != null
 + && ! mAccount . isOptionSet ( Account . OPTION_DISABLED )
 + && ! registerNewAccount ) {
 finish ( ) ;
 } else {
 updateSaveButton ( ) ;

do not dismiss editAccountActivity when still trying to register new account


<nb> public final class LegacyTableLayoutHandle
 {
 return Objects . hash ( table , partitions ) ;
 }
 +
 + @ override
 + public String toString ( )
 + {
 + return table . toString ( ) ;
 + }
 }
 <nb> public class TpchTableLayoutHandle
 {
 return table . getConnectorId ( ) ;
 }
 +
 + @ override
 + public String toString ( )
 + {
 + return table . toString ( ) ;
 + }
 }


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JBTableWithRowHeaders extends JBTable {

 @ override
 protected void paintComponent ( @ notnull Graphics g ) {
 - getEmptyText ( ) . setText ( STRING0 ) ;
 + if ( ! Strings . isNullOrEmpty ( getEmptyText ( ) . getText ( ) ) ) {
 + getEmptyText ( ) . setText ( STRING0 ) ;
 + }
 super . paintComponent ( g ) ;
 }

 <nb> public class JBTableWithRowHeaders extends JBTable {

 @ override
 public int getRowHeight ( int row ) {
 - setRowHeight ( myMainTable . getRowHeight ( ) ) ;
 + int height = super . getRowHeight ( ) ;
 + if ( height != myMainTable . getRowHeight ( ) ) {
 + setRowHeight ( myMainTable . getRowHeight ( ) ) ;
 + }
 return super . getRowHeight ( row ) ;
 }

Fix code that causes constant revalidation during repaint


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public abstract class ALight extends ATransformable3D {
 mColor [ NUMBER0 ] = r ; mColor [ NUMBER1 ] = g ; mColor [ NUMBER2 ] = b ;
 }

 + public void setColor ( int color ) {
 + mColor [ NUMBER0 ] = Color . red ( color ) / NUMBER3 f ;
 + mColor [ NUMBER1 ] = Color . green ( color ) / NUMBER3 f ;
 + mColor [ NUMBER2 ] = Color . blue ( color ) / NUMBER3 f ;
 + }
 +
 public void setColor ( Number3D color ) {
 mColor [ NUMBER0 ] = color . x ;
 mColor [ NUMBER1 ] = color . y ;


<nb> public class HttpSessionContextIntegrationFilter extends SpringSecurityFilter im
 SINGLE
 if ( authenticationTrustResolver . isAnonymous ( securityContext . getAuthentication ( ) ) ) {
 if ( logger . isDebugEnabled ( ) ) {
 - logger . debug ( STRING0 ) ;
 + logger . debug ( STRING1 ) ;
 }
 } else {
 httpSession . setAttribute ( SPRING_SECURITY_CONTEXT_KEY , securityContext ) ;


<nb> public class ViewTransformationHelper implements TransformableView {

 @ override
 public void setVisible ( boolean visible ) {
 + if ( mViewTransformationAnimation != null ) {
 + mViewTransformationAnimation . cancel ( ) ;
 + }
 for ( Integer viewType : mTransformedViews . keySet ( ) ) {
 TransformState ownState = getCurrentState ( viewType ) ;
 if ( ownState != null ) {

Fixed a bug where notifications could become all white


<nb> public class DefaultFailover implements Failover {
 return session . get ( ) . getResponse ( ) ;
 }

 - logger . error ( format ( STRING0 , request . toString ( ) ) ) ;
 + logger . error ( format ( STRING0 , dumpedRequest . toString ( ) ) ) ;

 throw new RuntimeException ( STRING1 ) ;
 }


<nb> public class Spider implements Runnable , Task {
 Page page = downloader . download ( request , this ) ;
 if ( page == null ) {
 sleep ( site . getSleepTime ( ) ) ;
 - throw new IllegalStateException ( STRING0 ) ;
 + onError ( request ) ;
 }
 SINGLE
 if ( page . isNeedCycleRetry ( ) ) {

remove IllegalStateException when download error for less error log


<nb> public class CoreLabel extends ArrayCoreMap implements AbstractCoreLabel , HasWor
 return copy ;
 }

 + public void setCopyCount ( int count ) {
 + set ( CoreAnnotations . CopyAnnotation . class , count ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class IndexedWord implements AbstractCoreLabel , Comparable < IndexedWord > {
 return label . copyCount ( ) ;
 }

 + public void setCopyCount ( int count ) {
 + label . setCopyCount ( count ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT

Add a setCopyCount method to make certain other operations simpler


<nb> package NAMESPACE ;

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

 public class MainActivity extends Activity {
 @ override
 protected void onCreate ( Bundle savedInstanceState ) {
 super . onCreate ( savedInstanceState ) ;
 setContentView ( R . layout . activity_main ) ;
 +
 + findViewById ( R . id . pink_icon ) . setOnClickListener ( new OnClickListener ( ) {
 + @ override
 + public void onClick ( View v ) {
 + Toast . makeText ( MainActivity . this , STRING0 , Toast . LENGTH_SHORT ) . show ( ) ;
 + }
 + } ) ;
 }
 }


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

 COMMENT
 COMMENT
 <nb> public class NioEndpoint {
 protected int maxThreads = NUMBER0 ;
 public void setMaxThreads ( int maxThreads ) {
 this . maxThreads = maxThreads ;
 - if ( running && executor != null && executor instanceof ThreadPoolExecutor ) {
 - ( ( ThreadPoolExecutor ) executor ) . setMaximumPoolSize ( maxThreads ) ;
 + if ( running && executor != null && executor instanceof java . util . concurrent . ThreadPoolExecutor ) {
 + ( ( java . util . concurrent . ThreadPoolExecutor ) executor ) . setMaximumPoolSize ( maxThreads ) ;
 }
 }
 public int getMaxThreads ( ) { return maxThreads ; }


<nb> public class RelativePath implements Serializable , Comparable < RelativePath > {
 while ( k < lim ) {
 String c1 = v1 [ k ] ;
 String c2 = v2 [ k ] ;
 - int compareResult = c1 . compareTo ( c2 ) ;
 + int compareResult = c1 == c2 ? NUMBER0 : c1 . compareTo ( c2 ) ;
 if ( compareResult != NUMBER0 ) {
 return compareResult ;
 }


<nb> public abstract class Neurons {
 }
 for ( int row = NUMBER0 ; row < rows ; row ++ ) {
 _a . raw ( ) [ row ] /= scaling ;
 - if ( Double . isNaN ( _a . get ( row ) ) ) {
 - _minfo . set_unstable ( ) ;
 - throw new RuntimeException ( STRING0 ) ;
 - }
 }
 }


<nb> public class WebView extends AbsoluteLayout
 canvas . restoreToCount ( saveCount ) ;

 SINGLE
 - if ( mTitleBar != null ) {
 - int y = mScrollY + getVisibleTitleHeight ( ) ;
 + int titleH = getVisibleTitleHeight ( ) ;
 + if ( mTitleBar != null && titleH == NUMBER0 ) {
 int height = ( int ) ( FLOAT0 * getContext ( ) . getResources ( )
 . getDisplayMetrics ( ) . density ) ;
 - mTitleShadow . setBounds ( mScrollX , y , mScrollX + getWidth ( ) ,
 - y + height ) ;
 + mTitleShadow . setBounds ( mScrollX , mScrollY , mScrollX + getWidth ( ) ,
 + mScrollY + height ) ;
 mTitleShadow . draw ( canvas ) ;
 }
 if ( AUTO_REDRAW_HACK && mAutoRedraw ) {


<nb> import NAMESPACE ;

 import NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FacadePluggable extends PipePluggable implements IFacadePluggable {
 }

 public void setActiveState ( int activeState2 ) {
 - BCLog . logger . error ( STRING0 + activeState2 ) ;
 + SINGLE
 + SINGLE
 }
 }


<nb> public class BrowseFragment extends Fragment {
 mRowsFragment = ( RowsFragment ) getChildFragmentManager ( )
 . findFragmentById ( R . id . browse_container_dock ) ;
 }
 + mRowsFragment . setAdapter ( mAdapter ) ;
 + mHeadersFragment . setAdapter ( mAdapter ) ;
 +
 mRowsFragment . setOnItemSelectedListener ( mRowSelectedListener ) ;
 mHeadersFragment . setOnItemSelectedListener ( mHeaderSelectedListener ) ;
 mHeadersFragment . setOnHeaderClickListener ( mHeaderClickListener ) ;
 mRowsFragment . setOnItemClickedListener ( mOnItemClickedListener ) ;
 - mRowsFragment . setAdapter ( mAdapter ) ;
 - mHeadersFragment . setAdapter ( mAdapter ) ;

 View root = inflater . inflate ( R . layout . lb_browse_fragment , container , false ) ;

 <nb> public class DetailsFragment extends Fragment {
 getChildFragmentManager ( ) . beginTransaction ( )
 . replace ( R . id . fragment_dock , mRowsFragment ) . commit ( ) ;
 }
 + mRowsFragment . setAdapter ( mAdapter ) ;
 mRowsFragment . setOnItemSelectedListener ( mRowSelectedListener ) ;
 mRowsFragment . setOnItemClickedListener ( mOnItemClickedListener ) ;
 - mRowsFragment . setAdapter ( mAdapter ) ;
 return view ;
 }

Fix browse and details child fragment re creation


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

 COMMENT
 COMMENT
 <nb> public class IlluminationConverter extends StateConverter < NumberWithUnit , Decima

 @ override
 protected DecimalType convertToImpl ( NumberWithUnit source ) {
 - return new PercentType ( ( BigDecimal ) source . getValue ( ) ) ;
 + return new DecimalType ( ( BigDecimal ) source . getValue ( ) ) ;
 }

 }


<nb> public class SSLConfig {
 String storeType = JiveGlobals . getProperty ( STRING0 , STRING1 ) ;
 SINGLE
 keyStoreLocation = JiveGlobals . getProperty ( STRING2 ,
 - JiveGlobals . getMessengerHome ( ) + File . separator + STRING3 +
 - File . separator + STRING4 ) ;
 + JiveGlobals . getMessengerHome ( ) + File . separator + STRING5 + File . separator +
 + STRING3 + File . separator + STRING4 ) ;
 SINGLE
 keypass = JiveGlobals . getProperty ( STRING6 , STRING7 ) ;
 keypass = keypass . trim ( ) ;
 SINGLE
 trustStoreLocation = JiveGlobals . getProperty ( STRING8 ,
 - JiveGlobals . getMessengerHome ( ) + File . separator + STRING3 +
 - File . separator + STRING9 ) ;
 + JiveGlobals . getMessengerHome ( ) + File . separator + STRING5 + File . separator +
 + STRING3 + File . separator + STRING9 ) ;
 SINGLE
 trustpass = JiveGlobals . getProperty ( STRING10 , STRING7 ) ;
 trustpass = trustpass . trim ( ) ;

Changed default location of stores to resources security


<nb> abstract class FilterPopupComponent < Filter extends VcsLogFilter > extends JPanel

 protected void setValue ( @ notnull String value , @ notnull String tooltip ) {
 myFilterValueLabel . setText ( value ) ;
 - setToolTipText ( tooltip ) ;
 + setToolTipText ( tooltip . equals ( value ) ? null : tooltip ) ;
 }

 @ notnull


<nb> public class SpongeEntityType implements EntityType {

 @ override
 public boolean isTagged ( ) {
 - return entity . get ( Keys . DISPLAY_NAME ) . orElse ( Text . EMPTY ) . isEmpty ( ) ;
 + return ! entity . get ( Keys . DISPLAY_NAME ) . orElse ( Text . EMPTY ) . isEmpty ( ) ;
 }

 @ override

Fixed a bug where some mobs were incorrectly determined to be tagged on the Sponge platform


<nb> public class Imports {
 SINGLE
 imports . add ( STRING0 ) ;
 imports . add ( STRING1 ) ;
 + imports . add ( STRING2 ) ;
 imports . add ( STRING3 ) ;
 imports . add ( STRING4 ) ;
 imports . add ( STRING5 ) ;

updated imports to support Gremlin version


<nb> public class MessageView extends K9Activity implements OnClickListener {
 mMessageView . showStatusMessage ( text ) ;
 }
 mMessageView . setHeaders ( clonedMessage , account ) ;
 - setTitle ( clonedMessage . getSubject ( ) ) ;
 + final String subject = clonedMessage . getSubject ( ) ;
 + if ( subject == null || subject . equals ( STRING0 ) ) {
 + setTitle ( getString ( R . string . general_no_subject ) ) ;
 + } else {
 + setTitle ( clonedMessage . getSubject ( ) ) ;
 + }
 mMessageView . setOnFlagListener ( new OnClickListener ( ) {
 @ override
 public void onClick ( View v ) {

Set abs title to no subject if the message has no subject


<nb> public class ZWaveNodeNamingCommandClass extends ZWaveCommandClass
 logger . debug ( STRING0 , this . getNode ( ) . getNodeId ( ) ) ;
 break ;
 case ENCODING_EXTENDED_ASCII :
 - logger . debug ( STRING1 ,
 + logger . debug ( STRING2 ,
 this . getNode ( ) . getNodeId ( ) ) ;
 break ;
 case ENCODING_UTF16 :
 logger . debug ( STRING3 , this . getNode ( ) . getNodeId ( ) ) ;
 break ;
 default :
 - logger . error ( STRING4 ,
 + logger . error ( STRING5 ,
 this . getNode ( ) . getNodeId ( ) , charPresentation ) ;
 return null ;
 }
 <nb> public class ZWaveNodeNamingCommandClass extends ZWaveCommandClass

 SINGLE
 if ( numBytes > MAX_STRING_LENGTH ) {
 - logger . warn ( STRING6 , this . getNode ( ) . getNodeId ( ) ,
 + logger . warn ( STRING7 , this . getNode ( ) . getNodeId ( ) ,
 MAX_STRING_LENGTH , numBytes ) ;
 numBytes = MAX_STRING_LENGTH ;
 }

Made some minor improvements to log messages


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

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

 COMMENT
 COMMENT
 <nb> public class UsesSdk
 return targetSdkVersion ;
 }

 - public void setMinSdkVersion ( String minSdkVersion )
 - {
 - this . minSdkVersion = minSdkVersion ;
 - }
 -
 - public void setMaxSdkVersion ( String maxSdkVersion )
 - {
 - this . maxSdkVersion = maxSdkVersion ;
 - }
 -
 - public void setTargetSdkVersion ( String targetSdkVersion )
 - {
 - this . targetSdkVersion = targetSdkVersion ;
 - }
 -
 @ override
 public boolean equals ( Object o )
 {
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

Moved UsesSdk into configuration to have it in a more meaningful place


<nb> import NAMESPACE
 COMMENT
 public class GLMModel extends Model < GLMModel , GLMModel . GLMParameters , GLMModel . GLMOutput > {
 public GLMModel ( Key selfKey , GLMParameters parms , GLM job , double [ ] ymu , double ySigma , double lambda_max , long nobs ) {
 - super ( selfKey , parms , null ) ;
 + super ( selfKey , parms , job == null ? new GLMOutput ( ) : new GLMOutput ( job ) ) ;
 SINGLE
 _ymu = ymu ;
 _ySigma = ySigma ;
 _lambda_max = lambda_max ;
 _nobs = nobs ;
 - _output = job == null ? new GLMOutput ( ) : new GLMOutput ( job ) ;
 _nullDOF = nobs - ( parms . _intercept ? NUMBER0 : NUMBER1 ) ;
 }


<nb> public class ShowIntentionsPass extends TextEditorHighlightingPass {
 PsiElement psiElement ,
 final int offset ,
 @ notnull final IntentionsInfo intentions ) {
 - if ( psiElement != null && psiElement . isPhysical ( ) ) {
 + if ( psiElement != null ) {
 + assert psiElement . isPhysical ( ) : STRING0 + psiElement . getText ( ) + STRING1 + psiElement . getTextRange ( ) + STRING2 + offset +
 + STRING3 + psiElement . getClass ( ) . getName ( ) + STRING4 + ( psiElement . isValid ( ) ? STRING5 : STRING6 ) +
 + psiElement . getContainingFile ( ) + STRING7 + hostFile + STRING3 + hostFile . getClass ( ) . getName ( ) + STRING8 ;
 final List < LocalInspectionToolWrapper > intentionTools = new ArrayList < > ( ) ;
 final InspectionProfile profile = InspectionProjectProfileManager . getInstance ( project ) . getInspectionProfile ( ) ;
 final InspectionToolWrapper [ ] tools = profile . getInspectionTools ( hostFile ) ;

Collect more data on information level inspections when they re applied to non physical elements


<nb> public class ServiceNetworkContext extends AndroidNetworkContext {
 final String text =
 ZLResource . resource ( STRING0 )
 . getResource ( STRING1 )
 - . getResource ( STRING2 )
 + . getResource ( STRING3 )
 . getValue ( ) ;
 final Notification notification = new NotificationCompat . Builder ( myService )
 . setSmallIcon ( android . R . drawable . ic_dialog_alert )
 <nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;

 <nb> public class WebAuthorisationScreen extends Activity {
 super . onCreate ( icicle ) ;

 requestWindowFeature ( Window . FEATURE_PROGRESS ) ;
 + SQLiteCookieDatabase . init ( this ) ;
 CookieSyncManager . createInstance ( getApplicationContext ( ) ) ;
 CookieManager . getInstance ( ) . removeAllCookie ( ) ;
 final Intent intent = getIntent ( ) ;

fixed web authorisation behaviour added missed cookie db initialization


<nb> public class NonBlockingCoordinator extends ChannelInterceptorBase {
 }

 @ override
 - public boolean accept ( ChannelMessage msg ) {
 - return super . accept ( msg ) ;
 - }
 -
 - @ override
 public void memberAdded ( Member member ) {
 memberAdded ( member , true ) ;
 }


<nb> public class MediaCodecVideoRenderer extends MediaCodecRenderer {
 if ( ! MimeTypes . isVideo ( mimeType ) ) {
 return FORMAT_UNSUPPORTED_TYPE ;
 }
 - DrmInitData drmInitData = format . drmInitData ;
 boolean requiresSecureDecryption = false ;
 - for ( int i = NUMBER0 ; i < drmInitData . schemeDataCount ; i ++ ) {
 - requiresSecureDecryption |= drmInitData . get ( i ) . requiresSecureDecryption ;
 + DrmInitData drmInitData = format . drmInitData ;
 + if ( drmInitData != null ) {
 + for ( int i = NUMBER0 ; i < drmInitData . schemeDataCount ; i ++ ) {
 + requiresSecureDecryption |= drmInitData . get ( i ) . requiresSecureDecryption ;
 + }
 }
 MediaCodecInfo decoderInfo = mediaCodecSelector . getDecoderInfo ( mimeType ,
 requiresSecureDecryption ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SearchAction implements RootsWsAction {

 private static WsRoot . Root toRoot ( WsRoot . Root . Builder builder , UserDto dto ) {
 builder . clear ( ) ;
 - if ( dto . getLogin ( ) != null ) {
 - builder . setLogin ( dto . getLogin ( ) ) ;
 - }
 + builder . setLogin ( dto . getLogin ( ) ) ;
 if ( dto . getName ( ) != null ) {
 builder . setName ( dto . getName ( ) ) ;
 }

fix some quality flaws UT coverage and useless imports


<nb> public final class TipsManager {
 return excludeNonPackageDescriptors ( resolutionScope . getAllDescriptors ( ) ) ;
 }
 else {
 - HashSet < DeclarationDescriptor > descriptorsSet = Sets . newHashSet ( ) ;
 + Collection < DeclarationDescriptor > descriptorsSet = Sets . newHashSet ( ) ;

 ArrayList < ReceiverDescriptor > result = new ArrayList < ReceiverDescriptor > ( ) ;
 resolutionScope . getImplicitReceiversHierarchy ( result ) ;


<nb> public class ClusterResource
 Result result ;
 if ( type != null )
 {
 - context . getExhibitor ( ) . getControlPanelValues ( ) . set ( type , newValue ) ;
 - result = new Result ( STRING0 , true ) ;
 + try
 + {
 + context . getExhibitor ( ) . getControlPanelValues ( ) . set ( type , newValue ) ;
 + result = new Result ( STRING0 , true ) ;
 + }
 + catch ( Exception e )
 + {
 + result = new Result ( e ) ;
 + }
 }
 else
 {

Set result correctly if there is an exception setting the control panel


<nb> public class PhoneWindow extends Window implements MenuBuilder . Callback {
 SINGLE
 mPanelChordingKey = NUMBER0 ;
 mPanelMayLongPress = false ;
 - InputMethodManager imm = ( InputMethodManager )
 - getContext ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ;
 - if ( imm != null ) {
 - mDecor . performHapticFeedback ( HapticFeedbackConstants . LONG_PRESS ) ;
 - imm . toggleSoftInput ( InputMethodManager . SHOW_FORCED , NUMBER0 ) ;
 - }
 -
 }

 return false ;

Long press on menu no longer opens the IME


<nb> public class GitVcsApplicationSettings implements PersistentStateComponent < GitVc
 COMMENT
 COMMENT
 COMMENT
 - @ nonnls static final String [ ] DEFAULT_UNIX_PATHS = { STRING0 , STRING1 , STRING2 , STRING3 } ;
 + @ nonnls static final String [ ] DEFAULT_UNIX_PATHS = { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 } ;
 COMMENT
 COMMENT
 COMMENT

add additional default path to git on OSX


<nb> public class HealthCheckTest extends TemporaryJobsTestBase {
 SINGLE
 SINGLE
 final TemporaryJob job = temporaryJobs . job ( )
 - . command ( STRING0 , STRING1 , STRING2 )
 + . image ( ALPINE )
 + . command ( STRING0 , STRING1 , STRING3 )
 . port ( HEALTH_CHECK_PORT , NUMBER0 )
 . port ( QUERY_PORT , NUMBER1 )
 . tcpHealthCheck ( HEALTH_CHECK_PORT )
 <nb> public class HealthCheckTest extends TemporaryJobsTestBase {
 SINGLE
 final HealthCheck healthCheck = TcpHealthCheck . of ( HEALTH_CHECK_PORT ) ;
 final TemporaryJob job = temporaryJobs . job ( )
 - . command ( STRING0 , STRING1 , STRING2 )
 + . image ( ALPINE )
 + . command ( STRING0 , STRING1 , STRING3 )
 . port ( HEALTH_CHECK_PORT , NUMBER0 )
 . port ( QUERY_PORT , NUMBER1 )
 . healthCheck ( healthCheck )


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

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public interface PsiReference {
 COMMENT
 PsiReference [ ] EMPTY_ARRAY = new PsiReference [ NUMBER0 ] ;

 + ArrayFactory < PsiReference > ARRAY_FACTORY = new ArrayFactory < PsiReference > ( ) {
 + @ override
 + public PsiReference [ ] create ( final int count ) {
 + return count == NUMBER0 ? EMPTY_ARRAY : new PsiReference [ count ] ;
 + }
 + } ;
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class OptionsScannerPanel extends AbstractParamPanel {
 panelScanner . add ( getChkDeleteRequestsOnShutdown ( ) ,
 LayoutHelper . getGBC ( NUMBER0 , NUMBER1 , NUMBER2 , FLOAT0 , NUMBER0 , GridBagConstraints . HORIZONTAL , new Insets ( NUMBER3 , NUMBER3 , NUMBER3 , NUMBER3 ) ) ) ;

 +
 + SINGLE
 + SINGLE
 panelScanner . add ( new JLabel ( Constant . messages . getString ( STRING0 ) ) ,
 LayoutHelper . getGBC ( NUMBER0 , NUMBER4 , NUMBER5 , FLOAT1 , NUMBER0 , GridBagConstraints . HORIZONTAL , new Insets ( NUMBER3 , NUMBER3 , NUMBER3 , NUMBER3 ) ) ) ;
 panelScanner . add ( getComboThreshold ( ) ,
 <nb> public class OptionsScannerPanel extends AbstractParamPanel {
 panelRPC ,
 LayoutHelper . getGBC ( NUMBER3 , NUMBER6 , NUMBER5 , FLOAT0 , NUMBER0 , GridBagConstraints . HORIZONTAL , new Insets ( NUMBER3 , NUMBER3 , NUMBER3 , NUMBER3 ) ) ) ;

 -
 SINGLE
 panelScanner . add (
 new JLabel ( ) ,


<nb> public class GPUImage {
 }
 }
 } ) ;
 - requestRender ( ) ;
 synchronized ( mFilter ) {
 + requestRender ( ) ;
 try {
 mFilter . wait ( ) ;
 } catch ( InterruptedException e ) {

Fixed deadlock in getBitmapWithFilterApplied


<nb> package NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class ServerStateNotifier implements Runnable {

 final CommandResult buildInfoResult = connection . runCommand ( mongo . getDB ( STRING0 ) , new BasicDBObject ( STRING1 , NUMBER0 ) ) ;
 serverDescription = createDescription ( isMasterResult , buildInfoResult , elapsedNanosSum / count ) ;
 - } catch ( MongoSocketException e ) {
 + } catch ( IOException e ) {
 if ( ! isClosed ) {
 connection . close ( ) ;
 connection = null ;

Fixed exception handling bug in ServerStateNotifier


<nb> public final class HlsPlaylistParser implements UriLoadable . Parser < HlsPlaylist >
 private static final Pattern RESOLUTION_ATTR_REGEX =
 Pattern . compile ( RESOLUTION_ATTR + STRING0 ) ;
 private static final Pattern MEDIA_DURATION_REGEX =
 - Pattern . compile ( MEDIA_DURATION_TAG + STRING1 ) ;
 + Pattern . compile ( MEDIA_DURATION_TAG + STRING2 ) ;
 private static final Pattern MEDIA_SEQUENCE_REGEX =
 Pattern . compile ( MEDIA_SEQUENCE_TAG + STRING3 ) ;
 private static final Pattern TARGET_DURATION_REGEX =


<nb> public class ProcessCommands {
 }

 private void deleteFile ( File file ) {
 - if ( file . exists ( ) ) {
 - if ( ! file . delete ( ) ) {
 - throw new MessageException ( String . format (
 - STRING0 , file ) ) ;
 - }
 + if ( file . exists ( ) && ! file . delete ( ) ) {
 + throw new MessageException ( String . format (
 + STRING0 , file ) ) ;
 }
 }
 }


<nb> public final class Crouton {
 RelativeLayout . LayoutParams . WRAP_CONTENT ) ;
 imageParams . addRule ( RelativeLayout . ALIGN_PARENT_LEFT , RelativeLayout . TRUE ) ;
 imageParams . addRule ( RelativeLayout . CENTER_VERTICAL , RelativeLayout . TRUE ) ;
 +
 + image . setLayoutParams ( imageParams ) ;
 +
 return image ;
 }

set LayoutParams on ImageView to avoid crash when adding a Drawable or ImageResource via Style Builder


<nb> public class SynchronizeFileOperation extends RemoteOperation {

 } catch ( Exception e ) {
 result = new RemoteOperationResult ( e ) ;
 - Log . e ( TAG , STRING0 + mAccount . name + STRING1 + mLocalFile . getRemotePath ( ) + STRING2 + result . getLogMessage ( ) , result . getException ( ) ) ;
 + Log . e ( TAG , STRING0 + mAccount . name + STRING1 + ( mLocalFile != null ? mLocalFile . getRemotePath ( ) : STRING3 ) + STRING2 + result . getLogMessage ( ) , result . getException ( ) ) ;

 } finally {
 if ( propfind != null )


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


<nb> public interface GenericTypeDescription extends NamedElement , Iterable < GenericTy
 @ override
 public < T > T accept ( Visitor < T > visitor ) {
 return getSort ( ) . isNonGeneric ( )
 - ? visitor . onNonGenericType ( asRawType ( ) )
 + ? visitor . onNonGenericType ( this )
 : visitor . onGenericArray ( this ) ;
 }

Removed raw type resolution that was not required


<nb> public class ConcurrentMapManager extends BaseManager {
 }
 }
 }
 + if ( ! request . local ) {
 + request . value = null ;
 + }
 request . response = ( pairs . size ( ) > NUMBER0 ) ? ( ( request . local ) ? pairs : toData ( pairs ) ) : null ;
 }
 }

Predicate from client cauesed an exception


<nb> public class ActFmSyncThread {
 continue ;
 }

 - payload . put ( NUMBER0 , getClientVersion ( ) ) ;
 + payload . put ( getClientVersion ( ) ) ;

 try {
 JSONObject response = actFmInvoker . postSync ( payload , entity , token ) ;

Fixed a stupid bug where messages wouldn t be sent because of ClientVersion


<nb> public final class ExecutionVertex {
 if ( this . cancelRequested . compareAndSet ( true , false ) ) {
 final TaskCancelResult tsr = cancelTask ( ) ;
 if ( tsr . getReturnCode ( ) != AbstractTaskResult . ReturnCode . SUCCESS
 - || tsr . getReturnCode ( ) != AbstractTaskResult . ReturnCode . TASK_NOT_FOUND ) {
 + && tsr . getReturnCode ( ) != AbstractTaskResult . ReturnCode . TASK_NOT_FOUND ) {
 LOG . error ( STRING0 + this + STRING1 + tsr . getReturnCode ( ) . toString ( )
 + ( ( tsr . getDescription ( ) != null ) ? ( STRING2 + tsr . getDescription ( ) + STRING3 ) : STRING4 ) ) ;
 }

Fixed bug in method checkCancelRequestFlag of class ExecutionVertex


<nb> public class SystemUtils {
 SINGLE
 SINGLE

 + public static boolean isGoogleTV ( final Context pContext ) {
 + return SystemUtils . hasSystemFeature ( pContext , STRING0 ) ;
 + }
 +
 public static int getPackageVersionCode ( final Context pContext ) {
 return SystemUtils . getPackageInfo ( pContext ) . versionCode ;
 }

Added method in SystemUtils to check if the device is a GoogleTV


<nb> public final class WindowInsets {
 int right , int bottom ) {
 final WindowInsets result = new WindowInsets ( this ) ;
 result . mSystemWindowInsets = new Rect ( left , top , right , bottom ) ;
 - result . mSystemWindowInsetsConsumed = ! hasSystemWindowInsets ( ) ;
 return result ;
 }

Preserve explicit consumed state in replaceSystemWindowInsets DO NOT MERGE


<nb>

 package NAMESPACE ;

 + import static NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class JoinConfig {

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public JoinConfig setMulticastConfig ( final MulticastConfig multicastConfig ) {
 - this . multicastConfig = multicastConfig ;
 + this . multicastConfig = isNotNull ( multicastConfig , STRING0 ) ;
 return this ;
 }

 <nb> public class JoinConfig {

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public JoinConfig setTcpIpConfig ( final TcpIpConfig tcpIpConfig ) {
 - this . tcpIpConfig = tcpIpConfig ;
 + this . tcpIpConfig = isNotNull ( tcpIpConfig , STRING1 ) ;
 return this ;
 }

 <nb> public class JoinConfig {

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public JoinConfig setAwsConfig ( final AwsConfig awsConfig ) {
 - this . awsConfig = awsConfig ;
 + this . awsConfig = isNotNull ( awsConfig , STRING2 ) ;
 return this ;
 }


<nb> public class JSONObject extends HashMap implements Map , JSONAware , JSONStreamAwa
 super ( map ) ;
 }

 - public boolean put ( String key , Object value ) {
 - return this . put ( key , value ) ;
 + public JSONObject put ( String key , Object value ) {
 + this . put ( key , value ) ;
 + return this ;
 }

 - public Object put ( Object key , Object value ) {
 - return this . put ( key , value ) ;
 + public JSONObject put ( Object key , Object value ) {
 + this . put ( key , value ) ;
 + return this ;
 }

 public Object get ( String key ) throws JSONException {


<nb> public class SecondaryReadTest extends TestCase {
 }

 String stateStr = member . getString ( STRING0 ) ;
 + if ( stateStr . equalsIgnoreCase ( STRING1 ) ) {
 + continue ;
 + }
 pHosts . add ( new TestHost ( hostnameAndPort , stateStr ) ) ;
 }

 <nb> public class SecondaryReadTest extends TestCase {
 private static void loadQueryCount ( final List < TestHost > pHosts , final boolean pBefore ) throws Exception {
 for ( TestHost testHost : pHosts ) {
 Mongo mongoHost ;
 - if ( getMongoClientURI ( ) . getCredentials ( ) == null || testHost . stateStr . equals ( STRING2 ) ) {
 + if ( getMongoClientURI ( ) . getCredentials ( ) == null ) {
 mongoHost = new MongoClient ( testHost . hostnameAndPort ) ;
 } else {
 mongoHost = new MongoClient ( new ServerAddress ( testHost . hostnameAndPort ) , asList ( getMongoClientURI ( ) . getCredentials ( ) ) ) ;

Ignore arbiters entirely in SecondaryReadTest


<nb> public class LoginTestSuite {
 }

 @ test
 - @ category ( { NoIgnoreTestCategory . class } )
 + @ category ( { NoIgnoreTestCategory . class , SmokeTestCategory . class } )
 public void testLoginAndShowFiles ( ) throws Exception {
 driver . rotate ( ScreenOrientation . PORTRAIT ) ;


<nb> public class WordCompletionContributor extends CompletionContributor implements
 return true ;
 }

 - final CompletionProcess completion = CompletionService . getCompletionService ( ) . getCurrentCompletion ( ) ;
 - if ( completion == null || ! completion . isAutopopupCompletion ( ) ) {
 + if ( parameters . getInvocationCount ( ) > NUMBER0 ) {
 return true ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class BatchNode extends Node implements Savable {

Fix spelling grammer errors in BatchNode javadoc


<nb> public class PGraphicsOpenGL extends PGraphics {
 }

 void createBuffer ( PGL pgl ) {
 - SINGLE
 buf = new VertexBuffer ( pg , PGL . ARRAY_BUFFER , size , elementSize , false ) ;
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 }

 void deleteBuffer ( PGL pgl ) {
 if ( buf . glId != NUMBER0 ) {
 - SINGLE
 intBuffer . put ( NUMBER0 , buf . glId ) ;
 if ( pgl . threadIsCurrent ( ) ) pgl . deleteBuffers ( NUMBER1 , intBuffer ) ;
 - SINGLE
 }
 }


<nb> public class RecentsPanelView extends FrameLayout implements OnItemClickListener
 if ( mPopup != null ) {
 mPopup . dismiss ( ) ;
 }
 + ( ( RecentsActivity ) mContext ) . moveTaskToBack ( true ) ;
 }
 }

Move Recents task to back when hiding view


<nb> public abstract class AbstractWeatherParser implements WeatherParser {
 }

 Wind wind = weather . getWind ( ) ;
 - if ( wind . getSpeed ( ) == null || wind . getSpeed ( ) == FLOAT0 ) {
 - wind . setSpeed ( null ) ;
 - wind . setDegree ( null ) ;
 - }
 -
 if ( wind . getDirection ( ) == null && wind . getDegree ( ) != null ) {
 String direction = UnitUtils . getWindDirection ( wind . getDegree ( ) ) ;
 wind . setDirection ( direction ) ;

Removed wind post processing not necessary


<nb> import NAMESPACE ;
 COMMENT
 final class AtomFeedCheckerCmd {

 + private AtomFeedCheckerCmd ( ) {
 + }
 +
 public static void main ( String [ ] args ) throws IOException , InterruptedException {
 if ( args . length != NUMBER0 && args . length != NUMBER1 ) {
 System . out . println ( STRING0 + AtomFeedCheckerCmd . class . getSimpleName ( ) + STRING1 ) ;

add private constructor this class has only the main method


<nb> public class Dialog extends Window {

 public Dialog ( String title , Skin skin , String windowStyleName ) {
 super ( title , skin . get ( windowStyleName , WindowStyle . class ) ) ;
 + setSkin ( skin ) ;
 this . skin = skin ;
 initialize ( ) ;
 }


<nb> public final class PropertiesExpander
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public PropertiesExpander ( Properties properties ) {
 if ( properties == null ) {

Remove additional context from IDEA suppression


<nb> public class SMWorldEditListener extends PluginListener {
 WorldEditPlayer player = new SMWorldEditPlayer ( modPlayer ) ;

 if ( itemInHand != NUMBER0 ) { return false ; }
 - if ( ! canUseCommand ( modPlayer , STRING0 ) ) { return false ; }
 + if ( ! canUseCommand ( modPlayer , STRING1 ) ) { return false ; }

 WorldEditSession session = worldEdit . getSession ( player ) ;

 <nb> public class SMWorldEditListener extends PluginListener {
 COMMENT
 @ override
 public boolean onBlockDestroy ( Player modPlayer , Block blockClicked ) {
 - if ( ! canUseCommand ( modPlayer , STRING2 )
 + if ( ! canUseCommand ( modPlayer , STRING3 )
 && ! canUseCommand ( modPlayer , STRING4 ) ) { return false ; }

 WorldEdit worldEdit = WorldEdit . getInstance ( ) ;

Fixed permission issues regarding the edit wand


<nb> import static NAMESPACE ;
 public class ShadowLooper {
 private static ThreadLocal < Looper > looperForThread = makeThreadLocalLoopers ( ) ;
 private Scheduler scheduler = new Scheduler ( ) ;
 + private Thread myThread = Thread . currentThread ( ) ;

 boolean quit ;

 <nb> public class ShadowLooper {
 }
 }

 + @ implementation
 + public Thread getThread ( ) {
 + return myThread ;
 + }
 +
 public boolean hasQuit ( ) {
 return quit ;
 }
 <nb> public class LooperTest {
 assertTrue ( shadowOf ( looper ) . hasQuit ( ) ) ;
 assertFalse ( shadowOf ( looper ) . getScheduler ( ) . areAnyRunnable ( ) ) ;
 }
 +
 + @ test
 + public void testLoopThread ( ) {
 + assertTrue ( shadowOf ( Looper . getMainLooper ( ) ) . getThread ( ) == Thread . currentThread ( ) ) ;
 + }
 }


<nb> public class AccessTokenProcessingFilter extends OAuthProviderProcessingFilter {
 }

 @ override
 - protected void validateOAuthParams ( ConsumerDetails consumerDetails , Map < String , String > oauthParams ) throws InvalidOAuthParametersException {
 - super . validateOAuthParams ( consumerDetails , oauthParams ) ;
 + protected void validateAdditionalParameters ( ConsumerDetails consumerDetails , Map < String , String > oauthParams ) {
 + super . validateAdditionalParameters ( consumerDetails , oauthParams ) ;

 String token = oauthParams . get ( OAuthConsumerParameter . oauth_token . toString ( ) ) ;
 if ( token == null ) {
 <nb> public class UnauthenticatedRequestTokenProcessingFilter extends OAuthProviderPr
 }

 @ override
 - protected void validateOAuthParams ( ConsumerDetails consumerDetails , Map < String , String > oauthParams ) throws InvalidOAuthParametersException {
 - super . validateOAuthParams ( consumerDetails , oauthParams ) ;
 + protected void validateAdditionalParameters ( ConsumerDetails consumerDetails , Map < String , String > oauthParams ) {
 + super . validateAdditionalParameters ( consumerDetails , oauthParams ) ;

 if ( isRequire10a ( ) ) {
 String token = oauthParams . get ( OAuthConsumerParameter . oauth_callback . toString ( ) ) ;

moving additional validation checks to validateAdditionalParams method


<nb> public class Server implements Service < Server > {
 }

 public int lookupSecurePort ( final int unsecurePort ) {
 -
 return securePortMappings . get ( unsecurePort ) ;
 }

 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class UndertowDeploymentInfoService implements Service < DeploymentInfo > {

 @ override
 public int getConfidentialPort ( HttpServerExchange exchange ) {
 - int port = exchange . getDestinationAddress ( ) . getPort ( ) ;
 + int port = exchange . getConnection ( ) . getLocalAddress ( InetSocketAddress . class ) . getPort ( ) ;
 return host . getValue ( ) . getServer ( ) . getValue ( ) . lookupSecurePort ( port ) ;
 }
 } ;

Fix NPE in securePortLookup for AJP requests


<nb> public class MemoryGraphSource implements GraphSource {
 private GraphUpdaterConfigurator decorator = new GraphUpdaterConfigurator ( ) ;

 public MemoryGraphSource ( String routerId , Graph graph ) {
 + this ( routerId , graph , new PropertiesPreferences ( new Properties ( ) ) ) ;
 + }
 +
 + public MemoryGraphSource ( String routerId , Graph graph , Preferences config ) {
 this . graph = graph ;
 this . graph . routerId = routerId ;
 - SINGLE
 - Preferences config = new PropertiesPreferences ( new Properties ( ) ) ;
 decorator . setupGraph ( graph , config ) ;
 }

Add MemoryGraphSource constructor with config


<nb> public class RosterItem implements Cacheable {
 protected Set < String > invisibleSharedGroups = new HashSet < String > ( ) ;
 protected SubType subStatus ;
 protected AskType askStatus ;
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 private long rosterID ;

 public RosterItem ( long id ,
 <nb> public class RosterItem implements Cacheable {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class RosterItem implements Cacheable {
 return rosterID ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void setID ( long rosterID ) {
 this . rosterID = rosterID ;
 }


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

 <nb> public abstract class AbstractConvertContext extends ConvertContext {
 return getInvocationElement ( ) . getXmlTag ( ) ;
 }

 + @ nullable
 + public XmlElement getXmlElement ( ) {
 + return getInvocationElement ( ) . getXmlElement ( ) ;
 + }
 +
 @ notnull
 public final XmlFile getFile ( ) {
 return getInvocationElement ( ) . getRoot ( ) . getFile ( ) ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class ConvertContext {
 @ nullable
 public abstract XmlTag getTag ( ) ;

 + @ nullable
 + public abstract XmlElement getXmlElement ( ) ;
 +
 @ notnull
 public abstract XmlFile getFile ( ) ;


<nb> public class ArrayIndices implements IntrinsicMethod {
 ) {
 receiver . put ( AsmTypeConstants . OBJECT_TYPE , v ) ;
 v . arraylength ( ) ;
 - v . invokestatic ( STRING0 , STRING1 , STRING2 ) ;
 + v . invokestatic ( AsmTypeConstants . JET_INT_RANGE_TYPE . getInternalName ( ) , STRING1 , STRING2 ) ;
 return StackValue . onStack ( AsmTypeConstants . JET_INT_RANGE_TYPE ) ;
 }
 }


<nb> public class SugarApp extends android . app . Application {
 this . database = new Database ( this ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void onTerminate ( ) {
 if ( this . database != null ) {
 this . database . getDB ( ) . close ( ) ;

Add documentation on onTerminate to clarify usage scenarios


<nb> public class ConnectivityManager {
 COMMENT
 COMMENT
 COMMENT
 - public void requestNetwork ( NetworkCapabilities nc , NetworkCallback networkCallback ,
 + public void requestNetwork ( NetworkRequest request , NetworkCallback networkCallback ,
 int timeoutMs , int legacyType ) {
 - sendRequestForNetwork ( nc , networkCallback , timeoutMs , REQUEST , legacyType ) ;
 + sendRequestForNetwork ( request . networkCapabilities , networkCallback , timeoutMs , REQUEST ,
 + legacyType ) ;
 }

 COMMENT
 <nb> public class ConnectivityManager {
 COMMENT
 COMMENT
 public void requestNetwork ( NetworkRequest request , NetworkCallback networkCallback ) {
 - requestNetwork ( request . networkCapabilities , networkCallback , NUMBER0 ,
 + requestNetwork ( request , networkCallback , NUMBER0 ,
 inferLegacyTypeForNetworkCapabilities ( request . networkCapabilities ) ) ;
 }

 <nb> public class ConnectivityManager {
 COMMENT
 public void requestNetwork ( NetworkRequest request , NetworkCallback networkCallback ,
 int timeoutMs ) {
 - requestNetwork ( request . networkCapabilities , networkCallback , timeoutMs ,
 + requestNetwork ( request , networkCallback , timeoutMs ,
 inferLegacyTypeForNetworkCapabilities ( request . networkCapabilities ) ) ;
 }

Make the new NetworkRequest flavour consistent with the others


<nb> public class BatteryProperty implements Parcelable {
 COMMENT
 public static final int BATTERY_PROP_CHARGE_COUNTER = NUMBER0 ;
 public static final int BATTERY_PROP_CURRENT_NOW = NUMBER1 ;
 + public static final int BATTERY_PROP_CURRENT_AVG = NUMBER2 ;

 public int valueInt ;


<nb> public final class ActivityStackSupervisor implements DisplayListener {

 stack . setVisibleBehindActivity ( visible ? r : null ) ;
 if ( ! visible ) {
 - SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 final ActivityRecord next = stack . findNextTranslucentActivity ( r ) ;
 - if ( next != null ) {
 + if ( next != null && next . isHomeActivity ( ) ) {
 mService . convertFromTranslucent ( next . appToken ) ;
 }
 }

Only make home opaque when requesting visible behind false


<nb> public class RangeTombstone extends Interval < ByteBuffer , DeletionTime > implement
 toWrite . add ( tombstone ) ;
 }

 - TypeSizes typeSizes = TypeSizes . NATIVE ;
 for ( RangeTombstone tombstone : toWrite )
 {
 - size += tombstone . serializedSize ( typeSizes ) ;
 + size += tombstone . serializedSizeForSSTable ( ) ;
 atomCount ++ ;
 if ( out != null )
 atomSerializer . serializeForSSTable ( tombstone , out ) ;


<nb> public class MessagingController implements Runnable
 }
 }

 +
 + public void sendPendingMessages ( MessagingListener listener )
 + {
 + final Preferences prefs = Preferences . getPreferences ( mApplication . getApplicationContext ( ) ) ;
 + Account [ ] accounts = prefs . getAccounts ( ) ;
 + for ( Account account : accounts )
 + {
 + sendPendingMessages ( account , listener ) ;
 + }
 + }
 +
 +
 COMMENT
 COMMENT
 COMMENT

add a variant of sendPendingMessages that will send pending messages in all accounts


<nb> public class PatchResponse {
 @ xmlelementwrapper
 @ xmlelements ( {
 @ xmlelement ( name = STRING0 , type = StopNotePatch . class ) ,
 - @ xmlelement ( name = STRING1 , type = RouteNotePatch . class ) ,
 + @ xmlelement ( name = STRING1 , type = RouteNotePatch . class )
 } )
 public List < Patch > patches ;

 <nb> import NAMESPACE ;
 public class PatchSet {
 @ xmlelements ( {
 @ xmlelement ( name = STRING0 , type = StopNotePatch . class ) ,
 - @ xmlelement ( name = STRING1 , type = RouteNotePatch . class ) ,
 + @ xmlelement ( name = STRING1 , type = RouteNotePatch . class )
 } )
 public List < Patch > patches ;

remove trailing commas which do not work in earlier versions of java


<nb> public class SequenceFilesFromDirectory extends AbstractJob {
 Configuration jobConfig = job . getConfiguration ( ) ;
 jobConfig . set ( STRING0 , keyPrefix ) ;
 FileSystem fs = FileSystem . get ( jobConfig ) ;
 - FileStatus fsFileStatus = HadoopUtil . listStatus ( fs , input ) [ NUMBER0 ] ;
 + FileStatus fsFileStatus = fs . getFileStatus ( input ) ;
 String inputDirList = HadoopUtil . buildDirList ( fs , fsFileStatus ) ;
 jobConfig . set ( STRING1 , input . toString ( ) ) ;

 <nb> public final class SequenceFilesFromMailArchives extends AbstractJob {
 }

 FileSystem fs = FileSystem . get ( jobConfig ) ;
 - FileStatus fsFileStatus = HadoopUtil . listStatus ( fs , inputPath ) [ NUMBER0 ] ;
 + FileStatus fsFileStatus = fs . getFileStatus ( inputPath ) ;

 jobConfig . set ( STRING1 , inputPath . toString ( ) ) ;
 String inputDirList = HadoopUtil . buildDirList ( fs , fsFileStatus ) ;

Make conversion to sequence files map reduce fixed issue with not reading a directory list


<nb> public class NowBriefed < TYPE extends RemoteModel > extends ServerToClientMessage
 pushedAtKey = NameMaps . PUSHED_AT_USERS ;
 else if ( NameMaps . TABLE_ID_TASK_LIST_METADATA . equals ( table ) )
 pushedAtKey = NameMaps . PUSHED_AT_TASK_LIST_METADATA ;
 + else if ( NameMaps . TABLE_ID_WAITING_ON_ME . equals ( table ) )
 + pushedAtKey = NameMaps . PUSHED_AT_WAITING_ON_ME ;

 if ( pushedAtKey != null )
 Preferences . setLong ( pushedAtKey , pushedAt ) ;

Record waiting on mes pushed at in NowBriefed


<nb> public abstract class FrameRecorder {
 public static FrameRecorder create ( Class < ? extends FrameRecorder > c , Class p , Object o , int w , int h ) throws Exception {
 Throwable cause = null ;
 try {
 - return c . getConstructor ( p , int . class , int . class ) . newInstance ( o , w , h ) ;
 + return ( FrameRecoder ) c . getConstructor ( p , int . class , int . class ) . newInstance ( o , w , h ) ;
 } catch ( InstantiationException ex ) {
 cause = ex ;
 } catch ( IllegalAccessException ex ) {

convert Object to FrameRecorder at return statement public static FrameRecorder create


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

 COMMENT
 COMMENT
 <nb> public class MUCUserImpl implements MUCUser {
 roles . remove ( group . toLowerCase ( ) ) ;
 role . getChatRoom ( ) . leaveRoom ( role . getNickname ( ) ) ;
 }
 + catch ( UserNotFoundException e ) {
 + SINGLE
 + }
 catch ( Exception e ) {
 Log . error ( e ) ;
 }

Don t log an error if a user already left the room while processing a leaveRoom request


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;

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

 public class HawtDBAggregateDiscardOnTimeoutTest extends CamelTestSupport {
 -
 - private static AtomicInteger counter = new AtomicInteger ( NUMBER0 ) ;
 +
 private HawtDBAggregationRepository repo ;

 @ override

Removed the unused couter of HawtDBAggregateDiscardOnTimeoutTest


<nb> public abstract class CustomTransactionSigner extends StatelessTransactionSigner
 log . warn ( STRING0 ) ;
 return false ;
 }
 - Script inputScript = txIn . getScriptSig ( ) ;
 - checkNotNull ( inputScript ) ;
 +
 + Script inputScript = checkNotNull ( txIn . getScriptSig ( ) ) ;
 +
 + try {
 + SINGLE
 + SINGLE
 + SINGLE
 + txIn . getScriptSig ( ) . correctlySpends ( tx , i , txIn . getConnectedOutput ( ) . getScriptPubKey ( ) , true ) ;
 + log . warn ( STRING1 , i ) ;
 + continue ;
 + } catch ( ScriptException e ) {
 + SINGLE
 + }
 +
 RedeemData redeemData = txIn . getConnectedRedeemData ( keyBag ) ;
 if ( redeemData == null ) {
 log . warn ( STRING2 , i ) ;

skip signing if input is fully signed already


<nb> public class MetaContactImpl
 return ( ( PresenceStatus . MAX_STATUS_VALUE - totalStatus )
 - ( PresenceStatus . MAX_STATUS_VALUE - target . totalStatus ) )
 COMMENT
 - + getDisplayName ( ) . compareTo ( target . getDisplayName ( ) ) * NUMBER0
 - + getMetaUID ( ) . compareToIgnoreCase ( target . getMetaUID ( ) ) ;
 + + getDisplayName ( ) . compareToIgnoreCase ( target . getDisplayName ( ) )
 + COMMENT
 + + getMetaUID ( ) . compareTo ( target . getMetaUID ( ) ) ;
 }

 COMMENT


<nb> public class HeatmapsDemoActivity extends BaseDemoActivity {

 @ override
 protected void startDemo ( ) {
 - getMap ( ) . moveCamera ( CameraUpdateFactory . newLatLngZoom ( new LatLng ( - NUMBER0 , NUMBER1 ) , NUMBER2 ) ) ;
 + getMap ( ) . moveCamera ( CameraUpdateFactory . newLatLngZoom ( new LatLng ( - NUMBER0 , NUMBER3 ) , NUMBER2 ) ) ;

 SINGLE
 Spinner spinner = ( Spinner ) findViewById ( R . id . spinner ) ;


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class LightDaemonAnalyzerTestCase extends LightCodeInsightTestCa

 @ override
 protected void tearDown ( ) throws Exception {
 + DaemonCodeAnalyzerSettings . getInstance ( ) . setImportHintEnabled ( true ) ; SINGLE
 ( ( DaemonCodeAnalyzerImpl ) DaemonCodeAnalyzer . getInstance ( getProject ( ) ) ) . cleanupAfterTest ( ) ;
 super . tearDown ( ) ;
 }


<nb> public class GremlinPluginFunctionalTest implements GraphHolder
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ test
 @ documented
 - public void testGremlinImportGraph ( ) throws UnsupportedEncodingException
 + public void testGremlinImportGraphAndSortResults ( ) throws UnsupportedEncodingException
 {
 String response = gen . get ( )
 . expectedStatus ( Status . OK . getStatusCode ( ) )
 - . payload ( STRING0 )
 + . payload ( STRING1 +
 + STRING2 +
 + STRING3 )
 . payloadType ( MediaType . APPLICATION_JSON_TYPE )
 . post ( ENDPOINT )
 . entity ( ) ;
 assertTrue ( response . contains ( STRING4 ) ) ;
 + assertTrue ( response . contains ( STRING5 ) ) ;
 + assertTrue ( response . indexOf ( STRING4 ) > response . indexOf ( STRING5 ) ) ;
 }
 COMMENT
 COMMENT

adding sorting to the graph import example


<nb> public abstract class AbstractIOSelector extends Thread implements IOSelector {
 } catch ( Throwable e ) {
 logger . warning ( STRING0 + getName ( ) , e ) ;
 } finally {
 - try {
 - if ( logger . isFinestEnabled ( ) ) {
 - logger . finest ( STRING1 + getName ( ) ) ;
 - }
 - selector . close ( ) ;
 - } catch ( final Exception e ) {
 - logger . finest ( STRING2 , e ) ;
 - }
 + closeSelector ( ) ;
 + }
 + }
 +
 + private void closeSelector ( ) {
 + if ( logger . isFinestEnabled ( ) ) {
 + logger . finest ( STRING1 + getName ( ) ) ;
 + }
 +
 + try {
 + selector . close ( ) ;
 + } catch ( Exception e ) {
 + logger . finest ( STRING2 , e ) ;
 }
 }

AbstractIOSelector pulled out close selector method


<nb> import NAMESPACE ;
 public interface RegisteredService extends Cloneable , Serializable {

 COMMENT
 - long INITIAL_IDENTIFIER_VALUE = Long . MAX_VALUE ;
 + long INITIAL_IDENTIFIER_VALUE = - Long . MAX_VALUE ;

 COMMENT
 COMMENT


<nb> public class LeftCurlyCheck
 switch ( aAST . getType ( ) ) {
 case TokenTypes . CTOR_DEF :
 case TokenTypes . METHOD_DEF :
 - SINGLE
 - SINGLE
 - SINGLE
 startToken = skipAnnotationOnlyLines ( aAST ) ;
 - SINGLE
 brace = aAST . findFirstToken ( TokenTypes . SLIST ) ;
 break ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class AppCompatDelegateImplV9 extends AppCompatDelegateImplBase
 }
 }

 + SINGLE
 + AppCompatDrawableManager . get ( ) . onConfigurationChanged ( mContext ) ;
 +
 SINGLE
 applyDayNight ( ) ;
 }
 <nb> public final class AppCompatDrawableManager {
 return drawable ;
 }

 + public void onConfigurationChanged ( @ nonnull Context context ) {
 + synchronized ( mDrawableCacheLock ) {
 + LongSparseArray < WeakReference < ConstantState > > cache = mDrawableCaches . get ( context ) ;
 + if ( cache != null ) {
 + SINGLE
 + cache . clear ( ) ;
 + }
 + }
 + }
 +
 private static long createCacheKey ( TypedValue tv ) {
 return ( ( ( long ) tv . assetCookie ) < < NUMBER0 ) | tv . data ;
 }

Notify AppCompatDrawableManager on config changes


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 + import NAMESPACE ;

 public class Literals {

 public static String quoteStringLiteral ( String literal ) {
 - return String . format ( Locale . ENGLISH , STRING0 , escapeStringLiteral ( literal ) ) ;
 + return STRING1 + escapeStringLiteral ( literal ) + STRING1 ;
 }

 - public static String escapeStringLiteral ( String literal ) {
 + @ visiblefortesting
 + static String escapeStringLiteral ( String literal ) {
 return literal . replace ( STRING1 , STRING2 ) ;
 }
 }

Remove expensive format call in Literals quoteStringLiteral


<nb> public class OpenSSLContext implements org . apache . tomcat . util . net . SSLContext {
 private final long aprPool ;
 protected final long ctx ;

 - @ suppresswarnings ( STRING0 )
 - private volatile int aprPoolDestroyed ;
 private static final AtomicIntegerFieldUpdater < OpenSSLContext > DESTROY_UPDATER
 = AtomicIntegerFieldUpdater . newUpdater ( OpenSSLContext . class , STRING1 ) ;
 static final CertificateFactory X509_CERT_FACTORY ;


<nb> public class InstrumentClass extends ClassVisitor {
 final SuspendableType markedSuspendable = SuspendableClassifierService . isSuspendable ( className , classEntry , name , desc , signature , exceptions ) ;
 final SuspendableType setSuspendable = classEntry . check ( name , desc ) ;

 - if ( markedSuspendable != null && setSuspendable == null )
 - classEntry . set ( name , desc , markedSuspendable ) ;
 + if ( setSuspendable == null )
 + classEntry . set ( name , desc , markedSuspendable != null ? markedSuspendable : SuspendableType . NON_SUSPENDABLE ) ;

 final boolean suspendable = markedSuspendable == SuspendableType . SUSPENDABLE | setSuspendable == SuspendableType . SUSPENDABLE ;


<nb> public abstract class StandardFieldsDialog extends AbstractFrame {
 }

 public void addComboField ( int tabIndex , String fieldLabel , String [ ] choices , String value ) {
 - this . addComboField ( fieldLabel , choices , value , false ) ;
 + this . addComboField ( tabIndex , fieldLabel , choices , value , false ) ;
 }

 public void addComboField ( int tabIndex , String fieldLabel , String [ ] choices , String value , boolean editable ) {

Fixed bug where addComboField called wrong method


<nb> public class Package {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


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

 COMMENT
 COMMENT
 <nb> public class VoldemortNativeRequestHandler extends AbstractRequestHandler implem
 requestHandler . parseRequest ( inputStream ) ;
 requestHandler . processRequest ( ) ;
 } catch ( VoldemortException e ) {
 + SINGLE
 + SINGLE
 + if ( ! ( e instanceof ObsoleteVersionException ) ) {
 + logger . error ( STRING0 + storeName + STRING1 + e . getMessage ( ) ) ;
 + }
 clearBuffer ( outputContainer ) ;
 - logger . error ( e . getMessage ( ) ) ;
 writeException ( outputStream , e ) ;
 return null ;
 }

Suppress obsoleteVersionException on logs


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

Elaborate a little on the documentation for PackageManager s resolveActivity


<nb> public class ForgeHooks
 return null ;
 }

 - if ( player . isServerWorld ( ) )
 + if ( ! player . worldObj . isRemote )
 {
 player . getEntityWorld ( ) . spawnEntityInWorld ( event . entityItem ) ;
 }


<nb> import NAMESPACE ;

 public class CubocDesktop {
 public static void main ( String [ ] argv ) {
 - SINGLE
 - Gdx . app . setLogLevel ( Application . LOG_DEBUG ) ;
 new LwjglApplication ( new Cubocy ( ) , STRING0 , NUMBER0 , NUMBER1 , true ) ;
 +
 + SINGLE
 + SINGLE
 + Gdx . app . setLogLevel ( Application . LOG_DEBUG ) ;
 }
 }

fixed set the log level after creating the Application


<nb> public class WebSocketClientHandshaker13 extends WebSocketClientHandshaker {
 }

 SINGLE
 + int wsPort = wsURL . getPort ( ) ;
 FullHttpRequest request = new DefaultFullHttpRequest ( HttpVersion . HTTP_1_1 , HttpMethod . GET , path ) ;
 HttpHeaders headers = request . headers ( ) ;

 headers . add ( Names . UPGRADE , Values . WEBSOCKET . toLowerCase ( ) )
 . add ( Names . CONNECTION , Values . UPGRADE )
 . add ( Names . SEC_WEBSOCKET_KEY , key )
 - . add ( Names . HOST , wsURL . getHost ( ) ) ;
 + . add ( Names . HOST , wsURL . getHost ( ) + STRING0 + wsPort ) ;

 - int wsPort = wsURL . getPort ( ) ;
 String originValue = STRING1 + wsURL . getHost ( ) ;
 if ( wsPort != NUMBER0 && wsPort != NUMBER1 ) {
 SINGLE


<nb> public class RocksDBAsyncSnapshotTest {
 try {
 delayCheckpointLatch . await ( ) ;
 } catch ( InterruptedException e ) {
 - e . printStackTrace ( ) ;
 + throw new RuntimeException ( e ) ;
 }

 SINGLE

hotfix Don t Swallow Exception in RocksDBAsyncSnapshotTest


<nb> public class ItemDescriptionFragment extends Fragment implements AudioplayerCont
 Bundle savedInstanceState ) {
 Log . d ( TAG , STRING0 ) ;
 webvDescription = new WebView ( getActivity ( ) ) ;
 + if ( Build . VERSION . SDK_INT >= NUMBER0 ) {
 + webvDescription . setLayerType ( View . LAYER_TYPE_SOFTWARE , null ) ;
 + }
 if ( UserPreferences . getTheme ( ) == R . style . Theme_AntennaPod_Dark ) {
 - if ( Build . VERSION . SDK_INT >= NUMBER0
 - && Build . VERSION . SDK_INT <= Build . VERSION_CODES . ICE_CREAM_SANDWICH_MR1 ) {
 - webvDescription . setLayerType ( View . LAYER_TYPE_SOFTWARE , null ) ;
 - }
 webvDescription . setBackgroundColor ( getResources ( ) . getColor ( R . color . black ) ) ;
 }
 webvDescription . getSettings ( ) . setUseWideViewPort ( false ) ;


<nb>
 COMMENT
 package NAMESPACE ;

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

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

 public class TestWebSocket extends TomcatBaseTest {

 <nb> public class TestWebSocket extends TomcatBaseTest {
 return cc . toString ( ) ;
 }

 - private class WebSocketCLient
 + private class WebSocketCLient
 {
 SINGLE
 final String encoding = STRING0 ;


<nb> public class Bundle extends ConventionTask {
 archiveTask . conventionMapping ( type . getConventionMapping ( ) ) ;
 archiveTask . setBaseName ( getProject ( ) . getArchivesBaseName ( ) + ( args . get ( APPENDIX_KEY ) != null ? STRING0 + args . get ( APPENDIX_KEY ) : STRING1 ) ) ;
 archiveTask . setClassifier ( GUtil . isTrue ( classifier ) ? classifier . substring ( NUMBER0 ) : STRING1 ) ;
 + archiveTask . setExtension ( type . getDefaultExtension ( ) ) ;
 setTaskDependsOn ( archiveTask , getChildrenDependOn ( ) ) ;
 setArchiveConfigurations ( archiveTask , args ) ;
 this . dependsOn ( taskName ) ;

Fixed bug that the extension was not properly set for the selcted archive method


<nb> public class GroupRestrictionsManager {

 for ( String group : groups ) {
 int changeLimit = getChangeLimit ( group ) ;
 - System . out . println ( STRING0 + group + STRING1 + changeLimit ) ;
 if ( changeLimit == - NUMBER0 ) {
 return - NUMBER0 ;
 } else if ( changeLimit > highestLimit ) {

Removed debug message in GroupRestrictionsManager java


<nb> public class InferenceSession {
 }

 private PsiType acceptBoundsWithRecursiveDependencies ( PsiTypeParameter typeParameter , PsiType bound ) {
 - if ( PsiPolyExpressionUtil . mentionsTypeParameters ( bound , Collections . singleton ( typeParameter ) ) ) {
 + if ( ! isProperType ( bound ) ) {
 return mySiteSubstitutor . put ( typeParameter , null ) . substitute ( bound ) ;
 }
 return bound ;

extend usage of already inferred variables


<nb> public class HintedHandOffManager implements HintedHandOffManagerMBean
 {
 Token < ? > token = StorageService . getPartitioner ( ) . getTokenFactory ( ) . fromByteArray ( row . key . key ) ;
 InetAddress target = StorageService . instance . getTokenMetadata ( ) . getEndpoint ( token ) ;
 - scheduleHintDelivery ( target ) ;
 + SINGLE
 + if ( target != null )
 + scheduleHintDelivery ( target ) ;
 }

 if ( logger_ . isDebugEnabled ( ) )

Fix NPE during HH when target has been removed from the cluster


<nb> public class Structure implements Cloneable {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 return PRIMARY_TYPES . keySet ( ) ;
 }
 }

added a method that returns the known blender primary types names


<nb> public class SmackIntegrationTestFramework {
 Set < Method > allBeforeClassMethods = getAllMethods ( testClass , withAnnotation ( BeforeClass . class ) ) ;
 allBeforeClassMethods . removeAll ( beforeClassMethods ) ;
 if ( ! allBeforeClassMethods . isEmpty ( ) ) {
 - LOGGER . warning ( STRING0 ) ;
 + throw new IllegalArgumentException ( STRING0 ) ;
 }

 if ( beforeClassMethods . size ( ) == NUMBER0 ) {
 <nb> public class SmackIntegrationTestFramework {
 Set < Method > allAfterClassMethods = getAllMethods ( testClass , withAnnotation ( AfterClass . class ) ) ;
 allAfterClassMethods . removeAll ( afterClassMethods ) ;
 if ( ! allAfterClassMethods . isEmpty ( ) ) {
 - LOGGER . warning ( STRING1 ) ;
 + throw new IllegalArgumentException ( STRING1 ) ;
 }

 if ( afterClassMethods . size ( ) == NUMBER0 ) {

Throw IAE on wrong signature after before Class methods


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

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;


<nb> public class TypeCheck implements NodeTraversal . Callback , CompilerPass {
 if ( childType . isFunctionType ( ) ) {
 FunctionType functionType = childType . toMaybeFunctionType ( ) ;

 - boolean isExtern = false ;
 - JSDocInfo functionJSDocInfo = functionType . getJSDocInfo ( ) ;
 - if ( functionJSDocInfo != null &&
 - functionJSDocInfo . getAssociatedNode ( ) != null ) {
 - isExtern = functionJSDocInfo . getAssociatedNode ( ) . isFromExterns ( ) ;
 - }
 -
 SINGLE
 - SINGLE
 - SINGLE
 + SINGLE
 if ( functionType . isConstructor ( ) &&
 ! functionType . isNativeObjectType ( ) &&
 ( functionType . getReturnType ( ) . isUnknownType ( ) ||


<nb> public class JavaGenerator implements CodeGenerator
 return STRING0 + index + byteOrder + STRING1 ;

 case UINT16 :
 - return STRING0 + index + byteOrder + STRING2 ;
 + return STRING3 + index + byteOrder + STRING4 ;

 case INT32 :
 return STRING5 + index + byteOrder + STRING1 ;

 case UINT32 :
 - return STRING5 + index + byteOrder + STRING6 ;
 + return STRING7 + index + byteOrder + STRING8 ;

 case FLOAT :
 return STRING9 + index + byteOrder + STRING1 ;

Java Add parenthesis to ensure precedence


<nb> public class TreeTest extends TestCase {
 wrapped . close ( ) ;
 String answer = writer . toString ( ) ;

 + SINGLE
 SINGLE
 SINGLE
 SINGLE


<nb> public class InternalGeoBounds extends InternalMetricsAggregation implements Geo
 if ( Double . isInfinite ( top ) ) {
 return null ;
 } else if ( Double . isInfinite ( posLeft ) ) {
 - return new BoundingBox ( new GeoPoint ( top , negLeft ) , new GeoPoint ( bottom , posRight ) ) ;
 + return new BoundingBox ( new GeoPoint ( top , negLeft ) , new GeoPoint ( bottom , negRight ) ) ;
 } else if ( Double . isInfinite ( negLeft ) ) {
 - return new BoundingBox ( new GeoPoint ( top , posLeft ) , new GeoPoint ( bottom , negRight ) ) ;
 + return new BoundingBox ( new GeoPoint ( top , posLeft ) , new GeoPoint ( bottom , posRight ) ) ;
 } else if ( wrapLongitude ) {
 double unwrappedWidth = posRight - negLeft ;
 double wrappedWidth = ( NUMBER0 - posLeft ) - ( - NUMBER0 - negRight ) ;

Fixed failures when geo points are all either positive or negative


<nb> public abstract class PopupMenuHistoryReference extends ExtensionPopupMenuItem {
 this . setEnabled ( isEnabledForHistoryReferences ( getSelectedHistoryReferences ( ) ) ) ;
 display = true ;
 } else {
 + SINGLE
 + COMMENT
 log . debug ( STRING0 + this . getName ( ) +
 STRING1 + invoker . getName ( ) +
 STRING2 + invoker . getClass ( ) . getName ( ) ) ;
 + COMMENT
 }

 if ( display ) {


<nb> public class RulesWsTest {
 assertThat ( list . since ( ) ) . isEqualTo ( STRING0 ) ;
 assertThat ( list . isPost ( ) ) . isFalse ( ) ;
 assertThat ( list . isInternal ( ) ) . isFalse ( ) ;
 - assertThat ( list . params ( ) ) . hasSize ( NUMBER0 ) ;
 + assertThat ( list . params ( ) ) . hasSize ( NUMBER1 ) ;

 WebService . Action show = controller . action ( STRING1 ) ;
 assertThat ( show ) . isNotNull ( ) ;


<nb> public abstract class StringLogger
 @ override
 public void close ( )
 {
 - createLogger ( ) ;
 - logger . close ( ) ;
 + if ( logger != null )
 + {
 + logger . close ( ) ;
 + }
 }

 @ override
 <nb> public class ConsistencyCheckService
 }
 finally
 {
 + report . close ( ) ;
 neoStore . close ( ) ;
 }

Consistency checker closes the report file


<nb> public abstract class AbstractExecutionThreadService implements Service {
 SINGLE
 logger . log (
 Level . WARNING ,
 - STRING0 + STRING1 ,
 + STRING2 ,
 ignored ) ;
 }
 notifyFailed ( t ) ;


<nb> public class PythonSdkType extends SdkType {
 static final int MINUTE = NUMBER0 * NUMBER1 ; SINGLE
 @ nonnls public static final String SKELETONS_TOPIC = STRING0 ;
 private static final String [ ] DIRS_WITH_BINARY = new String [ ] { STRING1 , STRING2 , STRING3 } ;
 - private static final String [ ] UNIX_BINARY_NAMES = new String [ ] { STRING4 , STRING5 , STRING6 } ;
 - private static final String [ ] WIN_BINARY_NAMES = new String [ ] { STRING7 , STRING8 , STRING9 , STRING10 } ;
 + private static final String [ ] UNIX_BINARY_NAMES = new String [ ] { STRING5 , STRING6 , STRING4 } ;
 + private static final String [ ] WIN_BINARY_NAMES = new String [ ] { STRING8 , STRING9 , STRING10 , STRING7 } ;

 public static PythonSdkType getInstance ( ) {
 return SdkType . findInstance ( PythonSdkType . class ) ;

Try PyPy and Jython executables first fall back to CPython


<nb> public class PropsParser implements Cloneable {
 fullKey = fullKey . substring ( NUMBER0 , ndx ) + right ;
 }

 + if ( fullKey . startsWith ( StringPool . DOT ) ) {
 + SINGLE
 + fullKey = fullKey . substring ( NUMBER1 ) ;
 + }
 +
 SINGLE
 justAdd ( fullKey , value , keyProfiles , operator ) ;
 }

Fix the case when section is empty after removing filters from it


<nb> public class EventLogger SINGLE
 }
 }

 - public static void log ( final EventCode code , final byte [ ] buffer , int offset , int length )
 - {
 - if ( ON )
 - {
 - final AtomicBuffer encodedBuffer = encodingBuffer . get ( ) ;
 - final int encodingLength = EventCodec . encode ( encodedBuffer , buffer , offset , length ) ;
 -
 - ringBuffer . write ( code . id ( ) , encodedBuffer , NUMBER0 , encodingLength ) ;
 - }
 - }
 -
 + SINGLE
 + SINGLE
 public static void log ( final EventCode code , final String value )
 {
 if ( ON )
 <nb> public class EventLogger SINGLE
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public static void logInvocation ( )
 {
 if ( ON )

remove unused log method and document why the other two are still static


<nb> public final class Roster extends Manager {
 }
 }
 if ( ! isLoaded ( ) && rosterLoadedAtLogin ) {
 - LOGGER . warning ( STRING0 ) ;
 + LOGGER . warning ( STRING1 + packet ) ;
 }
 Presence presence = ( Presence ) packet ;
 Jid from = presence . getFrom ( ) ;

Log stanza in Roster PresencePacketListener


<nb> public class JavaPlugin implements Plugin {
 return WrapUtil . toList ( new FileSet ( javaConvention . getClassesDir ( ) ) ) ;
 }
 } ) ) ;
 + jar . configurations ( new String [ ] { Dependency . MASTER_CONFIGURATION } ) ;
 }

 private void configureDists ( Project project , JavaPluginConvention javaPluginConvention ) {

Add default artifact to master configuration


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


<nb> public class CypherPluginFunctionalTest implements GraphHolder

 @ before
 public void startServer ( ) {
 + graphdb . cleanContent ( ) ;
 server = new WrappingNeoServerBootstrapper (
 graphdb ) ;
 server . start ( ) ;


<nb> public class FilterQuery
 return ;

 SINGLE
 - setSucceeded ( ! isSucceeded ( ) && ! query . getQueryResults ( ) . isEmpty ( ) ) ;
 + if ( ! isSucceeded ( ) && ! query . getQueryResults ( ) . isEmpty ( ) )
 + setSucceeded ( true ) ;

 SINGLE
 filterQueries . remove ( query ) ;
 <nb> public class TreeContactList
 tempTreeModel ,
 filterSource ) ;

 - filterQuery . setSucceeded (
 - ! filterQuery . isSucceeded ( ) && isSucceeded ) ;
 + if ( ! filterQuery . isSucceeded ( ) && isSucceeded )
 + filterQuery . setSucceeded ( true ) ;
 }
 } . start ( ) ;
 }

Fix appearing add contact and call contact buttons before the search is completed


<nb> public class FavouritesDbHelper {
 }
 }
 }
 - if ( index . length ( ) > NUMBER0 || emoticons ) {
 - AlertDialog . Builder builder = new AlertDialog . Builder ( context ) ;
 + if ( ( index . length ( ) > NUMBER0 || emoticons ) &&
 + context . getMapActivity ( ) != null ) {
 + AlertDialog . Builder builder = new AlertDialog . Builder ( context . getMapActivity ( ) ) ;
 builder . setTitle ( R . string . fav_point_dublicate ) ;
 if ( emoticons ) {
 builder . setMessage ( context . getString ( R . string . fav_point_emoticons_message , name ) ) ;

Fixed issue with wrong context for dialog


<nb>
 package NAMESPACE ;

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

 import NAMESPACE ;


<nb> public class Nashorn8 {
 NashornScriptEngine engine = ( NashornScriptEngine ) new ScriptEngineManager ( ) . getEngineByName ( STRING0 ) ;
 engine . eval ( STRING1 ) ;

 - engine . invokeFunction ( STRING2 ) ;
 - engine . invokeFunction ( STRING3 ) ;
 - engine . invokeFunction ( STRING4 , STRING5 ) ;
 - engine . invokeFunction ( STRING4 , new Person ( STRING6 , STRING7 ) ) ;
 + engine . invokeFunction ( STRING2 ) ; SINGLE
 + engine . invokeFunction ( STRING3 ) ; SINGLE
 + engine . invokeFunction ( STRING4 , STRING5 ) ; SINGLE
 + engine . invokeFunction ( STRING4 , new Person ( STRING6 , STRING7 ) ) ; SINGLE
 }

 }


<nb> public abstract class UsefulTestCase extends TestCase {
 public static void assertEmpty ( final Collection collection ) {
 assertOrderedEquals ( collection ) ;
 }
 +
 + protected < T extends Disposable > T disposeOnTearDown ( final T disposable ) {
 + Disposer . register ( myTestRootDisposable , disposable ) ;
 + return disposable ;
 + }
 }

DOM attribute value change didn t send events sometimes


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


<nb> public class NewlineAtEndOfFileCheckTest
 check . configure ( checkConfig ) ;
 File impossibleFile = new File ( STRING0 ) ;
 Set < LocalizedMessage > messages = check . process ( impossibleFile , Lists . newArrayList ( STRING1 ) ) ;
 - assertTrue ( messages . size ( ) == NUMBER0 ) ;
 + assertEquals ( NUMBER0 , messages . size ( ) ) ;
 Iterator < LocalizedMessage > iter = messages . iterator ( ) ;
 assertEquals ( STRING2 , iter . next ( ) . getMessage ( ) ) ;
 }
 <nb> package NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 + import static NAMESPACE ;
 import static NAMESPACE ;

 import NAMESPACE ;
 <nb> public class AbstractTypeAwareCheckTest extends BaseCheckTestSupport {

 Method getClazz = regularClass . getClass ( ) . getDeclaredMethod ( STRING3 ) ;
 getClazz . setAccessible ( true ) ;
 - assertTrue ( getClazz . invoke ( regularClass ) == null ) ;
 + assertNull ( getClazz . invoke ( regularClass ) ) ;
 }

 @ test


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CanvasView extends FrameLayout {
 @ subscribe
 public void onBeginBubbleDrag ( MainController . BeginBubbleDragEvent e ) {
 fadeIn ( ) ;
 + mBottomMaskView . setVisibility ( VISIBLE ) ;
 mContentViewY = Config . mScreenHeight - Config . mContentOffset ;
 hideContentView ( ) ;
 MainController . get ( ) . showBadge ( false ) ;
 <nb> public class CanvasView extends FrameLayout {
 mContentView . setTranslationY ( mContentViewY ) ;
 if ( mAnimTime < mAnimPeriod ) {
 MainController . get ( ) . scheduleUpdate ( ) ;
 + } else if ( mTargetY == FLOAT0 ) {
 + mBottomMaskView . setVisibility ( GONE ) ;
 }
 mAnimTime += dt ;
 }


<nb> public class PreferencesFrame {
 SINGLE

 deletePreviousBox =
 - new JCheckBox ( Language . text ( STRING0 ) ) ;
 + new JCheckBox ( Language . text ( STRING0 ) ) ;
 SINGLE
 SINGLE
 SINGLE
 <nb> public class PreferencesFrame {

 SINGLE

 - checkUpdatesBox = new JCheckBox ( Language . text ( STRING1 ) ) ;
 + checkUpdatesBox =
 + new JCheckBox ( Language . text ( STRING1 ) ) ;
 SINGLE
 SINGLE
 SINGLE


<nb> public class AsyncHttpClientConfigBean extends AsyncHttpClientConfig {
 return this ;
 }

 + public AsyncHttpClientConfigBean setStrict302Handling ( boolean strict302Handling ) {
 + this . strict302Handling = strict302Handling ;
 + return this ;
 + }
 +
 public AsyncHttpClientConfigBean setCompressionEnabled ( boolean compressionEnabled ) {
 this . compressionEnabled = compressionEnabled ;
 return this ;

enable customization of strict302Handling in AsyncHttpClientConfigBean


<nb> public class AggregationStrategyWithPreservationTest extends CamelTestSupport {
 public void configure ( ) throws Exception {
 SINGLE
 from ( STRING0 )
 - . aggregate ( new ZipAggregationStrategy ( true ) )
 + . aggregate ( new ZipAggregationStrategy ( true , true ) )
 . constant ( true )
 . completionFromBatchConsumer ( )
 . eagerCheckCompletion ( )

Fix Camel zipfile AggregationStrategyWithPreservationTest currently failing locally and on the CI Server


<nb> public class ModelChartImpl extends JScrollPane implements ModelChart {
 setShowTotalMemoryLine ( preferences . getGcLineProperty ( GCPreferences . TOTAL_MEMORY ) ) ;
 setShowUsedMemoryLine ( preferences . getGcLineProperty ( GCPreferences . USED_MEMORY ) ) ;
 setShowInitialMarkLevel ( preferences . getGcLineProperty ( GCPreferences . INITIAL_MARK_LEVEL ) ) ;
 + setShowConcurrentCollectionBeginEnd ( preferences . getGcLineProperty ( GCPreferences . CONCURRENT_COLLECTION_BEGIN_END ) ) ;
 }

 public GCModel getModel ( ) {

add showConcurrentCollectionBeginEnd to applyPreferences


<nb> public final class LeaderInquireClient {
 CommonUtils . sleepMs ( LOG , Constants . SECOND_MS ) ;
 }
 } catch ( Exception e ) {
 - LOG . error ( STRING0 , mZookeeperAddress , e . getMessage ( ) ) ;
 + LOG . error ( STRING1 ,
 + mZookeeperAddress , e . getMessage ( ) ) ;
 }

 return null ;


<nb> public class CreateSegmentCommand extends AbstractBaseAdminCommand implements Co

 FileFormat configFormat = segmentGeneratorConfig . getFormat ( ) ;
 if ( _format == null ) {
 + if ( configFormat == null ) {
 + throw new RuntimeException ( STRING0 ) ;
 + }
 _format = configFormat ;
 } else {
 - if ( configFormat != _format ) {
 + if ( configFormat != _format && configFormat != FileFormat . AVRO ) {
 LOGGER . warn ( STRING1 , _format ) ;
 }
 }

In CreateSegmentCommand enhance the check for format to avoid null


<nb> class ResizingTextView extends TextView {
 }

 public ResizingTextView ( Context ctx , AttributeSet attrs ) {
 - this ( ctx , attrs , NUMBER0 ) ;
 + SINGLE
 + SINGLE
 + this ( ctx , attrs , android . R . attr . textViewStyle ) ;
 }

 public ResizingTextView ( Context ctx ) {

Pass an appropriate default style up the constructor chain


<nb> public class DroidGap extends Activity implements CordovaInterface {
 this . appView . loadUrl ( STRING0 ) ;

 SINGLE
 - this . pluginManager . onDestroy ( ) ;
 + if ( this . pluginManager != null ) {
 + this . pluginManager . onDestroy ( ) ;
 + }
 }
 else {
 this . endActivity ( ) ;
 <nb> public class DroidGap extends Activity implements CordovaInterface {
 public void postMessage ( String id , Object data ) {

 SINGLE
 - this . pluginManager . postMessage ( id , data ) ;
 + if ( this . pluginManager != null ) {
 + this . pluginManager . postMessage ( id , data ) ;
 + }
 }

 COMMENT

Fixing app crash when clicking Menu or Back buttons while splashscreen is being shown


<nb> public class StickyGridHeadersGridView extends GridView implements OnScrollListe
 canvas . saveLayerAlpha ( NUMBER0 , NUMBER0 , canvas . getWidth ( ) , canvas . getHeight ( ) , ( int ) ( NUMBER1 * ( float ) mHeaderBottomPosition / headerHeight ) , Canvas . HAS_ALPHA_LAYER_SAVE_FLAG ) ;
 mStickiedHeader . draw ( canvas ) ;
 canvas . restore ( ) ;
 + canvas . restore ( ) ;
 }
 }


<nb> public class SpiderHtmlParser extends SpiderParser {
 else
 baseURL = message . getRequestHeader ( ) . getURI ( ) . toString ( ) ;

 + SINGLE
 + Element base = source . getFirstElement ( HTMLElementName . BASE ) ;
 + if ( base != null ) {
 + if ( log . isDebugEnabled ( ) )
 + log . debug ( STRING0 + base . getDebugInfo ( ) ) ;
 + if ( base . getAttributeValue ( STRING1 ) != null )
 + baseURL = base . getAttributeValue ( STRING1 ) ;
 + }
 +
 SINGLE
 parseSource ( message , source , depth , baseURL ) ;


<nb> import NAMESPACE ;
 @ target ( ElementType . TYPE )
 public @ interface MappedJdbcTypes {
 public JdbcType [ ] value ( ) ;
 + boolean includeNullJdbcType ( ) default false ;
 }
 <nb> public final class TypeHandlerRegistry {
 for ( JdbcType handledJdbcType : mappedJdbcTypes . value ( ) ) {
 register ( javaType , handledJdbcType , typeHandler ) ;
 }
 + if ( mappedJdbcTypes . includeNullJdbcType ( ) ) {
 + register ( javaType , null , typeHandler ) ;
 + }
 } else {
 register ( javaType , null , typeHandler ) ;
 }

Allow a type handler to handle JDBC subtypes as well as the base Java type


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class GenericError extends DomainError {
 + public class GenericError extends DomainError {
 private Exception cause ;
 private String description ;

 <nb> public class FakePresenter extends RosiePresenter {
 }

 @ override protected boolean onGlobalError ( DomainError domainError ) {
 - if ( fakeUi != null ) {
 + if ( fakeUi != null ) {
 fakeUi . showFakeError ( ) ;
 return true ;
 } else {


<nb> public class ByteEncoder extends Bytes {
 protected void putBinary ( String name , byte [ ] data ) {

 _put ( BINARY , name ) ;
 + _buf . putInt ( NUMBER0 + data . length ) ;
 +
 + _buf . put ( B_BINARY ) ;
 _buf . putInt ( data . length ) ;
 int before = _buf . position ( ) ;
 _buf . put ( data ) ;

ByteEncoder reverting change format was incorrectly documented


<nb> class AnonymousToInnerDialog extends DialogWrapper {
 if ( psiType instanceof PsiClassType ) {
 type = TypeConversionUtil . erasure ( psiType ) ;
 }
 + if ( type == null || type . equalsToText ( CommonClassNames . JAVA_LANG_OBJECT ) ) return STRING0 ;
 if ( type instanceof PsiArrayType ) {
 type = type . getDeepComponentType ( ) ;
 }
 - return type . getPresentableText ( ) ;
 + return StringUtil . getShortName ( type . getPresentableText ( ) ) ;
 }
 } , STRING0 ) + name , STRING1 + name } ;
 } else {

trim containing class name skip Object in new name suggestions


<nb> public interface IMap < K , V >

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 @ override


<nb> public abstract class HttpContentDecoder extends MessageToMessageDecoder < HttpObj

 SINGLE
 CharSequence targetContentEncoding = getTargetContentEncoding ( contentEncoding ) ;
 - if ( HttpHeaderValues . IDENTITY . equals ( targetContentEncoding ) ) {
 + if ( HttpHeaderValues . IDENTITY . contentEquals ( targetContentEncoding ) ) {
 SINGLE
 SINGLE
 headers . remove ( HttpHeaderNames . CONTENT_ENCODING ) ;

Fix HttpHeaderValues IDENTITY equals usage


<nb> public class RaftDiscoveryServiceConnector extends LifecycleAdapter implements C
 }

 @ override
 - public void onCoreTopologyChange ( )
 + public synchronized void onCoreTopologyChange ( )
 {
 - raftMachine . setTargetMembershipSet ( discoveryService . currentTopology ( ) . coreMembers ( ) ) ;
 + Set < MemberId > targetMembers = discoveryService . currentTopology ( ) . coreMembers ( ) ;
 + raftMachine . setTargetMembershipSet ( targetMembers ) ;
 }
 }

Fix a race condition in onCoreTopologyChange


<nb> public class ASCIIReader
 }
 int count = fInputStream . read ( fBuffer , NUMBER0 , length ) ;
 for ( int i = NUMBER0 ; i < count ; i ++ ) {
 - int b0 = fBuffer [ i ] ;
 + int b0 = ( NUMBER1 & fBuffer [ i ] ) ; SINGLE
 if ( b0 > NUMBER2 ) {
 throw new IOException ( Localizer . getMessage ( STRING0 ,
 Integer . toString ( b0 ) ) ) ;

Fix signed unsigned conversion reported by Find Bugs


<nb> public final class ChannelUpgradeHandler implements HttpHandler {
 COMMENT
 COMMENT
 COMMENT
 - private synchronized void addProtocol ( String productString , HttpUpgradeListener openListener , final HttpUpgradeHandshake handshake ) {
 + public synchronized void addProtocol ( String productString , HttpUpgradeListener openListener , final HttpUpgradeHandshake handshake ) {
 addProtocol ( productString , openListener , null , handshake ) ;
 }

flag addProtocol String HttpUpgradeListener HttpUpgradeHandshake method public again


<nb> public abstract class SocketReader implements Runnable {
 SINGLE
 packet . setShow ( null ) ;
 }
 + if ( session . getStatus ( ) == Session . STATUS_CLOSED && packet . isAvailable ( ) ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + Log . warn ( STRING0 + packet ) ;
 + continue ;
 + }
 processPresence ( packet ) ;
 }
 else if ( STRING1 . equals ( tag ) ) {

Ignore available presences of closed sessions


<nb> public class QTestUtil {
 SessionState . get ( ) . getConf ( ) . setBoolean ( STRING0 , true ) ;
 int result = cliDriver . processLine ( cleanupCommands ) ;
 if ( result != NUMBER0 ) {
 - Assert . fail ( STRING1 + result ) ;
 + LOG . error ( STRING2 , result ) ;
 + SINGLE
 }
 SessionState . get ( ) . getConf ( ) . setBoolean ( STRING0 , false ) ;
 } else {

Remove AssertionError for non zero return codes in QTestUtil cleanup Siddharth Seth reviewed by Hari Subramaniyan


<nb> public class DomUtils

 return ( nativeEvt . getButton ( ) == NativeEvent . BUTTON_LEFT ) && commandKey ;
 }
 +
 + public static final native void setStyle ( Element element ,
 + String name ,
 + String value ) COMMENT
 + COMMENT
 + COMMENT ;
 }
 <nb> public class PDFViewerPanel extends Composite
 div . getStyle ( ) . setHeight ( h , Unit . PX ) ;
 div . getStyle ( ) . setBackgroundColor ( STRING0 ) ;
 div . getStyle ( ) . setProperty ( STRING1 , STRING2 ) ;
 - div . getStyle ( ) . setProperty ( STRING3 , STRING2 ) ;
 - div . getStyle ( ) . setProperty ( STRING4 , STRING2 ) ;
 + SINGLE
 + SINGLE
 + DomUtils . setStyle ( div , STRING3 , STRING2 ) ;
 + DomUtils . setStyle ( div , STRING4 , STRING2 ) ;

 pageContainer . appendChild ( div ) ;

use native assessor to set non camelCase style names work around gwt hosted mode assertion


<nb> public class SubtypingConstraint implements ConstraintFormula {
 public boolean reduce ( InferenceSession session , List < ConstraintFormula > constraints ) {
 if ( myIsRefTypes ) {
 if ( session . isProperType ( myS ) && session . isProperType ( myT ) ) {
 - if ( myT == null || myS == null ) return myS == myT ;
 + if ( myT == null ) return myS == null || myS . equalsToText ( CommonClassNames . JAVA_LANG_OBJECT ) ;
 + if ( myS == null ) return myT . equalsToText ( CommonClassNames . JAVA_LANG_OBJECT ) ;
 return TypeConversionUtil . isAssignable ( myT , myS ) ;
 }
 InferenceVariable inferenceVariable = session . getInferenceVariable ( myS ) ;

accept Object null type argument equivalence


<nb> public class ToolbarActionBar extends ActionBar {

 @ override
 public void setCustomView ( View view , LayoutParams layoutParams ) {
 - view . setLayoutParams ( layoutParams ) ;
 + if ( view != null ) {
 + view . setLayoutParams ( layoutParams ) ;
 + }
 mDecorToolbar . setCustomView ( view ) ;
 }

Fix crash in ToolbarActionBar when setting null custom view


<nb> public class ClipboardManager extends android . text . ClipboardManager {
 COMMENT
 public boolean hasText ( ) {
 try {
 - return getService ( ) . hasPrimaryClip ( ) ;
 + return getService ( ) . hasClipboardText ( ) ;
 } catch ( RemoteException e ) {
 return false ;
 }


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

 COMMENT
 COMMENT
 <nb> public class NioEndpoint {
 }

 SINGLE
 - log . info ( STRING0 + pollerThreadCount ) ;
 pollers = new Poller [ pollerThreadCount ] ;
 for ( int i = NUMBER0 ; i < pollerThreadCount ; i ++ ) {
 pollers [ i ] = new Poller ( ) ;

fixed imports and removed not needed log message


<nb> public class RendererRegistry {
 internalRenderers . put ( DEFAULT_RENDER , STRING0 ) ;
 internalRenderers . put ( STRING1 , STRING1 + STRING2 ) ;
 internalRenderers . put ( STRING3 , STRING3 + STRING2 ) ;
 + internalRenderers . put ( STRING4 , STRING4 + STRING2 ) ;
 internalRenderers . put ( STRING5 , STRING5 + STRING2 ) ;
 internalRenderers . put ( STRING6 , STRING6 + STRING2 ) ;
 }


<nb> public class DistributedMergeTask implements Task < Object [ ] [ ] > {
 if ( t instanceof RemoteTransportException ) {
 t = t . getCause ( ) ;
 }
 - countDownLatch . countDown ( ) ;
 for ( ListenableFuture < Object [ ] [ ] > result : results ) {
 ( ( SettableFuture < Object [ ] [ ] > ) result ) . setException ( t ) ;
 }
 + countDownLatch . countDown ( ) ;
 logger . error ( STRING0 , t ) ;
 }
 } ) ;

improve UnkownUpstreamFailure handling in a distributed merge task


<nb> public class UniquePropertiesCheck extends AbstractFileSetCheck {
 COMMENT
 COMMENT
 public UniquePropertiesCheck ( ) {
 - super . setFileExtensions ( STRING0 ) ;
 + setFileExtensions ( STRING0 ) ;
 }

 @ override
 <nb> public class IndentationCheck extends Check {
 COMMENT
 COMMENT
 public void indentationLog ( int line , String key , Object . . . args ) {
 - super . log ( line , key , args ) ;
 + log ( line , key , args ) ;
 }

 COMMENT
 <nb> public class JTreeTable extends JTable {
 tree = new TreeTableCellRenderer ( treeTableModel ) ;

 SINGLE
 - super . setModel ( new TreeTableModelAdapter ( treeTableModel , tree ) ) ;
 + setModel ( new TreeTableModelAdapter ( treeTableModel , tree ) ) ;

 SINGLE
 final ListToTreeSelectionModelWrapper selectionWrapper = new

Remove unnecessary uses of the super qualifier


<nb> public class EncapsulateFieldsTest extends MultiFileTestCase {
 }

 public void testDiffWithReturnTypeOnly ( ) throws Exception {
 - doTest ( STRING0 , STRING1 ) ;
 + doTest ( STRING0 , STRING2 ) ;
 }

 public void testDiffWithReturnTypeOnlyInHierarchy ( ) throws Exception {
 - doTest ( STRING0 , STRING3 ) ;
 + doTest ( STRING0 , STRING4 ) ;
 }

 public void testHideOverriderMethod ( ) throws Exception {


<nb> public class IdeaApplication {
 UIManager . put ( STRING0 , Boolean . TRUE ) ;
 }

 - if ( SystemInfo . isWindows ) {
 - UIManager . installLookAndFeel ( STRING1 , STRING2 ) ;
 - }
 + try {
 + Class . forName ( STRING3 ) ;

 - UIManager . installLookAndFeel ( STRING4 , STRING3 ) ;
 - UIManager . installLookAndFeel ( STRING5 , STRING6 ) ;
 - UIManager . installLookAndFeel ( STRING7 , STRING8 ) ;
 + if ( SystemInfo . isWindows ) {
 + UIManager . installLookAndFeel ( STRING1 , STRING2 ) ;
 + }
 +
 + UIManager . installLookAndFeel ( STRING4 , STRING3 ) ;
 + UIManager . installLookAndFeel ( STRING5 , STRING6 ) ;
 + UIManager . installLookAndFeel ( STRING7 , STRING8 ) ;
 + }
 + catch ( ClassNotFoundException ignored ) { }
 }

 protected class IdeStarter implements ApplicationStarter {


<nb> public class ScrollPane extends WidgetGroup {
 }

 public void drawDebug ( ShapeRenderer shapes ) {
 - drawDebugBounds ( shapes ) ;
 + shapes . flush ( ) ;
 applyTransform ( shapes , computeTransform ( ) ) ;
 if ( ScissorStack . pushScissors ( scissorBounds ) ) {
 drawDebugChildren ( shapes ) ;


<nb> public class SourceSatellite extends SatelliteApplication
 }

 @ inject
 - public void initialize ( ChunkSatelliteView view ,
 + public void initialize ( SourceSatelliteView view ,
 Satellite satellite ,
 Provider < AceThemes > pAceThemes ,
 ApplicationUncaughtExceptionHandler exHandler )

revert incorrect mapping in source window introduced by satellite chunks


<nb> public class DefaultServlet extends HttpServlet implements ResourceFactory
 }

 String pathInContext = URIUtil . addPaths ( servletPath , pathInfo ) ;
 - boolean endsWithSlash = request . getRequestURI ( ) . endsWith ( URIUtil . SLASH ) ;
 + boolean endsWithSlash = ( pathInfo == null ? request . getServletPath ( ) : pathInfo ) . endsWith ( URIUtil . SLASH ) ;

 SINGLE
 String pathInContextGz = null ;


<nb> public class ViewPropertyAnimator {
 @ override
 public void onAnimationEnd ( Animator animation ) {
 mView . setHasTransientState ( false ) ;
 + if ( mAnimatorCleanupMap != null ) {
 + Runnable r = mAnimatorCleanupMap . get ( animation ) ;
 + if ( r != null ) {
 + r . run ( ) ;
 + }
 + mAnimatorCleanupMap . remove ( animation ) ;
 + }
 if ( mListener != null ) {
 mListener . onAnimationEnd ( animation ) ;
 }
 <nb> public class ViewPropertyAnimator {
 }
 mAnimatorOnEndMap . remove ( animation ) ;
 }
 - if ( mAnimatorCleanupMap != null ) {
 - Runnable r = mAnimatorCleanupMap . get ( animation ) ;
 - if ( r != null ) {
 - r . run ( ) ;
 - }
 - mAnimatorCleanupMap . remove ( animation ) ;
 - }
 mAnimatorMap . remove ( animation ) ;
 }

Revert Revert Run cleanup before end actions of ViewPropertyAnimator


<nb> public class AndroidWiFiADBAction extends AnAction implements View {
 }

 @ override public void showNoConnectedDevicesNotification ( ) {
 - showNotification ( ANDROID_WIFI_ADB_TITLE , STRING0 ,
 + showNotification ( ANDROID_WIFI_ADB_TITLE ,
 + STRING1 ,
 NotificationType . INFORMATION ) ;
 }

 <nb> public class ADBParser {
 private static final String END_DEVICE_IP_INDICATOR = STRING2 ;
 private static final String START_DEVICE_IP_INDICATOR = STRING3 ;
 private static final String ERROR_PARSING_DEVICE_IP_KEY = STRING4 ;
 + public static final String DAEMON_INDICATOR = STRING5 ;

 public List < Device > parseGetDevicesOutput ( String adbDevicesOutput ) {
 List < Device > devices = new LinkedList < Device > ( ) ;
 + if ( adbDevicesOutput . contains ( DAEMON_INDICATOR ) ) {
 + return devices ;
 + }
 String [ ] splittedOutput = adbDevicesOutput . split ( STRING6 ) ;
 if ( splittedOutput . length == NUMBER0 ) {
 return devices ;

Fix bug discovered during the adb startup process


<nb> public class SlidingLayer extends FrameLayout {
 completeScroll ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public interface OnInteractListener {

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void onOpen ( ) ;
 -
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void onClose ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 public void onOpened ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void onClosed ( ) ;

 }

added documentation to OnInteractListener


<nb> public class PatternBoard extends PatternEdge implements OnBoardForwardEdge {
 COMMENT
 long current_time = state0 . getTime ( ) ;
 int bestWait = - NUMBER0 ;
 - ServiceDay bestServiceDay = null ;
 TripTimes bestTripTimes = null ;
 int serviceId = getPattern ( ) . getServiceId ( ) ;
 SINGLE
 <nb> public class PatternBoard extends PatternEdge implements OnBoardForwardEdge {
 SINGLE
 bestWait = wait ;
 bestTripTimes = tripTimes ;
 - bestServiceDay = sd ;
 }
 }
 }


<nb> public class MUCRoleImpl implements MUCRole {
 }

 public void send ( Packet packet ) {
 + if ( packet == null ) {
 + return ;
 + }
 packet . setTo ( user . getAddress ( ) ) ;
 router . route ( packet ) ;
 }


<nb> class FloatingAnimatorLollipopImpl extends FloatingAnimator {
 public void hide ( ) {
 super . hide ( ) ;

 - SINGLE
 - if ( getAppBar ( ) != null ) {
 - getFab ( ) . setTranslationY ( getFloatingToolbar ( ) . getTranslationY ( ) ) ;
 - }
 + getFab ( ) . setY ( getFloatingToolbar ( ) . getY ( ) ) ;

 ObjectAnimator anim = ObjectAnimator . ofFloat ( getFab ( ) , View . X , View . Y , createPath ( false ) ) ;
 anim . setInterpolator ( new AccelerateDecelerateInterpolator ( ) ) ;
 <nb> public class MainActivity extends AppCompatActivity implements FloatingToolbar . I
 @ override
 public boolean onMenuItemClick ( MenuItem item ) {
 if ( item . getItemId ( ) == R . id . action_snackbar ) {
 - Snackbar . make ( mToolbar , STRING0 , Snackbar . LENGTH_LONG ) . show ( ) ;
 + Snackbar . make ( mToolbar , STRING0 , Snackbar . LENGTH_INDEFINITE ) . show ( ) ;
 return true ;
 }
 return false ;


<nb> public class ConnectivityService extends IConnectivityManager . Stub
 mTestMode = SystemProperties . get ( STRING0 ) . equals ( STRING1 )
 && SystemProperties . get ( STRING2 ) . equals ( STRING3 ) ;

 - mTethering = new Tethering ( mContext , mNetd , statsService , mHandler . getLooper ( ) ) ;
 + mTethering = new Tethering ( mContext , mNetd , statsService ) ;

 mPermissionMonitor = new PermissionMonitor ( mContext , mNetd ) ;

 <nb> public class Tethering extends BaseNetworkObserver {
 SINGLE

 public Tethering ( Context context , INetworkManagementService nmService ,
 - INetworkStatsService statsService , Looper looper ) {
 + INetworkStatsService statsService ) {
 mContext = context ;
 mNMService = nmService ;
 mStatsService = statsService ;
 - mLooper = looper ;

 mPublicSync = new Object ( ) ;

Remove the unused Looper param from Tethering constructor


<nb> public class ElevationUtils {
 lastX = c . x ;
 lastY = c . y ;
 }
 + if ( flatLength == NUMBER0 ) {
 + return NUMBER0 ;
 + }
 return trueLength / flatLength ;
 }

 <nb> public class ElevationUtils {
 for ( int i = NUMBER0 ; i < coordinates . length - NUMBER1 ; ++ i ) {
 double run = coordinates [ i + NUMBER1 ] . x - coordinates [ i ] . x ;
 double rise = coordinates [ i + NUMBER1 ] . y - coordinates [ i ] . y ;
 + if ( run == NUMBER0 ) {
 + continue ;
 + }
 double slope = rise / run ;
 if ( slope > FLOAT0 || slope < - FLOAT0 ) {
 slope = NUMBER0 ; SINGLE

zero length streets were causing NaN errors


<nb> class ActivityUtils {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Solo {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Fixed javadoc for getString in Solo and ActivityUtils


<nb> public class InternalAprInputBuffer extends AbstractInputBuffer < Long > {
 lastValid = pos + nRead ;
 } else {
 if ( ( - nRead ) == Status . ETIMEDOUT || ( - nRead ) == Status . TIMEUP ) {
 - throw new SocketTimeoutException ( sm . getString ( STRING0 ) ) ;
 + if ( block ) {
 + throw new SocketTimeoutException (
 + sm . getString ( STRING0 ) ) ;
 + } else {
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + return false ;
 + }
 } else if ( nRead == NUMBER0 ) {
 SINGLE
 return false ;

Handle non standard OSX behaviour on non blocking reads that return no data in fill as well as nbRead


<nb> import NAMESPACE ;

 import NAMESPACE ;

 -
 - COMMENT
 - COMMENT
 - COMMENT
 -
 public class CellCardInflater implements IAdapterViewInflater < CardItemData > {

 @ override


<nb>
 SINGLE
 SINGLE
 SINGLE
 +
 package NAMESPACE ;

 COMMENT


<nb> public class ServiceTaskDelegateExpressionActivityBehavior extends TaskActivityB
 public void signal ( ActivityExecution execution , String signalName , Object signalData ) throws Exception {
 Object delegate = expression . getValue ( execution ) ;
 if ( delegate instanceof SignallableActivityBehavior ) {
 + ClassDelegate . applyFieldDeclaration ( fieldDeclarations , delegate ) ;
 ( ( SignallableActivityBehavior ) delegate ) . signal ( execution , signalName , signalData ) ;
 }
 }

Added fields injection for the delegate instance loaded when handling signals