<nb> public class NettyAsyncHttpProvider extends IdleStateHandler implements AsyncHtt
 } else if ( path . length ( ) > NUMBER0 && path . charAt ( NUMBER0 ) != STRING0 ) {
 throw new IllegalArgumentException ( STRING1 + uri
 + STRING2 ) ;
 - }
 + } else if ( path . length ( ) == NUMBER0 ) {
 + return URI . create ( u + STRING3 ) ;
 + }

 return uri ;
 }

Handle the case where the path is not specified defaulting to


<nb> public class TMXLayer extends RectangularShape implements TMXConstants {
 final float width = super . mWidth ;
 super . mBaseWidth = width ;

 - super . mHeight = pTMXTiledMap . getTileWidth ( ) * this . mTileColumns ;
 + super . mHeight = pTMXTiledMap . getTileHeight ( ) * this . mTileColumns ;
 final float height = super . mHeight ;
 super . mBaseHeight = height ;

Fixed bug in calculation of height of a TMXLayer that only applied with non square TileMaps


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class ActiveSyncInfo {
 - COMMENT
 private final int authorityId ;
 - COMMENT
 private final Account account ;
 - COMMENT
 private final String authority ;
 - COMMENT
 private final long startTime ;

 COMMENT
 <nb> public class ActiveSyncInfo {
 return new ActiveSyncInfo [ size ] ;
 }
 } ;
 - }
 + }


<nb> public class Schema < I extends Iced , S extends Schema < I , S > > extends Iced {
 int idx = clz_name . lastIndexOf ( STRING0 ) ;
 if ( idx == - NUMBER0 ) return - NUMBER0 ;
 try { return Integer . valueOf ( clz_name . substring ( idx + NUMBER0 ) ) ; }
 - catch ( NumberFormatException _ ) { return - NUMBER0 ; }
 + catch ( NumberFormatException ex ) { return - NUMBER0 ; }
 }

 COMMENT


<nb> public abstract class AbstractProject implements ProjectInternal {
 this . rootProject = rootProject ;
 }

 - public Build getBuild ( ) {
 - return build ;
 - }
 -
 - public BuildInternal getBuildInternal ( ) {
 + public BuildInternal getBuild ( ) {
 return build ;
 }

 <nb> public class DefaultProjectServiceRegistryFactory implements ProjectServiceRegis
 public < T > T get ( Class < T > serviceType ) throws IllegalArgumentException {
 if ( serviceType . isAssignableFrom ( ProjectPluginsContainer . class ) ) {
 if ( projectPluginsHandler == null ) {
 - projectPluginsHandler = new DefaultProjectsPluginContainer ( project . getBuildInternal ( ) . getPluginRegistry ( ) ) ;
 + projectPluginsHandler = new DefaultProjectsPluginContainer ( project . getBuild ( ) . getPluginRegistry ( ) ) ;
 }
 return serviceType . cast ( projectPluginsHandler ) ;
 }
 <nb> public interface ProjectInternal extends Project , ProjectIdentifier {

 StandardOutputRedirector getStandardOutputRedirector ( ) ;

 - BuildInternal getBuildInternal ( ) ;
 + BuildInternal getBuild ( ) ;
 }

Override getBuild in ProjectInternal to return a BuildInternal instead of a Build


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class UserManager {
 COMMENT
 COMMENT
 public boolean isUserAGoat ( ) {
 - return false ;
 + return mContext . getPackageManager ( )
 + . isPackageAvailable ( STRING0 ) ;
 }

 COMMENT


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

Fixed a depracated issue of CometdComponent


<nb> public class DatabaseDescriptor
 }
 }

 - try
 - {
 - listenAddress = InetAddress . getByName ( conf . listen_address ) ;
 - }
 - catch ( UnknownHostException e )
 - {
 - throw new ConfigurationException ( STRING0 + conf . listen_address + STRING1 ) ;
 - }
 -
 COMMENT
 if ( conf . broadcast_address != null )
 {


<nb> public class HiveClient

 return partitions ;
 }
 - catch ( NoSuchObjectException | NullPointerException | IllegalStateException | IllegalArgumentException e ) {
 + catch ( PrestoException | NoSuchObjectException | NullPointerException | IllegalStateException | IllegalArgumentException e ) {
 throw Throwables . propagate ( e ) ;
 }
 catch ( MetaException | RuntimeException e ) {

Fix retry handling for offline partitions


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - final class DefaultChannelId implements ChannelId {
 + public final class DefaultChannelId implements ChannelId {

 private static final long serialVersionUID = NUMBER0 ;

 <nb> final class DefaultChannelId implements ChannelId {

 private static final AtomicInteger nextSequence = new AtomicInteger ( ) ;

 - static ChannelId newInstance ( ) {
 + COMMENT
 + COMMENT
 + COMMENT
 + public static DefaultChannelId newInstance ( ) {
 DefaultChannelId id = new DefaultChannelId ( ) ;
 id . init ( ) ;
 return id ;
 <nb> final class DefaultChannelId implements ChannelId {
 private transient String shortValue ;
 private transient String longValue ;

 + private DefaultChannelId ( ) { }
 +
 private void init ( ) {
 int i = NUMBER1 ;

Change DefaultChannelId visibility to default


<nb> public class WifiStateMachine extends StateMachine {
 COMMENT
 private final int mDefaultSupplicantScanIntervalMs ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + private long mLastEnableAllNetworksTime ;
 +

 private static final int MIN_RSSI = - NUMBER0 ;
 private static final int MAX_RSSI = NUMBER1 ;
 <nb> public class WifiStateMachine extends StateMachine {
 mReplyChannel . replyToMessage ( message , message . what , ok ? SUCCESS : FAILURE ) ;
 break ;
 case CMD_ENABLE_ALL_NETWORKS :
 - WifiConfigStore . enableAllNetworks ( ) ;
 + long time = android . os . SystemClock . elapsedRealtime ( ) ;
 + if ( time - mLastEnableAllNetworksTime > MIN_INTERVAL_ENABLE_ALL_NETWORKS_MS ) {
 + WifiConfigStore . enableAllNetworks ( ) ;
 + mLastEnableAllNetworksTime = time ;
 + }
 break ;
 case CMD_DISABLE_NETWORK :
 ok = WifiConfigStore . disableNetwork ( message . arg1 , message . arg2 ) ;

Add a time threshold for re enabling networks


<nb> public class AsyncQueryForwardingServlet extends HttpServlet
 }
 }

 - private String makeUrl ( String host , HttpServletRequest req )
 + private String makeUrl ( final String host , final HttpServletRequest req )
 {
 - String queryString = req . getQueryString ( ) ;
 + final String queryString = req . getQueryString ( ) ;
 + final String requestURI = req . getRequestURI ( ) == null ? STRING0 : req . getRequestURI ( ) ;

 if ( queryString == null ) {
 - return String . format ( STRING1 , host , req . getRequestURI ( ) ) ;
 + return String . format ( STRING1 , host , requestURI ) ;
 }
 - return String . format ( STRING2 , host , req . getRequestURI ( ) , req . getQueryString ( ) ) ;
 + return String . format ( STRING2 , host , requestURI , queryString ) ;
 }
 }


<nb> public class HighlyAvailableGraphDatabaseFactory extends GraphDatabaseFactory

 public GraphDatabaseService newHighlyAvailableDatabase ( String path )
 {
 - return newEmbeddedDatabaseBuilder ( path ) . newGraphDatabase ( ) ;
 + return newHighlyAvailableDatabaseBuilder ( path ) . newGraphDatabase ( ) ;
 }

 public GraphDatabaseBuilder newHighlyAvailableDatabaseBuilder ( final String path )

use the correct builder in HighlyAvailableGraphDatabaseFactory


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

 @ path ( STRING0 )
 @ api ( value = STRING1 , description = STRING2 )
 + @ consumes ( MediaType . APPLICATION_JSON )
 + @ produces ( MediaType . APPLICATION_JSON )
 public class SessionsResource extends RestResource {
 private static final Logger LOG = LoggerFactory . getLogger ( SessionsResource . class ) ;

 <nb> public class SessionsResource extends RestResource {
 notes = STRING3 ,
 code = NUMBER0
 )
 - @ produces ( MediaType . APPLICATION_JSON )
 public SessionValidationResponse validateSession ( @ context ContainerRequestContext requestContext ) {
 try {
 this . authenticationFilter . filter ( requestContext ) ;

Add missing Consumes and Produces annotations to SessionsResource


<nb> public class CuboidRegion implements Region {
 }
 }

 - pos1 = pos1 . clampY ( NUMBER0 , world . getMaxY ( ) ) ;
 - pos2 = pos2 . clampY ( NUMBER0 , world . getMaxY ( ) ) ;
 + pos1 = pos1 . clampY ( NUMBER0 , world == null ? NUMBER1 : world . getMaxY ( ) ) ;
 + pos2 = pos2 . clampY ( NUMBER0 , world == null ? NUMBER1 : world . getMaxY ( ) ) ;
 }

 COMMENT

Fixed a NullPointerException in conjunction with CraftBook


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

 COMMENT
 <nb> public class RepositoryLibraryProperties extends LibraryProperties < RepositoryLib
 return artifactId ;
 }

 - @ ignore
 public String getVersion ( ) {
 return version ;
 }


<nb> public final class MockWebServer {
 public void start ( int port ) throws IOException {
 if ( executor != null ) throw new IllegalStateException ( STRING0 ) ;
 executor = Executors . newCachedThreadPool ( Util . threadFactory ( STRING1 , false ) ) ;
 - inetAddress = InetAddress . getByName ( null ) ;
 + inetAddress = InetAddress . getByName ( STRING2 ) ;
 serverSocket = serverSocketFactory . createServerSocket ( ) ;
 serverSocket . setReuseAddress ( port != NUMBER0 ) ; SINGLE
 serverSocket . bind ( new InetSocketAddress ( inetAddress , port ) , NUMBER1 ) ;

Modify the way MockWebServer selects a host IP to bind to


<nb> public final class ShardPath {
 SINGLE
 final NodeEnvironment . NodePath [ ] paths = env . nodePaths ( ) ;
 NodeEnvironment . NodePath bestPath = null ;
 - BigInteger maxUsableBytes = BigInteger . valueOf ( - NUMBER0 ) ;
 + BigInteger maxUsableBytes = BigInteger . valueOf ( Long . MIN_VALUE ) ;
 for ( NodeEnvironment . NodePath nodePath : paths ) {
 FileStore fileStore = nodePath . fileStore ;

 <nb> public final class ShardPath {
 if ( count != null ) {
 usableBytes = usableBytes . subtract ( estShardSizeInBytes . multiply ( BigInteger . valueOf ( count ) ) ) ;
 }
 - if ( usableBytes . compareTo ( maxUsableBytes ) > NUMBER1 ) {
 + if ( bestPath == null || usableBytes . compareTo ( maxUsableBytes ) > NUMBER1 ) {
 maxUsableBytes = usableBytes ;
 bestPath = nodePath ;
 }


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


<nb> public class PGraphicsOpenGL extends PGraphics {
 @ override
 public VertexAttribute put ( String key , VertexAttribute value ) {
 VertexAttribute prev = super . put ( key , value ) ;
 + names . add ( key ) ;
 if ( value . kind == VertexAttribute . COLOR ) numComp += NUMBER0 ;
 else numComp += value . size ;
 return prev ;
 <nb> public class PGraphicsOpenGL extends PGraphics {
 ( float ) d [ NUMBER1 ] ,
 clampXY ) ;

 - if ( NUMBER2 <= d . length ) {
 + if ( NUMBER2 < d . length ) {
 PMatrix3D mm = pg . modelview ;
 PMatrix3D nm = pg . modelviewInv ;
 int tessIdx = polyVertexCount - NUMBER3 ;


<nb> public class KeyCrypterScrypt implements KeyCrypter , Serializable {

 private static final transient SecureRandom secureRandom ;

 - private static byte [ ] randomSalt ( ) {
 + COMMENT
 + public static byte [ ] randomSalt ( ) {
 byte [ ] salt = new byte [ SALT_LENGTH ] ;
 secureRandom . nextBytes ( salt ) ;
 return salt ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class SystemPublicMetrics implements PublicMetrics , Ordered {
 <nb> public class SystemPublicMetrics implements PublicMetrics , Ordered {
 . getUptime ( ) ) ) ;
 result . add ( new Metric < Long > ( STRING0 , System . currentTimeMillis ( )
 - this . timestamp ) ) ;
 + result . add ( new Metric < Double > ( STRING1 , ManagementFactory
 + . getOperatingSystemMXBean ( ) . getSystemLoadAverage ( ) ) ) ;
 }

 COMMENT
 <nb> public class SystemPublicMetricsTests {
 assertTrue ( results . containsKey ( STRING2 ) ) ;
 assertTrue ( results . containsKey ( STRING3 ) ) ;
 assertTrue ( results . containsKey ( STRING4 ) ) ;
 + assertTrue ( results . containsKey ( STRING1 ) ) ;

 assertTrue ( results . containsKey ( STRING5 ) ) ;
 assertTrue ( results . containsKey ( STRING6 ) ) ;

Add systemload average to SystemPublicMetrics


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

 class RemoveParenthesesFromMethodPredicate implements PsiElementPredicate {
 <nb> class RemoveParenthesesFromMethodPredicate implements PsiElementPredicate {
 return false ;
 }
 final GrMethodCallExpression methodCallExpression = ( GrMethodCallExpression ) element ;
 +
 + if ( methodCallExpression . getClosureArguments ( ) . length > NUMBER0 ) return false ;
 +
 final GrArgumentList argumentList = methodCallExpression . getArgumentList ( ) ;
 if ( argumentList == null ) return false ;

Remove Unnecessary Parentheses intention applied to method with closure argument removes the closure


<nb> public class Utils {
 return Build . VERSION . SDK_INT >= VERSION_CODES . JELLY_BEAN ;
 }

 + public static boolean hasICS ( ) {
 + return Build . VERSION . SDK_INT >= VERSION_CODES . ICE_CREAM_SANDWICH ;
 + }
 +
 public static boolean hasKitKat ( ) {
 return Build . VERSION . SDK_INT >= VERSION_CODES . KITKAT ;
 }


<nb> public class JsonValue implements Iterable < JsonValue > {
 return child ;
 }

 + COMMENT
 + public void addChild ( String name , JsonValue value ) {
 + value . name = name ;
 + addChild ( value ) ;
 + }
 +
 + COMMENT
 + public void addChild ( JsonValue value ) {
 + value . parent = this ;
 + JsonValue current = child ;
 + if ( current == null )
 + child = value ;
 + else {
 + while ( true ) {
 + if ( current . next == null ) {
 + current . next = value ;
 + return ;
 + }
 + current = current . next ;
 + }
 + }
 + }
 +
 COMMENT
 COMMENT
 public JsonValue next ( ) {


<nb> public class CameraView extends ViewGroup implements
 getHost ( ) . getPreviewSize ( getDisplayOrientation ( ) , width ,
 height , camera . getParameters ( ) ) ;
 }
 -
 - android . util . Log . d ( getClass ( ) . getSimpleName ( ) ,
 - String . format ( STRING0 ,
 - previewSize . width ,
 - previewSize . height ) ) ;
 }
 }


<nb> public abstract class ATransformable3D extends AFrameTask implements IGraphNodeM
 }

 public void setScale ( Vector3 scale ) {
 - mScale = scale ;
 + mScale . setAll ( scale ) ;
 if ( mGraphNode != null ) mGraphNode . updateObject ( this ) ;
 }


<nb> public abstract class AbstractInplaceIntroducer extends VariableInplaceIntroduce
 Comparing . strEqual ( psiVariable . getName ( ) , ( ( PsiReferenceExpression ) expression ) . getReferenceName ( ) ) ) ) {
 return ( PsiExpression ) expression . replace ( elementFactory . createExpressionFromText ( exprText , psiVariable ) ) ;
 }
 - return null ;
 + return expression != null && expression . isValid ( ) && expression . getText ( ) . equals ( exprText ) ? expression : null ;
 }

 protected abstract class VisibilityListener implements ChangeListener {


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

 import static NAMESPACE ;

 <nb> public class ServerCommandLineArgs
 public static ServerCommandLineArgs parse ( String [ ] argv )
 {
 Args args = Args . parse ( argv ) ;
 - return new ServerCommandLineArgs ( detemineConfigFile ( args ) , parseConfigOverrides ( args )
 - ) ;
 + return new ServerCommandLineArgs ( detemineConfigFile ( args ) , parseConfigOverrides ( args ) ) ;
 }

 public Pair < String , String > [ ] configOverrides ( )
 <nb> public class ServerCommandLineArgs
 private static File detemineConfigFile ( Args arguments )
 {
 return new File ( arguments . get ( CONFIG_KEY_ALT_2 ,
 - arguments . get ( CONFIG_KEY_ALT_1 , STRING0 ) ) ) ;
 + arguments . get ( CONFIG_KEY_ALT_1 , ServerSettings . SERVER_CONFIG_FILE ) ) ) ;
 }

 private static Pair < String , String > [ ] parseConfigOverrides ( Args arguments )

Correct the default config file path used when parsing commandline args


<nb> public class CircularProgressBar extends ProgressBar {
 indeterminateDrawable = builder . build ( ) ;
 setIndeterminateDrawable ( indeterminateDrawable ) ;
 }
 +
 + private CircularProgressDrawable checkIndeterminateDrawable ( ) {
 + Drawable ret = getIndeterminateDrawable ( ) ;
 + if ( ret == null || ! ( ret instanceof CircularProgressDrawable ) )
 + throw new RuntimeException ( STRING0 ) ;
 + return ( CircularProgressDrawable ) ret ;
 + }
 +
 + public void progressiveStop ( ) {
 + checkIndeterminateDrawable ( ) . progressiveStop ( ) ;
 + }
 +
 + public void progressiveStop ( CircularProgressDrawable . OnEndListener listener ) {
 + checkIndeterminateDrawable ( ) . progressiveStop ( listener ) ;
 + }
 }


<nb> public class WideSelectionTreeUI extends BasicTreeUI {
 }

 private boolean isSelected ( MouseEvent e ) {
 -
 + final JTree tree = ( JTree ) e . getSource ( ) ;
 final int selected = tree . getClosestRowForLocation ( e . getX ( ) , e . getY ( ) ) ;
 for ( int row : tree . getSelectionRows ( ) ) {
 if ( row == selected ) {


<nb> public class ItemlistFragment extends ListFragment {
 private static final String TAG = STRING0 ;

 private static final int EVENTS = EventDistributor . UNREAD_ITEMS_UPDATE
 + | EventDistributor . FEED_LIST_UPDATE
 | EventDistributor . PLAYER_STATUS_UPDATE ;

 public static final String EXTRA_SELECTED_FEEDITEM = STRING1 ;


<nb> public class SystemWideSaltSource implements SaltSource , InitializingBean {
 public void setSystemWideSalt ( String systemWideSalt ) {
 this . systemWideSalt = systemWideSalt ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + @ override
 + public String toString ( ) {
 + return systemWideSalt ;
 + }
 }

Override toString method in SystemWideSaltSource


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CamelExtension implements Extension {
 return field . getAnnotation ( Inject . class ) != null ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - protected boolean isApplicationScopeOrSingleton ( Class < ? > aClass ) {
 - return aClass . getAnnotation ( Singleton . class ) != null || aClass . getAnnotation ( ApplicationScoped . class ) != null ;
 - }
 }


<nb> public class StandardTitanGraph extends TitanBlueprintsGraph {

 shutdownHook = new ShutdownThread ( this ) ;
 Runtime . getRuntime ( ) . addShutdownHook ( shutdownHook ) ;
 + log . debug ( STRING0 , shutdownHook , new Throwable ( STRING1 ) ) ;
 }
 }

 <nb> public class StandardTitanGraph extends TitanBlueprintsGraph {
 SINGLE
 try {
 Runtime . getRuntime ( ) . removeShutdownHook ( tmp ) ;
 + log . debug ( STRING2 , tmp ) ;
 } catch ( IllegalStateException e ) {
 log . warn ( STRING3 , e ) ;
 }
 <nb> public class StandardTitanGraph extends TitanBlueprintsGraph {

 @ override
 public void start ( ) {
 - if ( graph . isOpen && log . isDebugEnabled ( ) )
 - log . debug ( STRING4 , graph ) ;
 + log . debug ( STRING5 , graph , this ) ;

 graph . closeInternal ( ) ;
 }

Add DEBUG logging around STG shutdown hook actions


<nb>

 package NAMESPACE ;

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

 import NAMESPACE ;


<nb> public class PSurfaceJOGL implements PSurface {
 if ( PApplet . platform == PConstants . LINUX ) {
 for ( GraphicsDevice device : awtDevices ) {
 String did = device . getIDstring ( ) ;
 - String [ ] parts = did . split ( STRING0 ) ;
 + String [ ] parts = did . split ( STRING1 ) ;
 String id1 = STRING2 ;
 if ( NUMBER0 < parts . length ) {
 id1 = parts [ NUMBER0 ] . trim ( ) ;

use dot literal to split device id string


<nb> class InterceptingRowReceiver implements RowReceiver , FutureCallback < Void > {
 new KillJobsRequest ( Collections . singletonList ( jobId ) ) , new ActionListener < KillResponse > ( ) {
 @ override
 public void onResponse ( KillResponse killResponse ) {
 - LOGGER . debug ( STRING0 , killResponse . numKilled ( ) ) ;
 + LOGGER . trace ( STRING0 , killResponse . numKilled ( ) ) ;
 rowReceiver . fail ( failure ) ;
 }

 @ override
 public void onFailure ( Throwable e ) {
 - LOGGER . warn ( STRING1 , e ) ;
 + LOGGER . trace ( STRING2 , e ) ;
 rowReceiver . fail ( failure ) ;
 }
 } ) ;

changes kill on failure loggers to TRACE level


<nb> public abstract class AbstractJavaAnnotationProcessingTest extends KotlinMultiFi
 TestCase . assertTrue ( STRING0 , matcher . find ( ) ) ;
 String fqName = matcher . group ( NUMBER0 ) ;

 - getEnvironment ( ) . updateClasspath ( Collections . singletonList ( testDir ) ) ;
 + getEnvironment ( ) . tryUpdateClasspath ( Collections . singletonList ( testDir ) ) ;

 super . doTest ( new File ( testDir . getParentFile ( ) , STRING1 ) . getCanonicalPath ( ) ) ;


<nb> public class DashboardWidgetCreator {
 final TimeRange timeRange ;
 switch ( rangeType ) {
 case STRING0 :
 - timeRange = new RelativeRange ( Integer . parseInt ( String . valueOf ( timerangeConfig . get ( STRING0 ) ) ) ) ;
 + timeRange = new RelativeRange ( Integer . parseInt ( String . valueOf ( timerangeConfig . get ( STRING1 ) ) ) ) ;
 break ;
 case STRING2 :
 timeRange = new KeywordRange ( ( String ) timerangeConfig . get ( STRING2 ) ) ;

Revert Use relative key to get relative timerange info


<nb> import static NAMESPACE
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - and the client . < / li >
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


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

 import NAMESPACE ;
 <nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb>
 package NAMESPACE ;

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

 package NAMESPACE ;

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

 <nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb>
 COMMENT
 COMMENT

 - package NAMESPACE ;
 + package NAMESPACE ;

 public abstract class AlignmentUtils {
 public static int alignOffset ( int offset , int alignment ) {


<nb> import NAMESPACE ;

 public class Data extends AbstractDatabaseObject {

 + @ override
 + public boolean snapshotByDefault ( ) {
 + return false ;
 + }
 +
 public Table getTable ( ) {
 return getAttribute ( STRING0 , Table . class ) ;
 }


<nb> public class OutputChecker {
 result = result . replaceAll ( STRING0 + TEST_JDK_HOME_STR + STRING1 , STRING2 ) ;

 SINGLE
 - result = result . replaceAll ( STRING3 , STRING2 ) ;
 + SINGLE

 result = result . replaceAll ( STRING4 , STRING5 ) ;
 result = result . replaceAll ( STRING6 , STRING7 ) ;

fixing ExecutionManagerTest testRun more data required


<nb> public class GLMModel extends Model implements Comparable < GLMModel > {
 if ( sm . xvalidation != null && ( sm . xvalidation instanceof GLMXValidation ) ) { SINGLE
 GLMXValidation xval = ( GLMXValidation ) sm . xvalidation ;
 for ( Key k : xval . xval_models )
 - DKV . < GLMModel > get ( k ) . delete ( ) ;
 + DKV . get ( k ) . < GLMModel > get ( ) . delete ( ) ;
 }
 }
 public void unlockXvals ( Key job_key ) {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CalendarView extends JPanel {
 }

 public Date getDate ( ) {
 + commitSpinners ( ) ;
 +
 SINGLE
 myCalendar . set ( getIntValue ( myYears ) , myMonths . getSelectedIndex ( ) , myDays . getSelectedIndex ( ) + NUMBER0 ,
 getIntValue ( myHours ) , getIntValue ( myMinutes ) , getIntValue ( mySeconds ) ) ;
 <nb> public class CalendarView extends JPanel {
 }
 } . registerCustomShortcutSet ( KeyEvent . VK_ENTER , NUMBER1 , this ) ;
 }
 +
 + private void commitSpinners ( ) {
 + try {
 + myYears . commitEdit ( ) ;
 + myHours . commitEdit ( ) ;
 + myMinutes . commitEdit ( ) ;
 + mySeconds . commitEdit ( ) ;
 + }
 + catch ( ParseException ignore ) {
 + }
 + }
 }

commit spinners in timestamp editors before obtaining value


<nb> public final class HttpHeaders {
 COMMENT
 public static final String CONTENT_LOCATION = STRING0 ;
 COMMENT
 + COMMENT
 + COMMENT
 + public static final String CONTENT_TRANSFER_ENCODING = STRING1 ;
 + COMMENT
 COMMENT
 COMMENT
 public static final String CONTENT_MD5 = STRING2 ;
 <nb> public final class HttpHeaders {
 COMMENT
 public static final class Values {
 COMMENT
 + COMMENT
 + COMMENT
 + public static final String BASE64 = STRING3 ;
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String BINARY = STRING4 ;
 + COMMENT
 COMMENT
 COMMENT
 public static final String BYTES = STRING5 ;
 <nb> public final class HttpHeaders {
 COMMENT
 public static final String PUBLIC = STRING6 ;
 COMMENT
 + COMMENT
 + COMMENT
 + public static final String QUOTED_PRINTABLE = STRING7 ;
 + COMMENT
 COMMENT
 COMMENT
 public static final String S_MAXAGE = STRING8 ;

Added more HTTP header constants useful for MIME representation


<nb> public class TreeGrowingSystem implements UpdateSubscriberSystem {
 Iterable < EntityRef > treeRefs = entityManager . getEntitiesWith ( LivingTreeComponent . class , BlockComponent . class ) ;
 for ( EntityRef treeRef : treeRefs ) {
 LivingTreeComponent tree = treeRef . getComponent ( LivingTreeComponent . class ) ;
 - TreeDefinition treeDefinition = treeDefinitions . get ( tree . type ) ;
 - treeDefinition . updateTree ( worldProvider , blockEntityRegistry , treeRef ) ;
 + if ( tree != null ) {
 + TreeDefinition treeDefinition = treeDefinitions . get ( tree . type ) ;
 + treeDefinition . updateTree ( worldProvider , blockEntityRegistry , treeRef ) ;
 + } else {
 + logger . error ( STRING0 ) ;
 + }
 }

 lastCheckTime = gameTimeInMs ;

Work around for a framework bug logging the error


<nb> public class CallFragment extends BaseFragment {

 n . flags += Notification . FLAG_ONGOING_EVENT ;

 - disableWakeLock ( ) ;

 manager . notify ( NOTIFICATION_ID , n ) ;
 }

 + disableWakeLock ( ) ;
 +
 }

 @ override


<nb> public class EditorHelper
 COMMENT
 COMMENT
 COMMENT
 - public static int normalizeVisualColumn ( Editor editor , int vline , int col )
 + public static int normalizeVisualColumn ( Editor editor , int vline , int col , boolean allowEnd )
 {
 - col = Math . min ( Math . max ( NUMBER0 , col ) , getVisualLineLength ( editor , vline ) - NUMBER1 ) ;
 + col = Math . min ( Math . max ( NUMBER0 , col ) , getVisualLineLength ( editor , vline ) - ( allowEnd ? NUMBER0 : NUMBER1 ) ) ;

 return col ;
 }


<nb> public class ReaderPostListFragment extends Fragment

 @ override
 public FilterCriteria onRecallSelection ( ) {
 - ReaderTag tag = AppPrefs . getReaderTag ( ) ;
 - return tag ;
 + return mCurrentTag ;
 }

 @ override

Change the FilterCriteria onRecallSelection to return the already assigned tag


<nb> public class ContentTypeITest extends WithJetty {
 contentType ( isEmptyOrNullString ( ) ) ;
 }

 + @ test public void
 + doesnt_send_a_content_type_header_when_there_is_no_body ( ) {
 + when ( ) .
 + get ( STRING0 ) .
 + then ( ) .
 + body ( STRING1 , is ( false ) ) ;
 + }
 +
 private String toJetty9 ( String charset ) {
 return StringUtils . lowerCase ( StringUtils . remove ( charset , STRING2 ) ) ;
 }

Added test case to verify that content type is not sent when there s no request body


<nb> public final class ActivityThread {
 }

 private void handleBindApplication ( AppBindData data ) {
 + SINGLE
 + VMRuntime . registerSensitiveThread ( ) ;
 if ( data . trackAllocation ) {
 DdmVmInternal . enableRecentAllocations ( true ) ;
 }

Register the UI Thread as a sensitive thread to the runtime


<nb> public final class StorageService implements IEndPointStateChangeSubscriber , Sto
 isBootstrapMode = true ;
 SystemTable . updateToken ( token ) ; SINGLE
 Gossiper . instance ( ) . addApplicationState ( StorageService . STATE_BOOTSTRAPPING , new ApplicationState ( partitioner_ . getTokenFactory ( ) . toString ( token ) ) ) ;
 + logger_ . info ( STRING0 + Streaming . RING_DELAY ) ;
 + try
 + {
 + Thread . sleep ( Streaming . RING_DELAY ) ;
 + }
 + catch ( InterruptedException e )
 + {
 + throw new AssertionError ( e ) ;
 + }
 new BootStrapper ( replicationStrategy_ , FBUtilities . getLocalAddress ( ) , token , tokenMetadata_ ) . startBootstrap ( ) ; SINGLE
 }


<nb> import NAMESPACE ;
 class ChildFirstClassLoader extends URLClassLoader {

 private static final RepositorySystem REPOSITORY_SYSTEM = newRepositorySystem ( ) ;
 - private static final String AETHER_API_NAME = STRING0 ;
 + private static final String AETHER_API_NAME = File . separatorChar == STRING1 ? STRING0 : STRING2 ;

 private final ClassLoader parent ;
 private final List < Pattern > parentFirst ;


<nb> public abstract class ActivatableNotificationView extends ExpandableOutlineView
 }

 private void startActivateAnimation ( boolean reverse ) {
 + if ( ! isAttachedToWindow ( ) ) {
 + return ;
 + }
 int widthHalf = mBackgroundNormal . getWidth ( ) / NUMBER0 ;
 int heightHalf = mBackgroundNormal . getActualHeight ( ) / NUMBER0 ;
 float radius = ( float ) Math . sqrt ( widthHalf * widthHalf + heightHalf * heightHalf ) ;


<nb> public class ArtifactFactory implements ArtifactResolver , ArtifactSerializer , Ar

 @ override
 public Artifact getSourceArtifact ( PathFragment execPath , Root root , ArtifactOwner owner ) {
 - Preconditions . checkArgument ( ! execPath . isAbsolute ( ) ) ;
 - Preconditions . checkNotNull ( owner , execPath ) ;
 + Preconditions . checkArgument ( ! execPath . isAbsolute ( ) , STRING0 , execPath , root , owner ) ;
 + Preconditions . checkNotNull ( owner , STRING1 , execPath , root ) ;
 execPath = execPath . normalize ( ) ;
 return getArtifact ( root . getPath ( ) . getRelative ( execPath ) , root , execPath , owner , null ) ;
 }


<nb> public class SmackAndroid {

 private SmackAndroid ( Context ctx ) {
 mCtx = ctx ;
 - ConfigureProviderManager . configureProviderManager ( ) ;
 InitStaticCode . initStaticCode ( ctx ) ;
 + ConfigureProviderManager . configureProviderManager ( ) ;
 maybeRegisterReceiver ( ) ;
 }


<nb> public class SourceWindow implements LastSourceDocClosedHandler ,

 SINGLE
 SINGLE
 - if ( satellite . isCurrentWindowSatellite ( ) )
 + if ( ! satellite . isCurrentWindowSatellite ( ) )
 return ;

 SINGLE

fix reversed satellite check in source window class


<nb> public class WordVectorsImpl implements WordVectors {

 SINGLE
 @ getter protected int minWordFrequency = NUMBER0 ;
 - @ getter protected transient WeightLookupTable lookupTable ;
 - @ getter protected transient VocabCache vocab ;
 + @ getter protected WeightLookupTable lookupTable ;
 + @ getter protected VocabCache vocab ;
 @ getter protected int layerSize = NUMBER1 ;
 public final static String UNK = STRING0 ;
 protected List < String > stopWords = StopWords . getStopWords ( ) ;


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

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BoundedTaskExecutor extends AbstractExecutorService {

 @ testonly
 public void waitAllTasksExecuted ( int timeout , @ notnull TimeUnit unit ) throws ExecutionException , InterruptedException {
 - assert SwingUtilities . isEventDispatchThread ( ) : Thread . currentThread ( ) ; SINGLE
 final CountDownLatch started = new CountDownLatch ( myMaxTasks ) ;
 final CountDownLatch readyToFinish = new CountDownLatch ( NUMBER0 ) ;
 SINGLE

removed assertion because Jeka hates swing


<nb> public class MethodInterceptorFilter < T extends MockAwareInterceptor > implements

 public Object intercept ( Object proxy , Method method , Object [ ] args , MethodProxy methodProxy )
 throws Throwable {
 - SINGLE
 - if ( method . isBridge ( ) ) {
 - return methodProxy . invokeSuper ( proxy , args ) ;
 - }
 -
 if ( equalsMethod . equals ( method ) ) {
 return Boolean . valueOf ( proxy == args [ NUMBER0 ] ) ;
 } else if ( hashCodeMethod . equals ( method ) ) {
 <nb> public class BridgeMethodPuzzleTest extends TestBase {
 public void shouldVerifyCorrectlyWhenBridgeMethodCalled ( ) throws Exception {
 SINGLE
 SINGLE
 - SINGLE
 Sub s = mock ( Sub . class ) ;
 setMockWithDownCast ( s ) ;
 say ( STRING0 ) ;


<nb> public class SyslogFormatter extends PatternLayout {
 public SyslogFormatter ( LoggerContext context , TimeZone timeZone , String name ) {
 super ( ) ;
 getDefaultConverterMap ( ) . put ( STRING0 , PrefixedThrowableProxyConverter . class . getName ( ) ) ;
 + getDefaultConverterMap ( ) . put ( STRING1 , PrefixedExtendedThrowableProxyConverter . class . getName ( ) ) ;
 setPattern ( name + STRING2 + timeZone . getID ( ) + STRING3 ) ;
 setContext ( context ) ;
 }

Add extended trace converter to syslog formatter


<nb> public class MongoCursorTest extends DatabaseTestCase {
 final List < Document > list = new ArrayList < Document > ( ) ;
 collection . limit ( NUMBER0 ) . into ( list ) ;
 assertEquals ( NUMBER0 , list . size ( ) ) ;
 - for ( Document document : list ) {
 - System . out . println ( document . get ( STRING0 ) ) ;
 - }
 }

 @ test


<nb> public class SyncWatchEventProcessor implements Runnable {
 }

 SyncFile syncFile = SyncFileService . fetchSyncFile (
 - FileUtil . getFileKey ( targetFilePath ) ) ;
 + targetFilePath . toString ( ) ) ;

 if ( syncFile == null ) {
 - syncFile = SyncFileService . fetchSyncFile ( targetFilePath . toString ( ) ) ;
 + syncFile = SyncFileService . fetchSyncFile (
 + FileUtil . getFileKey ( targetFilePath ) ) ;
 }

 if ( syncFile == null ) {
 <nb> public class SyncWatchEventProcessor implements Runnable {
 }

 SyncFile syncFile = SyncFileService . fetchSyncFile (
 - FileUtil . getFileKey ( targetFilePath ) ) ;
 + targetFilePath . toString ( ) ) ;

 if ( syncFile == null ) {
 - syncFile = SyncFileService . fetchSyncFile ( targetFilePath . toString ( ) ) ;
 + syncFile = SyncFileService . fetchSyncFile (
 + FileUtil . getFileKey ( targetFilePath ) ) ;
 }

 if ( syncFile == null ) {

sync engine Check file path before fileKey to avoid unique key index exception reverts to previous behavior


<nb> public final class Transform implements Savable , Cloneable {
 if ( store == null )
 store = new Vector3f ( ) ;

 - in . subtract ( translation , store ) . divideLocal ( scale ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 +
 + in . subtract ( translation , store ) ;
 rot . inverse ( ) . mult ( store , store ) ;
 + store . divideLocal ( scale ) ;
 +
 return store ;
 }

Fixed yet another bug with transforms this time in Spatial worldToLocal


<nb> public class SearchEverywhereAction extends AnAction implements CustomComponentA
 ActionToolbarImpl . updateAllToolbarsImmediately ( ) ;
 }
 } ) ;
 - } finally {
 + }
 + finally {
 result . setDone ( ) ;
 }
 }
 <nb> public class SearchEverywhereAction extends AnAction implements CustomComponentA
 private void showSettings ( ) {
 myPopupField . setText ( STRING0 ) ;
 final SearchListModel model = new SearchListModel ( ) ;
 - model . addElement ( new SEOption ( STRING1 , STRING2 ) ) ;
 + SINGLE
 model . addElement ( new SEOption ( STRING3 , STRING4 ) ) ;
 model . addElement ( new SEOption ( STRING5 , STRING6 ) ) ;
 model . addElement ( new SEOption ( STRING7 , STRING8 ) ) ;


<nb> public abstract class CallPeerMediaHandler < T extends MediaAwareCallPeer < ? , ? , ? > >
 if ( stream == null )
 continue ;

 + COMMENT
 + COMMENT
 + COMMENT
 MediaDevice oldDevice = stream . getDevice ( ) ;
 -
 if ( oldDevice != null )
 {
 + if ( oldDevice instanceof MediaDeviceWrapper )
 + oldDevice = ( ( MediaDeviceWrapper ) oldDevice )
 + . getWrappedDevice ( ) ;
 +
 MediaDevice newDevice = getDefaultDevice ( mediaType ) ;
 + MediaDevice wrappedNewDevice = newDevice ;
 + if ( newDevice instanceof MediaDeviceWrapper )
 + wrappedNewDevice = ( ( MediaDeviceWrapper ) newDevice )
 + . getWrappedDevice ( ) ;

 - if ( oldDevice != newDevice )
 + if ( oldDevice != wrappedNewDevice )
 stream . setDevice ( newDevice ) ;
 }

Makes sure that the MediaDevice of the MediaStream is only updated if it has


<nb> public class JavaGenerator implements CodeGenerator
 STRING0 +
 STRING1 +
 STRING2 +
 - STRING3 +
 - STRING4 +
 - STRING5 +
 - STRING6 +
 STRING7 +
 STRING8 +
 STRING9 +
 <nb> public class JavaGenerator implements CodeGenerator
 STRING10 +
 STRING11 ,
 choiceName ,
 - Integer . valueOf ( token . version ( ) ) ,
 typePrefix ,
 choiceBitPosition ,
 byteOrderStr ,

Removed checking of version when decoding bitset values


<nb> public abstract class ScheduledPollConsumer extends DefaultConsumer implements R

 @ override
 protected void doStop ( ) throws Exception {
 - scheduler . unscheduleTask ( ) ;
 - ServiceHelper . stopAndShutdownServices ( scheduler ) ;
 + if ( scheduler != null ) {
 + scheduler . unscheduleTask ( ) ;
 + ServiceHelper . stopAndShutdownServices ( scheduler ) ;
 + }

 SINGLE
 backoffCounter = NUMBER0 ;


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class WrongWordInContextRule extends Rule {
 try ( Scanner scanner = new Scanner ( stream , STRING0 ) ) {
 while ( scanner . hasNextLine ( ) ) {
 final String line = scanner . nextLine ( ) ;
 - if ( line . charAt ( NUMBER0 ) == STRING1 ) {
 + if ( line . trim ( ) . isEmpty ( ) || line . charAt ( NUMBER0 ) == STRING1 ) {
 continue ;
 }
 final String [ ] column = line . split ( STRING2 ) ;

improve javadoc don t crash on empty lines


<nb> public class TaskListActivity extends ListActivity implements OnScrollListener ,
 Preferences . setBoolean ( R . string . p_showed_add_task_help , true ) ;
 }

 - if ( filter . title . equals ( getString ( R . string . BFE_Active ) ) ) {
 + if ( filter . title != null && filter . title . equals ( getString ( R . string . BFE_Active ) ) ) {
 initiateAutomaticSync ( ) ;
 }
 }


<nb> public class TestLightScattering extends SimpleApplication {
 app . start ( ) ;
 }

 - public void loadFPSText ( ) {
 - guiFont = assetManager . loadFont ( STRING0 ) ;
 - fpsText = new BitmapText ( guiFont , false ) ;
 - fpsText . setSize ( guiFont . getCharSet ( ) . getRenderedSize ( ) ) ;
 - fpsText . setLocalTranslation ( NUMBER0 , fpsText . getLineHeight ( ) , NUMBER0 ) ;
 - fpsText . setText ( STRING1 ) ;
 - guiNode . attachChild ( fpsText ) ;
 - }
 -
 - public void loadStatsView ( ) {
 - statsView = new StatsView ( STRING2 , assetManager , renderer . getStatistics ( ) ) ;
 - SINGLE
 - statsView . setLocalTranslation ( NUMBER0 , fpsText . getLineHeight ( ) , NUMBER0 ) ;
 - guiNode . attachChild ( statsView ) ;
 - }
 -
 @ override
 public void simpleInitApp ( ) {
 SINGLE

Removed the loadStatsView and loadFpsText because


<nb> public class AuthorizationAPI extends ApiImplementor {
 switch ( name ) {
 case VIEW_GET_AUTHORIZATION_METHOD :
 Context context = ApiUtils . getContextByParamId ( params , PARAM_CONTEXT_ID ) ;
 - return context . getAuthorizationDetectionMethod ( ) . getApiResponseRepresentation ( ) ;
 + return new ApiResponseElement ( context . getAuthorizationDetectionMethod ( ) . getApiResponseRepresentation ( ) ) ;
 default :
 throw new ApiException ( Type . BAD_VIEW ) ;
 }

Change API authorization view to wrap its object


<nb> package NAMESPACE ;
 COMMENT
 public class WriteResult {

 - private final com . mongodb . WriteConcern writeConcern ;
 + private final WriteConcern writeConcern ;
 private final int n ;
 private final boolean updateOfExisting ;
 private final Object upsertedId ;

Removed unnecessary fully qualified class name


<nb> public class ListView extends AbsListView {
 COMMENT
 public void addFooterView ( View v , Object data , boolean isSelectable ) {

 - if ( mAdapter != null && ! ( mAdapter instanceof HeaderViewListAdapter ) ) {
 - throw new IllegalStateException (
 - STRING0 ) ;
 - }
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE

 FixedViewInfo info = new FixedViewInfo ( ) ;
 info . view = v ;

Revert recently added check to addFooterView


<nb> public class KMeansIteration implements PlanAssembler , PlanAssemblerDescription
 public void reduce ( Iterator < PactRecord > dataPoints , Collector out )
 {
 SINGLE
 -
 + this . coordinates . setCoordinates ( null ) ;
 double [ ] coordinateSum = null ;
 int count = NUMBER0 ;

 <nb> public class KMeansIteration implements PlanAssembler , PlanAssemblerDescription
 public void combine ( Iterator < PactRecord > dataPoints , Collector out )
 {
 SINGLE
 + this . coordinates . setCoordinates ( null ) ;
 double [ ] coordinateSum = null ;
 int count = NUMBER0 ;


<nb> public class RegistrationIntentService extends IntentService {
 COMMENT
 SINGLE
 private void subscribeTopics ( String token ) throws IOException {
 + GcmPubSub pubSub = GcmPubSub . getInstance ( this ) ;
 for ( String topic : TOPICS ) {
 - GcmPubSub pubSub = GcmPubSub . getInstance ( this ) ;
 pubSub . subscribe ( token , STRING0 + topic , null ) ;
 }
 }


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 class GridFSChunk {

 <nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class GridFSObject {


<nb> class ClusterTopologyWriter {
 PackedInteger . writePackedInteger ( output , memberCount ) ;
 SINGLE
 for ( final ClusterNode clusterMember : cluster . getClusterNodes ( ) ) {
 + SINGLE
 + output . writeUTF ( clusterMember . getName ( ) ) ;
 SINGLE
 SINGLE
 SINGLE

Write the node name as part of the cluster topology remote protocol message


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class PostgreSQLDialect extends Dialect {

Added javadocs comments wrt postgresql and BLOB handling


<nb> public class SessionInfo extends JavaScriptObject
 public final native boolean getMultiSession ( ) COMMENT
 COMMENT
 COMMENT ;
 +
 + public final native int getActiveSessionCount ( ) COMMENT
 + COMMENT
 + COMMENT ;
 }


<nb> public class IdeaTestApplication extends CommandLineApplication {
 }
 return ( IdeaTestApplication ) ourInstance ;
 }
 +
 + public static boolean isInitialized ( ) {
 + return ourInstance != null ;
 + }
 }

don t touch platform prefix if app is already initialized


<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 DefaultConfiguration extends AbstractFileCollection implements Conf
 public ComponentResolveMetaData toRootComponentMetaData ( ) {
 ModuleInternal module = getModule ( ) ;
 Set < ? extends Configuration > configurations = getAll ( ) ;
 - ComponentIdentifier componentIdentifier = DefaultProjectComponentIdentifier . newId ( module . getProjectPath ( ) ) ;
 + ComponentIdentifier componentIdentifier = new DefaultComponentIdentifierFactory ( ) . createComponentIdentifier ( module ) ;
 ModuleVersionIdentifier moduleVersionIdentifier = DefaultModuleVersionIdentifier . newId ( module ) ;
 DefaultLocalComponentMetaData metaData = new DefaultLocalComponentMetaData ( moduleVersionIdentifier , componentIdentifier , module . getStatus ( ) ) ;
 configurationComponentMetaDataBuilder . addConfigurations ( metaData , configurations ) ;

Don t make assumptions about the component id created for a Configuration


<nb> public class QueuedThreadPool extends AbstractLifeCycle implements SizedThreadPo
 startThreads ( NUMBER0 ) ;
 }

 - while ( isRunning ( ) )
 + loop: while ( isRunning ( ) )
 {
 SINGLE
 while ( job != null && isRunning ( ) )
 {
 runJob ( job ) ;
 + if ( Thread . interrupted ( ) )
 + break loop ;
 job = _jobs . poll ( ) ;
 }

QueuedThreadPool does not reuse interrupted threads


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class ReactTextInputManager extends
 - BaseViewManager < ReactEditText , ReactTextInputShadowNode > {
 + public class ReactTextInputManager extends BaseViewManager < ReactEditText , LayoutShadowNode > {

 COMMENT

 <nb> public class ReactTextInputManager extends
 }

 @ override
 - public ReactTextInputShadowNode createShadowNodeInstance ( ) {
 + public LayoutShadowNode createShadowNodeInstance ( ) {
 return new ReactTextInputShadowNode ( ) ;
 }

 @ override
 - public Class < ReactTextInputShadowNode > getShadowNodeClass ( ) {
 + public Class < ? extends LayoutShadowNode > getShadowNodeClass ( ) {
 return ReactTextInputShadowNode . class ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GuiceCamelContext extends DefaultCamelContext {

 @ override
 @ inject ( optional = true )
 - public void setExchangeConverter ( ExchangeConverter exchangeConverter ) {
 - super . setExchangeConverter ( exchangeConverter ) ;
 - }
 -
 - @ override
 - @ inject ( optional = true )
 public void setComponentResolver ( ComponentResolver componentResolver ) {
 super . setComponentResolver ( componentResolver ) ;
 }

Removing ExchangeConverter as its not used and not needed anymore


<nb> public class PomTargetPsiElementImpl extends RenameableFakePsiElement implements
 throw new UnsupportedOperationException ( STRING0 + myTarget . getClass ( ) . getName ( ) + STRING1 ) ;
 }

 + @ notnull
 + @ override
 + public PsiElement getNavigationElement ( ) {
 + if ( myTarget instanceof PsiTarget ) {
 + return ( ( PsiTarget ) myTarget ) . getNavigationElement ( ) ;
 + }
 + return super . getNavigationElement ( ) ;
 + }
 +
 public Icon getIcon ( ) {
 for ( IconProvider iconProvider : IconProvider . EXTENSION_POINT_NAME . getExtensions ( ) ) {
 if ( iconProvider instanceof PomIconProvider ) {


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

 public final class ClientEndpoint implements Client {

 <nb> public final class ClientEndpoint implements Client {

 public SocketAddress getSocketAddress ( ) {
 if ( conn instanceof TcpIpConnection ) {
 - ( ( TcpIpConnection ) conn ) . getSocketChannelWrapper ( ) . socket ( ) . getRemoteSocketAddress ( ) ;
 + return ( ( TcpIpConnection ) conn ) . getSocketChannelWrapper ( ) . socket ( ) . getRemoteSocketAddress ( ) ;
 }
 return null ;
 }

ClientEndPoint getSocketAddress always returns null


<nb> public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public FastAdapter < Item > withOnCreateViewHolderListener ( OnCreateViewHolderListener onCreateViewHolderListener ) {
 + this . mOnCreateViewHolderListener = onCreateViewHolderListener ;
 + return this ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public FastAdapter < Item > withOnBindViewHolderListener ( OnBindViewHolderListener onBindViewHolderListener ) {
 + this . mOnBindViewHolderListener = onBindViewHolderListener ;
 + return this ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

add setter for the OnCreateViewHolderListener and OnBindViewHolderListener


<nb> public class AceEditorIdleCommands
 Position position ,
 Range tokenRange )
 {
 - SINGLE
 - SINGLE
 - String srcPath = imgSrcPathFromHref ( href ) ;
 -
 SINGLE
 SINGLE
 String encoded = StringUtil . encodeURIComponent ( href ) ;
 <nb> public class AceEditorIdleCommands
 return ;

 SINGLE
 + noImageLabel . setText ( STRING0 + href_ + STRING1 ) ;
 image . getElement ( ) . setAttribute ( STRING2 , imgSrcPathFromHref ( href_ ) ) ;
 }
 } ;


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> import NAMESPACE ;

 @ nonnls
 public class JobSchedulerImpl extends JobScheduler {
 - public static final int CORES_COUNT = Runtime . getRuntime ( ) . availableProcessors ( ) ;
 + public static final int CORES_COUNT = SystemInfo . isMac ? NUMBER0 : Runtime . getRuntime ( ) . availableProcessors ( ) ; SINGLE
 @ nonnls private static final String THREADS_NAME = STRING0 ;
 private static final ThreadFactory WORKERS_FACTORY = new ThreadFactory ( ) {
 public Thread newThread ( final Runnable r ) {


<nb> public class JsonModelLoader {
 } else if ( attr . equals ( STRING0 ) ) {
 vertexAttributes . add ( VertexAttribute . BoneWeights ( NUMBER0 ) ) ;
 } else if ( attr . equals ( STRING1 ) ) {
 - vertexAttributes . add ( VertexAttribute . Color ( ) ) ;
 + vertexAttributes . add ( VertexAttribute . ColorUnpacked ( ) ) ;
 } else {
 throw new GdxRuntimeException ( STRING2 + attr + STRING3 ) ;
 }


<nb> public class EventBus implements IEventExceptionHandler
 {
 ListenerList . resize ( busID + NUMBER0 ) ;
 exceptionHandler = this ;
 - register ( this ) ;
 }

 public EventBus ( @ nonnull IEventExceptionHandler handler )

Remove debug code that was causing console spam in Forge


<nb> public class h2odriver extends Configured implements Tool {
 job . submit ( ) ;
 System . out . println ( STRING0 + jobtrackerName + STRING1 ) ;
 System . out . println ( STRING2 + job . getJobID ( ) + STRING3 ) ;
 + String applicationID = job . getJobID ( ) . toString ( ) . replace ( STRING4 , STRING5 ) ;
 + System . out . println ( STRING6 + applicationID + STRING3 ) ;

 SINGLE
 ctrlc = new CtrlCHandler ( ) ;

Print yarn logs command as part of stdout


<nb> public class UIDialogCreateNewWorld extends UIDialog {

 private boolean createServerGame ;
 private ModuleSelection selection ;
 + private UIButton previewButton ;

 public UIDialogCreateNewWorld ( boolean createServer ) {
 super ( new Vector2f ( NUMBER0 f , NUMBER1 f ) ) ;
 <nb> public class UIDialogCreateNewWorld extends UIDialog {
 Vector2f previewPos = inputSeed . getPosition ( ) ;
 previewPos . x += inputSeed . getSize ( ) . x ;
 previewPos . x += NUMBER2 ;
 +
 + previewButton . setPosition ( previewPos ) ;
 + parent . addDisplayElement ( previewButton ) ;
 +

 content . orderDisplayElementTop ( worldGenerator ) ;
 parent . layout ( ) ;


<nb> public class StreamReplyVerbHandler implements IVerbHandler
 StreamReply reply = StreamReply . serializer . deserialize ( new DataInputStream ( bufIn ) ) ;
 logger . debug ( STRING0 , reply ) ;
 StreamOutSession session = StreamOutSession . get ( message . getFrom ( ) , reply . sessionId ) ;
 + if ( session == null )
 + {
 + logger . debug ( STRING1 + reply . action + STRING2 + message . getFrom ( ) ) ;
 + return ;
 + }

 switch ( reply . action )
 {

Log a message when a streaming action for an unkown session is received


<nb> public class ReconnectionManager {
 SINGLE
 try {
 if ( isReconnectionPossible ( connection ) ) {
 - connection . connect ( ) ;
 + try {
 + connection . connect ( ) ;
 + } catch ( SmackException . AlreadyConnectedException e ) {
 + LOGGER . log ( Level . FINER , STRING0 , e ) ;
 + }
 }
 SINGLE
 SINGLE

Handle AlreadyConnectedException in ReconnectionManager


<nb> public class RequestThreadManager {
 public void onPictureTaken ( byte [ ] data , Camera camera ) {
 Log . i ( TAG , STRING0 ) ;
 Pair < RequestHolder , Long > captureInfo = mCaptureCollector . jpegProduced ( ) ;
 - RequestHolder holder = captureInfo . first ;
 - long timestamp = captureInfo . second ;
 - if ( holder == null ) {
 + if ( captureInfo == null || captureInfo . first == null ) {
 Log . e ( TAG , STRING1 ) ;
 return ;
 }
 + RequestHolder holder = captureInfo . first ;
 + long timestamp = captureInfo . second ;
 for ( Surface s : holder . getHolderTargets ( ) ) {
 try {
 if ( LegacyCameraDevice . containsSurfaceId ( s , mJpegSurfaceIds ) ) {


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> class ScratchWidget extends EditorBasedWidget implements CustomStatusBarWidget . M
 Project project = getProject ( ) ;
 if ( project == null ) return ;
 VirtualFile file = getSelectedFile ( ) ;
 - if ( file == null ) return ;
 ScratchFileService fileService = ScratchFileService . getInstance ( ) ;
 - if ( fileService . getRootType ( file ) instanceof ScratchRootType ) {
 + if ( file != null && fileService . getRootType ( file ) instanceof ScratchRootType ) {
 Language lang = fileService . getScratchesMapping ( ) . getMapping ( file ) ;
 if ( lang == null ) {
 lang = LanguageSubstitutors . INSTANCE . substituteLanguage ( ( ( LanguageFileType ) file . getFileType ( ) ) . getLanguage ( ) , file , project ) ;


<nb> public class PresencePriorityTest extends SmackTestCase {
 Presence . Mode . AVAILABLE ) ) ;
 conn . sendPacket ( new Presence ( Presence . Type . AVAILABLE , null , NUMBER0 ,
 Presence . Mode . AVAILABLE ) ) ;
 + Thread . sleep ( NUMBER1 ) ;
 SINGLE
 Chat chat0 = new Chat ( getConnection ( NUMBER2 ) , getBareJID ( NUMBER3 ) ) ;
 Chat chat1 = new Chat ( getConnection ( NUMBER3 ) , getBareJID ( NUMBER2 ) ) ;
 <nb> public class RosterExchangeManagerTest extends SmackTestCase {
 entriesReceived = NUMBER2 ;
 rosterExchangeManager1 . send ( getConnection ( NUMBER2 ) . getRoster ( ) , getBareJID ( NUMBER3 ) ) ;
 SINGLE
 - Thread . sleep ( NUMBER4 ) ;
 + Thread . sleep ( NUMBER5 ) ;
 }
 catch ( Exception e ) {
 fail ( STRING0 ) ;

Increased delay between packets to give more time to the server for processing the packets


<nb> public class MediaConductor extends Agent
 sender . processBufferRotation ( ) ;
 receiver . processBufferRotation ( ) ;
 processClientCommandBuffer ( ) ;
 - processCommandBuffer ( ) ;
 + processLocalCommandBuffer ( ) ;
 processTimers ( ) ;
 }

 <nb> public class MediaConductor extends Agent
 SINGLE
 }

 - private void processCommandBuffer ( )
 + private void processLocalCommandBuffer ( )
 {
 localCommandBuffer . read (
 ( msgTypeId , buffer , index , length ) - >

Rename command buffers in MediaConductor


<nb> public class Extractor {
 private String conditionValue ;
 @ jsonproperty
 private int order ;
 - @ jsonproperty
 - private String regexConditionPattern ;

 public String getTitle ( ) {
 return title ;
 <nb> public class Extractor {
 public void setOrder ( int order ) {
 this . order = order ;
 }
 -
 - public String getRegexConditionPattern ( ) {
 - return regexConditionPattern ;
 - }
 -
 - public void setRegexConditionPattern ( String regexConditionPattern ) {
 - this . regexConditionPattern = regexConditionPattern ;
 - }
 }

Remove unused bundle Extractor regexConditionPattern


<nb> public class EphemeralFileSystemAbstraction implements FileSystemAbstraction
 int read ( Positionable fc , ByteBuffer dst )
 {
 int wanted = dst . limit ( ) - dst . position ( ) ;
 - int available = min ( wanted , ( int ) ( size ( ) - fc . pos ( ) ) ) ;
 - if ( available == NUMBER0 )
 + long size = size ( ) ;
 + int available = min ( wanted , ( int ) ( size - fc . pos ( ) ) ) ;
 + if ( available <= NUMBER0 )
 {
 return - NUMBER1 ; SINGLE
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 @ configuration
 @ enablespringdatawebsupport


<nb> public class RunnerContentUi implements ContentUI , Disposable , CellTransform . Fac

 for ( Content content : contents ) {
 final View view = getStateFor ( content ) ;
 - SINGLE
 + if ( view . isMinimizedInGrid ( ) ) continue ;
 prev . myManager . removeContent ( content , false ) ;
 myManager . removeContent ( content , false ) ;
 if ( hadGrid && contents . size ( ) == NUMBER0 && ! wasRestoring ) {


<nb> public class InternalEngine extends AbstractIndexShardComponent implements Engin
 synchronized ( refreshMutex ) {
 if ( dirty || refresh . force ( ) ) {
 dirty = false ;
 - searcherManager . maybeRefresh ( ) ;
 + boolean refreshed = searcherManager . maybeRefresh ( ) ;
 + assert refreshed : STRING0 ;
 }
 }
 } catch ( AlreadyClosedException e ) {

InternalEngine added an assert to verify refresh was performed by lucene


<nb>
 package NAMESPACE ;

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

 COMMENT
 COMMENT
 COMMENT
 public enum WorldType {
 NORMAL ( STRING0 ) ,
 - FLAT ( STRING1 ) ;
 + FLAT ( STRING1 ) ,
 + VERSION_1_1 ( STRING2 ) ;

 private final static Map < String , WorldType > BY_NAME = Maps . newHashMap ( ) ;
 private final String name ;


<nb> public class EventServiceImpl implements InternalEventService {
 final String eventSyncFrequencyProp = System . getProperty ( EVENT_SYNC_FREQUENCY_PROP ) ;
 int eventSyncFrequency ;
 try {
 - eventSyncFrequency = Integer . valueOf ( eventSyncFrequencyProp ) ;
 + eventSyncFrequency = Integer . parseInt ( eventSyncFrequencyProp ) ;
 + if ( eventSyncFrequency <= NUMBER0 ) {
 + eventSyncFrequency = EVENT_SYNC_FREQUENCY ;
 + }
 } catch ( Exception e ) {
 eventSyncFrequency = EVENT_SYNC_FREQUENCY ;
 }


<nb> public abstract class AbstractArchiveResource extends AbstractResource {

 int pos = NUMBER0 ;
 try ( JarInputStreamWrapper jisw = getJarInputStreamWrapper ( ) ) {
 + if ( jisw == null ) {
 + SINGLE
 + return null ;
 + }
 while ( pos < size ) {
 int n = jisw . read ( result , pos , size - pos ) ;
 if ( n < NUMBER0 ) {
 <nb> public abstract class AbstractArchiveResource extends AbstractResource {
 getLog ( ) . debug ( sm . getString ( STRING0 ,
 getWebappPath ( ) ) , ioe ) ;
 }
 + SINGLE
 + return null ;
 }

 return result ;

improve the algorithm to handle an exception or null return value in getContent and avoid NPE or returning corrupted data


<nb> import NAMESPACE ;

 public abstract class CompareTo < T extends Comparable < T > > extends ArgumentMatcher < T > {
 - private static final long serialVersionUID = NUMBER0 ;
 private final Comparable < T > wanted ;

 public CompareTo ( Comparable < T > value ) {
 <nb> import NAMESPACE ;
 import NAMESPACE ;

 @ ignore ( STRING0 )
 - @ suppresswarnings ( STRING1 )
 public class AssertingMatchersTest extends TestBase {

 private IMethods mock ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 - @ suppresswarnings ( STRING1 )
 public class CustomMatcherDoesYieldCCETest extends TestBase {

 @ mock private IMethods mock ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 - @ suppresswarnings ( STRING1 )
 public class CustomMatchersTest extends TestBase {

 private final class ContainsFoo extends ArgumentMatcher < String > {

in order to move Serializable out of interfaces and back to concrete classes


<nb> public class InMemoryTaskArtifactCache implements InMemoryPersistentCacheDecorat
 original . remove ( key ) ;
 }

 - public void onStartWork ( String operationDisplayName , boolean lockHasNewOwner ) {
 - if ( lockHasNewOwner ) {
 + public void onStartWork ( String operationDisplayName , boolean contentHasBeenUpdated ) {
 + if ( contentHasBeenUpdated ) {
 LOG . info ( STRING0 , cacheFile ) ;
 data . invalidateAll ( ) ;
 }
 <nb> public class DefaultMultiProcessSafePersistentIndexedCache < K , V > implements Mult
 } ) ;
 }

 - public void onStartWork ( String operationDisplayName , boolean lockHasNewOwner ) {
 + public void onStartWork ( String operationDisplayName , boolean contentHasBeenUpdated ) {
 }

 public void onEndWork ( ) {
 <nb> public interface UnitOfWorkParticipant {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - void onStartWork ( String operationDisplayName , boolean lockHasNewOwner ) ;
 + void onStartWork ( String operationDisplayName , boolean contentHasBeenUpdated ) ;

 COMMENT
 COMMENT

Renamed parameter of UnitOfWorkParticipant onStartWork and updated some javadocs


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


<nb> public class DisplayUtils {
 STRING0 ,
 STRING1 ,
 STRING2 ,
 - STRING3
 + STRING3 ,
 + STRING4
 } ;
 private static Set < String > SUBTYPES_DOCUMENT_SET = new HashSet < String > ( Arrays . asList ( SUBTYPES_DOCUMENT ) ) ;
 private static final String [ ] SUBTYPES_SPREADSHEET = {

Fixed icon for MIME type application javascript


<nb> public class PaymentJson extends JsonBase {
 return transactions ;
 }

 - public PaymentAttempt getNextScheduledPaymentRetry ( ) { return nextScheduledPaymentAttempt ; }
 + public PaymentAttempt getNextScheduledPaymentAttempt ( ) { return nextScheduledPaymentAttempt ; }

 @ override
 public String toString ( ) {


<nb> public class SslHandler extends ByteToMessageDecoder implements ChannelOutboundH
 ctx . read ( ) ;
 }

 - ctx . fireChannelReadComplete ( ) ;
 + super . channelReadComplete ( ctx ) ;
 }

 COMMENT

Fix unbounded expansion of cumulative buffer in SslHandler


<nb> public class WebView extends AbsoluteLayout
 if ( measuredHeight > heightSize ) {
 measuredHeight = heightSize ;
 mHeightCanMeasure = false ;
 - } else if ( measuredHeight < heightSize ) {
 measuredHeight |= MEASURED_STATE_TOO_SMALL ;
 }
 }


<nb> public class NettyResponse extends ResponseBase {
 charset = calculateCharset ( ) ;
 }
 byte [ ] b = AsyncHttpProviderUtils . contentToBytes ( bodyParts , maxLength ) ;
 - if ( charset == null ) {
 - charset = DEFAULT_CHARSET ;
 - }
 return new String ( b , charset ) ;
 }


<nb> public class DevelopmentServer {
 systemEnvironment . set ( SystemEnvironment . GO_CONFIG_REPO_PERIODIC_GC , true ) ;
 systemEnvironment . set ( SystemEnvironment . GO_CONFIG_REPO_GC_AGGRESSIVE , true ) ;
 systemEnvironment . setProperty ( STRING0 , STRING1 ) ;
 - systemEnvironment . setProperty ( STRING2 , STRING3 ) ;
 - systemEnvironment . setProperty ( STRING4 , STRING5 ) ;
 + systemEnvironment . setProperty ( STRING2 , STRING6 ) ;
 + systemEnvironment . setProperty ( STRING4 , STRING6 ) ;
 }

 private static void copyDbFiles ( ) throws IOException {

Reduce the frequency of annoying git gc messages in dev environment


<nb> public interface Project extends Comparable < Project > , ExtensionAware , PluginAwar
 void dependencies ( Closure configureClosure ) ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - PluginContainer getPlugins ( ) ;
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface Project extends Comparable < Project > , ExtensionAware , PluginAwar
 CopySpec copySpec ( Closure closure ) ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - void apply ( Closure closure ) ;
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - void apply ( Map < String , ? > options ) ;
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Removed methods from Project overridden from PluginAware


<nb> class TypeConverterDelegate {
 Collection original , String propertyName , Class requiredType , TypeDescriptor typeDescriptor ) {

 boolean originalAllowed = requiredType . isInstance ( original ) ;
 - if ( ! originalAllowed && ! Collection . class . isAssignableFrom ( requiredType ) ) {
 + if ( ! originalAllowed && ! Collection . class . isAssignableFrom ( requiredType ) || original . isEmpty ( ) ) {
 return original ;
 }

 <nb> class TypeConverterDelegate {
 Map original , String propertyName , Class requiredType , TypeDescriptor typeDescriptor ) {

 boolean originalAllowed = requiredType . isInstance ( original ) ;
 - if ( ! originalAllowed && ! Map . class . isAssignableFrom ( requiredType ) ) {
 + if ( ! originalAllowed && ! Map . class . isAssignableFrom ( requiredType ) || original . isEmpty ( ) ) {
 return original ;
 }

skip collection conversion early if empty


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class ParseDataset2 extends Job {
 Log . info_no_stdout ( String . format ( STRING0 , CStr , typeStr , minStr , maxStr , naStr , isConstantStr , numLevelsStr ) ) ;
 }
 }
 + Log . info ( FrameUtils . chunkSummary ( fr ) . toString ( ) ) ;
 }
 catch ( Exception ignore ) { } SINGLE
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class NewPathForShardTest extends ESTestCase {
 }

 public void testSelectNewPathForShard ( ) throws Exception {
 + assumeFalse ( STRING0 , Constants . WINDOWS ) ;
 Path path = PathUtils . get ( createTempDir ( ) . toString ( ) ) ;

 SINGLE


<nb> public enum Opcode
 NEW_INSTANCE ( ( byte ) NUMBER0 , STRING0 , ( byte ) NUMBER1 , ReferenceType . type , STRING1 ) ,
 NEW_ARRAY ( ( byte ) NUMBER2 , STRING2 , ( byte ) NUMBER1 , ReferenceType . type , STRING3 ) ,
 FILLED_NEW_ARRAY ( ( byte ) NUMBER3 , STRING4 , ( byte ) NUMBER4 , ReferenceType . type , STRING5 ) ,
 - FILLED_NEW_ARRAY_RANGE ( ( byte ) NUMBER5 , STRING6 , ( byte ) NUMBER4 , ReferenceType . type , STRING7 ) ,
 + FILLED_NEW_ARRAY_RANGE ( ( byte ) NUMBER5 , STRING8 , ( byte ) NUMBER4 , ReferenceType . type , STRING7 ) ,
 FILL_ARRAY_DATA ( ( byte ) NUMBER6 , STRING9 , ( byte ) NUMBER4 , ReferenceType . none , STRING10 ) ,
 THROW ( ( byte ) NUMBER7 , STRING11 , ( byte ) NUMBER8 , ReferenceType . none , STRING12 ) ,
 GOTO ( ( byte ) NUMBER9 , STRING13 , ( byte ) NUMBER8 , ReferenceType . none , STRING14 ) ,

Fixed a typo in the enum value for the filled new array range opcode


<nb> public class BitmapRetrieverTest {
 retriever . getBitmap ( ) ;

 SINGLE
 - verify ( cache , atLeastOnce ( ) ) . put ( STRING0 , null ) ;
 + verify ( cache , atLeastOnce ( ) ) . remove ( STRING0 ) ;
 verify ( file , atLeastOnce ( ) ) . delete ( ) ;

 }

use new cachemanager API in bitmap retriever test


<nb> public class WindowAnimator {
 + STRING0 + win . mWinAnimator . mAnimation ) ;
 } else if ( mPolicy . canBeForceHidden ( win , win . mAttrs ) ) {
 final boolean changed ;
 - if ( mForceHiding ) {
 + if ( mForceHiding && ! winAnimator . isAnimating ( ) ) {
 changed = win . hideLw ( false , false ) ;
 if ( WindowManagerService . DEBUG_VISIBILITY && changed ) Slog . v ( TAG ,
 STRING1 + win ) ;
 <nb> public class WindowManagerService extends IWindowManager . Stub
 mWallpaperTarget = oldW ;
 foundW = oldW ;
 foundI = oldI ;
 - mLowerWallpaperTarget = null ;
 - mUpperWallpaperTarget = null ;
 }
 SINGLE
 SINGLE
 <nb> public class WindowManagerService extends IWindowManager . Stub
 set . addAnimation ( scale ) ;
 alpha . setDuration ( duration ) ;
 set . addAnimation ( alpha ) ;
 + set . setDetachWallpaper ( true ) ;
 a = set ;
 } else {
 a = createExitAnimationLocked ( transit , duration ) ;

Do not hide animating window behind keyguard


<nb> public abstract class AbstractClient implements Closeable {
 COMMENT
 public synchronized void disconnect ( ) {
 if ( mConnected ) {
 + Preconditions . checkNotNull ( mProtocol ) ;
 LOG . debug ( STRING0 , getServiceName ( ) , mMode , mAddress ) ;
 beforeDisconnect ( ) ;
 - if ( mProtocol != null ) {
 - mProtocol . getTransport ( ) . close ( ) ;
 - }
 + mProtocol . getTransport ( ) . close ( ) ;
 mConnected = false ;
 afterDisconnect ( ) ;
 }


<nb> public class ChooseRunConfigurationAction extends AnAction {
 }

 SINGLE
 - final ItemWrapper wrapper = new ItemWrapper ( null ) {
 + final ItemWrapper wrapper = new ItemWrapper ( configuration ) {
 @ override
 public Icon getIcon ( ) {
 Icon result = IconLoader . getTransparentIcon ( ExecutionUtil . getConfigurationIcon ( project , configuration ) , FLOAT0 ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CameraDevice implements android . hardware . camera2 . CameraDevice {
 }

 public void setRemoteDevice ( ICameraDeviceUser remoteDevice ) {
 - mRemoteDevice = remoteDevice ;
 + SINGLE
 + mRemoteDevice = CameraBinderDecorator . newInstance ( remoteDevice ) ;
 }

 @ override

Convert camera device errors to exceptions


<nb> public class ExternalToolPassFactory extends AbstractProjectComponent implements

 public ExternalToolPassFactory ( Project project , TextEditorHighlightingPassRegistrar highlightingPassRegistrar ) {
 super ( project ) ;
 - highlightingPassRegistrar . registerTextEditorHighlightingPass ( this , null , new int [ ] { Pass . LOCAL_INSPECTIONS } , true , Pass . EXTERNAL_TOOLS ) ;
 + highlightingPassRegistrar . registerTextEditorHighlightingPass ( this , new int [ ] { Pass . UPDATE_ALL , Pass . UPDATE_VISIBLE } , new int [ ] { Pass . LOCAL_INSPECTIONS } , true , Pass . EXTERNAL_TOOLS ) ;
 }

 @ nonnls

run exteranl pass after general pass completion


<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 SUTime {

 @ override
 public Time offset ( Duration offset , int offsetFlags ) {
 - if ( ( offsetFlags | RELATIVE_OFFSET_INEXACT ) != NUMBER0 )
 + if ( ( offsetFlags & RELATIVE_OFFSET_INEXACT ) != NUMBER0 ) {
 return new RelativeTime ( this , TemporalOp . OFFSET , offset ) ;
 - else return new RelativeTime ( this , TemporalOp . OFFSET_EXACT , offset ) ;
 + } else {
 + return new RelativeTime ( this , TemporalOp . OFFSET_EXACT , offset ) ;
 + }
 }

 @ override


<nb> public class JsonPathTest {
 STRING0 +
 STRING1 ;

 +
 @ test
 public void getList ( ) throws Exception {
 final List < String > categories = new JsonPath ( JSON ) . get ( STRING2 ) ;
 <nb> public class XmlPathTest {

 private static final String ATTR_WITH_MINUS = STRING3 ;

 + private static final String XML_WITH_DOT_IN_NAME = STRING4 ;
 +
 @ test
 public void initializeUsingCtorAndGetList ( ) throws Exception {
 final NodeChildren categories = new XmlPath ( XML ) . get ( STRING5 ) ;
 <nb> public class XmlPathTest {

 assertThat ( name , equalTo ( STRING6 ) ) ;
 }
 +
 + @ test
 + public void canParseTagsWithDotIfUsingEscaping ( ) throws Exception {
 + final String message = from ( XML_WITH_DOT_IN_NAME ) . get ( STRING7 ) ;
 +
 + assertThat ( message , equalTo ( STRING8 ) ) ;
 + }
 }


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 -
 import NAMESPACE ;

 COMMENT
 <nb> class DelegatingTaskDecorator implements Runnable {

 @ override
 public void run ( ) {
 - try {
 - executor . execute ( runnable ) ;
 - } catch ( Throwable t ) {
 - ExceptionUtil . sneakyThrow ( t ) ;
 - }
 + executor . execute ( runnable ) ;
 }

 + @ override
 + public String toString ( ) {
 + return STRING0
 + + STRING1 + executor
 + + STRING2 + runnable
 + + STRING3 ;
 + }
 }
 <nb> public class SkipOnConcurrentExecutionDecorator implements Runnable {
 }
 }
 }
 +
 + @ override
 + public String toString ( ) {
 + return STRING4
 + + STRING5 + isAlreadyRunning
 + + STRING2 + runnable
 + + STRING3 ;
 + }
 }


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class IIOPTimeoutTestCase {
 } catch ( Exception e ) {
 SINGLE
 Assert . assertEquals ( STRING0 ,
 - java . lang . IllegalStateException . class , e . getClass ( ) ) ;
 + TransactionRolledbackException . class , e . getClass ( ) ) ;
 }

 Assert . assertEquals ( STRING1 , NUMBER0 , checker . countSynchronizedBegin ( ) ) ;

IIOPTimeoutTestCase change expected exception


<nb> public abstract class TileEngine extends TileBuildCraft implements IPowerRecepto

 if ( getEnergyStage ( ) == EnergyStage . OVERHEAT ) {
 worldObj . createExplosion ( null , xCoord , yCoord , zCoord , explosionRange ( ) , true ) ;
 + worldObj . setBlockToAir ( xCoord , yCoord , zCoord ) ;
 }

 if ( energy > getMaxEnergy ( ) ) {

Exploding Engines should kill themselves


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class IOResourceInspectionBase extends ResourceInspection {
 STRING0 + STRING1 +
 STRING0 + STRING2 +
 STRING0 + STRING3 ;
 - @ suppresswarnings ( { STRING4 } )

 @ override
 @ notnull


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CompilePdfPreferencesPane extends PreferencesPane

 Label previwingOptionsLabel = new Label ( STRING0 ) ;
 previwingOptionsLabel . addStyleName ( baseRes . styles ( ) . headerLabel ( ) ) ;
 + previwingOptionsLabel . getElement ( ) . getStyle ( ) . setMarginTop ( NUMBER0 , Unit . PX ) ;
 nudgeRight ( previwingOptionsLabel ) ;
 add ( previwingOptionsLabel ) ;


<nb> implements ManagedService {
 service , interval ) ;
 upnpService . getControlPoint ( ) . execute ( callback ) ;
 } else {
 - logger . info ( STRING0 , device . getDisplayString ( ) ) ;
 + logger . debug ( STRING0 , device . getDisplayString ( ) ) ;
 }
 }

reduced log level for discovered non Sonos devices


<nb> public final class DBMaker {
 }

 - extendArgumentCheck ( ) ;
 -
 -
 Engine engine ;
 int lockingStrategy = NUMBER0 ;
 String lockingStrategyStr = props . getProperty ( Keys . lock , Keys . lock_readWrite ) ;
 <nb> public final class DBMaker {
 ( ( Store ) engine ) . init ( ) ;
 }

 - engine = extendWrapStore ( engine ) ;
 -

 if ( propsGetBool ( Keys . snapshots ) )
 engine = extendSnapshotEngine ( engine , lockScale ) ;
 <nb> public final class DBMaker {
 }

 - protected void extendArgumentCheck ( ) {
 - }
 -
 - protected Engine extendWrapStore ( Engine engine ) {
 - return engine ;
 - }
 -
 -

 protected Engine extendWrapSnapshotEngine ( Engine engine ) {
 return engine ;


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

Fix SimpleJdbcCall and SimpleJdbcInsert Javadoc


<nb> public class TestWsWebSocketContainer extends TomcatBaseTest {
 private static final byte [ ] MESSAGE_BINARY_4K = new byte [ NUMBER0 ] ;

 private static final long TIMEOUT_MS = NUMBER1 * NUMBER2 ;
 + private static final long MARGIN = NUMBER3 ;

 static {
 StringBuilder sb = new StringBuilder ( NUMBER0 ) ;
 <nb> public class TestWsWebSocketContainer extends TomcatBaseTest {
 String msg = STRING0 + timeout + STRING1 ;

 SINGLE
 - Assert . assertTrue ( msg , timeout >= TIMEOUT_MS ) ;
 + Assert . assertTrue ( msg , timeout >= TIMEOUT_MS - MARGIN ) ;

 SINGLE
 - Assert . assertTrue ( msg , timeout < TIMEOUT_MS * NUMBER4 ) ;
 + Assert . assertTrue ( msg , timeout < TIMEOUT_MS * NUMBER4 ) ;

 if ( sr == null ) {
 Assert . fail ( ) ;

Add a reasonable error margin to the test


<nb> public class LayoutFragment extends Fragment {
 }

 @ override
 - public void onViewAttachedToWindow ( SimpleViewHolder holder ) {
 - super . onViewAttachedToWindow ( holder ) ;
 - }
 -
 - @ override
 - public void onViewDetachedFromWindow ( SimpleViewHolder holder ) {
 - super . onViewDetachedFromWindow ( holder ) ;
 - }
 -
 - @ override
 public int getItemCount ( ) {
 return mItems . size ( ) ;
 }

sample Remove unused methods from SimpleAdapter


<nb> public class Attributes implements Iterable < Attribute > , Cloneable {

 Attributes that = ( Attributes ) o ;

 - if ( attributes != null ? ! attributes . equals ( that . attributes ) : that . attributes != null ) return false ;
 -
 - return true ;
 + return ! ( attributes != null ? ! attributes . equals ( that . attributes ) : that . attributes != null ) ;
 }

 @ override


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

 import NAMESPACE ;


<nb> public final class SupervisorPropery {
 supervisor , valueType , propertyName ) ;

 property . setName ( propertyName ) ;
 + property . setDisplayName ( propertyDescription ) ;
 property . setShortDescription ( propertyDescription ) ;

 return new SupervisorPropery ( property , propertyCategory ) ;


<nb> public abstract class StaticEntity extends BaseEntity {
 public float getInitialY ( ) {
 return this . mInitialY ;
 }
 +
 + public float getCenterX ( ) {
 + return this . mX + this . getWidth ( ) / NUMBER0 ;
 + }
 +
 + public float getCenterY ( ) {
 + return this . mY + this . getHeight ( ) / NUMBER0 ;
 + }
 +
 public float getOffsetX ( ) {
 return this . mOffsetX ;
 }
 <nb> public abstract class StaticEntity extends BaseEntity {

 public void setOffsetX ( final float pOffsetX ) {
 this . mOffsetX = pOffsetX ;
 + this . onPositionChanged ( ) ;
 }

 public void setOffsetY ( final float pOffsetY ) {
 this . mOffsetY = pOffsetY ;
 + this . onPositionChanged ( ) ;
 }

 public void setOffset ( final float pOffsetX , final float pOffsetY ) {


<nb> public class JSR310LocalDateTimeType extends AbstractJSR310DateTimeType < LocalDat
 @ override
 public LocalDateTime getValue ( ResultSet rs , int startIndex ) throws SQLException {
 Timestamp timestamp = rs . getTimestamp ( startIndex , utc ( ) ) ;
 - return timestamp != null ? LocalDateTime . from ( timestamp . toInstant ( ) ) : null ;
 + return timestamp != null ? timestamp . toLocalDateTime ( ) : null ;
 }

 @ override
 <nb> public class JSR310LocalTimeTypeTest extends AbstractJSR310DateTimeTypeTest < Loca
 EasyMock . verify ( resultSet ) ;

 assertNotNull ( result ) ;
 - assertTrue ( result . toSecondOfDay ( ) == NUMBER0 ) ;
 + assertTrue ( result . getSecond ( ) == NUMBER0 ) ;
 }
 }


<nb> public class StateIngame implements GameState {
 return ! CoreRegistry . get ( Config . class ) . getRendering ( ) . getDebug ( ) . isHudHidden ( ) ;
 }
 } ) ;
 -
 }

 @ override
 <nb> public class StateIngame implements GameState {
 CoreRegistry . clear ( ) ;
 BlockManager . getAir ( ) . setEntity ( EntityRef . NULL ) ;
 GameThread . clearWaitingProcesses ( ) ;
 -
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + nuiManager . getHUD ( ) . clearVisibleBinding ( ) ;
 }

 @ override
 <nb> public abstract class AbstractWidget implements UIWidget {
 this . visible = bind ;
 }

 + public void clearVisibleBinding ( ) {
 + this . visible = new DefaultBinding < > ( true ) ;
 + }
 +
 @ override
 public void onGainFocus ( ) {
 focused = true ;

Reset the visibility binding properly when the in game state is left


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import static NAMESPACE ;
 public class RuleIndexMediumTest {

 @ classrule
 - public static ServerTester tester = new ServerTester ( )
 - . setProperty ( IndexProperties . HTTP_PORT , STRING0 ) ;
 + public static ServerTester tester = new ServerTester ( ) ;

 RuleDao dao = tester . get ( RuleDao . class ) ;
 RuleIndex index = tester . get ( RuleIndex . class ) ;


<nb> public class Version {
 SINGLE

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

 static {
 SINGLE


<nb> public final class ActivityThread {
 SINGLE
 int diff = activity . mCurrentConfig . diff ( newConfig ) ;
 if ( diff != NUMBER0 ) {
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - if ( ( ~ activity . mActivityInfo . getRealConfigChanged ( ) & diff ) == NUMBER0
 - || ! reportToActivity ) {
 - shouldChangeConfig = true ;
 - }
 + shouldChangeConfig = true ;
 }
 }

Remove optimization to report config change


<nb> public class PostgresTypeConverter extends AbstractTypeConverter {
 public NumberType getNumberType ( ) {
 return new NumberType ( STRING0 ) ;
 }
 +
 + @ override
 + public TinyIntType getTinyIntType ( ) {
 + return new TinyIntType ( STRING1 ) ;
 + }
 }

mapped sql type TINYINT to SMALLINT for Postgres


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

 public class InvalidRangeFormatException extends RuntimeException {
 <nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 package NAMESPACE ;

 import NAMESPACE ;


<nb> public class AssignReturnRouteMessageClass extends ZWaveCommandProcessor {
 logger . error ( STRING0 , nodeId ) ;
 zController . notifyEventListeners ( new ZWaveNetworkEvent ( ZWaveNetworkEvent . Type . AssignReturnRoute , nodeId ,
 ZWaveNetworkEvent . State . Failure ) ) ;
 - incomingMessage . setTransActionCanceled ( true ) ;
 + incomingMessage . setTransactionCanceled ( true ) ;
 }

 return true ;


<nb> public class WebView extends AbsoluteLayout

 COMMENT
 protected void contentInvalidateAll ( ) {
 - mWebViewCore . sendMessage ( EventHub . CONTENT_INVALIDATE_ALL ) ;
 + if ( mWebViewCore != null && ! mBlockWebkitViewMessages ) {
 + mWebViewCore . sendMessage ( EventHub . CONTENT_INVALIDATE_ALL ) ;
 + }
 }

 COMMENT


<nb> public class AnimationDrawable extends DrawableContainer implements Runnable , An
 mOneShot = orig . mOneShot ;
 } else {
 mDurations = new int [ getCapacity ( ) ] ;
 - mOneShot = true ;
 + mOneShot = false ;
 }
 }

Fix default value of AnimationDrawable s one shot property


<nb> public final class BluetoothServerSocket implements Closeable {
 COMMENT
 private Handler mHandler ;
 private int mMessage ;
 + private final int mChannel ;

 COMMENT
 COMMENT
 <nb> public final class BluetoothServerSocket implements Closeable {
 COMMENT
 COMMENT
 throws IOException {
 + mChannel = port ;
 mSocket = new BluetoothSocket ( type , - NUMBER0 , auth , encrypt , null , port , null ) ;
 }

 <nb> public final class BluetoothServerSocket implements Closeable {
 mHandler = handler ;
 mMessage = message ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public int getChannel ( ) {
 + return mChannel ;
 + }
 }


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class WebCoreThreadWatchdog implements Runnable {
 break ;

 case TIMED_OUT :
 + if ( ( mContext == null ) || ! ( mContext instanceof Activity ) ) return ;
 new AlertDialog . Builder ( mContext )
 . setMessage ( com . android . internal . R . string . webpage_unresponsive )
 . setPositiveButton ( com . android . internal . R . string . force_close ,


<nb> public class StandardContext
 STRING0
 ) ,
 new MBeanNotificationInfo ( new String [ ] {
 - STRING1 } ,
 + STRING2 } ,
 Notification . class . getName ( ) ,
 STRING3
 ) ,


<nb> public class SimpMessagingTemplateTests {

 @ test
 public void convertAndSendWithCustomHeader ( ) {
 - Map < String , Object > headers = Collections . singletonMap ( STRING0 , STRING1 ) ;
 + Map < String , Object > headers = Collections . < String , Object > singletonMap ( STRING0 , STRING1 ) ;
 this . messagingTemplate . convertAndSend ( STRING2 , STRING3 , headers ) ;

 List < Message < byte [ ] > > messages = this . messageChannel . getMessages ( ) ;


<nb> public interface ArtifactCache extends AutoCloseable {
 BorrowablePath output ) ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Deleting unused commented out method from interface ArtifactCache


<nb> import static NAMESPACE ;
 COMMENT
 COMMENT
 public class PyParameterInfoHandler implements ParameterInfoHandler < PyArgumentList , CallArgumentsMapping > {
 - private static final String NO_PARAMS_MSG = STRING0 ;
 + private static final String NO_PARAMS_MSG = STRING1 ;

 public boolean couldShowInLookup ( ) {
 return true ;

provide reasonable view for functions without paramters


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Shell implements ConsoleInputHandler ,
 {
 final InputEditorDisplay display = view_ . getInputEditorDisplay ( ) ;

 + SINGLE
 + final String previousInput = StringUtil . notNull ( display . getText ( ) ) ;
 +
 SINGLE
 Command finishSendToConsole = new Command ( ) {
 @ override
 public void execute ( )
 {
 if ( event . shouldExecute ( ) )
 + {
 processCommandEntry ( ) ;
 + if ( previousInput . length ( ) > NUMBER0 )
 + display . setText ( previousInput ) ;
 + }

 if ( ! event . shouldExecute ( ) || event . shouldFocus ( ) )
 {

restore previous input after playing commands into the console


<nb> public class EditorWindow implements EditorEx , UserDataHolderEx {
 myDelegate . setBackgroundColor ( color ) ;
 }

 - public void resetBackgourndColor ( ) {
 - myDelegate . resetBackgourndColor ( ) ;
 - }
 -
 public Color getBackroundColor ( ) {
 return myDelegate . getBackroundColor ( ) ;
 }
 <nb> public interface EditorEx extends Editor {

 void setBackgroundColor ( Color color ) ;

 - void resetBackgourndColor ( ) ;
 -
 Dimension getContentSize ( ) ;

 boolean isEmbeddedIntoDialogWrapper ( ) ;
 <nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi
 myForcedBackground = color ;
 }

 - public void resetBackgourndColor ( ) {
 - myForcedBackground = null ;
 - }
 -
 public Color getForegroundColor ( ) {
 return myScheme . getDefaultForeground ( ) ;
 }


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class IdeaJdk extends JavaDependentSdkType implements JavaSdkType {
 appendIdeaLibrary ( plugins + STRING0 , result , STRING1 , STRING2 ) ;
 appendIdeaLibrary ( plugins + STRING3 , result , STRING4 ) ;
 appendIdeaLibrary ( plugins + STRING5 , result , STRING6 ) ;
 + appendIdeaLibrary ( plugins + STRING7 , result ,
 + STRING8 , STRING9 , STRING10 , STRING11 ) ;
 return VfsUtilCore . toVirtualFileArray ( result ) ;
 }


<nb> public class TachyonConf {
 }

 String resolved = base ;
 - SINGLE
 + SINGLE
 + SINGLE
 Matcher matcher = CONF_REGEX . matcher ( base ) ;
 while ( matcher . find ( ) ) {
 String match = matcher . group ( NUMBER0 ) . trim ( ) ;


<nb> public class AtmosphereFramework {
 ex . getMessage ( ) ) ;
 }
 logger . error ( STRING0 +
 - STRING1 , BlockingIOCometSupport . class . getName ( ) ) ;
 -
 - logger . trace ( ex . getMessage ( ) , ex ) ;
 + STRING1 , BlockingIOCometSupport . class . getName ( ) , ex ) ;

 AsyncSupport current = asyncSupport ;
 asyncSupport = asyncSupport . supportWebSocket ( ) ? new Tomcat7BIOSupportWithWebSocket ( config ) : new BlockingIOCometSupport ( config ) ;

Print the stack Trace so people stop being confused when Tomcat is misconfigured


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + 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 class DefaultServer extends BlockJUnit4ClassRunner {

 @ override
 protected Description describeChild ( FrameworkMethod method ) {
 - if ( runs > NUMBER0 ) {
 + if ( runs > NUMBER0 && method . getAnnotation ( Ignore . class ) == null ) {
 return describeRepeatTest ( method ) ;
 }
 return super . describeChild ( method ) ;


<nb> public class ListPopupWindow {
 private final ListSelectorHider mHideSelector = new ListSelectorHider ( ) ;
 private Runnable mShowDropDownRunnable ;

 - private Handler mHandler = new Handler ( ) ;
 + private final Handler mHandler ;

 private Rect mTempRect = new Rect ( ) ;

 <nb> public class ListPopupWindow {
 COMMENT
 public ListPopupWindow ( Context context , AttributeSet attrs , int defStyleAttr , int defStyleRes ) {
 mContext = context ;
 + mHandler = new Handler ( context . getMainLooper ( ) ) ;

 final TypedArray a = context . obtainStyledAttributes ( attrs , R . styleable . ListPopupWindow ,
 defStyleAttr , defStyleRes ) ;

Create ListPopupWindow handler against main looper


<nb> public class ControlCommandsTest extends JedisCommandTestBase {
 String status = jedis . bgsave ( ) ;
 assertEquals ( STRING0 , status ) ;
 } catch ( JedisException e ) {
 - assertEquals ( STRING1 , e
 + assertEquals ( STRING2 , e
 . getMessage ( ) ) ;
 }
 }


<nb> public class JsonHttpResponseHandler extends AsyncHttpResponseHandler {
 protected Object parseResponse ( String responseBody ) throws JSONException {
 return new JSONTokener ( responseBody ) . nextValue ( ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public void onFailure ( Throwable e , JSONObject errorResponse ) { }
 + public void onFailure ( Throwable e , JSONArray errorResponse ) { }
 +
 + @ override
 + protected void handleFailureMessage ( Throwable e , String responseBody ) {
 + super . handleFailureMessage ( e , responseBody ) ;
 + try {
 + Object jsonResponse = parseResponse ( responseBody ) ;
 + if ( jsonResponse instanceof JSONObject ) {
 + onFailure ( e , ( JSONObject ) jsonResponse ) ;
 + } else if ( jsonResponse instanceof JSONArray ) {
 + onFailure ( e , ( JSONArray ) jsonResponse ) ;
 + }
 + } catch ( JSONException ex ) {
 + onFailure ( e , responseBody ) ;
 + }
 + }
 }


<nb> public class Application extends SpringBootServletInitializer {
 . apiProperty ( STRING0 , STRING1 )
 . apiProperty ( STRING2 , STRING3 )
 . apiContextRouteId ( STRING4 )
 - . component ( STRING5 )
 . bindingMode ( RestBindingMode . json ) ;

 rest ( STRING6 ) . description ( STRING7 )

remove REST DSL component explicit config from the Spring Boot REST JPA example


<nb> public class Constants {
 }

 public static enum AccountType {
 - LOCAL , LDAP , REDMINE , SALESFORCE , WINDOWS ;
 + LOCAL , EXTERNAL , LDAP , REDMINE , SALESFORCE , WINDOWS ;

 public boolean isLocal ( ) {
 return this == LOCAL ;


<nb> public class BubbleTarget extends RelativeLayout {

 }

 + mSnapCircle . mY = Util . clamp ( NUMBER0 , mSnapCircle . mY , Config . mScreenHeight - mDefaultCircle . mRadius ) ;
 +
 mDefaultCircle . mX = mSnapCircle . mX ;
 mDefaultCircle . mY = mSnapCircle . mY ;


<nb> public abstract class Rule {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ deprecated
 public boolean isSpellingRule ( ) {
 <nb> public class Tools {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public static String getContext ( final int fromPos , final int toPos , final String text ) {
 return getContext ( fromPos , toPos , text , DEFAULT_CONTEXT_SIZE ) ;
 <nb> public class Tools {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public static String getContext ( final int fromPos , final int toPos , final String fileContents ,
 int contextSize ) {
 <nb> public class Tools {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public static String getContext ( final int fromPos , final int toPos ,
 final String fileContents , final int contextSize ,

add version information to the deprecated tag


<nb> public class ArrayPredictionContext extends PredictionContext {

 @ override
 public boolean isEmpty ( ) {
 - return size ( ) == NUMBER0 &&
 - returnStates [ NUMBER1 ] == EMPTY_RETURN_STATE ;
 + SINGLE
 + SINGLE
 + return returnStates [ NUMBER1 ] == EMPTY_RETURN_STATE ;
 }

 @ override


<nb> public class MemoryAwareThreadPoolExecutor extends ThreadPoolExecutor {
 COMMENT
 COMMENT
 protected boolean shouldCount ( Runnable task ) {
 - if ( task instanceof ChannelDownstreamEventRunnable ) {
 - return false ;
 - }
 -
 if ( task instanceof ChannelUpstreamEventRunnable ) {
 ChannelUpstreamEventRunnable r = ( ChannelUpstreamEventRunnable ) task ;
 ChannelEvent e = r . getEvent ( ) ;

Reverting the previous commit which makes no sense


<nb> public class LabelExpression {
 }

 public LabelExpression ( String labels ) {
 - labels = labels . replace ( STRING0 , STRING1 ) ;
 + if ( labels != null ) {
 + labels = labels . replace ( STRING0 , STRING1 ) ;
 + }
 parseLabelString ( labels ) ;
 originalString = labels ;
 }


<nb> class AndroidResource implements Resource {
 }

 @ override
 - public String getClassName ( ) {
 - return path . substring ( path . lastIndexOf ( STRING0 ) ) ;
 + public String getClassName ( String extension ) {
 + return path . substring ( NUMBER0 , path . length ( ) - extension . length ( ) ) . replace ( STRING1 , STRING2 ) ;
 }

 @ override

Fix build AndroidResource implements new Resource API


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FbDialog extends Dialog {
 }

 @ override
 + public void onReceivedSslError ( WebView view , SslErrorHandler handler , SslError error ) {
 + super . onReceivedSslError ( view , handler , error ) ;
 +
 + mListener . onError ( new DialogError ( null , ERROR_FAILED_SSL_HANDSHAKE , null ) ) ;
 + handler . cancel ( ) ;
 + FbDialog . this . dismiss ( ) ;
 + }
 +
 + @ override
 public void onPageStarted ( WebView view , String url , Bitmap favicon ) {
 Util . logd ( STRING0 , STRING1 + url ) ;
 super . onPageStarted ( view , url , favicon ) ;

android sdk Handle SSL errors in FbDialog


<nb> public class Location {
 mAccuracy = NUMBER0 ;
 }

 -
 private static void computeDistanceAndBearing ( double lat1 , double lon1 ,
 double lat2 , double lon2 , float [ ] results ) {
 SINGLE
 SINGLE
 -
 + float osmandDist = ( float ) ( net . osmand . util . MapUtils . getDistance ( lat1 , lon1 , lat2 , lon2 ) ) ;
 int MAXITERS = NUMBER1 ;
 SINGLE
 lat1 *= Math . PI / FLOAT0 ;
 <nb> public class Location {
 results [ NUMBER2 ] = finalBearing ;
 }
 }
 - SINGLE
 - results [ NUMBER0 ] = ( float ) ( net . osmand . util . MapUtils . getDistance ( lat1 , lon1 , lat2 , lon2 ) ) ;
 + SINGLE
 + results [ NUMBER0 ] = osmandDist ;
 }

 COMMENT


<nb> public class WktToGeoJsonConverter {
 }

 private static String extractCoordinateFromPoint ( String point ) {
 - String pointPattern = STRING0 ;
 + String pointPattern = STRING1 ;
 return point . replaceAll ( pointPattern , STRING2 ) ;
 }


<nb> public final class AudioState implements Parcelable {
 public static final int ROUTE_ALL = ROUTE_EARPIECE | ROUTE_BLUETOOTH | ROUTE_WIRED_HEADSET |
 ROUTE_SPEAKER ;

 - COMMENT
 - @ deprecated public final boolean isMuted ;
 + COMMENT
 + @ systemapi public final boolean isMuted ;

 - COMMENT
 - @ deprecated public final int route ;
 + COMMENT
 + @ systemapi public final int route ;

 - COMMENT
 - @ deprecated public final int supportedRouteMask ;
 + COMMENT
 + @ systemapi public final int supportedRouteMask ;

 public AudioState ( boolean muted , int route , int supportedRouteMask ) {
 this . isMuted = muted ;

Relax access on deprecated fields for compatibility


<nb> public class SharedThreadLocalRandomInspectionBase extends BaseInspection {
 protected final MethodMatcher myMethodMatcher ;

 public SharedThreadLocalRandomInspectionBase ( ) {
 - myMethodMatcher = new MethodMatcher ( true , STRING0 )
 + myMethodMatcher = new MethodMatcher ( false , STRING0 )
 . add ( STRING1 , STRING2 )
 - . add ( STRING3 , STRING4 ) ;
 + . add ( STRING3 , STRING4 )
 + . finishDefault ( ) ;
 }

 @ nls


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


<nb>
 SINGLE
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 +

 package NAMESPACE ;

 + COMMENT
 public class CommandResult extends BasicDBObject {

 - CommandResult ( ) {
 + CommandResult ( ) {
 }

 public boolean ok ( ) {
 <nb> public class CommandResult extends BasicDBObject {

 DBObject _cmd ;
 + private static final long serialVersionUID = NUMBER0 ;
 +
 + static class CommandFailure extends MongoException {
 + private static final long serialVersionUID = NUMBER0 ;

 - static class CommandFailure extends MongoException {
 - CommandFailure ( CommandResult res , String msg ) {
 + CommandFailure ( CommandResult res , String msg ) {
 super ( ServerError . getCode ( res ) , msg ) ;
 }
 }


<nb> public class DefaultTestHttpClient implements TestHttpClient {

 response = client . request ( uri , Duration . ofMinutes ( NUMBER0 ) , Action . join ( defaultRequestConfig , request , requestSpec - > {
 requestSpec . method ( method ) ;
 - if ( cookies . size ( ) > NUMBER1 ) {
 - requestSpec . getHeaders ( ) . add ( HttpHeaderConstants . COOKIE , ClientCookieEncoder . encode ( cookies ) ) ;
 - }

 + String encodedCookie = cookies . isEmpty ( ) ? STRING0 : ClientCookieEncoder . encode ( cookies ) ;
 +
 + requestSpec . getHeaders ( ) . add ( HttpHeaderConstants . COOKIE , encodedCookie ) ;
 requestSpec . getHeaders ( ) . add ( HttpHeaderConstants . HOST , HostAndPort . fromParts ( uri . getHost ( ) , uri . getPort ( ) ) . toString ( ) ) ;
 } ) ) ;
 } catch ( Throwable throwable ) {


<nb> public class MoveBy extends AnimationAction {
 this . startY = target . y ;
 this . deltaX = x ;
 this . deltaY = y ;
 + this . x = target . x + x ;
 + this . y = target . y + y ;
 this . taken = NUMBER0 ;
 this . done = false ;
 }

fixed Fixed a problem where the target position of the Actor was reset to the start after the animation


<nb> public class TelecomLoaderService extends SystemService {

 private static final ComponentName SERVICE_COMPONENT = new ComponentName (
 STRING0 ,
 - STRING1 ) ;
 + STRING2 ) ;

 private static final String SERVICE_ACTION = STRING3 ;

Changed package name of a Telecom service


<nb> public class VoldemortConfig implements Serializable {

 private final long pusherPollMs ;

 - public VoldemortConfig ( ) {
 - this ( new Props ( ) ) ;
 - }
 -
 public VoldemortConfig ( Properties props ) {
 this ( new Props ( props ) ) ;
 }


<nb> abstract public class ModelBuilder < M extends Model < M , P , O > , P extends Model . Param

 COMMENT
 public P _parms ;
 - private P parms ;

 COMMENT
 COMMENT


<nb> public class DaemonStateCoordinator implements Stoppable , DaemonStateControl {
 }

 boolean isBusy ( ) {
 - return state == State . Running && currentCommandExecution != null ;
 + return ( state == State . Running || state == State . StopRequested ) && currentCommandExecution != null ;
 }
 }

Fixing issue where multiple daemon stop requests result in an immediate stop