<nb> public class OCommandExecutorSQLDropIndex extends OCommandExecutorSQLAbstract im
 if ( name . equals ( STRING0 ) ) {
 long totalIndexed = NUMBER0 ;
 for ( OIndex < ? > idx : getDatabase ( ) . getMetadata ( ) . getIndexManager ( ) . getIndexes ( ) ) {
 - idx . delete ( ) ;
 + getDatabase ( ) . getMetadata ( ) . getIndexManager ( ) . dropIndex ( idx . getName ( ) ) ;
 totalIndexed ++ ;
 }


<nb> public class ActFmSyncThread {
 try {
 modelPushedAt = DateUtilities . parseIso8601 ( modelPushedAtString ) ;
 } catch ( ParseException e ) {
 - SINGLE
 + Log . e ( ERROR_TAG , STRING0 + modelPushedAtString , e ) ;
 }
 if ( serverMessagesJson != null ) {
 for ( int i = NUMBER0 ; i < serverMessagesJson . length ( ) ; i ++ ) {


<nb> public class GelfOutput implements MessageOutput {
 public ConfigurationRequest getRequestedConfiguration ( ) {
 final ConfigurationRequest configurationRequest = new ConfigurationRequest ( ) ;
 configurationRequest . addField ( new TextField ( CK_HOSTNAME , STRING0 , STRING1 , STRING2 , ConfigurationField . Optional . NOT_OPTIONAL ) ) ;
 - configurationRequest . addField ( new NumberField ( CK_PORT , STRING3 , NUMBER0 , STRING4 , ConfigurationField . Optional . NOT_OPTIONAL ) ) ;
 + configurationRequest . addField ( new NumberField ( CK_PORT , STRING3 , NUMBER0 , STRING4 , ConfigurationField . Optional . NOT_OPTIONAL , NumberField . Attribute . IS_PORT_NUMBER ) ) ;
 final Map < String , String > protocols = ImmutableMap . of (
 STRING5 , STRING5 ,
 STRING6 , STRING6 ) ;
 - configurationRequest . addField ( new DropdownField ( CK_PROTOCOL , STRING7 , STRING5 , protocols , STRING8 , ConfigurationField . Optional . OPTIONAL ) ) ;
 + configurationRequest . addField ( new DropdownField ( CK_PROTOCOL , STRING7 , STRING5 , protocols , STRING8 , ConfigurationField . Optional . NOT_OPTIONAL ) ) ;
 return configurationRequest ;
 }
 }

Flagging configuration field as being a port number


<nb> public class CursorToMessage {
 return null ;
 }

 + SINGLE
 + if ( address . equals ( STRING0 ) ) {
 + address = STRING1 ;
 + }
 +
 PersonRecord record = lookupPerson ( address ) ;
 if ( PrefStore . getMailSubjectPrefix ( mContext ) )
 msg . setSubject ( STRING2 + PrefStore . getCalllogFolder ( mContext ) + STRING3 + record . getName ( ) ) ;

Handle callers without callerid so they display as Unknown


<nb> public abstract class AbstractAjpProtocol < S > extends AbstractProtocol < S > {
 SINGLE

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 protected boolean ajpFlush = true ;
 public boolean getAjpFlush ( ) { return ajpFlush ; }
 <nb> public class AjpProcessor extends AbstractProcessor {

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 protected boolean ajpFlush = true ;
 public boolean getAjpFlush ( ) { return ajpFlush ; }

Adjust javadoc phrasing since the attributes


<nb> public class DBObjectSerializer implements Serializer < DBObject > {
 }
 }

 + public DBObjectSerializer ( final PrimitiveSerializers primitiveSerializers ) {
 + this ( null , primitiveSerializers , BasicDBObject . class , new HashMap < String , Class < ? extends DBObject > > ( ) ) ;
 + }
 +
 @ override
 public void serialize ( final BSONWriter bsonWriter , final DBObject document ,
 final BsonSerializationOptions options ) {

Added simpler constructor with sensible defaults


<nb> public class StreamRuleImpl extends PersistedImpl implements StreamRule {
 COMMENT

 public Map < String , Validator > getValidations ( ) {
 - return new HashMap < String , Validator > ( ) { {
 + HashMap < String , Validator > validators = new HashMap < String , Validator > ( ) { {
 put ( STRING0 , new IntegerValidator ( ) ) ;
 - put ( STRING1 , new FilledStringValidator ( ) ) ;
 put ( STRING2 , new FilledStringValidator ( ) ) ;
 put ( STRING3 , new ObjectIdValidator ( ) ) ;
 } } ;
 +
 + if ( ! this . getType ( ) . equals ( StreamRuleType . PRESENCE ) )
 + validators . put ( STRING1 , new FilledStringValidator ( ) ) ;
 +
 + return validators ;
 }

 @ override

Disabling validation of value field for field presence rule


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

 - COMMENT
 + public class ConfiguredCloseableHttpClient {
 private final CloseableHttpClient closeableHttpClient ;
 private final RequestConfig defaultRequestConfig ;

 <nb> public class HttpClientBuilder {
 COMMENT
 COMMENT
 COMMENT
 - @ visiblefortesting
 protected ConfiguredCloseableHttpClient createClient (
 final org . apache . http . impl . client . HttpClientBuilder builder ,
 final InstrumentedHttpClientConnectionManager manager ,

Allow clients to override HttpClientBuilder createClient method


<nb> public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS
 Log . d ( LOG_TAG , STRING0 + intent ) ;
 getContext ( ) . startActivity ( intent ) ;

 + SINGLE
 + SINGLE
 + SINGLE
 if ( ! mGlobalSearchMode ) {
 dismiss ( ) ;
 }

add comment to illuminate why we only dismiss the dialog when launching an intent for in app search


<nb> public class VcsBalloonProblemNotifier implements Runnable {
 }

 public void run ( ) {
 - NOTIFICATION_GROUP . createNotification ( myMessage , myMessageType ) . notify ( myProject ) ;
 + NOTIFICATION_GROUP . createNotification ( myMessage , myMessageType ) . notify ( myProject . isDefault ( ) ? null : myProject ) ;
 }
 }


<nb> public class PhoneWindowManager implements WindowManagerPolicy {
 return - NUMBER0 ;
 }

 + SINGLE
 + SINGLE
 + SINGLE
 + TelecomManager telecomManager = getTelecommService ( ) ;
 + if ( telecomManager != null && telecomManager . isRinging ( ) ) {
 + Log . i ( TAG , STRING0 ) ;
 + return - NUMBER0 ;
 + }
 +
 SINGLE
 if ( mDoubleTapOnHomeBehavior != DOUBLE_TAP_HOME_NOTHING ) {
 mHandler . removeCallbacks ( mHomeDoubleTapTimeoutRunnable ) ; SINGLE

Revert Allow home to be pressed while in incoming call screen


<nb> public class GoAwayBodyParser extends ControlFrameBodyParser
 state = State . STATUS_CODE ;
 break ;
 }
 + default :
 + {
 + throw new IllegalStateException ( ) ;
 + }
 }
 }
 else
 <nb> public class GoAwayBodyParser extends ControlFrameBodyParser
 state = State . STATUS_CODE ;
 break ;
 }
 + default :
 + {
 + throw new IllegalStateException ( ) ;
 + }
 }
 }
 break ;


<nb> public class DRPCSpout implements IRichSpout {

 int port = Utils . getInt ( conf . get ( Config . DRPC_INVOCATIONS_PORT ) ) ;
 List < String > servers = ( List < String > ) conf . get ( Config . DRPC_SERVERS ) ;
 - if ( servers . isEmpty ( ) ) {
 + if ( servers == null || servers . isEmpty ( ) ) {
 throw new RuntimeException ( STRING0 ) ;
 }
 if ( numTasks < servers . size ( ) ) {

Added check for null servers list on the setup of the DRPCSpout


<nb> public class AccessorForPropertyDescriptor extends PropertyDescriptor {
 super ( property , Collections . < AnnotationDescriptor > emptyList ( ) , Modality . FINAL , Visibilities . PUBLIC ,
 false ,
 false , Kind . DECLARATION ) ;
 + initializeDefault ( ) ;
 }
 }
 }


<nb> public class TestStoreAccess
 SINGLE
 SINGLE
 assertFalse ( STRING0 , data . contains ( STRING1 ) ) ;
 - System . out . println ( data ) ;
 assertTrue ( STRING2 , isUnclean ( testdir . directory ( ) ) ) ;
 }


<nb> public class VertxImpl implements VertxInternal , MetricsProvider {
 @ override
 public synchronized TimeoutStream resume ( ) {
 this . paused = false ;
 - return null ;
 + return this ;
 }

 @ override

Return this instead of null in TimeoutStream resume


<nb> public class ConsistencyCheckTool
 {
 try
 {
 + System . err . println ( STRING0 +
 + STRING1 ) ;
 runConsistencyCheckTool ( args ) ;
 }
 catch ( ToolFailureException e )

Deprecate the old consistency checker entry point


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


<nb> public class JetRunConfigurationEditor extends SettingsEditor < JetRunConfiguratio
 private final LabeledComponent < JComboBox > moduleChooser ;

 public JetRunConfigurationEditor ( Project project ) {
 - moduleChooser = LabeledComponent . create ( new JComboBox ( ) , STRING0 ) ;
 + moduleChooser = LabeledComponent . create ( new JComboBox ( ) , STRING1 ) ;
 + moduleChooser . setLabelLocation ( BorderLayout . WEST ) ;
 myModuleChooserHolder . add ( moduleChooser , BorderLayout . CENTER ) ;
 myModuleSelector = new ConfigurationModuleSelector ( project , moduleChooser . getComponent ( ) ) ;
 myCommonProgramParameters . setModuleContext ( myModuleSelector . getModule ( ) ) ;

change module chooser to look like in IDEA s Java run configuration


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

 import NAMESPACE ;
 <nb> import NAMESPACE ;
 public class ConfigResolverTest
 {
 private static final String DEFAULT_VALUE = STRING0 ;
 +
 + @ before
 + public void init ( )
 + {
 + ProjectStageProducer . setProjectStage ( ProjectStage . UnitTest ) ;
 + }
 +
 @ test
 public void testOverruledValue ( )
 {

fix broken unit test when testing remote containers


<nb> public class IOBalancerMemoryLeakTest extends HazelcastTestSupport {
 }

 @ test
 - public void testEachConnectionUseDifferentSelectorEventually ( ) {
 + public void testMemoryLeak ( ) {
 HazelcastInstance instance = Hazelcast . newHazelcastInstance ( ) ;
 HTTPCommunicator communicator = new HTTPCommunicator ( instance ) ;
 TcpIpConnectionManager connectionManager = ( TcpIpConnectionManager ) getConnectionManager ( instance ) ;


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

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class PacketLoggingServiceImpl
 COMMENT
 COMMENT
 COMMENT
 - private final List < Packet > pktsToSave = new ArrayList < Packet > ( ) ;
 + private final Queue < Packet > pktsToSave = EvictingQueue . create ( NUMBER0 ) ;

 COMMENT
 COMMENT
 <nb> public class PacketLoggingServiceImpl
 continue ;
 }

 - pktToSave = pktsToSave . remove ( NUMBER1 ) ;
 + pktToSave = pktsToSave . poll ( ) ;
 }

 if ( pktToSave != null )

Uses an EvictingQueue instead of an ArrayList in the PacketLoggingServiceImpl


<nb> public class ResultListPanel extends JScrollPane implements LookupListener {
 public void actionPerformed ( ActionEvent e ) {
 try {
 BufferedImage image = UIUtils . createComponentScreenshot ( table ) ;
 - image = null ;
 writeImage ( image ) ;
 } catch ( Exception ex ) {
 String msg = NbBundle . getMessage ( ResultListPanel . class , STRING0 , new Object [ ] { ex . getClass ( ) . getSimpleName ( ) , ex . getLocalizedMessage ( ) , ex . getStackTrace ( ) [ NUMBER0 ] . getClassName ( ) , ex . getStackTrace ( ) [ NUMBER0 ] . getLineNumber ( ) } ) ;


<nb> public class AudioTrack

 public int write ( short [ ] audioData , int offsetInShorts , int sizeInShorts ) {

 - if ( mState == STATE_UNINITIALIZED || mAudioFormat != AudioFormat . ENCODING_PCM_16BIT ) {
 + if ( mState == STATE_UNINITIALIZED || mAudioFormat == AudioFormat . ENCODING_PCM_FLOAT ) {
 return ERROR_INVALID_OPERATION ;
 }


<nb> public class Bootstrap implements BootstrapTask {

 private void help ( ) {
 System . out . println ( STRING0 ) ;
 - System . exit ( NUMBER0 ) ;
 }
 }
 <nb> public class ShutdownTask implements BootstrapTask {
 socketShutdown ( shutdownArgs . getShutdownPort ( defaultShutdownPort ) , defaultShutdownKey ) ;
 }

 - public void socketShutdown ( int shutdownPort , String shutdownMocoKey ) {
 + private void socketShutdown ( int shutdownPort , String shutdownMocoKey ) {
 try {
 Socket socket = new Socket ( InetAddress . getByName ( STRING1 ) , shutdownPort ) ;
 socket . setSoLinger ( false , NUMBER1 ) ;
 <nb> public class StartTask implements BootstrapTask {
 StartArgs startArgs = parse ( args ) ;
 if ( conflictWithDefaultShutdownPort ( startArgs , defaultShutdownPort ) ) {
 System . err . println ( STRING2 ) ;
 - System . exit ( NUMBER0 ) ;
 + return ;
 }

 Runner runner = new DynamicRunner ( startArgs . getConfigurationFile ( ) , startArgs . getPort ( ) ) ;


<nb> public class MultiMatchQueryBuilder extends BaseQueryBuilder implements Boostabl

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class MultiMatchQueryBuilder extends BaseQueryBuilder implements Boostabl
 builder . endObject ( ) ;
 }

 - }
 + }


<nb> public class ManagerSF extends StoreFactoryBase {
 StoreDescription parentDesc ) throws Exception {
 if ( aManager instanceof Manager ) {
 Manager manager = ( Manager ) aManager ;
 - SINGLE
 - System . out . println ( STRING0 ) ;
 + SINGLE
 SessionIdGenerator sessionIdGenerator = manager . getSessionIdGenerator ( ) ;
 if ( sessionIdGenerator != null ) {
 storeElement ( aWriter , indent , sessionIdGenerator ) ;


<nb>
 COMMENT

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 package NAMESPACE ;


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

 import NAMESPACE ;

 <nb> public final class Split
 return connectorSplit . isRemotelyAccessible ( ) ;
 }

 + @ override
 + public String toString ( )
 + {
 + return Objects . toStringHelper ( this )
 + . add ( STRING0 , connectorId )
 + . add ( STRING1 , connectorSplit )
 + . toString ( ) ;
 + }
 +
 public static Function < ConnectorSplit , Split > fromConnectorSplit ( final String connectorId )
 {
 return new Function < ConnectorSplit , Split > ( ) {


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ target ( ElementType . FIELD )
 public @ interface PrimaryKey {

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 boolean autoincrement ( ) default true ;

Update outdated PrimaryKey annotation documentation


<nb> public class RequestParams {
 for ( Object nestedValue : set ) {
 params . addAll ( getParamsList ( key , nestedValue ) ) ;
 }
 - } else if ( value instanceof String ) {
 - params . add ( new BasicNameValuePair ( key , ( String ) value ) ) ;
 + } else {
 + params . add ( new BasicNameValuePair ( key , value . toString ( ) ) ) ;
 }
 return params ;
 }


<nb> public class AccountHeaderBuilder {
 mAccountHeaderTextSection . setVisibility ( View . VISIBLE ) ;
 handleSelectionView ( mCurrentProfile , true ) ;
 mAccountSwitcherArrow . setVisibility ( View . VISIBLE ) ;
 + mCurrentProfileView . setTag ( R . id . profile_header , mCurrentProfile ) ;
 mCurrentProfileName . setText ( mCurrentProfile . getName ( ) ) ;
 mCurrentProfileEmail . setText ( mCurrentProfile . getEmail ( ) ) ;

add missing setTag to the CurrentProfileView


<nb> public abstract class AccountRegistrationWizard

 return false ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean isHidden ( )
 + {
 + return false ;
 + }
 }

Adds a method indicating if a wizard should be shown in availble networks


<nb>
 package NAMESPACE ;

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

 import NAMESPACE ;
 import NAMESPACE ;
 + import static NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class FlowScopedBeanTest {

 @ test
 public void checkRenderedPage ( ) throws Exception {
 - WebConversation conv = new WebConversation ( ) ;
 - GetMethodWebRequest getRequest = new GetMethodWebRequest ( base + STRING0 ) ;
 - String responseText = conv . getResponse ( getRequest ) . getText ( ) ;
 - assert ( responseText . contains ( STRING1 ) ) ;
 + WebClient webClient = new WebClient ( ) ;
 + HtmlPage page = webClient . getPage ( base + STRING0 ) ;
 + assertNotNull ( page ) ;
 + assert ( page . asText ( ) . contains ( STRING1 ) ) ;
 }
 }


<nb> final class ActivityStack {
 resetTaskIfNeededLocked ( r , r ) ;
 doShow = topRunningNonDelayedActivityLocked ( null ) == r ;
 }
 + } else if ( options != null && new ActivityOptions ( options ) . getAnimationType ( )
 + == ActivityOptions . ANIM_SCENE_TRANSITION ) {
 + doShow = false ;
 }
 if ( SHOW_APP_STARTING_PREVIEW && doShow ) {
 SINGLE

Stop temporary window from showing with activity transitions


<nb> package NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 @ incubating
 - public interface BuildAction < T > {
 + public interface BuildAction < T > extends Serializable {
 COMMENT
 COMMENT
 COMMENT

Tooling API BuildAction extends Serializable


<nb> public abstract class ChannelInboundMessageHandlerAdapter < I >
 I imsg = ( I ) msg ;
 try {
 messageReceived ( ctx , imsg ) ;
 - } catch ( Signal abort ) {
 - abort . expect ( ABORT ) ;
 - break ;
 } finally {
 BufUtil . release ( imsg ) ;
 }
 }
 + } catch ( Signal abort ) {
 + abort . expect ( ABORT ) ;
 } finally {
 if ( oldOutSize != out . size ( ) ) {
 ctx . fireInboundBufferUpdated ( ) ;

Simplify ChannelInboundMessageHandlerAdapter inboundBufferUpdated implementation


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class PropertyPathFactoryBean implements FactoryBean < Object > , BeanNameAwa
 public Object getObject ( ) throws BeansException {
 BeanWrapper target = this . targetBeanWrapper ;
 if ( target != null ) {
 - if ( logger . isWarnEnabled ( ) && this . beanFactory instanceof ConfigurableBeanFactory &&
 + if ( logger . isWarnEnabled ( ) && this . targetBeanName != null &&
 + this . beanFactory instanceof ConfigurableBeanFactory &&
 ( ( ConfigurableBeanFactory ) this . beanFactory ) . isCurrentlyInCreation ( this . targetBeanName ) ) {
 logger . warn ( STRING0 + this . targetBeanName + STRING1 +
 STRING2 + this . propertyPath + STRING3 ) ;

do not call isCurrentlyInCreation with null argument in order to meet newly enforced assertions within the BeanFactory


<nb> public class WifiStateTracker extends NetworkStateTracker {
 COMMENT
 COMMENT
 COMMENT
 - private static final int DEFAULT_MAX_DHCP_RETRIES = NUMBER0 ;
 + private static final int DEFAULT_MAX_DHCP_RETRIES = NUMBER1 ;

 private static final int DRIVER_POWER_MODE_AUTO = NUMBER2 ;
 private static final int DRIVER_POWER_MODE_ACTIVE = NUMBER3 ;
 <nb> public class WifiStateTracker extends NetworkStateTracker {
 String BSSID = ( msg . obj != null ) ? msg . obj . toString ( ) : null ;
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 if ( mWifiInfo . getSupplicantState ( ) != SupplicantState . UNINITIALIZED ) {
 if ( ++ mReconnectCount > getMaxDhcpRetries ( ) ) {
 if ( LOCAL_LOGD ) {
 Log . d ( TAG , STRING0 +
 - mReconnectCount + STRING1 + BSSID ) ;
 + mReconnectCount + STRING2 + BSSID ) ;
 }
 - addToBlacklist ( BSSID ) ;
 + mWM . disableNetwork ( mLastNetworkId ) ;
 }
 reconnectCommand ( ) ;
 }


<nb> class ModelMetricsHandler extends Handler {
 mm = new ModelMetricsListSchemaV3 ( ) ;

 mm . predictions_frame = new KeyV3 . FrameKeyV3 ( predictions . _key ) ;
 + if ( parms . _leaf_node_assignment ) SINGLE
 + mm . model_metrics = null ;

 if ( null == mm . model_metrics || NUMBER0 == mm . model_metrics . length ) {
 SINGLE

No longer return a metric when making leaf node predictions


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MatcherImpl {
 result . addAll ( Arrays . asList ( contentRoots ) ) ;

 if ( scope . isSearchInLibraries ( ) ) {
 - for ( VirtualFile file : instance . getRootFiles ( ProjectRootType . SOURCE ) ) {
 + for ( VirtualFile file : instance . getFilesFromAllModules ( OrderRootType . SOURCES ) ) {
 if ( projectFileIndex . isInLibrarySource ( file ) ) {
 result . add ( file ) ;
 }


<nb> public class AudioRecord
 COMMENT
 COMMENT
 COMMENT
 - private int mSampleRate = NUMBER0 ;
 + private int mSampleRate ;
 COMMENT
 COMMENT
 COMMENT
 - private int mChannelCount = NUMBER1 ;
 + private int mChannelCount ;
 COMMENT
 COMMENT
 COMMENT
 <nb> public class AudioRecord
 COMMENT
 COMMENT
 COMMENT
 - private int mAudioFormat = AudioFormat . ENCODING_PCM_16BIT ;
 + private int mAudioFormat ;
 COMMENT
 COMMENT
 COMMENT
 - private int mRecordSource = MediaRecorder . AudioSource . DEFAULT ;
 + private int mRecordSource ;
 COMMENT
 COMMENT
 COMMENT
 <nb> public class AudioRecord
 public AudioRecord ( int audioSource , int sampleRateInHz , int channelConfig , int audioFormat ,
 int bufferSizeInBytes )
 throws IllegalArgumentException {
 - mState = STATE_UNINITIALIZED ;
 mRecordingState = RECORDSTATE_STOPPED ;

 SINGLE

Don t doubly initialize fields in constructor


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class OStorageAbstract extends OSharedContainerImpl implements O
 ( ( OCloseable ) resource ) . close ( ) ;
 }
 sharedResources . clear ( ) ;
 +
 + Orient . instance ( ) . unregisterStorage ( this ) ;
 }

 COMMENT
 <nb> public class OStorageLocal extends OStorageEmbedded {
 lock . acquireExclusiveLock ( ) ;
 try {

 + addUser ( ) ;
 +
 if ( status != STATUS . CLOSED )
 SINGLE
 SINGLE
 return ;

 - addUser ( ) ;
 -
 if ( ! exists ( ) )
 throw new OStorageException ( STRING0 + name + STRING1 + url ) ;

Fixed bug on multiple database against one storage with auto close set


<nb> public class GrailsAwareTraitInjectionOperation extends
 ClassNode traitClassNode = ClassHelper . make ( trait ) ;
 if ( ! classNode . implementsInterface ( traitClassNode ) ) {
 classNode . addInterface ( traitClassNode ) ;
 - if ( unit . getPhase ( ) != CompilePhase . SEMANTIC_ANALYSIS . getPhaseNumber ( ) ) {
 - TraitComposer . doExtendTraits ( classNode , source , unit ) ;
 - }
 }
 }
 + if ( unit . getPhase ( ) != CompilePhase . SEMANTIC_ANALYSIS . getPhaseNumber ( ) ) {
 + TraitComposer . doExtendTraits ( classNode , source , unit ) ;
 + }
 }

 public List < TraitInjector > getTraitInjectors ( ) {

invoke TraitComposer doExtendTraits once per class not once per trait


<nb> public final class FixedLengthStreamSourceConduit extends AbstractStreamSourceC
 }
 long res = NUMBER0 L ;
 try {
 - if ( allAreSet ( val , FLAG_CLOSED ) || val == NUMBER0 L ) {
 - return - NUMBER1 ;
 - }
 return res = next . transferTo ( min ( count , val & MASK_COUNT ) , throughBuffer , target ) ;
 } finally {
 exitRead ( res == - NUMBER1 ? val & MASK_COUNT : res + throughBuffer . remaining ( ) ) ;


<nb> public class ShowsActivity extends BaseActivity implements AbsListView . OnScrollL
 onNavigationItemSelected ( filterId , filterId ) ;
 }

 - final OnSharedPreferenceChangeListener mPrefsListener = new OnSharedPreferenceChangeListener ( ) {
 + private final OnSharedPreferenceChangeListener mPrefsListener = new OnSharedPreferenceChangeListener ( ) {

 public void onSharedPreferenceChanged ( SharedPreferences sharedPreferences , String key ) {
 boolean isAffectingChange = false ;


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class PluginsCheckerWPOrg {
 private final static String BB_PLUGINS_LIST_URL = STRING0 ;

 <nb> public class PluginsCheckerWPOrg {
 mOriginalURL = url ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public List < Plugin > checkForPlugins ( ) {
 String responseHTML = downloadPluginsList ( ) ;
 if ( TextUtils . isEmpty ( responseHTML ) ) {

Add comments on the black box scanner tools


<nb> public class GPIOLinux implements GPIO , ManagedService {

 COMMENT
 Files . write ( Paths . get ( SYSFS_CLASS_GPIO + STRING0 ) , pinNumber . toString ( ) . getBytes ( ) ) ;
 -
 +
 + COMMENT
 + Thread . sleep ( NUMBER0 ) ;
 COMMENT
 pin = new GPIOPinLinux ( pinNumber , SYSFS_CLASS_GPIO + STRING1 + pinNumber , defaultDebounceInterval ) ;


<nb> public class ODocument extends ORecordAbstract
 if ( isTrackingChanges ( ) && id . getIdentity ( ) . getClusterId ( ) != - NUMBER0 )
 super . track ( id ) ;
 }
 +
 + @ override
 + protected void unTrack ( OIdentifiable id ) {
 + if ( isTrackingChanges ( ) && id . getIdentity ( ) . getClusterId ( ) != - NUMBER0 )
 + super . unTrack ( id ) ;
 + }
 }


<nb> class PhaseOptimizer implements CompilerPass {
 SINGLE
 @ visiblefortesting
 static final List < String > OPTIMAL_ORDER = ImmutableList . of (
 - STRING0 ,
 STRING1 ,
 - STRING2 ,
 - STRING3 ,
 - STRING4 ,
 - STRING5 ,
 STRING6 ,
 + STRING0 ,
 STRING7 ,
 - STRING8 ) ;
 + STRING4 ,
 + STRING2 ,
 + STRING9 ,
 + STRING8 ,
 + STRING5 ,
 + STRING3 ) ;

 static final int MAX_LOOPS = NUMBER0 ;
 static final String OPTIMIZE_LOOP_ERROR =

Reorder the ideal order so that removeDeadCode is always directly after the peephole and minimizeExitpoint passes which are cheaper


<nb> public class ResolveImportUtil {
 }
 }

 - private static void visitRoots ( @ notnull Module module , RootVisitor visitor ) {
 + public static void visitRoots ( @ notnull Module module , RootVisitor visitor ) {
 SINGLE
 SINGLE
 if ( visitModuleContentEntries ( module , visitor ) ) return ;

Fixed django search in run django configuration


<nb> public final class EarClippingTriangulator {
 }
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 private void classifyVertex ( int index ) {
 final Vector2 previousVertex = vertices . get ( computePreviousIndex ( index ) ) ;
 final Vector2 currentVertex = vertices . get ( index ) ;
 <nb> public final class EarClippingTriangulator {
 if ( vertexTypes [ pEarTipIndex ] != CONVEX_OR_TANGENTIAL ) {
 return false ;
 }
 - if ( this . concaveVertexCount == NUMBER0 ) {
 + if ( this . concaveVertexCount == NUMBER0 ) {
 return true ;
 }
 final int previousIndex = computePreviousIndex ( pEarTipIndex ) ;


<nb> public class TimeBasedUuidGeneratorTest {
 Collections . sort ( uuids ) ;

 for ( int i = NUMBER0 ; i < COUNT ; i ++ ) {
 - SINGLE
 - if ( uuids . get ( i - NUMBER0 ) . equals ( uuids . get ( i ) ) ) {
 - System . out . println ( STRING0 ) ;
 - }
 + assertFalse ( uuids . toString ( ) , uuids . get ( i - NUMBER0 ) . equals ( uuids . get ( i ) ) ) ;
 }
 }
 }

Reverted temporary code which was mistakenly checked in


<nb> public class RagdollControl implements PhysicsControl , PhysicsCollisionListener
 this . control = control ;
 for ( PhysicsBoneLink link : boneLinks . values ( ) ) {
 link . bone . setUserControl ( control ) ;
 + link . rigidBody . setKinematic ( ! control ) ;
 }

 }

set kinematic mode to ragdoll parts when control is disabled


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class HgPlatformTest extends LightPlatformTestCase {
 protected VirtualFile myProjectRoot ;
 protected VirtualFile myRepository ;

 + @ suppresswarnings ( STRING0 )
 + protected HgPlatformTest ( ) {
 + PlatformTestCase . initPlatformLangPrefix ( ) ;
 + }
 +
 @ override
 protected void setUp ( ) throws Exception {
 super . setUp ( ) ;

Allow Mercurial tests to start on their own class path


<nb> public class DoubleHeapSelect {
 if ( n < k ) {
 heap [ n ++ ] = datum ;
 if ( n == k ) {
 - heapify ( heap ) ;
 + sort ( heap , k ) ;
 }
 } else {
 n ++ ;
 <nb> public class DoubleHeapSelect {
 COMMENT
 COMMENT
 public double peek ( ) {
 + if ( n < k ) sort ( heap , n ) ;
 return heap [ NUMBER0 ] ;
 }


<nb> public class RichEditor extends WebView {
 }

 public void setHtml ( String contents ) {
 + if ( contents == null ) {
 + contents = STRING0 ;
 + }
 exec ( STRING1 + contents + STRING2 ) ;
 + mContents = contents ;
 }

 public String getHtml ( ) {


<nb> public class CreateFunctionFromUsageFix extends CreateFromUsageFixBase {
 assert classContainingFile instanceof JetFile ;
 containingFile = ( JetFile ) classContainingFile ;

 - if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
 - NavigationUtil . activateFileWithPsiElement ( containingFile ) ;
 - }
 + NavigationUtil . activateFileWithPsiElement ( containingFile ) ;
 containingFileEditor = FileEditorManager . getInstance ( project ) . getSelectedTextEditor ( ) ;

 JetClassBody classBody = ownerClass . getBody ( ) ;


<nb> public abstract class TransactionAspectSupport implements BeanFactoryAware , Init
 return this . transactionManager ;
 }
 String qualifier = txAttr . getQualifier ( ) ;
 - if ( StringUtils . hasLength ( qualifier ) ) {
 + if ( StringUtils . hasText ( qualifier ) ) {
 PlatformTransactionManager txManager = this . transactionManagerCache . get ( qualifier ) ;
 if ( txManager == null ) {
 txManager = BeanFactoryAnnotationUtils . qualifiedBeanOfType (
 <nb> public abstract class TransactionAspectSupport implements BeanFactoryAware , Init
 }
 return txManager ;
 }
 - else if ( this . transactionManagerBeanName != null ) {
 + else if ( StringUtils . hasText ( this . transactionManagerBeanName ) ) {
 PlatformTransactionManager txManager = this . transactionManagerCache . get ( this . transactionManagerBeanName ) ;
 if ( txManager == null ) {
 txManager = this . beanFactory . getBean (

Require non empty values for TxMgr qualifiers bean names


<nb> public class CarrierConfigManager {
 public static final String KEY_WFC_DATA_SPN_FORMAT_IDX_INT = STRING0 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String KEY_CARRIER_NAME_OVERRIDE_BOOL = STRING1 ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String KEY_CARRIER_NAME_STRING = STRING2 ;
 +
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class CarrierConfigManager {
 sDefaults . putInt ( KEY_WFC_SPN_FORMAT_IDX_INT , NUMBER0 ) ;
 sDefaults . putInt ( KEY_WFC_DATA_SPN_FORMAT_IDX_INT , NUMBER0 ) ;
 sDefaults . putBoolean ( KEY_CONFIG_WIFI_DISABLE_IN_ECBM , false ) ;
 + sDefaults . putBoolean ( KEY_CARRIER_NAME_OVERRIDE_BOOL , false ) ;
 + sDefaults . putString ( KEY_CARRIER_NAME_STRING , STRING3 ) ;

 SINGLE
 sDefaults . putBoolean ( KEY_MMS_ALIAS_ENABLED_BOOL , false ) ;

Add carrier config variables for overriding carrier name from carrierconf


<nb> public class TestPerf extends TestBase {
 public long var2 ;
 }

 + SINGLE
 @ test
 public void testDifference ( ) {
 try {


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

 COMMENT
 COMMENT
 COMMENT
 + @ ignore ( STRING0 )
 public class LanguageJavaScriptNoCacheTest extends CamelTestSupport {

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

 COMMENT
 COMMENT
 COMMENT
 + @ ignore ( STRING0 )
 public class LanguageJavaScriptTest extends CamelTestSupport {

 @ test


<nb> public class ParquetHiveRecordCursor
 FileMetaData fileMetaData = parquetMetadata . getFileMetaData ( ) ;
 MessageType fileSchema = fileMetaData . getSchema ( ) ;

 - MessageType schema = fileMetaData . getSchema ( ) ;
 - PrestoReadSupport readSupport = new PrestoReadSupport ( useParquetColumnNames , columns , schema ) ;
 + PrestoReadSupport readSupport = new PrestoReadSupport ( useParquetColumnNames , columns , fileSchema ) ;

 List < parquet . schema . Type > fields = columns . stream ( )
 . filter ( column - > ! column . isPartitionKey ( ) )


<nb> public class H2ONode extends Iced implements Comparable {
 SINGLE
 SINGLE
 SINGLE
 - static public NonBlockingHashMapLong < RPC . RPCCall > WORK = new NonBlockingHashMapLong ( ) ;
 + public NonBlockingHashMapLong < RPC . RPCCall > WORK = new NonBlockingHashMapLong ( ) ;

 RPC . RPCCall has_task ( int tnum ) { return WORK . get ( tnum ) ; }


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

 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PublishProfilePictureActivity extends XmppActivity {
 }
 return true ;
 } else {
 - return onOptionsItemSelected ( item ) ;
 + return super . onOptionsItemSelected ( item ) ;
 }
 }

fixed recursive call instead of call to super in PublishProfileActivity


<nb> public class CxxPreprocessAndCompile
 }

 @ override
 + public String getType ( ) {
 + if ( operation . isCompile ( ) && operation . isPreprocess ( ) ) {
 + return STRING0 ;
 + } else if ( operation . isPreprocess ( ) ) {
 + return STRING1 ;
 + } else {
 + return STRING2 ;
 + }
 + }
 +
 + @ override
 public ImmutableList < Step > getBuildSteps (
 BuildContext context ,
 BuildableContext buildableContext ) {
 <nb> public abstract class AbstractBuildRule implements BuildRule {
 }

 @ override
 - public final String getType ( ) {
 + public String getType ( ) {
 return typeSupplier . get ( ) ;
 }


<nb> public class JSONWorldDataHelper
 return ;

 JsonArray arr = new JsonArray ( ) ;
 - BlockPos pos = player . getPosition ( ) ;
 + BlockPos pos = new BlockPos ( player . posX , player . posY , player . posZ ) ;
 for ( int y = environmentDimensions . yMin ; y <= environmentDimensions . yMax ; y ++ )
 {
 for ( int z = environmentDimensions . zMin ; z <= environmentDimensions . zMax ; z ++ )

Fixed weird rounding behaviour in y axis


<nb> public class ServletOutputStreamImpl extends ServletOutputStream implements Buff
 public ServletOutputStreamImpl ( long contentLength , final ServletRequestContext servletRequestContext ) {
 this . contentLength = contentLength ;
 this . underlyingConnectionChannel = servletRequestContext . getExchange ( ) . getConnection ( ) . getChannel ( ) . getSinkChannel ( ) ;
 - this . threadSetupAction = servletRequestContext . getDeployment ( ) . getServletContext ( ) . getDeployment ( ) . getThreadSetupAction ( ) ;
 + this . threadSetupAction = servletRequestContext . getDeployment ( ) . getThreadSetupAction ( ) ;
 this . servletRequestContext = servletRequestContext ;
 }

Fix some sillyness from last refactoring


<nb> public final class CompilationSupport {
 SINGLE
 SINGLE
 . addAll ( PathFragment . safePathStrings ( uniqueParentDirectories ( provider . get ( FRAMEWORK_DIR ) ) ) )
 - . addAll (
 - Interspersing . beforeEach (
 - STRING0 ,
 - PathFragment . safePathStrings (
 - uniqueParentDirectories ( provider . get ( FRAMEWORK_SEARCH_PATH_ONLY ) ) ) ) )
 + . addAll ( PathFragment . safePathStrings (
 + uniqueParentDirectories ( provider . get ( FRAMEWORK_SEARCH_PATH_ONLY ) ) ) )
 . build ( ) ;
 }

Remove one instance of F interspersing with framework linking


<nb> public class ConcurrentBroadcastTest {

 @ test ( timeOut = NUMBER0 , enabled = true )
 public void testConcurrentSuspendAndBroadcast ( ) {
 - logger . info ( STRING0 ) ;
 + logger . info ( STRING1 ) ;

 AsyncHttpClient c = new AsyncHttpClient ( ) ;
 Broadcaster b = null ;


<nb> public static Object macroexpand1 ( Object x ) throws Exception {
 SINGLE
 if ( sym . name . charAt ( NUMBER0 ) == STRING0 )
 {
 + if ( RT . length ( form ) < NUMBER1 )
 + throw new IllegalArgumentException ( STRING1 ) ;
 Symbol meth = Symbol . intern ( sname . substring ( NUMBER2 ) ) ;
 return RT . listStar ( DOT , RT . second ( form ) , meth , form . rest ( ) . rest ( ) ) ;
 }


<nb> public final class LongMath {
 @ beta
 public static long ceilingPowerOfTwo ( long x ) {
 checkPositive ( STRING0 , x ) ;
 - if ( x > ( NUMBER0 < < ( Long . SIZE - NUMBER1 ) ) ) {
 + if ( x > MAX_SIGNED_POWER_OF_TWO ) {
 throw new ArithmeticException ( STRING1 + x + STRING2 ) ;
 }
 return NUMBER0 < < - Long . numberOfLeadingZeros ( x - NUMBER2 ) ;

Fix a minor oversight in using a constant in LongMath for its intended purpose


<nb>
 package NAMESPACE ;

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

 @ mixin ( value = WorldServer . class , priority = NUMBER0 )
 public abstract class MixinWorldServer implements World , IMixinWorldServer {
 + @ shadow @ final public WorldProvider worldProvider ;
 +
 + @ override
 + public void setDimensionId ( int dimensionId ) {
 + throw new IllegalStateException ( STRING0 ) ;
 + }
 +
 + @ override
 + public int getDimensionId ( ) {
 + return this . worldProvider . getDimension ( ) ;
 + }

 @ override
 public SpongeChunkGenerator createChunkGenerator ( SpongeWorldGenerator newGenerator ) {


<nb> public final class PullToRefreshListActivity extends ListActivity {
 mPullRefreshListView . setOnRefreshListener ( new OnRefreshListener < ListView > ( ) {
 @ override
 public void onRefresh ( PullToRefreshBase < ListView > refreshView ) {
 - mPullRefreshListView . setLastUpdatedLabel ( DateUtils . formatDateTime ( getApplicationContext ( ) ,
 - System . currentTimeMillis ( ) , DateUtils . FORMAT_SHOW_TIME | DateUtils . FORMAT_SHOW_DATE
 - | DateUtils . FORMAT_ABBREV_ALL ) ) ;
 + String label = DateUtils . formatDateTime ( getApplicationContext ( ) , System . currentTimeMillis ( ) ,
 + DateUtils . FORMAT_SHOW_TIME | DateUtils . FORMAT_SHOW_DATE | DateUtils . FORMAT_ABBREV_ALL ) ;
 +
 + SINGLE
 + refreshView . getLoadingLayoutProxy ( ) . setLastUpdatedLabel ( label ) ;

 SINGLE
 new GetDataTask ( ) . execute ( ) ;


<nb> public class InferenceSession {
 return null ;
 }

 - private void collectAdditionalConstraints ( PsiParameter [ ] parameters ,
 - PsiExpression [ ] args ,
 - PsiMethod parentMethod ,
 - Set < ConstraintFormula > additionalConstraints ) {
 + private static void collectAdditionalConstraints ( PsiParameter [ ] parameters ,
 + PsiExpression [ ] args ,
 + PsiMethod parentMethod ,
 + Set < ConstraintFormula > additionalConstraints ) {
 for ( int i = NUMBER0 ; i < args . length ; i ++ ) {
 if ( args [ i ] != null ) {
 - PsiType parameterType = getParameterType ( parameters , args , i , mySiteSubstitutor ) ;
 + PsiType parameterType = getParameterType ( parameters , args , i , PsiSubstitutor . EMPTY ) ;
 if ( ! isPertinentToApplicability ( args [ i ] , parentMethod ) ) {
 additionalConstraints . add ( new ExpressionCompatibilityConstraint ( args [ i ] , parameterType ) ) ;
 }

do not apply substitution twice for additional constraints


<nb> public class PlayApplicationPlugin {
 } ) ;
 }

 - @ finalize
 + @ validate
 void failOnMultiplePlayComponents ( ComponentSpecContainer container ) {
 if ( container . withType ( PlayApplicationSpec . class ) . size ( ) >= NUMBER0 ) {
 throw new GradleException ( STRING0 ) ;

Changed play plugin to use Validate to verify that no more than one play application is defined for the project


<nb> public class BackupDeleteActivity extends BaseActivity {
 return new File ( Environment . getExternalStorageDirectory ( ) , STRING0 ) ;
 }

 - private File getBackupFolder ( ) {
 - return new File ( Environment . getExternalStorageDirectory ( ) , STRING0 ) ;
 - }
 -
 private class ExportDatabaseTask extends AsyncTask < Void , Void , String > {

 SINGLE


<nb> public class RunJar {
 File tmpDir = new File ( new Configuration ( ) . get ( STRING0 ) ) ;
 ensureDirectory ( tmpDir ) ;

 - final File workDir ;
 - try {
 - workDir = File . createTempFile ( STRING1 , STRING2 , tmpDir ) ;
 - } catch ( IOException ioe ) {
 - SINGLE
 - SINGLE
 - System . err . println ( STRING3
 - + tmpDir + STRING4 + ioe . getMessage ( ) ) ;
 - System . exit ( - NUMBER0 ) ;
 - return ;
 - }
 -
 + final File workDir = File . createTempFile ( STRING1 , STRING2 , tmpDir ) ;
 if ( ! workDir . delete ( ) ) {
 System . err . println ( STRING5 + workDir ) ;
 System . exit ( - NUMBER0 ) ;

Revert accidental change in previous commit


<nb> public interface FormattedAuditEvent {
 String action ( ) ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface FormattedAuditEvent {
 COMMENT
 COMMENT
 COMMENT
 - String formatString ( ) ;
 + String messageTemplate ( ) ;

 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Rename formatString to messageTemplate in FormattedAuditEvent


<nb> public class ArrayQueueOutOfOrderSequence implements OutOfOrderSequence
 while ( true )
 {
 int versionBefore = version ;
 - if ( versionBefore % NUMBER0 == NUMBER1 ) SINGLE
 + if ( ( versionBefore & NUMBER1 ) == NUMBER1 )
 { SINGLE
 continue ;
 }

Replaced modulo calc with bitmask for efficiency


<nb> public interface XMPPConnection {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void addSyncPacketListener ( PacketListener packetListener , PacketFilter packetFilter ) ;
 <nb> public interface XMPPConnection {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void addAsyncPacketListener ( PacketListener packetListener , PacketFilter packetFilter ) ;


<nb> public class MaterialCalendarView extends FrameLayout {
 buttonFuture . setEnabled ( canGoForward ( ) ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void setTileSize ( int size ) {
 LayoutParams p = new LayoutParams ( size * NUMBER0 , size * NUMBER1 ) ;
 p . gravity = Gravity . CENTER ;
 root . setLayoutParams ( p ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void setTileSizeDp ( int tileSizeDp ) {
 setTileSize ( ( int ) TypedValue . applyDimension (
 TypedValue . COMPLEX_UNIT_DIP , tileSizeDp , getResources ( ) . getDisplayMetrics ( )


<nb> public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca
 if ( f instanceof DashAudioVideoNotesFragment && ! f . isDetached ( ) ) {
 ( ( DashAudioVideoNotesFragment ) f ) . setupNotes ( ) ;
 }
 +
 + SINGLE
 + if ( f instanceof DashFavoritesFragment && ! f . isDetached ( ) ) {
 + ( ( DashFavoritesFragment ) f ) . updateLocation ( null ) ;
 + }
 }
 }

Try fix issue that DashFavoritesFragment is not reliably shown on non compass devices


<nb> public class DeepLearning extends Job . ValidatedJob {

 @ override protected void queryArgumentValueSet ( Argument arg , java . util . Properties inputArgs ) {
 super . queryArgumentValueSet ( arg , inputArgs ) ;
 + SINGLE
 if ( ! arg . _name . equals ( STRING0 )
 && ! arg . _name . equals ( STRING1 )
 && ! arg . _name . equals ( STRING2 )
 <nb> public class DeepLearning extends Job . ValidatedJob {
 throw new IllegalArgumentException ( STRING3 ) ;
 }
 final DeepLearning cp = cp_model . model_info ( ) . get_params ( ) ;
 - SINGLE
 SINGLE
 balance_classes = cp . balance_classes ;
 score_validation_sampling = cp . score_validation_sampling ;
 max_after_balance_size = cp . max_after_balance_size ;
 score_training_samples = cp . score_training_samples ;
 score_validation_samples = cp . score_validation_samples ;
 + shuffle_training_data = cp . shuffle_training_data ;
 + force_load_balance = cp . force_load_balance ;
 state = JobState . RUNNING ;
 return ;
 }

Use the same shuffling load balancing parameters as the checkpointed model when


<nb> public class EntityMentionsAnnotatorITest extends TestCase {
 SINGLE
 SINGLE
 SINGLE
 + SINGLE
 String [ ] expectedMentions = {
 STRING0 ,
 STRING1 ,
 - STRING2 ,
 - STRING3 ,
 + STRING4 ,
 + STRING5 ,
 STRING6 ,
 STRING7 ,
 STRING8 ,

Fix test to correspond to current NER output


<nb> public abstract class DefaultModuleConfigurationEditorFactory implements Applica

 public abstract ModuleConfigurationEditor createJavadocEditor ( ModuleConfigurationState state ) ;

 + public abstract ModuleConfigurationEditor createOutputEditor ( ModuleConfigurationState state ) ;
 +
 public static DefaultModuleConfigurationEditorFactory getInstance ( ) {
 return ApplicationManager . getApplication ( ) . getComponent ( DefaultModuleConfigurationEditorFactory . class ) ;
 }
 <nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class DefaultModuleConfigurationEditorFactoryImpl extends DefaultModuleCo
 return new JavadocEditor ( state . getProject ( ) , state . getRootModel ( ) ) ;
 }

 + public ModuleConfigurationEditor createOutputEditor ( ModuleConfigurationState state ) {
 + return new BuildElementsEditor ( state . getProject ( ) , state . getRootModel ( ) ) ;
 + }
 +
 + @ notnull
 public String getComponentName ( ) {
 return STRING0 ;
 }


<nb> public abstract class Model {
 public boolean equals ( Object obj ) {
 final Model other = ( Model ) obj ;

 - return this . mId != null && ( this . mTableInfo . getTableName ( ) == other . mTableInfo . getTableName ( ) )
 - && ( this . mId == other . mId ) ;
 + return this . mId != null && ( this . mTableInfo . getTableName ( ) . equals ( other . mTableInfo . getTableName ( ) ) )
 + && ( this . mId . equals ( other . mId ) ) ;
 }
 - }
 + }


<nb> public class WindowManagerService extends IWindowManager . Stub
 continue ;
 }

 + child . getVisibleBounds ( mTmpRect ) ;
 + if ( ! mTmpRect . contains ( x , y ) ) {
 + continue ;
 + }
 +
 child . getTouchableRegion ( mTmpRegion ) ;

 final int touchFlags = flags &


<nb> public final class ProxyManager {
 register ( serviceName , new ClientProxyFactory ( ) {
 @ override
 public ClientProxy create ( String id ) {
 - String instanceName = client . getName ( ) ;
 return instantiateClientProxy ( proxyType , serviceName , id ) ;
 }
 } ) ;


<nb> public abstract class Random {
 COMMENT
 COMMENT
 COMMENT
 - public double nextStandNormalDistrDouble ( ) {
 + public double nextGaussian ( ) {

 double q = Double . MAX_VALUE ;
 double u1 = NUMBER0 ;
 <nb> public class FloraGenerator implements FirstPassGenerator {
 COMMENT
 COMMENT
 COMMENT
 - double rand = random . nextStandNormalDistrDouble ( ) ;
 + double rand = random . nextGaussian ( ) ;

 if ( rand > - FLOAT0 && rand < FLOAT0 ) {
 c . setBlock ( x , y + NUMBER1 , z , tallGrass1 ) ;
 <nb> public class FloraGenerator implements FirstPassGenerator {
 COMMENT
 COMMENT
 COMMENT
 - if ( random . nextStandNormalDistrDouble ( ) < - NUMBER2 ) {
 + if ( random . nextGaussian ( ) < - NUMBER2 ) {
 c . setBlock ( x , y + NUMBER1 , z , random . nextItem ( flowers ) ) ;
 }
 }

Renamed Random nextStandNormalDistrDouble to nextGaussian


<nb> public class StandardWrapper extends ContainerBase

 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 @ override
 public void servletSecurityAnnotationScan ( ) throws ServletException {


<nb> import NAMESPACE ;
 import static NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class RuleDataMediumTest {

 <nb> public class DataStoreCleanup implements ServerComponent {
 public void clearIndexes ( ) {
 LOG . info ( STRING0 ) ;
 Client client = esNode . client ( ) ;
 - client . prepareDeleteByQuery (
 - client . admin ( ) . cluster ( ) . prepareState ( ) . get ( ) . getState ( ) . getMetaData ( ) . concreteAllIndices ( )
 - ) . setQuery ( QueryBuilders . matchAllQuery ( ) ) . get ( ) ;
 + client . prepareDeleteByQuery ( client . admin ( ) . cluster ( ) . prepareState ( ) . get ( )
 + . getState ( ) . getMetaData ( ) . concreteAllIndices ( ) )
 + . setQuery ( QueryBuilders . matchAllQuery ( ) )
 + . get ( ) ;

 }
 }


<nb> public class ImportTool
 {
 return new org . neo4j . unsafe . impl . batchimport . Configuration . Default ( )
 {
 + private static final int WRITE_BUFFER_SIZE_FOR_TEST = NUMBER0 * NUMBER0 * NUMBER1 ; SINGLE
 +
 @ override
 public int writeBufferSize ( )
 {
 - return defaultSettingsSuitableForTests ? NUMBER0 * NUMBER0 * NUMBER1 : super . writeBufferSize ( ) ;
 + return defaultSettingsSuitableForTests ? WRITE_BUFFER_SIZE_FOR_TEST : super . writeBufferSize ( ) ;
 }

 @ override

Pull constant expression into constant field


<nb> public final class LoadedApk {
 final String zip = mIncludeCode ? TextUtils . join ( File . pathSeparator , zipPaths ) : STRING0 ;
 final boolean isBundledApp = mApplicationInfo . isSystemApp ( )
 && ! mApplicationInfo . isUpdatedSystemApp ( ) ;
 - String libraryPermittedPath = mDataDir ;
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + String libraryPermittedPath = STRING1 ;
 if ( isBundledApp ) {
 SINGLE
 SINGLE
 libraryPermittedPath += File . pathSeparator +
 System . getProperty ( STRING2 ) ;
 }
 - SINGLE
 - SINGLE
 - SINGLE
 - if ( mApplicationInfo . targetSdkVersion <= NUMBER0 ) {
 - libraryPermittedPath += File . pathSeparator + STRING3 ;
 - }
 - SINGLE

 final String librarySearchPath = TextUtils . join ( File . pathSeparator , libPaths ) ;

Allow apps to load libraries from under data


<nb>
 package NAMESPACE ;

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

 import NAMESPACE ;
 import NAMESPACE ;


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

 - COMMENT
 - COMMENT
 - COMMENT
 public class DefaultSerializationDelegate implements SerializationDelegate {

 @ override
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public class GzipBridgeSerializationDelegate implements SerializationDelegate {

 <nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public class GzipSerializationDelegate implements SerializationDelegate {

 <nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public interface SerializationDelegate {


<nb> public class DefaultPassConfig extends PassConfig {
 COMMENT
 COMMENT
 final PassFactory exploitAssign =
 - new PassFactory ( STRING0 , true ) {
 + new PassFactory ( STRING1 , true ) {
 @ override
 protected CompilerPass createInternal ( AbstractCompiler compiler ) {
 return new PeepholeOptimizationsPass ( compiler ,
 <nb> public class DefaultPassConfig extends PassConfig {
 COMMENT
 COMMENT
 COMMENT
 - private static PassFactory createEmptyPass ( String name ) {
 + static PassFactory createEmptyPass ( String name ) {
 return new PassFactory ( name , true ) {
 @ override
 protected CompilerPass createInternal ( final AbstractCompiler compiler ) {


<nb> public final class FileSystemMaster extends MasterBase {
 public long scheduleAsyncPersistence ( long fileId ) throws FileDoesNotExistException {
 long workerId = scheduleAsyncPersistenceInternal ( fileId ) ;

 - SINGLE
 - AsyncPersistRequestEntry asyncPersistRequestEntry =
 - AsyncPersistRequestEntry . newBuilder ( ) . setFileId ( fileId ) . build ( ) ;
 - writeJournalEntry (
 - JournalEntry . newBuilder ( ) . setAsyncPersistRequest ( asyncPersistRequestEntry ) . build ( ) ) ;
 - flushJournal ( ) ;
 - return workerId ;
 + synchronized ( mInodeTree ) {
 + SINGLE
 + AsyncPersistRequestEntry asyncPersistRequestEntry =
 + AsyncPersistRequestEntry . newBuilder ( ) . setFileId ( fileId ) . build ( ) ;
 + writeJournalEntry (
 + JournalEntry . newBuilder ( ) . setAsyncPersistRequest ( asyncPersistRequestEntry ) . build ( ) ) ;
 + flushJournal ( ) ;
 + return workerId ;
 + }
 }

 private long scheduleAsyncPersistenceInternal ( long fileId ) throws FileDoesNotExistException {


<nb> public final class GsmCallTracker extends CallTracker {
 COMMENT
 COMMENT
 COMMENT
 - Connection
 + synchronized Connection
 dial ( String dialString , int clirMode , UUSInfo uusInfo ) throws CallStateException {
 SINGLE
 clearDisconnected ( ) ;
 <nb> public final class GsmCallTracker extends CallTracker {
 }
 }

 - protected void
 + protected synchronized void
 handlePollCalls ( AsyncResult ar ) {
 List polledCalls ;

Prevent dial return null in a racing condition


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class IBatisComponent extends ResourceBasedComponent {
 return sqlMapConfig ;
 }

 + public void setSqlMapConfig ( String sqlMapConfig ) {
 + this . sqlMapConfig = sqlMapConfig ;
 + }
 +
 public boolean isUseTransactions ( ) {
 return useTransactions ;
 }

Added a setter on iBatisComponent to configure the SqlMapConfig xml file where its to be loaded


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

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HdfsFileInputStream extends InputStream implements Seekable , Positi

 @ override
 public void readFully ( long position , byte [ ] buffer , int offset , int length ) throws IOException {
 - int nread = NUMBER0 ;
 - while ( nread < length ) {
 - int ret = read ( position + nread , buffer , offset + nread , length - nread ) ;
 + int n = NUMBER0 ; SINGLE
 + while ( n < length ) {
 + int ret = read ( position + n , buffer , offset + n , length - n ) ;
 if ( ret == - NUMBER1 ) {
 - return ;
 + throw new EOFException ( ) ;
 }
 - nread += ret ;
 + n += ret ;
 }
 }


<nb> public class WearableController {
 PutDataMapRequest dataMapRequest = PutDataMapRequest . create ( STRING0 ) ;
 dataMapRequest . getDataMap ( ) . putDataMap ( STRING1 , DataMap . fromBundle ( artwork . toBundle ( ) ) ) ;
 dataMapRequest . getDataMap ( ) . putAsset ( STRING2 , asset ) ;
 - Wearable . DataApi . putDataItem ( googleApiClient , dataMapRequest . asPutDataRequest ( ) ) . await ( ) ;
 + Wearable . DataApi . putDataItem ( googleApiClient , dataMapRequest . asPutDataRequest ( ) . setUrgent ( ) ) . await ( ) ;
 }
 googleApiClient . disconnect ( ) ;
 }

Ensure Android Wear wallpaper updates immediately


<nb> public class NewBlogFragment extends AbstractFragment implements TextWatcher {
 showError ( getString ( messageId ) ) ;
 }
 } ) ;
 + AppLog . i ( T . NUX , STRING0 + siteName + STRING1 + siteUrl ) ;
 createUserAndBlog . startCreateBlogProcess ( ) ;
 }

 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class NewUserFragment extends AbstractFragment implements TextWatcher {
 }
 }
 } ) ;
 + AppLog . i ( T . NUX , STRING2 + username + STRING3 + email
 + + STRING4 + siteName + STRING5 + siteUrl ) ;
 createUserAndBlog . startCreateUserAndBlogProcess ( ) ;
 }

Add logs when user creates new account site


<nb> public class GithubUtil {
 }
 catch ( Error e ) {
 exceptionRef . set ( new GithubOperationCanceledException ( e ) ) ;
 - throw e ;
 }
 catch ( RuntimeException e ) {
 exceptionRef . set ( new GithubOperationCanceledException ( e ) ) ;
 - throw e ;
 }
 }
 } ) ;


<nb> public abstract class Advapi32Util {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public static void registrySetBinaryValue ( HKEY root , String keyPath , String name , byte [ ] data ) {


<nb> class Clicker {
 if ( textMore != null )
 clickOnScreen ( textMore ) ;

 - clickOnText ( text , false , NUMBER0 , false , NUMBER1 ) ;
 + clickOnText ( text , false , NUMBER0 , true , NUMBER1 ) ;
 }

Modified clickOnMenuItem so that it scrolls


<nb> public class TestConfigurationServicePersistency extends TestCase
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public void testReLoadConfiguration ( ) throws Exception
 {
 <nb> public class TestConfigurationServicePersistency extends TestCase
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public void testStoreConfiguration ( ) throws Exception
 {


<nb> public class TezRuntimeEnvironment {
 public TezRuntimeEnvironment ( long totalMemory ) {
 int pageSize = DEFAULT_PAGE_SIZE ;
 int numSlots = DEFAULT_NUM_SLOTS ;
 - this . memoryManager = new DefaultMemoryManager ( totalMemory , numSlots , pageSize ) ;
 + this . memoryManager = new DefaultMemoryManager ( totalMemory , numSlots , pageSize , true ) ;
 this . ioManager = new IOManagerAsync ( ) ;
 }

tez Fix Flink on Tez use of pre allocating MemoryManager


<nb> public class ODatabaseObjectTx extends ODatabaseWrapperAbstract < ODatabaseDocumen
 return underlying . getHooks ( ) ;
 }

 - public < DB extends ODatabaseRecord < ? > > DB registerHook ( ORecordHook iHookImpl ) {
 - return underlying . registerHook ( iHookImpl ) ;
 + public < DB extends ODatabaseRecord < ? > > DB registerHook ( final ORecordHook iHookImpl ) {
 + return ( DB ) underlying . registerHook ( iHookImpl ) ;
 }

 - public < DB extends ODatabaseRecord < ? > > DB unregisterHook ( ORecordHook iHookImpl ) {
 - return underlying . unregisterHook ( iHookImpl ) ;
 + public < DB extends ODatabaseRecord < ? > > DB unregisterHook ( final ORecordHook iHookImpl ) {
 + return ( DB ) underlying . unregisterHook ( iHookImpl ) ;
 }

 public void callbackHooks ( final TYPE iType , final Object iObject ) {


<nb> public class ClusterSettingsIT extends ESIntegTestCase {
 }
 }

 + @ awaitsfix ( bugUrl = STRING0 )
 public void testLoggerLevelUpdate ( ) {
 assertAcked ( prepareCreate ( STRING1 ) ) ;
 final IllegalArgumentException e =

Mark CSIT testLoggerLevelUpdate as awaits fix


<nb> public final class MapIndexStorage < Key , Value > implements IndexStorage < Key , Valu
 return ;
 }

 - ChangeTrackingValueContainer < Value > cached = myCache . getIfCached ( key ) ;
 + ChangeTrackingValueContainer < Value > cached ;
 + try {
 + l . lock ( ) ;
 + cached = myCache . getIfCached ( key ) ;
 + } finally {
 + l . unlock ( ) ;
 + }
 +
 if ( cached != null ) {
 cached . addValue ( inputId , value ) ;
 return ;

protect myCache access with lock as in other usages


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

 + SINGLE

 - SINGLE
 + SINGLE

 - SINGLE
 + SINGLE
 + SINGLE

 - SINGLE
 + SINGLE

 - SINGLE
 + SINGLE

 + SINGLE

 public class SshKeyChooser extends Composite
 {


<nb> public abstract class Layer extends Iced {
 static final int API_WEAVER = NUMBER0 ;
 public static DocGen . FieldDoc [ ] DOC_FIELDS ;

 - public final void init ( Layer [ ] ls , int index , NeuralNet p , NeuralNet . Loss l ) {
 - super . init ( ls , index , p ) ;
 - }
 -
 protected final long pos ( ) {
 return _input . _pos ;
 }


<nb> public class ChunkDataWidget extends SimplePanel
 pagedTableSource . setAttribute ( STRING0 , STRING1 ) ;
 pagedTableSource . setAttribute ( STRING2 , STRING3 ) ;

 + var originalOptions = JSON . parse ( JSON . stringify ( data . options ) ) ;
 if ( fullSize ) {
 data . options . rows . min = NUMBER0 ;
 data . options . rows . max = null ;
 <nb> public class ChunkDataWidget extends SimplePanel
 pagedTableSource . appendChild ( $doc . createTextNode ( JSON . stringify ( data ) ) )
 pagedTable . appendChild ( pagedTableSource ) ;

 + data . options = originalOptions ;
 +
 var pagedTableInstance = new PagedTable ( pagedTable ) ;

 var chunkWidget = this ;
 <nb> import NAMESPACE ;

 public class ChunkSatellite extends SatelliteApplication
 {
 - SINGLE
 - SINGLE
 public static final String NAME_PREFIX = STRING4 ;

 public ChunkSatellite ( String name )

preserve original pagedtable option to avoid changing preview gallery thumbnail


<nb> public class PythonAllTestsSuite {
 public static final Class [ ] tests = {
 PythonLexerTest . class ,
 PyStringLiteralLexerTest . class ,
 + CythonLexerTest . class ,
 PyStringFormatParserTest . class ,
 PyEncodingTest . class ,
 PythonParsingTest . class ,


<nb> public class LocalVarRemapper {
 SINGLE
 if ( SHIFT == info . status ) {
 int newIndex = ( ( StackValue . Local ) info . value ) . index ;
 - if ( newIndex != NUMBER0 && STRING0 . equals ( name ) ) {
 - COMMENT
 - return ;
 - }
 mv . visitLocalVariable ( name , desc , signature , start , end , newIndex ) ;
 }
 }


<nb> import NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PeopleManagementActivity extends AppCompatActivity {

 @ override
 public void onError ( VolleyError error ) {
 + SINGLE
 + }

 + @ override
 + public void onJSONException ( JSONException exception ) {
 + SINGLE
 }
 } ) ;
 }
 <nb> public class PeopleUtils {
 }
 catch ( JSONException e ) {
 AppLog . e ( T . API , STRING0 + e ) ;
 + if ( callback != null ) {
 + callback . onJSONException ( e ) ;
 + }
 }
 }
 }
 <nb> public class PeopleUtils {
 void onSuccess ( ) ;

 void onError ( VolleyError error ) ;
 +
 + void onJSONException ( JSONException e ) ;
 }
 }

Adds onJSONException to PeopleUtils Callback


<nb> public class ShaderParametersDebug extends ShaderParametersBase {
 DefaultRenderingProcess . getInstance ( ) . bindFboTexture ( STRING0 ) ;
 program . setInt ( STRING1 , texId ++ , true ) ;
 break ;
 - case VOLUMETRIC_LIGHTING : L :
 + case VOLUMETRIC_LIGHTING :
 GL13 . glActiveTexture ( GL13 . GL_TEXTURE0 + texId ) ;
 DefaultRenderingProcess . getInstance ( ) . bindFboTexture ( STRING2 ) ;
 program . setInt ( STRING1 , texId ++ , true ) ;

Fixed typo which lead to the creation of a label


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 @ runwith ( MavenJUnitTestRunner . class )
 - @ maveninstallations ( { STRING0 } )
 @ mavenversions ( { STRING1 , STRING2 } )
 public class LintMojoIntegrationTest
 {

removed unneeded annotation for test exec


<nb> public class WebSettings {
 private boolean mDatabaseEnabled = false ;
 private String mAppCachePath = STRING0 ;
 private boolean mAppCacheEnabled = false ;
 + private long mAppCacheMaxSize = Long . MAX_VALUE ;
 private boolean mDomStorageEnabled = false ;

 SINGLE
 <nb> public class WebSettings {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public synchronized void setAppCacheMaxSize ( long appCacheMaxSize ) {
 + if ( appCacheMaxSize != mAppCacheMaxSize ) {
 + mAppCacheMaxSize = appCacheMaxSize ;
 + postSync ( ) ;
 + }
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class Entry {

 String hour ;
 String description ;
 - String color ;

 public Entry ( String hour ) {
 this . hour = hour ;
 <nb> import NAMESPACE ;

 public class JspCalendar {
 Calendar calendar = null ;
 - Date currentDate ;

 public JspCalendar ( ) {
 calendar = Calendar . getInstance ( ) ;


<nb> public class GitBranchTrackInfo {
 return myRemoteBranch ;
 }

 - public boolean isMerge ( ) {
 - return myMerge ;
 - }
 -
 @ override
 public String toString ( ) {
 - return String . format ( STRING0 , myLocalBranch . getName ( ) , myRemoteBranch . getName ( ) , myMerge ) ;
 + return String . format ( STRING1 , myLocalBranch . getName ( ) , myRemoteBranch . getName ( ) ) ;
 }

 @ suppresswarnings ( STRING2 ) SINGLE

remove unused method don t display merge param in toString until it is used


<nb> public class TestXxxEndpoint extends TomcatBaseTest {
 SINGLE
 int family = Socket . APR_INET ;
 if ( Library . APR_HAVE_IPV6 ) {
 - if ( address == null ) {
 - if ( ! OS . IS_BSD && ! OS . IS_WIN32 && ! OS . IS_WIN64 )
 - family = Socket . APR_UNSPEC ;
 - } else if ( address . indexOf ( STRING0 ) >= NUMBER0 ) {
 + if ( ! OS . IS_BSD && ! OS . IS_WIN32 && ! OS . IS_WIN64 )
 family = Socket . APR_UNSPEC ;
 - }
 }

 long inetAddress = NUMBER0 ;


<nb> public class ExternalPlayerFragment extends Fragment {
 . into ( imgvCover ) ;

 fragmentLayout . setVisibility ( View . VISIBLE ) ;
 - SINGLE
 - if ( controller . isPlayingVideo ( ) ) {
 + if ( controller . isPlayingVideoLocally ( ) ) {
 butPlay . setVisibility ( View . GONE ) ;
 } else {
 butPlay . setVisibility ( View . VISIBLE ) ;
 <nb> public abstract class PlaybackController {
 }
 }

 - SINGLE
 - public boolean isPlayingVideo ( ) {
 - return playbackService != null && PlaybackService . getCurrentMediaType ( ) == MediaType . VIDEO ;
 + public boolean isPlayingVideoLocally ( ) {
 + return playbackService != null && PlaybackService . getCurrentMediaType ( ) == MediaType . VIDEO
 + && ! PlaybackService . isCasting ( ) ;
 }

 public Pair < Integer , Integer > getVideoSize ( ) {

have external player fragment show play button if casting


<nb> public class PrivacyManager {
 logRestriction ( hook , context , uid , STRING0 , restrictionName , methodName , restricted , false , NUMBER0 ) ;

 SINGLE
 - if ( restricted )
 + if ( restricted && methodName == null )
 for ( String dMethodName : getMethods ( restrictionName ) )
 if ( isDangerousMethod ( restrictionName , dMethodName ) )
 PrivacyManager . setRestricted ( null , context , uid , restrictionName , dMethodName , false ) ;


<nb> public class InstanceofExpressionPostfixTemplate extends PostfixTemplate {
 String type = STRING0 ;
 template . addVariable ( type , expr , expr , true ) ;
 template . addTextSegment ( STRING1 ) ;
 - template . addVariable ( type , expr , expr , true ) ;
 + template . addVariableSegment ( type ) ;
 template . addTextSegment ( STRING2 + exprText + STRING2 ) ;
 template . addEndVariable ( ) ;
 template . addTextSegment ( STRING3 ) ;

Replace instanceof template variable with variable segment


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class KotlinCompileMojoBase extends AbstractMojo {
 classpathList . remove ( runtime ) ;
 }

 - final String classPathString = Joiner . on ( File . pathSeparator ) . join ( classpathList ) ;
 - log . info ( STRING0 + classPathString ) ;
 - arguments . setClasspath ( classPathString ) ;
 + if ( classpathList . size ( ) > NUMBER0 ) {
 + final String classPathString = Joiner . on ( File . pathSeparator ) . join ( classpathList ) ;
 + log . info ( STRING0 + classPathString ) ;
 + arguments . setClasspath ( classPathString ) ;
 + }

 log . info ( STRING1 + output ) ;
 arguments . setOutputDir ( output ) ;


<nb> public class FeedDAO extends GenericDAO < Feed > {
 Root < Feed > root = query . from ( getType ( ) ) ;

 query . select ( builder . count ( root ) ) ;
 -
 - List < Predicate > preds = getUpdatablePredicates ( root ) ;
 - preds . add ( builder . lessThanOrEqualTo ( root . get ( Feed_ . errorCount ) , NUMBER0 ) ) ;
 - query . where ( preds . toArray ( new Predicate [ NUMBER1 ] ) ) ;
 + query . where ( getUpdatablePredicates ( root ) . toArray ( new Predicate [ NUMBER1 ] ) ) ;

 TypedQuery < Long > q = em . createQuery ( query ) ;
 return q . getSingleResult ( ) ;


<nb> public class ListViewActivity extends BaseSampleActivity {

 SINGLE
 mPullToRefreshLayout . setRefreshComplete ( ) ;
 - SINGLE
 - setListShown ( true ) ;
 +
 + if ( getView ( ) != null ) {
 + SINGLE
 + setListShown ( true ) ;
 + }
 }
 } . execute ( ) ;
 }
 <nb> public class ListViewActivity extends BaseSampleActivity {

 SINGLE
 mPullToRefreshLayout . setRefreshComplete ( ) ;
 - SINGLE
 - setListShown ( true ) ;
 +
 + if ( getView ( ) != null ) {
 + SINGLE
 + setListShown ( true ) ;
 + }
 }
 } . execute ( ) ;
 }
 <nb> public class ListViewActivity extends BaseSampleActivity {

 SINGLE
 mPullToRefreshLayout . setRefreshComplete ( ) ;
 - SINGLE
 - setListShown ( true ) ;
 +
 + if ( getView ( ) != null ) {
 + SINGLE
 + setListShown ( true ) ;
 + }
 }
 } . execute ( ) ;
 }


<nb> public class MapRenderingTypes {
 if ( targetTag != null || targetValue != null ) {
 if ( targetTag == null ) {
 targetTag = rtype . getTag ( ) ;
 + } else {
 + targetTag = tag ;
 }
 if ( targetValue == null ) {
 targetValue = rtype . getValue ( ) ;


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

 + SINGLE
 +
 COMMENT
 COMMENT
 COMMENT


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

 public interface DynamicBpmnConstants {


<nb> package NAMESPACE ;

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

 <nb> import NAMESPACE ;
 public class Platform {
 private static final Platform PLATFORM = findPlatform ( ) ;

 - private Constructor < DeflaterOutputStream > deflaterConstructor ;
 -
 public static Platform get ( ) {
 return PLATFORM ;
 }


<nb> public class ViewFlow extends AdapterView < Adapter > {
 }
 }

 + @ override protected float getTopFadingEdgeStrength ( ) {
 + return FLOAT0 ;
 + }
 +
 + @ override protected float getBottomFadingEdgeStrength ( ) {
 + return FLOAT0 ;
 + }
 +
 + @ override protected float getLeftFadingEdgeStrength ( ) {
 + SINGLE
 + return FLOAT1 ;
 + }
 +
 + @ override protected float getRightFadingEdgeStrength ( ) {
 + SINGLE
 + return FLOAT1 ;
 + }
 +
 @ override
 public boolean onInterceptTouchEvent ( MotionEvent ev ) {
 if ( getChildCount ( ) == NUMBER0 )


<nb> public class RestrictedLockUtils {
 if ( userId != other . userId ) {
 return false ;
 }
 - if ( ( component == null && other == null ) ||
 - ( component != null && component . equals ( other ) ) ) {
 + if ( ( component == null && other . component == null ) ||
 + ( component != null && component . equals ( other . component ) ) ) {
 return true ;
 }
 return false ;

Fix call to equals that could never succeed


<nb> public class ClassInstanceCreation extends Expression {
 public ClassInstanceCreation ( ClassInstanceCreation other ) {
 super ( other ) ;
 methodBinding = other . getMethodBinding ( ) ;
 + hasRetainedResult = other . hasRetainedResult ( ) ;
 expression . copyFrom ( other . getExpression ( ) ) ;
 type . copyFrom ( other . getType ( ) ) ;
 arguments . copyFrom ( other . getArguments ( ) ) ;

Fix ClassInstanceCreation s copy constructor


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 public class BannerComponent extends javax . swing . JPanel {

 private String selectedPerspective ;
 + private static final String SELECTED_PERSPECTIVE_PREFERENCE = STRING0 ;
 private transient JToggleButton [ ] buttons ;

 public BannerComponent ( ) {
 initComponents ( ) ;

 + selectedPerspective = NbPreferences . forModule ( BannerComponent . class ) . get ( SELECTED_PERSPECTIVE_PREFERENCE , null ) ;
 +
 addGroupTabs ( ) ;

 logoButton . addActionListener ( new ActionListener ( ) {
 <nb> public class BannerComponent extends javax . swing . JPanel {
 }

 selectedPerspective = perspective . getName ( ) ;
 + NbPreferences . forModule ( BannerComponent . class ) . put ( SELECTED_PERSPECTIVE_PREFERENCE , selectedPerspective ) ;
 }
 } ) ;
 perspectivesButtonGroup . add ( toggleButton ) ;


<nb> public class ConnectionManager {
 }

 private void handshakeFailure ( ContextImpl context , Channel ch , Throwable cause , Waiter waiter ) {
 - cause . printStackTrace ( ) ;
 SSLHandshakeException sslException = new SSLHandshakeException ( STRING0 ) ;
 if ( cause != null ) {
 sslException . initCause ( cause ) ;

Forgot to remove this spurious code thanks Alex


<nb> public final class Metadata {
 COMMENT
 COMMENT
 public < T > Iterable < T > getAll ( final Key < T > key ) {
 +
 if ( containsKey ( key ) ) {
 return Iterables . transform (
 store . get ( key . name ( ) ) ,
 <nb> public final class Metadata {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class Tensor extends DoubleMatrix implements Serializable {
 }

 - public DoubleMatrix sliceRowSums ( ) {
 + public Tensor sliceRowSums ( ) {
 Tensor ret = new Tensor ( rows ( ) , columns ( ) , slices ) ;
 for ( int i = NUMBER0 ; i < slices ( ) ; i ++ ) {
 DoubleMatrix rowSums = getSlice ( i ) . rowSums ( ) ;
 <nb> public class ConvolutionalRBM extends RBM {
 SINGLE
 private Tensor hidI ;
 private Tensor W ;
 - private int [ ] stride ;
 + private int [ ] stride = { NUMBER1 , NUMBER1 } ;

 protected ConvolutionalRBM ( ) {


<nb> public class Jetty7CometSupport extends AsynchronousProcessor {
 } catch ( Throwable t ) {
 SINGLE
 logger . trace ( STRING0 , t ) ;
 + return ;
 }
 }
 }


<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
 checkedStateChanged = true ;
 } else if ( mChoiceMode == CHOICE_MODE_SINGLE ) {
 boolean checked = ! mCheckStates . get ( position , false ) ;
 - mCheckStates . clear ( ) ;
 if ( checked ) {
 + mCheckStates . clear ( ) ;
 mCheckStates . put ( position , true ) ;
 if ( mCheckedIdStates != null && mAdapter . hasStableIds ( ) ) {
 mCheckedIdStates . clear ( ) ;

Fix regression in AbsListView CHOICE_MODE_SINGLE


<nb> public class SafeTimeTracker {
 if ( world == null )
 return false ;

 - long currentTime = world . getWorldTime ( ) ;
 + long currentTime = world . getTotalWorldTime ( ) ;

 if ( currentTime < lastMark ) {
 lastMark = currentTime ;
 <nb> public class SafeTimeTracker {
 }

 public void markTime ( World world ) {
 - lastMark = world . getWorldTime ( ) ;
 + lastMark = world . getTotalWorldTime ( ) ;
 }
 }


<nb> public class ASTHelpers {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add caveat to ASTHelpers resolveExistingMethod


<nb> public class VersionOneProtocolChannelReceiver implements Channel . Receiver , Depl

 @ override
 public void groupMembershipNotifierUnregistered ( final GroupMembershipNotifier groupMembershipNotifier ) {
 - try {
 - logger . debug ( STRING0 + groupMembershipNotifier . getGroupName ( ) ) ;
 - this . sendClusterRemovedMessage ( groupMembershipNotifier ) ;
 - } catch ( IOException ioe ) {
 - logger . warn ( STRING1 + groupMembershipNotifier . getGroupName ( )
 - + STRING2 + channel , ioe ) ;
 - }
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 }

 private void sendNewClusterFormedMessage ( final Iterable < GroupMembershipNotifier > groupMembershipNotifiers ) throws IOException {

Fix spurious cluster removal messages being sent from server to remote EJB client


<nb> public class MainActivity extends MapActivity
 private volatile boolean prepareInProgress = false ;
 private volatile boolean shortestPathRunning = false ;
 private String currentArea = STRING0 ;
 - private String fileListURL = STRING1 + Constants . VERSION + STRING2 ;
 + private String fileListURL = STRING3 ;
 private String prefixURL = fileListURL ;
 private String downloadURL ;
 private String mapsFolder ;


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class TipUIUtil {
 private static final String TIP_HTML_TEXT_TAGS = STRING0 ;

 private static void adjustFontSize ( StyleSheet styleSheet ) {
 - float scale = ( float ) UISettings . getInstance ( ) . FONT_SIZE / UIUtil . getSystemFontData ( ) . getSecond ( ) ;
 + Pair < String , Integer > systemFontData = UIUtil . getSystemFontData ( ) ;
 + float scale = systemFontData == null ? NUMBER0 : ( float ) UISettings . getInstance ( ) . FONT_SIZE / systemFontData . getSecond ( ) ;
 if ( scale <= NUMBER1 ) return ; SINGLE

 SINGLE


<nb> public abstract class AbstractUsernamePasswordAuthenticationHandler extends
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class AbstractUsernamePasswordAuthenticationHandler extends
 COMMENT
 COMMENT
 COMMENT
 - protected abstract HandlerResult authenticateUsernamePasswordInternal ( final UsernamePasswordCredential credential )
 + protected abstract HandlerResult authenticateUsernamePasswordInternal ( final UsernamePasswordCredential transformedCredential )
 throws GeneralSecurityException , PreventedException ;

 COMMENT


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class MainThreadSpec implements ThreadSpec {
 + class MainThreadSpec implements ThreadSpec {

 MainThreadSpec ( ) {
 }
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class WorkerThreadSpec implements ThreadSpec {
 + class WorkerThreadSpec implements ThreadSpec {

 private final Handler handler ;

Reduce thread spec implementations visiblity


<nb> public class MacMainFrameDecorator extends IdeFrameDecorator implements UISettin
 }
 } ;

 + @ suppresswarnings ( STRING0 )
 public static final Function < Object , Boolean > NAVBAR_GETTER = new Function < Object , Boolean > ( ) {
 @ override
 public Boolean fun ( Object o ) {
 <nb> public class MacMainFrameDecorator extends IdeFrameDecorator implements UISettin
 }
 } ;

 + @ suppresswarnings ( STRING0 )
 public static final Function < Object , Boolean > TOOLBAR_GETTER = new Function < Object , Boolean > ( ) {
 @ override
 public Boolean fun ( Object o ) {

suppress to workaround javac bug with fields with lambda initializers


<nb> public class Constants {
 public static final int DEFAULT_MASTER_MAX_WORKER_THREADS = NUMBER0 ;
 public static final int DEFAULT_WORKER_MAX_WORKER_THREADS = NUMBER0 ;

 - public static final int DEFAULT_USER_FAILED_SPACE_REQUEST_LIMITS = NUMBER1 ;
 + public static final int DEFAULT_USER_FAILED_SPACE_REQUEST_LIMITS = NUMBER2 ;

 public static final int DEFAULT_BLOCK_SIZE_BYTE = NUMBER3 * MB ;

 public static final int DEFAULT_CHECKPOINT_CAP_MB_SEC = NUMBER4 ;

 public static final int WORKER_BLOCKS_QUEUE_SIZE = NUMBER5 ;
 -
 +
 public static final int DEFAULT_HOST_RESOLUTION_TIMEOUT_MS = NUMBER6 ;

 public static final String LOGGER_TYPE = System . getProperty ( STRING0 , STRING1 ) ;
 <nb> public class Constants {
 public static final String USER_REMOTE_BLOCK_READER = STRING2 ;
 public static final Class < ? extends RemoteBlockReader > USER_REMOTE_BLOCK_READER_CLASS =
 tachyon . client . tcp . TCPRemoteBlockReader . class ;
 -
 +
 }

make DEFAULT_USER_FAILED_SPACE_REQUEST_LIMITS consistent with the document


<nb> public final class FileSystemMaster extends AbstractMaster {
 try {
 long fileId = ( ( AsyncPersistRequestEntry ) innerEntry ) . getFileId ( ) ;
 scheduleAsyncPersistenceInternal ( fileId ) ;
 + SINGLE
 mAsyncPersistHandler . scheduleAsyncPersistence ( getPath ( fileId ) ) ;
 } catch ( AlluxioException e ) {
 throw new RuntimeException ( e ) ;
 <nb> public final class FileSystemMaster extends AbstractMaster {
 JournalEntry . newBuilder ( ) . setAsyncPersistRequest ( asyncPersistRequestEntry ) . build ( ) ) ;
 flushJournal ( ) ;
 }
 + SINGLE
 mAsyncPersistHandler . scheduleAsyncPersistence ( path ) ;
 }

 <nb> public interface AsyncPersistHandler {

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 @ threadsafe
 class Factory {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static AsyncPersistHandler create ( Configuration conf , FileSystemMasterView view ) {
 try {
 return CommonUtils . createNewClassInstance (

Addressing a review comment and a minor fix


<nb> public class PullToRefreshLayout extends FrameLayout {
 values . recycle ( ) ;
 }

 + public PullToRefreshAttacher getAttacher ( ) {
 + return mAttacher ;
 + }
 +
 + public static PullToRefreshAttacher getAttacher ( Activity activity , int layoutId ) {
 + PullToRefreshLayout layout = ( PullToRefreshLayout ) activity . findViewById ( layoutId ) ;
 + if ( layout != null ) {
 + return layout . getAttacher ( ) ;
 + }
 + return null ;
 + }
 +
 @ override
 public void addView ( View child , int index , ViewGroup . LayoutParams params ) {
 if ( getChildCount ( ) == NUMBER0 ) {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ModelParser extends XmlRecursiveElementVisitor {
 }
 } ) ;

 + XmlFile xmlFile = container . getRoot ( ) . getClientProperty ( XML_FILE_KEY ) ;
 + PsiDocumentManager psiDocumentManager = PsiDocumentManager . getInstance ( xmlFile . getProject ( ) ) ;
 + psiDocumentManager . commitDocument ( psiDocumentManager . getDocument ( xmlFile ) ) ;
 +
 PropertyParser propertyParser = container . getRoot ( ) . getClientProperty ( PropertyParser . KEY ) ;
 propertyParser . load ( movedComponent ) ;
 }

commit PSI to document after move XmlTag


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - interface Defn
 + public interface Defn
 {
 COMMENT
 String PARAMETER_PATTERN_PROP = STRING0 ;

Made Defn public so it can be reference outside the package


<nb>
 package NAMESPACE ;

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

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

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

 @ lock ( LockType . WRITE )
 public void add ( Feed feed ) {
 + Date now = Calendar . getInstance ( ) . getTime ( ) ;
 + Date tenMinutesAgo = DateUtils . addMinutes ( now , - NUMBER0 ) ;
 + if ( feed . getLastUpdated ( ) == null
 + || feed . getLastUpdated ( ) . before ( tenMinutesAgo ) ) {
 + feed . setEtagHeader ( null ) ;
 + feed . setLastModifiedHeader ( null ) ;
 + }
 +
 queue . add ( feed ) ;
 feed . setLastUpdated ( Calendar . getInstance ( ) . getTime ( ) ) ;
 feedDAO . update ( feed ) ;

force feed refresh if updated more than ten minutes ago


<nb> public class TxManager extends AbstractTransactionManager implements Lifecycle
 txThreadMap = new ConcurrentHashMap < Thread , TransactionImpl > ( ) ;
 SINGLE
 Iterable < List < TxLog . Record > > knownDanglingRecordList = txLog . getDanglingRecords ( ) ;
 -
 - log . info ( STRING0 +
 - STRING1 + txLogDir ) ;
 + if ( knownDanglingRecordList . iterator ( ) . hasNext ( ) )
 + log . info ( STRING0 +
 + STRING1 + txLogDir ) ;

 log . logMessage ( STRING2 + txLog . getName ( ) , true ) ;

Only prints the recovery message if it found dangling tx log records


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TableVisitorTest {

 private ParsedStatement stmt ;

 + @ rule
 + public ExpectedException expectedException = ExpectedException . none ( ) ;

 private ParsedStatement execStatement ( String stmt ) throws StandardException {
 return execStatement ( stmt , new Object [ ] { } ) ;
 <nb> public class TableVisitorTest {
 assertNotNull ( stmt . buildCreateIndexRequest ( ) ) ;
 }

 +
 + @ test
 + public void testCreateTableThrowUnsupportedTypeException ( ) throws Exception {
 + expectedException . expect ( SQLParseException . class ) ;
 + expectedException . expectMessage ( STRING0 ) ;
 + execStatement ( STRING1 ) ;
 + }
 }

added regression test for create table with unsupported type


<nb> public abstract class RequestResultProcessor {
 public boolean execute ( PsiElement element , int offsetInElement , final Processor < PsiReference > consumer ) {
 for ( PsiReference ref : element . getReferences ( ) ) {
 if ( ReferenceRange . containsOffsetInElement ( ref , offsetInElement ) ) {
 - return processReference ( consumer , ref ) ;
 + if ( ! processReference ( consumer , ref ) ) {
 + return false ;
 + }
 }
 }
 return true ;


<nb>

 package NAMESPACE ;

 + import static NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Matchers {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static < T extends Tree > Matcher < T > isSubtypeOf ( Class < ? > clazz ) {
 + return new IsSubtypeOf < > ( typeFromClass ( clazz ) ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public abstract class TypedNotationParser < N , T > implements NotationParser < T > {
 return parseType ( typeToken . cast ( notation ) ) ;
 }

 - abstract public T parseType ( N notation ) ;
 + abstract protected T parseType ( N notation ) ;
 }

Reduced visibility as clients should not really call that method


<nb> public class S3UnderFileSystem extends UnderFileSystem {
 if ( key . startsWith ( PATH_SEPARATOR ) ) {
 return key . substring ( PATH_SEPARATOR . length ( ) ) ;
 }
 - LOG . warn ( STRING0 + key ) ;
 return key ;
 }
 }


<nb> public class RecoveryTests extends CrateIntegrationTest {
 assertThat ( length , greaterThanOrEqualTo ( NUMBER0 ) ) ;
 }

 + for ( Thread writer : writers ) {
 + writer . join ( NUMBER1 ) ;
 + }
 }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class Json {
 private static final boolean debug = false ;


<nb> public class NonBlockingHashMap < TypeK , TypeV >
 SINGLE
 SINGLE
 private static final int reprobe_limit ( int len ) {
 - return REPROBE_LIMIT + ( len > > NUMBER0 ) ;
 + return REPROBE_LIMIT + ( len > > NUMBER1 ) ;
 }

 SINGLE
 <nb> public class NonBlockingHashMap < TypeK , TypeV >
 long tm = System . currentTimeMillis ( ) ;
 long q = NUMBER2 ;
 if ( newsz <= oldlen && SINGLE
 - tm <= topmap . _last_resize_milli + NUMBER3 && SINGLE
 - ( q = _slots . estimate_get ( ) ) >= ( sz < < NUMBER4 ) ) SINGLE
 + ( tm <= topmap . _last_resize_milli + NUMBER3 || SINGLE
 + ( q = _slots . estimate_get ( ) ) >= ( sz < < NUMBER4 ) ) ) SINGLE
 newsz = oldlen < < NUMBER4 ; SINGLE

 SINGLE


<nb> public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS
 updateSearchAppIcon ( ) ;
 updateSearchBadge ( ) ;
 updateQueryHint ( ) ;
 + mSearchAutoComplete . showDropDownAfterLayout ( ) ;
 }
 }

Redraw search autocomplete dropdown after config change


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

Changed javadoc to reflect current HandlerExceptionResolvers


<nb> public interface TypeWriter < T > {
 COMMENT
 private Implementation . Context . ExtractableView . InjectedCode injectedCode ;

 - private boolean supportsBridges ;
 + private Boolean supportsBridges ;

 COMMENT
 COMMENT
 <nb> public interface TypeWriter < T > {
 STRING0 + declaredFields +
 STRING1 + declarableMethods +
 STRING2 + injectedCode +
 + STRING3 + supportsBridges +
 STRING4 ;
 }


<nb> public class MetricExportAutoConfiguration {

 Map < String , MetricWriter > writers = new HashMap < String , MetricWriter > ( ) ;

 - MetricReader reader = endpointReader ;
 - if ( reader == null && ! this . readers . isEmpty ( ) ) {
 + MetricReader reader = this . endpointReader ;
 + if ( reader == null && this . readers != null && ! this . readers . isEmpty ( ) ) {
 reader = new CompositeMetricReader ( this . readers . toArray ( new MetricReader [ NUMBER0 ] ) ) ;
 }

Gracefully handle null readers in MetricExportAutoConfiguration


<nb> public class IOUtils {
 } catch ( Throwable t ) {
 try {
 return Class . forName ( className ) ;
 - } catch ( Throwable t2 ) {
 + } catch ( Exception t2 ) {
 if ( thisClass != null ) {
 return thisClass . getClassLoader ( ) . loadClass ( className ) ;
 }


<nb> public class TestUpgrade extends TomcatBaseTest {
 Socket socket =
 SocketFactory . getDefault ( ) . createSocket ( STRING0 , getPort ( ) ) ;

 - socket . setSoTimeout ( NUMBER0 ) ;
 + socket . setSoTimeout ( NUMBER1 ) ;

 UpgradeConnection uc = new UpgradeConnection ( socket ) ;

Revert extension of timeout for debug purposes


<nb> import NAMESPACE ;

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

 import NAMESPACE ;
 <nb> public class PatternRuleLoader extends DefaultHandler {
 public List getRules ( String filename ) throws ParserConfigurationException , SAXException , IOException {
 PatternRuleHandler handler = new PatternRuleHandler ( ) ;
 SAXParserFactory factory = SAXParserFactory . newInstance ( ) ;
 + factory . setValidating ( true ) ;
 SAXParser saxParser = factory . newSAXParser ( ) ;
 saxParser . parse ( new File ( filename ) , handler ) ;
 rules = handler . getRules ( ) ;
 <nb> class PatternRuleHandler extends DefaultHandler {
 }
 }

 + public void warning ( SAXParseException e ) throws SAXException {
 + throw e ;
 + }
 +
 + public void error ( SAXParseException e ) throws SAXException {
 + throw e ;
 + }
 +
 }


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

 - import NAMESPACE ;
 -
 import NAMESPACE ;

 public class ItemsPresenter extends Presenter < ItemsView > {
 <nb> public class ItemsPresenter extends Presenter < ItemsView > {
 @ nonnull
 private final AnalyticsModel analyticsModel ;

 - @ inject
 public ItemsPresenter ( @ nonnull ItemsPresenterConfiguration presenterConfiguration ,
 @ nonnull ItemsModel itemsModel ,
 @ nonnull AsyncJobsObserver asyncJobsObserver ,

Remove unuse Inject on ItemPresenter class


<nb> public class HiveMetadata

 private static PrincipalPrivilegeSet buildInitialPrivilegeSet ( String tableOwner )
 {
 - PrivilegeGrantInfo allPrivileges = new PrivilegeGrantInfo ( STRING0 , NUMBER0 , tableOwner , PrincipalType . USER , true ) ;
 return new PrincipalPrivilegeSet (
 - ImmutableMap . of ( tableOwner , ImmutableList . of ( allPrivileges ) ) ,
 + ImmutableMap . of ( tableOwner , ImmutableList . of (
 + new PrivilegeGrantInfo ( STRING1 , NUMBER0 , tableOwner , PrincipalType . USER , true ) ,
 + new PrivilegeGrantInfo ( STRING2 , NUMBER0 , tableOwner , PrincipalType . USER , true ) ,
 + new PrivilegeGrantInfo ( STRING3 , NUMBER0 , tableOwner , PrincipalType . USER , true ) ,
 + new PrivilegeGrantInfo ( STRING4 , NUMBER0 , tableOwner , PrincipalType . USER , true )
 + ) ) ,
 ImmutableMap . of ( ) ,
 ImmutableMap . of ( ) ) ;
 }

Fix Hive SQL standard permissions on table creation


<nb> public class AndroidAnnotationProcessor extends AbstractProcessor {
 LoggerContext loggerContext = LoggerContext . getInstance ( ) ;
 loggerContext . setProcessingEnv ( processingEnv ) ;

 - LOGGER . info ( STRING0 , processingEnv . getOptions ( ) ) ;
 -
 try {
 loadPropertyFile ( ) ;
 loadApiPropertyFile ( ) ;
 <nb> public class AndroidAnnotationProcessor extends AbstractProcessor {
 LOGGER . error ( STRING1 , e ) ;
 }

 + LOGGER . info ( STRING2 , getAAProcessorVersion ( ) , processingEnv . getOptions ( ) ) ;
 +
 annotationHandlers = new AnnotationHandlers ( processingEnv ) ;
 }


<nb> public class XmppConnectionService extends Service implements OnPhoneContactsLoa
 Element vCard = packet . findChild ( STRING0 , STRING1 ) ;
 Element photo = vCard != null ? vCard . findChild ( STRING2 ) : null ;
 Element binval = photo != null ? photo . findChild ( STRING3 ) : null ;
 - if ( binval != null ) {
 - avatar . image = binval . getContent ( ) ;
 + String image = binval != null ? binval . getContent ( ) : null ;
 + if ( image != null ) {
 + avatar . image = image ;
 if ( getFileBackend ( ) . save ( avatar ) ) {
 Log . d ( Config . LOGTAG , account . getJid ( ) . toBareJid ( )
 + STRING4 + avatar . owner ) ;

fixed npe when binval value of vcard avatar is null


<nb> public class UndertowOutputStream extends OutputStream implements BufferWritable
 throw UndertowMessages . MESSAGES . streamIsClosed ( ) ;
 }
 if ( buffer != null && buffer . position ( ) != NUMBER0 ) {
 - writeBufferBlocking ( true ) ;
 + writeBufferBlocking ( false ) ;
 }
 if ( channel == null ) {
 channel = exchange . getResponseChannel ( ) ;

Fix issue with flush on the undertow output stream


<nb> public final class DoubleMath {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class DoubleMath {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


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

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

Fix grammar and update link in Javadoc for SimpleThreadScope


<nb> public class ZLAndroidWidget extends View implements View . OnLongClickListener {
 shift += size ;
 }
 SINGLE
 - myPaint . setColor ( Color . rgb ( NUMBER0 , NUMBER0 , NUMBER0 ) ) ;
 - if ( horizontal ) {
 - canvas . drawLine ( shift , NUMBER1 , shift , h + NUMBER2 , myPaint ) ;
 - } else {
 - canvas . drawLine ( NUMBER1 , shift , w + NUMBER2 , shift , myPaint ) ;
 + if ( shift > NUMBER1 && shift < size ) {
 + myPaint . setColor ( Color . rgb ( NUMBER0 , NUMBER0 , NUMBER0 ) ) ;
 + if ( horizontal ) {
 + canvas . drawLine ( shift , NUMBER1 , shift , h + NUMBER2 , myPaint ) ;
 + } else {
 + canvas . drawLine ( NUMBER1 , shift , w + NUMBER2 , shift , myPaint ) ;
 + }
 }
 break ;
 }

fixed light line at left side of the screen


<nb> public class ReaderPostListFragment extends Fragment {
 if ( getPostListType ( ) == ReaderPostListType . TAG_PREVIEW && hasCurrentTag ( ) ) {
 mTagPreviewHistory . push ( getCurrentTagName ( ) ) ;
 }
 -
 - SINGLE
 }
 }


<nb> public class HelpActivity extends BaseActivity {
 webview . loadUrl ( getString ( R . string . help_url ) ) ;
 }

 - private WebViewClient webViewClient = new WebViewClient ( ) {
 - @ override
 - public boolean shouldOverrideUrlLoading ( WebView view , String url ) {
 - if ( url != null && ! url . startsWith ( getString ( R . string . help_url ) ) ) {
 - SINGLE
 - Utils . launchWebsite ( view . getContext ( ) , url , TAG , STRING0 ) ;
 - return true ;
 - }
 - return false ;
 - }
 - } ;
 -
 @ override
 protected void onDestroy ( ) {
 super . onDestroy ( ) ;


<nb> public class PyUnresolvedReferencesInspection extends PyInspection {
 }
 if ( expr . isQualified ( ) ) {
 final PyClassTypeImpl object_type = ( PyClassTypeImpl ) PyBuiltinCache . getInstance ( node ) . getObjectType ( ) ;
 - if ( ( object_type != null ) && object_type . getPossibleInstanceMembers ( ) . contains ( refName ) ) return ;
 + if ( ( object_type != null ) && object_type . getPossibleInstanceMembers ( ) . contains ( refName ) ) {
 + return ;
 + }
 }
 else {
 if ( PyUnreachableCodeInspection . hasAnyInterruptedControlFlowPaths ( expr ) ) {
 <nb> public class PyUnresolvedReferencesInspection extends PyInspection {
 }
 SINGLE
 SINGLE
 - if ( PyModuleType . getPossibleInstanceMembers ( ) . contains ( refName ) ) return ;
 + if ( PyModuleType . getPossibleInstanceMembers ( ) . contains ( refName ) ) {
 + return ;
 + }
 SINGLE
 if ( (
 PsiTreeUtil . getParentOfType (


<nb> public class GenerateEqualsHelper implements Runnable {
 return new PsiMethod [ ] { hashCode } ;
 }
 else {
 - return null ;
 + return PsiElement . EMPTY_ARRAY ;
 }
 }


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DigestAuthenticator extends AuthenticatorBase {
 COMMENT
 protected static final String QOP = STRING0 ;

 - SINGLE

 + SINGLE

 public DigestAuthenticator ( ) {
 super ( ) ;
 setCache ( false ) ;
 - try {
 - if ( md5Helper == null ) {
 - md5Helper = MessageDigest . getInstance ( STRING1 ) ;
 - }
 - } catch ( NoSuchAlgorithmException e ) {
 - throw new IllegalStateException ( e ) ;
 - }
 }

 SINGLE

 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - protected static volatile MessageDigest md5Helper ;
 -
 -
 COMMENT
 COMMENT
 COMMENT


<nb> public class JSONValue {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class JSONValue {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 public static Object parseWithException ( Reader in ) throws IOException , ParseException {
 JSONParser parser = new JSONParser ( ) ;


<nb> public class Matrix3 implements Serializable {
 if ( det == NUMBER0 ) throw new GdxRuntimeException ( STRING0 ) ;

 float inv_det = FLOAT0 / det ;
 - float tmp [ ] = { NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 } ;

 tmp [ NUMBER0 ] = vals [ NUMBER1 ] * vals [ NUMBER2 ] - vals [ NUMBER3 ] * vals [ NUMBER4 ] ;
 tmp [ NUMBER5 ] = vals [ NUMBER6 ] * vals [ NUMBER4 ] - vals [ NUMBER5 ] * vals [ NUMBER2 ] ;


<nb> public class JBZipFile {
 this . encoding = encoding ;
 archive = new RandomAccessFile ( f , STRING0 ) ;
 try {
 - populateFromCentralDirectory ( ) ;
 + if ( archive . length ( ) > NUMBER0 ) {
 + populateFromCentralDirectory ( ) ;
 + }
 + else {
 + getOutputStream ( ) ; SINGLE
 + }
 }
 catch ( IOException e ) {
 try {

ensure created zip file contains central header at very least


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JavaPsiFacadeImpl extends JavaPsiFacadeEx implements Disposable {
 private void processChange ( final PsiElement parent , final PsiElement child1 , final PsiElement child2 ) {
 try {
 if ( ! isInsideCodeBlock ( parent ) ) {
 - if ( parent != null && parent . getContainingFile ( ) instanceof PsiClassOwner ) {
 + if ( parent != null && parent . getContainingFile ( ) instanceof PsiClassOwner && ! ( parent . getContainingFile ( ) instanceof XmlFile ) ) {
 myModificationTracker . incCounter ( ) ;
 }
 else {

Changes in root JSP tree shall not cause javaStructure modification count to increase


<nb> public class BasicConfiguration extends AbstractConfiguration {
 Preconditions . checkArgument ( pid . element . isOption ( ) && ! pid . lastIsUmbrella ) ;
 result . put ( pid , get ( ( ConfigOption ) pid . element , pid . umbrellaElements ) ) ;
 } catch ( IllegalArgumentException e ) {
 - log . info ( STRING0 , key ) ;
 + log . info ( STRING0 , key , e ) ;
 continue ;
 }
 }

Include exception in a config parsing log message


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

 <nb> public class AndroidDisplayer implements IDisplayer {
 canvas . drawBitmap ( holder . bitmap , NUMBER0 , NUMBER0 , null ) ;
 canvas . restore ( ) ;
 SINGLE
 - Log . e ( STRING0 , STRING1 + ( ++ HIT_CACHE_COUNT ) ) ;
 + SINGLE
 return ;
 }
 }
 - Log . e ( STRING0 , STRING2 + ( ++ NO_CACHE_COUNT ) ) ;
 + SINGLE
 drawDanmaku ( danmaku , canvas , danmaku . getLeft ( ) , danmaku . getTop ( ) ) ;
 }
 }


<nb> public enum ComponentEventSource { ; SINGLE
 COMMENT
 COMMENT
 COMMENT
 - public enum Predicate implements Func1 < ComponentEvent , Boolean > {
 + public enum Predicate implements rx . util . functions . Func1 < java . awt . event . ComponentEvent , Boolean > {
 RESIZED ( ComponentEvent . COMPONENT_RESIZED ) ,
 HIDDEN ( ComponentEvent . COMPONENT_HIDDEN ) ,
 MOVED ( ComponentEvent . COMPONENT_MOVED ) ,

fixing strange compilation problems by specifying the packages directly


<nb> public class ShareIntentReceiverActivity extends SherlockFragmentActivity implem
 if ( intent != null ) {
 intent . setAction ( action ) ;
 intent . setType ( getIntent ( ) . getType ( ) ) ;
 + intent . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ;

 intent . putExtra ( Intent . EXTRA_TEXT , getIntent ( ) . getStringExtra ( Intent . EXTRA_TEXT ) ) ;
 intent . putExtra ( Intent . EXTRA_SUBJECT , getIntent ( ) . getStringExtra ( Intent . EXTRA_SUBJECT ) ) ;

Use Intent FLAG_ACTIVITY_NEW_TASK when starting a new activity in ShareIntentReceiverActivity


<nb> public class DebuggerUtils {
 List < BindingContext > innerContexts = new ArrayList < BindingContext > ( ) ;
 for ( JetNamedFunction inlineFunctions : collectedElements ) {
 JetExpression body = inlineFunctions . getBodyExpression ( ) ;
 - assert body != null : STRING0 + inlineFunctions . getText ( ) ;
 -
 - BindingContext bindingContextForFunction = resolutionFacade . analyze ( body , BodyResolveMode . FULL ) ;
 - innerContexts . add ( analyzeElementWithInline ( resolutionFacade , bindingContextForFunction , inlineFunctions , deep + NUMBER0 ,
 - analyzedElements , analyzeInlineFunctions ) ) ;
 + if ( body != null ) {
 + BindingContext bindingContextForFunction = resolutionFacade . analyze ( body , BodyResolveMode . FULL ) ;
 + innerContexts . add ( analyzeElementWithInline ( resolutionFacade , bindingContextForFunction , inlineFunctions , deep + NUMBER0 ,
 + analyzedElements , analyzeInlineFunctions ) ) ;
 + }
 }

 innerContexts . add ( bindingContext ) ;