diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class WindowManagerService extends IWindowManager . Stub mAccessibilityController . onWindowTransitionLocked ( win , transit ) ; } } - final boolean isAnimating = win . mWinAnimator . isAnimating ( ) ; + final boolean isAnimating = win . mWinAnimator . isAnimating ( ) + && ! win . mWinAnimator ....
Don t treat dummy animation as exit animation
<nb> public class MessageBusImpl implements MessageBus { for ( List < MessageBusConnectionImpl > topicSubscribers : mySubscribers . values ( ) ) { topicSubscribers . remove ( connection ) ; } - getRootBus ( ) . clearSubscriberCache ( ) ; if ( myDisposed ) return ; + getRootBus ( ) . clearSubscriberCache ( )...
don t clear cache for disposed MessageBus fix tests
<nb> class IQMUCRegisterHandler { public IQ handleIQ ( IQ packet ) { IQ reply = null ; SINGLE - MUCRoom room = mucServer . getChatRoom ( packet . getTo ( ) . getNode ( ) ) ; + MUCRoom room = null ; + String name = packet . getTo ( ) . getNode ( ) ; + if ( name != null ) { + room = mucServer . getChatRoo...
Fixed NPE when no room name was specified when registering with a room
<nb> public final class AnalyticsTracker { READER_ARTICLE_COMMENTED_ON , READER_ARTICLE_LIKED , READER_ARTICLE_OPENED , - READER_ARTICLE_REBLOGGED , READER_ARTICLE_UNLIKED , READER_BLOG_BLOCKED , READER_BLOG_FOLLOWED , <nb> public class AnalyticsTrackerMixpanel extends Tracker { instructions . setSupe...
Remove Reblog event
<nb> public class IndexShardTests extends ESSingleNodeTestCase { } COMMENT - private static abstract class RestoreOnlyRepository extends AbstractLifecycleComponent implements Repository { + private abstract static class RestoreOnlyRepository extends AbstractLifecycleComponent implements Repository { public ...
Fix checkstyle in test
<nb> public class PowerManager COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT public void setReferenceCounted ( boolean value )
Add javadoc saying that wake locks are ref counted by default
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; ...
SimpleStrategyTest extends CleanupHelper to avoid heisenbugs from other tests left overs
<nb> class CarNavigationBarController { String category = getPackageCategory ( packageName ) ; if ( mFacetCategoryMap . containsKey ( category ) ) { - int index = mFacetCategoryMap . get ( packageName ) ; + int index = mFacetCategoryMap . get ( category ) ; mFacetHasMultipleAppsCache . put ( index , facetHa...
Fix crash in CarNavigationBarController
<nb> public abstract class OwnedSynchronizer { return new LightweightThreadOwnedSynchronizer ( owner ) ; } + public abstract Object getOwner ( ) ; + public abstract void verifyOwner ( ) ; public abstract boolean isOwnerAlive ( ) ; <nb> public abstract class OwnedSynchronizer { } @ override + p...
added getOwner to OwnedSynchronizer
<nb> public class RoutesCompile extends SourceTask { COMMENT COMMENT COMMENT - SINGLE + @ input public boolean getInjectedRoutesGenerator ( ) { return injectedRoutesGenerator ; }
actually add Input this time
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public interface DelegateTask extends VariableScope { COMMENT String getEventName ( ) ; + + COMMENT + DelegationState getDelegationState ( ) ; COMMENT void addC...
Add getDelegationState in DelegateTask
<nb> public class RestRequestDispatcher { this . headSettings = filter ( settings , HeadSingleRestSetting . class ) ; this . headAllSettings = filter ( settings , HeadAllRestSetting . class ) ; this . allMatcher = by ( uri ( resourceRoot ( name ) ) ) ; - this . singleMatcher = Moco . match ( uri ( join ( resour...
improved single resource matcher for rest
<nb> public class AstyanaxStoreManager extends AbstractCassandraStoreManager { log . debug ( STRING0 , keySpaceName ) ; try { - Map < String , String > stratops = new HashMap < String , String > ( ) { { - put ( STRING1 , String . valueOf ( replicationFactor ) ) ; - } } ; + + Map < String , String > stra...
Avoid unnecessary serialVersionUID warning
<nb> public abstract class ContentProvider implements ComponentCallbacks2 { @ override public ParcelFileDescriptor openFile ( Uri uri , String mode ) throws FileNotFoundException { - if ( mode != null && mode . startsWith ( STRING0 ) ) enforceWritePermission ( uri ) ; + if ( mode != null && mode . indexOf ( S...
Tighten enforcement of file modes
<nb> public class APTCodeModelHelper { throw new IllegalStateException ( STRING0 ) ; } - public JDefinedClass createAnonymousRunnableClass ( EBeanHolder holder , JStatement block ) { - JCodeModel codeModel = holder . codeModel ( ) ; - JDefinedClass anonymousRunnableClass = codeModel . anonymousClass ( Runna...
Remove unused method
<nb> public class KafkaConsumer < K , V > implements Consumer < K , V > { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public KafkaConsumer ( Properties properties ) { this ( properties , null , null ) ;
Fix consumer constructor doc string
<nb> public class StandaloneDatabase < T > T executeJob ( Job < T > job ) throws Exception ; } - private static class StartupFailureException extends Exception + public static class StartupFailureException extends Exception { StartupFailureException ( Throwable cause ) {
Made exception public to allow reflective use
<nb> public class SetupBlog { Object [ ] params = { mUsername , mPassword } ; try { Object [ ] userBlogs = ( Object [ ] ) client . call ( STRING0 , params ) ; + if ( userBlogs == null ) { SINGLE + mErrorMsgId = R . string . xmlrpc_error ; + return null ; + } Arrays . sort ( userBlogs , Utils . BlogNameC...
fix a crash when server reply with truncated json message
<nb> public class ShowsActivity extends BaseTopShowsActivity implements CompatActionB } else if ( itemId == R . id . menu_fullupdate ) { SgSyncAdapter . requestSync ( this , - NUMBER0 ) ; fireTrackerEvent ( STRING0 ) ; - + return true ; } else if ( itemId == R . id . menu_updateart ) { fireTrackerEvent ...
Fix crash of poster task because we removed string resource
<nb> public class MessagingController implements Runnable public void synchronizeMailboxSynchronous ( final Account account , final String folder , final MessagingListener listener ) { COMMENT - COMMENT + COMMENT COMMENT - if ( folder . equals ( account . getOutboxFolderName ( ) ) ) - { - return ; -...
Unify our guard against syncing the outbox or errors folder
<nb> public final class ActivityThread { private native void dumpGraphicsInfo ( FileDescriptor fd ) ; private class ApplicationThread extends ApplicationThreadNative { - private static final String HEAP_COLUMN = STRING0 ; + private static final String HEAP_COLUMN = STRING1 ; private static final String ONE_...
Fix small formatting issue with dumpsys meminfo
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class HttpSession extends LocalClientSession { private void checkPollingInterval ( ) throws HttpBindException { long time = Syste...
Added debugging information and added hack to disable policy violation on too many polls
<nb> public interface CodeInsightTestFixture extends IdeaProjectTestFixture { void testRename ( String fileAfter , String newName ) throws Exception ; - Collection < UsageInfo > testFindUsages ( @ nonnls String . . . fileNames ) throws Exception ; + Collection < UsageInfo > testFindUsages ( @ testdatafile @ n...
test data discoverability remove redundant throws
<nb> public class CliMode { } public static void with ( List < String > args ) { - UpdateManager . getInstance ( ) . checkVersionConsole ( ) ; if ( args . size ( ) < NUMBER0 ) { System . err . println ( STRING0 + STRING1 + ERROR_MESSAGE ) ; return ; <nb> public class CliMode { case STRING2 : inspect...
Adds the update to the list of available params
<nb> public class BlogPreferencesActivity extends AppCompatActivity { ActionBar actionBar = getSupportActionBar ( ) ; if ( actionBar != null ) { actionBar . setDisplayOptions ( ActionBar . DISPLAY_SHOW_CUSTOM ) ; - actionBar . setElevation ( getResources ( ) . getDimension ( R . dimen . appbar_elevation ) ) ; ...
Removing non existant resource usage
<nb> public class GraphiteReporter implements Runnable { writer . flush ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; - writer . flush ( ) ; + try { + writer . flush ( ) ; + } catch ( IOException e1 ) { + e1 . printStackTrace ( ) ; + } } }
Catch those exceptions
<nb> COMMENT package NAMESPACE ; + COMMENT + COMMENT + COMMENT + @ deprecated public class RuntimeInterruptedException extends RuntimeException { public RuntimeInterruptedException ( InterruptedException cause ) { super ( cause ) ;
deprecate the unused class which has external usages
<nb> public class AnimatedRotateDrawable extends DrawableWrapper implements Animatabl throws XmlPullParserException , IOException { final TypedArray a = obtainAttributes ( r , theme , attrs , R . styleable . AnimatedRotateDrawable ) ; super . inflateWithAttributes ( r , parser , a , R . styleable . AnimatedRotate...
AnimatedRotateDrawable should inflate child elements
<nb> public class Histogram implements Metric , Quantized , Summarized { private void setMax ( long potentialMax ) { boolean done = false ; while ( ! done ) { - long currentMax = _max . get ( ) ; + final long currentMax = _max . get ( ) ; done = currentMax >= potentialMax || _max . compareAndSet ( currentMa...
Fix warnings in Histogram
<nb> public class LoadController FMLLog . severe ( STRING0 , oldState , desiredState ) ; StringBuilder sb = new StringBuilder ( ) ; printModStates ( sb ) ; - FMLLog . severe ( sb . toString ( ) ) ; + FMLLog . getLogger ( ) . severe ( sb . toString ( ) ) ; FMLLog . severe ( STRING1 ) ; for ( Entry < String...
Fix possible escape leakage
<nb> class ActivityStarter { SINGLE SINGLE mTargetStack . ensureActivitiesVisibleLocked ( null , NUMBER0 , ! PRESERVE_WINDOWS ) ; + SINGLE + SINGLE + mWindowManager . executeAppTransition ( ) ; } } else { mTargetStack . addRecentActivityLocked ( mStartActivity ) ;
Fixed bug with non focusable stack activity not displaying on start
<nb> public class MainToolBar extends SIPCommToolBar editorPane . paste ( ) ; + editorPane . requestFocus ( ) ; + } else if ( buttonText . equalsIgnoreCase ( STRING0 ) ) { if ( e . getSource ( ) instanceof SIPCommButton ) {
using the paste toolbar button in the msgwindow does not return focus to the write area
<nb> COMMENT COMMENT + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Move LZF files to the right folder
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AssetFileCommand extends MultiFileCommand { AssetFile asset = new AssetFile ( ) ; asset . load ( socket ) ; +...
Copy Unity version from bundles to asset files in old versions
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ExportPlotDesktop extends ExportPlot options , onClose ) . showModal ( ) ; } - else if ( ! BrowseCap . isCocoaDesktop ( ) ) + else { new CopyPlotToClipboardDeskt...
Revert use the web handler for plot export on the mac
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT final class BluetoothAdapterStateMachine extends StateMachine { private static final String TAG = STRING0 ;
Add more comments to the file header to explain the state diagram
<nb> public abstract class BaseNavDrawerActivity extends BaseActivity { mMenuDrawer . setOnDrawerStateChangeListener ( new OnDrawerStateChangeListener ( ) { @ override public void onDrawerStateChange ( int oldState , int newState ) { - SINGLE - if ( newState == MenuDrawer . STATE_CLOSED || newState == MenuDra...
Fix action items not always hiding when opening nav drawer
<nb> public class HtmlStaplerServlet extends HttpServlet { protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException { String bundleId = req . getParameter ( STRING0 ) ; File file = bundlesManager . lookupBundleFile ( bundleId ) ; + writeBundleFile ( resp ,...
added hook for writing bundle files
<nb> public final class StatusHints implements Parcelable { @ systemapi @ deprecated public StatusHints ( ComponentName packageName , CharSequence label , int iconResId , Bundle extras ) { - this ( label , Icon . createWithResource ( packageName . getPackageName ( ) , iconResId ) , extras ) ; + this ( label ,...
Fix in call UI crash on Nova devcies framework base
<nb> public class GrReferenceExpressionImpl extends GrReferenceElementImpl implements private static String getValueText ( PsiElement stringNameElement ) { final String text = stringNameElement . getText ( ) ; + if ( text . length ( ) < NUMBER0 ) { + return STRING0 ; + } + final char firstChar = text . ...
accept non well formed literal Groovy reference expressions
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OTPConfigurator { } GraphBuilder osmBuilder = new OpenStreetMapGraphBuilderImpl ( osmProviders ) ; graphBuilder . addGrap...
add OSM pruning module to standalone graph builder
<nb> public abstract class Service } catch ( Exception e ) { - return null ; } catch ( LinkageError e ) { - return null ; } } return null ;
Fixed a subtle bug I happened to introduce last night
<nb> public final class CachingPrincipalAttributesRepository implements PrincipalAttr return this . duration ; } - public Duration getDuration ( ) { - return this . duration ; - } - COMMENT COMMENT COMMENT
fixed cs issue
<nb> class TabbedPane extends JTabbedPane { return panel ; } - private CodePanel getCodePanel ( int index ) { - Component component = getComponent ( index ) ; - if ( component instanceof CodePanel ) { - return ( CodePanel ) component ; - } - return null ; - } - CodePanel getSelectedCodePanel ( )...
removed unused private method getCodePanel int
<nb> class KeyguardStatusViewManager implements SecurityMessageDisplay { mHandler . removeCallbacks ( mClearSecurityMessageRunnable ) ; mHandler . postDelayed ( mClearSecurityMessageRunnable , SECURITY_MESSAGE_DURATION ) ; } + mSecurityMessage . announceForAccessibility ( mSecurityMessage . getText ( ) ) ; } ...
Announce changes to the keyguard security message for accessibility
<nb> public class FileFilter { STRING0 , SINGLE STRING1 , SINGLE STRING2 , SINGLE - STRING3 , SINGLE } ; static void fillIgnoreResultList ( ) {
Remove LayoutTest http tests xmlhttprequest simple cross origin progress events html from skipped list
<nb> public final class ActivityThread { case ON_NEW_ACTIVITY_OPTIONS : Pair < IBinder , ActivityOptions > pair = ( Pair < IBinder , ActivityOptions > ) msg . obj ; onNewActivityOptions ( pair . first , pair . second ) ; + break ; case STOP_MEDIA_PLAYING : handleStopMediaPlaying ( ( IBinder ) msg . obj ) ; ...
add missing break for Activity options
<nb> import NAMESPACE ; COMMENT public class FileConsumeDoneFileIssueTest extends ContextTestSupport { + @ override + protected void setUp ( ) throws Exception { + deleteDirectory ( STRING0 ) ; + + super . setUp ( ) ; + } + public void testFileConsumeDoneFileIssue ( ) throws Exception { NotifyBu...
Fixed the failed test on the CI Server
<nb> public abstract class FieldSpec { return STRING ; } - if ( type == Type . DOUBLE || type == Type . FLOAT ) { + if ( type == Type . FLOAT ) { return FLOAT ; } + if ( type == Type . DOUBLE ) { + return DOUBLE ; + } + throw new UnsupportedOperationException ( type . toString ( ) ) ; }
Fixing the valueOf a dateType for double type
<nb> public class TaskListMetadataChangesHappened extends ChangesHappened < TaskListMet changes . remove ( i ) ; removedChanges . add ( oe . getId ( ) ) ; } + } else if ( TaskListMetadata . TASK_IDS . name . equals ( column ) ) { + if ( TaskListMetadata . taskIdsIsEmpty ( oe . getValue ( TaskListMetadataOutst...
Don t send empty task ids changes
<nb> public class Twitter extends TwitterOAuthSupportBaseImpl TwitterException { ensureAuthorizationEnabled ( ) ; return StatusJSONImpl . createStatusList ( http . get ( conf . getRestBaseURL ( ) - + STRING0 + + STRING1 + conf . isIncludeEntitiesEnabled ( ) + STRING2 + conf . isIncludeRTsEnabled ( ) , auth ...
Fixed a pubg in getFriendsTimeline that could prevent you from getting status entities
<nb> public class WidgetGroup extends Group implements Layout { } public void pack ( ) { - float newWidth = getPrefWidth ( ) ; - float newHeight = getPrefHeight ( ) ; - if ( newWidth != getWidth ( ) || newHeight != getHeight ( ) ) { - setWidth ( newWidth ) ; - setHeight ( newHeight ) ; - invalidate ( ...
Fixed pack by packing twice
<nb> public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper . final float daX = Math . abs ( ev . getX ( ) - mFirstX ) ; final float daY = Math . abs ( dY ) ; if ( ! mConsuming && daX < daY && daY > mTouchSlop ) { + releaseAndClose ( ) ; if ( dY > NUMBER0 ) { if ( DEBUG_EDGE_SWIPE )...
Adapted HUN behavior when swiping vertically
<nb> public abstract class Context { COMMENT COMMENT COMMENT + @ systemapi public boolean bindServiceAsUser ( Intent service , ServiceConnection conn , int flags , UserHandle user ) { throw new RuntimeException ( STRING0 ) ; }
Annotate bindServiceAsUser with SystemApi
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WebServerIntegrationTest { public LocalAlluxioClust...
Remove dead code
<nb> public abstract class SimpleExpression < T > extends DslExpression < T > { return Expressions . booleanOperation ( Ops . NOT_IN , mixin , right ) ; } - + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public final BooleanExpression notIn ( Expression < ? extends T > . . . right )...
Add missing notIn Expression
<nb> public abstract class SkyframeExecutor implements WalkableGraphFactory { return tsgm ; } - COMMENT - COMMENT - COMMENT + COMMENT public EvaluationResult < ActionLookupValue > configureTargets ( List < ConfiguredTargetKey > values , List < AspectKey > aspectKeys , boolean keepGoing ) throws Inte...
Preserve specified order of keys when analyzing configured targets
<nb> public class AsyncHttpRequest { mHeaders = new RequestHeaders ( uri , mRawHeaders ) ; mRawHeaders . setStatusLine ( getRequestLine ( ) . toString ( ) ) ; mHeaders . setHost ( uri . getHost ( ) ) ; - mHeaders . setUserAgent ( getDefaultUserAgent ( ) ) ; + if ( mHeaders . getUserAgent ( ) == null ) + mHe...
Fix bug where user agent configuration gets clobberered
<nb> public class BitUtil { return ( value & mask ) == mask ; } public static boolean isSet ( final int value , final int mask ) { - assertOneBitMask ( mask ) ; + assertOneBitMask ( toUnsignedLong ( mask ) ) ; return ( value & mask ) == mask ; } public static boolean isSet ( long flags , long mask ) { ...
correctly handle negative int masks
<nb> class Clicker { try { inst . sendPointerSync ( event ) ; } catch ( SecurityException e ) { - Assert . assertTrue ( STRING0 , false ) ; + Assert . assertTrue ( STRING1 , false ) ; } eventTime = SystemClock . uptimeMillis ( ) ; event = MotionEvent . obtain ( downTime , eventTime , MotionEvent . ACTIO...
Updated the assert message in clickLongOnScreen
<nb> import NAMESPACE ; @ allargsconstructor public class FaviconFetcher { + private static List < String > ICON_MIMETYPE_BLACKLIST = Arrays . asList ( STRING0 , STRING1 ) ; private static long MIN_ICON_LENGTH = NUMBER0 ; private static long MAX_ICON_LENGTH = NUMBER1 ; private static int TIMEOUT = NUMBER2...
remove unused list
<nb> public abstract class JBListTable { COMMENT COMMENT public boolean doAnimationStep ( long currentTime ) { - if ( myTable . getRowCount ( ) >= myRow ) return true ; + if ( myRow >= myTable . getRowCount ( ) ) return true ; int currentRowHeight = myTable . getRowHeight ( myRow ) ; int resizeAbs = ( i...
restore row animation
<nb> public class TransferTable implements Serializable { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT - public int getTransferTime ( Stop fromStop , Stop toStop , Trip fromTrip , Trip toTrip , boolean boarding ) { + public int getTransferTime...
Changed parameter boarding to forwardInTime in method
<nb> public final class BlockMaster extends MasterBase Iterator < MasterWorkerInfo > iter = mWorkers . iterator ( ) ; while ( iter . hasNext ( ) ) { MasterWorkerInfo worker = iter . next ( ) ; - if ( CommonUtils . getCurrentMs ( ) - worker . getLastUpdatedTimeMs ( ) > masterWorkerTimeoutMs ) { + final long la...
Fixed code style in Blockmaster
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class JetDummyClassFileViewProvider extends UserDataHolderBase implements FileViewProvider { + class JetDummyClassFileViewProvider extends UserDataHolderBase implements FileViewProvider { private String myText ; private final PsiManager myManager ; ...
Made JetDummyClassFileViewProvider package private
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SwipeDismissListViewTouchListener implements View . OnTouchListener { pendingDismiss . view . setLayoutParams ( lp ) ; } ...
cancel new swipes after onDismiss is called
<nb> class ServletComponentRegisteringPostProcessor private ClassPathScanningCandidateComponentProvider createComponentProvider ( ) { ClassPathScanningCandidateComponentProvider componentProvider = new ClassPathScanningCandidateComponentProvider ( false ) ; + componentProvider . setEnvironment ( this . applicat...
Fix ClassPathScanningCandidateComponentProvider init
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fixing imports in CommandExecutionPerfTest
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , COMMENT COMMENT public void getOutsets ( Rect outOutsetRect ) { - outOutsetRect . set ( mAttachInfo . mOutsets ) ; + if ( mAttachInfo != null ) { + outOutsetRect . set ( mAttachInfo . mOutsets ) ; + } else { + outOutsetRect . ...
Fix NPE when requesting outsets for detached view
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class JmsMessageEndpointFactory extends AbstractMessageEndpointFactory { COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT @ suppresswarnings ( STRING0 ) <nb> COMMENT ...
Fix minor javadoc typos
<nb> class RealWordCorpusEvaluator { void run ( File dir ) throws IOException { File [ ] files = dir . listFiles ( ) ; - SINGLE + if ( files == null ) { + throw new RuntimeException ( STRING0 + dir ) ; + } for ( File file : files ) { if ( ! file . getName ( ) . endsWith ( STRING1 ) ) { System . out ...
improve error handling
<nb> public class EurekaConfigBasedInstanceInfoProvider implements Provider < InstanceI defaultAddress = config . getHostName ( false ) ; } + SINGLE + if ( defaultAddress == null || defaultAddress . isEmpty ( ) ) { + defaultAddress = config . getIpAddress ( ) ; + } + builder . setNamespace ( config . ...
add a fail safe
<nb> public class HandleSlaveConnection extends ConnectionJob if ( logToSend . read ( buffer ) <= NUMBER0 ) { releaseWriteBuffer ( ) ; + logToSend . close ( ) ; if ( nextLogVersion != - NUMBER1 ) { logToSend = master . getLog ( xaDsName , nextLogVersion ) ;
Fixed bug master did not close logical log after reading it
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Fix missing license header
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public interface CheckstyleReports extends ReportContainer < SingleFileReport > {
Fix a typo in docs
<nb> public class Utils { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT public static boolean isAllowedLargeDataConnection ( Context context , boolean showOfflineToast ) { boolean isConnected ; <nb> public class Utils { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Add isConnected helper to utils can show help toast
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - public class EqOperator extends CmpOperator { + public class EqOperator extends CmpOperator implements Scalar < Boolean > { public static final String NAME = STRING0 ; <nb> public class...
eq operator implements scalar
<nb> public class ShadowBundle { } @ implementation + public void putInt ( String key , int value ) { + map . put ( key , value ) ; + } + + @ implementation public long getLong ( String key ) { Object value = map . get ( key ) ; return value == null ? NUMBER0 : ( Long ) value ; } + + @ imple...
Implement getInt and putInt
<nb> public class MiniThumbFile { r . write ( data ) ; r . seek ( pos ) ; r . writeByte ( NUMBER0 ) ; SINGLE - mChannel . force ( true ) ; } } catch ( IOException ex ) { Log . e ( TAG , STRING0
Remove fflush when storing thumbanil to sdcard
<nb> import static NAMESPACE public class DefaultClassAnalysisCache extends MinimalPersistentCache < byte [ ] , ClassAnalysis > implements ClassAnalysisCache { public DefaultClassAnalysisCache ( CacheRepository cacheRepository ) { - SINGLE super ( cacheRepository , STRING0 , BYTE_ARRAY_SERIALIZER , new ClassA...
Avoided one of the TODOs for now maybe
<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 ; <nb> public class ReactorServerHttpRequest extends A...
force retain on incoming bytebuf content
<nb> public final class BluetoothEventManager { Log . e ( TAG , STRING0 ) ; return ; } - int errorMsg = R . string . bluetooth_pairing_error_message ; CachedBluetoothDevice cachedDevice = mDeviceManager . findDevice ( device ) ; + if ( cachedDevice == null ) { + Log . e ( TAG , STRING1 ) ; + return ; ...
Add a missing check for null pointer
<nb> public class StatusBarHeaderView extends RelativeLayout implements View . OnClickL final boolean showingDetail = detail != null ; transition ( mClock , ! showingDetail ) ; transition ( mDateGroup , ! showingDetail ) ; + transition ( mAlarmStatus , ! showingDetail ) ; transition ( mQsDetailHeader , showin...
Make alarm invisible when going to detail in QS
<nb> public class PeerGroup { synchronized ( PeerGroup . this ) { running = false ; shutdownPeerDiscovery ( ) ; - synchronized ( channelFutures . values ( ) ) { + synchronized ( channelFutures ) { for ( ChannelFuture future : channelFutures . values ( ) ) { future . getChannel ( ) . close ( ) ; }
Fix incorrect synchronization on map values
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT @ deprecated public class GitTask { <nb> public class GitTask { COMMENT COMMENT COMMENT + @ suppresswarnings ( STRING0 ) public GitTaskResult execute...
Clarify the deprecation method remove the method which is not used in plugins
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> import NAMESPACE ; public class ColumnNameCache { public static final float LOAD_FACTOR = FLOAT0 ; - private final Map columnNameToIndexCache ; + private f...
ColumnName cache now uses a map which supports multithreaded access
<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 ; i...
Supporting distributed storage by OHashIndexFactory
<nb> public class ComponentDao extends BaseDao < ComponentMapper , ComponentDto , String > return mapper ( session ) . selectByUuid ( uuid ) ; } - @ checkfornull public ComponentDto getByUuid ( DbSession session , String uuid ) { ComponentDto componentDto = getNullableByUuid ( session , uuid ) ; if ( comp...
Fix quality flaw
<nb> public class Node { return new JoinRequest ( Packet . VERSION , buildInfo . getBuildNumber ( ) , address , localMember . getUuid ( ) , localMember . isLiteMember ( ) , createConfigCheck ( ) , credentials , - config . getMemberAttributeConfig ( ) . getAttributes ( ) ) ; + localMember . getAttributes ( ) )...
fixed small member attribute bug
<nb> public class RendererRegistry { public final static String WINTER_SKI_RENDER = STRING0 ; SINGLE public final static String NAUTICAL_RENDER = STRING1 ; SINGLE public final static String TOPO_RENDER = STRING2 ; SINGLE + public final static String CITYVIEW_RENDER = STRING3 ; SINGLE private RenderingRulesS...
Add City view rendering style to renderer registry
<nb> public final class EncryptedMapDecorator implements Map < String , String > { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public EncryptedMapDecorator ( final Map < String , String > decoratedMap , final String hashAlgorithm , final byte [ ] salt , final String secretKeyAlgorithm , final Ke...
fixed cs issue
<nb> public final class LineageMasterTest { Lists . newArrayList ( new TachyonURI ( STRING0 ) ) , mJob ) ; mLineageMaster . createLineage ( Lists . newArrayList ( new TachyonURI ( STRING0 ) ) , Lists . newArrayList ( new TachyonURI ( STRING1 ) ) , mJob ) ; + Mockito . when ( mFileSystemMaster . getPath ( Mockit...
Fix lineage master test
<nb> public class NinjaBootstrap { injector = initInjector ( ) ; } catch ( Exception e ) { throw new RuntimeException ( STRING0 , e ) ; - } finally { - long injectorStartupTime = System . currentTimeMillis ( ) - startTime ; - logger . info ( STRING1 + injectorStartupTime + STRING2 ) ; } - + + long i...
Move startup time stat outside of boostrap injector
<nb> public class JsrWebSocketServer07Test { Assert . assertTrue ( c . isOpen ( ) ) ; ( ( UndertowSession ) session ) . forceClose ( ) ; Assert . assertEquals ( STRING0 , ProgramaticErrorEndpoint . getMessage ( ) ) ; - Assert . assertFalse ( c . isOpen ( ) ) ; } <nb> public class AnnotatedEndpointTest {...
Fix race in new web socket test
<nb> public class EventLoop implements AutoCloseable , Runnable if ( key . isReadable ( ) ) { handleReadable ( key ) ; + iter . remove ( ) ; } - - iter . remove ( ) ; } } }
changed remove to only be done if FD is readable
<nb> public class TempBlockMetaTest { tachyonConf . set ( STRING0 , mTestDirPath ) ; tachyonConf . set ( STRING1 , STRING2 ) ; tachyonConf . set ( Constants . WORKER_DATA_FOLDER , STRING3 ) ; - + StorageTier tier = StorageTier . newStorageTier ( tachyonConf , NUMBER0 COMMENT ) ; StorageDir dir = tier . ge...
Fix formatting bug
<nb> public class ADBlockUtils { buffer = new byte [ ADBlockUtils . BUFFER_TO_READ ] ; int n = - NUMBER0 ; int totalReadSize = NUMBER1 ; - while ( ( n = inputStream . read ( buffer ) ) != - NUMBER0 ) - { - outputStream . write ( buffer , NUMBER1 , n ) ; - totalReadSize += n ; + try { + while ( ( n = i...
Fixed crash in download adblock files
<nb> public class Server { return webUrl ; } + public String getType ( ) { + return STRING0 ; + } + COMMENT COMMENT COMMENT
Adding a human readable name to the Server interface
<nb> public class SQLiteLibraryLoaderTest { @ test public void shouldRewriteExistingLibraryIfThereAreChanges ( ) throws Exception { - SQLiteLibraryLoader . copy ( new ByteArrayInputStream ( STRING0 . getBytes ( ) ) , new FileOutputStream ( loader . getNativeLibraryPath ( ) ) ) ; + loader . getNativeLibraryPat...
Fix flaky test
<nb> import NAMESPACE ; import NAMESPACE ; public class FilePathChangesTreeList extends ChangesTreeList < FilePath > { - private final Project myProject ; public FilePathChangesTreeList ( @ notnull Project project , @ notnull List < FilePath > originalFiles , boolean showCheckboxes , boolean highlightProb...
vcs reuse parent protected field