diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class LookupImpl extends LightweightHint implements LookupEx , Disposable LookupElement oldSelected = mySelectionTouched ? ( LookupElement ) myList . getSelectedValue ( ) : null ; String oldInvariant = mySelectionInvariant ; + boolean selectionVisible = myList . getFirstVisibleIndex ( ) <= myList . ...
try to preserve completion list selection visibility
<nb> final class BigLongArray extends AbstractBigArray implements LongArray { @ override public void fill ( long fromIndex , long toIndex , long value ) { Preconditions . checkArgument ( fromIndex <= toIndex ) ; + if ( fromIndex == toIndex ) { + return ; SINGLE + } final int fromPage = pageIndex ( fromInd...
Fix BigLongArray fill to account for an empty range
<nb> public class AbstractQueueVisitor { COMMENT COMMENT COMMENT - private Throwable unhandled = null ; + private volatile Throwable unhandled = null ; COMMENT COMMENT <nb> public class AbstractQueueVisitor { private final boolean ownThreadPool ; COMMENT - COMMENT + COMMENT + COMMENT + C...
Fix very minor concurrency issue in AQV
<nb> public abstract class AbstractHistogram extends AbstractHistogramBase implements SINGLE COMMENT - COMMENT + COMMENT COMMENT int leadingZeroCountBase ; int subBucketHalfCountMagnitude ;
Remove trailing period
<nb> public final class JavassistProxyFactory } catch ( Exception e ) { + LoggerFactory . getLogger ( JavassistProxyFactory . class ) . error ( STRING0 , e ) ; throw new RuntimeException ( e ) ; } }
Add a exception log for JavassistProxyFactory static initiaiization
<nb> public class JavaLanguagePlugin implements Plugin < Project > { PlatformJavaCompile compile = ( PlatformJavaCompile ) task ; JavaSourceSet javaSourceSet = ( JavaSourceSet ) sourceSet ; JvmBinarySpec binary = ( JvmBinarySpec ) binarySpec ; + + SINGLE + SINGLE GradleInternal gradle = ( GradleInternal )...
Add comment about usage of internal APIs
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public final class JavaPluginLoader implements PluginLoader { jar . close ( ) ; } catch ( IOException ex ) { throw new InvalidPluginException ( ex ) ; + } catch ( YAMLExcept...
Catch YAML exceptions as InvalidPluginExceptions
<nb> public interface World extends PluginMessageRecipient , Metadatable { COMMENT COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - public Biome getBiome ( int x , int z ) ; + Biome getBiome ( int x , int z ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Bleeding Add APIs for editing biome data
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class GitLogComponent extends AbstractProjectComponent { myUiC...
Refresh the log on external events
<nb> public class PluginDownloaderTest { assertThat ( new File ( downloadDir , STRING0 ) ) . doesNotExist ( ) ; } + COMMENT + COMMENT + COMMENT @ test - public void download_from_url_not_finishing_by_jar_extension ( ) throws Exception { + public void download_from_redirect_url ( ) throws Exception { ...
Add some doc
<nb> public class TreeChangeImpl implements TreeChange { optimizedResult = myLastOffsetInNewTree ; myLastNode = node ; - myLastOffsetInNewTree = optimizedResult ; if ( ! ourDoChecks ) return optimizedResult ; } }
removed unnecessary field assignment
<nb> public class MulticastProcessor extends ServiceSupport implements AsyncProcessor } } catch ( Throwable e ) { SINGLE - subExchange . setException ( new CamelExchangeException ( STRING0 + aggregated . get ( ) , subExchange , e ) ) ; + CamelExchangeException cex = new CamelExchangeException ( STRING0 + aggr...
Added a debug log covering for instance a runtime exception thrown from a custom aggregation strategy
<nb> public class TestJacksonCodec catch ( OutOfMemoryError exc ) { SINGLE - assertTrue ( exc . getMessage ( ) . contains ( STRING0 ) ) ; + assertFalse ( exc . getMessage ( ) . contains ( STRING1 ) ) ; } try <nb> public class TestJacksonCodec catch ( OutOfMemoryError exc ) { SINGLE - assertTru...
Fix OutOfMemoryException exception message being checked for in TestJacksonCodec to be less specific to address test failure
<nb> public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker { CDMALTEPhone mCdmaLtePhone ; private ServiceState mLteSS ; SINGLE + private boolean mNeedToRegForSimLoaded = true ; public CdmaLteServiceStateTracker ( CDMALTEPhone phone ) { super ( phone ) ; <nb> public class CdmaLteService...
Fix leak in SIM ready registrants
<nb> public class OsMoTracker implements OsMoReactor { if ( loc . hasAltitude ( ) ) { cmd . append ( STRING0 ) . append ( ( int ) loc . getAltitude ( ) ) ; } - if ( loc . hasSpeed ( ) ) { + if ( loc . hasSpeed ( ) && ( int ) ( loc . getSpeed ( ) * NUMBER0 ) != NUMBER1 ) { cmd . append ( STRING1 ) . append (...
Fixed OsMo location data format
<nb> public class ImportCollector extends ErrorReportingASTVisitor { } public String getImportFileName ( ) { - SINGLE - if ( Options . usePackageDirectories ( ) || javaFileName . startsWith ( STRING0 ) ) { + SINGLE + SINGLE + if ( Options . usePackageDirectories ( ) || javaFileName . startsWith ( STRING...
Added junit headers to list of imports that always use package directories
<nb> public class FileDownloader implements Runnable { if ( downloadFile ( url , dest , progressMonitor ) ) { libFile = dest ; } + } catch ( FileNotFoundException e ) { + Base . showWarning ( STRING0 , + STRING1 , null ) ; } catch ( IOException e ) { Base . showWarning ( STRING0 , STRING2
Better warning message for when error occurs downloading file
<nb> COMMENT COMMENT COMMENT - SINGLE package NAMESPACE ; import NAMESPACE ;
Removes invalid comment
<nb> public class FrameworkNetworkSecurityPolicy extends libcore . net . NetworkSecurityP public boolean isCleartextTrafficPermitted ( String hostname ) { return isCleartextTrafficPermitted ( ) ; } + + @ override + public boolean isCertificateTransparencyVerificationRequired ( String hostname ) { + return...
Add stub isCTVerificationRequired methods
<nb> public abstract class HttpMessageDecoder extends ReplayingDecoder < HttpMessageDec } } - protected boolean isContentAlwaysEmpty ( HttpMessage msg ) { if ( msg instanceof HttpResponse ) { HttpResponse res = ( HttpResponse ) msg ;
Removed an unnecessary empty line
<nb> public class CppCompletionManager implements CompletionManager public void onPaste ( PasteEvent event ) { hideCompletionPopup ( ) ; + if ( rCompletionManager_ != null ) + rCompletionManager_ . onPaste ( event ) ; } public CppCompletionManager ( DocDisplay docDisplay ,
ensure paste events forwarded to RCompletionManager
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
remove unused import
<nb> class PacketReader { break ; } connectionIDLock . wait ( waitTime ) ; - waitTime -= System . currentTimeMillis ( ) - start ; + long now = System . currentTimeMillis ( ) ; + waitTime -= now - start ; + start = now ; } } } <nb> public class XMPPConnection { break ; } roster . wait ( waitT...
Improved packet timeout logic
<nb> public abstract class MenuTitleController { streetName = STRING0 ; } if ( ! Algorithms . isEmpty ( ref ) ) { - streetName += STRING1 + ref ; + if ( ! Algorithms . isEmpty ( streetName ) ) { + streetName += STRING1 ; + } + streetName += ref ; } streetStr = streetName ; if ( ! Algorithms . isEm...
Fix small issue
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ObjectSpace { int methodClassID = IntSerializer . get ( buffer , true ) ; Class methodClass = kryo . getRegisteredClass ( methodClassID ) . ge...
Handle invalid method index for RMI
<nb> class ComboContentLayout extends ContentLayout { @ override public void showContentPopup ( ListPopup listPopup ) { - listPopup . setMinimumSize ( new Dimension ( myComboLabel . getPreferredSize ( ) . width , NUMBER0 ) ) ; + listPopup . setMinimumSize ( new Dimension ( myComboLabel . getSize ( ) . width ,...
use actual size of combo label for popup minimum size
<nb> public class FailingJobITCase { private RecordWriter < FailingJobRecord > recordWriter ; + private volatile boolean isCanceled = false ; + COMMENT COMMENT COMMENT <nb> public class FailingJobITCase { throw new RuntimeException ( STRING0 + getEnvironment ( ) . getTaskName ( ) + STRING1 + getIn...
Fixed bug in FailingJobITCase
<nb> public class RequestCreator { } Request finalData = picasso . transformRequest ( data . build ( ) ) ; - String key = Utils . createKey ( finalData ) ; + String key = createKey ( finalData ) ; Action action = new GetAction ( picasso , finalData , skipMemoryCache , key ) ; return forRequest ( picasso...
Remove prefix Utils
<nb> public class ScalaLanguagePlugin implements Plugin < Project > { compile . setDescription ( description ) ; compile . setDestinationDir ( single ( assembly . getClassDirectories ( ) ) ) ; - File analysisFile = new File ( compile . getTemporaryDir ( ) , String . format ( STRING0 , compile . getName ( ) ) ) ...
Don t create build directory just by applying the Play plugin
<nb> import NAMESPACE ; COMMENT @ publicapi public interface KeyValueStore { + + COMMENT + COMMENT + COMMENT + final class KeyValueStoreFactory { + private static KeyValueStore sKeyValueStore = null ; + + private KeyValueStoreFactory ( ) { } SINGLE + + COMMENT + COMMENT + COMMENT + publi...
Add factory method for KeyValueStore
<nb> class HgCommandAuthenticator { public boolean promptForAuthentication ( Project project , String proposedLogin , String uri , String path ) { GetPasswordRunnable runnable = new GetPasswordRunnable ( project , proposedLogin , uri , path , myForceAuthorization ) ; - SINGLE - SINGLE ApplicationManager . g...
hg remove obsolete comment
<nb> public class GridLayout extends ViewGroup { int col = NUMBER0 ; for ( int i = NUMBER0 , N = getChildCount ( ) ; i < N ; i ++ ) { View c = getChildAt ( i ) ; - if ( isGone ( c ) ) continue ; LayoutParams lp = getLayoutParams1 ( c ) ; final Spec colSpec = lp . columnSpec ; <nb> public class GridLayou...
GridLayout should maintain static indices for gone views
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JsonProcessingExceptionMapper implements ExceptionMapper < JsonProces @ override public Response toResponse ( JsonProcessingException excep...
Bubble up JSON generation errors
<nb> public class ImageViewAware implements ImageAware { } if ( width <= NUMBER0 && params != null ) width = params . width ; SINGLE if ( width <= NUMBER0 ) width = getImageViewFieldValue ( imageView , STRING0 ) ; SINGLE - L . w ( STRING1 + width ) ; return width ; } return NUMBER0 ; <nb> public class I...
removed debug logs from ImageViewAware
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - COMMENT + COMMENT private static final String WORKER_THREAD_NAME_PREFIX = STRING0 ; private static final NewThreadScheduler . RxThreadFactory WORKER_THREAD_FACTORY = new NewThreadScheduler . RxThreadFactory ( WORKER_THREAD_NAME_PREFIX ) ; ...
Declare Scheduler classes in CachedThreadScheduler as final
<nb> public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker { if ( operatorNumeric == null ) { phone . setSystemProperty ( TelephonyProperties . PROPERTY_OPERATOR_ISO_COUNTRY , STRING0 ) ; + mGotCountryCode = false ; } else { String isoCountryCode = STRING0 ; try { <nb> public class Cdm...
Set mGotCountryCode properly
<nb> public class SelectorTest { @ test public void selectSupplementaryCharacter ( ) { String s = new String ( Character . toChars ( NUMBER0 ) ) ; - Document doc = Jsoup . parse ( STRING0 + s + STRING1 + s + STRING2 ) ; + Document doc = Jsoup . parse ( STRING0 + s + STRING1 + s + STRING3 + s + STRING4 ) ; a...
added a containsOwn test
<nb> public class Stage extends InputAdapter implements Disposable { if ( type == ApplicationType . Desktop || type == ApplicationType . Applet || type == ApplicationType . WebGL ) mouseOverActor = fireEnterAndExit ( mouseOverActor , mouseScreenX , mouseScreenY , - NUMBER0 ) ; - SINGLE root . act ( delta ) ; ...
Removed old comment
<nb> public class SelectorKernel extends AbstractKernel SINGLE for ( NioEndpoint p : endpoints . values ( ) ) { SINGLE - if ( ! filter . apply ( p ) ) + if ( filter != null && ! filter . apply ( p ) ) continue ; SINGLE
Fixed an NPE in the filter code oops
<nb> import NAMESPACE ; public class GreedyAllocatorTest extends BaseAllocatorTest { COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; public class MaxFreeAllocatorTest extends BaseAllocatorTest { COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> impo...
Incorporated PR comments
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AndroidMessenger extends im . actor . core . Messenger { modules . getAppStateModule ( ) . getAppStateVM ( ) . getGlobalCou...
Fix bad refactoring
<nb> public final class DexFileFactory { ZipEntry zipEntry = zipFile . getEntry ( STRING0 ) ; if ( zipEntry == null ) { - throw new ExceptionWithContext ( STRING1 , dexFile . getName ( ) ) ; + throw new NoClassesDexException ( STRING1 , dexFile . getName ( ) ) ; } long fileLength = zipEntry . getSize ( ) ...
Throw a NoClassesDexException for an apk jar zip with no classes dex
<nb> public class MavenModelConverter { List < Plugin > plugins = build . getPlugins ( ) ; if ( plugins != null ) { for ( Plugin each : plugins ) { - String key = each . getGroupId ( ) + STRING0 + each . getArtifactId ( ) ; result . add ( convertPlugin ( false , each ) ) ; } }
Remove dead code
<nb> public class DRFTest2 extends TestUtil { static final long [ ] [ ] a ( long [ ] . . . arr ) { return arr ; } SINGLE - @ test public void testAirlines ( ) throws Throwable { + COMMENT new DRFTest ( ) . basicDRF ( SINGLE SINGLE
Turn off accidental test
<nb> public final class InputMethodManager { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Add a comment for setAdditionalInputMethodSubtypes
<nb> public class CppConfiguration extends BuildConfiguration . Fragment { } private static final PathFragment SYSROOT_FRAGMENT = new PathFragment ( STRING0 ) ; + private static final PathFragment WORKSPACE_FRAGMENT = new PathFragment ( STRING1 ) ; COMMENT COMMENT <nb> public class CppConfiguration exte...
Allow relative CxxBuiltinDirectories not just under crosstool or sysroot
<nb> public class Main { CommandLineUtils . doDiffToChangeLog ( changeLogFile , database , createDatabaseFromCommandParams ( commandParams ) ) ; return ; } else if ( STRING0 . equalsIgnoreCase ( command ) ) { - CommandLineUtils . doGenerateChangeLog ( changeLogFile , database , defaultSchemaName , StringUtils ....
NPE in generateChangeLog with diffTypes data
<nb> public class CoreActivator implements BundleActivator { private static final String VERSION_FILE_NAME = STRING0 ; - private static final String VERSION_URL = STRING1 ; + private static final String VERSION_URL = STRING2 ; COMMENT
updated version uri
<nb> public class ResumableAsyncHandler implements AsyncHandler < Response > { public static interface ResumableProcessor { COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public void put ( String key , long transferredBytes ) ; COMMENT COMMENT COMMENT - COMMENT ...
Don t hurt my eyes
<nb> public class EndpointWebMvcChildContextConfiguration { @ value ( STRING0 ) private String errorPath = STRING1 ; - @ autowired ( required = false ) - private List < EndpointHandlerMappingCustomizer > mappingCustomizers ; - @ configuration protected static class ServerCustomization implements Embed...
Remove dead code
<nb> public class FileTransfer extends Plugin { mimeType = getArgument ( args , NUMBER0 , STRING0 ) ; JSONObject params = args . optJSONObject ( NUMBER1 ) ; boolean trustEveryone = args . optBoolean ( NUMBER2 ) ; - boolean chunkedMode = args . optBoolean ( NUMBER3 ) ; + boolean chunkedMode = args . optBoolean...
Fixing a bug with File Upload on Android where Chunked mode isn t used by default
<nb> COMMENT 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> ...
fixed bug on LET clause because current wasn t set
<nb> public class Observable < T > { } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT @ experimental public final Observable < ...
remove Beta section as it s been moved from Beta to Experimental status
<nb> public class PsiCapturedWildcardType extends PsiType . Stub { @ override public boolean isValid ( ) { - return myExistential . isValid ( ) ; + return myExistential . isValid ( ) && myContext . isValid ( ) ; } @ override
make sure captured wildcard invalidated on context invalidation
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Realm { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMEN...
Don t use p in javadoc
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; public class OilPopulate { <nb> public class OilPopulate { return ; } - boolean ...
Added BiomeDictionary support to Oil gen
<nb> public class SharedMemoryArraysRunOnGpu implements Kernel { int [ ] localInputArray = inputArray [ blockIdxx ] [ threadIdxx ] ; int [ ] localOutputArray = outputArray [ blockIdxx ] [ threadIdxx ] ; - RootbeerGpu . createSharedIntArray ( threadIdxx , subArrayLength ) ; - RootbeerGpu . syncthreads ( ) ; ...
temporarily removing prototype of shared memory arrays
<nb> public final class RequestUtil { COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - public static String URLDecode ( byte [ ] bytes , String enc ) { - return URLDecode ( bytes , enc , false ) ; - } - - C...
Remove unused code
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ByteBuddyAgent { COMMENT COMMENT COMMENT - public static void agentmain ( String agentArguments , Instrumentation instrumentation ) { + public static void age...
Added additional documentation to the Byte Buddy agent
<nb> public abstract class AbstractTransferOperation extends Operation { TransferManager actionFileTransferManager = TransferManagerFactory . build ( config ) + . withFeature ( ReadAfterWriteConsistent . class ) . withFeature ( Retriable . class ) . asDefault ( ) ; <nb> public class ReadAfterWriteConsis...
ActionFileHandler also needs the ReadAfterWriteConsistent feature
<nb> public class OsMoTracker implements OsMoReactor { } public String getSessionURL ( ) { - if ( ! isEnabledTracker ( ) ) { + if ( ! isEnabledTracker ( ) || sessionURL == null ) { return null ; } return OsMoService . TRACK_URL + sessionURL ;
Fix osmo tracker
<nb> public class TodoTxtTouch extends SherlockListActivity implements } SINGLE SINGLE - updateDrawerList ( ) ; + updateNavigationDrawer ( ) ; } } ; registerReceiver ( m_broadcastReceiver , intentFilter ) ; <nb> public class TodoTxtTouch extends SherlockListActivity implements m_drawerLayout = ( Dra...
Rename updateDrawerList method to more appropriate
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; public class CucumberFeature { private final String uri ; <nb> public class CucumberFeature { if ( cucumberFeatures . isEmpty ( ) ) { throw new CucumberException ( String . format ( STRING0 , fe...
Fix indeterministic file ordering by sorting features alphabetically based upon their uri
<nb> public class List < T > extends Widget implements Cullable { } void touchDown ( float y ) { - int index = ( int ) ( ( getHeight ( ) - y ) / itemHeight ) ; + float height = getHeight ( ) ; + if ( style . background != null ) { + height -= style . background . getTopHeight ( ) + style . background . ge...
Fixed List touchDown
<nb> public class GradleImplDepsRelocatedJarCreator implements RelocatedJarCreator { try { tmpFile = File . createTempFile ( outputJar . getName ( ) , STRING0 ) ; + tmpFile . deleteOnExit ( ) ; } catch ( IOException e ) { throw UncheckedException . throwAsUncheckedException ( e ) ; }
Delete tmp file when JVM terminates
<nb> public class OsmAndLocationProvider implements SensorEventListener { loc . setSpeed ( startLocation . getSpeed ( ) ) ; loc . setAltitude ( startLocation . getAltitude ( ) ) ; loc . setTime ( System . currentTimeMillis ( ) ) ; - float meters = ( System . currentTimeMillis ( ) - startLocation . getTime ( ) )...
Fix simulation location
<nb> public class UnindexedFilesUpdater implements CacheUpdater { @ override public void updatingDone ( ) { if ( myFinishedUpdate . compareAndSet ( false , true ) ) { + IndexingStamp . flushCache ( null ) ; myIndex . filesUpdateFinished ( ) ; LOG . info ( STRING0 + ( System . currentTimeMillis ( ) - myStart...
flush remaining indexing stamps once we finished indexed files updating
<nb> public class ForgeHooks ItemStack stack = player . inventory . getCurrentItem ( ) ; if ( stack == null ) { - return false ; + return player . canHarvestBlock ( block ) ; } List info = ( List ) toolClasses . get ( stack . itemID ) ; if ( info == null ) { - return stack . canHarvestBlock ( bloc...
Edits enable use of EntityPlayer canHarvestBlock for PlayerAPI when the ToolClass has no rules for the block
<nb> public class ContainerManagerImpl extends CompositeService implements ContainerId containerID = launchContext . getContainerId ( ) ; authorizeRequest ( containerID , launchContext ) ; - LOG . info ( STRING0 + request ) ; + LOG . info ( STRING1 + launchContext . getContainerId ( ) + + STRING2 + launchCo...
Removed some logs
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT ...
Renamed writable space to writable bytes to avoid ambiguity
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + SINGLE class InputValidTryResourcesIndent { SINGLE
forcing a commit
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; - public class AtLeastXNumberOfInvocationsCheckerTest { + public class AtLeastXNumberOfInvocationsCheckerTest extends ...
In order to fix the build and keep PMD happy
<nb> public class ORole extends ODocumentWrapper { public boolean allow ( final String iResource , final int iCRUDOperation ) { SINGLE - Byte access = rules . get ( iResource ) ; + final Byte access = rules . get ( iResource ) ; if ( access != null ) { - byte mask = ( byte ) iCRUDOperation ; + final byt...
Improved run time costs of check security
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public final class QueryCommand implements BlazeCommand { PrintStream output = new PrintStream ( runtime . getReporter ( ) . getOutErr ( ) . getOutputStream ( ) ) ; try { QueryOutputU...
Add back mistakenly deleted interrupt handling code
<nb> public abstract class BaseStatusBar extends SystemUI implements } protected boolean shouldInterrupt ( StatusBarNotification sbn ) { + if ( mNotificationData . shouldFilterOut ( sbn ) ) { + if ( DEBUG ) { + Log . d ( TAG , STRING0 + sbn . getKey ( ) + STRING1 ) ; + } + return false ; + } + Not...
Suppress HUNs from non profile users
<nb> public class PhotoViewAttacher implements IPhotoView , View . OnTouchListener , Vers SINGLE imageView . setOnTouchListener ( null ) ; + + SINGLE + cancelFling ( ) ; } if ( null != mGestureDetector ) {
the posted fling runnable may also be executed when it shouldn t
<nb> public class Main System . exit ( NUMBER0 ) ; } - if ( arguments . operationCommand . equals ( STRING0 ) ) + if ( ! arguments . operationCommand . equals ( STRING0 ) ) { SINGLE Logger root = ( Logger ) LoggerFactory . getLogger ( Logger . ROOT_LOGGER_NAME ) ;
Fixed run not logging to console
<nb> static class Action implements Runnable { if ( changed ) action . agent . notifyWatches ( ) ; } - catch ( Exception e ) + catch ( Throwable e ) { SINGLE action . agent . errors = RT . cons ( e , action . agent . errors ) ;
handle all Throwables during agent actions
<nb> public class NetworkUtils { public native static int bindSocketToNetwork ( int socketfd , int netId ) ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static boolean protectFromVpn ( FileDescriptor fd ) { + return protectFromVpn ( fd . getInt$ ( ) ) ; + } + + COMMENT COMMENT C...
Add a protectFromVpn method that takes a FileDescriptor
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class NodeImpl implements Node { COMMENT COMMENT COMMENT - DocumentImpl document ; + @ weak DocumentImpl document ; NodeImpl ( DocumentImpl document ) { this . ...
Fix a leak by making NodeImpl document Weak
<nb> package NAMESPACE ; import NAMESPACE ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT - COMMENT - COMMENT COMMENT public interface ServletContainerInitializer { ...
Populate the SCI Javadoc
<nb> public class MasterClient extends CommunicationProtocol implements Master , Chann { msgLog . logMessage ( STRING0 , true ) ; channelPool . close ( true ) ; + executor . shutdownNow ( ) ; } }
Also closes the executor containing the connections
<nb> public abstract class AbstractOperationSetTelephonyConferencing < boolean needsPartial = false ; boolean hasDifference = false ; - if ( from . getEntity ( ) != to . getEntity ( ) + if ( ! from . getEntity ( ) . equals ( to . getEntity ( ) ) || from . getUserCount ( ) != to . getUserCount ( ) ) { ha...
Fix comparison of strings
<nb> public class FastAdapterDialog < Item extends IItem > extends AlertDialog { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public FastAdapterDialog < Item > withNegativeButton ( @ stringres int textRes ) { + return withButton ( BUTTON_NEGATIVE , textRes , null ) ; + } + + C...
The negative button without an listener is closing the dialog on click
<nb> public class HBaseStoreManager extends DistributedStoreManager implements KeyCol public static final String TABLE_NAME_DEFAULT = STRING0 ; public static final String SHORT_CF_NAMES_KEY = STRING1 ; - public static final boolean SHORT_CF_NAMES_DEFAULT = true ; + public static final boolean SHORT_CF_NAMES_D...
Disable HBase short CF names
<nb> public class MetaDataStore extends CommonAbstractStore < MetaDataRecord , NoStoreHea public void setLastTransactionCommitTimestamp ( long timestamp ) { - setRecord ( Position . LAST_TRANSACTION_COMMIT_TIMESTAMP , timestamp ) ; - TransactionId transactionId = highestCommittedTransaction . get ( ) ; - hi...
Prevent word tearing and inconsistent last committed transaction timestamp state in MetaDataStore
<nb> public class FileBasedIndex implements ApplicationComponent { } public @ nullable ProjectIndexableFilesFilter projectIndexableFiles ( Project project ) { - if ( project == null || HeavyProcessLatch . INSTANCE . isRunning ( ) ) return null ; + if ( project == null ) return null ; SoftReference < Proje...
use project file filtering more often
<nb> import NAMESPACE ; @ method ( selector = STRING0 ) public static native CABasicAnimation create ( String path ) ; + @ method ( selector = STRING1 ) + public static native CABasicAnimation create ( ) ; COMMENT COMMENT <nb> import NAMESPACE ; @ method ( selector = STRING0 ) public static native...
the create methods in classed derived from CAAnimation should return reference
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class NewDirectoryProjectDialog extends DialogWrapper { new LocationNameFieldsBinding ( project , myLocationField , myProjectNameTextField , getBaseDir ( ) ) ; - final DirectoryProjectGenerator [ ] generators = Extensions . getEx...
hide JS project generators from PyCharm s new directory project dialog
<nb> public class PyUtil { } public static boolean isPackage ( @ notnull PsiFile file ) { - return turnInitIntoDir ( file ) != null ; + return PyNames . INIT_DOT_PY . equals ( file . getName ( ) ) ; } @ nullable
Fixed isPackage check for module files
<nb> public class BookmarksAction extends AnAction implements DumbAware , MasterDetail . setActionsGroup ( actions ) . setList ( list ) . setDetailView ( new DetailViewImpl ( project ) ) + . setCloseOnEnter ( false ) . setDelegate ( this ) . createMasterDetailPopup ( ) ; editDescriptionAction . setPopup (...
Don t close bookmarks popup after row selection click
<nb> public class RecyclerView extends ViewGroup { if ( velocity > NUMBER0 ) { duration = NUMBER1 * Math . round ( NUMBER2 * Math . abs ( distance / velocity ) ) ; } else { - duration = ( int ) ( ( ( ( float ) absDx / containerSize ) + NUMBER3 ) * NUMBER4 ) ; + float absDelta = ( float ) ( horizontal ? absDx ...
Fix bug in smoothScrollBy duration when moving vertically
<nb> public static void main ( String [ ] args ) throws Exception { e . printStackTrace ( ) ; SINGLE } - System . exit ( NUMBER0 ) ; + SINGLE } }
removed System exit call from Script
<nb> public class ContainerUtilTest extends TestCase { assertSame ( EmptyIterator . getInstance ( ) , iterator ) ; } + public void testIdenticalItemsInLockFreeCOW ( ) { + List < String > list = ContainerUtil . createLockFreeCopyOnWriteList ( Arrays . asList ( STRING0 , STRING1 ) ) ; + list . add ( STRING0 )...
added test on LockFreeCopyOnWriteArrayList
<nb> class TcpConnection { } public boolean isTimedOut ( long time ) { - return socketChannel != null && lastReadTime > NUMBER0 && time - lastReadTime > timeoutMillis ; + return socketChannel != null && timeoutMillis > NUMBER0 && time - lastReadTime > timeoutMillis ; } }
Fixed zero timeout
<nb> public class FSRecords implements Disposable , Forceable { public void dispose ( ) { synchronized ( lock ) { try { - DbConnection . force ( ) ; DbConnection . closeFiles ( ) ; } catch ( IOException e ) { <nb> public class FSRecords implements Disposable , Forceable { } } } - } + } <nb> ...
Hopefully fixed a EOFException finding VirtualFile attribute value
<nb> public class BreakpointsPanel extends AbstractPanel { breakpointsTable . getColumnModel ( ) . getColumn ( NUMBER0 ) . setPreferredWidth ( restoreColumnWidth ( BRK_TABLE , NUMBER1 ) ) ; breakpointsTable . getColumnModel ( ) . getColumn ( NUMBER0 ) . addPropertyChangeListener ( new ColumnResizedListener ( BRK_...
Restored the correct loading of column width of BreakpointsPanel
<nb> public abstract class ZLFile { } public static ZLFile createFileByUrl ( String url ) { - System . err . println ( STRING0 + url ) ; if ( url == null || ! url . startsWith ( STRING1 ) ) { return null ; }
removed debug printing
<nb> public class RolesResource extends RestResource { @ apioperation ( value = STRING0 ) public void delete ( @ apiparam ( name = STRING1 , required = true ) @ pathparam ( STRING1 ) String name ) throws NotFoundException { checkPermission ( RestPermissions . ROLES_DELETE , name ) ; - + SINGLE if ( roleServ...
add todo for unassigning users
<nb> public class SampleLiquibaseApplicationTests { @ test public void testDefaultSettings ( ) throws Exception { try { - SampleLiquibaseApplication . main ( new String [ NUMBER0 ] ) ; + SampleLiquibaseApplication . main ( new String [ ] { STRING0 } ) ; } catch ( IllegalStateException ex ) { if ( server...
Use a random HTTP port when running SampleLiquibaseApplicationTests