diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public abstract class GeneralItemAnimator extends BaseItemAnimator { final String newId = ( newHolder != null ) ? Long . toString ( newHolder . getItemId ( ) ) : STRING0 ; final String newPosition = ( newHolder != null ) ? Long . toString ( newHolder . getPosition ( ) ) : STRING0 ; - Log . d ( TAG , STRING...
Fix some debug log messages
<nb> - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT packa...
Fixed header in HfsCompressor
<nb> public class Views { } public static class UnableToInjectException extends RuntimeException { + UnableToInjectException ( String message ) { + super ( message ) ; + } + UnableToInjectException ( String message , Throwable cause ) { super ( message , cause ) ; }
Adds Throwable less Exception
<nb> public class EditingPreferencesPane extends PreferencesPane completionPanel . add ( insertParensAfterFunctionCompletionsCheckbox ) ; completionPanel . add ( showSignatureTooltipsCheckbox ) ; - completionPanel . add ( checkboxPref ( STRING0 , prefs . showFunctionTooltipOnIdle ( ) ) ) ; + completionPanel ....
tweak help text
<nb> public class ReaderPostActions { if ( hasChanges ) { AppLog . d ( STRING0 ) ; + SINGLE + SINGLE + SINGLE + if ( post . hasFeaturedImage ( ) && ! updatedPost . hasFeaturedImage ( ) ) { + AppLog . i ( STRING1 ) ; + updatedPost . setFeaturedImage ( post . getFeaturedImage ( ) ) ; + } ReaderPostT...
Featured image is now retained after updating post in detail view
<nb> class ReadOnlyDirectByteBuf extends AbstractReferenceCountedByteBuf { public ReadOnlyDirectByteBuf ( ByteBufAllocator allocator , ByteBuffer buffer ) { super ( buffer . remaining ( ) ) ; if ( ! buffer . isDirect ( ) ) { - throw new IllegalArgumentException ( STRING0 ) ; + throw new IllegalArgumentExcepti...
Fix incorrect exception message
<nb> public class CacheManagingDrawTask extends DrawTask { BaseDanmaku danmaku = it . next ( ) ; if ( danmaku . paintWidth == refDanmaku . paintWidth && danmaku . paintHeight == refDanmaku . paintHeight - && danmaku . textColor == danmaku . textColor + && danmaku . textColor == refDanmaku . textColor && dan...
Fix reusing bug
<nb> public class XMLSourceProcessor extends BaseSourceProcessor { private List < String > _numericalPortletNameElementExclusions ; private Pattern _poshiCharactersAfterDefinitionTag = Pattern . compile ( STRING0 ) ; - private Pattern _poshiCharactersBeforeDefinitionTag = Pattern . compile ( - STRING1 ) ; p...
SourceFormatter Remove unused var
<nb> public class Vector2 implements Serializable { COMMENT COMMENT public final static Vector2 tmp = new Vector2 ( ) ; + public final static Vector2 tmp2 = new Vector2 ( ) ; public final static Vector2 X = new Vector2 ( NUMBER0 , NUMBER1 ) ; public final static Vector2 Y = new Vector2 ( NUMBER1 , NUMBER0...
Added Vector2 tmp2
<nb> public class SearchFieldsTests extends ElasticsearchIntegrationTest { createIndex ( STRING0 ) ; client ( ) . admin ( ) . cluster ( ) . prepareHealth ( ) . setWaitForEvents ( Priority . LANGUID ) . setWaitForYellowStatus ( ) . execute ( ) . actionGet ( ) ; - String mapping = XContentFactory . jsonBuilder ( ...
Fix SearchFieldsTests after changes to TimestampFieldMapper
<nb> public class ThreadPool extends AbstractComponent implements Closeable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public ScheduledFuture < ? > schedule ( TimeValue delay , String executor , Runnable command ) { if ( ! Names . SAME . equals ( executor ) ) {
Fix Javadocs for ThreadPool schedule
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FrameworkDetectionContextImpl extends FrameworkDetectionContextBase final FacetsProvider provider = DefaultFacetsProvider . I...
detect facet only in suitable modules
<nb> public class SearchEverywhereAction extends AnAction implements CustomComponentA @ override public void keyPressed ( KeyEvent e ) { int keyCode = e . getKeyCode ( ) ; - if ( keyCode == KeyEvent . VK_ESCAPE && StringUtil . isEmpty ( editor . getText ( ) ) ) { + if ( keyCode == KeyEvent . VK_ESCAPE && ( my...
double Escape should cancel search everywhere
<nb> import static NAMESPACE ; import static NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + @ runwith ( JUnit4 . class ) public class ResolvedServerInfoTest { private static final Attributes . Key < String > FOO = Attributes . Key . of ( STRING0 ) ; ...
add missing RunWith annotation
<nb> public interface Endpoint < E extends Exchange > { Producer < E > createProducer ( ) throws Exception ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
fixed up javadoc
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Add Configuration import
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import...
Fixed JdbcUtils type
<nb> final public class PSqlDriverManager extends BaseObject { } } ; protected static String _getDriverClass ( String dbName ) { - dbName = dbName . toLowerCase ( ) ; - - String driverClass = driverClasses . get ( dbName ) ; + String driverClass = driverClasses . get ( dbName . toLowerCase ( ) ) ; if ...
install for full class names
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CxfPayloadConsumerNamespaceOnEnvelopeTest extends CamelTestSupport } ; } - SINGLE - SINGLE + @ test public void testInvokeRouter ( )...
activating the disabled tests as we have a new cxf
<nb> public class RoutingNodes implements Iterable < RoutingNode > { if ( routingNode == null ) { return null ; } - assert assertShardStats ( this ) ; return new RoutingNodeIterator ( routingNode ) ; } <nb> public class AllocationService extends AbstractComponent { if ( ! moved ) { logger . debug ( ...
TEST Don t invoke RoutingNodes assertShardStats via asserts many times in tests just once on each reroute call
<nb> public abstract class ChooseByNameBase { try { ensureNamesLoaded ( myCheckboxState ) ; addElementsByPattern ( elements , myPattern ) ; + for ( Object elem : elements ) { + if ( elem instanceof PsiElement ) { + final PsiElement psiElement = ( PsiElement ) elem ; + psiElement . isWritable ( ) ; SINGLE ...
Optimizing Ctrl N
<nb> public class ByteBufferGifDecoder implements ResourceDecoder < ByteBuffer , GifDraw if ( Log . isLoggable ( TAG , Log . VERBOSE ) ) { Log . v ( TAG , STRING0 + STRING1 + sampleSize - + STRING2 + targetWidth + STRING3 + targetHeight - + STRING4 + gifHeader . getWidth ( ) + STRING3 + gifHeader . getHeight ...
Fix debug logging in ByteBufferGifDecoder
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class DefaultClassLoaderScopeRegistry implements ClassLoaderScopeRegistry { <nb> public class DefaultClassLoaderScopeRegistry implements ClassLoaderScopeRegistry public DefaultClassLoaderScopeR...
Don t base the api class loader scope on the core impl classloader scope
<nb> public class BehaviorSubjectTest { return Observable . just ( t1 + STRING0 + t1 ) ; } } ) - . subscribe ( new Observer < String > ( ) { - @ override - public void onNext ( String t ) { - o . onNext ( t ) ; - } - - @ override - public void onError ( Throwable e ) { - o . onError ( e ) ; - ...
Simplify testUnsubscriptionCase test
<nb> public class OneSidedPlatform extends Box2DTest { @ override public boolean shouldCollide ( Fixture fixtureA , Fixture fixtureB ) { - if ( ( fixtureA == m_platform && fixtureB == m_character ) || ( fixtureA == m_platform && fixtureB == m_character ) ) { + if ( fixtureA == m_platform && fixtureB == m_char...
Duplicate subexpressions in OneSidedPlatform java
<nb> public class TestHttp2Section_5_3 extends Http2TestBase { parser . readFrame ( true ) ; SINGLE System . err . println ( output . getTrace ( ) ) ; - SINGLE - try { - parser . readFrame ( true ) ; - } catch ( Throwable t ) { - Assert . fail ( t . getMessage ( ) ) ; + + SINGLE + int count = NUMB...
Still not seeing the log info we need
<nb> public class SelectBox < T > extends Widget implements Disableable { y += ( int ) ( height / NUMBER0 + font . getData ( ) . capHeight / NUMBER0 ) ; } font . setColor ( fontColor . r , fontColor . g , fontColor . b , fontColor . a * parentAlpha ) ; - layout . setText ( font , string , NUMBER1 , string . len...
GlyphLayout uses fontColor us default color in SelectBox
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class VagrantSupport { return ServiceManager . getService ( VagrantSupport . c...
Remove unused methods
<nb> import NAMESPACE ; COMMENT public final class JsModuleDetector { - public static final String INDICATION_FILE_NAME = STRING0 ; + public static final String INDICATION_FILE_NAME = STRING1 ; private JsModuleDetector ( ) { }
Change indication filename to
<nb> public class RuleBasedCorefMentionFinder implements CorefMentionFinder { if ( wordMatch != null ) { Tree head = safeHead ( wordMatch , endIdx ) ; if ( head != null ) { - return head ; + int index = ( ( CoreLabel ) head . label ( ) ) . get ( CoreAnnotations . IndexAnnotation . class ) - NUMBER0 ; + if (...
Ignore head mentions found when they are outside the expected range
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class Module extends AbstractModule { <nb> public class Module extends AbstractModule { SINGLE SINGLE - install ( setupServlets ( ) ) ; - - } - - -...
added comment from zoza
<nb> public class SimpleWebServer extends NanoHTTPD { SINGLE int port = NUMBER0 ; - String host = STRING0 ; + String host = null ; SINGLE List < File > rootDirs = new ArrayList < File > ( ) ; boolean quiet = false ; Map < String , String > options = new HashMap < String , String > ( ) ;
Change default binding from localhost to all interfaces
<nb> public class CassandraStorageSetup { cassandraOrderedYamlPath ) ; config . subset ( GraphDatabaseConfiguration . IDS_NAMESPACE ) . addProperty ( GraphDatabaseConfiguration . IDS_PARTITION_KEY , true ) ; config . subset ( GraphDatabaseConfiguration . IDS_NAMESPACE ) . addProperty ( GraphDatabaseConfiguration ...
Disable Metrics console dump in default test cfg
<nb> public class MultiHostRegistrarImpl implements MultiHostRegistrar { PsiFile newFile = registerDocument ( documentWindow , psiFile , place , myHostPsiFile , documentManager ) ; if ( newFile != psiFile ) { + InjectedLanguageUtil . clearCaches ( psiFile ) ; psiFile = newFile ; viewProvider = ( InjectedFil...
fixed the proper way
<nb> public class ScoreBuildHistogram extends MRTask < ScoreBuildHistogram > { DHistogram nhs [ ] = _hcs [ nid ] ; int sCols [ ] = _tree . undecided ( nid + _leaf ) . _scoreCols ; SINGLE for ( int col : sCols ) SINGLE + SINGLE nhs [ col ] . incr ( ( float ) chks [ col ] . atd ( row ) , ( float ) wrks . atd ( ...
Add comment on what might lead to more numeric roundoff differences for DRF during atomic increments of Histograms
<nb> implements org . apache . hadoop . mapred . RecordWriter < ByteBuffer , List < Mutation > > Config . setOutboundBindAny ( true ) ; this . conf = conf ; DatabaseDescriptor . setStreamThroughputOutboundMegabitsPerSec ( Integer . valueOf ( conf . get ( STREAM_THROTTLE_MBITS , STRING0 ) ) ) ; - maxFailures = I...
Fix typo in BRW config
<nb> class AutoMakeMessageHandler extends DefaultMessageHandler { @ override public void handleFailure ( UUID sessionId , CmdlineRemoteProto . Message . Failure failure ) { - final String msg = STRING0 + failure . getDescription ( ) ; + final String msg = STRING0 + ( failure . hasDescription ( ) ? failure . g...
explicitly adding project sdk to the candidate sdk list when launching external build process
<nb> import NAMESPACE ; import NAMESPACE ; @ incubating - abstract class AbstractLinkTask extends DefaultTask implements ObjectFilesToBinary { + public abstract class AbstractLinkTask extends DefaultTask implements ObjectFilesToBinary { private NativeToolChainInternal toolChain ; private NativePlatformI...
Make AbstractLinkTask public again
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PersistManager { COMMENT COMMENT public void importFiles ( String path , String pattern , ArrayList < String > files , ArrayList < String > ...
Handle windows path correctly
<nb> final class Events { COMMENT COMMENT static boolean isTouchEvent ( MotionEvent e ) { - return isTouchType ( e . getToolType ( NUMBER0 ) ) - SINGLE - || isUnknownType ( e . getToolType ( NUMBER0 ) ) ; + return isTouchType ( e . getToolType ( NUMBER0 ) ) ; } COMMENT <nb> final class Events { ...
Revert Treat UNKNOWN tooltype events as Mouse events
<nb> public class PreInvocationAuthorizationAdviceVoter implements AccessDecisionVote } public boolean supports ( ConfigAttribute attribute ) { - return attribute instanceof PreInvocationAuthorizationAdvice ; + return attribute instanceof PreInvocationAttribute ; } public boolean supports ( Class < ? > ...
PreInvocationAuthorizationAdviceVoter was checking the wrong type in its supports method
<nb> public abstract class SiteSettingsInterface { String [ ] formatKeys = new String [ mRemoteSettings . postFormats . size ( ) ] ; mRemoteSettings . postFormatKeys = mRemoteSettings . postFormats . keySet ( ) . toArray ( formatKeys ) ; mSettings . postFormatKeys = mRemoteSettings . postFormatKeys . clone ( ) ; ...
Cache the retrieved postFormats settings
<nb> public class BasicBSONObject extends LinkedHashMap < String , Object > implements BS return ( foo != null ) ? ( Date ) foo : def ; } - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public Object put ( final String key , final Object val ) { - return super . put ( key...
Remove unused method
<nb> import NAMESPACE ; COMMENT public class PlayerAnimationEvent extends PlayerEvent { - private PlayerAnimationType animationType ; + private PlayerAnimationType animationType ; - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public PlayerAnimationEvent ( final Player player ) ...
Fixed formatting and removed tabs
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MorePanel extends JPanel { private JLabel label = new JLabel ( STRING0 ) ; private JTextArea text = new JTextArea ( ) ; ...
Do not use deprecated API
<nb> public class DexMojo extends AbstractAndroidMojo { try { unjar ( new JarFile ( artifact . getFile ( ) ) , outputDirectory ) ; } catch ( IOException e ) { - throw new MojoExecutionException ( STRING0 + artifact . getFile ( ) . getAbsolutePath ( ) + STRING1 + outputDirectory , e ) ; + throw new MojoExecuti...
Fixed error messages
<nb> public class CompilerConfiguration { List < T > list = holder . putUserDataIfAbsent ( key , new CopyOnWriteArrayList < T > ( ) ) ; list . addAll ( value ) ; } + + public CompilerConfiguration copy ( ) { + CompilerConfiguration copy = new CompilerConfiguration ( ) ; + holder . copyUserDataTo ( copy . ...
Added copy method to CompilerConfiguration
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GroovyGenerationInfo < T extends PsiMember > extends PsiGenerationInfo } } - while ( element != null && - element . g...
generate members after current place
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractTestBlock return expectedValues ; } ...
Remove unnecessary check from AbstractTestBlock
<nb> public class Execution { try { clazz = ClassLoader . getSystemClassLoader ( ) . loadClass ( className ) ; } catch ( Exception e ) { - err ( STRING0 + rawKey + STRING1 + className ) ; + err ( STRING0 + rawKey + STRING2 + className + STRING3 ) ; } SINGLE if ( clazz != null ) { <nb> public class Exe...
Add debug output to Execution when overriding an option
<nb> public class ProcessDiagramGenerator { for ( PvmTransition sequenceFlow : activity . getOutgoingTransitions ( ) ) { List < Integer > waypoints = ( ( TransitionImpl ) sequenceFlow ) . getWaypoints ( ) ; for ( int i = NUMBER0 ; i < waypoints . size ( ) ; i += NUMBER0 ) { SINGLE - boolean drawConditionalIndic...
removed drawing of conditional sequence flow when source is gateway
<nb> public class PruneUnreferencedOutputs requireNonNull ( symbolAllocator , STRING0 ) ; requireNonNull ( idAllocator , STRING1 ) ; - return SimplePlanRewriter . rewriteWith ( new Rewriter ( types ) , plan , ImmutableSet . < Symbol > of ( ) ) ; + return SimplePlanRewriter . rewriteWith ( new Rewriter ( ) , p...
Remove unused variable
<nb> public class DnsUtilActivator if ( logger . isInfoEnabled ( ) ) { StringBuilder sb = new StringBuilder ( ) ; - sb . append ( STRING0 ) ; - for ( String s : ResolverConfig . getCurrentConfig ( ) . servers ( ) ) + sb . append ( STRING1 ) ; + ResolverConfig config = ResolverConfig . getCurrentConfig ( )...
Fix NPE during DNS reload logging
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class IndexStatisticsTest private static final double DOUBLE_ERROR_TOLERANCE = FLOAT0 ; ...
Improve test speed by using an ImpermanentGraphDatabase
<nb> public class TimerManager { mTimers . get ( i ) . purge ( ) ; } mTimers . clear ( ) ; + mThreadLocalManager . remove ( ) ; } public static TimerManager getInstance ( )
Remove TimerManager from ThreadLocal on clear
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class XMPPServer { loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; + try { + CacheFactory . initialize ( ) ; + } catch ( I...
Moved CacheFactory initialization from EnterprisePlugin to XMPPServer
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; im...
remove unused imports
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public class System2 { <nb> public class System2 { public boolean ...
Add System2 println String
<nb> public class StorageService extends NotificationBroadcasterSupport implements IE InetAddress existing = tokenMetadata . getEndpoint ( token ) ; if ( existing != null ) { - if ( Gossiper . instance . getEndpointStateForEndpoint ( existing ) . getUpdateTimestamp ( ) > ( System . nanoTime ( ) - delay * NUMBER...
correct unit avoid overflow
<nb> public final class ProjectManager { final String apath = ProjectRegistry . absolutizePath ( path ) ; SINGLE - VirtualFile item = vfs . getRoot ( ) . getChild ( Path . of ( apath ) ) ; - if ( item == null ) { - return ; + final VirtualFile item = vfs . getRoot ( ) . getChild ( Path . of ( apath ) ) ; ...
Delete project from workspace s configuration in case project doesn t contains sources
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JetElementImplStub < T extends StubElement > extends StubBasedPsiEleme return visitor . visitJetEleme...
Missing JetElementImplStub getReferences and getReference implementation
<nb> public class Mapping { private static Map enabledAndCompressed ( ) { final Map e = new HashMap ( ) ; e . put ( STRING0 , true ) ; - e . put ( STRING1 , true ) ; + e . put ( STRING2 , true ) ; return e ; }
make source compression actually work
<nb> public class GenericDataSink extends Contract COMMENT COMMENT COMMENT - public void setInputs ( List < Contract > inputs ) { + public void setInputs ( List < ? extends Contract > inputs ) { this . input . clear ( ) ; this . input . addAll ( inputs ) ; } <nb> public class SequentialInputFormat < T...
Generified generic data sink ctor
<nb> public class MessageList extends K9FragmentActivity implements MessageListFragme private static final String EXTRA_SEARCH_FOLDER = STRING0 ; private static final String STATE_DISPLAY_MODE = STRING1 ; + private static final String STATE_MESSAGE_LIST_WAS_DISPLAYED = STRING2 ; public static void actionDis...
Fix back button behavior when rotating the device
<nb> public class InputMethodManagerService extends IInputMethodManager . Stub if ( ! TextUtils . isEmpty ( inputMethodId ) ) { intent . putExtra ( Settings . EXTRA_INPUT_METHOD_ID , inputMethodId ) ; } - mContext . startActivity ( intent ) ; + mContext . startActivityAsUser ( intent , null , UserHandle . CUR...
Fix the issue on the input method switch picker
<nb> package NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <nb> public class CustomParallel...
Changed test category to NOT_IMPLEMENTED
<nb> public class HttpBinding extends AbstractActiveBinding < HttpBindingProvider > impl COMMENT COMMENT private boolean isValidUrl ( String url ) { - if ( StringUtils . startsWith ( url , STRING0 ) ) + if ( StringUtils . startsWithIgnoreCase ( url , STRING0 ) ) return true ; - if ( StringUtils . startsWi...
Fixes improvements to HTTP binding initialisation and config update handling
<nb> public final class CommonUtils { trimmedPath = CharMatcher . is ( TachyonURI . SEPARATOR . charAt ( NUMBER0 ) ) . trimTrailingFrom ( path ) ; } else { trimmedPath = CharMatcher . is ( TachyonURI . SEPARATOR . charAt ( NUMBER0 ) ) . trimFrom ( path ) ; - if ( trimmedPath == NULL || trimmedPath . isEmpty ( )...
Fix null keyword in CommonUtils
<nb> public final class Utils { lock . acquire ( ) ; } catch ( InterruptedException e ) { Log . e ( STRING0 , e . toString ( ) ) ; + Thread . currentThread ( ) . interrupt ( ) ; } } }
Properly interrupt thread
<nb> public class ZLAndroidWidget extends View implements View . OnLongClickListener { final int w = getWidth ( ) ; final int h = getMainAreaHeight ( ) ; - if ( ( myMainBitmap != null ) && ( ( myMainBitmap . getWidth ( ) != w ) || ( myMainBitmap . getHeight ( ) != h ) ) ) { + if ( myMainBitmap != null && + ...
removed unnecessary brackets
<nb> public class MongoDBRiver extends AbstractRiverComponent implements River { SINGLE internalStopRiver ( ) ; - MongoDBRiverHelper . setRiverStatus ( esClient , definition . getRiverName ( ) , Status . STOPPED ) ; } protected Timestamp < ? > getLastProcessedTimestamp ( ) {
Do not force the river status in close
<nb> public class FolderList extends K9ListActivity implements OnNavigationListener { public void refreshTitle ( ) { runOnUiThread ( new Runnable ( ) { public void run ( ) { - String dispString = mAdapter . mListener . formatHeader ( FolderList . this , - getString ( R . string . folder_list_title , mAccount ...
Set a title for the folderlist activity
<nb> public class TripTimeShort { public boolean timepoint = false ; public boolean realtime = false ; public long serviceDay ; + public AgencyAndId tripId ; COMMENT COMMENT <nb> public class TripTimeShort { public TripTimeShort ( TripTimes tt , int i , Stop stop , ServiceDay sd ) { this ( tt , i ...
Add TripId in StopTimeShort
<nb> public class Am extends BaseCommand { STRING0 + STRING1 + STRING2 + + STRING3 + + STRING4 + STRING5 + STRING6 + STRING7 + <nb> public class Am extends BaseCommand { } intent . putExtra ( key , list ) ; hasIntentInfo = true ; + } else if ( opt . equals ( STRING8 ) ) { + String key = next...
Adds support for array string extra
<nb> public class PackageManagerService extends IPackageManager . Stub { scanPackageLI ( file , parseFlags | PackageParser . PARSE_MUST_BE_APK , scanFlags , currentTime , null ) ; } catch ( PackageManagerException e ) { - Slog . w ( TAG , STRING0 + file + STRING1 + e . getMessage ( ) , e ) ; + Slog . w ( TAG ...
Revert Print exception stacktrace on failed scanPackageLI
<nb> public class ClusterRuleSet extends RuleSetBase { STRING0 , STRING1 ) ; + digester . addObjectCreate ( channelPrefix + STRING2 , + null , SINGLE + STRING3 ) ; + digester . addSetProperties ( channelPrefix + STRING2 ) ; + digester . addSetNext ( channelPrefix + STRING2 , + STRING4 , + STRING5 ) ...
Enable an explicit configuration of local member in the static cluster membership
<nb> public class UpcomingEpisodeExtension extends DashClockExtension { String expandedTitle = TextTools . getShowWithEpisodeNumber ( getApplicationContext ( ) , upcomingEpisodes . getString ( CalendarAdapter . Query . SHOW_TITLE ) , - upcomingEpisodes . getInt ( CalendarAdapter . Query . NUMBER ) , - upcomin...
Fix season and episode number flipped in DashClock extension
<nb> public final class CompositeBytesReference extends BytesReference { return new CompositeBytesReference ( inSlice ) ; } - private final int getOffsetIndex ( int offset ) { + private int getOffsetIndex ( int offset ) { final int i = Arrays . binarySearch ( offsets , offset ) ; return i < NUMBER0 ? ( - ...
Remove redundant modifier
<nb> package NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class FieldPacker { private boolean shouldThunk ( ) { if ( thunk == NUMBER0 ) { - if ( android . os . Build . VERSION . SDK_INT >= android . os . Build . VERSION_CODES . JELLY_BEAN_MR1 ) { + if ( android . os . Build . V...
Fix switcher bug
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GrMethodCallInfo extends CallInfoBase < GrMethodCall > implements Call @ notnull @ override public PsiElement getElementT...
don t suggest empty argument list as element to highlight
<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 NAMESPACE ; import NAMES...
TEST Add back MockIndexEngine
<nb> public class PyPackageManagerUI { return STRING0 ; } } - - @ notnull - public static PackageManagementService . ErrorDescription createDescription ( List < ExecutionException > exceptions , String firstLine ) { - final StringBuilder b = new StringBuilder ( ) ; - b . append ( firstLine ) ; - b . a...
Removed unused code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; import static NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT - public class OperationDescriptorsTest { + p...
Increased code coverage of OperationDescriptors
<nb> public class ImUrlActivity extends Activity { } void handleIntent ( ) { + ContentResolver cr = getContentResolver ( ) ; long providerId = - NUMBER0 ; <nb> public class ImUrlActivity extends Activity { Cursor cursorProvider = initProviderCursor ( ) ; - if ( cursorProvider == null || cursorPr...
fix cursor closed issue with intent API
<nb> public abstract class AuthConfigFactory { STRING0 ; private static AuthConfigFactory factory ; - private static ClassLoader contextClassLoader ; - - static { - SINGLE - contextClassLoader = AccessController . doPrivileged ( new PrivilegedAction < ClassLoader > ( ) { - @ override - public ClassL...
Avoid the memory leak
<nb> public class ColumnIndexer dos . writeInt ( bufOut . getLength ( ) ) ; COMMENT dos . write ( bufOut . getData ( ) , NUMBER0 , bufOut . getLength ( ) ) ; - + + COMMENT TypeInfo typeInfo = DatabaseDescriptor . getTypeInfo ( columnFamily . name ( ) ) ; doIndexing ( typeInfo , columns , dos ) ; }
Added some comments in the code
<nb> public class InstrumentedExecutorService implements ExecutorService { private < T > Collection < ? extends Callable < T > > instrument ( Collection < ? extends Callable < T > > tasks ) { final List < InstrumentedCallable < T > > instrumented = new ArrayList < InstrumentedCallable < T > > ( tasks . size ( ) ) ;...
Adding a generic parameter
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT public class NoOpOAuthRememberMeServices implements OAuthRememberMeServices { - public Map < String , OAuthConsumerToken > loadRememberedTokens ( HttpServletRequest request , Http...
add javadocs to NoOpOAuthRememberMeServices
<nb> public class ClusterServiceTests extends ElasticsearchIntegrationTest { invoked1 . await ( ) ; final CountDownLatch invoked2 = new CountDownLatch ( NUMBER0 ) ; for ( int i = NUMBER1 ; i <= NUMBER2 ; i ++ ) { - clusterService . submitStateUpdateTask ( Integer . toString ( i ) , new ClusterStateUpdateTask ( ...
TEST only mark the event as processed when its out of its execution
<nb> public class TestWebSocketFrameClient extends TomcatBaseTest { SINGLE SINGLE - handler . getLatch ( ) . await ( NUMBER0 , TimeUnit . SECONDS ) ; + handler . getLatch ( ) . await ( NUMBER1 , TimeUnit . SECONDS ) ; List < String > messages = handler . getMessages ( ) ; Assert . assertEquals (
Give test longer to complete as it appears to need more time on CI system
<nb> public class SettingsHelper { } else { Uri canonicalUri = Uri . parse ( value ) ; ringtoneUri = mContext . getContentResolver ( ) . uncanonicalize ( canonicalUri ) ; + if ( ringtoneUri == null ) { + SINGLE + return ; + } } final int ringtoneType = Settings . System . RINGTONE . equals ( name ) ...
Handle the case where the restore environment doesn t have the ringtone
<nb> public class TemporaryJobBuilder { return this ; } + public TemporaryJobBuilder volume ( final String path , final String source ) { + this . builder . addVolume ( path , source ) ; + return this ; + } + public TemporaryJobBuilder host ( final String host ) { this . hosts . add ( host ) ; ret...
Add volume method to TemporaryJobBuilder
<nb> public class LookupImpl extends LightweightHint implements Lookup , Disposable { return ; } + final PsiFile file = getPsiFile ( ) ; + if ( file != null && ! WriteCommandAction . ensureFilesWritable ( myProject , Arrays . asList ( file ) ) ) { + return ; + } + ApplicationManager . getApplication (...
ensure file s writable on completion
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; public final clas...
Fix timezone issue while writing dates in Hive
<nb> public class DynamicURLConfigurationTestWithFileURL { @ test public void testFileURLWithPropertiesUpdatedDynamically ( ) throws IOException , InterruptedException { - File file = new File ( STRING0 ) ; + File file = File . createTempFile ( STRING1 , STRING2 ) ; populateFile ( file , STRING3 , STRING4 )...
Use an actually temp file rather than appending to the existing temp file every time
<nb> public abstract class AbstractExternalProjectSettingsControl < S extends ExternalP @ override public void apply ( @ notnull S settings ) { settings . setUseAutoImport ( myUseAutoImportBox . isSelected ( ) ) ; + myInitialSettings . setUseAutoImport ( myUseAutoImportBox . isSelected ( ) ) ; if ( myInitialS...
Make apply button enabled at settings dialog only if there are changes
<nb> public class Workbench implements BusyHandler , FileDialogs fileDialogs , FileTypeRegistry fileTypeRegistry , ConsoleDispatcher consoleDispatcher , + WorkbenchNewSession newSession , Provider < GitState > pGitState , ChooseFile chooseFile , SINGLE AskPassManager askPass , SINGLE <nb> public class W...
create WorkbenchNewSession via injection
<nb> public class HeartbeatFailureDetector return tasks . size ( ) ; } + @ managed + public int getActiveCount ( ) + { + return tasks . size ( ) - getFailed ( ) . size ( ) ; + } + public Map < ServiceDescriptor , Stats > getStats ( ) { ImmutableMap . Builder < ServiceDescriptor , Stats > builder...
Expose number of live nodes
<nb> public class Stream { return ( disabled != null && disabled ) ; } - @ jsonignore private AlertsResponse getAlertsInformation ( int since ) throws APIException , IOException { if ( alertsResponse == null ) { ApiRequestBuilder < AlertsResponse > call = api . path ( routes . StreamAlertResource ( ) . li...
Remove JsonIgnore on private method
<nb> public class Liquibase { this . update ( new Contexts ( contexts ) ) ; } COMMENT - COMMENT + COMMENT COMMENT COMMENT public void update ( Contexts contexts ) throws LiquibaseException {
Fixed javadoc spelling error