<nb> public class Message extends AbstractEntity {
 if ( message == null ) {
 return false ;
 }
 - return ( this . getType ( ) == Message . TYPE_TEXT
 + return ( message . getType ( ) == Message . TYPE_TEXT
 + && message . getEncryption ( ) != Message . ENCRYPTION_PGP
 && this . getType ( ) == message . getType ( )
 + && this . getEncryption ( ) == message . getEncryption ( )
 && this . getCounterpart ( ) . equals ( message . getCounterpart ( ) )
 && ( message . getTimeSent ( ) - this . getTimeSent ( ) ) <= NUMBER0 && ( ( this
 . getStatus ( ) == message . getStatus ( ) ) || ( this . getStatus ( ) == Message . STATUS_SEND && message

require encrypted to be the same for messages to get merged


<nb> public class JavaBuild {
 SINGLE

 List < String > runOptions = new ArrayList < String > ( ) ;
 - if ( Preferences . getBoolean ( STRING0 ) ) {
 +
 + SINGLE
 + SINGLE
 + if ( Preferences . getBoolean ( STRING0 ) &&
 + ! exportVariant . equals ( STRING1 ) ) {
 runOptions . add ( STRING2 + Preferences . get ( STRING3 ) + STRING4 ) ;
 runOptions . add ( STRING5 + Preferences . get ( STRING6 ) + STRING4 ) ;
 }

Ignore memory options when exporting for ARM


<nb> public abstract class HazelcastMBean < T > implements DynamicMBean , MBeanRegistrati
 try {
 return new MBeanAttributeInfo ( name , description , method , null ) ;
 } catch ( IntrospectionException e ) {
 - throw new IllegalArgumentException ( ) ;
 + throw new IllegalArgumentException ( e ) ;
 }
 }

 <nb> public class ManagementService implements DistributedObjectListener {
 try {
 return new ObjectName ( DOMAIN , properties ) ;
 } catch ( MalformedObjectNameException e ) {
 - throw new IllegalArgumentException ( ) ;
 + throw new IllegalArgumentException ( e ) ;
 }
 }

Do not eat exception cause in MBean code


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class NewDirectoryProjectAction extends AnAction implements DumbAware {
 }
 }

 + String generatorName = generator == null ? STRING0 : ConvertUsagesUtil . ensureProperKey ( generator . getName ( ) ) ;
 + UsageTrigger . trigger ( STRING1 + generatorName ) ;
 Object settings = null ;
 if ( generator != null ) {
 try {

collect statistics for New Project action


<nb> public class WebView extends AbsoluteLayout
 mProvider . getViewDelegate ( ) . onAttachedToWindow ( ) ;
 }

 + COMMENT
 @ override
 - protected void onDetachedFromWindow ( ) {
 + protected void onDetachedFromWindowInternal ( ) {
 mProvider . getViewDelegate ( ) . onDetachedFromWindow ( ) ;
 - super . onDetachedFromWindow ( ) ;
 + super . onDetachedFromWindowInternal ( ) ;
 }

 @ override

Switch WebView to onDetachedFromWindowInternal


<nb> public class JBTable extends JTable implements ComponentWithEmptyText , Component
 myStriped = striped ;
 if ( striped ) {
 getColumnModel ( ) . setColumnMargin ( NUMBER0 ) ;
 + setIntercellSpacing ( new Dimension ( getIntercellSpacing ( ) . width , NUMBER0 ) ) ;
 setShowGrid ( false ) ;
 }
 }

disabling inter cell spacing for striped tables


<nb> public class CachedResource implements Resource {

 final DirectBufferCache dataCache = cachingResourceManager . getDataCache ( ) ;
 + if ( dataCache == null ) {
 + underlyingResource . serve ( exchange ) ;
 + return ;
 + }
 DirectBufferCache . CacheEntry existing = dataCache . get ( cacheKey ) ;
 SINGLE
 if ( existing == null || ! existing . enabled ( ) || ! existing . reference ( ) ) {

Allow the buffer cache to be null in the cached resource handler


<nb> public class DisplayMetrics {
 public static final int DENSITY_400 = NUMBER0 ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public static final int DENSITY_XXHIGH = NUMBER1 ;

Remove obsolete remark from XXHDPI comment


<nb> public abstract class AbstractFuture < V > implements ListenableFuture < V > {
 SINGLE
 SINGLE
 SINGLE
 - Throwable cause = GENERATE_CANCELLATION_CAUSES ? newCancellationCause ( ) : null ;
 + Throwable cause = GENERATE_CANCELLATION_CAUSES
 + ? new CancellationException ( STRING0 )
 + : null ;
 Object valueToSet = new Cancellation ( mayInterruptIfRunning , cause ) ;
 do {
 if ( ATOMIC_HELPER . casValue ( this , localValue , valueToSet ) ) {
 <nb> public abstract class AbstractFuture < V > implements ListenableFuture < V > {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - private Throwable newCancellationCause ( ) {
 - return new CancellationException ( STRING0 ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class StreetVertexIndexServiceImpl implements StreetVertexIndexService {
 SINGLE
 SINGLE
 Set < String > uniqueNameSet = new HashSet < String > ( ) ;
 - for ( Edge e : intersection . getOutgoing ( ) )
 - uniqueNameSet . add ( e . getName ( ) ) ;
 + for ( Edge e : intersection . getOutgoing ( ) ) {
 + if ( e instanceof StreetEdge ) {
 + uniqueNameSet . add ( e . getName ( ) ) ;
 + }
 + }
 List < String > uniqueNames = new ArrayList < String > ( uniqueNameSet ) ;
 if ( uniqueNames . size ( ) > NUMBER0 )
 name = String . format ( STRING0 , uniqueNames . get ( NUMBER1 ) ,

do not include STLs and the like in insersection reverse geocode


<nb> public class RelaunchLibraryManager
 downloadMonitor . updateProgressString ( infoString ) ;
 FMLRelaunchLog . info ( infoString ) ;
 URLConnection connection = libDownload . openConnection ( ) ;
 + connection . setConnectTimeout ( NUMBER0 ) ;
 + connection . setReadTimeout ( NUMBER0 ) ;
 connection . setRequestProperty ( STRING0 , STRING1 ) ;
 int sizeGuess = connection . getContentLength ( ) ;
 performDownload ( connection . getInputStream ( ) , sizeGuess , hash , libFile ) ;
 <nb> public class RelaunchLibraryManager
 {
 if ( downloadMonitor . stopIt )
 {
 - FMLRelaunchLog . warning ( STRING2 ) ;
 + FMLRelaunchLog . warning ( STRING3 ) ;
 return ;
 }
 if ( e instanceof RuntimeException ) throw ( RuntimeException ) e ;
 FMLRelaunchLog . severe ( STRING4 +
 STRING5 +
 - STRING6 , libFile . getName ( ) ) ;
 + STRING7 , libFile . getName ( ) ) ;
 libFile . delete ( ) ;
 throw new RuntimeException ( STRING8 , e ) ;
 }

Add a connect and read timeout for downloading libraries


<nb> public interface RegistrySpec {
 COMMENT
 < O > RegistrySpec addLazy ( TypeToken < O > type , Supplier < ? extends O > supplier ) ;

 - default < O > RegistrySpec addLazyAsync ( Class < O > type , Supplier < ? extends Promise < ? extends O > > supplier ) {
 - return addLazy ( Types . promiseOf ( type ) , Types . cast ( supplier ) ) ;
 - }
 -
 - default < O > RegistrySpec addLazyAsync ( TypeToken < O > type , Supplier < ? extends Promise < ? extends O > > supplier ) {
 - return addLazy ( Types . promiseOf ( type ) , Types . cast ( supplier ) ) ;
 - }
 -
 COMMENT
 COMMENT
 COMMENT


<nb> public class DefaultServlet

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DefaultServlet

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class WebdavServlet

 SINGLE
 Stack < String > stackBelow = new Stack < String > ( ) ;
 -
 +
 while ( ( ! stack . isEmpty ( ) ) && ( depth >= NUMBER0 ) ) {

 String currentPath = stack . pop ( ) ;
 <nb> public class WebdavServlet

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> 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 WebFilter implements Filter {
 }

 private static String generateSessionId ( ) {
 - final String id = UuidUtil . buildRandomUuidString ( ) ;
 + final String id = UUID . randomUUID ( ) . toString ( ) ;
 final StringBuilder sb = new StringBuilder ( STRING0 ) ;
 final char [ ] chars = id . toCharArray ( ) ;
 for ( final char c : chars ) {


<nb>
 package NAMESPACE ;

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


<nb> public class HttpChannel < T > implements HttpParser . RequestHandler < T > , Runnable , H
 private static final Logger LOG = Log . getLogger ( HttpChannel . class ) ;
 private static final ThreadLocal < HttpChannel < ? > > __currentChannel = new ThreadLocal < > ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static HttpChannel < ? > getCurrentHttpChannel ( )
 {
 return __currentChannel . get ( ) ;
 <nb> public class HttpConnection extends AbstractConnection implements Runnable , Http
 private volatile ByteBuffer _chunk = null ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static HttpConnection getCurrentConnection ( )
 {
 return __currentConnection . get ( ) ;

Improved javadoc for accessing HttpChannel and HttpConnection


<nb> public class TraktSync extends AsyncTask < Void , Void , Integer > {
 for ( TvShow tvShow : shows ) {
 if ( tvdbId . equalsIgnoreCase ( tvShow . getTvdbId ( ) ) ) {
 if ( mResult . length ( ) != NUMBER0 ) {
 - mResult += STRING0 ;
 + mResult += STRING1 ;
 }

 if ( mIsSyncingUnseen ) {
 <nb> public class TraktSync extends AsyncTask < Void , Void , Integer > {
 case SUCCESS_WORK :
 message = STRING2 ;
 if ( mResult != null ) {
 - message += STRING3 + mResult + STRING4 ;
 + message += STRING5 + mResult + STRING4 ;
 }
 break ;
 case SUCCESS_NOWORK :


<nb> public class NamespaceGenTest extends LightCodeInsightFixtureTestCase {
 assertEquals ( NUMBER0 , main . invoke ( null , STRING0 ) ) ;
 }

 + public void testBoxedInt ( ) throws Exception {
 + loadText ( STRING1 ) ;
 + final Method main = generateFunction ( ) ;
 + assertEquals ( NUMBER1 , main . invoke ( null , NUMBER1 ) ) ;
 + assertEquals ( NUMBER2 , main . invoke ( null , new Object [ ] { null } ) ) ;
 + }
 +
 private void binOpTest ( final String text , final int arg1 , final int arg2 , final int expected ) throws Exception {
 loadText ( text ) ;
 System . out . println ( generateToText ( ) ) ;


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

 + import static NAMESPACE ;
 + import static NAMESPACE ;
 +
 public abstract class AbstractOperatorMatcher < T > implements RequestMatcher {
 protected abstract RequestMatcher newMatcher ( final RequestExtractor < T > extractor , final Resource resource ) ;

 <nb> public abstract class AbstractOperatorMatcher < T > implements RequestMatcher {

 if ( target instanceof String [ ] ) {
 String [ ] contents = ( String [ ] ) target ;
 - for ( String content : contents ) {
 - if ( predicate . apply ( content ) ) {
 - return true ;
 - }
 - }
 + return any ( newArrayList ( contents ) , predicate ) ;
 }

 return false ;

used guava to simplify code in operator matcher


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

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public abstract class IndexCommand extends XaCommand
 {
 static final byte DEFINE_COMMAND = ( byte ) NUMBER0 ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class IndexDefineCommand extends XaCommand
 {
 private final AtomicInteger nextIndexNameId = new AtomicInteger ( ) ;


<nb> public class DnsNameResolverTest {

 final Map < String , InetAddress > resultB = testResolve0 ( EXCLUSIONS_RESOLVE_A , InternetProtocolFamily . IPv4 ) ;

 - assertThat ( resultA , is ( resultB ) ) ;
 + SINGLE
 + assertThat ( resultB . size ( ) , is ( resultA . size ( ) ) ) ;
 + for ( Entry < String , InetAddress > e : resultA . entrySet ( ) ) {
 + InetAddress expected = e . getValue ( ) ;
 + InetAddress actual = resultB . get ( e . getKey ( ) ) ;
 + assertThat ( actual , is ( expected ) ) ;
 + }
 } finally {
 SINGLE
 resolver . setTtl ( oldMinTtl , oldMaxTtl ) ;


<nb> public final class ActionManagerImpl extends ActionManagerEx implements JDOMExte
 reportActionError ( pluginId , STRING0 + e . getMessage ( ) + STRING1 ) ;
 return null ;
 }
 + catch ( UnsupportedClassVersionError e ) {
 + reportActionError ( pluginId , STRING2 + className ) ;
 + return null ;
 + }
 catch ( Exception e ) {
 final String message = STRING3 + className + STRING4 ;
 if ( pluginId == null ) {

catch UnsupportedClassVersionError when loading group class


<nb> public final class HdmiControlService extends SystemService {
 }
 } else {
 Slog . i ( TAG , STRING0 ) ;
 + return ;
 }

 mMhlController = HdmiMhlControllerStub . create ( this ) ;
 <nb> class TvInputHardwareManager implements TvInputHal . Callback {
 } catch ( RemoteException e ) {
 Slog . w ( TAG , STRING1 , e ) ;
 }
 + } else {
 + Slog . w ( TAG , STRING2 ) ;
 }
 }
 }

Do not publish the service if native HAL is not ready


<nb> public class NewExprent extends Exprent {
 }

 int start = enumconst ? NUMBER0 : NUMBER1 ;
 - if ( start < lstParameters . size ( ) ) {
 + if ( ! enumconst || start < lstParameters . size ( ) ) {
 buf . append ( STRING0 ) ;

 boolean firstpar = true ;

missing parentheses on default constructor invocation


<nb> public final class FBReader extends ZLAndroidActivity {
 @ override
 public void onResume ( ) {
 super . onResume ( ) ;
 - sendBroadcast ( new Intent ( getApplicationContext ( ) , KillerCallback . class ) ) ;
 + final Context context = getApplicationContext ( ) ;
 + if ( context != null ) {
 + sendBroadcast ( new Intent ( context , KillerCallback . class ) ) ;
 + }
 ControlButtonPanel . restoreVisibilities ( ) ;
 }


<nb> final class NodeAndNPMInstaller {
 public NodeAndNPMInstaller ( String nodeVersion , String npmVersion , File workingDirectory , Log log ) {
 this . workingDirectory = workingDirectory ;
 this . log = log ;
 - this . architecture = Architecture . x86 ;
 + this . architecture = Architecture . guess ( ) ;
 this . nodeVersion = nodeVersion ;
 this . npmVersion = npmVersion ;
 }

fix bug don t hardcode x86 architecture use Architecture guess


<nb>

 package NAMESPACE ;

 - public class MongoException extends Exception {
 + public class MongoException extends RuntimeException {

 public MongoException ( String msg ) {
 super ( msg ) ;


<nb> public class ShutdownMonitor
 {
 return ;
 }
 - System . err . println ( STRING0 ) ;
 + if ( DEBUG )
 + System . err . println ( STRING0 ) ;
 super . start ( ) ;
 }


<nb> public class UpcomingFragment extends SherlockFragment implements
 super . onCreateContextMenu ( menu , v , menuInfo ) ;

 SINGLE
 + menu . add ( NUMBER0 , CONTEXT_CHECKIN_ID , NUMBER0 , R . string . checkin ) ;
 AdapterContextMenuInfo info = ( AdapterContextMenuInfo ) menuInfo ;
 WatchedBox watchedBox = ( WatchedBox ) info . targetView . findViewById ( R . id . watchedBoxUpcoming ) ;
 if ( watchedBox . isChecked ( ) ) {
 - menu . add ( NUMBER0 , CONTEXT_FLAG_UNWATCHED_ID , NUMBER1 , R . string . unmark_episode ) ;
 + menu . add ( NUMBER0 , CONTEXT_FLAG_UNWATCHED_ID , NUMBER2 , R . string . unmark_episode ) ;
 } else {
 - menu . add ( NUMBER0 , CONTEXT_FLAG_WATCHED_ID , NUMBER0 , R . string . mark_episode ) ;
 + menu . add ( NUMBER0 , CONTEXT_FLAG_WATCHED_ID , NUMBER1 , R . string . mark_episode ) ;
 }
 - menu . add ( NUMBER0 , CONTEXT_CHECKIN_ID , NUMBER2 , R . string . checkin ) ;
 }

 @ override

Put check in context item first like in other places


<nb> public class CsvParser extends CustomParser {
 DParseTask callback ;

 - public CsvParser ( Key aryKey , int numColumns , byte separator , byte decimalSeparator , DParseTask callback , boolean skipFirstLine ) throws Exception {
 + public CsvParser ( Key aryKey , int numColumns , byte separator , byte decimalSeparator , DParseTask callback , boolean skipFirstLine ) {
 _aryKey = aryKey ;
 _numColumns = numColumns ;
 CHAR_SEPARATOR = separator ;
 <nb> public class CsvParser extends CustomParser {
 }

 @ suppresswarnings ( STRING0 )
 - @ override public final void parse ( Key key ) throws Exception {
 + @ override public final void parse ( Key key ) {
 ValueArray _ary = _aryKey == null ? null : ValueArray . value ( DKV . get ( _aryKey ) ) ;
 ValueString _str = new ValueString ( ) ;
 byte [ ] bits = DKV . get ( key ) . memOrLoad ( ) ;


<nb> public class PagerSlidingTabStrip extends HorizontalScrollView {
 protected void onDraw ( Canvas canvas ) {
 super . onDraw ( canvas ) ;

 - if ( isInEditMode ( ) ) {
 - return ;
 - }
 - if ( tabsContainer == null || tabsContainer . getChildCount ( ) == NUMBER0 ) {
 + if ( isInEditMode ( ) || tabCount == NUMBER0 ) {
 return ;
 }

Using tabCount instead of tabsContainer getChildCount


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SelectQuery extends BaseQuery < Result < SelectResultValue > >
 this . dimensions = dimensions ;
 this . metrics = metrics ;
 this . pagingSpec = pagingSpec ;
 +
 + Preconditions . checkNotNull ( pagingSpec , STRING0 ) ;
 }

 @ override

Added null check for the pagingSpec on a Select Query


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class Season {

 @ serializedname ( STRING0 )
 public int tvdbId ;
 -
 +
 public int season ;
 -
 +
 public List < Episode > episodes ;

 }


<nb> public final class Iconics {
 for ( String fontsClassPath : fonts ) {
 try {
 ITypeface typeface = ( ITypeface ) Class . forName ( fontsClassPath ) . newInstance ( ) ;
 + validateFont ( typeface ) ;
 FONTS . put ( typeface . getMappingPrefix ( ) , typeface ) ;
 } catch ( Exception e ) {
 Log . e ( STRING0 , STRING1 + fontsClassPath ) ;
 <nb> public final class Iconics {
 COMMENT
 COMMENT
 public static boolean registerFont ( ITypeface font ) {
 + validateFont ( font ) ;
 +
 FONTS . put ( font . getMappingPrefix ( ) , font ) ;
 return true ;
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + private static void validateFont ( ITypeface font ) {
 + if ( font . getMappingPrefix ( ) . length ( ) != NUMBER0 ) {
 + throw new IllegalArgumentException ( STRING2 ) ;
 + }
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add a simple sanity check to registered fonts length check for mapping prefix


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CodecsModule extends Graylog2Module {
 protected void configure ( ) {
 final MapBinder < String , Codec . Factory < ? extends Codec > > mapBinder = codecMapBinder ( ) ;

 + SINGLE
 + bind ( GelfChunkAggregator . class ) . in ( Scopes . SINGLETON ) ;
 +
 installCodec ( mapBinder , RawCodec . class ) ;
 installCodec ( mapBinder , SyslogCodec . class ) ;
 installCodec ( mapBinder , RandomHttpMessageCodec . class ) ;


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DumpByteCodeVisitor

 private String indent ( int level )
 {
 - StringBuilder builder = new StringBuilder ( ) ;
 -
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 -
 - for ( int i = NUMBER0 ; i < level ; i ++ ) {
 - builder . append ( STRING0 ) ;
 - }
 - return builder . toString ( ) ;
 + return Strings . repeat ( STRING0 , level ) ;
 }

 private void visitNestedNode ( String description , ByteCodeNode node , ByteCodeNode parent )


<nb> public class NetworkController extends BroadcastReceiver {
 }
 } else {
 iconId = R . drawable . stat_sys_no_sim ;
 + visible = false ; SINGLE
 }
 } else {
 SINGLE
 <nb> public class NetworkController extends BroadcastReceiver {
 }

 if ( DEBUG ) {
 - Slog . d ( TAG , STRING0
 + Slog . d ( TAG , STRING1
 + + ( mWifiConnected ? STRING2 : STRING3 )
 + + ( mDataConnected ? STRING4 : STRING3 )
 + + STRING5
 + + ( ( mSignalStrength == null ) ? STRING6 : Integer . toString ( mSignalStrength . getLevel ( ) ) )
 + + STRING7
 + Integer . toHexString ( combinedSignalIconId )
 + STRING8 + getResourceName ( combinedSignalIconId )
 + STRING9 + Integer . toHexString ( dataDirectionOverlayIconId )


<nb> public class MetaDataSerializer extends EntitySerializer {

 private final String beanSuffix ;

 + @ nullable
 private final String beanPackageName ;

 private final NamingStrategy namingStrategy ;


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

remove unused import causing checkstyle to fail


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public class IcqStatusEnum
 COMMENT
 COMMENT
 public static byte [ ] loadIcon ( String imagePath ) {
 - InputStream is = JabberStatusEnum . class . getClassLoader ( )
 + InputStream is = IcqStatusEnum . class . getClassLoader ( )
 . getResourceAsStream ( imagePath ) ;

 byte [ ] icon = null ;

copy paste error fixed JabberStatusEnum replace by IcqStatusEnum


<nb>
 package NAMESPACE ;

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

 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SwaggerSampleApplication extends Application < SwaggerSampleConfigur
 public void run ( SwaggerSampleConfiguration configuration , Environment environment ) {
 environment . jersey ( ) . register ( new ApiListingResource ( ) ) ;
 environment . jersey ( ) . register ( new PetResource ( ) ) ;
 + environment . getObjectMapper ( ) . setSerializationInclusion ( JsonInclude . Include . NON_NULL ) ;

 - SINGLE
 - SINGLE
 - SINGLE
 + BeanConfig config = new BeanConfig ( ) ;
 + config . setTitle ( STRING0 ) ;
 + config . setVersion ( STRING1 ) ;
 + config . setResourcePackage ( STRING2 ) ;
 + config . setScan ( true ) ;
 }
 }


<nb> public class ClusterResource extends RestResource {
 node . getTransportAddress ( ) ,
 Tools . getISO8601String ( node . getLastSeen ( ) ) ,
 node . getShortNodeId ( ) ,
 - Tools . getLocalCanonicalHostname ( )
 + node . getHostname ( )
 ) ;
 }
 }


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


<nb> public class XMLRPCClient implements XMLRPCClientInterface {
 SINGLE
 SINGLE
 Map < String , Object > map = ( Map < String , Object > ) XMLRPCSerializer . deserialize ( pullParser ) ;
 + consumeHttpEntity ( entity ) ;
 SINGLE
 if ( ! map . containsKey ( TAG_FAULT_STRING ) || ! map . containsKey ( TAG_FAULT_CODE ) ) {
 - throw new XMLRPCException ( STRING0 ) ;
 + throw new XMLRPCException ( STRING1 ) ;
 }
 String faultString = String . valueOf ( map . get ( TAG_FAULT_STRING ) ) ;
 int faultCode ;
 try {
 faultCode = ( int ) map . get ( TAG_FAULT_CODE ) ;
 } catch ( NumberFormatException | ClassCastException e ) {
 - throw new XMLRPCException ( STRING2 ) ;
 + throw new XMLRPCException ( STRING3 ) ;
 }
 - consumeHttpEntity ( entity ) ;
 throw new XMLRPCFault ( faultString , faultCode ) ;
 } else {
 consumeHttpEntity ( entity ) ;

Consume Entity even in case of errors and improved logging


<nb> public abstract class AbstractTreeBuilderCrashTest extends BaseTreeTestCase {
 }
 }

 - public static class NoYieldNoBackground extends AbstractTreeBuilderCrashTest {
 + public abstract static class NoYieldNoBackground extends AbstractTreeBuilderCrashTest {
 public NoYieldNoBackground ( ) {
 super ( false , false ) ;
 }


<nb> public enum Aggregations {

 SUM ( new SumAggregationFunction . SumAggregationFunctionFactory ( ) ) ,
 MIN ( new MinAggregationFunction . MinAggregationFunctionFactory ( ) ) ,
 - MAX ( new MaxAggregationFunction . MaxAggregationFunctionFactory ( ) ) ,
 - SINGLE
 - ;
 - SINGLE
 + MAX ( new MaxAggregationFunction . MaxAggregationFunctionFactory ( ) ) ;

 SINGLE

Remove unused enum values from Aggregations enum


<nb> public class WebView extends AbsoluteLayout
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static void freeMemoryForTests ( ) {
 + checkThread ( ) ;
 + getFactory ( ) . getStatics ( ) . freeMemoryForTests ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface WebViewFactoryProvider {
 String getDefaultUserAgent ( Context context ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + void freeMemoryForTests ( ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Adding freeMemoryForTests static method to WebView


<nb> public abstract class DataSupport {
 }
 }

 + public static synchronized int deleteAll ( Class < ? > modelClass , String [ ] conditions ) {
 + DeleteHandler deleteHandler = new DeleteHandler ( Connector . getDatabase ( ) ) ;
 + return deleteHandler . onDeleteAll ( modelClass , conditions ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DeleteHandler extends DataHandler {
 }
 }

 + int onDeleteAll ( Class < ? > modelClass , String [ ] conditions ) {
 + try {
 + checkConditionsCorrect ( conditions ) ;
 + return mDatabase . delete ( getTableName ( modelClass ) , getWhereClause ( conditions ) ,
 + getWhereArgs ( conditions ) ) ;
 + } catch ( Exception e ) {
 + throw new DataSupportException ( e . getMessage ( ) ) ;
 + }
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class GpsLocationProvider extends LocationProviderImpl {
 for ( int i = NUMBER0 ; i < size && l == null ; i ++ ) {
 Listener test = mListeners . get ( i ) ;
 if ( binder . equals ( test . mListener . asBinder ( ) ) ) {
 - SINGLE
 - return ;
 + l = test ;
 }
 }

In removeGpsStatusListener remove the listener for real


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

 COMMENT


<nb> public class ServiceDay implements Serializable {
 }

 COMMENT
 - public boolean serviceIdRunning ( int serviceId ) {
 - return this . serviceIdsRunning . get ( serviceId ) ;
 + public boolean serviceRunning ( int serviceCode ) {
 + return this . serviceIdsRunning . get ( serviceCode ) ;
 }

 COMMENT
 - public boolean anyServiceRunning ( BitSet serviceIds ) {
 - return this . serviceIdsRunning . intersects ( serviceIds ) ;
 + public boolean anyServiceRunning ( BitSet serviceCodes ) {
 + return this . serviceIdsRunning . intersects ( serviceCodes ) ;
 }

 COMMENT


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SrvDiscoveryIntegrationTest extends ElasticsearchIntegrationTest {
 Lookup . setDefaultCache ( new MockedZoneCache ( STRING0 ) , DClass . IN ) ;
 }

 + @ after
 + public void clearDNSCache ( ) throws Exception {
 + Lookup . setDefaultCache ( new Cache ( ) , DClass . IN ) ;
 + }
 +
 @ test
 public void testClusterSrvDiscovery ( ) throws Exception {
 Settings localSettings = settingsBuilder ( )


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class LocalOnlyOkHttpDownloader implements Downloader {
 SINGLE
 SINGLE
 connection . setRequestProperty ( STRING0 ,
 - STRING1 ) ;
 + STRING2 ) ;
 }

 int responseCode = connection . getResponseCode ( ) ;
 <nb> public class LocalOnlyOkHttpDownloader implements Downloader {
 responseSource = connection . getHeaderField ( RESPONSE_SOURCE_ANDROID ) ;
 }

 + long contentLength = connection . getHeaderFieldInt ( STRING3 , - NUMBER0 ) ;
 boolean fromCache = parseResponseSourceHeader ( responseSource ) ;

 - return new Response ( connection . getInputStream ( ) , fromCache ) ;
 + return new Response ( connection . getInputStream ( ) , fromCache , contentLength ) ;
 }

 static File createDefaultCacheDir ( Context context ) {

Set seconds for max stale cache control flag


<nb> public class FakeMapView extends FakeViewGroup {

 public FakeMapView ( ViewGroup viewGroup ) {
 super ( viewGroup ) ;
 -
 mapController = mock ( MapController . class ) ;
 }

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

 - @ suppresswarnings ( { STRING0 } )
 + @ suppresswarnings ( { STRING1 } )
 public class FakeView {
 private View realView ;


<nb> public final class XcodeProvider implements TransitiveInfoProvider {
 if ( dependency . productType == XcodeProductType . EXTENSION ) {
 this . extensions . add ( dependency ) ;
 this . inputsToXcodegen . addTransitive ( dependency . inputsToXcodegen ) ;
 + this . additionalSources . addTransitive ( dependency . additionalSources ) ;
 } else {
 if ( doPropagate ) {
 this . propagatedDependencies . add ( dependency ) ;

Propagate additional sources of an ios application s extension


<nb> public abstract class IQ extends Packet {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public enum Type {

 + COMMENT
 + COMMENT
 + COMMENT
 get ,
 +
 + COMMENT
 + COMMENT
 + COMMENT
 set ,
 +
 + COMMENT
 + COMMENT
 + COMMENT
 result ,
 - error ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + error ,
 + ;

 COMMENT
 COMMENT


<nb> public class FileUtilRt {
 boolean success = isDirectory ? f . mkdir ( ) : f . createNewFile ( ) ;
 if ( ! success ) {
 throw new IOException ( STRING0 + f + STRING1 + f . getParentFile ( ) +
 - STRING2 + Arrays . toString ( f . getParentFile ( ) . list ( ) ) ) ;
 + STRING2 + Arrays . asList ( f . getParentFile ( ) . list ( ) ) ) ;
 }

 return normalizeFile ( f ) ;


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SingleConsumerNonblockingProducerDelayQueueTest {
 @ rule
 public TestRule watchman = TestUtil . WATCHMAN ;

 + @ beforeclass
 + public static void setupClass ( ) {
 + VirtualClock . setForCurrentThreadAndChildren ( Debug . isCI ( ) ? new ScaledClock ( FLOAT0 ) : SystemClock . instance ( ) ) ;
 + System . out . println ( STRING0 + VirtualClock . get ( ) ) ;
 + }
 +
 private static final boolean SEQUENCED = false ;

 public SingleConsumerNonblockingProducerDelayQueueTest ( ) {


<nb> public class EntityDamageEvent extends EntityEvent implements Cancellable {
 COMMENT
 STARVATION ,
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + POISON ,
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + MAGIC ,
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class EntityRegainHealthEvent extends EntityEvent implements Cancellable
 COMMENT
 EATING ,
 COMMENT
 + COMMENT
 + COMMENT
 + MAGIC ,
 + COMMENT
 + COMMENT
 + COMMENT
 + MAGIC_REGEN ,
 + COMMENT
 COMMENT
 COMMENT
 CUSTOM

Bleeding Added DamageCause POISON MAGIC and RegainReason MAGIC MAGIC_REGEN for potions


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

 public abstract class SPDYTest
 {
 + @ rule
 + public final TestWatchman testName = new TestWatchman ( )
 + {
 + @ override
 + public void starting ( FrameworkMethod method )
 + {
 + super . starting ( method ) ;
 + System . err . printf ( STRING0 ,
 + method . getMethod ( ) . getDeclaringClass ( ) . getName ( ) ,
 + method . getName ( ) ) ;
 + }
 + } ;
 private Server server ;
 private SPDYClient . Factory clientFactory ;


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

 public class TestDefaultServlet extends TomcatBaseTest {

 <nb> public class TestDefaultServlet extends TomcatBaseTest {
 SINGLE
 org . apache . catalina . Context ctx =
 tomcat . addWebapp ( null , STRING0 , appDir . getAbsolutePath ( ) ) ;
 + ctx . addApplicationListener ( WsListener . class . getName ( ) ) ;

 SINGLE
 Tomcat . addServlet ( ctx , STRING1 , new DefaultServlet ( ) ) ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 public class TestWebdavServlet extends TomcatBaseTest {

 <nb> public class TestWebdavServlet extends TomcatBaseTest {

 Tomcat . addServlet ( ctx , STRING2 , new WebdavServlet ( ) ) ;
 ctx . addServletMapping ( STRING3 , STRING2 ) ;
 + ctx . addApplicationListener ( WsListener . class . getName ( ) ) ;

 tomcat . start ( ) ;

Fix some more unit test failures triggered by WebSocket init changes


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class InvertBooleanDialog extends RefactoringDialog {
 invokeRefactoring ( new InvertBooleanProcessor ( myElement , name ) ) ;
 }

 + protected void doHelpAction ( ) {
 + HelpManager . getInstance ( ) . invokeHelp ( HelpID . INVERT_BOOLEAN ) ;
 + }
 +
 protected JComponent createCenterPanel ( ) {
 return myPanel ;
 }


<nb> public class DefaultNodeInitializer implements NodeInitializer {
 }

 public void printNodeInfo ( Node node ) {
 - systemLogger . info ( STRING0 + version + STRING1
 + systemLogger . info ( STRING2 + version + STRING1
 + build + STRING3 + node . getThisAddress ( ) ) ;
 systemLogger . info ( STRING4 ) ;
 }

boot message should not include community edition


<nb> public class EnglishGrammaticalRelations {
 STRING0 ;
 private static final String selfRegex =
 STRING1 ;
 + private static final String xcompVerbRegex =
 + STRING2 ;

 SINGLE
 SINGLE
 <nb> public class EnglishGrammaticalRelations {
 new String [ ] {
 SINGLE
 SINGLE
 - STRING3 , SINGLE
 + STRING4 + xcompVerbRegex + STRING5 , SINGLE
 STRING6 ,
 STRING7 ,
 SINGLE
 <nb> public class EnglishGrammaticalRelations {
 SINGLE
 SINGLE
 SINGLE
 - STRING8 ,
 + STRING9 + xcompVerbRegex + STRING10 ,
 STRING11 ,
 STRING12 ,
 STRING13 ,

Add a bunch of verbs which are more likely to be xcomp than vmod


<nb> public class StickyListHeadersListView extends FrameLayout {
 }
 } ) ;
 }
 + mHeader . setClickable ( true ) ;
 }

 SINGLE
 <nb> public class StickyListHeadersListView extends FrameLayout {
 mAdapter . setOnHeaderClickListener ( null ) ;
 }
 }
 + if ( mHeader != null && mOnHeaderClickListener != null ) {
 + mHeader . setOnClickListener ( new OnClickListener ( ) {
 + @ override
 + public void onClick ( View v ) {
 + mOnHeaderClickListener . onHeaderClick (
 + StickyListHeadersListView . this , mHeader ,
 + mHeaderPosition , mHeaderId , true ) ;
 + }
 + } ) ;
 + }
 }

 public void setOnStickyHeaderOffsetChangedListener ( OnStickyHeaderOffsetChangedListener listener ) {


<nb> public abstract class BlockFluidBase extends Block implements IFluidBlock
 }

 @ override
 - public AxisAlignedBB getSelectedBoundingBox ( IBlockState blockState , World worldIn , BlockPos pos )
 + public AxisAlignedBB getCollisionBoundingBox ( IBlockState blockState , World worldIn , BlockPos pos )
 {
 - return null ;
 + return NULL_AABB ;
 }
 }


<nb> public class SyslogTcpTransport extends TcpTransport {
 return new InstrumentedExecutorService (
 Executors . newCachedThreadPool ( threadFactory ) ,
 metricRegistry ,
 - name ( HttpTransport . class , executorName , STRING0 ) ) ;
 + name ( SyslogTcpTransport . class , executorName , STRING0 ) ) ;
 }


<nb> public class Context implements IContext {
 int maxWorkers = Utils . getInt ( storm_conf . get ( Config . STORM_MESSAGING_NETTY_CLIENT_WORKER_THREADS ) ) ;
 ThreadFactory bossFactory = new NettyRenameThreadFactory ( STRING0 + STRING1 ) ;
 ThreadFactory workerFactory = new NettyRenameThreadFactory ( STRING0 + STRING2 ) ;
 - SINGLE
 if ( maxWorkers > NUMBER0 ) {
 clientChannelFactory = new NioClientSocketChannelFactory ( Executors . newCachedThreadPool ( bossFactory ) ,
 Executors . newCachedThreadPool ( workerFactory ) , maxWorkers ) ;


<nb> public final class ClassPath {
 }
 }

 - private void scanFrom ( File file , ClassLoader classloader )
 - throws IOException {
 + private void scanFrom ( File file , ClassLoader classloader ) throws IOException {
 if ( ! file . exists ( ) ) {
 return ;
 }


<nb> public class __ACTIVITY__ extends CordovaActivity
 super . init ( ) ;
 SINGLE
 super . loadUrl ( Config . getStartUrl ( ) ) ;
 - SINGLE
 + SINGLE
 }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Jsr299BindingsCreateInterceptor implements org . jboss . invocation . Int
 WeldInterceptorInstances existing = ( WeldInterceptorInstances ) componentInstance . getInstanceData ( SerializedCdiInterceptorsKey . class ) ;

 if ( existing == null ) {
 - WeldCreationalContext < Object > creationalContext = beanManager . createCreationalContext ( bean ) ;
 + CreationalContext < Object > creationalContext = beanManager . createCreationalContext ( bean ) ;
 HashMap < String , SerializableContextualInstance < Interceptor < Object > , Object > > interceptorInstances = new HashMap < String , SerializableContextualInstance < Interceptor < Object > , Object > > ( ) ;

 if ( interceptorBindings != null ) {

Minor remove unnecessary dependency on Weld s internal class


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

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

 COMMENT
 COMMENT
 <nb> public class CacheCredentialsMetaDataPopulatorTests {
 }
 } ;

 - populator . populateAttributes ( AuthenticationBuilder . newInstance ( auth ) , c ) ;
 + if ( populator . supports ( c ) ) {
 + populator . populateAttributes ( AuthenticationBuilder . newInstance ( auth ) , c ) ;
 + }
 +
 assertEquals ( map . size ( ) , NUMBER0 ) ;

 }


<nb> public class CommentActions {
 new RestRequest . Listener ( ) {
 @ override
 public void onResponse ( JSONObject response ) {
 - actionListener . onActionResult ( true ) ;
 + if ( actionListener != null ) {
 + actionListener . onActionResult ( true ) ;
 + }
 }
 } , new RestRequest . ErrorListener ( ) {
 @ override
 public void onErrorResponse ( VolleyError error ) {
 - actionListener . onActionResult ( false ) ;
 + if ( actionListener != null ) {
 + actionListener . onActionResult ( false ) ;
 + }
 }
 }
 ) ;


<nb> public abstract class GradleToolWindowPanel extends SimpleToolWindowPanel {
 @ override public void onPreferLocalGradleDistributionToWrapperChange ( boolean preferLocalToWrapper ) { refreshAll ( ) ; }
 @ override public void onGradleHomeChange ( @ nullable String oldPath , @ nullable String newPath ) { refreshAll ( ) ; }
 @ override public void onServiceDirectoryPathChange ( @ nullable String oldPath , @ nullable String newPath ) { refreshAll ( ) ; }
 - @ override public void onUseAutoImportChange ( boolean oldValue , boolean newValue ) { refreshAll ( ) ; }
 + @ override public void onUseAutoImportChange ( boolean oldValue , boolean newValue ) {
 + if ( newValue ) {
 + update ( ) ;
 + }
 + }

 private void refreshAll ( ) {
 if ( myInBulk ) {

Don t refresh a project on disabling auto import


<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility
 COMMENT
 COMMENT
 public void dispatchSystemUiVisibilityChanged ( int visibility ) {
 - mSystemUiVisibility = visibility ;
 if ( mOnSystemUiVisibilityChangeListener != null ) {
 mOnSystemUiVisibilityChangeListener . onSystemUiVisibilityChange (
 visibility & ~ PUBLIC_STATUS_BAR_VISIBILITY_MASK ) ;

Don t force all views to be asking for lights out just because somebody did


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

 - import NAMESPACE ;
 -
 public class DanmakusRetainer {

 private static IDanmakusRetainer rldrInstance = null ;


<nb> public class HBaseStoreManager extends DistributedStoreManager implements KeyCol
 . put ( EDGESTORE_NAME + LOCK_STORE_SUFFIX , STRING0 )
 . put ( EDGEINDEX_STORE_NAME + LOCK_STORE_SUFFIX , STRING1 )
 . build ( ) ;
 +
 + static {
 + SINGLE
 + Preconditions . checkArgument ( null != shortCfNameMap ) ;
 + Collection < String > shorts = shortCfNameMap . values ( ) ;
 + Preconditions . checkArgument ( Sets . newHashSet ( shorts ) . size ( ) == shorts . size ( ) ) ;
 + }

 public HBaseStoreManager ( org . apache . commons . configuration . Configuration config ) throws StorageException {
 super ( config , PORT_DEFAULT ) ;

Statically check HBase short CF name integrity


<nb> public class ParallelAccumulationExecutor implements AccumulationExecutor {
 this . callTimeoutInMillis = callTimeoutInMillis ;
 }

 + @ override
 @ suppresswarnings ( STRING0 )
 public AggregationResult execute (
 Aggregator aggregator , Collection < QueryableEntry > entries , Collection < Integer > partitionIds ) {
 <nb> public class QueryResult implements Result < QueryResult > , IdentifiedDataSerializa
 }
 }

 + @ override
 public Collection < Integer > getPartitionIds ( ) {
 return partitionIds ;
 }
 <nb> public class QueryResult implements Result < QueryResult > , IdentifiedDataSerializa
 public void onCombineFinished ( ) {
 }

 + @ override
 public void setPartitionIds ( Collection < Integer > partitionIds ) {
 this . partitionIds = new ArrayList < Integer > ( partitionIds ) ;
 }
 <nb> public class QueryResultRow implements IdentifiedDataSerializable , Map . Entry < Dat
 this . value = valueData ;
 }

 + @ override
 public Data getKey ( ) {
 return key ;
 }

 + @ override
 public Data getValue ( ) {
 return value ;
 }

Added missing Override annotations in query package


<nb> public abstract class AbstractBlockChain {
 registration . listener . notifyNewBestBlock ( newStoredBlock ) ;
 } else {
 SINGLE
 - final boolean notFirst = ! first ;
 registration . executor . execute ( new Runnable ( ) {
 @ override
 public void run ( ) {


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class MongoClientImpl implements MongoClient {
 return new ClientAdministrationImpl ( this ) ;
 }

 - public Session getSession ( ) {
 - return new ClusterSession ( cluster , executorService ) ;
 - }
 -
 public Cluster getCluster ( ) {
 return cluster ;
 }

Removed unused getSession method in MongoClientImpl


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public interface JSONMapper {

 String toJSON ( Object toSerialize ) throws Exception ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class SquidbJSONSupport {

 private static final String TAG = STRING0 ;


<nb> public class AdminConsolePlugin implements Plugin {
 public AdminConsolePlugin ( ) {
 }

 - public String getName ( ) {
 - return STRING0 ;
 - }
 -
 - public String getDescription ( ) {
 - return STRING1 ;
 - }
 -
 - public String getAuthor ( ) {
 - return STRING2 ;
 - }
 -
 - public String getVersion ( ) {
 - return STRING3 ;
 - }
 -
 public void initializePlugin ( PluginManager manager , File pluginDir ) {
 try {
 SINGLE

Removed plugin methods that are no longer used


<nb> public class MockComponentManager extends UserDataHolderBase implements Componen

 @ override
 public void dispose ( ) {
 + myMessageBus . dispose ( ) ;
 }

 @ notnull

dispose project message bus in lite tests


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 public class NeuralNetPlotter implements Serializable {

 private static ClassPathResource script = new ClassPathResource ( STRING0 + File . separator + STRING1 ) ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT

 + @ deprecated
 public class AccuracyPlotterIterationListener implements IterationListener {
 private int epochs = NUMBER0 ; SINGLE
 private INDArray input ;
 <nb> import NAMESPACE ;

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT

 + @ deprecated
 public class LossPlotterIterationListener implements IterationListener {
 private int iterations = NUMBER0 ;
 private NeuralNetPlotter plotter = new NeuralNetPlotter ( ) ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 -
 + COMMENT
 + COMMENT
 + COMMENT
 + @ deprecated
 public class RenderFilterIterationListener implements IterationListener {
 private int iterations = NUMBER1 ;
 private NeuralNetPlotter plotter = new NeuralNetPlotter ( ) ;

Deprecate NeuralNetPlotter and all iteration listeners that use it


<nb> public class ResolverUtil < T > {
 URL url = null ;
 try {
 url = urls . nextElement ( ) ;
 + if ( LOG . isTraceEnabled ( ) ) {
 + LOG . trace ( STRING0 + url ) ;
 + }

 String urlPath = url . getFile ( ) ;
 urlPath = URLDecoder . decode ( urlPath , STRING1 ) ;

Added a little more trace logging to aid classloading resolution


<nb> public class ServerStarter {
 return name . endsWith ( STRING0 ) ;
 }
 } ) ;
 +
 + if ( packedFiles == null ) {
 + SINGLE
 + return ;
 + }
 +
 SINGLE
 boolean unpacked = false ;
 for ( File packedFile : packedFiles ) {


<nb> public class InstallerFragment extends Fragment {

 private String install ( ) {
 File appProcessFile = writeAssetToCacheFile ( APP_PROCESS_NAME , STRING0 ) ;
 - writeAssetToSdcardFile ( STRING1 ) ;
 if ( appProcessFile == null )
 return STRING2 ;

don t copy Xposed Disabler CWM zip twice


<nb>
 package NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class AngryState implements State {

 private Mammoth mammoth ;
 <nb> package NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class App {

 <nb>
 package NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class PeacefulState implements State {

 private Mammoth mammoth ;


<nb> public class CUDChunkTest extends TestUtil {
 Assert . assertTrue ( cc . isNA ( vals . length ) ) ;
 Assert . assertTrue ( cc . isNA_abs ( vals . length ) ) ;

 + SINGLE
 + cc . set_impl ( vals . length - NUMBER0 , a ) ;
 + Assert . assertTrue ( cc . atd ( vals . length - NUMBER0 ) == a ) ;
 + vals [ vals . length - NUMBER0 ] = a ;
 +
 nc = cc . inflate_impl ( new NewChunk ( null , NUMBER1 ) ) ;
 nc . values ( NUMBER1 , nc . _len ) ;
 Assert . assertEquals ( vals . length + NUMBER0 , nc . _len ) ;


<nb> public class PagedTraverserFunctionalTest

 private String traverserDescription ( )
 {
 - String description = STRING0
 - + STRING1
 - + STRING2
 - + STRING3
 - + STRING4 + STRING5 ;
 + String description = STRING6
 + + STRING7
 + + STRING8
 + + STRING9
 + + STRING10
 + + STRING11 ;
 return description ;
 }


<nb> public class LocationManagerService extends ILocationManager . Stub implements Run
 }

 public void locationCallbackFinished ( ILocationListener listener ) {
 - Receiver receiver = getReceiver ( listener ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + IBinder binder = listener . asBinder ( ) ;
 + Receiver receiver = mReceivers . get ( binder ) ;
 if ( receiver != null ) {
 synchronized ( receiver ) {
 SINGLE
 <nb> public class LocationManagerService extends ILocationManager . Stub implements Run
 try {
 if ( mReceivers . remove ( receiver . mKey ) != null && receiver . isListener ( ) ) {
 receiver . getListener ( ) . asBinder ( ) . unlinkToDeath ( receiver , NUMBER0 ) ;
 + synchronized ( receiver ) {
 + if ( receiver . mPendingBroadcasts > NUMBER0 ) {
 + decrementPendingBroadcasts ( ) ;
 + receiver . mPendingBroadcasts = NUMBER0 ;
 + }
 + }
 }

 SINGLE


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class Main {
 if ( ! apiFormat && ! applySuggestions ) {
 System . out . println ( STRING0 + filename + STRING1 ) ;
 }
 - final String fileContents = StringTools . readStream ( new FileInputStream ( filename ) , encoding ) ;
 + SINGLE
 + final String fileContents = StringTools . streamToString ( new FileInputStream ( filename ) , encoding != null ? encoding : Charset . defaultCharset ( ) . name ( ) ) ;
 if ( xmlFiltering ) {
 return StringTools . filterXML ( fileContents ) ;
 } else {
 <nb> public final class StringTools {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

don t add a newline when reading files for the command line checker


<nb> public class AndroidDatabaseConnection implements DatabaseConnection {
 }

 public < T > Object queryForOne ( String statement , Object [ ] args , FieldType [ ] argFieldTypes ,
 - GenericRowMapper < T > rowMapper ) throws SQLException {
 - return queryForOne ( statement , args , argFieldTypes , rowMapper , null ) ;
 - }
 -
 - public < T > Object queryForOne ( String statement , Object [ ] args , FieldType [ ] argFieldTypes ,
 GenericRowMapper < T > rowMapper , ObjectCache objectCache ) throws SQLException {
 Cursor cursor = null ;


<nb> public class WebSocketEngine {
 }
 } ) ;

 - context . getDirectChannelAccess ( ) . takeOwnership ( msg - > {
 + final DirectChannelAccess directAccessChannel = context . getDirectChannelAccess ( ) ;
 + final Channel channel = directAccessChannel . getChannel ( ) ;
 +
 + channel . closeFuture ( ) . addListener ( fu - > {
 + try {
 + handler . onClose ( new DefaultWebSocketClose < > ( true , openResult ) ) ;
 + } catch ( Exception e ) {
 + throw uncheck ( e ) ;
 + }
 + } ) ;
 +
 + directAccessChannel . takeOwnership ( msg - > {
 openLatch . await ( ) ;
 - Channel channel = context . getDirectChannelAccess ( ) . getChannel ( ) ;
 if ( channel . isOpen ( ) ) {
 if ( msg instanceof WebSocketFrame ) {
 WebSocketFrame frame = ( WebSocketFrame ) msg ;

Properly call onClose method of websocket handler when connection is abruptly closed


<nb> public class Annotation {
 COMMENT
 COMMENT
 void addLine ( String revision , String author ) {
 - final Line line = new Line ( revision , author ) ;
 + final Line line = new Line ( revision , author ) ;
 lines . add ( line ) ;
 widestRevision = Math . max ( widestRevision , line . revision . length ( ) ) ;
 widestAuthor = Math . max ( widestAuthor , line . author . length ( ) ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ProgressIndicatorBase implements ProgressIndicatorEx {

 public final void checkCanceled ( ) {
 if ( isCanceled ( ) && myNonCancelableCount == NUMBER0 ) {
 - throw new ProcessCanceledException ( ) ;
 + SINGLE
 }

 delegate ( new IndicatorAction ( ) {

JS Unused function parameter inspection transformed into JS unused local symbols inspection


<nb> public interface BuildLauncher extends LongRunningOperation {
 BuildLauncher addProgressListener ( ProgressListener listener ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + @ incubating
 + BuildLauncher withCancellationToken ( CancellationToken cancellationToken ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add missing override for withCancellationToken


<nb> public final class ActFmSyncService {
 } else if ( id == ActFmPreferenceService . userId ( ) ) {
 model . setValue ( idProperty , NUMBER0 L ) ;
 if ( userProperty != null )
 - model . setValue ( userProperty , STRING0 ) ;
 + model . setValue ( userProperty , ActFmPreferenceService . thisUser ( ) . toString ( ) ) ;
 } else {
 model . setValue ( idProperty , id ) ;
 if ( userProperty != null )

Fixed a bug that would cause activity from this user to not display correctly


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

 import NAMESPACE ;

core Remove unused imports from TwoWayLayoutManager


<nb> public abstract class Session implements RoutableChannelHandler {
 public String toString ( ) {
 return super . toString ( ) + STRING0 + status + STRING1 + address + STRING2 + streamID ;
 }
 +
 + protected static int [ ] decodeVersion ( String version ) {
 + int [ ] answer = new int [ ] { NUMBER0 , NUMBER0 } ;
 + String [ ] versionString = version . split ( STRING3 ) ;
 + answer [ NUMBER0 ] = Integer . parseInt ( versionString [ NUMBER0 ] ) ;
 + answer [ NUMBER1 ] = Integer . parseInt ( versionString [ NUMBER1 ] ) ;
 + return answer ;
 + }
 }


<nb> public abstract class PropertyTable extends JBTable {
 }

 public static int findProperty ( List < Property > properties , Property property ) {
 + int index = properties . indexOf ( property ) ;
 + if ( index != - NUMBER0 ) {
 + return index ;
 + }
 +
 String name = property . getName ( ) ;
 int size = properties . size ( ) ;


<nb> class CertificateValidatorCache {
 }
 }

 - int hashLength = secureHash . length ;
 - if ( secureHash != null && NUMBER0 < hashLength ) {
 - if ( hashLength == mHash . length ) {
 - for ( int i = NUMBER0 ; i < hashLength ; ++ i ) {
 - if ( secureHash [ i ] != mHash [ i ] ) {
 - return false ;
 + if ( secureHash != null ) {
 + int hashLength = secureHash . length ;
 + if ( NUMBER0 < hashLength ) {
 + if ( hashLength == mHash . length ) {
 + for ( int i = NUMBER0 ; i < hashLength ; ++ i ) {
 + if ( secureHash [ i ] != mHash [ i ] ) {
 + return false ;
 + }
 }
 + return true ;
 }
 - return true ;
 }
 }

Rework some code so that it works the way it was supposed to work


<nb> public class NameTable {
 SINGLE
 STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 ,

 + SINGLE
 + STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 ,
 + STRING13 , STRING14 , STRING15 , STRING16 , STRING17 , STRING18 ,
 + STRING19 , STRING20 , STRING21 , STRING22 ,
 + STRING23 , STRING24 , STRING25 , STRING26 , STRING27 , STRING28 , STRING29 ,
 + STRING30 , STRING31 , STRING32 , STRING33 , STRING34 , STRING35 , STRING36 ,
 +
 SINGLE
 STRING37 , STRING38 , STRING39 , STRING40 , STRING41 , STRING42 , STRING43 , STRING44 ,
 STRING45 , STRING46 , STRING47 , STRING48 ,


<nb> public class GLHelper {
 public static void switchToMatrix ( final MatrixMode pMatrixMode ) {
 GLHelper . sGLMatrixStack . setMatrixMode ( pMatrixMode ) ;
 }
 -
 +
 + public static GLMatrix getProjectionMatrix ( ) {
 + return GLHelper . sGLMatrixStack . getProjectionMatrix ( ) ;
 + }
 +
 + public static GLMatrix getModelViewMatrix ( ) {
 + return GLHelper . sGLMatrixStack . getModelViewMatrix ( ) ;
 + }
 +
 public static GLMatrix getModelViewProjectionMatrix ( ) {
 return GLHelper . sGLMatrixStack . getModelViewProjectionMatrix ( ) ;
 }

Added methods to get ModelView and Projection Matrix on their own from GLMatrixThread through GLHelper


<nb> public class GitHistoryUtils {
 @ notnull
 public static List < TimeCommitParents > readAllHashes ( @ notnull Project project , @ notnull VirtualFile root ) throws VcsException {
 GitSimpleHandler h = new GitSimpleHandler ( project , root , GitCommand . LOG ) ;
 - GitLogParser parser = new GitLogParser ( project , GitLogParser . NameStatus . NONE , HASH , PARENTS ) ;
 + GitLogParser parser = new GitLogParser ( project , GitLogParser . NameStatus . NONE , HASH , PARENTS , AUTHOR_TIME ) ;
 h . setStdoutSuppressed ( true ) ;
 h . addParameters ( parser . getPretty ( ) , STRING0 ) ;
 h . addParameters ( STRING1 , STRING2 , STRING3 , STRING4 ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CommandRunner implements Iterable < Command > {
 showUsage ( ) ;
 return NUMBER0 ;
 }
 - catch ( TestFailedException e ) {
 - return NUMBER0 ;
 - }
 catch ( Exception ex ) {
 return handleError ( debug , ex ) ;
 }


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

 import NAMESPACE ;

 <nb> public abstract class BaseParser < T extends Server > implements Parser < T > {

 public T parseServer ( final InputStream is , final Optional < Integer > port ,
 final MocoConfig . . . configs ) {
 - return createServer ( reader . read ( is , SessionSetting . class ) , port , configs ) ;
 + try {
 + return createServer ( reader . read ( is , SessionSetting . class ) , port , configs ) ;
 + } finally {
 + Closeables . closeQuietly ( is ) ;
 + }
 }
 }


<nb> public class TextTable {
 if ( table ) {
 sb . setLength ( sb . length ( ) - NUMBER0 ) ;
 }
 + trimTail ( sb ) ;
 sb . append ( STRING0 ) ;
 if ( header ) {
 header = false ;
 <nb> public class TextTable {
 sb . append ( STRING1 ) ;
 }
 sb . setLength ( sb . length ( ) - NUMBER0 ) ;
 + trimTail ( sb ) ;
 sb . append ( STRING0 ) ;
 }
 }
 <nb> public class TextTable {
 }
 }

 + private static void trimTail ( StringBuilder sb ) {
 + while ( sb . length ( ) > NUMBER1 && sb . charAt ( sb . length ( ) - NUMBER0 ) == STRING2 ) {
 + sb . setLength ( sb . length ( ) - NUMBER0 ) ;
 + }
 + }
 +
 class CSVWriter {

 private Writer rawWriter ;

Remove trailing spaces in frame histogram


<nb> public class PeriodFormatterBuilder {
 return ~ position ;
 }

 + if ( position + length != suffixPos ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + return position ;
 + }
 +
 int value ;
 if ( length >= NUMBER0 ) {
 SINGLE

Fixed parsing bug that would consume wrong suffix for field


<nb> public class MetaClass {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class MetaClass {
 for ( int i = NUMBER0 , size = baseTypes . length ; i < size ; i ++ ) {
 Class baseType = baseTypes [ i ] ;
 Class derivedType = derivedTypes [ i ] ;
 - if ( ! baseType . isAssignableFrom ( derivedType ) ) {
 + if ( ! isAssignableFrom ( derivedType , baseType ) ) {
 throw new GroovyRuntimeException (
 STRING0
 + name
 <nb> public class MetaClass {
 else if ( type == long . class ) {
 return Long . class ;
 }
 + else if ( type == boolean . class ) {
 + return Boolean . class ;
 + }
 else if ( type == float . class ) {
 return Float . class ;
 }

fixed another autoboxing glitch that was failing a test case


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

 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 public final class LoggerInfoStream extends InfoStream {

 private final Logger parentLogger ;

 + private final Map < String , Logger > loggers = new ConcurrentHashMap < > ( ) ;
 +
 public LoggerInfoStream ( final Logger parentLogger ) {
 this . parentLogger = parentLogger ;
 }
 <nb> public final class LoggerInfoStream extends InfoStream {
 }

 private Logger getLogger ( String component ) {
 - return Loggers . getLogger ( parentLogger , STRING0 + component ) ;
 + return loggers . computeIfAbsent ( component , c - > Loggers . getLogger ( parentLogger , STRING0 + c ) ) ;
 }

 @ override
 public void close ( ) {

 }
 +
 }

Avoid unnecessary creation of prefix loggers


<nb>
 package NAMESPACE ;

 public class Animation {
 - public String name ;
 - public float frameDuration ;
 + public String name ;
 public float totalDuration ;
 }

removed Animation frameDuration due to SkeletalModel having different frame durations per bone track animation


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


<nb> public class FeedlistFragment extends SherlockListFragment {
 filter . addAction ( DownloadService . ACTION_FEED_SYNC_COMPLETED ) ;

 pActivity . registerReceiver ( contentUpdate , filter ) ;
 + fla . notifyDataSetChanged ( ) ;
 }

 @ override
 <nb> public class FeedlistFragment extends SherlockListFragment {
 private BroadcastReceiver contentUpdate = new BroadcastReceiver ( ) {
 @ override
 public void onReceive ( Context context , Intent intent ) {
 + Log . d ( TAG , STRING0 ) ;
 fla . notifyDataSetChanged ( ) ;
 }
 } ;


<nb> public class DaemonListeners implements Disposable {
 }
 } , this ) ;

 - connection . subscribe ( PsiModificationTracker . TOPIC , ( ) - > stopDaemonAndRestartAllFiles ( STRING0 ) ) ;
 -
 commandProcessor . addCommandListener ( new MyCommandListener ( ) , this ) ;
 application . addApplicationListener ( new MyApplicationListener ( ) , this ) ;
 editorColorsManager . addEditorColorsListener ( new MyEditorColorsListener ( ) , this ) ;

restart daemon on any psi mod count change


<nb> public class AuthProceduresIT
 @ test
 public void shouldNotChangeOwnPasswordIfNewPasswordInvalid ( ) throws Exception
 {
 - assertFail ( admin , STRING0 , STRING1 ) ;
 + assertFail ( admin , STRING0 , STRING2 ) ;
 assertFail ( admin , STRING3 , STRING4 ) ;
 }

 <nb> public class AuthProceduresIT
 @ test
 public void shouldNotCreateUserIfInvalidPassword ( ) throws Exception
 {
 - assertFail ( admin , STRING5 , STRING1 ) ;
 + assertFail ( admin , STRING5 , STRING2 ) ;
 }

 @ test
 public void shouldNotCreateExistingUser ( ) throws Exception
 {
 assertFail ( admin , STRING6 ,
 - STRING7 ) ;
 - assertFail ( admin , STRING8 , STRING1 ) ;
 + STRING9 ) ;
 + assertFail ( admin , STRING8 , STRING2 ) ;
 }

 SINGLE


<nb> public class PsiNameValuePairImpl extends CompositePsiElement implements PsiName
 return new TextRange ( NUMBER0 , id . getTextLength ( ) ) ;
 }
 else {
 - return new TextRange ( NUMBER0 , getTextLength ( ) ) ;
 + return new TextRange ( NUMBER0 , NUMBER0 ) ;
 }
 }

default value annotation attribute reference ranges fix


<nb> public class Notifications extends BroadcastReceiver {
 public boolean showTaskNotification ( long id , int type , String reminder ) {
 Task task ;
 try {
 - task = taskDao . fetch ( id , Task . TITLE , Task . HIDE_UNTIL , Task . COMPLETION_DATE ,
 + task = taskDao . fetch ( id , Task . ID , Task . TITLE , Task . HIDE_UNTIL , Task . COMPLETION_DATE ,
 Task . DELETION_DATE , Task . REMINDER_FLAGS ) ;
 if ( task == null )
 throw new IllegalArgumentException ( STRING0 ) ; SINGLE

wasn t able to set lastNotified previously now we do a better job of it


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class SentimentAnnotator implements Annotator {
 + static final String DEFAULT_MODEL = STRING0 ;
 String modelPath ;
 SentimentModel model ;
 CollapseUnaryTransformer transformer = new CollapseUnaryTransformer ( ) ;

 public SentimentAnnotator ( String name , Properties props ) {
 - this . modelPath = props . getProperty ( name + STRING1 ) ;
 + this . modelPath = props . getProperty ( name + STRING1 , DEFAULT_MODEL ) ;
 if ( modelPath == null ) {
 throw new IllegalArgumentException ( STRING2 ) ;
 }

Set a default model for the sentiment annotator


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ checkreturnvalue
 @ gwtcompatible
 public final class Ascii {

 <nb> public final class Ascii {
 COMMENT
 COMMENT
 @ beta
 - @ checkreturnvalue
 public static String truncate ( CharSequence seq , int maxLength , String truncationIndicator ) {
 checkNotNull ( seq ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JavaDebugProcess extends XDebugProcess {
 leftToolbar . add ( ActionManager . getInstance ( ) . getAction ( DebuggerActions . DUMP_THREADS ) , beforeRunner ) ;
 leftToolbar . add ( Separator . getInstance ( ) , beforeRunner ) ;

 - addActionToGroup ( settings , XDebuggerActions . INLINE_DEBUGGER ) ;
 - addActionToGroup ( settings , XDebuggerActions . AUTO_TOOLTIP ) ;
 - addActionToGroup ( settings , XDebuggerActions . AUTO_TOOLTIP_ON_SELECTION ) ;
 settings . addAction ( new AutoVarsSwitchAction ( ) , Constraints . FIRST ) ;
 settings . addAction ( new WatchLastMethodReturnValueAction ( ) , Constraints . FIRST ) ;
 }


<nb> public class CreateBreakoutRoomsRequestTest {

 CreateBreakoutRoomsRequest rxMsg = gson . fromJson ( json , CreateBreakoutRoomsRequest . class ) ;

 + Assert . assertEquals ( rxMsg . header . name , CreateBreakoutRoomsRequest . NAME ) ;
 Assert . assertEquals ( rxMsg . payload . meetingId , meetingId ) ;
 Assert . assertEquals ( rxMsg . payload . rooms . size ( ) , NUMBER0 ) ;
 Assert . assertEquals ( rxMsg . payload . durationInMinutes , durationInMinutes ) ;


<nb> public class LanguageConsoleImpl implements Disposable , TypeSafeDataProvider {
 if ( myCurrentEditor != null && myCurrentEditor . isDisposed ( ) ) {
 myCurrentEditor = null ;
 }
 + if ( ! isValid ( ) ) return ;
 ApplicationManager . getApplication ( ) . runReadAction ( myUiUpdateRunnable ) ;
 }
 }
 <nb> public class LanguageConsoleImpl implements Disposable , TypeSafeDataProvider {
 return ObjectUtils . assertNotNull ( myVirtualFile . getLanguage ( ) ) ;
 }

 + public boolean isValid ( ) {
 + return myVirtualFile . isValid ( ) && myProject . isOpen ( ) ;
 + }
 +
 public void setLanguage ( @ notnull Language language ) {
 myVirtualFile . setLanguage ( language ) ;
 myVirtualFile . setContent ( myEditorDocument , myEditorDocument . getText ( ) , false ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class IOUtils {
 COMMENT
 COMMENT
 public static Map < String , AtmosphereFramework . MetaServiceAction > readServiceFile ( final String path ) {
 - final Map < String , AtmosphereFramework . MetaServiceAction > b = new HashMap < String , AtmosphereFramework . MetaServiceAction > ( ) ;
 + final Map < String , AtmosphereFramework . MetaServiceAction > b = new LinkedHashMap < String , AtmosphereFramework . MetaServiceAction > ( ) ;

 String line ;
 InputStream is = null ;

Keep order of declaration in meta service file


<nb> public final class ValueType extends TypeIntrospectionBase {
 Collections . < String > emptySet ( ) ,
 true ,
 false ,
 - ElementType . METHOD ,
 + ElementType . CONSTRUCTOR ,
 newTypeStringResolver ( ) ) ;
 }
 }

Fixing the generation of constructor annotations by using the element type CONSTRUCTOR instead of METHOD


<nb> public class OutboundTcpConnection extends Thread
 catch ( IOException e )
 {
 logger . info ( STRING0 + endpoint ) ;
 + logger . debug ( STRING1 , e ) ;
 disconnect ( ) ;
 }
 }

include outbound socket exceptions at debug level


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

 - import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BidForFixHelper {
 private void loadList ( ) {
 if ( initialized == null || initialized . before ( new Date ( System . currentTimeMillis ( ) - DAY ) ) ) {
 BufferedReader in = null ;
 - String project = STRING0 ; SINGLE
 - String url = STRING1
 - + project + STRING2 ;
 + String url = STRING3 + project + STRING2 ;
 try {
 URL twitter = new URL ( url ) ;
 URLConnection tc = twitter . openConnection ( ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PyReferenceImpl implements PsiReferenceEx , PsiPolyVariantReference
 if ( ! haveQualifiers ( element ) ) {
 final ScopeOwner ourScopeOwner = ScopeUtil . getScopeOwner ( getElement ( ) ) ;
 final ScopeOwner theirScopeOwner = ScopeUtil . getScopeOwner ( element ) ;
 - SINGLE
 - if ( element instanceof PyParameter || element instanceof PyTargetExpression || element instanceof CythonVariable ) {
 + if ( element instanceof PyParameter || element instanceof PyTargetExpression ) {
 SINGLE
 if ( resolvesToSameLocal ( element , elementName , ourScopeOwner , theirScopeOwner ) ) {
 return true ;

Don t use resolvesToSameLocal shortcut for Cython elements


<nb> public class GelfChunkAggregator implements CodecAggregator {
 if ( aggregatedBuffer == null ) {
 return VALID_EMPTY_RESULT ;
 }
 - } catch ( IllegalArgumentException | IllegalStateException e ) {
 + } catch ( IllegalArgumentException | IllegalStateException | IndexOutOfBoundsException e ) {
 log . debug ( STRING0 , e ) ;
 return INVALID_RESULT ;
 }

Also handle IndexOutOfBoundsException in GELF chunk aggregator


<nb> public final class Tags {
 throws NoSuchUniqueId {
 try {
 return resolveIdsAsync ( tsdb , tags ) . joinUninterruptibly ( ) ;
 + } catch ( NoSuchUniqueId e ) {
 + throw e ;
 } catch ( Exception e ) {
 throw new RuntimeException ( STRING0 , e ) ;
 }

Fix a bug in the Tags resolveIds method where the NoSuchUniqueId


<nb>

 package NAMESPACE ;

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

 - COMMENT
 - COMMENT
 - COMMENT
 public class DemoApplication extends RosieApplication {

 + @ override public void onCreate ( ) {
 + super . onCreate ( ) ;
 + StrictMode . setThreadPolicy (
 + new StrictMode . ThreadPolicy . Builder ( ) . detectAll ( ) . penaltyLog ( ) . penaltyDeath ( ) . build ( ) ) ;
 + StrictMode . setVmPolicy (
 + new StrictMode . VmPolicy . Builder ( ) . detectAll ( ) . penaltyLog ( ) . penaltyDeath ( ) . build ( ) ) ;
 + }
 +
 @ override public List < Object > getApplicationModules ( ) {
 return Arrays . asList ( ( Object ) new GlobalDemoAndroidModule ( ) ) ;
 }

Enable strict mode in the demo application


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class SdkHomeConfigurable implements Configurable {

 public void apply ( ) throws ConfigurationException {
 final SdkHomeSettings state = new SdkHomeSettings ( ) ;
 - state . SDK_HOME = myPathField . getText ( ) ;
 + state . SDK_HOME = FileUtil . toSystemIndependentName ( myPathField . getText ( ) ) ;
 getFrameworkSettings ( ) . loadState ( state ) ;
 }

 <nb> public abstract class SdkHomeConfigurable implements Configurable {
 private String getStateText ( ) {
 final SdkHomeSettings state = getFrameworkSettings ( ) . getState ( ) ;
 final String stateText = state == null ? STRING0 : state . SDK_HOME ;
 - return StringUtil . notNullize ( stateText ) ;
 + return StringUtil . notNullize ( FileUtil . toSystemDependentName ( stateText ) ) ;
 }

 public void disposeUIResources ( ) {

store gant gradle path in system independent format take advantage of path macros


<nb> public class User extends AbstractModel {
 @ index ( name = STRING0 )
 private String name ;

 - @ column ( length = NUMBER0 )
 + @ column ( length = NUMBER1 , unique = true )
 + @ index ( name = STRING1 )
 private String email ;

 @ column ( length = NUMBER0 , nullable = false )


<nb> public class ChangeLogWriter {
 SINGLE

 - File xmlFile = new File ( outputDir , changeLog + STRING0 ) ;
 + String changeLogOutFile = changeLog . replace ( STRING1 , STRING2 ) ;
 + File xmlFile = new File ( outputDir , changeLogOutFile + STRING0 ) ;
 xmlFile . getParentFile ( ) . mkdirs ( ) ;

 BufferedWriter changeLogStream = new BufferedWriter ( new FileWriter ( xmlFile , false ) ) ;

Handle writing changelog files with absolute path on windows


<nb> public class PApplet implements PConstants {
 public BufferedReader createReader ( String filename ) {
 InputStream is = createInput ( filename ) ;
 if ( is == null ) {
 - System . err . println ( filename + STRING0 ) ;
 + System . err . println ( STRING1 + filename + STRING2 +
 + STRING3 +
 + STRING4 +
 + STRING5 ) ;
 return null ;
 }
 return createReader ( is ) ;

Changed the error message in JSON functions


<nb> public class ReplicaSetStatusDomainModelTest extends TestCase {
 assertNotNull ( addr ) ;
 counters . get ( addr . getHost ( ) ) . incrementAndGet ( ) ;
 }
 - assertLess ( ( ( getHigh ( counters ) - getLow ( counters ) ) / ( double ) getHigh ( counters ) ) , FLOAT0 ) ;
 + assertLess ( ( ( getHigh ( counters ) - getLow ( counters ) ) / ( double ) getHigh ( counters ) ) , FLOAT1 ) ;

 SINGLE
 counters . clear ( ) ;

Made test for even distribution a bit more lenient


<nb> public class NotificationContentView extends FrameLayout {
 return VISIBLE_TYPE_EXPANDED ;
 }
 } else {
 - if ( viewHeight <= mContractedChild . getHeight ( ) || noExpandedChild ) {
 + if ( noExpandedChild || ( viewHeight <= mContractedChild . getHeight ( )
 + && ( ! mIsChildInGroup || ! mContainingNotification . isExpanded ( ) ) ) ) {
 return VISIBLE_TYPE_CONTRACTED ;
 } else {
 return VISIBLE_TYPE_EXPANDED ;

Fixed animation jank in notification groups


<nb> public class WebView extends AbsoluteLayout
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class AsmClassGenerator extends ClassGenerator {
 }
 }

 - private void makeInnerClassEntry ( ClassNode innerClass ) {
 - if ( ! ( innerClass instanceof InnerClassNode ) ) return ;
 + private void makeInnerClassEntry ( ClassNode cn ) {
 + if ( ! ( cn instanceof InnerClassNode ) ) return ;
 + InnerClassNode innerClass = ( InnerClassNode ) cn ;
 String innerClassName = innerClass . getName ( ) ;
 String innerClassInternalName = BytecodeHelper . getClassInternalName ( innerClassName ) ;
 {
 int index = innerClassName . lastIndexOf ( STRING0 ) ;
 if ( index >= NUMBER0 ) innerClassName = innerClassName . substring ( index + NUMBER1 ) ;
 }
 - String outerClassName = controller . getInternalClassName ( ) ; SINGLE
 + String outerClassName = BytecodeHelper . getClassInternalName ( innerClass . getOuterClass ( ) . getName ( ) ) ;
 MethodNode enclosingMethod = innerClass . getEnclosingMethod ( ) ;
 if ( enclosingMethod != null ) {
 SINGLE

corrects the naming entry for the outer class to avoid an inner class being an inner class of itself


<nb> public class Selector < Message > implements Synchronization {
 @ override
 public Object register ( ) {
 Strand s = Strand . currentStrand ( ) ;
 - if ( waiter != null && waiter != s )
 + if ( waiter != null && ! waiter . equals ( s ) )
 throw new IllegalMonitorStateException ( STRING0 ) ;
 this . waiter = Strand . currentStrand ( ) ;

use equals instead of for comparing strands not the same when the strand is a thread


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class WriteResult {
 private final boolean updateOfExisting ;
 private final Object upsertedId ;

 - public WriteResult ( final int n , final boolean updateOfExisting , final Object upsertedId ,
 - final WriteConcern writeConcern ) {
 + WriteResult ( final int n , final boolean updateOfExisting , final Object upsertedId , final WriteConcern writeConcern ) {
 this . n = n ;
 this . updateOfExisting = updateOfExisting ;
 this . upsertedId = upsertedId ;

Reduced visibility of WriteResult constructor


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

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 public class main {

 public static final String VERSION = STRING0 ;


<nb> public class DocHolder extends MessageHolder {
 downloadIcon . setVisibility ( View . GONE ) ;
 progressView . setVisibility ( View . GONE ) ;
 progressValue . setVisibility ( View . GONE ) ;
 + fileIcon . setVisibility ( View . GONE ) ;
 menu . setVisibility ( View . GONE ) ;
 status . setVisibility ( View . GONE ) ;

 <nb> public class DownloadManager extends ModuleActor {

 promote ( fileLocation . getFileId ( ) ) ;

 + if ( ! queueItem . callbacks . contains ( callback ) ) {
 + queueItem . callbacks . add ( callback ) ;
 + }
 +
 if ( queueItem . isStopped ) {
 callback . onNotDownloaded ( ) ;
 } else {

Fixed callback reference in DownloadManager


<nb> public class BuildCraftBakedModel extends PerspAwareModelBase {
 List < MutableQuad > mutableQuads = BCModelHelper . toMutableQuadList ( baked , false ) ;
 for ( MutableQuad mutable : mutableQuads ) {
 mutable . transform ( translation ) ;
 + mutable . setTint ( - NUMBER0 ) ;
 }

 return mutableQuads ;
 <nb> public class RobotStationModel extends BakedModelHolder implements IPluggableMod
 mutable . normalv ( normal ) ;
 float diffuse = MutableQuad . diffuseLight ( normal ) ;
 mutable . colourf ( diffuse , diffuse , diffuse , NUMBER0 ) ;
 - BCLog . logger . info ( STRING0 + mutable ) ;
 BCModelHelper . appendBakeQuads ( quads , format , mutable ) ;
 }
 }


<nb> public class InputsResource extends RestResource {
 }

 LOG . info ( STRING0 + input . getName ( ) + STRING1 ) ;
 - SINGLE
 + if ( inputState == null )
 + input . initialize ( ) ;
 inputLauncher . launch ( input ) ;
 LOG . info ( STRING2 + input . getName ( ) + STRING1 ) ;
 }
 <nb> public class InputsResource extends RestResource {
 try {
 final Input input = inputService . findForThisNodeOrGlobal ( serverStatus . getNodeId ( ) . toString ( ) , inputId ) ;
 messageInput = inputService . getMessageInput ( input ) ;
 + messageInput . initialize ( ) ;
 } catch ( NoSuchInputTypeException | org . graylog2 . database . NotFoundException e ) {
 final String error = STRING3 + inputId + STRING4 ;
 LOG . info ( error ) ;

Initializing inputs which are pre existing but not running yet


<nb> public class AppCacheTest extends AndroidTestCase {
 verifyTestFiles1 ( cacheDir , STRING0 , NUMBER0 ) ;
 }

 - @ largetest
 + SINGLE
 + SINGLE
 public void testFreeApplicationCacheSomeFiles ( ) throws Exception {
 StatFs st = new StatFs ( STRING1 ) ;
 long blks1 = getFreeStorageBlks ( st ) ;

Suppress flaky test AppCacheTest testFreeApplicationCacheSomeFiles


<nb> public class Memory extends Pointer {
 protected void finalize ( ) { }
 COMMENT
 protected void boundsCheck ( long off , long sz ) {
 - Memory . this . boundsCheck ( ( int ) ( this . peer - Memory . this . peer ) + off , sz ) ;
 + Memory . this . boundsCheck ( this . peer - Memory . this . peer + off , sz ) ;
 }
 }

 <nb> public class Memory extends Pointer {
 COMMENT
 COMMENT
 COMMENT
 - public Memory ( int size ) {
 + public Memory ( long size ) {
 this . size = size ;
 if ( size <= NUMBER0 )
 throw new IllegalArgumentException ( STRING0 ) ;


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class ImageUrlsRequestBuilder {

 public ImageUrlsRequestBuilder ( final String endpointUrl ) {
 mEndpointUrl = Preconditions . checkNotNull ( endpointUrl ) ;
 - mRequestedImageFormats = Maps . newHashMap ( ) ;
 + mRequestedImageFormats = new HashMap < > ( ) ;
 }

 COMMENT

Removed common internal dependency for maps


<nb> public class TestProcessor implements Processor {

 public static final class Factory implements Processor . Factory {
 @ override
 - public TestProcessor create ( Map < String , Processor . Factory > registry , String processorTag , Map < String , Object > config ) throws Exception {
 + public TestProcessor create ( Map < String , Processor . Factory > registry , String processorTag ,
 + Map < String , Object > config ) throws Exception {
 return new TestProcessor ( processorTag , STRING0 , ingestDocument - > { } ) ;
 }
 }


<nb> public class SearchServer extends MonitoredProcess {
 }

 private File esHomeDir ( ) {
 - if ( ! props . contains ( SONAR_PATH_HOME ) ) {
 + String homeDir = props . of ( SONAR_PATH_HOME ) ;
 + if ( StringUtils . isEmpty ( homeDir ) ) {
 throw new IllegalStateException ( STRING0 ) ;
 + } else {
 + return new File ( homeDir ) ;
 }
 - return new File ( props . of ( SONAR_PATH_HOME ) ) ;
 }

 private File esDataDir ( ) {


<nb> public class JetFlowInformationProvider {
 private final JetElement subroutine ;
 private final Pseudocode pseudocode ;
 private final PseudocodeVariablesData pseudocodeVariablesData ;
 - private BindingTrace trace ;
 + private final BindingTrace trace ;

 public JetFlowInformationProvider (
 @ notnull JetElement declaration ,


<nb> public class SitePickerSearchView extends SearchView implements SearchView . OnQue
 } ) ;
 }

 + public InputMethodManager getInputMethodManager ( ) {
 + return mInputMethodManager ;
 + }
 +
 public void enableSearchMode ( ) {
 requestFocus ( ) ;
 showSoftKeyboard ( ) ;
 <nb> public class SitePickerSearchView extends SearchView implements SearchView . OnQue
 mSitePickerActivity . getAdapter ( ) . loadSites ( ) ;
 }

 - private void showSoftKeyboard ( ) {
 + public void hideSoftKeyboard ( ) {
 if ( ! hasHardwareKeyboard ( ) ) {
 - mInputMethodManager . toggleSoftInput ( InputMethodManager . SHOW_IMPLICIT , InputMethodManager . HIDE_NOT_ALWAYS ) ;
 + mInputMethodManager . hideSoftInputFromWindow ( getWindowToken ( ) , InputMethodManager . HIDE_NOT_ALWAYS ) ;
 }
 }

 - public void hideSoftKeyboard ( ) {
 + private void showSoftKeyboard ( ) {
 if ( ! hasHardwareKeyboard ( ) ) {
 - mInputMethodManager . hideSoftInputFromWindow ( getWindowToken ( ) , InputMethodManager . HIDE_NOT_ALWAYS ) ;
 + mInputMethodManager . toggleSoftInput ( InputMethodManager . SHOW_IMPLICIT , InputMethodManager . HIDE_NOT_ALWAYS ) ;
 }
 }


<nb> abstract class BaseWebFragment extends LazyLoadFragment
 }

 private void setFullscreen ( boolean isFullscreen ) {
 - if ( ! getUserVisibleHint ( ) ) {
 + if ( getView ( ) == null ) {
 return ;
 }
 mFullscreen = isFullscreen ;
 mControls . setVisibility ( isFullscreen ? VISIBLE : View . GONE ) ;
 AppUtils . toggleWebViewZoom ( mWebView . getSettings ( ) , isFullscreen ) ;
 + ViewGroup . LayoutParams params = mWebView . getLayoutParams ( ) ;
 if ( isFullscreen ) {
 mScrollView . removeView ( mScrollViewContent ) ;
 mFullscreenView . addView ( mScrollViewContent ) ;
 + params . height = ViewGroup . LayoutParams . MATCH_PARENT ;
 } else {
 reset ( ) ;
 mWebView . pageUp ( true ) ;
 mFullscreenView . removeView ( mScrollViewContent ) ;
 mScrollView . addView ( mScrollViewContent ) ;
 + params . height = ViewGroup . LayoutParams . WRAP_CONTENT ;
 }
 + mWebView . setLayoutParams ( params ) ;
 }

 private void showPreferences ( ) {


<nb> public interface PropertyResolver
 {
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 - String resolve ( String propertyName )
 + String resolve ( String aName )
 throws CheckstyleException ;
 }


<nb> public class LiveTemplateSettingsEditor extends JPanel {
 sb . append ( ownName ) ;
 }
 final boolean noContexts = sb . length ( ) == NUMBER0 ;
 - ctxLabel . setText ( ( noContexts ? STRING0 + ( allowNoContexts ? STRING1 : STRING2 ) : STRING3 + sb . toString ( ) ) + STRING4 ) ;
 + String contexts = ( noContexts ? STRING0 + ( allowNoContexts ? STRING1 : STRING2 ) : STRING3 + sb . toString ( ) ) + STRING4 ;
 + ctxLabel . setText ( StringUtil . first ( contexts , NUMBER1 , true ) ) ;
 ctxLabel . setForeground ( noContexts ? allowNoContexts ? JBColor . GRAY : JBColor . RED : UIUtil . getLabelForeground ( ) ) ;
 change . setText ( noContexts ? STRING5 : STRING6 ) ;
 }

trim live template contexts label text to avoid the dialog becoming too wide


<nb> class DecodeJob < A , T , Z > {
 }

 public void cancel ( ) {
 - fetcher . cancel ( ) ;
 isCancelled = true ;
 + fetcher . cancel ( ) ;
 }

 private Resource < Z > transformEncodeAndTranscode ( Resource < T > decoded ) {


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;

Removed wrong import causing tests to fail


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

 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 public class Italian extends Language implements AutoCloseable {

 private Tagger tagger ;
 private SentenceTokenizer sentenceTokenizer ;
 private LuceneLanguageModel languageModel ;
 + private Disambiguator disambiguator ;

 @ override
 public String getName ( ) {
 <nb> public class Italian extends Language implements AutoCloseable {
 }
 }

 + @ override
 + public final Disambiguator getDisambiguator ( ) {
 + if ( disambiguator == null ) {
 + disambiguator = new ItalianRuleDisambiguator ( ) ;
 + }
 + return disambiguator ;
 + }
 +
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Added TODO for refactoring VBOS to all have a common base class


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FBUtilities

 public static String toString ( Map < ? , ? > map )
 {
 - SINGLE
 - StringBuilder sb = new StringBuilder ( STRING0 ) ;
 - for ( Map . Entry < ? , ? > entry : map . entrySet ( ) )
 - {
 - sb . append ( toString ( entry . getKey ( ) ) ) . append ( STRING1 ) . append ( toString ( entry . getValue ( ) ) ) . append ( STRING2 ) ;
 - }
 - sb . append ( STRING3 ) ;
 - return sb . toString ( ) ;
 + Joiner . MapJoiner joiner = Joiner . on ( STRING4 ) . withKeyValueSeparator ( STRING5 ) ;
 + return joiner . join ( map ) ;
 }

 COMMENT

replace ad hoc toString Map w guava MapJoiner


<nb> public final class EventCollector extends TimerTask implements ProfilingListener
 if ( instance == null ) {
 event = new VertexAssignmentEvent ( timestamp , managementVertexID , STRING0 , STRING0 ) ;
 } else {
 - event = new VertexAssignmentEvent ( timestamp , managementVertexID , instance . getName ( ) , instance . getType ( )
 +
 + String instanceName = null ;
 + if ( instance . getInstanceConnectionInfo ( ) != null ) {
 + instanceName = instance . getInstanceConnectionInfo ( ) . toString ( ) ;
 + } else {
 + instanceName = instance . toString ( ) ;
 + }
 +
 + event = new VertexAssignmentEvent ( timestamp , managementVertexID , instanceName , instance . getType ( )
 . getIdentifier ( ) ) ;
 }

Fixed problem with instance assignment update event in event collector


<nb> public class GremlinSessionTest
 }

 @ test
 + public void testGremlinVersion ( )
 + {
 + String result = session . evaluate ( STRING0 ) . first ( ) ;
 + assertEquals ( STRING1 + NEWLINE , result ) ;
 + }
 +
 + @ test
 public void canCreateNodesAndEdgesInGremlinLand ( )
 {
 String result = session . evaluate ( STRING2 ) . first ( ) ;
 <nb> public class GremlinWebConsole
 {
 groovy . execute ( STRING3 + imps ) ;
 }
 + groovy . execute ( STRING4 ) ;
 groovy . setResultHook ( new GremlinResultHook ( groovy , io ) ) ;
 Gremlin . load ( ) ;
 }

adding test for the Gremlin groovy import


<nb> class ActivityUtils {
 activityList . get ( i ) . finish ( ) ;
 }
 getCurrentActivity ( ) . finish ( ) ;
 + activityList . clear ( ) ;

 } catch ( Throwable e ) {

Fixed a small bug that impacts large applications with many Activities


<nb>
 package NAMESPACE ;

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

 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JsonExportTask extends AsyncTask < Void , Void , Integer > {
 lists . close ( ) ;
 }

 + if ( mIsAutoBackupMode ) {
 + SINGLE
 + final SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( mContext ) ;
 + prefs . edit ( ) . putLong ( SeriesGuidePreferences . KEY_LASTBACKUP , System . currentTimeMillis ( ) )
 + . commit ( ) ;
 + }
 +
 return SUCCESS ;
 }

Store last auto backup time in new JsonExportTask


<nb>
 package NAMESPACE ;

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

 <nb> public abstract class RexsterElement implements Element {
 }

 public void setProperty ( final String key , final Object value ) {
 + if ( key . equals ( StringFactory . ID ) || ( key . equals ( StringFactory . LABEL ) && this instanceof Edge ) )
 + throw new RuntimeException ( key + StringFactory . PROPERTY_EXCEPTION_MESSAGE ) ;
 +
 if ( key . startsWith ( RexsterTokens . UNDERSCORE ) )
 throw new RuntimeException ( STRING0 ) ;

updated RexsterGraph to not allow id and label properties


<nb> public class SpecialAnnotationsUtil {
 @ nonnls final String name = psiAnnotation . getQualifiedName ( ) ;
 if ( name == null ) continue ;
 if ( name . startsWith ( STRING0 ) || name . startsWith ( STRING1 ) ||
 - ( name . startsWith ( STRING2 ) && ! AnnotationUtil . isJetbrainsAnnotation ( StringUtil . getShortName ( name ) ) ) ) continue ;
 + ( name . startsWith ( STRING2 ) && AnnotationUtil . isJetbrainsAnnotation ( StringUtil . getShortName ( name ) ) ) ) continue ;
 if ( ! processor . process ( name ) ) break ;
 }
 }

skip registered jetbrains annotations really


<nb> public class DelimiterBasedFrameDecoder extends FrameDecoder {
 }
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public DelimiterBasedFrameDecoder setFailImmediatelyOnTooLongFrame (
 - )
 - {
 - return this ;
 - }
 -
 private void fail ( ChannelHandlerContext ctx , long frameLength ) {
 if ( frameLength > NUMBER0 ) {
 Channels . fireExceptionCaught (

Remove empty method which I forgot to remove before


<nb> public class PoiFiltersHelper {
 if ( place != null && ! Algorithms . isEmpty ( application . getLanguage ( ) ) ) {
 PoiUIFilter filter = new PoiUIFilter ( place , application , STRING0 +
 application . getLangTranslation ( application . getLanguage ( ) ) ) ; SINGLE
 - filter . setFilterByName ( STRING1 + application . getLanguage ( ) ) ;
 + filter . setSavedFilterByName ( STRING1 + application . getLanguage ( ) ) ;
 filter . setStandardFilter ( true ) ;
 localWikiPoiFilter = filter ;
 }


<nb> public class SsoWebViewClient extends WebViewClient {
 @ override
 public void onPageStarted ( WebView view , String url , Bitmap favicon ) {
 Log_OC . d ( TAG , STRING0 + url ) ;
 + view . clearCache ( true ) ;
 super . onPageStarted ( view , url , favicon ) ;
 }

Fixed bug it is not possible to login using two accounts in saml server


<nb> public class FileInStream extends InputStream implements BoundedStream , Seekable
 SINGLE
 SINGLE
 SINGLE
 - LOG . info ( STRING0 ,
 - e . getMessage ( ) ) ;
 + LOG . info (
 + STRING1
 + + STRING2 , e . getMessage ( ) ) ;
 }
 }
 mCurrentCacheStream = null ;


<nb> class HttpTunnelingClientSocketChannel extends AbstractChannel
 public void operationComplete ( ChannelFuture f ) {
 realChannel . close ( ) . addListener ( new ChannelFutureListener ( ) {
 public void operationComplete ( ChannelFuture f ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 +
 if ( f . isSuccess ( ) ) {
 future . setSuccess ( ) ;
 } else {
 future . setFailure ( f . getCause ( ) ) ;
 }
 +
 + SINGLE
 + setClosed ( ) ;
 }
 } ) ;
 }

Fixed a bug where HttpTunnelingClientSocketChannel s closeFuture is not notified if the connection is closed by the client


<nb> public class PdfJsWindow extends WindowEx
 } - * / ;

 public final native void goToPage ( int page ) COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT ;

 public final native int getCurrentPage ( ) / * - {

retry pdf js page set if target page has not yet rendered


<nb> public class MethodSorterTest {
 }

 @ test
 + public void testDefaultMethodSorter ( ) {
 + List < String > expected = Arrays . asList ( new String [ ] { EPSILON , BETA , ALPHA , DELTA , GAMMA_VOID , GAMMA_BOOLEAN } ) ;
 + List < String > actual = getDeclaredFilteredMethods ( DummySortWithDefault . class , expected ) ;
 + assertEquals ( expected , actual ) ;
 + }
 +
 +
 + @ test
 public void testDefaultSorter ( ) {
 String [ ] expected = new String [ ] { EPSILON , BETA , ALPHA , DELTA , GAMMA_VOID , GAMMA_BOOLEAN } ;
 assertEquals ( Arrays . asList ( expected ) . toString ( ) , declaredMethods ( DummySortWithDefault . class ) ) ;

Fixed MethodSorter test case for default sorter


<nb> public class AboutDialog {
 }

 protected String getAboutText ( ) {
 - return STRING0 + JLanguageTool . VERSION + STRING1
 + return STRING0 + JLanguageTool . VERSION + STRING2 + JLanguageTool . BUILD_DATE + STRING3
 + STRING4
 + STRING5
 + STRING6


<nb> public class PyBlock implements ASTBlock {
 else {
 childIndent = parentType == PyElementTypes . PARAMETER_LIST || isInControlStatement ( )
 ? Indent . getContinuationIndent ( )
 - : Indent . getNormalIndent ( true ) ;
 + : Indent . getNormalIndent ( COMMENT ) ;
 }
 }
 else if ( parentType == PyElementTypes . DICT_LITERAL_EXPRESSION || parentType == PyElementTypes . SET_LITERAL_EXPRESSION ||
 <nb> public class PyFormatterTest extends PyTestCase {
 doTest ( ) ;
 }

 - public void testIndentInNestedCall ( ) { SINGLE
 + public void _testIndentInNestedCall ( ) { SINGLE
 doTest ( ) ;
 }


<nb> public class Solo {
 public final static int MENU = NUMBER0 ;
 public final static int DELETE = NUMBER1 ;
 public final static int CALL = NUMBER2 ;
 - public final static int ENDCALL = NUMBER3 ;

 COMMENT
 <nb> public class Solo {
 case CALL :
 robotiumUtils . sendKeyCode ( KeyEvent . KEYCODE_CALL ) ;
 break ;
 - case ENDCALL :
 - robotiumUtils . sendKeyCode ( KeyEvent . KEYCODE_ENDCALL ) ;
 - break ;
 default :
 break ;
 }

Removed ENDCALL key as it does not work for most cases


<nb> public class UniqueConstraint extends AbstractPersistentConstraint {
 String uniquenessGroupPropertyName = ( String ) anUniquenessGroup ;
 Object uniquenessGroupPropertyValue = GrailsClassUtils . getPropertyOrStaticPropertyOrFieldValue ( target , uniquenessGroupPropertyName ) ;

 - if ( DomainClassArtefactHandler . isDomainClass ( uniquenessGroupPropertyValue . getClass ( ) ) ) {
 + if ( uniquenessGroupPropertyValue != null && DomainClassArtefactHandler . isDomainClass ( uniquenessGroupPropertyValue . getClass ( ) ) ) {
 try {
 SINGLE
 session . lock ( uniquenessGroupPropertyValue , LockMode . NONE ) ;

fixed potential NPE in unique constraint


<nb> public final class CursorAnchorInfo implements Parcelable {
 || ! areSameFloatImpl ( mInsertionMarkerBottom , that . mInsertionMarkerBottom ) ) {
 return false ;
 }
 - if ( ! Objects . equals ( mComposingTextStart , that . mComposingTextStart ) ) {
 - return false ;
 - }
 if ( ! Objects . equals ( mCharacterRects , that . mCharacterRects ) ) {
 return false ;
 }

Get rid of one redundant comparison of mComposingTextStart


<nb> public class InstrumentationTestRunner extends Instrumentation implements TestSu
 mIncludeDetailedStats = false ;
 try {
 SINGLE
 - if ( testMethod . isAnnotationPresent ( TimedTest . class ) ) {
 + if ( testMethod != null && testMethod . isAnnotationPresent ( TimedTest . class ) ) {
 mIsTimedTest = true ;
 mIncludeDetailedStats = testMethod . getAnnotation (
 TimedTest . class ) . includeDetailedStats ( ) ;


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class MessageItem implements Comparable < MessageItem > {

 public Spannable getSpannable ( ) {
 if ( spannable == null ) {
 - spannable = Emoticons . newSpannable ( text ) ;
 + spannable = Emoticons . newSpannable ( Html . fromHtml ( text ) ) ;
 Linkify . addLinks ( this . spannable , Linkify . ALL ) ;
 XMPPUri . addLinks ( this . spannable ) ;
 }


<nb> public class DomUtils
 child = child . offsetParent ;
 }

 + if ( ! child )
 + return ;
 +
 SINGLE
 top -= padding ;
 height += padding * NUMBER0 ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class HttpCookieDecoder {
 - private final static String semicolon = STRING0 ;

 + SINGLE
 + private final static String semicolon = STRING0 ;
 private final static String equals = STRING1 ;

 public Map < String , HttpCookie > decode ( String header ) {
 <nb> import NAMESPACE ;
 COMMENT
 public class HttpCookieEncoder {

 + SINGLE
 private final Map < String , HttpCookie > cookies = new TreeMap < String , HttpCookie > ( CaseIgnoringComparator . INSTANCE ) ;

 public void addCookie ( String name , String val ) {


<nb> public class AndroidDatabaseConnection implements DatabaseConnection {
 }
 }

 + public boolean isTableExists ( String tableName ) throws SQLException {
 + SINGLE
 + return true ;
 + }
 +
 private void bindArgs ( SQLiteStatement stmt , Object [ ] args , FieldType [ ] argFieldTypes ) {
 if ( args == null ) {
 return ;

Added isTableExists boolean to the DAO and the DatabaseConnection


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

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

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


<nb> public class EdgeDraftImpl implements EdgeDraft , EdgeDraftGetter {
 SINGLE
 private Color color ;
 private boolean labelVisible ;
 - private boolean visible ;
 + private boolean visible = true ;
 private float labelSize ;

 SINGLE
 <nb> public class NodeDraftImpl implements NodeDraft , NodeDraftGetter {
 private float z ;
 private float labelSize ;
 private boolean labelVisible ;
 - private boolean visible ;
 + private boolean visible = true ;
 private boolean fixed ;

 SINGLE

Set visible default value to true in drafts


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

 - @ test
 + @ test ( singleThreaded = true )
 public class TestJdbcMetadata
 {
 private static final ConnectorSession SESSION = new ConnectorSession ( STRING0 , UTC_KEY , ENGLISH , System . currentTimeMillis ( ) , null ) ;


<nb> public class ResolverResults {
 this . fatalFailure = failure ;
 }

 - public void withResolvedConfiguration ( ResolvedConfiguration resolvedConfiguration ) {
 - this . resolvedConfiguration = resolvedConfiguration ;
 - }
 -
 public void retainState ( ResolvedGraphResults graphResults , ResolvedArtifactsBuilder artifactResults , TransientConfigurationResultsBuilder transientConfigurationResultsBuilder ) {
 this . graphResults = graphResults ;
 this . artifactResults = artifactResults ;
 this . transientConfigurationResultsBuilder = transientConfigurationResultsBuilder ;
 }

 + public void withResolvedConfiguration ( ResolvedConfiguration resolvedConfiguration ) {
 + this . resolvedConfiguration = resolvedConfiguration ;
 + this . graphResults = null ;
 + this . transientConfigurationResultsBuilder = null ;
 + this . artifactResults = null ;
 + }
 +
 public ResolvedGraphResults getGraphResults ( ) {
 return graphResults ;
 }

Clear some state from ResolverResults when no longer required


<nb> public abstract class RepositoryPage extends BasePage {
 if ( objectId != null ) {
 RefModel branch = null ;
 if ( ( branch = JGitUtils . getBranch ( getRepository ( ) , objectId ) ) != null ) {
 - boolean canAccess = GitBlitWebSession
 - . get ( )
 - . getUser ( )
 - . hasBranchPermission ( getRepositoryModel ( ) . name ,
 + UserModel user = GitBlitWebSession . get ( ) . getUser ( ) ;
 + if ( user == null ) {
 + SINGLE
 + user = UserModel . ANONYMOUS ;
 + }
 + boolean canAccess = user . hasBranchPermission ( repositoryName ,
 branch . reference . getName ( ) ) ;
 if ( ! canAccess ) {
 error ( STRING0 , true ) ;


<nb> public class HttpDumpers {
 }

 private static boolean isText ( String type ) {
 - return type == null || type . startsWith ( STRING0 ) || type . endsWith ( STRING1 ) || type . endsWith ( STRING2 ) ;
 + return type == null || type . startsWith ( STRING0 ) || type . endsWith ( STRING1 ) || type . endsWith ( STRING2 ) || type . endsWith ( STRING3 ) ;
 }

 private static long getContentLength ( HttpMessage response , long defaultValue ) {

Update HttpDumpers recognized text content types