diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class FolderMessageList extends ExpandableListActivity { MessageInfoHolder message = ( MessageInfoHolder ) mAdapter . getChild ( group , item ) ; switch ( keyCode ) { case KeyEvent . KEYCODE_DEL : { onDelete ( message ) ; return true ; } + case KeyEvent . KEYCODE_D : { onDelete ( message ) ; return ...
Add a D keybinding to the FolderMessageList
<nb> public class DRFTest extends TestUtil { parms . _seed = NUMBER0 ; parms . _min_rows = NUMBER1 ; parms . _max_depth = NUMBER2 ; - parms . _ntrees = NUMBER3 ; + parms . _ntrees = NUMBER4 ; parms . _mtries = Math . max ( NUMBER1 , ( int ) ( col_sample_rate * ( tfr . numCols ( ) - NUMBER1 ) ) ) ; parms ....
Speed up testColSamplingPerTree in DRF JUnits
<nb> public class AppInitializer implements IProgress { app . getSettings ( ) . SHOW_DASHBOARD_ON_START . set ( true ) ; app . getSettings ( ) . SHOW_DASHBOARD_ON_MAP_SCREEN . set ( true ) ; app . getSettings ( ) . SHOW_CARD_TO_CHOOSE_DRAWER . set ( true ) ; + startPrefs . edit ( ) . putInt ( VERSION_INSTALLED_...
Fix confirmation dashboard drawer
<nb> public class ResolveElementCache { @ nullable @ override public Result < MemoizedFunctionToNotNull < JetElement , BindingContext > > compute ( ) { - LazyResolveStorageManager manager = ResolveElementCache . this . resolveSession . getStorageManager ( ) ; + ResolveSession resolveSession = ResolveElementCa...
Invalidate ResolveElementCache on exceptions from storage manager
<nb> public class TestSentence implements SequenceModel { COMMENT void printUnknown ( int numSent , PrintFile pfu ) { NumberFormat nf = new DecimalFormat ( STRING0 ) ; - int numTags = maxentTagger . tags . getSize ( ) ; + int numTags = maxentTagger . numTags ( ) ; double [ ] [ ] [ ] probabilities = new doub...
Remove some direct access to TTags from MaxentTagger
<nb> public class MapBuilder < K , V > { return this . map ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ deprecated public ImmutableMap < K , V > immutableMap ( ) { SINGLE return ImmutableMap . < K , V > builder ( ) . putAll ( map ) . build ( ) ;
Deprecate MapBuilder immutableMap
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import static NAMESPACE ; ...
Fixed Checkstyle issues
<nb> COMMENT package NAMESPACE ; + import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - - import static NAMESPACE ; COMMENT COMMENT COMMENT <nb> public class JmsConfigur...
Allowed customization of TTL when receiveTimeout set
<nb> class JsDocTokenStream { } private static boolean isJSFormatChar ( int c ) { - return c > NUMBER0 && Character . getType ( ( char ) c ) == Character . FORMAT ; + return c > NUMBER0 && Character . getType ( c ) == Character . FORMAT ; } COMMENT
Remove unnecessary cast from int to char
<nb> public class NFAContext { COMMENT public boolean equals ( Object o ) { NFAContext other = ( ( NFAContext ) o ) ; + if ( this . cachedHashCode != other . cachedHashCode ) { + return false ; SINGLE + } if ( this == other ) return true ; SINGLE
added cached hashcode check to equals
<nb> public class DefaultBroadcaster implements Broadcaster { return null ; } SINGLE - synchronized ( resources ) { - resources . remove ( r ) ; + boolean removed = resources . remove ( r ) ; + if ( removed ) { SINGLE if ( resources . isEmpty ( ) ) { notifyEmptyListener ( ) ;
Remove another sync block
<nb> class NioSocketChannel extends AbstractChannel } final void setConnected ( ) { - assert state == ST_OPEN || state == ST_BOUND : STRING0 + state ; - state = ST_CONNECTED ; + if ( state != ST_CLOSED ) { + state = ST_CONNECTED ; + } } @ override
Fixed an assertion error where NioSocketChannel setConnected is called on a closed channel
<nb> public class TokenSet { return mySet . contains ( t ) ; } - private static class TokenHashingStrategy implements TObjectHashingStrategy < IElementType > { - public static TokenHashingStrategy INSTANCE = new TokenHashingStrategy ( ) ; + private static final class TokenHashingStrategy implements TObjectH...
made class final optimization hint
<nb> final class DefaultChannelHandlerContext extends DefaultAttributeMap implements } } } else { - executor . execute ( new Runnable ( ) { - @ override - public void run ( ) { - fireExceptionCaught ( cause ) ; + try { + executor . execute ( new Runnable ( ) { + @ override + public void run ( ) { ...
Log the cause of exceptionCaught event when failed to notify
<nb> public abstract class MediaplayerActivity extends CastEnabledActivity implements if ( butPlaybackSpeed == null ) { return ; } - if ( controller == null ) { + SINGLE + if ( controller == null || ! ( this instanceof AudioplayerActivity ) ) { butPlaybackSpeed . setVisibility ( View . GONE ) ; return ;...
hide playback speed button when casting upon button update
<nb> public class SpringFactory implements ObjectFactory { @ override public void start ( ) { if ( stepClassWithSpringContext == null ) { - throw new CucumberException ( STRING0 + - STRING1 + - STRING2 ) ; + throw new CucumberException ( STRING3 + + STRING4 + stepClasses . toString ( ) ) ; } testCon...
Improve error message when no spring annotation class is found
<nb> public class ActionToolbarImpl extends JPanel implements ActionToolbar { public static void updateAllToolbarsImmediately ( ) { for ( ActionToolbarImpl toolbar : new ArrayList < ActionToolbarImpl > ( ourToolbars ) ) { toolbar . updateActionsImmediately ( ) ; + for ( Component c : toolbar . getComponents ( )...
action toolbars don t update action shortcuts in tooltips
<nb> public class IdleResourceInterceptor extends AtmosphereInterceptorAdapter { h . closed ( ) ; } } finally { + config . getBroadcasterFactory ( ) . removeAllAtmosphereResource ( r ) ; config . resourcesFactory ( ) . unRegisterUuidForFindCandidate ( r ) ; } }
Force the removal of the AtmosphereResource when idle fires
<nb> public class LogFileMvcEndpoint implements MvcEndpoint , EnvironmentAware { private final Resource resource ; - public Handler ( Resource resource ) { + Handler ( Resource resource ) { this . resource = resource ; }
Fix checkstyle error
<nb> public class TechniqueDef implements Savable { usesShaders = true ; } - SINGLE + COMMENT + COMMENT + COMMENT + COMMENT public EnumMap < Shader . ShaderType , String > getShaderProgramNames ( ) { return shaderName ; } - SINGLE + COMMENT + COMMENT + COMMENT + COMMENT public EnumMa...
Added some javadoc
<nb> public abstract class HttpMessageEncoder extends OneToOneEncoder { if ( msg instanceof HttpChunk ) { HttpChunk chunk = ( HttpChunk ) msg ; - if ( chunk . isLast ( ) ) { + if ( chunk == HttpChunk . LAST_CHUNK ) { return LAST_CHUNK . duplicate ( ) ; } else { ChannelBuffer content = chunk . getContent...
Fixed a bug where trailing headers are not written
<nb> public class CommandLineParser { COMMENT COMMENT public void printUsage ( PrintStream stream ) { - stream . println ( STRING0 + stream . println ( STRING1 + STRING2 + STRING3 + STRING4 <nb> public class MainTest extends AbstractSecurityTestCase { fail ( STRING5 ) ; } catch ( ExitException e )...
improve usage message thanks to Ruud Baars
<nb> public class TestPerformance extends BaseTest { COMMENT COMMENT private static final boolean RECURSIVE = true ; + COMMENT + COMMENT + COMMENT + private static final int MAX_FILES_PER_PARSE_ITERATION = Integer . MAX_VALUE ; COMMENT COMMENT <nb> public class TestPerformance extends BaseTest { ...
Add the TestPerformance MAX_FILES_PER_PARSE_ITERATION configuration field
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener SINGLE SINGLE if ( isInExtractedMode ( ) && hasSelection ( ) && mEditor != null - && mEditor . mTextActionMode == null ) { + && mEditor . mTextActionMode == null && isShown ( ) && hasWindowFocus ( ) ) { mEditor . startSe...
Do not show selection action mode when the TextView is not shown
<nb> public class ReaderBlogTable { return SqlUtils . boolForQuery ( ReaderDatabase . getReadableDb ( ) , sql , args ) ; } else { SINGLE - sql = STRING0 ; + sql = STRING1 ; String [ ] args = { blogUrl } ; return SqlUtils . boolForQuery ( ReaderDatabase . getReadableDb ( ) , sql , args ) ; }
Fixed SQLiteException when manually adding a blog by URL
<nb> public abstract class BasePasswordEncoder implements PasswordEncoder { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class BasePasswordEncoder implements PasswordEncoder { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT protected String...
Added doc for throws
<nb> public abstract class AbstractJavadocCheck extends Check } else { final LocalizedMessage parseErrorMessage = ps . getParseErrorMessage ( ) ; - log ( parseErrorMessage . getLineNo ( ) , parseErrorMessage . getColumnNo ( ) - , parseErrorMessage . getMessage ( ) ) ; + log ( parseErrorMessage . getLineNo (...
Fixed ArrayIndexOutOfBoundsException and StringIndexOutOfBoundsException while logging
<nb> public abstract class RunManagerEx extends RunManager { public abstract Collection < RunnerAndConfigurationSettings > getSortedConfigurations ( ) ; - public abstract void removeConfiguration ( RunnerAndConfigurationSettings settings ) ; + public abstract void removeConfiguration ( @ nullable RunnerAndCon...
improved synchronization do not delete old run configurations
<nb> public class CompileStack implements Opcodes { superBlockNamedLabels . clear ( ) ; currentBlockNamedLabels . clear ( ) ; namedLoopBreakLabel . clear ( ) ; + namedLoopContinueLabel . clear ( ) ; continueLabel = null ; breakLabel = null ; finallyLabel = null ;
added clearing of named continue labels after the map is no longer needed
<nb> public class GBMTest extends TestUtil { parms . _min_rows = NUMBER0 ; parms . _distribution = Family . bernoulli ; parms . _balance_classes = true ; + parms . _seed = NUMBER1 ; SINGLE GBM job = new GBM ( parms ) ;
Fix JUnit to have the old seeding behavior
<nb> public class LineStatusTracker { private Range getLastRangeBeforeLine ( int line ) { Range result = null ; for ( Range range : myRanges ) { - if ( range . isMoreThen ( line ) ) return result ; + if ( range . isAfter ( line ) ) return result ; result = range ; } return result ; <nb> public class R...
diff use more clear name for the method
<nb> public final class OperatorAny < T > implements Operator < Boolean , T > { @ override public Subscriber < ? super T > call ( final Subscriber < ? super Boolean > child ) { - Subscriber < T > s = new Subscriber < T > ( ) { + return new Subscriber < T > ( child ) { boolean hasElements ; boolean done ; ...
Simplify Subscription Chain
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DeviceStorageMonitorService extends Binder { SINGLE EventLog . writeEvent ( EventLogTags . LOW_STORAGE , mFreeMem ) ; SIN...
Low storage warning takes long time to sort apps by usage
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public class ChattingResolvedActivity extends AppCompatActivity { <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public class ChattingResolvedFragmentActivity extends FragmentActivity...
fix the typo in activity s header
<nb> public class MapPoiTypes { lastTypePoiAdditionalsCategories . addAll ( lastCategoryPoiAdditionalsCategories ) ; lastTypePoiAdditionalsCategories . addAll ( lastFilterPoiAdditionalsCategories ) ; if ( ! Algorithms . isEmpty ( parser . getAttributeValue ( STRING0 , STRING1 ) ) ) { - Collections . addAll ( la...
Fixed nudism in cafe
<nb> public class CacheUtils { if ( _ex [ NUMBER0 ] != null ) { throw _ex [ NUMBER0 ] ; } - context . getProgressIndicator ( ) . setText ( CompilerBundle . message ( STRING0 , dependentFiles . size ( ) ) ) ; + context . getProgressIndicator ( ) . setText ( + dependentFiles . size ( ) > NUMBER0 ? CompilerBun...
updated progress message in case when no dependent files found
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT public class App { + COMMENT + COMMENT + COMMENT + COMMENT public static void main ( String [ ] args ) { ClassPathXmlApplicationContext context = ne...
Improve Repository example s JavaDoc
<nb> public class ClassLoaderLogManager extends LogManager { SINGLE SINGLE int dotIndex = loggerName . lastIndexOf ( STRING0 ) ; - while ( dotIndex >= NUMBER0 ) { + if ( dotIndex >= NUMBER0 ) { final String parentName = loggerName . substring ( NUMBER0 , dotIndex ) ; Logger . getLogger ( parentName ) ; ...
Simplify instantiating parent loggers
<nb> import NAMESPACE ; public abstract class NamedHealthCheck extends HealthCheck { - abstract String getName ( ) ; + public abstract String getName ( ) ; }
Increase NamedHealthCheck getName visibility to public
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE import static NAMESPACE ; @ clusterscope ( scope = Scope . TEST , numDataNodes = NUMBER0 ) + @ lucenetestcase.awaitsfix ( bugUrl = STRING0 ) pu...
add awaitFix the entire MinimumMasterNodesTests class
<nb> public class ViewDebug { } } ) : NUMBER0 ; long durationDraw = - ( root || ( view . mPrivateFlags & View . DRAWN ) != NUMBER0 ) ? profileViewOperation ( view , + ( root || ! view . willNotDraw ( ) || ( view . mPrivateFlags & View . DRAWN ) != NUMBER0 ) ? profileViewOperation ( + view , new ViewOperat...
Making sure the draw time is measured
<nb> public class ForgeHooks int mX = MathHelper . floor_double ( bb . minX ) ; int mY = MathHelper . floor_double ( bb . minY ) ; int mZ = MathHelper . floor_double ( bb . minZ ) ; - for ( int y2 = mY ; y < bb . maxY ; y2 ++ ) + for ( int y2 = mY ; y2 < bb . maxY ; y2 ++ ) { for ( int x2 = mX ; x2 < bb ....
Fixed typo in bounding box based ladder checks that caused potential infinite loops with entities in certian positions
<nb> import NAMESPACE ; public interface HttpConnection { COMMENT + COMMENT + COMMENT + COMMENT + public void init ( ) throws IOException ; + + COMMENT COMMENT COMMENT public OutputStream getOutputStream ( ) throws IOException ;
Added the init method
<nb> public class Meteor { static void destroy ( ) { cache . clear ( ) ; } + + COMMENT + COMMENT + COMMENT + COMMENT + public AtmosphereResource < HttpServletRequest , HttpServletResponse > getAtmosphereResource ( ) { + return r ; + } }
Add a convenience method in order to retrieve the underlying AtmosphereResource representing this Meteor
<nb> public class TextEditingTargetWidget @ override public void insertFindReplace ( FindReplaceBar findReplaceBar ) { + Widget beforeWidget = null ; + if ( warningBar_ != null && warningBar_ . isAttached ( ) ) + beforeWidget = warningBar_ ; panel_ . insertNorth ( findReplaceBar , findReplaceBar . getHe...
couldn t show find replace after hiding warning bar
<nb> public class ServletScopes { } public String toString ( ) { - return creator . toString ( ) ; + return String . format ( STRING0 , creator , REQUEST ) ; } } ; } <nb> public class ServletScopes { } } public String toString ( ) { - return creator . toString ( ) ; + return String . format ...
improve toString of bundled scopes
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class DefaultContextLoadTimeWeaver implements LoadTimeWeaver , BeanClassLo this . loadTimeWeaver . getInstrumentableClassLoader ( ) . getClass ( ) . getName ( ) ) ; } catch ( IllegalStateException ex ) { - throw new IllegalStateE...
replaced references to spring agent
<nb> import NAMESPACE ; public class UidFilter extends Filter { - private final Term [ ] uids ; + final Term [ ] uids ; private final BloomCache bloomCache ; <nb> public class UidFilter extends Filter { if ( this == o ) return true ; if ( o == null || getClass ( ) != o . getClass ( ) ) return fals...
use an array to represent the keys in the uid filter
<nb> public class PoolableConnection implements PooledConnection , Connection { } void closePoolableStatement ( PoolablePreparedStatement stmt ) throws SQLException { + if ( this . isClosed ( ) ) { + return ; + } + PreparedStatement rawStatement = stmt . getRawPreparedStatement ( ) ; try { <nb> pu...
after real connection closed closePoolableStatementError
<nb> public class DragSortListView extends ListView { ViewGroup . LayoutParams lp = item . getLayoutParams ( ) ; if ( lp == null ) { lp = new ViewGroup . LayoutParams ( ViewGroup . LayoutParams . FILL_PARENT , ViewGroup . LayoutParams . WRAP_CONTENT ) ; + item . setLayoutParams ( lp ) ; } int wspec = ViewGr...
set LayoutParams on float when null
<nb> public final class TreeWalker private void registerCheck ( Check aCheck ) throws CheckstyleException { - int [ ] tokens = aCheck . getDefaultTokens ( ) ; + int [ ] tokens = new int [ ] { } ; SINGLE final Set checkTokens = aCheck . getTokenNames ( ) ; if ( ! checkTokens . isEmpty ( ) ) { tokens = aC...
allocate acceptable tokens only when necessary
<nb> public abstract class CascadeLinearGraphController implements LinearGraphControl private final CascadeLinearGraphController myDelegateLinearGraphController ; @ notnull protected final PermanentGraphInfo myPermanentGraphInfo ; - @ notnull + @ nullable private PrintElementManagerImpl myPrintElementManage...
log Fix init cyclic dependency
<nb> public class TaskListFragment extends ListFragment implements OnScrollListener , Intent intent ; long itemId ; + if ( ! isCurrentTaskListFragment ( ) ) + return false ; + SINGLE if ( handleOptionsMenuItemSelected ( item . getItemId ( ) , item . getIntent ( ) ) ) return true ;
Only the current fragment can handle menu options or context menu items
<nb> public interface IBundleSqlDao extends Transactional < IEventSqlDao > , CloseMe , Tra public void bind ( @ suppresswarnings ( STRING0 ) SQLStatement stmt , Bind bind , SubscriptionBundle bundle ) { stmt . bind ( STRING1 , bundle . getId ( ) . toString ( ) ) ; stmt . bind ( STRING2 , getDate ( bundle . getSta...
rename name key
<nb> public class MergeAndroidResourcesStepTest { Optional . of ( uberRDotTxt ) , Paths . get ( STRING0 ) , COMMENT - Optional . < String > absent ( ) ) ; + COMMENT ExecutionContext executionContext = TestExecutionContext . newInstance ( ) ; <nb> public class MergeAndroidResourcesStepTest { Optional...
Add comments to MergeAndroidResourcesStepTest
<nb> import NAMESPACE ; public class CipherUtil { private static final Logger logger = Logger . getLogger ( CipherUtil . class . getSimpleName ( ) ) ; SINGLE - private static final String ALPHABETHIC_CHARS = STRING0 ; + private static final String ALPHABETIC_CHARS = STRING0 ; private static AtomicBoolean ...
Spelling alphabetic correctly
<nb> public class TagViewFragment extends TaskListFragment { @ override public void onActivityResult ( int requestCode , int resultCode , Intent data ) { if ( requestCode == REQUEST_CODE_SETTINGS && resultCode == Activity . RESULT_OK ) { - tagData = tagDataService . fetchById ( tagData . getId ( ) , TagData . P...
Fixed a rare crash that could occur if tag is deleted during sync
<nb> public class DataLaboratoryPersistenceProvider implements WorkspacePersistencePr if ( eventType . equals ( XMLEvent . START_ELEMENT ) ) { String name = reader . getLocalName ( ) ; if ( NODE_COLUMN . equalsIgnoreCase ( name ) ) { - String id = reader . getAttributeValue ( null , STRING0 ) ; + Integer id =...
Fix DataLaboratory available columns persistence
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ComputeEngineContainerImpl extends ComponentContainer implements Co add ( steps ) ; addSingletons ( componentClasses ( ) ) ...
add support for Module in CE s container
<nb> public class ValidateConf { SINGLE validProperties . add ( STRING0 ) ; validProperties . add ( STRING1 ) ; + validProperties . add ( STRING2 ) ; SINGLE SINGLE
Add tachyon logger type to valid properties
<nb> public class DebuggingSlicePool implements Pool < ByteBuffer > { @ override public ByteBuffer getResource ( ) throws IllegalStateException { if ( free ) { - throw new RuntimeException ( STRING0 , freePoint ) ; + throw new IllegalStateException ( STRING0 , freePoint ) ; } return delegate . getResource...
Change exception type
<nb> public class AprEndpoint extends AbstractEndpoint < Long > { SINGLE try { synchronized ( this ) { + this . notify ( ) ; this . wait ( pollTime / NUMBER0 ) ; } } catch ( InterruptedException e ) { <nb> public class AprEndpoint extends AbstractEndpoint < Long > { while ( sendfileRunning ) { SIN...
Fix logic where sendfile thread could get stuck in infinite loop on connector stop
<nb> public class TestServlet extends HttpServlet { ELProcessor elp = new ELProcessor ( ) ; out . println ( STRING0 ) ; out . println ( ( elp . eval ( STRING1 ) ) + STRING2 ) ; - out . println ( STRING3 ) ; + out . println ( STRING4 ) ; out . println ( ( ( elp . eval ( STRING5 ) ) ) + STRING2 ) ; out . pr...
Fixing a typo
<nb> public class GenerateKeywordStringsTest extends UsefulTestCase { String text = GenerateKeywordStrings . generate ( ) ; assertEquals ( STRING0 + GenerateKeywordStrings . class . getName ( ) , StringUtil . convertLineSeparators ( text ) , - FileUtil . loadFile ( GenerateKeywordStrings . DEST_FILE ) ) ; + F...
Fix line separators
<nb> public class ScriptGroup2 extends BaseObj { return addInvoke ( invoke , args . toArray ( ) , bindingMap ) ; } - public ScriptGroup2 create ( Future . . . outputs ) { + public ScriptGroup2 create ( String name , Future . . . outputs ) { + if ( name == null || name . isEmpty ( ) || name . length ( ) > NU...
Add a name to ScriptGroup2 Builder create method
<nb> public class UploaderThread extends Thread { Log . v ( LOG_TAG , STRING0 + e . getMessage ( ) ) ; } + catch ( OutOfMemoryError e ) + { + e . printStackTrace ( ) ; + Log . v ( LOG_TAG , STRING1 + e . getMessage ( ) ) ; + } } return postBody . toString ( ) ;
Potential fix for User cannot start Astrid due to force close Localytics OutOfMemoryError
<nb> public class NotificationCompat { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public Builder setPriority ( int pri ) { mPriority = pri ;
Documented priority constants for setPriority int
<nb> public class ActionToolbarImpl extends JPanel implements ActionToolbar { } if ( Registry . is ( STRING0 ) && ( ActionPlaces . MAIN_TOOLBAR . equals ( myPlace ) || ActionPlaces . NAVIGATION_BAR . equals ( myPlace ) ) ) { - final JComponent searchEverywhere = getCustomComponent ( ActionManager . getInstance ...
don t add action if it s not defined
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MovieCheckInDialogFragment extends GenericCheckInDialogFragment { divider . setVisibility ( View . GONE ) ; mButtonFixGetGlue . setVisibility ( View . GONE ) ; } + + @ overr...
Prevent tvtag check in if there is no title
<nb> public final class NullNode public final void serialize ( JsonGenerator jg , SerializerProvider provider ) throws IOException , JsonProcessingException { - System . err . println ( STRING0 ) ; provider . defaultSerializeNull ( jg ) ; }
remove a debug statement
<nb> class ActivityStarter { SINGLE SINGLE UserManager userManager = UserManager . get ( mService . mContext ) ; - UserInfo parent = userManager . getProfileParent ( userId ) ; + UserInfo parent = null ; + long token = Binder . clearCallingIdentity ( ) ; + try { + parent = userManager . getProfileParent...
Should call clearCallingIdentity before accessing getProfileParent
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
add missing copyright
<nb> public final class TieredBlockStoreTests { mBlockStore . moveBlock ( USER_ID1 , TEMP_BLOCK_ID , mTestDir2 . toBlockStoreLocation ( ) ) ; } + SINGLE @ ignore @ test public void moveBlockToTheLocationWithExistingIdTest ( ) throws Exception {
Annotate ignored test case with the jira ticket number
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PyCondaManagementService extends PyPackageManagementService { consumer . consume ( versions ) ; } - @ override - pub...
removed unused code
<nb> public class ListViewAutoScrollHelper extends AutoScrollHelper { public boolean canTargetScrollVertically ( int direction ) { final ListView target = mTarget ; final int itemCount = target . getCount ( ) ; + if ( itemCount == NUMBER0 ) { + return false ; + } + final int childCount = target . getChi...
Don t auto scroll empty lists
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAME...
Use correct Lists implementation in ESTimestampFixup
<nb> class DefaultOperationQueue < T > implements OperationQueue < T > { } public void onFailure ( Throwable t ) { - finished . countDown ( ) ; failures . add ( t ) ; + finished . countDown ( ) ; } }
Fix concurrency issue with recording OperationQueue failures
<nb> public class FunctionRegistry return Optional . < Type > of ( DOUBLE ) ; } + if ( ( firstType . equals ( DATE ) || firstType . equals ( TIMESTAMP ) ) && ( secondType . equals ( DATE ) || secondType . equals ( TIMESTAMP ) ) ) { + return Optional . < Type > of ( TIMESTAMP ) ; + } + + if ( ( firstType...
Add missing coercion from date to timestamp with time zone
<nb> final class WebViewCore { data . mTextWrapWidth = data . mWidth ; data . mScale = - FLOAT0 ; data . mIgnoreHeight = false ; + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + mEventHub . removeMessages ( EventHub . VIEW_SIZE_CHANGED ) ; mEventHub . sendMessageAtFrontOfQueue ( Message . o...
Before we send VIEW_SIZE_CHANGED after first layout
<nb> public class FolderObserver extends Thread implements ManagedService { while ( ! folderRefreshMap . isEmpty ( ) ) { SINGLE try { for ( String foldername : folderRefreshMap . keySet ( ) ) { - if ( refreshCount % folderRefreshMap . get ( foldername ) > NUMBER0 ) continue ; + SINGLE + if ( lastFileNames ....
fixed sitemap loading problem at startup
<nb> public class ClassySharkPanel extends JPanel @ override protected void done ( ) { - if ( displayedClassTokens == null ) { - displayArea . displayError ( ) ; - return ; - } - if ( viewTopClass || viewMouseClickedClass ) { toolbar . setText ( className ) ; displayArea . displayClass ( displayed...
fixed wrong error handling from toolbar
<nb> public class HistoryPanel extends Composite implements Display topToolbar_ . addRightWidget ( commands . vcsPull ( ) . createToolbarButton ( ) ) ; - topToolbar_ . addRightSeparator ( ) ; - - topToolbar_ . addRightWidget ( commands . vcsPush ( ) . createToolbarButton ( ) ) ; - pager_ . setPageSize (...
eliminate push button from svn history pane
<nb> public class ActionMenuItemView extends TextView Toast cheatSheet = Toast . makeText ( context , mItemData . getTitle ( ) , Toast . LENGTH_SHORT ) ; if ( midy < displayFrame . height ( ) ) { SINGLE - cheatSheet . setGravity ( Gravity . TOP | Gravity . END , referenceX , height ) ; + cheatSheet . setGravi...
Fix location for ActionMenuItemView cheat sheet
<nb> public class AsyncWriteEngine implements Engine { try { SINGLE while ( ! writes . isEmpty ( ) ) { - Thread . yield ( ) ; + try { + Thread . sleep ( NUMBER0 ) ; + } catch ( InterruptedException e ) { + throw new RuntimeException ( e ) ; + } } grandLock . writeLock ( ) . lock ( ) ;
Remove yield from commit
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMES...
Added missing test methods
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - COMMENT + COMMENT @ runwith ( JUnit4 . class ) public final class EndpointPairTest { private static final Integer N0 = NUMBER0 ;
Update an link in javadoc
<nb> public final class JavassistTypeParameterMatcherGenerator { classPool . appendClassPath ( pathname ) ; } + public static ClassPool classPool ( ) { + return classPool ; + } + public static TypeParameterMatcher generate ( Class < ? > type ) { ClassLoader classLoader = Thread . currentThread ( ) . g...
Add a getter method for accessing the ClassPool of JavassistTypeParameterMatcherGenerator
<nb> public class S_CommandTest { @ test public void PrefixTest ( ) { - S_Command scmd = new S_Command ( STRING0 , FLOAT0 ) ; + S_Command scmd = new S_Command ( STRING0 , NUMBER0 , FLOAT0 ) ; String commandStr = scmd . getCommandString ( ) ; <nb> public class S_CommandTest { @ test public void B...
fixed unit test for new S_Command c tor including the room id
<nb> public class TcpFailureDetector extends ChannelInterceptorBase { log . info ( sm . getString ( STRING0 , member ) ) ; synchronized ( membership ) { if ( ! membership . contains ( member ) ) { - if ( ! shutdown && log . isInfoEnabled ( ) ) + if ( log . isInfoEnabled ( ) ) log . info ( sm . getString ( S...
Remove the unnecessary shutdown flag
<nb> public final class ServiceVerificationHandler extends AbstractServiceListener < Ob public synchronized void listenerAdded ( final ServiceController < ? > controller ) { monitor . addController ( controller ) ; - SINGLE } public synchronized void execute ( final OperationContext context , final ModelN...
We cannot remove ServiceVerificationHandler listener from controllers
<nb> class XMLRPCSerializer { else if ( object instanceof MediaFile ) { SINGLE serializer . startTag ( null , STRING0 ) ; - MediaFile videoFile = ( MediaFile ) object ; - InputStream inStream = new DataInputStream ( new FileInputStream ( videoFile . getFilePath ( ) ) ) ; + MediaFile mediaFile = ( MediaFile ...
Renamed a variable
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public final class TvContract { COMMENT COMMENT public static String [ ] decode ( String genres ) { - StringTokenizer st = new StringTokenizer ( genres , STRING0 ) ; - Str...
Improve android media tv TvContract Programs Genres decode
<nb> import NAMESPACE ; public class Parsing implements Constants { private static final Logger LOG = Logger . getInstance ( STRING0 ) ; - public static COMMENT boolean DEEP_PARSE_BLOCKS_IN_STATEMENTS = false ; + public static final boolean DEEP_PARSE_BLOCKS_IN_STATEMENTS = false ; protected final JavaParsi...
qualified annotation fix
<nb> public class HttpVersion implements Comparable < HttpVersion > { } text = text . trim ( ) ; + + if ( text . isEmpty ( ) ) { + throw new IllegalArgumentException ( STRING0 ) ; + } + SINGLE SINGLE SINGLE <nb> public class HttpVersion implements Comparable < HttpVersion > { SINGLE SINGLE ...
Make sure HttpVersion checks if the version string is not empty
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb...
Use Open Sans in the bar graph
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ;
Fix Checkstyle issues
<nb> class MethodInvocationMessageHandler extends EJBIdentifierBasedMessageHandler { if ( ! ( ioe instanceof ObjectStreamException ) ) { IoUtils . safeClose ( channelAssociation . getChannel ( ) ) ; } - return ; } + return ; } finally { SecurityActions . remotingContextClear ( ) ; }
move return to proper place
<nb> public class BlockBuilder public UncompressedBlock build ( ) { - return new UncompressedBlock ( positionCount , tupleInfo , sliceOutput . slice ( ) ) ; + return new UncompressedBlock ( positionCount , tupleInfo , sliceOutput . getUnderlyingSlice ( ) ) ; } @ override
Don t copy slice when building blocks
<nb> public class OperationFailedException COMMENT public static final int AUTHENTICATION_FAILED = NUMBER0 ; + COMMENT + COMMENT + COMMENT + COMMENT + public static final int FORBIDDEN = NUMBER1 ; + + COMMENT + COMMENT + COMMENT + COMMENT + public static final int NOT_FOUND = NUMBER2 ; + ...
Added multichat operation set definition and Gibberish protocol implementation
<nb> public class Http11NioProcessor implements ActionHook { SINGLE - public Http11NioProcessor ( int rxBufSize , int txBufSize , int maxHttpHeaderSize , NioEndpoint endpoint ) { + public Http11NioProcessor ( int maxHttpHeaderSize , NioEndpoint endpoint ) { this . endpoint = endpoint ; <nb> public cla...
Drop unused fields