diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class TermSession { try { arg0 = argList . get ( NUMBER0 ) ; if ( ! ( new File ( arg0 ) ) . exists ( ) ) { + Log . e ( TermDebug . LOG_TAG , STRING0 + arg0 + STRING1 ) ; throw new FileNotFoundException ( arg0 ) ; } args = argList . toArray ( new String [ NUMBER1 ] ) ;
Log an error when user s default shell isn t found
<nb> public final class NettyResponseFuture < V > implements FutureImpl < V > { this . asyncHttpProvider = asyncHttpProvider ; if ( System . getProperty ( MAX_RETRY ) != null ) { - int i = Integer . valueOf ( System . getProperty ( MAX_RETRY ) ) ; - maxRetry = NUMBER0 ; + maxRetry = Integer . valueOf ( Syst...
Most embarassing commit I ever did wow
<nb> public class Vpn { public void onUserAdded ( int userHandle ) { SINGLE UserInfo user = UserManager . get ( mContext ) . getUserInfo ( userHandle ) ; - if ( user . isRestricted ( ) && user . restrictedProfileParentId == mUserHandle ) { + if ( user . isRestricted ( ) && user . restrictedProfileParentId == ...
Check VPN status when adding removing restricted profiles
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public class JmsListenerAnnotationBeanPostProcessor <nb> public interface JmsListenerConfigurer { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface JmsHandlerMethodFact...
Fix javadoc typo
<nb> public class DefaultPromise < T > implements Promise < T > { errorHandler . execute ( throwable ) ; super . complete ( ) ; } catch ( Throwable e ) { + e . addSuppressed ( throwable ) ; super . error ( e ) ; } }
Make exceptions thrown by promise onError suppress the original exception
<nb> public class HttpsConnectorFactory extends HttpConnectorFactory { final String [ ] cipherSuites = factory . getSupportedCipherSuites ( ) ; LOGGER . info ( STRING0 , Arrays . toString ( protocols ) ) ; LOGGER . info ( STRING1 , Arrays . toString ( cipherSuites ) ) ; + + if ( getSupportedProtocols ( ) != n...
Add configured protocols and cipher suites to log output
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CompileTimeConstan...
Add a test for suppressing CompileTimeConstant
<nb> public class WalletTest extends TestWithWallet { SINGLE assertEquals ( t2 . toString ( ) , NUMBER0 , t2 . getInputs ( ) . get ( NUMBER1 ) . getScriptSig ( ) . getChunks ( ) . size ( ) ) ; assertTrue ( t2 . getInputs ( ) . get ( NUMBER1 ) . getScriptSig ( ) . getChunks ( ) . get ( NUMBER1 ) . data . length > ...
Remove redundant logging
<nb> public class SeriesContract { public static Uri buildEpisodeWithShowUri ( String episodeId ) { return CONTENT_URI_WITHSHOW . buildUpon ( ) . appendPath ( episodeId ) . build ( ) ; } + + public static Uri buildEpisodeWithShowUri ( int episodeTvdbId ) { + return buildEpisodeWithShowUri ( String . valueOf...
Add uri constructor for int TVDb id
<nb> public final class BluetoothAdapter { } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Add comment of using same callback for start stop advertising
<nb> public class TestDateTimeUtils extends TestCase { } SINGLE + public void testGetZone_Zone ( ) { + assertEquals ( PARIS , DateTimeUtils . getZone ( PARIS ) ) ; + assertEquals ( LONDON , DateTimeUtils . getZone ( null ) ) ; + } + + SINGLE + public void testGetPeriodType_PeriodType ( ) { + asser...
Test new methods
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GitBlitWebApp e...
Overwrite created session locale with forced one
<nb> public class Observable < T > { COMMENT COMMENT public final < R > Observable < R > parallel ( Func1 < Observable < T > , Observable < R > > f ) { - SINGLE - SINGLE - return lift ( new OperatorParallel < T , R > ( f , Schedulers . newThread ( ) ) ) ; + return lift ( new OperatorParallel < T , R > ( f...
Restoring parallel to using Schedulers computation
<nb> public class StoreWAL extends StoreCached { } if ( hasUncommitedData ( ) ) { - LOG . warning ( STRING0 ) ; + LOG . warning ( STRING1 ) ; } wal . rollback ( ) ; SINGLE
Fix typo in warnimg
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT @ runwith ( DefaultServer . class ) @ ajpignore + @ ignore ( STRING0 ) public class SpnegoAuthenticationTestCase extends A...
Ignore all Spnego tests for now as they intermittently fail with Pproxy
<nb> public class CliClient SINGLE int childCount = ast . getChildCount ( ) ; assert ( childCount == NUMBER0 ) ; + String tableName = ast . getChild ( NUMBER1 ) . getText ( ) ; - + + if ( tableName == null ) { + css_ . out . println ( STRING0 ) ; + return ; + } + SINGLE Map < String , Map < ...
gracefully handle missing keyspace argument cli
<nb> public class MovieDetailsActivity extends BaseActivity { @ override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; + getMenu ( ) . setContentView ( R . layout . activity_singlepane_empty ) ; if ( getIntent ( ) . getExtras ( ) == null ) { finish ( ) ;...
Fix nav drawer for movie details too
<nb> public class XmppEndpoint extends DefaultEndpoint implements HeaderFilterStrateg private int connectionPollDelay = NUMBER0 ; @ uriparam private HeaderFilterStrategy headerFilterStrategy = new DefaultHeaderFilterStrategy ( ) ; + @ uriparam + private ConnectionConfiguration connectionConfig ; public Xm...
Allow ConnectionConfiguration to be be injected to endpoint during connection creation
<nb> public class CommandLineMain { + host + STRING0 + port ) ; } else { printLine ( STRING1 + host + STRING0 + port ) ; + disconnectController ( false ) ; } } catch ( UnknownHostException e ) { printLine ( STRING2 + host + STRING3 + e . getLocalizedMessage ( ) ) ;
reset the client and host port variables if connection failed otherwise the prompt will be misleading
<nb> public class MnemonicChooser extends JPanel { } private Color backgroundForMnemonic ( char c ) { - return isOccupied ( c ) ? LightColors . GREEN : LightColors . SLIGHTLY_GRAY ; + return isOccupied ( c ) ? LightColors . YELLOW : LightColors . SLIGHTLY_GRAY ; } private class MnemonicLabel extends JLa...
Mark occupied mnemonics with yellow rather than green
<nb> public class StaticLayout extends Layout { w += widths [ j - paraStart ] ; } - boolean isSpaceOrTab = c == CHAR_SPACE || c == CHAR_TAB ; + boolean isSpaceOrTab = c == CHAR_SPACE || c == CHAR_TAB || c == CHAR_ZWSP ; if ( w <= width || isSpaceOrTab ) { fitWidth = w ; <nb> public class StaticLayout ...
Make zero width space a line breaker
<nb> public class RandomShapeGenerator extends RandomGeoGenerator { xDivisible ( yRange . getMax ( ) * NUMBER0 e3 ) / NUMBER0 e3 ) ; } + COMMENT public static Rectangle xRandomRectangle ( Random r , Point nearP ) { - return xRandomRectangle ( r , nearP , ctx . getWorldBounds ( ) , false ) ; + return xRand...
TEST Reduce size of random shapes
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class FeedItem extends FeedComponent implements Comparable < FeedItem > { + public class FeedItem extends FeedComponent { private String title ; private String description ; private String link ; <nb> public class FeedItem extends FeedComponent ...
Removed unnecessary code
<nb> class CacheUpdateRunner { try { int threadsCount = Registry . intValue ( STRING0 ) ; if ( threadsCount <= NUMBER0 ) { - threadsCount = Math . min ( PROC_COUNT , NUMBER1 ) ; + threadsCount = Math . max ( NUMBER2 , Math . min ( PROC_COUNT - NUMBER2 , NUMBER1 ) ) ; } if ( threadsCount == NUMBER2 ) { R...
it improves IDE responsiveness noticeably
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT COMMENT COMMENT - COMMENT COMMENT public class CrashHandler implements UncaughtExceptionHandler { - public static final String TAG = STRING0 ; + public static String TAG = STRING0 ; String showMessage = STRING1 ; SINGLE
update some docs
<nb> public class FullscreenImageActivity extends BaseActivity { } } - COMMENT - COMMENT - COMMENT - @ override - public void onDetachedFromWindow ( ) { - SINGLE - mContentView . setImageDrawable ( null ) ; - mContentView = null ; - super . onDetachedFromWindow ( ) ; - } - @ override pub...
Drop unneeded cleanup in FullscreenImageActivity
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SSBasedInspection extends BaseJavaLocalInspectionTool { public void applyFix ( @ notnull Project project , @ notnull ProblemDescriptor descriptor ) ...
replace CodeInsightUtilBase prepareXXXForWrite usages with FileModificationService in core api
<nb> public class MotionGroup extends AbstractActionGroup { int line = EditorHelper . normalizeVisualLine ( editor , EditorHelper . getCurrentVisualLine ( editor ) + cntForward ) ; - return moveCaretToLineEnd ( editor , EditorHelper . visualLineToLogicalLine ( editor , line ) , allowPastEnd ) ; + if ( line <=...
Fixed moving cursor in empty file
<nb> public class viewStats extends Activity { if ( pullParser . getText ( ) . toString ( ) == STRING0 ) { numDataSet . add ( rowCount , NUMBER0 ) ; } else { - numDataSet . add ( rowCount , Integer . parseInt ( pullParser . getText ( ) . toString ( ) ) ) ; + int value = NUMBER0 ; + SINGLE + try { + valu...
added a catch around an integer parse to fix a rare f c
<nb> public class AdminConsolePlugin implements Plugin { XMPPServer . getInstance ( ) . getServerInfo ( ) . getName ( ) + STRING0 + port ) ; } else { - String msg = listening + STRING1 + + String msg = listening + STRING0 + System . getProperty ( STRING2 ) + STRING3 + XMPPServer . getInstance ( ) . getServe...
Use platform specific newlines
<nb> public class BookCollection extends AbstractBookCollection { ids . remove ( NUMBER0 ) ; } myDatabase . saveRecentBookIds ( ids ) ; + fireBookEvent ( BookEvent . CurrentBookChanged , book ) ; } private void setStatus ( Status status ) {
Added current book changing event
<nb> public class EditPostActivity extends SherlockActivity implements OnClickListene private boolean selectBlogForShareAction ( ) { mIsNew = true ; - + mLocalDraft = true ; + List < Map < String , Object > > accounts = WordPress . wpDB . getAccounts ( ) ; if ( accounts . size ( ) > NUMBER0 ) {
Set mLocalDraft when sharing content to the app so that the rich text editor is enabled
<nb> public class SingleUDPNettyServerBootstrapFactory extends ServiceSupport impleme SubnetUtils multicastSubnet = new SubnetUtils ( MULTICAST_SUBNET ) ; if ( multicastSubnet . getInfo ( ) . isInRange ( configuration . getHost ( ) ) ) { - ChannelFuture channelFuture = bootstrap . bind ( hostAddress ) ; + Cha...
Fixed udp multicast on windows
<nb> public class UserImpl extends PersistedImpl implements User { if ( fields . containsKey ( STARTPAGE ) ) { @ suppresswarnings ( STRING0 ) final Map < String , String > obj = ( Map < String , String > ) fields . get ( STARTPAGE ) ; - startpage . put ( STRING1 , obj . get ( STRING1 ) ) ; - startpage . put (...
Do not add null startpage type and id in response
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unused import
<nb> public final class Status { COMMENT COMMENT + COMMENT + COMMENT COMMENT public static Status fromThrowable ( Throwable t ) { for ( Throwable cause : Throwables . getCausalChain ( t ) ) { <nb> public interface StreamObserver < V > { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT...
Specify Status Exception is to be used in StreamObserver onError
<nb> final public class AndrolibResources { COMMENT if ( System . getProperty ( STRING0 ) . equals ( STRING1 ) ) { path = System . getProperty ( STRING2 ) + File . separatorChar + - STRING3 ; } + STRING4 ; } else { path = System . getProperty ( STRING2 ) + File . separatorChar + STRING5 + File . separat...
Runtime exec has problems dealing with spaces in arguments given
<nb> package NAMESPACE ; + import NAMESPACE ; + + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TestMenuItem implements MenuItem { public void click ( ) { if ( enabled && menuItemClickListener != null ) { menuItemClickListener . onMenuItemClick ( t...
Fixed bug in TestMenuItem click method
<nb> public class WebView extends AbsoluteLayout getContext ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; SINGLE - boolean zoom = mZoomManager . getScale ( ) < mZoomManager . getReadingLevelScale ( ) ; + boolean zoom = mZoomManager . getScale ( ) < mZoomManager . getDefaultScale ( ) ; if ( zoo...
Use the default scale for text input
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class YoutubeSearchEngine extends SearchEngine { COMMENT String url = STRING0 - + STRING1 + query + + STRING1 + URLEncoder . encode ( query , ...
fixed search error
<nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class GoogleJsMessageIdGenerator implements IdGenerator { String tcValue = sb . toString ( ) ; String projectScopedMeaning = - ( projectId != null ? (...
Interpret an empty projectId as no project id when assigning meaning attribute to messages in GoogleJsMessageIdGenerator
<nb> public class Vec extends Keyed < Vec > { private final long [ ] _domain ; CPTask ( long [ ] domain ) { _domain = domain ; } @ override public void map ( Chunk c , NewChunk nc ) { - for ( int i = NUMBER0 ; i < c . _len ; ++ i ) - if ( _domain == null ) + for ( int i = NUMBER0 ; i < c . _len ; ++ i ) { ...
add NA check
<nb> public class XActivityThread extends XHook { finish ( param ) ; param . setResult ( null ) ; } + } else if ( action . equals ( Intent . ACTION_PACKAGE_ADDED ) + || action . equals ( Intent . ACTION_PACKAGE_REPLACED ) + || action . equals ( Intent . ACTION_PACKAGE_RESTARTED ) + || action . equals ( In...
Handle packages changes
<nb> public class GrFieldImpl extends GrVariableBaseImpl < GrFieldStub > implements GrFi return originalField != null ? originalField : this ; } - public PsiElement getContext ( ) { - return getParent ( ) ; - } - @ nullable public Icon getIcon ( int flags ) { Icon superIcon = GroovyIcons . FIELD ; ...
remove meaningless getContext implementations
<nb> public class TestShardingDocsAndEdges extends AbstractServerClusterTest { } } } finally { + db . activateOnCurrentThread ( ) ; db . close ( ) ; } return resultSet ;
Fixed test case
<nb> import NAMESPACE ; COMMENT COMMENT public class SecureCameraLaunchManager { - SINGLE - private static final boolean DEBUG = true ; + private static final boolean DEBUG = false ; private static final String TAG = STRING0 ; SINGLE
Turned off debugging for launching secure camera
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unused import
<nb> public class ShellBolt implements IBolt { write = _pendingWrites . poll ( ) ; _process . writeBoltMsg ( write ) ; } - COMMENT - } catch ( InterruptedException e ) { - SINGLE - COMMENT } catch ( Throwable t ) { die ( t ) ; }
Remove unneeded comment
<nb> public abstract class AbstractInstrumentationMojo extends AbstractAndroidMojo public void testStarted ( TestIdentifier testIdentifier ) { - getLog ( ) . info ( INDENT + INDENT + STRING0 + testIdentifier . toString ( ) ) ; testRunCount ++ ; + getLog ( ) . info ( String . format ( STRING1 , INDENT , test...
showing current test count to make progress tracking easier
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
fixed cs issues
<nb> public class GrailsConsole { COMMENT COMMENT public String userInput ( String msg ) { + SINGLE + if ( ! msg . endsWith ( STRING0 ) && ! msg . endsWith ( STRING1 ) ) { + msg += STRING2 ; + } + lastMessage = STRING3 ; msg = isAnsiEnabled ( ) ? outputCategory ( ansi ( ) , STRING4 ) . fg ( DEFAULT ...
Add a space at the end of messages that expect user input GrailsConsole userInput
<nb> public class FinallyProcessor extends DelegateAsyncProcessor implements Traceabl private final Exception exception ; private final boolean fault ; - public FinallyAsyncCallback ( Exchange exchange , AsyncCallback callback , Exception exception , boolean fault ) { + FinallyAsyncCallback ( Exchange exchang...
Remove redundant modifier
<nb> public class WebBrowserServiceImpl extends WebBrowserService { @ override public boolean canOpenInBrowser ( @ notnull PsiElement psiElement ) { final PsiFile psiFile = psiElement instanceof PsiFile ? ( PsiFile ) psiElement : psiElement . getContainingFile ( ) ; - return psiFile != null && psiFile . getVirt...
fixed open in browser for local html files
<nb> abstract class BitmapHunter implements Runnable { if ( bitmap != null ) { stats . dispatchBitmapDecoded ( bitmap ) ; - if ( data . needsTransformation ( ) ) { + if ( data . needsTransformation ( ) || exifRotation != NUMBER0 ) { synchronized ( DECODE_LOCK ) { if ( data . needsMatrixTransform ( ) || ex...
fix bug which do not transform bitmap with exif rotation on default setting
<nb> public class MapActivityActions implements DialogProvider { } } ) . reg ( ) ; } - optionsMenuHelper . item ( routingHelper . isRouteCalculated ( ) ? R . string . show_route : R . string . get_directions ) + if ( ! routingHelper . isRouteBeingCalculated ( ) || routingHelper . isRouteCalculated ( ) ) { +...
Do not show navigation when the route is already being calculated
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DefaultMethodSecurityExpressionHandler extends AbstractSecurityExpr } public void setReturnObject ( Object returnObject ,...
Cast to interface instead of implementation
<nb> public class Joiner { } @ override public Joiner useForNull ( String nullText ) { - checkNotNull ( nullText ) ; SINGLE throw new UnsupportedOperationException ( STRING0 ) ; } <nb> public class Joiner { } @ override public Joiner useForNull ( String nullText ) { - checkNotNull ( nullText ) ;...
Remove checkNotNulls in MapJoiner that existed to satisfy NullPointerTester before it accepted UnsupportedOperationException
<nb> public class SlidingMenu extends RelativeLayout { case SLIDING_CONTENT : mActionbarOverlay = actionbarOverlay ; SINGLE - SINGLE - SINGLE - View content = activity . findViewById ( android . R . id . content ) ; - content . setFocusable ( true ) ; - ViewGroup contentParent = ( ViewGroup ) content . ...
Fixing actionbar overlay
<nb> public class TerrainGrid extends TerrainQuad { log . log ( Level . FINE , STRING0 , q . getName ( ) ) ; } else if ( gridTileLoader != null ) { q = gridTileLoader . getTerrainQuadAt ( quadCell ) ; - q . setMaterial ( material . clone ( ) ) ; + SINGLE + if ( q . getMaterial ( ) == null ) q . setMaterial ...
only clone the grid s material to child quad if it doesn t have a material of its own
<nb> public final class ParseDataset extends Job { subTasks = new UnzipAndParseLocalTask [ _keys . length ] ; setPendingCount ( subTasks . length ) ; int p = NUMBER0 ; + int j = NUMBER0 ; for ( int i = NUMBER0 ; i < _keys . length ; ++ i ) { - if ( p < ParseDataset . PLIMIT ) { - H2O . submitTask ( ( subT...
Udpated the mechanism to reduce the of parallel files being unzipped at the same time
<nb> public class ClusterModuleTests extends ModuleTestCase { public void testRegisterAllocationDeciderDuplicate ( ) { IllegalArgumentException e = expectThrows ( IllegalArgumentException . class , ( ) - > new ClusterModule ( Settings . EMPTY , clusterService , - Collections . singletonList ( new ClusterPlugin ...
Make generics explicit to please ECJ
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; public class NoJUnitDependenciesTest { @ test - @ ignore ( STRING0 ) public void pure_mockito_should_not_depend_JUnit___ByteBuddy ( ) throws ...
Reenabled dependency checker test after fixing build
<nb> public class NewAccountDialog } else if ( sourceButton . equals ( cancelButton ) ) { + newAccountDialog = null ; + this . dispose ( ) ; } }
Remove the static new dialog instance on cancel
<nb> abstract class ActorRefImpl < Message > implements ActorRef < Message > , SendPort < Mess @ override public void sendSync ( Message message ) throws SuspendExecution { - send ( message ) ; + try { + send ( message ) ; + } catch ( QueueCapacityExceededException e ) { + throwIn ( e ) ; + } } ...
Throw QCapExceededE into actor on sendSync
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class BackgroundHelper { <nb> public class BackgroundHelper { private Bitmap loadBitmap ( Activity activity , Object imageToken ) { if ( imageToken instanceof Integer ) { ...
Fix missing api on kitkat
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CodeFoldingManagerImpl extends CodeFoldingManager implements Projec public void mouseMoved ( EditorMouseEvent e ) { ...
Don t show folding hint if that makes other useful hint to close
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class PipelingBufferingStreamSinkConduit extends AbstractStreamSinkCondui COMMENT COMMENT public boolean flushPipelinedData ( ) throws IOExcepti...
Flush the pipelining buffer correctly
<nb> public abstract class ComponentStoreImpl implements IComponentStore { private < T > void commitPersistentComponent ( @ notnull final PersistentStateComponent < T > persistentStateComponent , @ notnull StateStorageManager . ExternalizationSession session ) { - Storage [ ] storageSpecs = getComponentStorageS...
compute storageSpecs only if need
<nb> public class Drawer { return this ; } + SINGLE + protected boolean mTranslucentStatusBar = true ; + + COMMENT + COMMENT + COMMENT + COMMENT + public Drawer withTranslucentStatusBar ( boolean translucentStatusBar ) { + this . mTranslucentStatusBar = translucentStatusBar ; + return this ; ...
add function to create the drawer for nonTranslucent activities too
<nb> public class AccountStatusPanel OperationSetAvatar avatarOpSet = protocolProvider . getOperationSet ( OperationSetAvatar . class ) ; - avatarOpSet . addAvatarListener ( this ) ; + if ( avatarOpSet != null ) + avatarOpSet . addAvatarListener ( this ) ; } else if ( evt . getNewState ( ) . equals ( Re...
Fixes a NullPointerException upon registering logging into a SIP account
<nb> public class PaddingAtmosphereInterceptor extends AtmosphereInterceptorAdapter { } try { - response . write ( padding , true ) . flushBuffer ( ) ; + response . write ( padding , true ) ; + + if ( response . resource ( ) . transport ( ) . equals ( TRANSPORT . STREAMING ) ) { + response . flushBuffer...
Do no flush for long polling
<nb> public class BasicRawTableOperations implements Callable < Boolean > { public static void main ( String [ ] args ) throws IllegalArgumentException { if ( args . length != NUMBER0 ) { - System . out . println ( STRING0 + Version . VERSION - + STRING1 - + STRING2 ) ; + System . out . println ( STRING3 ...
Resolve merge conflict
<nb> public class MapEntryDeserializer t = jp . nextToken ( ) ; if ( t != JsonToken . END_OBJECT ) { if ( t == JsonToken . FIELD_NAME ) { SINGLE - throw ctxt . mappingException ( STRING0 + jp . getCurrentName ( ) + STRING1 ) ; + throw ctxt . mappingException ( STRING2 + jp . getCurrentName ( ) + STRING1 ) ; ...
Add one more unit test for Map Entry handling
<nb> public class MockConnectionManager implements ConnectionManager { MockConnection conn = mapConnections . get ( address ) ; if ( live && ( conn == null || ! conn . isAlive ( ) ) ) { NodeEngineImpl nodeEngine = nodes . get ( address ) ; - if ( nodeEngine != null && nodeEngine . isRunning ( ) ) { + if ( nod...
Create mock connection if the node is not shut down
<nb> public final class ActivityThread { } } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void stopProfiling ( ) { + mProfiler . stopProfiling ( ) ; + } + static final void handleDumpHeap ( boolean managed , DumpHeapData dhd ) { if ( managed ) { try { <nb> publi...
Stop profiling on uncaught exception
<nb> public class FileInStream extends InStream { if ( mCurrentBlockInStream != null ) { mCurrentBlockInStream . close ( ) ; } - System . out . println ( pos + STRING0 ) ; mCurrentBlockInStream = BlockInStream . get ( FILE , READ_TYPE , mCurrentBlockIndex ) ; } - if ( mCurrentBlockInStream == null ) { -...
remove debugging info
<nb> public class SftpOperations implements RemoteFileOperations < ChannelSftp . LsEntry > return ; } - SINGLE - path = FileUtil . compactPath ( path ) ; + SINGLE + SINGLE + path = FileUtil . compactPath ( path , STRING0 ) ; SINGLE if ( ! endpoint . getConfiguration ( ) . isStepwise ( ) ) {
Fixed the regression by SftpProducerFileWithPathNoStepwiseTest
<nb> public abstract class Rule { COMMENT COMMENT - COMMENT COMMENT public int getFalsePositives ( ) { return - NUMBER0 ;
avoid compiler warning
<nb> public class ByteCodeViewerManager extends DockablePopupManager < ByteCodeViewerCo private static PsiClass getContainingClass ( PsiElement psiElement ) { PsiClass containingClass = PsiTreeUtil . getParentOfType ( psiElement , PsiClass . class , false ) ; + while ( containingClass instanceof PsiTypeParamete...
skip type parameters
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class ProviderTestCase2 < T extends ContentProvider > extends Andro private IsolatedContext mProviderContext ; private ...
Fix broken calendar tests
<nb> public class JsFacade implements Exportable { messenger . changeMyAvatar ( descriptor ) ; } + public void removeMyAvatar ( ) { + messenger . removeMyAvatar ( ) ; + } + public JsPromise editName ( final int uid , final String newName ) { return JsPromise . create ( new JsPromiseExecutor ( ) { @ ...
added removeMyAvatar and removeGroupAvatar methods
<nb> public class HandlerThread extends Thread { Looper . prepare ( ) ; synchronized ( this ) { mLooper = Looper . myLooper ( ) ; - Process . setThreadPriority ( mPriority ) ; notifyAll ( ) ; } + Process . setThreadPriority ( mPriority ) ; onLooperPrepared ( ) ; Looper . loop ( ) ; mTid = - NUMBER0 ...
Do setThreadPriority later so we can notify the waiting thread
<nb> public class ValueAnimator extends Animator implements AnimationHandler . Animatio COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT public long getCurrentPlayTime ( ) { - if ( ! mInitialized || ! mStarted ) { + if ( ! mInitialized || ( ! mStarted && ...
Fix ValueAnimator getCurrentPlayTime
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class StandaloneMesosWorkerStore implements MesosWorkerStore { @ override public List < Worker > recoverWorkers ( ) ...
hotfix remove Guava dependency from flink mesos
<nb> public class AndroidSystemServices { registeredServices . put ( STRING0 , STRING1 ) ; registeredServices . put ( STRING2 , STRING3 ) ; registeredServices . put ( STRING4 , STRING5 ) ; - registeredServices . put ( STRING6 , STRING7 ) ; + registeredServices . put ( STRING8 , STRING7 ) ; registeredService...
Fixed InputMethodManager typo in package name
<nb> public final class AnalyticsTracker { PUSH_NOTIFICATION_RECEIVED , SUPPORT_OPENED_HELPSHIFT_SCREEN , LOGIN_FAILED , - LOGIN_FAILED_TO_GUESS_XMLRPC + LOGIN_FAILED_TO_GUESS_XMLRPC , + PUSH_AUTHENTICATION_APPROVED , + PUSH_AUTHENTICATION_EXPIRED , + PUSH_AUTHENTICATION_FAILED , + PUSH_AUTHENTICATION...
Added new analytics properties for push authentication tracking
<nb> public class WeldTransactionServices implements TransactionServices , Service < Wel @ override public boolean isTransactionActive ( ) { try { - return ( injectedTransaction . getValue ( ) . getStatus ( ) & Status . STATUS_ACTIVE ) != NUMBER0 ; + final int status = injectedTransaction . getValue ( ) . get...
Fix bug in WeldTransactionServices
<nb> public interface Subscription { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public void cancel ( ) ; }
adjust Subscription cancel javadoc because cancel command does not have to be called asynchronously
<nb> public class VirtualMachineMetrics { final ThreadInfo [ ] threads = this . threads . dumpAllThreads ( true , true ) ; final PrintWriter writer = new PrintWriter ( out , true ) ; - for ( int ti = threads . length - NUMBER0 ; ti > NUMBER1 ; ti -- ) { + for ( int ti = threads . length - NUMBER0 ; ti >= NUMB...
Fix edge case in thread dump causing one thread to not be shown
<nb> public class CodeStyleManagerImpl extends CodeStyleManager { { return STRING0 ; } + PsiFile file = PsiDocumentManager . getInstance ( myProject ) . getPsiFile ( doc ) ; + if ( file == null ) return STRING0 ; + return getLineIndent ( file , offset ) ; }
handling absence of PsiFile in CodeStyleManager
<nb> import NAMESPACE ; metrics . markSemaphoreRejection ( ) ; logger . debug ( STRING0 ) ; SINGLE SINGLE - getFallbackOrThrowException ( HystrixEventType . SEMAPHORE_REJECTED , FailureType . REJECTED_SEMAPHORE_EXECUTION , STRING1 ) . unsafeSubscribe ( observer ) ; + getFallbackOrThrowException ( HystrixEvent...
Add call to onComplete hook in semaphore rejection path
<nb> public class TargetsCommand extends AbstractCommand { @ option ( name = STRING0 , usage = STRING1 + - STRING2 ) + STRING3 ) private boolean isDetectTestChanges ; @ option ( name = STRING4 ,
Fix typo in targets detect test changes option
<nb> public class TraverseOptions implements Cloneable { walkingOptions = new TraverseOptions ( ) ; walkingOptions . setArriveBy ( this . isArriveBy ( ) ) ; walkingOptions . maxWalkDistance = maxWalkDistance ; - walkingOptions . walkReluctance = FLOAT0 ; + + SINGLE + SINGLE + SINGLE + walkingOptions ....
better walk reluctance for bike trips
<nb> public abstract class Message { COMMENT private transient UnknownFieldMap unknownFields ; - COMMENT - private transient int cachedSerializedSize = - NUMBER0 ; + COMMENT + private transient boolean haveCachedSerializedSize ; + + COMMENT + private transient int cachedSerializedSize ; COMMENT ...
Fix a bug with caching the serialized size of a Message
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ;...
Fix flaky deadline test
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT COMMENT public class BlockBrokenEvent extends BlockEvent { + private Player player ; public BlockBrokenEvent ( Type type , Block block ) { super ( type , block ) ; } + + public Player getPlayer ( ) { + ret...
Added dummy getPlayer to BlockBrokenEvent and BlockPlacedEvent in order to get WorldEdit to compile
<nb> public class GuiceCamelContext extends DefaultCamelContext { @ override @ inject ( optional = true ) - public void setRoutes ( List < Route > routes ) { - super . setRoutes ( routes ) ; - } - - @ override - @ inject ( optional = true ) public void setRegistry ( Registry registry ) { super . s...
Removed the setRoutes method from GuiceCamelContext
<nb> public class MetaContactChatPanel chatWindow . getMainFrame ( ) . getContactList ( ) . addMetaContactListListener ( this ) ; + SINGLE + Iterator iter = metaContact . getContacts ( ) ; + while ( iter . hasNext ( ) ) + { + Contact contact = ( Contact ) iter . next ( ) ; + OperationSetPresence opsPr...
Fix display avatar in already opened windows if avatar changes after opening the window
<nb> COMMENT package NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class HttpDeploymentUploadUnitTestCase { SINGLE writeUploadRequest ( is , os ) ; SINGLE - assertEquals ( STRING0 , connection . getHeaderField ( STRING1 ) ) ; + assertEq...
Fix tests following move to undertow as the domain http server
<nb> public class TypeDeserializer { @ override public int hashCode ( ) { - int result = constructor != null ? constructor . hashCode ( ) : NUMBER0 ; - result = NUMBER1 * result + arguments . hashCode ( ) ; + int result = getConstructor ( ) . hashCode ( ) ; + result = NUMBER1 * result + getArguments ( ) ....
Deserialized type s hashCode should compute everything