<nb> public class ConversationFragment extends Fragment implements EditMessage . Keyboa
 if ( conversation . getNextCounterpart ( ) != null ) {
 message . setCounterpart ( conversation . getNextCounterpart ( ) ) ;
 message . setType ( Message . TYPE_PRIVATE ) ;
 - conversation . setNextCounterpart ( null ) ;
 }
 }
 if ( conversation . getNextEncryption ( activity . forceEncryption ( ) ) == Message . ENCRYPTION_OTR ) {


<nb> public class WXEnvironment {

 public static String JS_LIB_SDK_VERSION = STRING0 ;

 - public static String WXSDK_VERSION = STRING1 ;
 + public static String WXSDK_VERSION = STRING2 ;
 public static Application sApplication ;
 public static final String DEV_Id = getDevId ( ) ;
 public static int sDefaultWidth = NUMBER0 ;


<nb> public final class MessageList < T > implements Iterable < T > {

 @ override
 public void remove ( ) {
 - throw new UnsupportedOperationException ( STRING0 ) ;
 + throw new UnsupportedOperationException ( ) ;
 }
 }
 }

Remove potentially misleading exception message


<nb> public class KotlinToJVMBytecodeCompiler {
 CompilerConfiguration compilerConfiguration = new CompilerConfiguration ( ) ;
 compilerConfiguration . put ( CLIConfigurationKeys . MESSAGE_COLLECTOR_KEY , messageCollector ) ;
 compilerConfiguration . addAll ( JVMConfigurationKeys . CLASSPATH_KEY , getClasspath ( parentLoader ) ) ;
 + compilerConfiguration . add ( JVMConfigurationKeys . CLASSPATH_KEY , PathUtil . findRtJar ( ) ) ;
 compilerConfiguration . addAll ( JVMConfigurationKeys . ANNOTATIONS_PATH_KEY , Collections . singletonList (
 PathUtil . getJdkAnnotationsPath ( ) ) ) ;
 compilerConfiguration . add ( CommonConfigurationKeys . SOURCE_ROOTS_KEY , scriptPath ) ;

Explicitly add rt jar to the script class path


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MapperService extends AbstractIndexComponent implements Iterable < Do
 }

 try {
 - defaultMappingSource = Streams . copyToString ( new InputStreamReader ( defaultMappingUrl . openStream ( ) , STRING0 ) ) ;
 + defaultMappingSource = Streams . copyToString ( new InputStreamReader ( defaultMappingUrl . openStream ( ) , Charsets . UTF_8 ) ) ;
 } catch ( IOException e ) {
 throw new MapperException ( STRING1 + defaultMappingLocation + STRING2 , e ) ;
 }

 - logger . debug ( STRING3 , dynamic , defaultMappingLocation , defaultMappingSource ) ;
 + logger . debug ( STRING4 , dynamic , defaultMappingLocation , defaultMappingUrl , defaultMappingSource ) ;
 }

 public void close ( ) {

better debug logging of where the default mapping is loaded from


<nb> public final class EarClippingTriangulator {
 private static int computeSpannedAreaSign ( final float pX1 , final float pY1 ,
 final float pX2 , final float pY2 , final float pX3 , final float pY3 ) {
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class EarClippingTriangulator {
 final float currentVertexX = currentVertex . x ;
 final float currentVertexY = currentVertex . y ;

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - if ( ( currentVertexX == pX1 && currentVertexY == pY1 )
 - || ( currentVertexX == pX2 && currentVertexY == pY2 )
 - || ( currentVertexX == pX3 && currentVertexY == pY3 ) )
 - break ;
 -
 final int areaSign1 = EarClippingTriangulator
 . computeSpannedAreaSign ( pX1 , pY1 , pX2 , pY2 ,
 currentVertexX , currentVertexY ) ;

removed one the checks I added in EarClippingTriangulator seems to break things in certain cases


<nb> public class MessageListFragment extends SherlockFragment implements OnItemClick
 }

 SINGLE
 - if ( mUnreadMessageCount == NUMBER0 ) {
 + if ( mUnreadMessageCount <= NUMBER0 ) {
 mFragmentListener . setUnreadCount ( NUMBER0 ) ;
 } else {
 if ( ! mSingleFolderMode && mTitle == null ) {

Don t display negative unread count in message list


<nb> public class CythonParsingTest extends ParsingTestCase {
 doTest ( ) ;
 }

 + public void testTypedefs ( ) {
 + doTest ( ) ;
 + }
 +
 public void doTest ( ) {
 doTest ( true ) ;
 }


<nb> class Searcher {

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

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

Clarified javadoc for searchToggleButton String int in Solo and Searcher


<nb> public class GenericFile < T > {
 private GenericFileBinding < T > binding ;
 private boolean absolute ;

 - public static char getFileSeparator ( ) {
 + public char getFileSeparator ( ) {
 return File . separatorChar ;
 }

 <nb> public class RemoteFile < T > extends GenericFile < T > implements Cloneable {
 public void setHostname ( String hostname ) {
 this . hostname = hostname ;
 }
 -
 - public static char getFileSeparator ( ) {
 +
 + @ override
 + public char getFileSeparator ( ) {
 SINGLE
 return STRING0 ;
 }


<nb> public class HyperLogLogPlus implements ICardinality
 private final ArrayList < Integer > tmpSet = new ArrayList < Integer > ( NUMBER0 ) ;
 private List < byte [ ] > sparseSet ;
 SINGLE
 - private int sparseSetThreshold ;
 + private final int sparseSetThreshold ;

 SINGLE
 static final int SORT_THRESHOLD = NUMBER1 ;


<nb> public abstract class AbstractThriftCqlQuery < K , C > implements CqlQuery < K , C > {
 AbstractThriftCqlQuery ( ThriftColumnFamilyQueryImpl < K , C > cfQuery , String cql ) {
 this . cfQuery = cfQuery ;
 this . cql = cql ;
 + this . cl = cfQuery . consistencyLevel ;
 }

 @ override

copying ConsistencyLevel from ThriftColumnFamilyQueryImpl when constructing AbstractThriftCqlQuery


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


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class PipelineFactory implements ChannelPipelineFactory {
 tsdb . getConfig ( ) . max_chunked_requests ( ) ) ) ;
 }
 SINGLE
 - pipeline . addLast ( STRING0 , new HttpContentDecompressor ( ) ) ;
 + pipeline . addLast ( STRING1 , new HttpContentDecompressor ( ) ) ;
 pipeline . addLast ( STRING2 , new HttpResponseEncoder ( ) ) ;
 + pipeline . addLast ( STRING0 , new HttpContentCompressor ( ) ) ;
 } else {
 pipeline . addLast ( STRING3 , new LineBasedFrameDecoder ( NUMBER0 ) ) ;
 pipeline . addLast ( STRING2 , ENCODER ) ;

Add support for compressed http response


<nb> public final class DataOutput2 implements DataOutput {

 DataOutput2 ( ) {
 pos = NUMBER0 ;
 - buf = new byte [ NUMBER1 ] ;
 + buf = new byte [ NUMBER1 ] ; SINGLE
 }

 byte [ ] copyBytes ( ) {
 <nb> public class HTreeMap < K , V > extends AbstractMap < K , V > implements ConcurrentMap < K
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public HTreeMap ( Engine engine , boolean hasValues , Serializer defaultSerializer , Serializer < K > keySerializer , Serializer < V > valueSerializer ) {
 <nb> public class HTreeMap < K , V > extends AbstractMap < K , V > implements ConcurrentMap < K

 protected int hash ( final Object key ) {
 int h = key . hashCode ( ) ;
 - SINGLE
 -
 SINGLE
 SINGLE
 h += ( h < < NUMBER2 ) ^ NUMBER3 ;


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

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


<nb> public class Rule {
 return description ;
 }

 + @ checkfornull
 public String severity ( ) {
 return severity ;
 }
 <nb> public class Rule {
 return this ;
 }

 - public Builder setSeverity ( String severity ) {
 + COMMENT
 + COMMENT
 + COMMENT
 + public Builder setSeverity ( @ nullable String severity ) {
 this . severity = severity ;
 return this ;
 }


<nb> public class TaskListSubActivity extends SubActivity {
 SINGLE
 Log . w ( STRING0 , STRING1 , e ) ;
 return ;
 - } catch ( IllegalStateException e ) {
 + } catch ( final IllegalStateException e ) {
 SINGLE
 Log . e ( STRING0 , STRING2 , e ) ;
 handler . post ( new Runnable ( ) {
 @ override
 public void run ( ) {
 + if ( ! e . getMessage ( ) . contains ( STRING3 ) )
 + return ;
 DialogUtilities . okDialog ( getParent ( ) , STRING4 +
 STRING5 , null ) ;
 }
 } ) ;
 + return ;
 } catch ( final Exception e ) {
 Log . e ( STRING0 , STRING2 , e ) ;
 return ;

Only show dialog when really out of memory


<nb> public abstract class OutputListResponse {
 public abstract long total ( ) ;

 @ jsonproperty
 - public abstract Collection < Output > streams ( ) ;
 + public abstract Collection < Output > outputs ( ) ;

 - public static OutputListResponse create ( long total , Collection < Output > streams ) {
 - return new AutoValue_OutputListResponse ( total , streams ) ;
 + public static OutputListResponse create ( long total , Collection < Output > outputs ) {
 + return new AutoValue_OutputListResponse ( total , outputs ) ;
 }
 }

resource value class member was using the wrong name streams vs outputs breaking the output listing for a stream


<nb> public abstract class SerializerProvider
 COMMENT
 COMMENT
 protected JsonSerializer < Object > _findExplicitUntypedSerializer ( Class < ? > runtimeType )
 + throws JsonMappingException
 {
 SINGLE
 JsonSerializer < Object > ser = _knownSerializers . untypedValueSerializer ( runtimeType ) ;
 <nb> public abstract class SerializerProvider
 if ( ser != null ) {
 return ser ;
 }
 - try {
 - return _createAndCacheUntypedSerializer ( runtimeType ) ;
 - } catch ( Exception e ) {
 - return null ;
 - }
 + return _createAndCacheUntypedSerializer ( runtimeType ) ;
 }

 COMMENT
 <nb> public abstract class DefaultSerializerProvider
 COMMENT
 COMMENT
 public boolean hasSerializerFor ( Class < ? > cls ) {
 - return _findExplicitUntypedSerializer ( cls ) != null ;
 + try {
 + return _findExplicitUntypedSerializer ( cls ) != null ;
 + } catch ( JsonMappingException e ) {
 + SINGLE
 + SINGLE
 + return false ;
 + }
 }

 COMMENT


<nb> public class AgentRegistrationElf
 String agentJarPath = getAgentJarPath ( ) ;
 if ( agentJarPath == null )
 {
 - LOGGER . warn ( STRING0 ) ;
 + LOGGER . info ( STRING0 ) ;
 return false ;
 }


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

 COMMENT
 <nb> public abstract class OMVRBTreePersistent < K , V > extends OMVRBTree < K , V > {
 root = null ;

 final ODatabaseRecord db = ODatabaseRecordThreadLocal . INSTANCE . getIfDefined ( ) ;
 - if ( db != null && ! db . isClosed ( ) ) {
 + if ( db != null && ! db . isClosed ( ) && db . getStorage ( ) instanceof OStorageEmbedded ) {
 SINGLE
 try {
 load ( ) ;


<nb> public class NeoStoreDataSource implements NeoStoresSupplier , Lifecycle , IndexPr
 dependencies . satisfyDependency ( new LegacyIndexApplierLookup . Direct ( legacyIndexProviderLookup ) ) ;

 BufferingIdGeneratorFactory bufferingIdGeneratorFactory = null ;
 - boolean safeIdBuffering = FeatureToggles . flag ( getClass ( ) , STRING0 , true ) ;
 + boolean safeIdBuffering = FeatureToggles . flag ( getClass ( ) , STRING0 , false ) ;
 if ( safeIdBuffering )
 {
 SINGLE


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class ExampleTagBase extends BodyTagSupport {
 }

 @ override
 - public void setPageContext ( PageContext pageContext ) {
 - this . pageContext = pageContext ;
 - }
 -
 - @ override
 public Tag getParent ( ) {
 return this . parent ;
 }
 <nb> public abstract class ExampleTagBase extends BodyTagSupport {
 }

 protected BodyContent bodyOut ;
 - protected PageContext pageContext ;
 protected Tag parent ;
 }


<nb> public class AuthenticationWindow
 super . paintComponent ( g ) ;

 g = g . create ( ) ;
 + try
 + {
 + AntialiasingManager . activateAntialiasing ( g ) ;

 - AntialiasingManager . activateAntialiasing ( g ) ;
 + Graphics2D g2 = ( Graphics2D ) g ;

 - Graphics2D g2 = ( Graphics2D ) g ;
 -
 - if ( bgImage != null )
 - g2 . drawImage ( bgImage , NUMBER0 , NUMBER0 , null ) ;
 + if ( bgImage != null )
 + g2 . drawImage ( bgImage , NUMBER0 , NUMBER0 , null ) ;
 + }
 + finally
 + {
 + g . dispose ( ) ;
 + }
 }
 }


<nb> public class PShader implements PConstants {

 public void setVertexShader ( String vertFilename ) {
 this . vertexFilename = vertFilename ;
 - vertexShaderSource = pgl . loadFragmentShader ( vertFilename ) ;
 + vertexShaderSource = pgl . loadVertexShader ( vertFilename ) ;
 }

 <nb> public class PShader implements PConstants {

 public void setFragmentShader ( String fragFilename ) {
 this . fragmentFilename = fragFilename ;
 - fragmentShaderSource = pgl . loadVertexShader ( fragFilename ) ;
 + fragmentShaderSource = pgl . loadFragmentShader ( fragFilename ) ;
 }

 public void setFragmentShader ( URL fragURL ) {
 this . fragmentURL = fragURL ;
 - fragmentShaderSource = pgl . loadVertexShader ( fragURL ) ;
 + fragmentShaderSource = pgl . loadFragmentShader ( fragURL ) ;
 }

 public void setFragmentShader ( String [ ] fragSource ) {


<nb> public class SettingsHelper {
 private AudioManager mAudioManager ;
 private IContentService mContentService ;
 private IPowerManager mPowerManager ;
 - private static final String [ ] PROVIDERS = { STRING0 , STRING1 , STRING2 } ;

 private boolean mSilent ;
 private boolean mVibrate ;


<nb> public class TestOverdueIntegration extends TestIntegrationBase {
 STRING0 +
 STRING1 +
 STRING2 +
 - STRING3 + SINGLE
 + STRING4 +
 STRING5 +
 STRING6 +
 STRING7 +
 <nb> public class TestOverdueIntegration extends TestIntegrationBase {
 }

 private void checkODState ( final String expected ) {
 -
 try {
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 await ( ) . atMost ( NUMBER0 , SECONDS ) . until ( new Callable < Boolean > ( ) {
 @ override
 public Boolean call ( ) throws Exception {
 - overdueApi . refreshOverdueStateFor ( bundle ) ;
 return expected . equals ( blockingApi . getBlockingStateFor ( bundle ) . getStateName ( ) ) ;
 }
 } ) ;


<nb> public class ParseAndMarshalModelsTestCase {
 standaloneXmlTest ( true , true ) ;
 }

 - @ ignore ( value = STRING0 )
 - @ test
 - public void testStandaloneJcaXml ( ) throws Exception {
 - standaloneXmlTest ( STRING1 ) ;
 - }
 -
 private void standaloneXmlTest ( boolean preview , boolean ha ) throws Exception {

 String profile = preview ? ( ha ? STRING2 : STRING3 )


<nb> class BrowseForDatabaseActionListener implements ActionListener
 fileDialog . setDirectory ( directoryDisplay . getText ( ) ) ;
 fileDialog . setVisible ( true ) ;

 - selectedFile = new File ( fileDialog . getFile ( ) ) ;
 + selectedFile = new File ( fileDialog . getDirectory ( ) , fileDialog . getFile ( ) ) ;
 System . setProperty ( STRING0 , STRING1 ) ;

 return selectedFile ;

fixed bug with invalid directories for mac


<nb> public class PythonDocumentationProvider extends AbstractDocumentationProvider i
 PyParameter [ ] list = element . getParameterList ( ) . getParameters ( ) ;
 StringBuilder builder = new StringBuilder ( offset ) ;
 for ( PyParameter p : list ) {
 + if ( p . getText ( ) . equals ( PyNames . CANONICAL_SELF ) )
 + continue ;
 builder . append ( prefix ) ;
 builder . append ( STRING0 ) ;
 builder . append ( p . getName ( ) ) ;

do not generate docs for self param in class methods


<nb> public class ProfileRouter {
 SINGLE
 GenericAStar astar = new GenericAStar ( ) ;
 astar . setNPaths ( NUMBER0 ) ;
 - SINGLE
 StopFinderTraverseVisitor visitor = new StopFinderTraverseVisitor ( mode ) ;
 astar . setTraverseVisitor ( visitor ) ;
 - COMMENT
 ShortestPathTree spt = astar . getShortestPathTree ( rr , NUMBER1 ) ; SINGLE
 rr . rctx . destroy ( ) ;
 return visitor . stopsFound ;


<nb> public class IQAuthHandler extends IQHandler implements IQAuthInfo {
 response = IQ . createResultIQ ( packet ) ;
 probeResponse . setParent ( null ) ;
 response . setChildElement ( probeResponse ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + if ( session . getStatus ( ) != Session . STATUS_AUTHENTICATED ) {
 + response . setTo ( ( JID ) null ) ;
 + session . getConnection ( ) . deliver ( response ) ;
 + return null ;
 + }
 }
 SINGLE
 else {

Workaround to hide the TO attribute with the fake JID


<nb> public class EBeanHolder {
 JCodeModel codeModel = eBean . owner ( ) ;
 try {
 refClass = codeModel . ref ( fullyQualifiedClassName ) ;
 - } catch ( Exception e ) {
 + } catch ( Throwable t ) {
 refClass = codeModel . directClass ( fullyQualifiedClassName ) ;
 }
 loadedClasses . put ( fullyQualifiedClassName , refClass ) ;


<nb> public class InternalPartitionServiceImpl implements InternalPartitionService , M
 . setValidateTarget ( false )
 . setService ( this ) ;
 nodeEngine . getOperationService ( ) . executeOperation ( op ) ;
 +
 + MigrationInfo migrationInfo = new MigrationInfo ( partition . getPartitionId ( ) , null , partition . getOwnerOrNull ( ) ) ;
 + sendMigrationEvent ( migrationInfo , MigrationStatus . STARTED ) ;
 + sendMigrationEvent ( migrationInfo , MigrationStatus . COMPLETED ) ;
 }
 }
 }

Enables partition events for partitions that are promoted from backup as discussed in


<nb> public abstract class AbstractIntegrationTest {

 }

 - @ test
 COMMENT
 COMMENT
 COMMENT
 + SINGLE
 public void testDiffExternalForeignKeys ( ) throws Exception {
 if ( database == null ) {
 return ;

temporarily removed test to get build to pass


<nb> public class IOUtils {
 private static volatile boolean canUseSnappy ;
 static {
 try {
 - Field impl = Snappy . class . getDeclaredField ( STRING0 ) ;
 - impl . setAccessible ( true ) ;
 - canUseSnappy = impl . get ( null ) != null && System . getProperty ( STRING1 ) == null ;
 + if ( System . getProperty ( STRING1 ) == null ) { SINGLE
 + Field impl = Snappy . class . getDeclaredField ( STRING0 ) ;
 + impl . setAccessible ( true ) ;
 + canUseSnappy = impl . get ( null ) != null ;
 + }
 + else {
 + canUseSnappy = false ;
 + }
 }
 catch ( Throwable e ) { }
 }

do not load snappy implementation if its usage is explicitly disabled via system property


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 <nb> public class ContentProviderTest extends ProviderTestCase2 < TestContentProvider$P
 testSyncableModel . update ( false ) ;
 assertEquals ( testSyncableModel . name , STRING0 ) ;

 + testSyncableModel = Select . byId ( TestSyncableModel . class , testSyncableModel . id ) ;
 +
 TestSyncableModel fromContentProvider = new TestSyncableModel ( ) ;
 fromContentProvider . id = testSyncableModel . id ;
 fromContentProvider . load ( ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SvnCommandLineStatusClient implements SvnStatusClientI {
 public void switchPath ( ) {
 final PortableStatus pending = svnHandl [ NUMBER0 ] . getPending ( ) ;
 if ( pending . isLocked ( ) ) {
 - throw new SvnExceptionWrapper ( new SVNException ( SVNErrorMessage . create ( SVNErrorCode . WC_LOCKED ) ) ) ;
 + throw new SvnExceptionWrapper ( new SVNException ( SVNErrorMessage . create ( SVNErrorCode . SQLITE_ERROR ) ,
 + new SqlJetException ( SqlJetErrorCode . BUSY ) ) ) ;
 }
 pending . setChangelistName ( changelistName [ NUMBER0 ] ) ;
 try {

status handler throw svnkit exception if WC is locked correct exception about lock BUSY


<nb> public class FileEditorManagerImpl extends FileEditorManagerEx implements Projec
 if ( newEditor ) {
 clearWindowIfNeeded ( window ) ;

 + ourOpenFilesSetModificationCount . incrementAndGet ( ) ;
 getProject ( ) . getMessageBus ( ) . syncPublisher ( FileEditorManagerListener . Before . FILE_EDITOR_MANAGER ) . beforeFileOpened ( FileEditorManagerImpl . this , file ) ;

 FileEditor [ ] newEditors = new FileEditor [ newProviders . length ] ;

update open files modification tracker on opening file


<nb> public class CompletionProcessor extends BaseScopeProcessor
 final PsiElement elementParent = myElement . getParent ( ) ;
 if ( element instanceof PsiPackage ) {
 if ( ! mySettings . LIST_PACKAGES_IN_CODE && myScope instanceof PsiClass ) {
 - if ( ! ( elementParent instanceof PsiJavaCodeReferenceElement
 - && ( ( PsiJavaCodeReferenceElement ) elementParent ) . isQualified ( ) ) ) {
 + if ( ! ( elementParent instanceof PsiQualifiedReference
 + && ( ( PsiQualifiedReference ) elementParent ) . getQualifier ( ) != null ) ) {
 return true ;
 }
 }


<nb> public abstract class CmdLineTool implements Runnable {
 SINGLE
 SINGLE
 LOG . error ( STRING0 , message . getMessage ( ) ) ;
 - LOG . debug ( STRING1 , rootCause ) ;
 + LOG . debug ( STRING2 , rootCause ) ;
 }
 }
 }


<nb> public abstract class WebSettings {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void setDefaultZoom ( ZoomDensity zoom ) {
 <nb> public abstract class WebSettings {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HttpClientDownloader implements Downloader {
 } finally {
 try {
 if ( httpResponse != null ) {
 - httpResponse . close ( ) ;
 + SINGLE
 + EntityUtils . consume ( httpResponse . getEntity ( ) ) ;
 }
 } catch ( IOException e ) {
 logger . warn ( STRING0 , e ) ;


<nb> public class MavenProjectsTree {
 readLock ( ) ;
 try {
 CRC32 crc = new CRC32 ( ) ;
 - crc . update ( myRootProjects . size ( ) & NUMBER0 ) ;
 - for ( MavenProject mavenProject : myRootProjects ) {
 +
 + Collection < MavenProject > allProjects = myVirtualFileToProjectMapping . values ( ) ;
 +
 + crc . update ( allProjects . size ( ) & NUMBER0 ) ;
 + for ( MavenProject mavenProject : allProjects ) {
 VirtualFile pomFile = mavenProject . getFile ( ) ;
 Module module = fileIndex . getModuleForFile ( pomFile ) ;
 if ( module == null ) continue ;

calculate checksum by all maven projects


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

Removed a somewhat incorrect statement from the docs for ConventionProperty


<nb> public class Show extends BaseEntity {

 public int tvdbId ;

 + public boolean isFavorite ;
 +
 public Show ( ) {
 }

 + public boolean isFavorite ( ) {
 + return isFavorite ;
 + }
 +
 + public void setFavorite ( boolean isFavorite ) {
 + this . isFavorite = isFavorite ;
 + }
 +
 public int getTvdbId ( ) {
 return tvdbId ;
 }


<nb> public class LlapZookeeperRegistryImpl implements ServiceRegistry {
 } catch ( Exception e ) {
 LOG . error ( STRING0 , e ) ;
 CloseableUtils . closeQuietly ( znode ) ;
 + throw ( e instanceof IOException ) ? ( IOException ) e : new IOException ( e ) ;
 }

 if ( LOG . isDebugEnabled ( ) ) {

LLAP zookeeper registry failures do not fail the daemon Sergey Shelukhin reviewed by Prasanth Jayachandran


<nb> public class WXListComponent extends WXVContainer implements
 }
 if ( linearLayoutManager != null ) {
 x = NUMBER0 ;
 - y = linearLayoutManager . findFirstVisibleItemPosition ( ) ;
 + int position = linearLayoutManager . findFirstVisibleItemPosition ( ) ;
 + View firstVisiableChildView = layoutManager . findViewByPosition ( position ) ;
 + int itemHeight = firstVisiableChildView . getHeight ( ) ;
 + y = ( position ) * itemHeight - firstVisiableChildView . getTop ( ) ;
 }
 listener . onScrollStateChanged ( recyclerView , x , y , tempState ) ;
 }


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

 public class ExampleUsingGeneratedStub
 {
 <nb> public class ExampleUsingGeneratedStub
 . next ( ) . mph ( NUMBER0 ) . seconds ( FLOAT0 )
 . next ( ) . mph ( NUMBER1 ) . seconds ( FLOAT1 ) ;

 - car . make ( new String ( MAKE , Charset . forName ( STRING0 ) ) )
 + SINGLE
 + SINGLE
 + car . make ( new String ( MAKE , StandardCharsets . UTF_8 ) )
 . putModel ( MODEL , srcOffset , MODEL . length )
 . putActivationCode ( ACTIVATION_CODE , NUMBER2 , ACTIVATION_CODE . capacity ( ) ) ;

Java Comment the code to explain that the length of the strings need to be considered when encoding


<nb> public class DumbServiceImpl extends DumbService implements Disposable , Modifica
 runnable . run ( ) ;
 }
 catch ( Throwable e ) {
 - LOG . error ( e ) ;
 + LOG . error ( STRING0 + runnable , e ) ;
 }
 }
 }

logging task class for better diagnostics


<nb> public final class HiveType
 {
 return hiveTypeName . hashCode ( ) ;
 }
 +
 + @ override
 + public String toString ( )
 + {
 + return hiveTypeName ;
 + }
 }


<nb> public class ExtensionLoader {
 addMenuHelper ( menuBar . getMenuEdit ( ) , hookMenu . getEdit ( ) ) ;
 addMenuHelper ( menuBar . getMenuView ( ) , hookMenu . getView ( ) ) ;
 addMenuHelper ( menuBar . getMenuAnalyse ( ) , hookMenu . getAnalyse ( ) ) ;
 - addMenuHelper ( menuBar . getMenuAnalyse ( ) , hookMenu . getAnalyse ( ) ) ;
 addMenuHelper ( menuBar . getMenuHelp ( ) , hookMenu . getHelpMenus ( ) ) ;
 addMenuHelper ( menuBar . getMenuReport ( ) , hookMenu . getReportMenus ( ) ) ;

Removed a duplicated statement that adds the menu items to the menu Analyse


<nb> public class BoundingBox extends BoundingVolume {
 transMatrix . absoluteLocal ( ) ;

 Vector3f scale = trans . getScale ( ) ;
 - vars . vect1 . set ( xExtent * scale . x , yExtent * scale . y , zExtent * scale . z ) ;
 + vars . vect1 . set ( xExtent * FastMath . abs ( scale . x ) , yExtent * FastMath . abs ( scale . y ) , zExtent * FastMath . abs ( scale . z ) ) ;
 transMatrix . mult ( vars . vect1 , vars . vect2 ) ;
 SINGLE
 box . xExtent = FastMath . abs ( vars . vect2 . getX ( ) ) ;

Fixed wrong BoundingBox transformation when using negative scaling values


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

 - import static NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public class BeanInfo {
 if ( methodInfo . getBodyParameterType ( ) . isInstance ( body ) ) {
 return methodInfo ;
 }
 -
 - Object value = convertToType ( exchange , methodInfo . getBodyParameterType ( ) , body ) ;
 +
 + SINGLE
 + Object value = exchange . getContext ( ) . getTypeConverter ( ) . tryConvertTo ( methodInfo . getBodyParameterType ( ) , exchange , body ) ;
 if ( value != null ) {
 if ( LOG . isTraceEnabled ( ) ) {
 LOG . trace ( STRING0 ,

Bean component Should use try conversion when choosing method based on parameter type matching


<nb> public class JetCompiler implements TranslatingCompiler {
 context . addMessage ( INFORMATION , STRING0 + kotlinHome , STRING1 , - NUMBER0 , - NUMBER0 ) ;
 context . addMessage ( INFORMATION , STRING2 + compilerClassName + STRING3 + Arrays . asList ( arguments ) , STRING1 , - NUMBER0 , - NUMBER0 ) ;

 - Object rc = exec . invoke ( null , out , arguments ) ;
 + Object rc = exec . invoke ( kompiler . newInstance ( ) , out , arguments ) ;
 if ( rc instanceof Integer ) {
 return ( ( Integer ) rc ) . intValue ( ) ;
 }

Fixes an NPE when compiling from the IDE


<nb>

 package NAMESPACE ;

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

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


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class Aggregator < I , R > implements Serializable {

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public abstract void combine ( Aggregator aggregator ) ;


<nb> public final class SessionImpl
 throw convert ( e ) ;
 }
 finally {
 - checkNoUnresolvedActionsAfterOperation ( ) ;
 + try {
 + checkNoUnresolvedActionsAfterOperation ( ) ;
 + }
 + catch ( RuntimeException e ) {
 + throw convert ( e ) ;
 + }
 }
 }

Fix MultiCircleJpaCascadeTest testPersistNoCascadeToTransient test


<nb> public class MainController implements Choreographer . FrameCallback {
 SINGLE
 if ( v instanceof BubbleFlowView ) {
 ( ( BubbleFlowView ) v ) . forceCollapseEnd ( ) ;
 + ( ( BubbleFlowDraggable ) v ) . setCurrentTabAsActive ( ) ;
 }
 }
 mRootWindowsVisible = true ;
 <nb> public class BubbleFlowDraggable extends BubbleFlowView implements Draggable {
 return mCurrentTab ;
 }

 + public void setCurrentTabAsActive ( ) {
 + if ( null != mCurrentTab ) {
 + setCurrentTab ( mCurrentTab ) ;
 + }
 + }
 +
 private void setCurrentTab ( TabView tab ) {
 mCurrentTabResumeEvent . mTab = tab ;
 MainApplication . postEvent ( getContext ( ) , mCurrentTabResumeEvent ) ;
 <nb> public class BubbleFlowView extends HorizontalScrollView {
 }
 mCollapseEndAnimationEventListener = null ;
 mDoingCollapse = false ;
 +
 return result ;
 }

Fixed blank bubble after resume from unlock


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BillingActivity extends BaseActivity {
 }

 @ override
 + protected void onActivityResult ( int requestCode , int resultCode , Intent data ) {
 + Log . d ( TAG , STRING0 + requestCode + STRING1 + resultCode + STRING1 + data ) ;
 +
 + SINGLE
 + if ( ! mHelper . handleActivityResult ( requestCode , resultCode , data ) ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + super . onActivityResult ( requestCode , resultCode , data ) ;
 + }
 + else {
 + Log . d ( TAG , STRING2 ) ;
 + }
 + }
 +
 + @ override
 protected void onDestroy ( ) {
 super . onDestroy ( ) ;

Actually handle results in onActivityResult


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

 COMMENT


<nb> import NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class ConstructorExpressionTest {
 assertEquals ( STRING0 , projection . text ) ;
 }

 + @ test
 + public void threadSafety ( ) {
 + final ConstructorExpression < String > expr = Projections . constructor ( String . class ) ;
 + Runnable invoker = new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + expr . newInstance ( ) ;
 + }
 + } ;
 + ThreadSafety . check ( invoker , invoker ) ;
 + }
 +
 }

Add thread safety test for ConstructorExpression


<nb> public abstract class FragmentTuner {
 MenuItem rename = menu . findItem ( R . id . menu_rename ) ;
 MenuItem selectAll = menu . findItem ( R . id . menu_select_all ) ;

 - open . setVisible ( true ) ;
 + open . setVisible ( mState . action == ACTION_GET_CONTENT ||
 + mState . action == ACTION_OPEN ) ;
 share . setVisible ( false ) ;
 delete . setVisible ( false ) ;
 rename . setVisible ( false ) ;


<nb> public class PApplet extends Applet
 static public String [ ] trim ( String [ ] array ) {
 String [ ] outgoing = new String [ array . length ] ;
 for ( int i = NUMBER0 ; i < array . length ; i ++ ) {
 - outgoing [ i ] = array [ i ] . replace ( STRING0 , STRING1 ) . trim ( ) ;
 + if ( array [ i ] != null ) {
 + outgoing [ i ] = array [ i ] . replace ( STRING0 , STRING1 ) . trim ( ) ;
 + }
 }
 return outgoing ;
 }


<nb> public class Solo {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 +
 + public ArrayList < View > getViews ( View parent ) {
 + try {
 + return viewFetcher . getViews ( parent ) ;
 + } catch ( Exception e ) {
 + e . printStackTrace ( ) ;
 + return null ;
 + }
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class PacManager {
 COMMENT
 public synchronized boolean setCurrentProxyScriptUrl ( ProxyProperties proxy ) {
 if ( ! TextUtils . isEmpty ( proxy . getPacFileUrl ( ) ) ) {
 - if ( proxy . getPacFileUrl ( ) . equals ( mPacUrl ) ) {
 + if ( proxy . getPacFileUrl ( ) . equals ( mPacUrl ) && ( proxy . getPort ( ) > NUMBER0 ) ) {
 SINGLE
 return false ;
 }


<nb> public abstract class Phone {

 @ joincolumn ( foreignKey = @ foreignkey , table = STRING0 )
 public abstract int getOwnerId ( ) ;
 +
 + SINGLE
 + public boolean isValid ( ) {
 + return getPhoneNumber ( ) != null && isNormalized ( ) ;
 + }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PeopleListFragment extends Fragment {

 private FilteredRecyclerView mFilteredRecyclerView ;
 private ProgressBar mProgress ;
 + private PeopleListFilter mPeopleListFilter ;

 public static PeopleListFragment newInstance ( int localTableBlogID ) {
 PeopleListFragment peopleListFragment = new PeopleListFragment ( ) ;
 <nb> public class PeopleListFragment extends Fragment {

 @ override
 public void onLoadFilterCriteriaOptionsAsync ( FilteredRecyclerView . FilterCriteriaAsyncLoaderListener listener , boolean refresh ) {
 - SINGLE
 + SINGLE
 }

 @ override
 public FilterCriteria onRecallSelection ( ) {
 - return null ;
 + mPeopleListFilter = AppPrefs . getPeopleListFilter ( ) ;
 + return mPeopleListFilter ;
 }

 @ override
 <nb> public class PeopleListFragment extends Fragment {

 @ override
 public void onFilterSelected ( int position , FilterCriteria criteria ) {
 -
 + mPeopleListFilter = ( PeopleListFilter ) criteria ;
 + AppPrefs . setPeopleListFilter ( mPeopleListFilter ) ;
 }

 @ override

Save use the filter selection in people page


<nb> public class VcsQuickListPopupAction extends QuickSwitchSchemeAction implements
 addSeparator ( group ) ;
 addAction ( STRING0 , group ) ;
 addAction ( STRING1 , group ) ;
 +
 + SINGLE
 + addLocalHistoryActions ( group ) ;
 }

 private void addLocalHistoryActions ( DefaultActionGroup group ) {

add Local History actions to VCS Popup even if VCS isn t configured


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class OrderInsensitiveTaskFilePropertyCompareStrategy implements TaskFilePropert
 COMMENT
 COMMENT
 private Iterator < TaskStateChange > iterateChangesForAbsolutePaths ( final Map < String , NormalizedFileSnapshot > current , final Map < String , NormalizedFileSnapshot > previous , final String fileType ) {
 - final Set < String > unaccountedForPreviousSnapshots = new HashSet < String > ( previous . keySet ( ) ) ;
 + final Set < String > unaccountedForPreviousSnapshots = new LinkedHashSet < String > ( previous . keySet ( ) ) ;
 final Iterator < Entry < String , NormalizedFileSnapshot > > currentEntries = current . entrySet ( ) . iterator ( ) ;
 final List < String > added = new ArrayList < String > ( ) ;
 return new AbstractIterator < TaskStateChange > ( ) {

Retain iteration order when generating removed events for file snapshots that use absolute file paths


<nb> public class IndexDatabase {
 }

 for ( final IndexDatabase db : dbs ) {
 - SINGLE
 db . addIndexChangedListener ( listener ) ;
 executor . submit ( new Runnable ( ) {


<nb> public class JoglInput implements Input , MouseMotionListener , MouseListener , Mou
 robot = new Robot ( GraphicsEnvironment . getLocalGraphicsEnvironment ( ) . getDefaultScreenDevice ( ) ) ;
 } catch ( HeadlessException e ) {
 } catch ( AWTException e ) {
 - }
 -
 - long eventMask = AWTEvent . MOUSE_MOTION_EVENT_MASK + AWTEvent . MOUSE_EVENT_MASK ;
 - Toolkit . getDefaultToolkit ( ) . addAWTEventListener ( new AWTEventListener ( )
 - {
 - public void eventDispatched ( AWTEvent e )
 - {
 - System . out . println ( e . getID ( ) ) ;
 - }
 - } , eventMask ) ;
 + }
 }

 public void setListeners ( GLCanvas canvas ) {

fixed removed debug output from jogl backend


<nb> public interface List < T > extends Seq < T > , Stack < T > {
 @ override
 default Tuple2 < List < T > , List < T > > partition ( Predicate < ? super T > predicate ) {
 Objects . requireNonNull ( predicate , STRING0 ) ;
 - List < T > left = nil ( ) , right = nil ( ) ;
 - for ( T t : this ) {
 - if ( predicate . test ( t ) ) {
 - left = left . prepend ( t ) ;
 - } else {
 - right = right . prepend ( t ) ;
 - }
 - }
 - return Tuple . of ( left . reverse ( ) , right . reverse ( ) ) ;
 + return Tuple . of ( filter ( predicate ) , filter ( predicate . negate ( ) ) ) ;
 }

 @ override

Revert Improves List partition Predicate


<nb> public class AmazonKinesisFirehoseToRedshiftSample extends AbstractAmazonKinesis
 SINGLE
 if ( StringUtils . isNullOrEmpty ( accountId ) ) {
 throw new IllegalArgumentException ( STRING0
 - + STRING1 ) ;
 + + CONFIG_FILE + STRING2 ) ;
 }
 }

 <nb> public class AmazonKinesisFirehoseToS3Sample extends AbstractAmazonKinesisFireho
 SINGLE
 if ( StringUtils . isNullOrEmpty ( accountId ) ) {
 throw new IllegalArgumentException ( STRING0
 - + STRING1 ) ;
 + + CONFIG_FILE + STRING2 ) ;
 }
 }

Fix wrong property filename in log by replace on constant


<nb> public class OSchemaShared extends ODocumentWrapperNoClass implements OSchema , O

 for ( int i = NUMBER0 ; i < iName . length ( ) ; ++ i ) {
 final char c = iName . charAt ( i ) ;
 - if ( c == STRING0 || c == STRING1 )
 + if ( c == STRING0 || c == STRING1 || c == STRING2 )
 SINGLE
 return c ;
 }

Added the constraint to avoid spaces in document s field names


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

 <nb> public class OpenIdServiceFactory extends AbstractServiceFactory < OpenIdService >
 COMMENT
 COMMENT
 @ notnull
 + @ value ( STRING0 )
 private String openIdPrefixUrl ;

 public String getOpenIdPrefixUrl ( ) {
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class ImageHelper {
 COMMENT
 COMMENT
 public Bitmap getThumbnailForWPImageSpan ( Context context , String filePath , int targetWidth ) {
 - if ( filePath == null ) {
 + if ( filePath == null || context == null ) {
 return null ;
 }
 int width = getThumbnailWidth ( context , targetWidth ) ;

null context crashed getThumbnailForWPImageSpan


<nb> public class RestrictedTest {
 private ODatabaseDocumentTx database ;
 private ODocument adminRecord ;
 private ODocument writerRecord ;
 - private final String inheritedRole = STRING0 ;
 - private final String inheritedUser = STRING1 ;
 -
 +
 @ parameters ( value = STRING2 )
 public RestrictedTest ( String iURL ) {
 database = new ODatabaseDocumentTx ( iURL ) ;


<nb> public class ResourceHttpRequestHandler extends WebContentGenerator implements H
 COMMENT
 COMMENT
 protected void writeContent ( HttpServletResponse response , Resource resource ) throws IOException {
 - StreamUtils . copy ( resource . getInputStream ( ) , response . getOutputStream ( ) ) ;
 + InputStream in = resource . getInputStream ( ) ;
 + try {
 + StreamUtils . copy ( in , response . getOutputStream ( ) ) ;
 + }
 + finally {
 + try {
 + in . close ( ) ;
 + }
 + catch ( IOException ex ) {
 + }
 + }
 }

ResourceHttpRequestHandler explicitly closes a Resource s InputStream


<nb> public class MimeMessage extends Message
 return mMessageId ;
 }

 + public void setMessageId ( String messageId ) throws MessagingException
 + {
 + setHeader ( STRING0 , messageId ) ;
 + mMessageId = messageId ;
 + }
 +
 public void setInReplyTo ( String inReplyTo ) throws MessagingException
 {
 setHeader ( STRING1 , inReplyTo ) ;

Added a setMessageId method to MimeMessage rather than just explicitly setting a header


<nb> public class NewChunk extends Chunk {
 if ( ! Double . isNaN ( _ds [ i ] ) && ( double ) ( long ) _ds [ i ] != _ds [ i ] )
 break ;
 boolean isInteger = i == sparseLen ( ) ;
 - boolean isConstant = sparseLen ( ) == NUMBER0 ;
 + boolean isConstant = ! sparse || sparseLen ( ) == NUMBER0 ;
 double constVal = NUMBER0 ;
 if ( ! sparse ) { SINGLE
 double d = _ds [ NUMBER0 ] ;

Fix NewChunk compression after recent fix


<nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi
 }

 if ( isOneLineMode ( ) ) return getLineHeight ( ) ;
 -
 - int size = mySizeContainer . getContentHeight ( ) ;
 -
 +
 + SINGLE
 + SINGLE
 + int size = Math . max ( mySizeContainer . getContentHeight ( ) , getLineHeight ( ) ) ;
 +
 if ( mySettings . isAdditionalPageAtBottom ( ) ) {
 int lineHeight = getLineHeight ( ) ;
 int visibleAreaHeight = getScrollingModel ( ) . getVisibleArea ( ) . height ;

make preferred height at least as big as a line height


<nb> public class AsyncQueryForwardingServlet extends HttpServlet
 query = query . withId ( queryId ) ;
 }

 + if ( log . isDebugEnabled ( ) ) {
 + log . debug ( STRING0 , query ) ;
 + }
 +
 out = resp . getOutputStream ( ) ;
 final OutputStream outputStream = out ;


<nb> public abstract class AbstractMinMaxAggregation

 List < Type > inputTypes = ImmutableList . of ( type ) ;

 - AccumulatorStateSerializer stateSerializer ;
 - AccumulatorStateFactory stateFactory ;
 + AccumulatorStateSerializer < ? > stateSerializer ;
 + AccumulatorStateFactory < ? > stateFactory ;
 MethodHandle inputFunction ;
 Class < ? extends AccumulatorState > stateInterface ;


<nb> public abstract class AbstractCoberturaParser {
 Resource file = getResource ( filename ) ;
 if ( fileExists ( context , file ) ) {
 for ( Measure measure : entry . getValue ( ) . createMeasures ( ) ) {
 - System . out . println ( file + STRING0 + measure ) ;
 context . saveMeasure ( file , measure ) ;
 }
 }


<nb> public class DiagnosticGroups {
 DiagnosticGroups . registerGroup ( STRING0 ,
 DisambiguateProperties . Warnings . INVALIDATION ) ;

 + public static DiagnosticGroup DUPLICATE_VARS =
 + DiagnosticGroups . registerGroup ( STRING1 ,
 + SyntacticScopeCreator . VAR_MULTIPLY_DECLARED_ERROR ,
 + TypeValidator . DUP_VAR_DECLARATION ) ;
 +
 public static DiagnosticGroup ES5_STRICT =
 DiagnosticGroups . registerGroup ( STRING2 ,
 StrictModeCheck . UNKNOWN_VARIABLE ,
 <nb> public class TypeCheckTest extends CompilerTypeTestCase {
 STRING3 ) ;
 }

 + public void testDuplicateStaticPropertyDec20 ( ) throws Exception {
 + testTypes (
 + STRING4 +
 + STRING5 +
 + STRING6 +
 + STRING7 +
 + STRING8 +
 + STRING9 +
 + STRING10 ) ;
 + }
 +
 public void testDuplicateLocalVarDecl ( ) throws Exception {
 testClosureTypesMultipleWarnings (
 STRING11 +

Make suppress duplicate a real diagnostic group


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public interface Connection {
 Connection url ( String url ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + Connection proxy ( Proxy proxy ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface Connection {

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + Proxy proxy ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + Request proxy ( Proxy proxy ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class OtpsCsvOutput {
 public void addRow ( Object [ ] row ) {
 List < String > strs = new ArrayList < > ( row . length ) ;
 for ( int i = NUMBER0 ; i < row . length ; i ++ ) {
 - strs . add ( row [ i ] . toString ( ) ) ;
 + strs . add ( row [ i ] == null ? STRING0 : row [ i ] . toString ( ) ) ;
 }
 data . add ( strs ) ;
 }


<nb> public class RequestServer extends NanoHTTPD {
 boolean healthy = ( System . currentTimeMillis ( ) - members [ i ] . _last_heard_from ) < HeartBeatThread . TIMEOUT ;
 if ( healthy ) {
 GetLogsFromNode g = new GetLogsFromNode ( ) ;
 - g . nodeidx = NUMBER0 ;
 + g . nodeidx = i ;
 g . doIt ( ) ;
 bytes = g . bytes ;
 } else {

Fix log download bug where all nodes were getting the same zip file


<nb> public class ForgeHooksClient
 public static void onTextureStitchedPre ( TextureMap map )
 {
 MinecraftForge . EVENT_BUS . post ( new TextureStitchEvent . Pre ( map ) ) ;
 + ModelLoader . White . instance . register ( map ) ;
 }

 public static void onTextureStitchedPost ( TextureMap map )
 <nb> public class ModelLoader extends ModelBakery
 super ( manager , map , shapes ) ;
 VanillaLoader . instance . setLoader ( this ) ;
 ModelLoaderRegistry . clearModelCache ( ) ;
 - MinecraftForge . EVENT_BUS . register ( White . instance ) ;
 }

 @ override
 <nb> public class ModelLoader extends ModelBakery
 return false ;
 }

 - @ subscribeevent
 - public void handleStitchPre ( TextureStitchEvent . Pre event )
 + public void register ( TextureMap map )
 {
 - event . map . setTextureEntry ( White . loc . toString ( ) , White . instance ) ;
 + map . setTextureEntry ( White . loc . toString ( ) , White . instance ) ;
 }
 }

Removed event bus call from the ModelLoader


<nb> public class ItemUIRegistryImpl implements ItemUIRegistry {
 try {
 item = getItem ( itemName ) ;
 } catch ( ItemNotFoundException e ) {
 - logger . error ( STRING0 , w . eClass ( ) . getInstanceTypeName ( ) ) ;
 + logger . error ( STRING1 , itemName , w . eClass ( ) . getInstanceTypeName ( ) ) ;
 }
 return formatLabel ( item , itemName , label ) ;
 }
 <nb> public class ItemUIRegistryImpl implements ItemUIRegistry {
 Item item = getItem ( itemName ) ;
 return item . getState ( ) ;
 } catch ( ItemNotFoundException e ) {
 - logger . error ( STRING2 , new String [ ] { itemName , w . eClass ( ) . getInstanceTypeName ( ) } ) ;
 + logger . error ( STRING1 , itemName , w . eClass ( ) . getInstanceTypeName ( ) ) ;
 }
 }
 return UnDefType . UNDEF ;

Improved getLabel error logging and fixed warning in getState error logging


<nb> public class FileBasedIndex implements ApplicationComponent {
 }
 }

 - IndexingStamp . flushCache ( ) ;
 return true ;
 }
 } ) ;
 + IndexingStamp . flushCache ( ) ;
 }

 public void scheduleInvalidation ( final VirtualFile file , final boolean saveContent ) {


<nb> public class TypedHandler implements TypedActionHandler {
 element = element . getParent ( ) ;
 }

 + if ( element instanceof XmlAttributeValue ) {
 + element = element . getParent ( ) . getParent ( ) ;
 + }
 +
 while ( element instanceof PsiWhiteSpace ) element = element . getPrevSibling ( ) ;
 if ( element == null ) return ;
 if ( ! ( element instanceof XmlTag ) ) {

fixed issue with greater action when the xml tag has attribute with value


<nb> public class ModuleRootManagerImpl extends ModuleRootManager implements ModuleCo
 private RootModelImpl myRootModel ;
 private final ModuleFileIndexImpl myFileIndex ;
 private boolean myIsDisposed = false ;
 + private boolean myLoaded = false ;
 private boolean isModuleAdded = false ;
 private final OrderRootsCache myOrderRootsCache ;
 private final Map < RootModelImpl , Throwable > myModelCreations = new THashMap < RootModelImpl , Throwable > ( ) ;
 <nb> public class ModuleRootManagerImpl extends ModuleRootManager implements ModuleCo
 }

 public void loadState ( ModuleRootManagerState object ) {
 - loadState ( object , myRootModel != null ) ;
 + loadState ( object , myLoaded ) ;
 + myLoaded = true ;
 }

 protected void loadState ( ModuleRootManagerState object , boolean throwEvent ) {

don t perform costly root model comparison when it s loaded the first time


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TestDigestAuthenticator extends TomcatBaseTest {
 @ test
 public void bug54521 ( ) throws LifecycleException {
 DigestAuthenticator digestAuthenticator = new DigestAuthenticator ( ) ;
 - digestAuthenticator . setContainer ( new TesterContext ( ) ) ;
 + TesterContext context = new TesterContext ( ) ;
 + context . setServletContext ( new TesterServletContext ( ) ) ;
 + digestAuthenticator . setContainer ( context ) ;
 digestAuthenticator . start ( ) ;
 Request request = new TesterRequest ( ) ;
 final int count = NUMBER0 ;

The JASPIC code now wants a Servlet context which is relatively reasonable


<nb> public class PackageKeySetData {
 }

 PackageKeySetData ( PackageKeySetData original ) {
 + mProperSigningKeySet = original . mProperSigningKeySet ;
 mSigningKeySets = ArrayUtils . cloneOrNull ( original . mSigningKeySets ) ;
 mUpgradeKeySets = ArrayUtils . cloneOrNull ( original . mUpgradeKeySets ) ;
 mDefinedKeySets = ArrayUtils . cloneOrNull ( original . mDefinedKeySets ) ;

Add mProperSigningKeySet to PackageKeySetData constructor


<nb> public class DashUpdatesFragment extends DashBaseFragment {
 cancelButton = null ;
 }
 updatedDownloadsList ( BaseDownloadActivity . downloadListIndexThread . getItemsToUpdate ( ) ) ;
 +
 + View view = getActivity ( ) . getLayoutInflater ( ) . inflate ( R . layout . dash_updates_fragment , container , false ) ;
 + view . invalidate ( ) ;
 }

 public void updatedDownloadsList ( List < IndexItem > list ) {


<nb> public class JobManager implements ExtendedManagementProtocol , InputSplitProvide

 @ override
 public InstanceID registerTaskManager ( InstanceConnectionInfo instanceConnectionInfo , HardwareDescription hardwareDescription , int numberOfSlots ) {
 - if ( this . instanceManager != null ) {
 + if ( this . instanceManager != null && this . scheduler != null ) {
 return this . instanceManager . registerTaskManager ( instanceConnectionInfo , hardwareDescription , numberOfSlots ) ;
 } else {
 return null ;

Fix race at TaskManager registration during startup


<nb> public class TableStatements {
 private volatile String selectAll ;
 private volatile String selectByKey ;
 private volatile String selectByRowId ;
 + private volatile String selectKeys ;

 public TableStatements ( SQLiteDatabase db , String tablename , String [ ] allColumns , String [ ] pkColumns ) {
 this . db = db ;
 <nb> public class TableStatements {
 return selectAll ;
 }

 + COMMENT
 + public String getSelectKeys ( ) {
 + if ( selectKeys == null ) {
 + selectKeys = SqlUtils . createSqlSelect ( tablename , STRING0 , pkColumns ) ;
 + }
 + return selectKeys ;
 + }
 +
 SINGLE
 public String getSelectByKey ( ) {
 if ( selectByKey == null ) {


<nb> public class BusinessRuleTaskActivityBehavior extends TaskActivityBehavior {
 Expression ruleName = itRuleNames . next ( ) ;
 filter . addSuffic ( ruleName . getValue ( execution ) . toString ( ) ) ;
 }
 - filter . setAccept ( exclude ) ;
 + filter . setAccept ( ! exclude ) ;
 ksession . fireAllRules ( filter ) ;

 } else {


<nb> public class XmppConnection implements Runnable {
 }
 element . setAttributes ( currentTag . getAttributes ( ) ) ;
 Tag nextTag = tagReader . readTag ( ) ;
 + if ( nextTag == null ) {
 + throw new IOException ( STRING0 ) ;
 + }
 while ( ! nextTag . isEnd ( element . getName ( ) ) ) {
 if ( ! nextTag . isNo ( ) ) {
 Element child = tagReader . readElement ( nextTag ) ;
 <nb> public class XmppConnection implements Runnable {
 element . addChild ( child ) ;
 }
 nextTag = tagReader . readTag ( ) ;
 + if ( nextTag == null ) {
 + throw new IOException ( STRING0 ) ;
 + }
 }
 ++ stanzasReceived ;
 lastPaketReceived = SystemClock . elapsedRealtime ( ) ;


<nb> public abstract class HeaderTransformer {
 public void onViewCreated ( Activity activity , View headerView ) { }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public void onViewCreated ( View headerView ) { }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class PullToRefreshAttacher {

 SINGLE
 mHeaderTransformer . onViewCreated ( activity , mHeaderView ) ;
 - SINGLE
 - mHeaderTransformer . onViewCreated ( mHeaderView ) ;

 SINGLE
 mHandler . post ( new Runnable ( ) {

Remove deprecated call from HeaderTransformer


<nb> public abstract class AbstractService implements VoldemortService {

 private static final Logger logger = Logger . getLogger ( VoldemortService . class ) ;

 - private AtomicBoolean isStarted ;
 + private final AtomicBoolean isStarted ;
 private final String name ;

 public AbstractService ( String name ) {

Add final modifier to AtomicBoolean isStarted


<nb> final public class OrcStruct implements Writable {

 @ override
 public Object getStructFieldData ( Object object , StructField field ) {
 + if ( object == null ) {
 + return null ;
 + }
 return ( ( OrcStruct ) object ) . fields [ ( ( Field ) field ) . offset ] ;
 }

 @ override
 public List < Object > getStructFieldsDataAsList ( Object object ) {
 + if ( object == null ) {
 + return null ;
 + }
 OrcStruct struct = ( OrcStruct ) object ;
 List < Object > result = new ArrayList < Object > ( struct . fields . length ) ;
 for ( Object child : struct . fields ) {

ORC struct throws NPE for tables with inner structs having null values Prasanth J via Gunther Hagleitner


<nb> public class NewAccountDialog
 }
 catch ( Exception e )
 {
 + logger . error ( STRING0 + e . getMessage ( ) , e ) ;
 SINGLE
 SwingUtilities . invokeLater ( new Runnable ( )
 {

Prints stack trace for error which occurred during protocol sign in


<nb> public interface ClientService {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 String addClientListener ( ClientListener clientListener ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JvmOptions {
 public static final String JAVA_IO_TMPDIR_KEY = STRING0 ;

 public static final Set < String > IMMUTABLE_SYSTEM_PROPERTIES = ImmutableSet . of (
 - FILE_ENCODING_KEY , USER_LANGUAGE_KEY , USER_COUNTRY_KEY , USER_VARIANT_KEY , JMX_REMOTE_KEY , JAVA_IO_TMPDIR_KEY
 + FILE_ENCODING_KEY , USER_LANGUAGE_KEY , USER_COUNTRY_KEY , USER_VARIANT_KEY , JMX_REMOTE_KEY , JAVA_IO_TMPDIR_KEY , NativeServices . NATIVE_DIR_OVERRIDE
 ) ;

 SINGLE

Include org gradle native dir as an immutable system property


<nb> public class ExecutionTimeLimitTest
 @ test ( expected = UniformInterfaceException . class )
 public void expectLimitation ( )
 {
 - wait = NUMBER0 ;
 - Client . create ( ) . resource ( STRING0 )
 + wait = NUMBER1 ;
 + Client . create ( ) . resource ( STRING1 )
 . header ( STRING2 , STRING3 )
 . get ( String . class ) ;
 }
 <nb> public class ExecutionTimeLimitTest
 } ;

 EmbeddedServerConfigurator config = new EmbeddedServerConfigurator ( db ) ;
 - config . configuration ( ) . setProperty ( Configurator
 - . WEBSERVER_LIMIT_EXECUTION_TIME_PROPERTY_KEY , NUMBER2 ) ;
 + config . configuration ( ) . setProperty ( Configurator . WEBSERVER_PORT_PROPERTY_KEY , NUMBER3 ) ;
 + config . configuration ( ) . setProperty ( Configurator . WEBSERVER_LIMIT_EXECUTION_TIME_PROPERTY_KEY , NUMBER0 ) ;
 testBootstrapper = new WrappingNeoServerBootstrapper ( db , config ) ;
 testBootstrapper . start ( ) ;
 }


<nb> public class XmlBraceMatcher implements XmlAwareBraceMatcher {
 }
 }

 - if (
 - tokenType == XmlTokenType . XML_EMPTY_ELEMENT_END ||
 + if ( tokenType == XmlTokenType . XML_EMPTY_ELEMENT_END ||
 tokenType == XmlTokenType . XML_ATTRIBUTE_VALUE_END_DELIMITER ||
 - tokenType == XmlTokenType . XML_CDATA_END ) {
 + tokenType == XmlTokenType . XML_CDATA_END )
 + {
 return true ;
 }
 else if ( tokenType == XmlTokenType . XML_TAG_END ) {

haml lexer should generate pseudo start tag token for all tags not only implicit


<nb> class NettyBuffer extends AbstractBuffer {

 @ override
 public NettyBuffer readBytes ( int length ) {
 - return new NettyBuffer ( buffer . readSlice ( length ) ) ;
 + SINGLE
 + return new NettyBuffer ( buffer . readSlice ( length ) . retain ( ) ) ;
 }

 @ override


<nb> class DefaultTransform implements Transform {
 else
 ratio = Math . min ( xratio , yratio ) ;

 - float postx = b . getWidth ( ) * ratio ;
 - float posty = b . getHeight ( ) * ratio ;
 - float transx = ( resizeWidth - postx ) / NUMBER0 ;
 - float transy = ( resizeHeight - posty ) / NUMBER0 ;
 - destination . set ( transx , transy , postx , posty ) ;
 + float postWidth = b . getWidth ( ) * ratio ;
 + float postHeight = b . getHeight ( ) * ratio ;
 + float transx = ( resizeWidth - postWidth ) / NUMBER0 ;
 + float transy = ( resizeHeight - postHeight ) / NUMBER0 ;
 + destination . set ( transx , transy , transx + postWidth , transy + postHeight ) ;
 }

 canvas . drawBitmap ( b , null , destination , null ) ;


<nb> public abstract class DKV {

 SINGLE
 static public Value remove ( Key key ) { return remove ( key , null ) ; }
 - static public Value remove ( Key key , Futures fs ) { return put ( key , ( Value ) null , fs ) ; }
 + static public Value remove ( Key key , Futures fs ) { return put ( key , null , fs ) ; }

 SINGLE
 SINGLE


<nb> public class FreqTermsEnumTests extends ElasticsearchLuceneTestCase {

 Directory dir = newDirectory ( ) ;
 IndexWriterConfig conf = newIndexWriterConfig ( TEST_VERSION_CURRENT , new MockAnalyzer ( random ( ) ) ) ;
 - conf . setMergeScheduler ( NoMergeScheduler . INSTANCE ) ; SINGLE
 + if ( frequently ( ) ) {
 + SINGLE
 + conf . setMergePolicy ( randomBoolean ( ) ? NoMergePolicy . COMPOUND_FILES : NoMergePolicy . NO_COMPOUND_FILES ) ;
 + }
 iw = new IndexWriter ( dir , conf ) ;
 terms = new String [ scaledRandomIntBetween ( NUMBER0 , NUMBER1 ) ] ;
 for ( int i = NUMBER2 ; i < terms . length ; i ++ ) {

TEST Use NoMergePolicy rather than NoMergeScheduler in FreqTermsEnumTests


<nb> public class OGraphRepair {
 repairVertices ( graph , stats , outputListener ) ;

 message ( outputListener , STRING0 + graph . getRawGraph ( ) . getURL ( ) + STRING1
 - + ( System . currentTimeMillis ( ) - beginTime / NUMBER0 ) + STRING2 ) ;
 + + ( ( System . currentTimeMillis ( ) - beginTime ) / NUMBER0 ) + STRING2 ) ;

 message ( outputListener , STRING3 + stats . scannedEdges + STRING4 ) ;
 message ( outputListener , STRING5 + stats . removedEdges + STRING4 ) ;


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

 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ checkreturnvalue
 public final class Defaults {
 private Defaults ( ) { }

Add CheckReturnValue to BinaryPredicates and Defaults


<nb> public class NetworkLibrary {
 }
 }

 - if ( linkToTreeMap . isEmpty ( ) ) {
 + if ( ! myRootTree . hasChildren ( ) ) {
 SINGLE
 SINGLE
 SINGLE

fixed multiple manage catalogs items issue


<nb> public interface Inventory extends Iterable < ItemStack > {
 public int getSize ( ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + public int getMaxStackSize ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setMaxStackSize ( int size ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class AbstractVcs {
 myIsStarted = false ;
 }

 - @ nullable public FileViewEnvironment getFileViewEnvironment ( ) {
 - return null ;
 - }
 -
 COMMENT
 COMMENT
 COMMENT


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

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

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


<nb> public abstract class FileOutputFormat < IT > implements OutputFormat < IT > {
 COMMENT
 COMMENT
 COMMENT
 - public static final String FILE_PARAMETER_KEY = STRING0 ;
 + public static final String FILE_PARAMETER_KEY = STRING1 ;

 COMMENT
 COMMENT
 COMMENT
 - public static final String WRITEMODE_PARAMETER_KEY = STRING2 ;
 + public static final String WRITEMODE_PARAMETER_KEY = STRING3 ;

 COMMENT
 COMMENT
 COMMENT
 public static final String WRITEMODE_CREATE = STRING4 ;
 public static final String WRITEMODE_OVERWRITE = STRING5 ;
 -
 +
 COMMENT
 COMMENT
 COMMENT
 - public static final String OUTPUT_STREAM_OPEN_TIMEOUT_KEY = STRING6 ;
 + public static final String OUTPUT_STREAM_OPEN_TIMEOUT_KEY = STRING7 ;

 COMMENT
 COMMENT

Updated configuration keys to new naming


<nb> public class PdeBase extends Frame implements ActionListener {
 frame = this ; SINGLE
 SINGLE

 + this . addComponentListener ( new ComponentAdapter ( ) {
 + public void componentResized ( ComponentEvent e ) {
 + System . out . println ( e ) ;
 + }
 + } ) ;
 +
 SINGLE

 try {


<nb> public class TileSourceManager {
 public static class CykloatlasSourceTemplate extends TileSourceTemplate {

 public CykloatlasSourceTemplate ( String name , String urlToLoad ) {
 - super ( name , urlToLoad , STRING0 , NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 ) ; SINGLE
 + super ( name , urlToLoad , STRING0 , NUMBER5 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 ) ; SINGLE
 }

 @ override


<nb> package NAMESPACE ;

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

 import NAMESPACE ;
 import NAMESPACE ;

 - public class MainActivity extends BaseDetailActivity {
 + public class MainActivity extends AppCompatActivity {
 private List < Sample > samples ;

 @ override
 <nb> public class MainActivity extends BaseDetailActivity {
 ) ;
 }

 + protected void setupToolbar ( ) {
 + Toolbar toolbar = ( Toolbar ) findViewById ( R . id . toolbar ) ;
 + setSupportActionBar ( toolbar ) ;
 + getSupportActionBar ( ) . setDisplayShowTitleEnabled ( false ) ;
 + }
 +
 private void setupLayout ( ) {
 RecyclerView recyclerView = ( RecyclerView ) findViewById ( R . id . sample_list ) ;
 recyclerView . setHasFixedSize ( true ) ;


<nb> public class AdminServiceRequestHandler implements RequestHandler {
 logger . info ( message ) ;
 }
 } catch ( VoldemortException ve ) {
 - String errorMessage = STRING0
 - + fetchUrl
 - + STRING1
 - + storeName
 - + STRING2 ;
 + String errorMessage = STRING0 + fetchUrl
 + + STRING1 + storeName + STRING3
 + + ve . getMessage ( ) ;
 updateStatus ( errorMessage ) ;
 logger . error ( errorMessage ) ;
 throw new VoldemortException ( errorMessage ) ;

Fixed error message in case fetcher raises an exception


<nb> public class XmppConnection implements Runnable {
 } else {
 ++ miss ;
 }
 + if ( rosterVersioning ( ) ) {
 + ++ hit ;
 + } else {
 + ++ miss ;
 + }
 return ( int ) ( ( ( float ) hit ) / ( hit + miss ) * NUMBER0 ) ;
 }
 }

added roster versioning to calculation of server compat


<nb> abstract public class ServerStarter {
 try {
 SINGLE
 final ClassLoader parent = findParentClassLoader ( ) ;
 - File libDir = new File ( STRING0 ) ;
 + SINGLE
 + File libDir = new File ( STRING1 ) ;
 ClassLoader loader = new JiveClassLoader ( parent , libDir ) ;
 Thread . currentThread ( ) . setContextClassLoader ( loader ) ;
 Class containerClass = loader . loadClass ( getBootContainerClassName ( ) ) ;


<nb> public class SchemaManager {
 private void updateToOpenfire ( Connection con ) {
 PreparedStatement pstmt = null ;
 try {
 - pstmt = con . prepareStatement ( STRING0 ) ;
 + pstmt = con . prepareStatement ( STRING1 ) ;
 pstmt . executeUpdate ( ) ;
 }
 catch ( Exception ex ) {

Wildfire would have jiveVersion not ofVersion


<nb> final class MuninnPage extends StampedLock implements Page
 while ( read != - NUMBER0 && ( readTotal += read ) < length ) ;

 SINGLE
 - UnsafeUtil . setMemory ( pointer + readTotal , getCachePageSize ( ) - readTotal , ( byte ) NUMBER1 ) ;
 + UnsafeUtil . setMemory ( pointer + readTotal , length - readTotal , ( byte ) NUMBER1 ) ;
 return readTotal ;
 }
 catch ( ClosedChannelException e )

Don t zap more page memory to zero than is strictly necessary


<nb> public class Receiver
 COMMENT
 public boolean validate ( )
 {
 + UNSAFE . loadFence ( ) ; SINGLE
 +
 return validate ( cursor ) ;
 }

 private boolean validate ( final long cursor )
 {
 - UNSAFE . loadFence ( ) ; SINGLE
 -
 return cursor == buffer . getLongVolatile ( tailSequenceOffset ( recordOffset ) ) ;
 }
 }

Move load fence to public method as not need on private usage


<nb> package NAMESPACE ;
 import NAMESPACE ;

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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static void main ( String [ ] args ) {
 COMMENT
 Prototype charProto = new Character ( ) ;
 <nb> import NAMESPACE ;

 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class AppTest {

 @ test


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

 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ForgeHooksClient
 static int stencilBits = NUMBER0 ;
 public static void createDisplay ( ) throws LWJGLException
 {
 + ImageIO . setUseCache ( false ) ; SINGLE
 PixelFormat format = new PixelFormat ( ) . withDepthBits ( NUMBER1 ) ;
 try
 {

Disable ImageIO s File based cache should speed up texturepack loading stitching


<nb> public class SubsamplingLayer extends BaseLayer < org . deeplearning4j . nn . conf . layer
 isMax . muliColumnVector ( epsilon1d ) ;
 break ;
 case AVG :
 - SINGLE
 - SINGLE
 - col2d . addiRowVector ( epsilon1d ) ;
 + SINGLE
 + SINGLE
 + col2d . addiColumnVector ( epsilon1d ) ;
 break ;
 case NONE :
 return new Pair < > ( retGradient , epsilon ) ;


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

 - public interface ManagedPerformanceCounterMBean {
 -
 - @ managedoperation ( description = STRING0 )
 - void reset ( ) ;
 + public interface ManagedPerformanceCounterMBean extends ManagedCounterMBean {

 @ managedattribute ( description = STRING1 )
 long getExchangesCompleted ( ) throws Exception ;

ManagedPerformanceCounterMBean should extend ManagedCounterMBean


<nb> public class SoftWrapApplianceManager implements FoldingListener , DocumentListen
 return null ;
 }

 - int indent = NUMBER0 ;
 + int indentInColumns = NUMBER0 ;
 + int indentInPixels = myPainter . getMinDrawingWidth ( SoftWrapDrawingType . AFTER_SOFT_WRAP ) ;
 if ( myCustomIndentUsedLastTime ) {
 - indent = myCustomIndentValueUsedLastTime ;
 + indentInColumns = myCustomIndentValueUsedLastTime + lineData . indentInColumns ;
 + indentInPixels += lineData . indentInPixels + ( myCustomIndentValueUsedLastTime * spaceSize ) ;
 }
 SoftWrapImpl softWrap = new SoftWrapImpl (
 - new TextChangeImpl ( STRING0 + StringUtil . repeatSymbol ( STRING1 , lineData . indentInColumns + indent ) , softWrapOffset , softWrapOffset ) ,
 - lineData . indentInColumns + indent + NUMBER1 COMMENT ,
 - lineData . indentInPixels + ( indent * spaceSize ) + myPainter . getMinDrawingWidth ( SoftWrapDrawingType . AFTER_SOFT_WRAP )
 + new TextChangeImpl ( STRING0 + StringUtil . repeatSymbol ( STRING1 , indentInColumns ) , softWrapOffset , softWrapOffset ) ,
 + indentInColumns + NUMBER1 COMMENT ,
 + indentInPixels
 ) ;
 myStorage . storeOrReplace ( softWrap , true ) ;
 return softWrap ;


<nb> public abstract class FileSystem {
 COMMENT
 public abstract FSDataInputStream open ( Path f ) throws IOException ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public long getDefaultBlockSize ( ) {
 return NUMBER0 * NUMBER1 * NUMBER1 ; SINGLE
 }
 <nb> public final class DistributedFileSystem extends FileSystem {
 new org . apache . hadoop . fs . Path ( dst . toString ( ) ) ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + @ override
 + public long getDefaultBlockSize ( ) {
 +
 + return this . fs . getDefaultBlockSize ( ) ;
 + }
 }

Fixed problem with default block size in HDFS binding


<nb> public class CanvasView extends FrameLayout {
 if ( mExpanded ) {
 applyContentViewAlpha ( NUMBER0 ) ;
 }
 + else {
 + mContentView . setAlpha ( FLOAT0 ) ;
 + mContentView . setVisibility ( GONE ) ;
 + }
 mContentView . onCurrentContentViewChanged ( false ) ;
 }

 <nb> public class CanvasView extends FrameLayout {
 SINGLE

 SINGLE
 -
 mContentView = contentView ;
 if ( unhideNotification ) {
 return ;
 <nb> public class CanvasView extends FrameLayout {
 @ suppresswarnings ( STRING0 )
 @ subscribe
 public void onHideContentEvent ( MainController . HideContentEvent event ) {
 + mExpanded = false ;
 setContentView ( null , false ) ;
 }

Corrected views visibility on hide bubbles


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

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

Delete unused imports in HeaderAssertionTests