<nb> public class FunctionUtil {
 return best ;
 }

 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + public static float [ ] toFloat ( List < Double > list ) {
 + float [ ] result = new float [ list . size ( ) ] ;
 + for ( int i = NUMBER0 ; i < result . length ; i ++ ) {
 + result [ i ] = list . get ( i ) . floatValue ( ) ;
 + }
 + return result ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class QuickTimeStream
 {
 CVPixelBuffer pixelBuffer = ( CVPixelBuffer ) videoFrame ;
 boolean transferData ;
 + Format videoFrameFormat = getVideoFrameFormat ( pixelBuffer ) ;

 synchronized ( dataSyncRoot )
 {
 <nb> public class QuickTimeStream
 nextData . capacity ) ) ;
 nextDataTimeStamp = System . nanoTime ( ) ;
 if ( nextDataFormat == null )
 - nextDataFormat = getVideoFrameFormat ( pixelBuffer ) ;
 + nextDataFormat = videoFrameFormat ;
 }
 return ;
 }
 <nb> public class QuickTimeStream
 data . setLength ( pixelBuffer . getBytes ( data . ptr , data . capacity ) ) ;
 dataTimeStamp = System . nanoTime ( ) ;
 if ( dataFormat == null )
 - dataFormat = getVideoFrameFormat ( pixelBuffer ) ;
 + dataFormat = videoFrameFormat ;
 }
 if ( nextData != null )
 {

Fix possible deadlock when switching very quickly from media configuration form and another form


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

 <nb> abstract public class DaemonClientServicesSupport extends DefaultServiceRegistry
 return new TcpOutgoingConnector ( ) ;
 }

 - protected ProgressLoggerFactory createProgressLoggerFactory ( ) {
 - return new DefaultProgressLoggerFactory ( new ProgressLoggingBridge ( get ( OutputEventListener . class ) ) , new TrueTimeProvider ( ) ) ;
 - }
 -
 DaemonConnector createDaemonConnector ( DaemonRegistry daemonRegistry , OutgoingConnector outgoingConnector , DaemonStarter daemonStarter ) {
 return new DefaultDaemonConnector ( daemonRegistry , outgoingConnector , daemonStarter ) ;
 }

Cleanup an unused service provider in daemon client services registry


<nb> public class AndroidGDataClient implements GDataClient {
 GDataSerializer entry )
 throws HttpException , IOException {
 HttpEntity entity = createEntityForEntry ( entry , GDataSerializer . FORMAT_UPDATE ) ;
 + final String method = entry . doesSupportPartial ( ) ? STRING0 : STRING1 ;
 InputStream in = createAndExecuteMethod (
 - new PostRequestCreator ( STRING1 , entity ) ,
 + new PostRequestCreator ( method , entity ) ,
 editUri ,
 authToken ,
 eTag ,

Added patch support based on serializer state in the android client


<nb> public class PVector implements Serializable {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void set ( float x , float y , float z ) {
 this . x = x ;
 <nb> public class PVector implements Serializable {
 }

 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public void set ( float x , float y ) {
 this . x = x ;

Conform PVector set reference to standard practice


<nb> public class FileSystemSourceCache {

 Content content = ensureContent ( directory ) ;
 synchronized ( content ) {
 - if ( content . lastChecked != NEVER_CHECKED && now - content . lastChecked < RECHECK_FILESYSTEM && getLastModifiedOrMissing ( configFile ) == content . lastModified ) {
 + if ( content . lastChecked != NEVER_CHECKED && now - content . lastChecked < RECHECK_FILESYSTEM ) {
 return content . source ;
 }
 content . lastChecked = now ;

config Don t access the file system nearly every call


<nb> public class JavadocTypeCheck
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 private void checkTag (
 - int aLineNo , String [ ] aCmt ,
 - String aTag , RE aTagRE , RE aFormatRE , String aFormat )
 + int aLineNo ,
 + String [ ] aCmt ,
 + String aTag ,
 + RE aTagRE ,
 + RE aFormatRE ,
 + String aFormat )
 {
 if ( aTagRE == null ) {
 return ;
 <nb> public class JavadocTypeCheck
 tagCount += NUMBER0 ;
 final int contentStart = aTagRE . getParenStart ( NUMBER0 ) ;
 final String content = s . substring ( contentStart ) ;
 - if ( ! aFormatRE . match ( content ) )
 - {
 + if ( ! aFormatRE . match ( content ) ) {
 log ( aLineNo , STRING0 , aTag , aFormat ) ;
 }


<nb> public class InnerClassEntity extends FieldEntity {
 ( ( InnerClassEntity ) fieldEntity ) . generateSupperFiled ( mFactory , subClass ) ;
 ( ( InnerClassEntity ) fieldEntity ) . setFieldTypeSuffix ( getClassFieldType ( ) ) ;
 ( ( InnerClassEntity ) fieldEntity ) . generateClass ( mFactory , subClass ) ;
 - fieldEntity . generateFiled ( mFactory , subClass , this ) ;
 } else {
 fieldEntity . generateFiled ( mFactory , subClass , this ) ;
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class PoolBagEntry extends BagEntry
 + public final class PoolBagEntry extends BagEntry
 {
 public final Connection connection ;
 public final long expirationTime ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class PoolBagEntry extends BagEntry
 + public final class PoolBagEntry extends BagEntry
 {
 public final Connection connection ;
 public final long expirationTime ;


<nb> public class CoverageConfigurable extends SettingsEditor < RunConfigurationBase > {

 final GridBagConstraints gc = new GridBagConstraints ( NUMBER0 , GridBagConstraints . RELATIVE ,
 NUMBER1 , NUMBER1 , NUMBER1 , NUMBER0 ,
 - GridBagConstraints . NORTHWEST , GridBagConstraints . BOTH ,
 + GridBagConstraints . NORTHWEST , GridBagConstraints . HORIZONTAL ,
 JBUI . emptyInsets ( ) , NUMBER0 , NUMBER0 ) ;
 result . add ( myRunnerPanel , gc ) ;

 <nb> public class CoverageConfigurable extends SettingsEditor < RunConfigurationBase > {
 myTrackTestSourcesCb = new JCheckBox ( STRING0 ) ;
 panel . add ( myTrackTestSourcesCb , bagConstraints ) ;

 + gc . weighty = NUMBER1 ;
 + gc . fill = GridBagConstraints . BOTH ;
 result . add ( panel , gc ) ;

 myCoverageNotSupportedLabel = new JLabel ( CodeInsightBundle . message ( STRING1 ) ) ;


<nb> public class JavaStubGenerator
 this . outputPath = outputPath ;
 this . requireSuperResolved = requireSuperResolved ;
 this . java5 = java5 ;
 + outputPath . mkdirs ( ) ;
 }

 public JavaStubGenerator ( final File outputPath ) {


<nb> public class ByteBuddyAgent {
 @ override
 public Accessor resolve ( Class < ? > virtualMachineType ) {
 try {
 - return new Simple ( virtualMachineType , ( String ) getPid . invoke ( current . invoke ( STATIC_MEMBER ) ) ) ;
 + return new Simple ( virtualMachineType , getPid . invoke ( current . invoke ( STATIC_MEMBER ) ) . toString ( ) ) ;
 } catch ( IllegalAccessException exception ) {
 throw new UnsupportedOperationException ( STRING0 ) ;
 } catch ( InvocationTargetException exception ) {

Fixed assumed type of the process handler to be a long rather than a string


<nb> public class DruidDataSourceC3P0Adapter implements DataSource , DruidDataSourceC3
 this . setAcquireIncrement ( NUMBER0 ) ;
 this . setAcquireIncrement ( NUMBER1 ) ;
 this . setAcquireRetryDelay ( NUMBER2 ) ;
 - this . setAutoCommitOnClose ( false ) ;
 + this . setAutoCommitOnClose ( true ) ;
 this . setAutomaticTestTable ( null ) ;
 this . setCheckoutTimeout ( NUMBER3 ) ;
 this . setDebugUnreturnedConnectionStackTraces ( false ) ;

bug fixed for DruidDataSourceC3P0Adapter set autocommit true


<nb> public class GradleVersion implements Comparable < GradleVersion > {

 static {
 URL resource = GradleVersion . class . getResource ( RESOURCE_NAME ) ;
 + if ( resource == null ) {
 + throw new GradleException ( format ( STRING0 , RESOURCE_NAME ) ) ;
 + }

 InputStream inputStream = null ;
 try {


<nb> public class VirtualEnvSdkFlavor extends CPythonSdkFlavor {
 final String childName = child . getName ( ) ;
 for ( String name : NAMES ) {
 if ( childName . startsWith ( name ) ) {
 - if ( ! childName . endsWith ( STRING0 ) ) candidates . add ( PythonSdkType . shortenDirName ( child . getPath ( ) ) ) ;
 + if ( ! childName . endsWith ( STRING0 ) ) candidates . add ( child . getPath ( ) ) ;
 break ;
 }
 }

fixed duplicated path in add suggestions to Add interpreter


<nb> abstract class GraphObjectListFragment < T extends GraphObject > extends Fragment
 @ override
 void updateCheckboxState ( CheckBox checkBox , boolean graphObjectSelected ) {
 checkBox . setChecked ( graphObjectSelected ) ;
 - checkBox . setVisibility ( selectionStrategy . shouldShowCheckBoxIfUnselected ( ) ?
 - View . VISIBLE : View . GONE ) ;
 + int visible = ( graphObjectSelected || selectionStrategy . shouldShowCheckBoxIfUnselected ( ) ) ? View . VISIBLE : View . GONE ;
 + checkBox . setVisibility ( visible ) ;
 }
 }
 }

FriendPickerFragment should show check marks in single select mode


<nb> public abstract class AbstractAjaxCallback < T , K > implements Runnable {
 public void failure ( int code , String message ) {

 if ( status != null ) {
 - status . code ( code ) . message ( message ) ;
 - callback ( ) ;
 + status . code ( code ) . message ( message ) . done ( ) ;
 +
 + if ( uiCallback ) {
 + AQUtility . post ( this ) ;
 + } else {
 + afterWork ( ) ;
 + }
 +
 + SINGLE
 }

 }

Fix issue where auth failure callback might not be called with ui


<nb> import static NAMESPACE ;
 COMMENT
 public class ConfigureUtil {

 - public static < T > T configureByMap ( Map < String , ? > properties , T delegate ) {
 + public static < T > T configureByMap ( Map < ? , ? > properties , T delegate ) {
 DynamicObject dynamicObject = DynamicObjectUtil . asDynamicObject ( delegate ) ;

 - for ( Map . Entry < String , ? > entry : properties . entrySet ( ) ) {
 - String name = entry . getKey ( ) ;
 + for ( Map . Entry < ? , ? > entry : properties . entrySet ( ) ) {
 + String name = entry . getKey ( ) . toString ( ) ;
 Object value = entry . getValue ( ) ;

 if ( dynamicObject . hasProperty ( name ) ) {

Accept a map with any key type for configureByMap implicitly toString ing the keys


<nb> public class FavoritesTreeFragment extends OsmandExpandableListFragment {
 sendIntent . setType ( STRING0 ) ;
 startActivity ( sendIntent ) ;
 } catch ( IOException e ) {
 - Toast . makeText ( getActivity ( ) , STRING1 + e . getMessage ( ) , Toast . LENGTH_LONG ) . show ( ) ;
 + SINGLE
 e . printStackTrace ( ) ;
 }
 }


<nb> public class EditPoiDialogFragment extends DialogFragment {
 @ override
 public void onItemSelected ( AdapterView < ? > parent , View view , int position , long id ) {
 Object item = parent . getAdapter ( ) . getItem ( position ) ;
 - SINGLE
 - if ( subCategories . containsKey ( item . toString ( ) . toLowerCase ( ) ) ) {
 - SINGLE
 - PoiType pt = subCategories . get ( item ) ;
 - String keyName = pt . getKeyName ( ) ;
 - setAdapterForPoiTypeEditText ( ) ;
 - poiTypeEditText . setText ( keyName ) ;
 - }
 + poiTypeEditText . setText ( item . toString ( ) ) ;
 + setAdapterForPoiTypeEditText ( ) ;
 }

 @ override


<nb> public abstract class AbstractOption
 protected AbstractOption ( String aStrRep )
 {
 mStrRep = aStrRep . trim ( ) . toLowerCase ( ) ;
 - Map strToOpt = getStrToOpt ( ) ;
 + final Map strToOpt = getStrToOpt ( ) ;
 strToOpt . put ( mStrRep , this ) ;
 }

 <nb> public abstract class AbstractOption
 COMMENT
 public AbstractOption decode ( String aStrRep )
 {
 - Map strToOpt = getStrToOpt ( ) ;
 + final Map strToOpt = getStrToOpt ( ) ;
 return ( AbstractOption ) strToOpt . get ( aStrRep . trim ( ) . toLowerCase ( ) ) ;
 }


<nb> public class DefaultFailover implements Failover {
 }

 private ImmutableList < Session > prepareTargetSessions ( Session targetSession ) {
 + if ( file . length ( ) == NUMBER0 ) {
 + return of ( targetSession ) ;
 + }
 +
 ImmutableList < Session > sessions = restoreSessions ( this . file ) ;
 Optional < Session > session = tryFind ( sessions , isForRequest ( targetSession . getRequest ( ) ) ) ;
 if ( session . isPresent ( ) ) {

checked empty failover file to avoid warning


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public interface BandwidthMeter {
 + public interface BandwidthMeter extends TransferListener {
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public interface EventListener {
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + void onBandwidthSample ( int elapsedMs , long bytes , long bitrate ) ;
 + }

 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class DefaultBandwidthMeter implements BandwidthMeter , TransferListener {
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - public interface EventListener {
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - void onBandwidthSample ( int elapsedMs , long bytes , long bitrate ) ;
 -
 - }
 + public class DefaultBandwidthMeter implements BandwidthMeter {

 private static final int DEFAULT_MAX_WEIGHT = NUMBER0 ;


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

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public class IcedWrapper < I extends IcedWrapper , S extends IcedWrapper COMMENT > extends Schema < I , IcedWrapper < I , S > > {
 + public class IcedWrapper extends Schema < Iced , IcedWrapper > {
 + public IcedWrapper ( ) { super ( ) ; }
 +
 COMMENT
 COMMENT
 COMMENT

Fix IcedWrapper schema warning by making it extend Schema


<nb> public class MessageFramer {

 COMMENT
 private class OutputStreamAdapter extends OutputStream {
 - private final byte [ ] singleByte = new byte [ NUMBER0 ] ;
 -
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ override
 public void write ( int b ) {
 - singleByte [ NUMBER1 ] = ( byte ) b ;
 + byte [ ] singleByte = new byte [ ] { ( byte ) b } ;
 write ( singleByte , NUMBER1 , NUMBER0 ) ;
 }

 <nb> public class MessageFramer {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 @ override

remove extra allocation in MessageFramer


<nb> public abstract class AbstractMapDataStore < K , V > implements MapDataStore < K , V > {
 if ( keys == null || keys . isEmpty ( ) ) {
 return Collections . emptyList ( ) ;
 }
 - final List < Object > objectKeys = new ArrayList < Object > ( ) ;
 + final List < Object > objectKeys = new ArrayList < Object > ( keys . size ( ) ) ;
 for ( Object key : keys ) {
 objectKeys . add ( toObject ( key ) ) ;
 }


<nb> public abstract class Operation implements DataSerializable {
 private long invocationTime = - NUMBER0 ;
 private long callTimeout = Long . MAX_VALUE ;
 private String callerUuid ;
 - SINGLE
 - @ deprecated
 - private boolean async = false ;
 private String executorName ;

 SINGLE
 <nb> public abstract class Operation implements DataSerializable {
 out . writeLong ( invocationTime ) ;
 out . writeLong ( callTimeout ) ;
 out . writeUTF ( callerUuid ) ;
 - out . writeBoolean ( async ) ; SINGLE
 out . writeUTF ( executorName ) ;
 writeInternal ( out ) ;
 }
 <nb> public abstract class Operation implements DataSerializable {
 invocationTime = in . readLong ( ) ;
 callTimeout = in . readLong ( ) ;
 callerUuid = in . readUTF ( ) ;
 - async = in . readBoolean ( ) ; SINGLE
 executorName = in . readUTF ( ) ;
 readInternal ( in ) ;
 }


<nb> public abstract class AbstractByteBufferedOutputChannel < T extends Record > extend
 COMMENT
 private long amountOfDataTransmitted = NUMBER0 L ;

 - private static final Log LOG = LogFactory . getLog ( AbstractByteBufferedInputChannel . class ) ;
 + private static final Log LOG = LogFactory . getLog ( AbstractByteBufferedOutputChannel . class ) ;

 COMMENT
 COMMENT
 <nb> public abstract class AbstractByteBufferedOutputChannel < T extends Record > extend

 if ( ! this . closeRequested ) {
 this . closeRequested = true ;
 + if ( this . serializationBuffer . dataLeftFromPreviousSerialization ( ) ) {
 + SINGLE
 + flush ( ) ;
 + }

 if ( ! isBroadcastChannel ( ) || getChannelIndex ( ) == NUMBER0 ) {
 transferEvent ( new ByteBufferedChannelCloseEvent ( ) ) ;

fixed too early closevent for large records


<nb> import NAMESPACE ;
 }
 CharSequence text = getText ( ) ;
 SINGLE
 - mLayout = new WebTextViewLayout ( text , text , getPaint ( ) , w ,
 + mLayout = new WebTextViewLayout ( text , text , getPaint ( ) , mLayout . getWidth ( ) ,
 mLayout . getAlignment ( ) , mLayout . getSpacingMultiplier ( ) ,
 mLayout . getSpacingAdd ( ) , false , null , ellipsisWidth ,
 lineHeight ) ;

Use the same width as the TextView created layout


<nb> public class KeyguardPasswordView extends KeyguardAbsKeyInputView
 post ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - mPasswordEntry . requestFocus ( ) ;
 - if ( reason != KeyguardSecurityView . SCREEN_ON || mShowImeAtScreenOn ) {
 - mImm . showSoftInput ( mPasswordEntry , InputMethodManager . SHOW_IMPLICIT ) ;
 + if ( isShown ( ) ) {
 + mPasswordEntry . requestFocus ( ) ;
 + if ( reason != KeyguardSecurityView . SCREEN_ON || mShowImeAtScreenOn ) {
 + mImm . showSoftInput ( mPasswordEntry , InputMethodManager . SHOW_IMPLICIT ) ;
 + }
 }
 }
 } ) ;

Only request IME if password view is showing


<nb> public class SvnVcs extends AbstractVcs < CommittedChangeList > {
 final String property = System . getProperty ( KEEP_CONNECTIONS_KEY ) ;
 final boolean keep ;
 if ( StringUtil . isEmptyOrSpaces ( property ) ) {
 - keep = true ; SINGLE
 + keep = ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ; SINGLE
 } else {
 keep = Boolean . getBoolean ( KEEP_CONNECTIONS_KEY ) ;
 }
 <nb> public abstract class SvnTestCase extends AbstractVcsTestCase {

 @ before
 public void setUp ( ) throws Exception {
 - System . setProperty ( STRING0 , STRING1 ) ;
 + SINGLE
 UIUtil . invokeAndWaitIfNeeded ( new Runnable ( ) {
 @ override
 public void run ( ) {

do not keep connection in pool for tests mode


<nb> public class ReaderPostListFragment extends Fragment
 }
 mCurrentBlogId = args . getLong ( ReaderConstants . ARG_BLOG_ID ) ;
 mCurrentBlogUrl = args . getString ( ReaderConstants . ARG_BLOG_URL ) ;
 - if ( TextUtils . isEmpty ( mCurrentBlogUrl ) ) {
 - mCurrentBlogUrl = ReaderBlogTable . getBlogUrl ( mCurrentBlogId ) ;
 - }

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

 + SINGLE
 + SINGLE
 + if ( getPostListType ( ) . isPreviewType ( ) ) {
 + int height = container . getContext ( ) . getResources ( ) . getDimensionPixelSize ( R . dimen . margin_extra_small ) ;
 + ReaderUtils . addListViewHeader ( mListView , height ) ;
 + }
 +
 SINGLE
 mEmptyView = rootView . findViewById ( R . id . empty_view ) ;

Added space between header and posts when showing tag or blog preview


<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
 if ( mBackground instanceof ColorDrawable ) {
 ( ( ColorDrawable ) mBackground . mutate ( ) ) . setColor ( color ) ;
 computeOpaqueFlags ( ) ;
 + mBackgroundResource = NUMBER0 ;
 } else {
 setBackground ( new ColorDrawable ( color ) ) ;
 }

Reset stored background resource when setting a bg color


<nb> public class EventTrackerHandler extends AbstractHandler {
 }

 private synchronized long addEvent ( final HttpServletRequest request ) {
 + String date = request . getParameter ( STRING0 ) ;
 + if ( date == null ) {
 + date = dateHelper . getDate ( ) ;
 + }
 Event event = new Event . Builder (
 request . getParameter ( STRING1 ) ,
 request . getParameter ( STRING2 ) ,
 - dateHelper . getDate ( ) ,
 + date ,
 toProperties ( request ) ) . build ( ) ;
 return eventTracker . addEvent ( event ) ;
 }

Allow EventTrackerHandler to have date query param


<nb>
 COMMENT
 package NAMESPACE ;

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


<nb> public class ThriftUtils {
 COMMENT
 public static < M extends TBase < ? , ? > > TypeRef < M > getTypeRef ( String thriftClassName , ClassLoader classLoader ) {
 try {
 - Class < ? > tClass = Class . forName ( thriftClassName , true , classLoader ) ;
 + Class < ? > tClass = classLoader == null ?
 + Class . forName ( thriftClassName ) :
 + Class . forName ( thriftClassName , true , classLoader ) ;

 verifyAncestry ( tClass ) ;

null for classLoader does not imply default loader


<nb> public class DateTools {
 public static DateTime nowInUTC ( ) {
 return DateTime . now ( DateTimeZone . UTC ) ;
 }
 +
 + public static int getUserTimeZoneOffset ( ) {
 + DateTimeZone tz = globalTimezone ;
 +
 + final User currentUser = UserService . current ( ) ;
 +
 + if ( currentUser != null && currentUser . getTimeZone ( ) != null ) {
 + tz = currentUser . getTimeZone ( ) ;
 + }
 +
 + int offsetMillis = tz . toTimeZone ( ) . getRawOffset ( ) / NUMBER0 ;
 +
 + if ( tz . toTimeZone ( ) . useDaylightTime ( ) ) {
 + offsetMillis += NUMBER1 ;
 + }
 +
 + return ( offsetMillis / NUMBER2 ) * - NUMBER3 ;
 + }
 }

Add DateTools getUserTimeZoneOffset method


<nb> import NAMESPACE ;
 COMMENT
 public class SybaseASADatabase extends AbstractDatabase {

 - public static final String PRODUCT_NAME = STRING0 ;
 private static final Set < String > systemTablesAndViews ;
 static {
 systemTablesAndViews = new HashSet < String > ( ) ;
 <nb> public class SybaseASADatabase extends AbstractDatabase {
 COMMENT
 COMMENT
 COMMENT
 - public boolean isCorrectDatabaseImplementation ( Connection conn )
 - throws JDBCException {
 - return PRODUCT_NAME . equalsIgnoreCase ( getDatabaseProductName ( conn ) ) ;
 + public boolean isCorrectDatabaseImplementation ( Connection conn ) throws JDBCException {
 + return STRING0 . equalsIgnoreCase ( getDatabaseProductName ( conn ) )
 + || STRING1 . equalsIgnoreCase ( getDatabaseProductName ( conn ) ) ;
 }

 @ override

Added additional sysbase product name according to liquibase user mailing list message


<nb> public class XmlNode extends RubyObject {
 relink_namespace ( context ) ;
 SINGLE

 - return this ;
 + return other ;
 }

 protected void adoptAsChild ( ThreadContext context , Node parent ,

Fix return node after addding other node


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class BaseGameActivity extends BaseActivity implements IGameInte
 return this . mEngine . enableAccelerometerSensor ( this , pAccelerometerListener ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 protected boolean enableAccelerometerSensor ( final IAccelerometerListener pAccelerometerListener , final int pRate ) {
 return this . mEngine . enableAccelerometerSensor ( this , pAccelerometerListener , pRate ) ;
 }
 <nb> public abstract class BaseGameActivity extends BaseActivity implements IGameInte
 return this . mEngine . enableOrientationSensor ( this , pOrientationListener ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 protected boolean enableOrientationSensor ( final IOrientationListener pOrientationListener , final int pRate ) {
 return this . mEngine . enableOrientationSensor ( this , pOrientationListener , pRate ) ;
 }

Added Javadoc to explain what the can be passed as the Rate of a Sensor


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

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class PipelineLabel implements Serializable {
 }

 private static String lookupMaterialRevision ( Matcher matcher , Map < String , String > materialRevisions ) {
 - final String material = matcher . group ( NUMBER0 ) ;
 + final String material = matcher . group ( NUMBER0 ) . toLowerCase ( ) ;

 if ( ! materialRevisions . containsKey ( material ) ) {
 return STRING0 + matcher . group ( NUMBER1 ) ;

now making material lookup case insensitive


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;


<nb> public class TransitToTaggedStopsGraphBuilderImpl implements GraphBuilder {

 private boolean connectVertexToStop ( TransitStop ts , boolean wheelchairAccessible ) {
 String stopCode = ts . getStopCode ( ) ;
 - Envelope envelope = new Envelope ( ts . getCoordinate ( ) ) ;
 - envelope . expandBy ( FLOAT0 ) ; SINGLE
 - Collection < Vertex > vertices = index . getVerticesForEnvelope ( envelope ) ;
 if ( stopCode == null ) {
 return false ;
 }
 + Envelope envelope = new Envelope ( ts . getCoordinate ( ) ) ;
 + envelope . expandBy ( FLOAT0 ) ; SINGLE
 + Collection < Vertex > vertices = index . getVerticesForEnvelope ( envelope ) ;
 for ( Vertex v : vertices ) {
 if ( ! ( v instanceof TransitStopStreetVertex ) ) {
 continue ;

do less processing if no stop code defined


<nb> public class Observable < T > {
 }

 COMMENT
 - < < < < < < < HEAD
 COMMENT
 COMMENT
 COMMENT


<nb> public class CouchdbRiver extends AbstractRiverComponent implements River {
 }
 String seq = map . get ( STRING0 ) . toString ( ) ;
 String id = map . get ( STRING1 ) . toString ( ) ;
 +
 + SINGLE
 + if ( id . startsWith ( STRING2 ) ) {
 + logger . info ( STRING3 , id ) ;
 + return seq ;
 + }
 +
 if ( map . containsKey ( STRING4 ) && map . get ( STRING5 ) . equals ( STRING6 ) ) {
 bulk . add ( deleteRequest ( indexName ) . type ( typeName ) . id ( id ) ) ;
 } else if ( map . containsKey ( STRING7 ) ) {

Couchdb river plugin ignore design documents


<nb> public class SocketConnection implements Connection {
 }
 }
 catch ( Exception e ) {
 - SINGLE
 + Log . error ( LocaleUtils . getLocalizedString ( STRING0 )
 + + STRING1 + this . toString ( ) , e ) ;
 }
 try {
 socket . close ( ) ;
 <nb> public class SocketConnection implements Connection {
 xmlSerializer . flush ( ) ;
 }
 catch ( IOException e ) {
 - Log . warn ( e ) ;
 + Log . warn ( LocaleUtils . getLocalizedString ( STRING0 )
 + + STRING1 + this . toString ( ) , e ) ;
 close ( ) ;
 SINGLE
 SINGLE
 <nb> public class SocketConnection implements Connection {
 }
 }
 }
 +
 + public String toString ( ) {
 + return super . toString ( ) + STRING2 + socket + STRING3 + session ;
 + }
 }


<nb> public abstract class AbstractArrayElementBlock
 @ override
 public Block getSingleValueBlock ( int position )
 {
 - throw new UnsupportedOperationException ( ) ;
 + checkReadablePosition ( position ) ;
 + return getBlock ( ) . getSingleValueBlock ( position + start ) ;
 }

 @ override


<nb> public class TestActivityBehaviorFactory extends AbstractBehaviorFactory impleme

 @ override
 public EventSubProcessStartEventActivityBehavior createEventSubProcessStartEventActivityBehavior ( StartEvent startEvent , String activityId ) {
 - return createEventSubProcessStartEventActivityBehavior ( startEvent , activityId ) ;
 + return wrappedActivityBehaviorFactory . createEventSubProcessStartEventActivityBehavior ( startEvent , activityId ) ;
 }

 @ override


<nb> public class MethodAnalyzer {
 Instruction3rc instruction = ( Instruction3rc ) analyzedInstruction . instruction ;

 Instruction3rc deodexedInstruction = new ImmutableInstruction3rc ( Opcode . INVOKE_DIRECT_RANGE ,
 - instruction . getRegisterCount ( ) , instruction . getStartRegister ( ) , instruction . getReference ( ) ) ;
 + instruction . getStartRegister ( ) , instruction . getRegisterCount ( ) , instruction . getReference ( ) ) ;

 analyzedInstruction . setDeodexedInstruction ( deodexedInstruction ) ;

Fix issue when deodexing invoke object init range instruction


<nb> public class Paint {
 COMMENT
 COMMENT
 public long getNativeInstance ( ) {
 - if ( mShader != null && mShader . getNativeInstance ( ) != mNativeShader ) {
 - mNativeShader = mShader . getNativeInstance ( ) ;
 + long newNativeShader = mShader == null ? NUMBER0 : mShader . getNativeInstance ( ) ;
 + if ( newNativeShader != mNativeShader ) {
 + mNativeShader = newNativeShader ;
 native_setShader ( mNativePaint , mNativeShader ) ;
 }
 return mNativePaint ;


<nb> public class PendingConnectRequestFragment extends BaseFragment < PendingConnectRe
 SINGLE
 footerMenu . setVisibility ( View . VISIBLE ) ;
 isShowingFooterMenu = true ;
 + footerMenu . setRightActionText ( STRING0 ) ;

 footerMenu . setCallback ( new FooterMenuCallback ( ) {
 @ override
 <nb> public class PendingConnectRequestFragment extends BaseFragment < PendingConnectRe

 @ override
 public void onRightActionClicked ( ) {
 - user . block ( ) ;
 }
 } ) ;
 }

Remove block button from outgoing connection request


<nb> public class ExtractorsResource extends RestResource {

 final Map < String , String > result = ImmutableMap . of ( STRING0 , id ) ;
 final URI extractorUri = UriBuilder . fromResource ( ExtractorsResource . class )
 - . path ( STRING1 )
 - . build ( id ) ;
 + . path ( STRING2 )
 + . build ( input . getId ( ) ) ;

 return Response . created ( extractorUri ) . entity ( result ) . build ( ) ;
 }
 <nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class CreateExtractorRequest {
 @ jsonproperty
 public abstract int order ( ) ;

 + @ jsoncreator
 public static CreateExtractorRequest create ( @ jsonproperty ( STRING3 ) @ notempty String title ,
 @ jsonproperty ( STRING4 ) String cutOrCopy ,
 @ jsonproperty ( STRING5 ) @ notempty String sourceField ,


<nb> public class AndroidHarness extends Activity implements TouchListener , DialogInt
 COMMENT
 COMMENT
 protected int splashPicID = NUMBER0 ;
 +
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 protected int screenOrientation = ActivityInfo . SCREEN_ORIENTATION_SENSOR ;
 +
 protected OGLESContext ctx ;
 protected GLSurfaceView view = null ;
 protected boolean isGLThreadPaused = true ;
 <nb> public class AndroidHarness extends Activity implements TouchListener , DialogInt
 }
 }

 - setRequestedOrientation ( screenOrientation ) ;
 -
 final DataObject data = ( DataObject ) getLastNonConfigurationInstance ( ) ;
 if ( data != null ) {
 logger . log ( Level . FINE , STRING0 ) ;

Deprecate screenOrientation from AndroidHarness


<nb> public class PsiDirectoryNode extends BasePsiNode < PsiDirectory > implements Navig
 return ! PlatformUtils . isCidr ( ) ;
 }

 + protected boolean shouldShowSourcesRoot ( ) {
 + return true ;
 + }
 +
 @ override
 protected void updateImpl ( PresentationData data ) {
 Project project = getProject ( ) ;
 <nb> public class PsiDirectoryNode extends BasePsiNode < PsiDirectory > implements Navig
 final String location = FileUtil . getLocationRelativeToUserHome ( directoryFile . getPresentableUrl ( ) ) ;
 data . addText ( STRING0 + location + STRING1 , SimpleTextAttributes . GRAYED_ATTRIBUTES ) ;
 }
 - else {
 + else if ( shouldShowSourcesRoot ( ) ) {
 SourceFolder sourceRoot = ProjectRootsUtil . getModuleSourceRoot ( directoryFile , project ) ;
 if ( sourceRoot != null ) {
 ModuleSourceRootEditHandler < ? > handler = ModuleSourceRootEditHandler . getEditHandler ( sourceRoot . getRootType ( ) ) ;

support hiding PsiDirectoryNode sources roots


<nb> public class RouterActor extends ModuleActor {
 }
 }

 -
 +
 SINGLE
 SINGLE
 SINGLE
 <nb> public class RouterActor extends ModuleActor {
 conversationStates . addOrUpdateItem ( state ) ;

 dialogsActor ( new DialogsActor . CounterChanged ( peer , counter ) ) ;
 +
 + notifyActiveDialogsVM ( ) ;
 }

Fixing non notifying active dialogs on read by me


<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 ;
 <nb> public class WorldEditPlugin extends JavaPlugin {
 COMMENT
 COMMENT
 protected void registerEvents ( ) {
 - PlayerListener playerListener = new WorldEditPlayerListener ( this ) ;
 - PlayerListener criticalPlayerListener = new WorldEditCriticalPlayerListener ( this ) ;
 + new WorldEditPlayerListener ( this ) ;
 + new WorldEditCriticalPlayerListener ( this ) ;

 SINGLE
 ( new PermissionsResolverServerListener ( perms ) ) . register ( this ) ;


<nb>
 COMMENT
 package NAMESPACE ;

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


<nb> public class SwipeLayout extends FrameLayout
 mDragHelper = ViewDragHelper . create ( this , mDragHelperCallback ) ;

 TypedArray a = context . obtainStyledAttributes ( attrs , R . styleable . SwipeLayout ) ;
 - int dragEdgeChoices = a . getInt ( R . styleable . SwipeLayout_drag_edge , DragEdge . Right . ordinal ( ) ) ;
 + int dragEdgeChoices = a . getInt ( R . styleable . SwipeLayout_drag_edge , DRAG_RIGHT ) ;
 mLeftEdgeSwipeOffset = a . getDimension ( R . styleable . SwipeLayout_leftEdgeSwipeOffset , NUMBER0 ) ;
 mRightEdgeSwipeOffset = a . getDimension ( R . styleable . SwipeLayout_rightEdgeSwipeOffset , NUMBER0 ) ;
 mTopEdgeSwipeOffset = a . getDimension ( R . styleable . SwipeLayout_topEdgeSwipeOffset , NUMBER0 ) ;


<nb> class Client implements IConnection {
 close ( ) ;
 }
 } catch ( InterruptedException e ) {
 - LOG . info ( STRING0 , e ) ;
 + LOG . warn ( STRING0 , e ) ;
 }
 }

 <nb> class Client implements IConnection {
 @ override
 public void run ( ) {
 if ( ready_to_release_resource . get ( ) ) {
 - LOG . info ( STRING1 ) ;
 + LOG . debug ( STRING1 ) ;
 factory . releaseExternalResources ( ) ;
 timer . cancel ( ) ;
 }
 <nb> import NAMESPACE ;
 import NAMESPACE ;

 public class MessageDecoder extends FrameDecoder {
 - private static final Logger LOG = LoggerFactory . getLogger ( MessageDecoder . class ) ;
 -
 COMMENT
 COMMENT
 COMMENT


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class GrClassImplUtil {
 return result == null || result . booleanValue ( ) ;
 }

 - public static void addExpandingReflectedMethods ( List < PsiMethod > result , PsiMethod method ) {
 + public static void addExpandingReflectedMethods ( Collection < PsiMethod > result , PsiMethod method ) {
 if ( method instanceof GrMethod ) {
 final GrReflectedMethod [ ] reflectedMethods = ( ( GrMethod ) method ) . getReflectedMethods ( ) ;
 if ( reflectedMethods . length > NUMBER0 ) {
 <nb> public class GrClassImplUtil {
 result . add ( method ) ;
 }

 - public static void collectMethodsFromBody ( @ notnull GrTypeDefinition definition , List < PsiMethod > result ) {
 + public static void collectMethodsFromBody ( @ notnull GrTypeDefinition definition , Collection < PsiMethod > result ) {
 for ( GrMethod method : definition . getCodeMethods ( ) ) {
 addExpandingReflectedMethods ( result , method ) ;
 }

groovy use more general type in parameters Collection instead of List


<nb> public class DeepLearningTask extends FrameTask < DeepLearningTask > {
 assert ( _training ) ;
 if ( _localmodel . _classification )
 ( ( Neurons . Softmax ) _neurons [ _neurons . length - NUMBER0 ] ) . bprop ( n ) ;
 - else
 + else if ( ! _localmodel . get_params ( ) . _autoencoder )
 ( ( Neurons . Linear ) _neurons [ _neurons . length - NUMBER0 ] ) . bprop ( n ) ;
 + else
 + _neurons [ _neurons . length - NUMBER0 ] . bprop ( ) ;

 for ( int i = _neurons . length - NUMBER1 ; i > NUMBER2 ; -- i )
 _neurons [ i ] . bprop ( ) ;


<nb> public class HttpChannelState

 private final static long DEFAULT_TIMEOUT = NUMBER0 ;

 + COMMENT
 + COMMENT
 public enum State
 {
 IDLE , SINGLE
 DISPATCHED , SINGLE
 - ASYNC_WAIT , SINGLE
 - ASYNC_WOKEN , SINGLE
 - ASYNC_IO , SINGLE
 + ASYNC_WAIT , SINGLE
 + ASYNC_WOKEN , SINGLE
 + ASYNC_IO , SINGLE
 COMPLETING , SINGLE
 COMPLETED SINGLE
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public enum Action
 {
 REQUEST_DISPATCH , SINGLE
 <nb> public class HttpChannelState
 COMPLETE SINGLE
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public enum Async
 {
 STARTED ,

Added ASYNC_WOKEN state to HttpChannelState


<nb> public final class LineageMaster extends MasterBase {
 persistFilesFromEntry ( ( PersistFilesEntry ) entry ) ;
 } else if ( entry instanceof RequestFilePersistenceEntry ) {
 requestFilePersistenceFromEntry ( ( RequestFilePersistenceEntry ) entry ) ;
 - } else if ( entry instanceof DeleteLineageEntry ) {
 + } else if ( entry instanceof DeleteLineageEntry ) {
 deleteLineageFromEntry ( ( DeleteLineageEntry ) entry ) ;
 } else {
 throw new IOException ( ExceptionMessage . UNEXPECETD_JOURNAL_ENTRY . getMessage ( entry ) ) ;
 <nb> public final class LineageMaster extends MasterBase {
 COMMENT
 public synchronized boolean deleteLineage ( long lineageId , boolean cascade )
 throws LineageDoesNotExistException , LineageDeletionException {
 - deleteLineageInternal ( lineageId , cascade ) ;
 + deleteLineageInternal ( lineageId , cascade ) ;
 writeJournalEntry ( new DeleteLineageEntry ( lineageId , cascade ) ) ;
 flushJournal ( ) ;
 return true ;


<nb> public class RealmObjectTest extends AndroidTestCase {
 CyclicType ct1 = testRealm . where ( CyclicType . class ) . findFirst ( ) ;
 CyclicType ct2 = testRealm . where ( CyclicType . class ) . findFirst ( ) ;

 - assertTrue ( ct1 . equals ( ct1 ) ) ;
 - assertTrue ( ct2 . equals ( ct2 ) ) ;
 + assertTrue ( ct1 . equals ( ct2 ) ) ;
 + assertTrue ( ct2 . equals ( ct1 ) ) ;
 }

 public void testEqualsDifferentRealmObjects ( ) {


<nb> public abstract class Layout {
 if ( bm != null ) {
 workPaint . set ( paint ) ;
 Styled . measureText ( paint , workPaint , text ,
 - offset , offset + NUMBER0 , null ) ;
 + j , j + NUMBER1 , null ) ;

 float wid = ( float ) bm . getWidth ( ) *
 - workPaint . ascent ( ) / bm . getHeight ( ) ;

Fix an emoji measuring bug that caused an exception when editing a contact


<nb> public class ContentView extends LinearLayout {
 }

 @ override
 - public void ` onReceivedIcon ( WebView webView , Bitmap bitmap ) {
 + public void onReceivedIcon ( WebView webView , Bitmap bitmap ) {
 super . onReceivedIcon ( webView , bitmap ) ;
 mEventHandler . onReceivedIcon ( bitmap ) ;
 }


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GitblitContext extends GuiceServletContextListener {
 }

 protected void extractResources ( ServletContext context , String path , File toDir ) {
 - for ( String resource : context . getResourcePaths ( path ) ) {
 + Set < String > resources = context . getResourcePaths ( path ) ;
 + if ( resources == null ) {
 + logger . warn ( STRING0 , path ) ;
 + return ;
 + }
 + for ( String resource : resources ) {
 SINGLE
 File f = new File ( toDir , resource . substring ( path . length ( ) ) ) ;
 if ( ! f . exists ( ) ) {

Handle possible NPE when extracting WAR resources into a new directory


<nb> public class SyncManager implements OnAccountsUpdateListener {
 newDelayInMs = maxSyncRetryTimeInSeconds * NUMBER0 ;
 }

 + final long backoff = now + newDelayInMs ;
 +
 mSyncStorageEngine . setBackoff ( op . account , op . authority ,
 - now + newDelayInMs , newDelayInMs ) ;
 + backoff , newDelayInMs ) ;
 +
 + op . backoff = backoff ;
 + op . updateEffectiveRunTime ( ) ;
 +
 synchronized ( mSyncQueue ) {
 - mSyncQueue . onBackoffChanged ( op . account , op . authority , now + newDelayInMs ) ;
 + mSyncQueue . onBackoffChanged ( op . account , op . authority , backoff ) ;
 }
 }

Apply backoff to operation that caused it


<nb> public class ZenDiscovery extends AbstractLifecycleComponent < Discovery > implemen

 @ override
 public void onFailure ( String source , Throwable t ) {
 - logger . error ( STRING0 , t , source ) ;
 + if ( t instanceof ClusterService . NoLongerMasterException ) {
 + logger . debug ( STRING1 , source ) ;
 + } else {
 + logger . error ( STRING0 , t , source ) ;
 + }
 callback . onFailure ( t ) ;
 }

Discovery Improved logging when a join request is not executed because local node is no longer master


<nb> public class RobolectricTestRunner extends BlockJUnit4ClassRunner {
 int i = NUMBER0 ;
 for ( String path : artifacts . values ( ) ) {
 try {
 - urls [ i ++ ] = new URL ( STRING0 + path ) ;
 + urls [ i ++ ] = new URL ( STRING1 + path ) ;
 } catch ( MalformedURLException e ) {
 throw new RuntimeException ( e ) ;
 }


<nb> public class MediaSessionCompat {

 @ override
 public void setPlaybackState ( PlaybackStateCompat state ) {
 - MediaSessionCompatApi21 . setPlaybackState ( mSessionObj , state . getPlaybackState ( ) ) ;
 + MediaSessionCompatApi21 . setPlaybackState ( mSessionObj ,
 + state == null ? null : state . getPlaybackState ( ) ) ;
 }

 @ override
 public void setMetadata ( MediaMetadataCompat metadata ) {
 - MediaSessionCompatApi21 . setMetadata ( mSessionObj , metadata . getMediaMetadata ( ) ) ;
 + MediaSessionCompatApi21 . setMetadata ( mSessionObj ,
 + metadata == null ? null : metadata . getMediaMetadata ( ) ) ;
 }

 @ override

Add null check to MediaSessionCompat setMetadata and setPlaybackState


<nb> import NAMESPACE ;
 COMMENT
 public interface Decorator extends BatchExtension , CheckProject {

 + COMMENT
 + COMMENT
 + COMMENT
 void decorate ( Resource resource , DecoratorContext context ) ;

 }
 <nb> public abstract class SonarIndex implements DirectedGraphAccessor < Resource , Depe
 public abstract void setSource ( Resource reference , String source ) throws DuplicatedSourceException ;

 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public abstract String getSource ( Resource resource ) ;
 <nb> public abstract class SonarIndex implements DirectedGraphAccessor < Resource , Depe

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class SonarIndex implements DirectedGraphAccessor < Resource , Depe
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class ReportComputeEngineContainerPopulator implements ContainerPop

 MetricModule . class ,

 + SINGLE
 + PropertiesDao . class ,
 +
 SINGLE
 AnalysisMetadataHolderImpl . class ,
 CrossProjectDuplicationStatusHolderImpl . class ,


<nb> public abstract class WsRemoteEndpointBase implements RemoteEndpoint {

 @ override
 public SendResult get ( ) throws InterruptedException ,
 - ExecutionException {
 + ExecutionException {
 latch . await ( ) ;
 return result ;
 }
 <nb> public abstract class WsRemoteEndpointBase implements RemoteEndpoint {
 public SendResult get ( long timeout , TimeUnit unit )
 throws InterruptedException , ExecutionException ,
 TimeoutException {
 - latch . await ( timeout , unit ) ;
 + boolean retval = latch . await ( timeout , unit ) ;
 + if ( retval == false ) {
 + throw new TimeoutException ( ) ;
 + }
 return result ;
 }
 }


<nb> public class AprioriPhraseExtractorTest {
 for ( String s : SimpleSentenceSplitter . getInstance ( ) . split ( paragraph ) ) {
 String [ ] sentence = tokenizer . split ( s ) ;
 for ( int i = NUMBER0 ; i < sentence . length ; i ++ ) {
 - if ( stemmer . stripPluralParticiple ( sentence [ i ] ) . toLowerCase ( ) . equals ( STRING0 ) ) {
 - System . out . println ( Arrays . toString ( sentence ) ) ;
 - }
 sentence [ i ] = stemmer . stripPluralParticiple ( sentence [ i ] ) . toLowerCase ( ) ;
 }
 sentences . add ( sentence ) ;


<nb> public final class MccTable
 table . add ( new MccEntry ( NUMBER0 , STRING0 , NUMBER1 ) ) ; SINGLE
 table . add ( new MccEntry ( NUMBER2 , STRING1 , NUMBER1 ) ) ; SINGLE
 table . add ( new MccEntry ( NUMBER3 , STRING2 , NUMBER1 ) ) ; SINGLE
 - table . add ( new MccEntry ( NUMBER4 , STRING3 , NUMBER1 ) ) ; SINGLE
 + table . add ( new MccEntry ( NUMBER4 , STRING4 , NUMBER1 ) ) ; SINGLE
 table . add ( new MccEntry ( NUMBER5 , STRING5 , NUMBER1 ) ) ; SINGLE
 table . add ( new MccEntry ( NUMBER6 , STRING6 , NUMBER1 ) ) ; SINGLE
 table . add ( new MccEntry ( NUMBER7 , STRING7 , NUMBER1 ) ) ; SINGLE


<nb> class MemberSignatureParser {
 if ( method . annotationDefault != null ) {
 result . setCode ( new ReturnStatement ( new ConstantExpression ( method . annotationDefault ) ) ) ;
 result . setAnnotationDefault ( true ) ;
 + } else {
 + SINGLE
 + result . setCode ( new ReturnStatement ( ConstantExpression . NULL ) ) ;
 }

 }

let all asm decompiled methods have some dummy body


<nb> public class ActivityChooserModel extends DataSetObservable {
 }
 try {
 XmlPullParser parser = Xml . newPullParser ( ) ;
 - parser . setInput ( fis , null ) ;
 + parser . setInput ( fis , STRING0 ) ;

 int type = XmlPullParser . START_DOCUMENT ;
 while ( type != XmlPullParser . END_DOCUMENT && type != XmlPullParser . START_TAG ) {

Pass charset to XmlPullParser setInput instead of null


<nb> public class OSQLFunctionSum extends OSQLFunctionMathAbstract {

 public Object execute ( final OIdentifiable iCurrentRecord , ODocument iCurrentResult , final Object [ ] iParameters ,
 OCommandContext iContext ) {
 - if ( iParameters . length == NUMBER0 ) {
 + if ( iParameters . length == NUMBER1 ) {
 if ( iParameters [ NUMBER0 ] instanceof Number )
 sum ( ( Number ) iParameters [ NUMBER0 ] ) ;
 else if ( OMultiValue . isMultiValue ( iParameters [ NUMBER0 ] ) )


<nb> public class MemoizingEvaluatorTest {
 assertEquals ( STRING0 , old . getValue ( ) ) ;
 tester . invalidate ( ) ;
 StringValue current = ( StringValue ) tester . evalAndGet ( STRING1 ) ;
 - assertSame ( old , current ) ;
 + assertThat ( current ) . isEqualTo ( old ) ;
 }

 @ test
 <nb> public class MemoizingEvaluatorTest {
 tester . getOrCreate ( errorKey , COMMENT false ) . setHasTransientError ( true ) ;
 tester . invalidateTransientErrors ( ) ;
 stringValue = ( StringValue ) tester . evalAndGet ( COMMENT true , errorKey ) ;
 - assertSame ( stringValue , value ) ;
 + assertThat ( stringValue ) . isEqualTo ( value ) ;
 }

 @ test

Allow value equality in some MemoizingEvaluatorTest tests


<nb> public class TransposeRowsIntoColumnsOperation extends AbstractOperation {
 int columnIndex = project . columnModel . getColumnIndexByName ( _columnName ) ;
 int columnCount = oldColumns . size ( ) ;

 - newColumns . addAll ( oldColumns . subList ( NUMBER0 , columnIndex ) ) ;
 -
 for ( int i = NUMBER0 ; i < columnCount ; i ++ ) {
 Column column = oldColumns . get ( i ) ;

Fixed transpose rows into columns command which previously duplicated columns that precede the column being transposed


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JsBlock extends SourceInfoAwareJsNode implements JsStatement {
 }

 public JsBlock ( JsStatement statement ) {
 - this ( Collections . singletonList ( statement ) ) ;
 + this ( new SmartList < JsStatement > ( statement ) ) ;
 }

 public JsBlock ( JsStatement . . . statements ) {
 - this ( Arrays . asList ( statements ) ) ;
 + this ( new SmartList < JsStatement > ( statements ) ) ;
 }

 public JsBlock ( @ notnull List < JsStatement > statements ) {

made JsBlock statements list modifieable


<nb> public class Http11AprProtocol extends AbstractHttp11Protocol < Long > {

 private final Http11ConnectionHandler cHandler ;

 - public boolean getUseSendfile ( ) { return ( ( AprEndpoint ) endpoint ) . getUseSendfile ( ) ; }
 + public boolean getUseSendfile ( ) { return endpoint . getUseSendfile ( ) ; }
 public void setUseSendfile ( boolean useSendfile ) { ( ( AprEndpoint ) endpoint ) . setUseSendfile ( useSendfile ) ; }

 public int getPollTime ( ) { return ( ( AprEndpoint ) endpoint ) . getPollTime ( ) ; }
 <nb> public class Http11NioProtocol extends AbstractHttp11JsseProtocol < NioChannel > {

 public boolean getUseSendfile ( ) {
 - return ( ( NioEndpoint ) endpoint ) . getUseSendfile ( ) ;
 + return endpoint . getUseSendfile ( ) ;
 }

 public void setUseSendfile ( boolean useSendfile ) {


<nb> public class DefaultProjectFileSystem implements ProjectFileSystem {

 protected static final Predicate < File > DIRECTORY_EXISTS = new Predicate < File > ( ) {
 public boolean apply ( File input ) {
 - System . out . println ( input . toString ( ) + STRING0 + input . exists ( ) ) ;
 return input . exists ( ) && input . isDirectory ( ) ;
 }
 } ;


<nb> public abstract class BaseOutputReader extends BaseDataReader {
 }

 private void sendText ( @ notnull StringBuilder line ) {
 - onTextAvailable ( line . toString ( ) ) ;
 + String text = line . toString ( ) ;
 line . setLength ( NUMBER0 ) ;
 + onTextAvailable ( text ) ;
 }

 @ override

do not sendText twice in case of exception


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class FloatList implements Iterable < Float > {
 int count ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class IntList implements Iterable < Integer > {
 protected int count ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class StringList implements Iterable < String > {
 int count ;

Added related links to reference for IntList FloatList StringList


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

 final Language lang = psiElement . getLanguage ( ) ;
 - FindUsagesProvider provider = LanguageFindUsages . INSTANCE . forLanguage ( lang ) ;
 + final FindUsagesProvider provider = LanguageFindUsages . INSTANCE . forLanguage ( lang ) ;
 + assert provider != null : lang ;
 return provider . getDescriptiveName ( psiElement ) ;
 }

 <nb> public class UsageViewUtil {
 }

 @ notnull
 - public static UsageInfo [ ] toUsageInfoArray ( @ notnull final Collection < UsageInfo > collection ) {
 + public static UsageInfo [ ] toUsageInfoArray ( @ notnull final Collection < ? extends UsageInfo > collection ) {
 final int size = collection . size ( ) ;
 return size == NUMBER0 ? UsageInfo . EMPTY_ARRAY : collection . toArray ( new UsageInfo [ size ] ) ;
 }

Accept UsageInfo subclasses for a conversion to an array


<nb>
 package NAMESPACE ;

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

 import NAMESPACE ;

 - public class JetGotoImplementationMultifileTest extends KotlinCodeInsightTestCase {
 + public class JetGotoImplementationMultifileTest extends JetLightCodeInsightFixtureTestCase {
 public void testImplementFunInJava ( ) throws Exception {
 doKotlinJavaTest ( ) ;
 }
 <nb> public class JetGotoImplementationMultifileTest extends KotlinCodeInsightTestCas
 doMultifileTest ( getTestName ( false ) + STRING0 , getTestName ( false ) + STRING1 ) ;
 }

 + @ notnull
 + @ override
 + protected LightProjectDescriptor getProjectDescriptor ( ) {
 + return JetLightProjectDescriptor . INSTANCE ;
 + }
 +
 private void doMultifileTest ( String . . . fileNames ) throws Exception {
 - configureByFiles ( null , fileNames ) ;
 + myFixture . configureByFiles ( fileNames ) ;
 GotoTargetHandler . GotoData gotoData = NavigationTestUtils . invokeGotoImplementations ( getEditor ( ) , getFile ( ) ) ;
 NavigationTestUtils . assertGotoImplementations ( getEditor ( ) , gotoData ) ;
 }

Test base class of the test to be closer emulate IDE behaviour


<nb> public class PersistentCookieStore implements CookieStore {
 cookies . remove ( name ) ;
 }

 - SINGLE
 - cookies . put ( name , cookie ) ;
 -
 SINGLE
 SharedPreferences . Editor prefsWriter = cookiePrefs . edit ( ) ;
 prefsWriter . putString ( COOKIE_NAME_STORE , TextUtils . join ( STRING0 , cookies . keySet ( ) ) ) ;


<nb> public class WorldEdit {
 else skullType = NUMBER0 ;
 }
 if ( skullType == NUMBER0 ) {
 - return new SkullBlock ( data , rot , type ) ;
 + return new SkullBlock ( data , rot , type . replace ( STRING0 , STRING1 ) ) ; SINGLE
 } else {
 return new SkullBlock ( data , skullType , rot ) ;
 }

Skulls should use underscores for player names not spaces


<nb> public class ContainerMediaChunk extends BaseMediaChunk implements SingleTrackMe
 trackOutput . setSampleOffsetUs ( sampleOffsetUs ) ;
 extractorWrapper . init ( this , trackOutput ) ;
 }
 - SINGLE
 + SINGLE
 try {
 int result = Extractor . RESULT_CONTINUE ;
 while ( result == Extractor . RESULT_CONTINUE && ! loadCanceled ) {


<nb> public class OQueryOperatorBetween extends OQueryOperatorEqualityNotNulls {
 else
 result = index . getValuesBetween ( keyOne , true , keyTwo , true ) ;

 + if ( iOperationType == INDEX_OPERATION_TYPE . COUNT )
 + return OMultiValue . getSize ( result ) ;
 +
 } else {
 final OCompositeIndexDefinition compositeIndexDefinition = ( OCompositeIndexDefinition ) indexDefinition ;

 <nb> public class OQueryOperatorBetween extends OQueryOperatorEqualityNotNulls {
 else
 result = index . getValuesBetween ( keyOne , true , keyTwo , true ) ;

 + if ( iOperationType == INDEX_OPERATION_TYPE . COUNT )
 + return OMultiValue . getSize ( result ) ;
 }

 updateProfiler ( iContext , index , keyParams , indexDefinition ) ;

improved count against range using indexes


<nb> public class CallerRunsAccumulationExecutor implements AccumulationExecutor {
 this . serializationService = serializationService ;
 }

 + @ override
 @ suppresswarnings ( STRING0 )
 public AggregationResult execute (
 Aggregator aggregator , Collection < QueryableEntry > entries , Collection < Integer > partitionIds ) {
 <nb> public class CallerRunsAccumulationExecutor implements AccumulationExecutor {
 result . setPartitionIds ( partitionIds ) ;
 return result ;
 }
 -
 }

Added missing Override annotation in CallerRunsAccumulationExecutor


<nb> public class CoreAPI extends ApiImplementor {
 int sessionId = ( ( Integer ) v . get ( i ) ) . intValue ( ) ;
 RecordHistory recAlert = tableHistory . read ( sessionId ) ;
 HttpMessage msg = recAlert . getHttpMessage ( ) ;
 - if ( ! msg . getRequestHeader ( ) . isImage ( ) ) {
 + if ( ! msg . getRequestHeader ( ) . isImage ( ) && ! msg . getResponseHeader ( ) . isImage ( ) ) {
 mgss . add ( msg ) ;
 }
 }

Check isImage in response as well as request


<nb> import NAMESPACE ;
 COMMENT
 public final class QuasarInstrumentor {
 final static String EXAMINED_CLASS = null ; SINGLE
 - private final ThreadLocal < Boolean > recursive = new ThreadLocal < Boolean > ( ) ;
 private final MethodDatabase db ;
 private boolean check ;

 <nb> public final class QuasarInstrumentor {
 }

 public byte [ ] instrumentClass ( String className , byte [ ] data ) {
 - if ( recursive . get ( ) == Boolean . TRUE ) SINGLE
 - return data ;
 -
 - recursive . set ( Boolean . TRUE ) ;
 - try {
 - return shouldInstrument ( className ) ? instrumentClass ( className , new ClassReader ( data ) ) : data ;
 - } finally {
 - recursive . remove ( ) ;
 - }
 + return shouldInstrument ( className ) ? instrumentClass ( className , new ClassReader ( data ) ) : data ;
 }

 byte [ ] instrumentClass ( String className , FileInputStream fis ) throws IOException {

Removed recursion test in instrumentor unneeded and possibly harmful


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

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

 public class ModulesTest


<nb> public final class TvInputManagerService extends SystemService {
 }

 private void ensureParentalControlsPermission ( ) {
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + if ( mContext . checkCallingPermission (
 + android . Manifest . permission . MODIFY_PARENTAL_CONTROLS )
 + != PackageManager . PERMISSION_GRANTED ) {
 + throw new SecurityException (
 + STRING0 ) ;
 + }
 }

 @ override

Temporarily disable permission check for parental controls


<nb> public class SparkTask extends Task < SparkWork > {
 LOG . info ( String . format ( STRING0 , jobRef . getJobId ( ) ) ) ;
 logSparkStatistic ( sparkStatistics ) ;
 }
 + LOG . info ( STRING1 ) ;
 } else if ( rc == NUMBER0 ) { SINGLE
 jobRef . cancelJob ( ) ;
 }

Print Execution completed successfully as part of spark job info Spark Branch Ferdinand Xu reviewed by Xuefu Zhang


<nb> public class WebDavStore extends RemoteStore {
 builder . append ( STRING0 ) ;
 builder . append ( STRING1 ) ;
 builder . append ( STRING2 ) ;
 - builder . append ( STRING3 ) . append ( this . mUrl ) . append ( STRING4 ) ;
 + builder . append ( STRING5 ) . append ( this . mUrl ) . append ( STRING4 ) ;
 builder . append ( STRING6 ) ;
 builder . append ( STRING7 ) ;
 return builder . toString ( ) ;

Fetch sub folders when fetching folder list for WebDAV


<nb> public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve
 if ( splitDomain [ NUMBER0 ] . equals ( STRING0 ) ) {
 if ( action . equals ( STRING1 ) ) {
 if ( networkMonitor != null )
 - networkMonitor . startHeal ( ) ;
 + networkMonitor . rescheduleHeal ( ) ;
 }
 }
 }
 <nb> public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve
 logger . debug ( STRING2 , assocId , assocArg ) ;
 this . zController . sendData ( associationCommandClass . removeAssociationMessage ( assocId , assocArg ) ) ;
 }
 +
 + SINGLE
 + SINGLE
 + if ( networkMonitor != null )
 + networkMonitor . healNode ( nodeId ) ;
 }
 }
 }

Automatically update routes after associations are changed


<nb> public final class HikariPool implements HikariPoolMBean , IBagStateListener
 HikariMBeanElf . registerMBeans ( configuration , this ) ;
 }

 - addConnectionExecutor = createThreadPoolExecutor ( configuration . getMaximumPoolSize ( ) , STRING0 , configuration . getThreadFactory ( ) ) ;
 - closeConnectionExecutor = createThreadPoolExecutor ( configuration . getMaximumPoolSize ( ) , STRING1 , configuration . getThreadFactory ( ) ) ;
 + addConnectionExecutor = createThreadPoolExecutor ( configuration . getMaximumPoolSize ( ) , STRING2 + configuration . getPoolName ( ) + STRING3 , configuration . getThreadFactory ( ) ) ;
 + closeConnectionExecutor = createThreadPoolExecutor ( configuration . getMaximumPoolSize ( ) , STRING4 + configuration . getPoolName ( ) + STRING3 , configuration . getThreadFactory ( ) ) ;

 fillPool ( ) ;

Add pool name to filler and closer threads


<nb> import NAMESPACE ;
 COMMENT
 public class FiberAsyncListenableFuture < V > extends FiberAsync < V , Runnable , Void , ExecutionException > {
 public static < V > V get ( ListenableFuture < V > future ) throws ExecutionException , InterruptedException , SuspendExecution {
 - return new FiberAsyncListenableFuture < > ( future ) . run ( ) ;
 + if ( Fiber . currentFiber ( ) != null )
 + return new FiberAsyncListenableFuture < > ( future ) . run ( ) ;
 + else
 + return future . get ( ) ;
 }

 private final ListenableFuture < V > fut ;
 <nb> public class FiberAsyncListenableFuture < V > extends FiberAsync < V , Runnable , Void ,
 fut . addListener ( listener , sameThreadExecutor ) ;
 return null ;
 }
 -
 - private static final Executor sameThreadExecutor = new Executor ( ) {

 + private static final Executor sameThreadExecutor = new Executor ( ) {
 @ override
 public void execute ( Runnable command ) {
 command . run ( ) ;

FiberAsyncListenableFuture get now simply calls future get if called from a thread


<nb> class IntToIntBtree {
 FileUtil . delete ( file ) ;
 }

 - storage = new ResizeableMappedFile ( file , pageSize , storageLockContext , pageSize , true , IOUtil . ourByteBuffersUseNativeByteOrder ) ;
 + storage = new ResizeableMappedFile ( file , pageSize , storageLockContext , NUMBER0 * NUMBER0 , true , IOUtil . ourByteBuffersUseNativeByteOrder ) ;
 root = new BtreeIndexNodeView ( this ) ;

 if ( initial ) {


<nb> public class RequestArguments extends RequestStatics {
 String [ ] names = new String [ vecs . length ] ;
 int j = NUMBER0 ;
 for ( int i = NUMBER0 ; i < vecs . length ; ++ i ) {
 - if ( vecs [ i ] . min ( ) < vecs [ i ] . max ( ) &&
 - ( ( double ) vecs [ i ] . naCnt ( ) ) / vecs [ i ] . length ( ) <= FLOAT0 &&
 - ! vecs [ i ] . isUUID ( ) ) SINGLE
 - names [ j ++ ] = fr ( ) . _names [ i ] ; SINGLE
 + if ( ! vecs [ i ] . isUUID ( ) ) SINGLE
 + names [ j ++ ] = fr ( ) . _names [ i ] ;
 }
 return Arrays . copyOf ( names , j ) ;
 }

Remove NA and constant check for column filter


<nb> class PackageManagerService extends IPackageManager . Stub {
 mHandler . sendMessage ( msg ) ;
 }

 - public void setInstallerPackageName ( String targetPackage ,
 - String installerPackageName ) {
 - PackageSetting pkgSetting ;
 + public void setInstallerPackageName ( String targetPackage , String installerPackageName ) {
 final int uid = Binder . getCallingUid ( ) ;
 - final int permission = mContext . checkCallingPermission (
 - android . Manifest . permission . INSTALL_PACKAGES ) ;
 - final boolean allowedByPermission = ( permission == PackageManager . PERMISSION_GRANTED ) ;
 synchronized ( mPackages ) {
 PackageSetting targetPackageSetting = mSettings . mPackages . get ( targetPackage ) ;
 if ( targetPackageSetting == null ) {

Remove unused items in setInstallerPackageName


<nb> public class InternalTwitterContentUtils {
 if ( ! selectionArgs . isEmpty ( ) ) {
 builder . append ( STRING0 ) ;
 }
 - selectionArgs . add ( String . valueOf ( selectionArgs ) ) ;
 + selectionArgs . add ( String . valueOf ( userKey ) ) ;
 builder . append ( STRING1 ) . append ( STRING2 ) . append ( STRING3 ) . append ( Filters . Users . USER_ID ) . append ( STRING4 ) . append ( Filters . Users . TABLE_NAME ) . append ( STRING5 ) ;
 }
 if ( retweetedById != null ) {


<nb> public class TestConnections
 config . setInitializationFailFast ( true ) ;
 config . setConnectionTestQuery ( STRING0 ) ;
 config . setDataSourceClassName ( STRING1 ) ;
 + config . setPoolName ( STRING2 ) ;

 StubConnection . count . set ( NUMBER0 ) ;


<nb> public class GeneralCommandLine {
 if ( myEnvParams == null ) {
 return null ;
 }
 - final Map < String , String > envParams = new HashMap < String , String > ( myEnvParams ) ;
 + final Map < String , String > envParams = new HashMap < String , String > ( ) ;
 if ( myPassParentEnvs ) {
 envParams . putAll ( System . getenv ( ) ) ;
 }
 + envParams . putAll ( myEnvParams ) ;
 final String [ ] result = new String [ envParams . size ( ) ] ;
 int i = NUMBER0 ;
 for ( final String key : envParams . keySet ( ) ) {


<nb>
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT

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

 package NAMESPACE ;


<nb> public static Object invokeStaticMethod ( String className , String methodName , Obj

 public static Object getStaticField ( String className , String fieldName ) throws Exception {
 Class c = Class . forName ( className ) ;
 + if ( fieldName . equals ( STRING0 ) )
 + return c ;
 Field f = getField ( c , fieldName , true ) ;
 if ( f != null )
 {


<nb> public abstract class ChannelInitializer < C extends Channel > extends ChannelState
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected abstract void initChannel ( C ch ) throws Exception ;

 <nb> public abstract class AbstractNioChannel extends AbstractChannel {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected abstract boolean doConnect ( SocketAddress remoteAddress , SocketAddress localAddress ) throws Exception ;

 <nb> public final class NioEventLoop extends SingleThreadEventLoop {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> class LogStoreResource implements Resource {
 static class LogStoreRuntimeResource extends AbstractModelResource {

 private final ObjectName objectName ;
 - private volatile ModelNode model ;
 + private volatile ModelNode model = new ModelNode ( ) ;

 LogStoreRuntimeResource ( ObjectName objectName ) {
 this . objectName = objectName ;

initialize the model for the log store runtime resource


<nb> public interface WebSocketBase < T > extends ReadStream < T > , WriteStream < T > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 + @ fluent
 T writeMessage ( Buffer data ) ;


<nb> public final class AutoBuffer {
 return this ;
 }
 SINGLE
 + @ suppresswarnings ( STRING0 )
 public AutoBuffer putStr ( String s ) {
 if ( s == null ) return putInt ( - NUMBER0 ) ;
 SINGLE

Ignore deprecation warning inside autobuffer


<nb> public abstract class IStoredSettings {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean hasSettings ( String key ) {
 + return getString ( key , null ) != null ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add a method to test for the existence of a setting


<nb> import NAMESPACE ;
 public abstract class BetterAsyncTask < ParameterT , ProgressT , ReturnT > extends
 AsyncTask < ParameterT , ProgressT , ReturnT > {

 - private DroidFuApplication appContext ;
 + private final DroidFuApplication appContext ;
 + private final boolean contextIsDroidFuActivity ;

 private Exception error ;

 - private boolean contextIsDroidFuActivity , isTitleProgressEnabled ,
 + private boolean isTitleProgressEnabled ,
 isTitleProgressIndeterminateEnabled = true ;

 - private String callerId ;
 + private final String callerId ;

 private BetterAsyncTaskCallable < ParameterT , ProgressT , ReturnT > callable ;

Changed some variables to be final in BetterAsyncTask


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public final class ColorLineMarkerProvider implements LineMarkerProvider {
 + private final ElementColorProvider [ ] myExtensions = ElementColorProvider . EP_NAME . getExtensions ( ) ;
 +
 @ override
 public LineMarkerInfo getLineMarkerInfo ( PsiElement element ) {
 - for ( ElementColorProvider colorProvider : ElementColorProvider . EP_NAME . getExtensions ( ) ) {
 + for ( ElementColorProvider colorProvider : myExtensions ) {
 final Color color = colorProvider . getColorFrom ( element ) ;
 if ( color != null ) {
 return new MyInfo ( element , color , colorProvider ) ;

retrieve extension point implementations once per line marker provider


<nb> public class SemVer implements Comparable < SemVer > {
 }

 @ notnull
 - public static SemVer parseFromTextNonNullize ( @ notnull final String text ) {
 + public static SemVer parseFromTextNonNullize ( @ nullable final String text ) {
 + if ( text == null ) return UNKNOWN ;
 final SemVer ver = parseFromText ( text ) ;
 return ver == null ? UNKNOWN : ver ;
 }

SemVer create unknown version also from null text


<nb> public abstract class SherlockMapActivity extends MapActivity implements OnCreat

 @ override
 protected void onPostCreate ( Bundle savedInstanceState ) {
 - mSherlock . dispatchPostCreate ( savedInstanceState ) ;
 super . onPostCreate ( savedInstanceState ) ;
 + mSherlock . dispatchPostCreate ( savedInstanceState ) ;
 }

 @ override
 <nb> public class FragmentActivity extends Activity implements OnCreatePanelMenuListe
 }

 @ override
 + protected void onPostCreate ( Bundle savedInstanceState ) {
 + super . onPostCreate ( savedInstanceState ) ;
 + mSherlock . dispatchPostCreate ( savedInstanceState ) ;
 + }
 +
 + @ override
 public boolean onKeyUp ( int keyCode , KeyEvent event ) {
 if ( mSherlock . dispatchKeyUp ( keyCode , event ) ) {
 return true ;


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


<nb> public abstract class DB {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 public boolean isAuthenticated ( ) {
 return getAuthenticationCredentials ( ) != null ;
 }
 <nb> public abstract class DB {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - public boolean authenticate ( String username , char [ ] password ) {
 + @ deprecated
 + public boolean authenticate ( String username , char [ ] password ) {
 return authenticateCommandHelper ( username , password ) . failure == null ;
 }

 <nb> public abstract class DB {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - public synchronized CommandResult authenticateCommand ( String username , char [ ] password ) {
 + @ deprecated
 + public synchronized CommandResult authenticateCommand ( String username , char [ ] password ) {
 CommandResultPair commandResultPair = authenticateCommandHelper ( username , password ) ;
 if ( commandResultPair . failure != null ) {
 throw commandResultPair . failure ;


<nb> public class XMLTokenizeLanguage extends LanguageSupport {
 public void setMode ( char mode ) {
 this . mode = mode ;
 }
 +
 public int getGroup ( ) {
 return group ;
 }
 <nb> public class XMLTokenizerExpression extends NamespaceAwareExpression {
 @ override
 protected void configureExpression ( CamelContext camelContext , Expression expression ) {
 super . configureExpression ( camelContext , expression ) ;
 + if ( headerName != null ) {
 + setProperty ( expression , STRING0 , headerName ) ;
 + }
 if ( mode != null ) {
 setProperty ( expression , STRING1 , mode ) ;
 }
 <nb> public class XMLTokenizerExpression extends NamespaceAwareExpression {
 @ override
 protected void configurePredicate ( CamelContext camelContext , Predicate predicate ) {
 super . configurePredicate ( camelContext , predicate ) ;
 + if ( headerName != null ) {
 + setProperty ( predicate , STRING0 , headerName ) ;
 + }
 if ( mode != null ) {
 setProperty ( predicate , STRING1 , mode ) ;
 }

xmltokenizer did not set headerName option


<nb> public class CacheManagingDrawTask extends DrawTask {
 BaseDanmaku danmaku = ( BaseDanmaku ) msg . obj ;
 if ( ! danmaku . isTimeOut ( ) ) {
 createCache ( danmaku ) ;
 + if ( danmaku . cache != null ) {
 + push ( danmaku , danmaku . cache . size ( ) , true ) ;
 + }
 }
 break ;
 case REBUILD_CACHE :


<nb> import NAMESPACE ;
 import NAMESPACE ;

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


<nb> public class TelephonyIntents {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class TelephonyIntents {
 public static final String ACTION_CARRIER_SETUP = STRING0 ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public static final String CATEGORY_MCCMNC_PREFIX = STRING1 ;
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Remove unused constant from TelephonyIntents


<nb> public final class ZWaveNetworkMonitor implements ZWaveEventListener {
 COMMENT
 COMMENT
 private void nextHealStage ( HealNode healing ) {
 - logger . debug ( STRING0 , healing . state , healing . retryCnt ) ;
 + logger . debug ( STRING0 , healing . nodeId , healing . state , healing . retryCnt ) ;

 SINGLE
 if ( healing . state == HealState . FAILED ) {
 <nb> public final class ZWaveNetworkMonitor implements ZWaveEventListener {
 SINGLE
 SINGLE
 if ( healing . state == HealState . UPDATENEIGHBORS ) {
 + healing . retryCnt = NUMBER0 ;
 healing . state = healing . stateNext ;
 logger . debug ( STRING1 , healing . nodeId , healing . stateNext ) ;
 } else {


<nb> public class CompressionServletResponseWrapper

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public void setCompressionThreshold ( int threshold ) {
 if ( debug > NUMBER0 ) {

Trivial Javadoc commit to trigger a CI build


<nb> public class Version {

 public static final boolean SNAPSHOT = true ;
 - public static final Version CURRENT = new Version ( NUMBER0 , SNAPSHOT , org . elasticsearch . Version . V_2_4_2 ) ;
 + public static final Version CURRENT = new Version ( NUMBER1 , SNAPSHOT , org . elasticsearch . Version . V_2_4_2 ) ;

 static {
 SINGLE


<nb> class ASTIsNA extends ASTPrim {
 double op ( double d ) { return Double . isNaN ( d ) ? NUMBER0 : NUMBER1 ; }
 }

 - COMMENT
 - Currently this is NOT in place replacement !
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 class ASTNAOmit extends ASTPrim {
 @ override public String [ ] args ( ) { return new String [ ] { STRING0 } ; }
 @ override


<nb> public class Meter implements Metered {
 final long age = newTick - oldTick ;
 if ( age > TICK_INTERVAL && lastTick . compareAndSet ( oldTick , newTick ) ) {
 final long requiredTicks = age / TICK_INTERVAL ;
 - System . out . println ( STRING0 + requiredTicks ) ;
 for ( long i = NUMBER0 ; i < requiredTicks ; i ++ ) {
 tick ( ) ;
 }


<nb> public class Amenity extends MapObject {
 if ( this . additionalInfo == null ) {
 this . additionalInfo = new LinkedHashMap < String , String > ( ) ;
 }
 - this . additionalInfo . put ( tag , value ) ;
 - if ( OPENING_HOURS . equals ( tag ) ) {
 - this . openingHours = value ;
 + if ( STRING0 . equals ( tag ) ) {
 + setName ( value ) ;
 + } else if ( STRING1 . equals ( tag ) ) {
 + setEnName ( value ) ;
 + } else {
 + this . additionalInfo . put ( tag , value ) ;
 + if ( OPENING_HOURS . equals ( tag ) ) {
 + this . openingHours = value ;
 + }
 }
 }


<nb> public class Environment {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - public static String DIRECTORY_DOWNLOADS = STRING0 ;
 + public static String DIRECTORY_DOWNLOADS = STRING1 ;

 COMMENT
 COMMENT

playing audio file downloaded by the browser


<nb> public class MobileDataStateTracker implements NetworkStateTracker {
 case TelephonyManager . NETWORK_TYPE_HSPA :
 networkTypeStr = STRING0 ;
 break ;
 + case TelephonyManager . NETWORK_TYPE_HSPAP :
 + networkTypeStr = STRING1 ;
 + break ;
 case TelephonyManager . NETWORK_TYPE_CDMA :
 networkTypeStr = STRING2 ;
 break ;


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;

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

 - import static NAMESPACE ;
 - import static NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class IndexSamplingControllerTest

 SINGLE
 assertEquals ( NUMBER0 , concurrentCount . get ( ) ) ;
 - SINGLE
 + SINGLE
 SINGLE
 SINGLE
 int expected = totalCount . get ( ) ;
 - assertTrue ( STRING0 + expected , NUMBER1 >= expected || expected <= NUMBER2 ) ;
 + assertTrue ( STRING0 + expected , NUMBER1 >= expected && expected <= NUMBER2 ) ;
 }

 @ test


<nb> public class ExtractorService {
 }

 public void delete ( Node node , Input input , String extractorId ) throws IOException , APIException {
 - api . path ( resource . terminate ( input . getId ( ) , extractorId ) )
 + api . path ( resource . removeExtractor ( input . getId ( ) , extractorId ) )
 . node ( node )
 . expect ( Http . Status . NO_CONTENT )
 . execute ( ) ;

Fix ExtractorService after renaming ExtractorsResource terminate


<nb> public class NewStringBufferWithCharArgumentInspection extends BaseInspection {
 super . visitNewExpression ( expression ) ;
 final PsiExpressionList argumentList = expression . getArgumentList ( ) ;
 if ( argumentList == null ) {
 - System . out . println ( STRING0 ) ;
 return ;
 }
 final PsiExpression [ ] arguments = argumentList . getExpressions ( ) ;
 if ( arguments . length != NUMBER0 ) {
 - System . out . println ( STRING1 ) ;
 return ;
 }
 final PsiExpression argument = arguments [ NUMBER1 ] ;
 final PsiType type = argument . getType ( ) ;
 if ( ! PsiType . CHAR . equals ( type ) ) {
 - System . out . println ( STRING2 ) ;
 return ;
 }
 final PsiMethod constructor = expression . resolveConstructor ( ) ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Registry implements RegistryMBean , MBeanRegistration {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Remove comments that refer to code long since removed


<nb> public class DefaultGroovyMethods {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public static BitSet getAt ( BitSet self , IntRange range ) {
 int from = DefaultTypeTransformation . intUnbox ( range . getFrom ( ) ) ;


<nb> public class PinotSegmentRecordReader extends BaseRecordReader {
 dictionaryId = svSortedReader . getInt ( docNumber ) ;
 }
 if ( dictionary == null ) {
 - throw new IllegalStateException ( STRING0 + column ) ;
 + throw new IllegalStateException ( STRING1 + column ) ;
 }
 fields . put ( column , dictionary . get ( dictionaryId ) ) ;

Create PinotSegmentRecordReader and PinotSegmentToAvroConverter tool


<nb> public class WebParsingDeploymentProcessor implements DeploymentUnitProcessor {
 XMLSchemaValidator validator = new XMLSchemaValidator ( new XMLResourceResolver ( ) ) ;
 InputStream xmlInput = webXml . openStream ( ) ;
 try {
 - validator . validate ( webMetaData . getSchemaLocation ( ) , xmlInput ) ;
 + if ( webMetaData . is23 ( ) )
 + validator . validate ( STRING0 , xmlInput ) ;
 + else if ( webMetaData . is24 ( ) )
 + validator . validate ( STRING1 , xmlInput ) ;
 + else if ( webMetaData . is25 ( ) )
 + validator . validate ( STRING2 , xmlInput ) ;
 + else if ( webMetaData . is30 ( ) )
 + validator . validate ( STRING3 , xmlInput ) ;
 + else
 + validator . validate ( STRING4 , xmlInput ) ;
 } catch ( SAXException e ) {
 throw new DeploymentUnitProcessingException ( STRING5 + webXml , e ) ;
 } finally {

Use the schema corresponding to the version for validation


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MavenDependencyTypeConverter extends MavenProjectConstantListConver
 Set < String > res = new LinkedHashSet < String > ( ) ;

 res . addAll ( MavenProjectsManager . getInstance ( context . getProject ( ) ) . getImportingSettings ( ) . getDependencyTypesAsSet ( ) ) ;
 +
 + res . add ( MavenConstants . TYPE_POM ) ;
 +
 res . addAll ( project . getDependencyTypesFromImporters ( SupportedRequestType . FOR_COMPLETION ) ) ;

 return res ;
 <nb> public class MavenImportingSettings implements Cloneable {

 private GeneratedSourcesFolder generatedSourcesFolder = GeneratedSourcesFolder . AUTODETECT ;

 - private String dependencyTypes = STRING0 ;
 + private String dependencyTypes = STRING1 ;
 private Set < String > myDependencyTypesAsSet ;

 private List < Listener > myListeners = ContainerUtil . createLockFreeCopyOnWriteList ( ) ;


<nb> public class TestAssemblyProcessor
 {
 String [ ] lines = new String [ ] {
 STRING0 ,
 - STRING1 ,
 + STRING2 ,
 STRING3 ,
 STRING4 ,
 STRING5 ,
 <nb> public class TestAssemblyProcessor
 SINGLE
 int expectedAssemblyResults = ZERO ;
 String [ ] lines = new String [ ] {
 - STRING6 ,
 + STRING7 ,
 STRING2
 } ;

 <nb> public class TestTagProcessor
 Given a line containing an open tag
 And the closing angle bracket of the tag is missing
 When the tag processor parses such a line
 - Then no tags should be returned
 + Then nested tags should be returned
 COMMENT
 @ test
 - public void givenNestedLinesWithAParent_WhenTheTagProcessorActionsIt_ThenANestTagIsReturned ( ) {
 + public void givenNestedLinesWithAParent_WhenTheTagProcessorActionsIt_ThenANestedTagsAreReturned ( ) {
 SINGLE
 String expectedParseResult =
 STRING8 +

Fixed formatting corrected test name and scenario description


<nb> public class WindowManagerService extends IWindowManager . Stub
 SINGLE
 SINGLE
 SINGLE
 + boolean visibilityChanged = false ;
 if ( wtoken . hidden == visible || ( wtoken . hidden && wtoken . mIsExiting ) ||
 ( visible && wtoken . waitingForReplacement ( ) ) ) {
 boolean changed = false ;
 <nb> public class WindowManagerService extends IWindowManager . Stub
 }

 wtoken . hidden = wtoken . hiddenRequested = ! visible ;
 + visibilityChanged = true ;
 if ( ! visible ) {
 unsetAppFreezingScreenLocked ( wtoken , true , true ) ;
 } else {
 <nb> public class WindowManagerService extends IWindowManager . Stub
 }
 }

 + if ( visibilityChanged && visible && ! delayed ) {
 + SINGLE
 + SINGLE
 + wtoken . mEnteringAnimation = true ;
 + mActivityManagerAppTransitionNotifier . onAppTransitionFinishedLocked ( wtoken . token ) ;
 + }
 +
 return delayed ;
 }

Deliver onEnterAnimationComplete when there is no transition animation


<nb> public class TestVersions extends com . fasterxml . jackson . test . BaseTest
 assertEquals ( MAJOR_VERSION , v . getMajorVersion ( ) ) ;
 assertEquals ( MINOR_VERSION , v . getMinorVersion ( ) ) ;
 SINGLE
 - assertEquals ( NUMBER0 , v . getPatchLevel ( ) ) ;
 + SINGLE
 assertEquals ( GROUP_ID , v . getGroupId ( ) ) ;
 assertEquals ( ARTIFACT_ID , v . getArtifactId ( ) ) ;
 }


<nb> package NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public final class CategoryIds {


<nb> public class DiscoveryClient implements LookupService {
 arrangeListBasedonHostname ( serviceUrls ) ;
 serviceUrls . add ( NUMBER0 , primaryServiceUrl ) ;

 - logger . info (
 + logger . debug (
 STRING0 ,
 Arrays . toString ( serviceUrls . toArray ( ) ) ) ;
 t . stop ( ) ;
 <nb> public class DiscoveryClient implements LookupService {
 return ;
 }
 if ( ! serviceUrlList . equals ( eurekaServiceUrls . get ( ) ) ) {
 - logger . debug (
 + logger . info (
 STRING1 ,
 Arrays . toString ( eurekaServiceUrls . get ( )
 . toArray ( ) ) , Arrays


<nb>
 package NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class TransformUtil {
 public static Double quantize ( double val , double delta ) {


<nb> public final class Gmail {
 public static final String LABEL_OUTBOX = STRING0 ;

 public static final String AUTHORITY = STRING1 ;
 - private static final String TAG = STRING1 ;
 + private static final String TAG = STRING2 ;
 private static final String AUTHORITY_PLUS_CONVERSATIONS =
 STRING3 + AUTHORITY + STRING4 ;
 private static final String AUTHORITY_PLUS_LABELS =


<nb> public class HttpRequest {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class HttpRequest {
 return this ;
 }

 -
 COMMENT
 COMMENT
 COMMENT


<nb> public class RegistrationState
 COMMENT
 public String toString ( )
 {
 - return new StringBuffer ( STRING0 )
 - . append ( getStateName ( ) ) . toString ( ) ;
 + return STRING0 + getStateName ( ) ;
 }

 COMMENT

replaced use of a StringBuffer by a simple String concatenation as it is now optimized by the JVM


<nb> public class TimerHandler implements IUpdateHandler {
 private float mSecondsPassed ;
 private boolean mCallbackTriggered = false ;
 private final ITimerCallback mTimerCallback ;
 - private final boolean mAutoReset ;
 + private boolean mAutoReset ;

 SINGLE
 SINGLE
 <nb> public class TimerHandler implements IUpdateHandler {
 SINGLE
 SINGLE

 + public boolean isAutoReset ( ) {
 + return this . mAutoReset ;
 + }
 +
 + public void setAutoReset ( final boolean pAutoReset ) {
 + this . mAutoReset = pAutoReset ;
 + }
 +
 SINGLE
 SINGLE
 SINGLE

Made Auto Resetting of TimerHandler dis enable able


<nb> class KeyguardStatusViewManager implements OnClickListener {
 COMMENT
 COMMENT
 private static CharSequence makeCarierString ( CharSequence plmn , CharSequence spn ) {
 - if ( plmn != null && spn == null ) {
 - return plmn ;
 - } else if ( plmn != null && spn != null ) {
 + final boolean plmnValid = ! TextUtils . isEmpty ( plmn ) ;
 + final boolean spnValid = ! TextUtils . isEmpty ( spn ) ;
 + if ( plmnValid && spnValid ) {
 return plmn + STRING0 + spn ;
 - } else if ( plmn == null && spn != null ) {
 + } else if ( plmnValid ) {
 + return plmn ;
 + } else if ( spnValid ) {
 return spn ;
 } else {
 return STRING1 ;

Check for empty plmn spn strings instead of just null


<nb> public class NioClientManager extends AbstractExecutionThreadService implements
 try {
 if ( sc . finishConnect ( ) ) {
 log . info ( STRING0 , sc . socket ( ) . getRemoteSocketAddress ( ) ) ;
 - handler . parser . connectionOpened ( ) ;
 key . interestOps ( SelectionKey . OP_READ ) . attach ( handler ) ;
 + handler . parser . connectionOpened ( ) ;
 } else {
 log . error ( STRING1 , sc . socket ( ) . getRemoteSocketAddress ( ) ) ;
 handler . closeConnection ( ) ; SINGLE

Fix reentrance bug when writing in connectionOpened


<nb> import NAMESPACE ;
 public class SettingsFragment extends PreferenceFragment {
 public static final String SETTINGS_PREFERENCES = STRING0 ;

 + private AlertDialog mDialog ;
 private SharedPreferences mSettings ;
 private WPEditTextPreference mTaglineTextPreference ;

 <nb> public class SettingsFragment extends PreferenceFragment {
 }
 } ;

 - private AlertDialog mDialog ;
 private final OnPreferenceClickListener languagePreferenceClickListener = new OnPreferenceClickListener ( ) {
 @ override
 public boolean onPreferenceClick ( Preference preference ) {


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

 - public class SchematicBlock extends SchematicBlockBase implements Comparable < SchematicBlock > {
 + public class SchematicBlock extends SchematicBlockBase {

 public Block block = null ;
 public int meta = NUMBER0 ;
 <nb> public class SchematicBlock extends SchematicBlockBase implements Comparable < Sc
 }

 @ override
 - public int compareTo ( SchematicBlock o ) {
 - return NUMBER0 ;
 - }
 -
 public boolean isStandalone ( ) {
 return block . isOpaqueCube ( ) ;
 }


<nb> public class JMXAccessorQueryTask extends JMXAccessorTask {
 return isError ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - protected void bindAttributes ( MBeanServerConnection jmxServerConnection ,
 - String resultproperty , String pname , ObjectName oname ) {
 - bindAttributes ( jmxServerConnection , pname , oname ) ;
 - }
 -
 protected void bindAttributes ( MBeanServerConnection jmxServerConnection , String pname , ObjectName oname ) {
 try {
 MBeanInfo minfo = jmxServerConnection . getMBeanInfo ( oname ) ;


<nb> public class NumpyDocStringTypeProvider extends PyTypeProviderBase {
 }
 if ( paramType != null ) {
 if ( isUfuncType ( function , paramType ) ) {
 - return getPsiFacade ( function ) . parseTypeAnnotation ( STRING0 , function ) ;
 + return getPsiFacade ( function ) . parseTypeAnnotation ( STRING1 , function ) ;
 }
 final PyType numpyDocType = parseNumpyDocType ( function , paramType ) ;
 if ( STRING2 . equals ( parameterName ) ) {

allow passing all sequence types for array and array like parameters


<nb> public class MainActivity extends SherlockFragmentActivity {
 viewpager . setAdapter ( pagerAdapter ) ;

 Tab feedsTab = getSupportActionBar ( ) . newTab ( ) ;
 - feedsTab . setText ( R . string . feeds_label ) ;
 + feedsTab . setText ( R . string . podcasts_label ) ;
 Tab episodesTab = getSupportActionBar ( ) . newTab ( ) ;
 episodesTab . setText ( R . string . episodes_label ) ;


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


<nb> public class FragmentMain extends Fragment {
 searchView . setOnQueryTextListener ( onQuerySearchView ) ;

 menu . findItem ( R . id . menu_add ) . setVisible ( true ) ;
 -
 +
 mSearchCheck = false ;
 }

Remove unnecessary dependency of AppCompat library


<nb> public class ControllerActionTransformer implements GrailsArtefactClassInjector ,
 commandObjectNode ,
 grails . validation . Validateable . class ,
 grails . persistence . Entity . class ,
 - javax . persistence . Entity . class ) ;
 + javax . persistence . Entity . class ) ||
 + commandObjectNode . implementsInterface ( ClassHelper . make ( grails . artefact . Validateable . class ) ) ;

 if ( ! argumentIsValidateable ) {
 final ModuleNode commandObjectModule = commandObjectNode . getModule ( ) ;
 <nb> public class ControllerActionTransformer implements GrailsArtefactClassInjector ,

 final String warningMessage = STRING0 + actionName + STRING1 +
 commandObjectNode . getName ( ) +
 - STRING2 +
 + STRING3 +
 STRING4 ;
 GrailsASTUtils . warning ( source , actionNode , warningMessage ) ;
 }

command objects should respect the Validateable trait


<nb> public final class HttpString implements Comparable < HttpString > , Serializable {
 COMMENT
 COMMENT
 public void appendTo ( ByteBuffer buffer ) {
 - buffer . put ( bytes ) ;
 + for ( int i = NUMBER0 ; i < bytes . length ; ++ i ) {
 + buffer . put ( bytes [ i ] ) ;
 + }
 }

 COMMENT


<nb> public class RedisDecoder extends ReplayingDecoder < Reply , VoidEnum > {
 }

 @ override
 - public Reply decode ( ChannelInboundHandlerContext < Byte > channelHandlerContext , ChannelBuffer channelBuffer , VoidEnum anEnum ) throws Exception {
 + public Reply decode ( ChannelInboundHandlerContext < Byte > channelHandlerContext , ChannelBuffer channelBuffer ) throws Exception {
 if ( reply != null ) {
 reply . read ( this , channelBuffer ) ;
 Reply ret = reply ;
 <nb> public class ReplayingDecoderTest {
 }

 @ override
 - public ChannelBuffer decode ( ChannelInboundHandlerContext < Byte > ctx ,
 - ChannelBuffer in , VoidEnum state ) throws Exception {
 + public ChannelBuffer decode ( ChannelInboundHandlerContext < Byte > ctx , ChannelBuffer in ) {
 ChannelBuffer msg = in . readBytes ( in . bytesBefore ( ChannelBufferIndexFinder . LF ) ) ;
 in . skipBytes ( NUMBER0 ) ;
 return msg ;


<nb> public class PathFinding implements IIterableAlgorithm {
 int y = from . index . y + dy ;
 int z = from . index . z + dz ;

 - if ( endReached ( x , y , z ) ) {
 + if ( y < NUMBER0 ) {
 + resultMoves [ dx + NUMBER1 ] [ dy + NUMBER1 ] [ dz + NUMBER1 ] = NUMBER0 ;
 + } else if ( endReached ( x , y , z ) ) {
 resultMoves [ dx + NUMBER1 ] [ dy + NUMBER1 ] [ dz + NUMBER1 ] = NUMBER2 ;
 } else if ( ! BuildCraftAPI . isSoftBlock ( world , x , y , z ) ) {
 resultMoves [ dx + NUMBER1 ] [ dy + NUMBER1 ] [ dz + NUMBER1 ] = NUMBER0 ;

fix a robot error on void worlds or worlds with holes in bedrock


<nb> public class Solo {
 COMMENT
 COMMENT

 - public boolean waitForActivityStackToBeEmpty ( int timeout )
 + public boolean waitForEmptyActivityStack ( int timeout )
 {
 return waiter . waitForCondition (
 new Condition ( ) {


<nb> public class ZygoteInit {
 count ++ ;
 } catch ( ClassNotFoundException e ) {
 Log . w ( TAG , STRING0 + line ) ;
 + } catch ( UnsatisfiedLinkError e ) {
 + Log . w ( TAG , STRING1 + line + STRING2 + e ) ;
 } catch ( Throwable t ) {
 Log . e ( TAG , STRING3 + line + STRING4 , t ) ;
 if ( t instanceof Error ) {


<nb> public class FunctionRegistry

 SINGLE
 Type type = typeManager . getType ( typeName ) ;
 - checkArgument ( type != null , STRING0 , typeName ) ;
 + checkNotNull ( type , STRING0 , typeName ) ;

 SINGLE
 checkArgument ( parameterTypes . size ( ) == NUMBER0 , STRING1 , parameterTypes ) ;


<nb> final class AttributeProviderRegistry {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public boolean hasReader ( Class < ? extends BasicFileAttributes > type ) {
 - return readers . containsKey ( type ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 @ suppresswarnings ( STRING0 )


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

 - public class LambdaTest {
 + public class LambdaIT {

 @ test
 public void test ( ) throws Exception {
 <nb> public class LambdaTest {
 }

 public static void main ( String args [ ] ) throws Exception {
 - new LambdaTest ( ) . test ( ) ;
 + new LambdaIT ( ) . test ( ) ;
 }

 }


<nb> public class SourceFormatter {
 String content = _fileUtil . read ( file ) ;

 if ( _isGenerated ( content ) ) {
 - return ;
 + continue ;
 }

 String className = file . getName ( ) ;


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public abstract class ExternalResourceManager {
 + public abstract class ExternalResourceManager implements ModificationTracker {
 public static ExternalResourceManager getInstance ( ) {
 return ApplicationManager . getApplication ( ) . getComponent ( ExternalResourceManager . class ) ;
 }
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class ExternalResourceManagerImpl extends ExternalResourceManagerEx implements JDOMExternalizable , ApplicationComponent , ModificationTracker {
 + public class ExternalResourceManagerImpl extends ExternalResourceManagerEx implements JDOMExternalizable , ApplicationComponent {
 private static final Logger LOG = Logger . getInstance ( STRING0 ) ;

 @ nonnls public static final String J2EE_1_3 = STRING1 ;


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

 import NAMESPACE ;
 import NAMESPACE ;


<nb> public abstract class Language {
 }

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


<nb> package NAMESPACE ;
 import NAMESPACE ;

 public final class IntIntHashMap extends TIntIntHashMap {
 - public IntIntHashMap ( int initialCapacity ) {
 + private static final int DEFAULT_NULL_VALUE = - NUMBER0 ;
 +
 + private final int NULL_VALUE ;
 +
 + public IntIntHashMap ( int initialCapacity , int null_value ) {
 super ( initialCapacity ) ;
 + NULL_VALUE = null_value ;
 + }
 +
 + public IntIntHashMap ( int initialCapacity ) {
 + this ( initialCapacity , DEFAULT_NULL_VALUE ) ;
 }

 public IntIntHashMap ( ) {
 + NULL_VALUE = DEFAULT_NULL_VALUE ;
 }

 @ override
 public int get ( int key ) {
 int index = index ( key ) ;
 - return index < NUMBER1 ? - NUMBER0 : _values [ index ] ;
 + return index < NUMBER1 ? NULL_VALUE : _values [ index ] ;
 }
 }


<nb> public class TruncatedRecoveryTests extends ElasticsearchIntegrationTest {
 public void sendRequest ( DiscoveryNode node , long requestId , String action , TransportRequest request , TransportRequestOptions options ) throws IOException , TransportException {
 if ( action . equals ( RecoveryTarget . Actions . FILE_CHUNK ) ) {
 RecoveryFileChunkRequest req = ( RecoveryFileChunkRequest ) request ;
 - if ( ( req . name ( ) . endsWith ( STRING0 ) || req . name ( ) . endsWith ( STRING1 ) ) && req . lastChunk ( ) && truncate . get ( ) ) {
 + logger . debug ( STRING2 + req . toString ( ) + STRING3 + req . lastChunk ( ) ) ;
 + if ( ( req . name ( ) . endsWith ( STRING0 ) || req . name ( ) . endsWith ( STRING1 ) ) && req . lastChunk ( ) && truncate . get ( ) ) {
 latch . countDown ( ) ;
 throw new RuntimeException ( STRING4 ) ;
 }

TEST Add more logging to TruncatedRecoveryTests


<nb> public class Callbacks {
 Collection < StringCache . S > getClassFiles ( ) ;

 void associate ( String classFileName , SourceFileNameLookup sourceLookup , ClassReader cr ) ;
 -
 - void associate ( Set < Pair < ClassRepr , Set < StringCache . S > > > classes ,
 - Pair < UsageRepr . Cluster , Set < UsageRepr . Usage > > usages ,
 - String sourceFileName ) ;
 -
 void associateForm ( StringCache . S formName , StringCache . S className ) ;
 }
 }

Fixed dependency update essentially simplified representation JPS incremental


<nb> public class OStorageRemote extends OStorageAbstract implements OStorageProxy {
 try {
 engine . getConnectionManager ( ) . remove ( iNetwork ) ;
 } catch ( Exception e ) {
 - OLogManager . instance ( ) . error ( this , STRING0 , e ) ;
 + OLogManager . instance ( ) . debug ( this , STRING1 , e ) ;
 }
 } else {
 OLogManager . instance ( ) . warn ( this , STRING2 ,


<nb> public class PolishIndicesAnalysis extends AbstractComponent {
 @ inject
 public PolishIndicesAnalysis ( Settings settings , IndicesAnalysisService indicesAnalysisService ) {
 super ( settings ) ;
 - indicesAnalysisService . analyzerProviderFactories ( ) . put ( STRING0 , new PreBuiltAnalyzerProviderFactory ( STRING0 , AnalyzerScope . INDICES , new PolishAnalyzer ( Lucene . ANALYZER_VERSION ) ) ) ;
 + indicesAnalysisService . analyzerProviderFactories ( ) . put ( STRING1 , new PreBuiltAnalyzerProviderFactory ( STRING1 , AnalyzerScope . INDICES , new PolishAnalyzer ( Lucene . ANALYZER_VERSION ) ) ) ;

 indicesAnalysisService . tokenFilterFactories ( ) . put ( STRING2 , new PreBuiltTokenFilterFactoryFactory ( new TokenFilterFactory ( ) {
 @ override public String name ( ) {

Stempel sets itself as the default analyzer


<nb> public class MBeanUtils {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 public static String getDomain ( Container container ) {

 String domain = null ;


<nb> import NAMESPACE ;
 public class BroadcasterConfig {
 public final static Logger logger = LoggerUtils . getLogger ( ) ;

 - final static int numOfProcessor = Runtime . getRuntime ( ) . availableProcessors ( ) ;
 -
 protected final ConcurrentLinkedQueue < BroadcastFilter > filters =
 new ConcurrentLinkedQueue < BroadcastFilter > ( ) ;

 <nb> public class BroadcasterConfig {
 public ScheduledExecutorService getScheduledExecutorService ( ) {
 synchronized ( lock ) {
 if ( scheduler == null ) {
 - scheduler = Executors . newScheduledThreadPool ( numOfProcessor ) ;
 + scheduler = Executors . newSingleThreadScheduledExecutor ( ) ;
 }
 }
 return scheduler ;


<nb> public class EntityChangeBlockEvent extends EntityEvent implements Cancellable {
 private final Block block ;
 private boolean cancel ;
 private final Material to ;
 + private final byte data ;

 public EntityChangeBlockEvent ( final LivingEntity what , final Block block , final Material to ) {
 + this ( what , block , to , ( byte ) NUMBER0 ) ;
 + }
 +
 + public EntityChangeBlockEvent ( final LivingEntity what , final Block block , final Material to , final byte data ) {
 super ( what ) ;
 this . block = block ;
 this . cancel = false ;
 this . to = to ;
 + this . data = data ;
 }

 @ override
 <nb> public class EntityChangeBlockEvent extends EntityEvent implements Cancellable {
 return to ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public byte getData ( ) {
 + return data ;
 + }
 +
 @ override
 public HandlerList getHandlers ( ) {
 return handlers ;

Add data values for entity change block event


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

 import NAMESPACE ;

Add license header to EventCollectingHandler


<nb> public class ShadowContextImpl extends ShadowContext {
 SYSTEM_SERVICE_MAP . put ( Context . TEXT_SERVICES_MANAGER_SERVICE , STRING0 ) ;
 SYSTEM_SERVICE_MAP . put ( Context . DEVICE_POLICY_SERVICE , STRING1 ) ;
 SYSTEM_SERVICE_MAP . put ( Context . DROPBOX_SERVICE , STRING2 ) ;
 + SYSTEM_SERVICE_MAP . put ( Context . MEDIA_ROUTER_SERVICE , STRING3 ) ;
 }

 @ realobject private Context realContextImpl ;
 <nb> public class ApplicationTest {
 checkSystemService ( Context . DOWNLOAD_SERVICE , android . app . DownloadManager . class ) ;
 checkSystemService ( Context . DEVICE_POLICY_SERVICE , android . app . admin . DevicePolicyManager . class ) ;
 checkSystemService ( Context . DROPBOX_SERVICE , android . os . DropBoxManager . class ) ;
 + checkSystemService ( Context . MEDIA_ROUTER_SERVICE , android . media . MediaRouter . class ) ;
 }

 @ test public void shouldProvideLayoutInflater ( ) throws Exception {

Implement Context getSystemService for MediaRouter


<nb> public class SessionFactoryFactory {

 final ServiceRegistry registry = new ServiceRegistryBuilder ( )
 . addService ( ConnectionProvider . class , connectionProvider )
 + . applySettings ( properties )
 . buildServiceRegistry ( ) ;

 return configuration . buildSessionFactory ( registry ) ;


<nb>
 - package NAMESPACE ;
 + package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;