diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class LayoutTypePortletImpl String oldColumnId = itr . next ( ) ; if ( ! newColumns . contains ( oldColumnId ) ) { - String oldColumnValue = - ( String ) getTypeSettingsProperties ( ) . remove ( oldColumnId ) ; + String oldColumnValue = getTypeSettingsProperties ( ) . remove ( + oldColumnId ) ...
Remove unnecessary cast
<nb> public class VcsLogGraphTable extends JBTable implements DataProvider , CopyProvi } else { CommitId commitId = myLogDataHolder . getCommitId ( commit ) ; - balloonText = STRING0 + STRING1 + commitId . getHash ( ) . toShortString ( ) + STRING2 + commitId . getRoot ( ) . getName ( ) ; + balloonText = STRIN...
vcs log show root name in tooltip only in multi root case
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; - import static NAMESPACE ; public class XmlASTFactory extends ASTFactory { public C...
depend on interface instead of implementation class
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT + COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Add note about getMultiUserChat in MUC s javadoc
<nb> public class RouteResultPreparation { SINGLE int prevLanes = countLanesMinOne ( prevSegm ) ; - if ( prevLanes <= NUMBER0 ) { - prevLanes = NUMBER1 ; - } t . setLanes ( attachTurnLanesData ( prevSegm , new int [ prevLanes ] ) ) ; <nb> public class TurnType { } public static boolean isSligh...
Fix slight turn definition and remove redundant lines
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class InputMethodInfo implements Parcelable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public InputMethodInfo (...
Fix style issues in InputMethodInfo java
<nb> public class Context { Storage newStorage = null ; Exception error = null ; try { - Class < ? > clazz = Class . forName ( STRING0 ) ; + Class < ? > clazz = Class . forName ( STRING1 ) ; newStorage = ( Storage ) clazz . getConstructor ( ) . newInstance ( ) ; } catch ( ClassNotFoundException e ) { lo...
put ContextStorageOverride in io grpc override
<nb> public class InputMethodManagerService extends IInputMethodManager . Stub SINGLE SINGLE Slog . i ( TAG , STRING0 + curInputMethodId ) ; + mStatusBar . setIMEButtonVisible ( mCurToken , false ) ; if ( ! chooseNewDefaultIMELocked ( ) ) { changed = true ; curIm = null ; <nb> public class InputMethodMa...
Save input method subtype even if the current IME is not running
<nb> public class DirectChannelBufferFactory extends AbstractChannelBufferFactory { } public ChannelBuffer getBuffer ( ByteBuffer nioBuffer ) { - if ( nioBuffer . isDirect ( ) ) { + if ( ! nioBuffer . isReadOnly ( ) && nioBuffer . isDirect ( ) ) { return ChannelBuffers . wrappedBuffer ( nioBuffer ) ; }
DirectChannelBufferFactory getBuffer ByteBuffer must not return a read only buffer
<nb> public final class BuildRuleFactoryParams { public final BuildTargetPatternParser buildTargetPatternParser ; public final BuildTarget target ; private final ParseContext buildFileParseContext ; - private final ParseContext visibilityParseContext ; private final boolean ignoreFileExistenceChecks ; priva...
Remove the unused BuildRuleFactoryParams parseVisibilityTarget method
<nb> public class SyslogProcessor { lm = parse ( msg , remoteAddress ) ; } catch ( Exception e ) { parsingFailures . mark ( ) ; - LOG . error ( STRING0 , e ) ; + LOG . warn ( STRING0 , e ) ; return ; } <nb> public class SyslogProcessor { SINGLE if ( msg . getDate ( ) == null ) { if ( config . ge...
change syslog processor log levels
<nb> public class ExecutionConfig implements Serializable { private static final long serialVersionUID = NUMBER0 ; - SINGLE - public static final String CONFIG_KEY = STRING0 ; - COMMENT COMMENT COMMENT
hotfix Remove leftover config key constant from ExecutionConfig
<nb> public class PythonTestRunConfigurationsConverter extends ConversionProcessor < Ru final String confType = element . getAttributeValue ( STRING0 ) ; final String factoryName = ourTypeToFactoryNameMap . get ( confType ) ; if ( factoryName != null ) { - element . setAttribute ( STRING0 , PythonTestConfigurat...
fixed missed id in python test configuration converter
<nb> import NAMESPACE ; import NAMESPACE ; - SINGLE - SINGLE - SINGLE - SINGLE public class DefaultCursorAdapter extends SimpleCursorAdapter implements DemoAdapter {
Removes outdated comments
<nb> public class KeyMap commandToNodeMap_ . get ( command ) . add ( node ) ; } + public void setBindings ( KeySequence keys , BindableCommand command ) + { + clearBindings ( command ) ; + addBinding ( keys , command ) ; + } + + public void setBindings ( List < KeySequence > keyList , BindableComman...
add setBindings helper functions
<nb> public class SlidingLayer extends FrameLayout { public void onClosed ( ) ; } + private void notifyActionStartedForState ( int state ) { + + switch ( state ) { + case STATE_CLOSED : + mOnInteractListener . onClose ( ) ; + break ; + + case STATE_PREVIEW : + mOnInteractListener . onShowPreview...
Remove duplicated code
<nb> class WebContextLifecycleInterceptor extends AbstractLifecycleInterceptor implem switch ( state ) { case Bundle . ACTIVE : try { - injectBundleContext ( activator . getServletContext ( ) , bundle . getBundleContext ( ) ) ; if ( ! activator . start ( NUMBER0 , TimeUnit . SECONDS ) ) { throw new Lifecycl...
Don t get the servlet context till after the deployment is started
<nb> public class GCDocument extends JInternalFrame { getContentPane ( ) . add ( new JPanel ( ) , constraints ) ; } scaleModelChart ( ) ; - revalidate ( ) ; + invalidate ( ) ; } private void lockChartsToOneScrollbar ( final JViewport viewport , final boolean lastMaximizedChartPanelView , final ModelChar...
fix small refresh problem
<nb> public class ParallelAction extends Action { try { Array < Action > actions = this . actions ; for ( int i = NUMBER0 , n = actions . size ; i < n && actor != null ; i ++ ) { - if ( ! actions . get ( i ) . act ( delta ) ) complete = false ; + if ( currentAction . getActor ( ) != null && ! currentAction . ...
Fix problem with running already finished actions by ParallelAction
<nb> public class JavaScriptAggregatorFactory implements AggregatorFactory @ override public AggregatorFactory apply ( String input ) { - return new JavaScriptAggregatorFactory ( name , Arrays . asList ( input ) , fnAggregate , fnReset , fnCombine ) ; + return new JavaScriptAggregatorFactory ( input , Arrays ...
fix bugs wtih js and card aggs
<nb> public class ResourceBundleMessageSource extends AbstractMessageSource implement } } - private String getStringOrNull ( ResourceBundle bundle , String key ) { - try { - return bundle . getString ( key ) ; - } - catch ( MissingResourceException ex ) { - SINGLE - SINGLE - return null ; + COMM...
ResourceBundleMessageSource checks containsKey before calling getString
<nb> final class RowSeq implements DataPoints { qualifiers [ index ] = qualifier ; values [ index ] = extractLValue ( qualifier , kv ) ; if ( index > NUMBER0 && timestamp ( index - NUMBER1 ) >= timestamp ( index ) ) { - LOG . error ( STRING0 + timestamp ( index ) - + STRING1 + timestamp ( index - NUMBER1 ) ...
Fix another off by one in a comparison
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PreferenceActivity extends SherlockPreferenceActivity { return true ; } + @ override + protected void onApplyThemeResource ( Theme theme , int resid , boo...
Revert Revert PreferenceActivity now applies its theme correctly
<nb> public class UserImpl implements User , Cacheable { else { SINGLE roster = new CachedRosterImpl ( username ) ; - CacheManager . getCache ( STRING0 ) . put ( username , roster ) ; + CacheManager . getCache ( STRING1 ) . put ( username , roster ) ; } return roster ; }
Fixed NPE retrieving the user s roster
<nb> public class IdeEventQueue extends EventQueue { } boolean mouseEventsAhead = isMouseEventAhead ( e ) ; - boolean focusTransferred = IdeFocusManager . getGlobalInstance ( ) . isFocusBeingTransferred ( ) ; + boolean focusTransferredNow = IdeFocusManager . getGlobalInstance ( ) . isFocusBeingTransferred ( )...
wrong condition when evaluating if to fix null focused component
<nb> public class DiffIterableUtil { @ notnull public static FairDiffIterable fair ( @ notnull DiffIterable iterable ) { + if ( iterable instanceof FairDiffIterable ) return ( FairDiffIterable ) iterable ; FairDiffIterable wrapper = new FairDiffIterableWrapper ( iterable ) ; verifyFair ( wrapper ) ; retur...
remove unnecessary wrapping into FairDiffIterable
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Replace mention of BOBS in class javadoc with SPVBlockChain
<nb> COMMENT package NAMESPACE ; - import static NAMESPACE ; - - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ...
Switch statement found where one case falls through to the next case
<nb> public class TaskStack implements DimLayer . DimLayerUser , Rect bounds = null ; final TaskStack dockedStack = mService . mStackIdToStack . get ( DOCKED_STACK_ID ) ; if ( mStackId == DOCKED_STACK_ID - || ( dockedStack != null && StackId . isResizeableByDockedStack ( mStackId ) ) ) { + || ( dockedStack !=...
Fix squished UI elements
<nb> package NAMESPACE ; import NAMESPACE ; - public class JavaExtensions { + public interface JavaExtensions { - private JavaExtensions ( ) { - } - - public static void require ( boolean condition , String message ) throws IllegalStateException { + static void require ( boolean condition , String...
Create interfaces for Extensions with static methods by convention
<nb> public final class TieredBlockStore implements BlockStore { mMetadataReadLock . unlock ( ) ; } - if ( ! oldLocation . equals ( srcLocation ) && ! oldLocation . equals ( BlockStoreLocation . anyTier ( ) ) ) { + if ( ! srcLocation . belongTo ( oldLocation ) ) { throw new NotFoundException ( STRING0 + blo...
use belongTo to compare the current location and the oldLocation
<nb> public abstract class StatsAbsListViewFragment extends StatsAbsViewFragment impl } Fragment fragment = getFragment ( NUMBER0 ) ; - getChildFragmentManager ( ) . beginTransaction ( ) . add ( R . id . stats_pager_container , fragment ) . commit ( ) ; + getChildFragmentManager ( ) . beginTransaction ( ) . r...
FredrichO fixed multiple fragments in stats lists on tablet
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Replace calls to deprecated HttpTransport send
<nb> public class K9MailLib { } } - public static interface DebugStatus { + public interface DebugStatus { boolean enabled ( ) ; boolean debugSensitive ( ) ; <nb> public class K9MailLib { debugStatus = status ; } - private static interface WritableDebugStatus extends DebugStatus { + private ...
Remove unneeded static modifier
<nb> public abstract class AbstractLocalTachyonCluster { protected BlockWorker mWorker ; protected LineageWorker mLineageWorker ; - protected UnderFileSystemCluster mUfsCluster = null ; + protected UnderFileSystemCluster mUfsCluster ; protected String mTachyonHome ; protected String mHostname ;
Remove unnecessary initialization
<nb> public class Response implements java . io . Serializable { } } if ( null != saxe ) { - throw new TwitterException ( STRING0 , saxe ) ; + throw new TwitterException ( STRING1 + responseString , saxe ) ; } return response ; }
modified Response java to improve debuggability
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DruidDataSource extends DruidAbstractDataSource implements DruidDat dataMap . put ( STRING0 , this . getDataSourceStat ( ) . getConnection...
fixed compile error add clobStat
<nb> public class ArrayRenderer extends NodeRendererImpl { if ( ! myForced && END_INDEX < array . length ( ) - NUMBER0 ) { SINGLE - builder . setRemaining ( array . length ( ) - END_INDEX ) ; + builder . setRemaining ( array . length ( ) - NUMBER0 - END_INDEX ) ; } } }
more items specifies wrong value
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <nb> import static NAMESPACE ; public class FileAttributesNio2ReadingTest extends FileAttributesReadingTest { @ beforeclass public static void setUpClass ( ) throws Exce...
Fix test expectations
<nb> public enum AndroidExcludedRefs { } } , + MEDIA_SCANNER_CONNECTION ( SDK_INT <= LOLLIPOP_MR1 ) { + @ override void add ( ExcludedRefs . Builder excluded ) { + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + excluded . instanceField ( STRING0 , STRING1 ) ; + } + } , + DEVICE_POLICY_MANAGE...
Ignore MediaScannerConnection leak
<nb> public class ResultSetViewer extends Viewer log . error ( e ) ; } - if ( row . isChanged ( ) && row . changes . containsKey ( attr ) ) { + if ( row . getState ( ) == ResultSetRow . STATE_REMOVED || ( row . changes != null && row . changes . containsKey ( attr ) ) ) { manager . insertAfter ( IResultSetC...
Rest cell value command enablement fix
<nb> public abstract class CacheAspectSupport extends AbstractCacheInvoker } catch ( NoUniqueBeanDefinitionException ex ) { throw new IllegalStateException ( STRING0 + - STRING1 ) ; + STRING2 + + STRING3 ) ; } catch ( NoSuchBeanDefinitionException ex ) { throw new IllegalStateException ( STRING4 +
Improve exception message
<nb> public class CalendarResourceServiceTest { nameMap . put ( LocaleUtil . getDefault ( ) , name ) ; - CalendarResource calendarResource = - CalendarResourceLocalServiceUtil . addCalendarResource ( - _user . getUserId ( ) , _user . getGroupId ( ) , classNameId , NUMBER0 , - PortalUUIDUtil . generate ( )...
remove unused variable
<nb> public class PyEditingTest extends PyTestCase { STRING0 , STRING1 + STRING2 + - STRING3 ) ; + STRING4 ) ; } private void doTestEnter ( String before , final String after ) {
fixed test for editing
<nb> public class DashRule extends GermanRule { public RuleMatch [ ] match ( final AnalyzedSentence text ) { final List < RuleMatch > ruleMatches = new ArrayList < RuleMatch > ( ) ; final AnalyzedTokenReadings [ ] tokens = text . getTokensWithoutWhitespace ( ) ; - int pos = NUMBER0 ; String prevToken = null ;...
remove unused variable
<nb> public class TrackerService extends Service { } private boolean doDebugLogging ( ) { - return getPreferences ( ) . getBoolean ( DEBUG_PREF , true ) ; + return getPreferences ( ) . getBoolean ( DEBUG_PREF , false ) ; } private boolean trackSignalStrength ( ) { - return getPreferences ( ) . getBool...
Fix default values for debug and signal strength logging
<nb> public class BootstrapClassLoaderUtil extends ClassUtilCore { UrlClassLoader . Builder builder = UrlClassLoader . build ( ) . urls ( filterClassPath ( classpath ) ) . allowLock ( ) . useCache ( ) ; - if ( Boolean . valueOf ( System . getProperty ( PROPERTY_ALLOW_BOOTSTRAP_RESOURCES , STRING0 ) ) ) { + if...
Can t find com sun xml internal messaging saaj soap LocalStrings bundle
<nb> public class PythonAllTestsSuite { PyRegexpTest . class , PyAddImportTest . class , PyPathEvaluatorTest . class , - PyBlockEvaluatorTest . class + PyBlockEvaluatorTest . class , + PyDocstringTest . class } ; public static TestSuite suite ( ) {
Added PyDocstringTest to all tests suite
<nb> public class ColorPicker extends View { @ override protected void onDraw ( Canvas canvas ) { - mColorWheelRectangle . set ( - mColorWheelRadius , - mColorWheelRadius , mColorWheelRadius , - mColorWheelRadius ) ; - canvas . translate ( mTranslationOffset , mTranslationOffset ) ; canvas . drawOval ( ...
Initialize mColorWheelRectangle in onMeasure not onDraw
<nb> public class Cache < K , V > { COMMENT protected long now ( ) { SINGLE + SINGLE return entriesExpireAfterAccess || entriesExpireAfterWrite ? System . nanoTime ( ) : NUMBER0 ; }
Clarify use of System nanoTime for measuring eviction times
<nb> public class CombineHiveInputFormat < K extends WritableComparable , V extends Writ long targetSize = ( long ) ( totalSize * nameToSamples . get ( entry . getKey ( ) ) . getPercent ( ) / NUMBER0 D ) ; int startIndex = nameToSamples . get ( entry . getKey ( ) ) . getSeedNum ( ) % splitList . size ( ) ; - in...
TableSample percent uses int to store the intermediate size need to use long instead
<nb> public class KeyguardUpdateMonitor implements TrustManager . TrustListener { @ override public void onUserSwitchComplete ( int newUserId ) throws RemoteException { mHandler . sendMessage ( mHandler . obtainMessage ( MSG_USER_SWITCH_COMPLETE , - newUserId ) ) ; + newUserId , NUMBER0 ) ) ; mSwitchingUser...
Auto dismiss lockscreen when switching to guest
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IvyXmlModuleDescriptorParser implements ModuleDescriptorParser { } public void warning ( SAXParseException ex ) { - Mes...
Replaced usage of Ivy Message in recently copied code with Logger
<nb> package NAMESPACE ; + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
add license header
<nb> public final class ZXingTestActivity extends Activity { result . append ( STRING0 ) . append ( Build . VERSION . SDK_INT ) . append ( STRING1 ) ; CharSequence flattened = getFlattenedParams ( ) ; - String [ ] params = SEMICOLON . split ( flattened ) ; - Arrays . sort ( params ) ; - for ( String param :...
Avoid NPE for camera with no params
<nb> public class SelectBase extends AbstractBaseTest { } @ test + @ excludein ( CUBRID ) public void Order_NullsFirst ( ) { query ( ) . from ( survey ) . orderBy ( survey . name . asc ( ) . nullsFirst ( ) ) <nb> public class SelectBase extends AbstractBaseTest { } @ test + @ excludein ( CUBRID ...
Exclude nulls first and nulls last tests for CUBRID
<nb> public class LoaderScriptWrapper { COMMENT FaunusVertex . class . getCanonicalName ( ) , FaunusEdge . class . getCanonicalName ( ) , - TitanGraph . class . getCanonicalName ( ) , - Mapper . Context . class . getCanonicalName ( ) , + Mapper . class . getCanonicalName ( ) , FaunusProperty . class . get...
Updating Faunus incr
<nb> public interface Player extends HumanEntity , CommandSender , OfflinePlayer { COMMENT COMMENT public void setDisplayName ( String name ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public String getListName ( ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + CO...
Added Player get setListName to change the name of the player on the player list
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - @ suppresswarnings ( { STRING0 , STRING1 } ) + @ suppresswarnings ( { STRING0 , STRING1 , STRING2 } ) public class SpringExpressionsParser extends Parser { public static final String [ ] tokenNames = new String [ ] { STRING3 , STRING4 , STRIN...
Suppress unchecked warning in generated code
<nb> final class DataTableTopComponent extends TopComponent implements AWTEventListen SINGLE ProjectController pc = Lookup . getDefault ( ) . lookup ( ProjectController . class ) ; - if ( pc . getCurrentWorkspace ( ) == null ) { + Workspace workspace = pc . getCurrentWorkspace ( ) ; + if ( workspace == null...
Debug available columns selection in data laboratory
<nb> public class WebViewActivity extends WPActionBarActivity { ab . setDisplayShowTitleEnabled ( true ) ; ab . setDisplayHomeAsUpEnabled ( true ) ; + SINGLE + SINGLE + SINGLE mWebView = ( WebView ) findViewById ( R . id . webView ) ; - mWebView . getSettings ( ) . setUserAgentString ( WordPress . getUs...
Removed setUserAgentString from webViews that display external content
<nb> public class StringList implements Iterable < String > { } + public StringList ( Object . . . items ) { + count = items . length ; + data = new String [ count ] ; + int index = NUMBER0 ; + for ( Object o : items ) { + SINGLE + SINGLE + SINGLE + SINGLE + if ( o != null ) { SINGLE + data ...
add StringList Object constructor
<nb> public class CalendarView extends View { SINGLE SINGLE - calendar . setTime ( getCoercedDate ( calendar . getTime ( ) , calendarDate ) ) ; + calendar . setTime ( getCoercedDate ( new Date ( ) , calendarDate ) ) ; SINGLE if ( currentHighlightDay == - NUMBER0 ) { currentHighlightDay = calendarDate . ...
Fixed a bug where calendar would sometimes draw incorrectly
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DatabaseDescriptor public static Set < InetAddress > getSeeds ( ) { - return Collections . unmodifiableSet ( new HashSet < InetAddress > (...
use ImmutableSet instead of unmodifiableSet
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove import statement
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; <nb> public class JIoEndpoint extends AbstractEndpoint { SINGLE COMMENT - COMMENT - COMMENT - @ override - public boolean setProperty ( String name , String value ) { ...
Remove unnecessary code
<nb> public abstract class BaseOutputWriter implements OutputWriter { } COMMENT - COMMENT + COMMENT COMMENT protected String cleanupStr ( String name ) { if ( name == null ) { <nb> public abstract class BaseOutputWriter implements OutputWriter { } String clean = name . replace ( STRING0 , STRING1 ...
remove all double single quotes
<nb> public class LexicalizedParser extends ParserGrammar implements Serializable { COMMENT COMMENT COMMENT + SINGLE public void saveParserToTextFile ( String filename ) { if ( reranker != null ) { throw new UnsupportedOperationException ( STRING0 ) ;
Add a todo
<nb> public class OperatorMergeDelayErrorTest { public void call ( Subscriber < ? super Integer > t1 ) { try { t1 . onNext ( NUMBER0 ) ; - t1 . onNext ( NUMBER1 ) ; } catch ( Throwable swallow ) { } + t1 . onNext ( NUMBER1 ) ; t1 . onCompleted ( ) ; } } ) ;
Fix last test case
<nb> class InternalStreamConnection implements InternalConnection { connectionIdFromServer = e . getCommandResult ( ) . getResponse ( ) . getInteger ( STRING0 ) ; } id = STRING1 + connectionIdFromServer ; - } catch ( Exception e ) { + } catch ( MongoCommandFailureException e ) { id = STRING2 + incrementingI...
Catching only command failure exceptions when getting connection id and failing
<nb> import NAMESPACE ; 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 N...
loozing exception handling
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MasterFaultToleranceIntegrationTest { } } + SINGLE + @ ignore @ test public void faultTest ( ) throws IOException , TException { i...
Disable failing test in hdfs ufs mode
<nb> public class IoUtils { } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo in Javadocs
<nb> public class ExecutionTimeLimitTest public void expectLimitationByHeader ( ) { wait = NUMBER0 ; - Client . create ( ) . resource ( STRING0 ) + Client . create ( ) . resource ( STRING1 ) . header ( STRING2 , STRING3 ) . header ( STRING4 , STRING5 ) . get ( String . class ) ; <nb> public class Exec...
use other test port
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix method name in Javadoc
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE @ clusterscope ( numDataNodes = NUMBER0 , scope = Scope . SUITE ) public class InternalEngineMergeIT extends ESIntegTestCase { ...
Debug log on testMergesHappening
<nb> public class VersionedIntervalTimelineTest ) ; } + @ test + public void testNotFoundReturnsEmpty ( ) throws Exception + { + timeline = makeStringIntegerTimeline ( ) ; + + add ( STRING0 , STRING1 , NUMBER0 ) ; + + Assert . assertTrue ( timeline . lookup ( Interval . parse ( STRING2 ) ) . isEmp...
Add missing timeline test for VersionedIntervalTimelineTest
<nb> extends BaseTest < A , AP , B , S , B2S , BS , L , X , DATE , BOOL , D , T , U , UU , I , IPK , T7 . fetch ( ) ; assertEquals ( NUMBER0 , result2 . size ( ) ) ; - assertEquals ( asList ( NUMBER1 , NUMBER0 ) , result2 . getValues ( TBook_ID ( ) ) ) ; - assertEquals ( asList ( STRING0 , STRING1 ) , result2...
Fixed failing integration test
<nb> public class JavaSmartCompletionContributor extends CompletionContributor { return ; } if ( parent instanceof PsiParenthesizedExpression ) { - context . setDummyIdentifier ( STRING0 ) ; SINGLE + context . setDummyIdentifier ( CompletionUtil . DUMMY_IDENTIFIER_TRIMMED + STRING1 + CompletionUtil . DUMMY_ID...
use the default dummy identifier instead of xxx in smart completion
<nb> class TextEnterer { { public void run ( ) { + editText . setInputType ( NUMBER0 ) ; if ( text . equals ( STRING0 ) ) editText . setText ( text ) ; else {
Removed soft keyboard while entering text
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OrientElementIterable < T extends Element > implements CloseableIterab } public Iterator < T > iterator ( ) { + if ( iterable == null ) + return Collections . emptyIterator ( ) ; + return ne...
supported unique indexes
<nb> public class Tsurgeon { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Tsurgeon { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT CO...
Add some comments on auxiliary trees to tsurgeon
<nb> public final class Phone { } private void checkCallTree ( ParcelableCall parcelableCall ) { - if ( parcelableCall . getParentCallId ( ) != null && - ! mCallByTelecomCallId . containsKey ( parcelableCall . getParentCallId ( ) ) ) { - Log . wtf ( this , STRING0 , - parcelableCall . getId ( ) , parcelab...
Remove check for missing parent calls
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT
Remove invalid dependency
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractHazelcastClassRunner extends BlockJUnit4ClassRunne @ override protected List < FrameworkMethod > getChildr...
changed LinkedList to ArrayList for random access
<nb> interface Parser extends Supplier < Parser > { final Integer endIndex = tokens . isEmpty ( ) ? null : tokens . get ( tokens . size ( ) - NUMBER0 ) . getValue ( ) . endIndex ( ) ; return Option . of ( endIndex ) ; } - - SINGLE - static int length ( List < Node < Token > > tokens ) { - if ( tokens . is...
Removed unused code
<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 ;
Removing unnecessary imports
<nb> public class SnapshotsService extends AbstractComponent implements ClusterStateL ShardRouting primary = indexRoutingTable . shard ( i ) . primaryShard ( ) ; if ( primary == null || ! primary . assignedToNode ( ) ) { SINGLE - builder . put ( shardId , new SnapshotMetaData . ShardSnapshotStatus ( primary . c...
Fix possible NPE in snapshot service if a shard doesn t have primary
<nb> public class NetworkScoreManager { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT + @ systemapi public boolean setActiveScorer ( String packageName ) throws SecurityException { try { return mService . setActiveSc...
Allow apps with SCORE_NETWORKS to set the active scorer
<nb> public abstract class Model extends Iced { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
reflow long comments
<nb> public abstract class DB { public DBCollection getCollectionFromString ( String s ) { DBCollection foo = null ; - while ( s . contains ( STRING0 ) ) { - int idx = s . indexOf ( STRING0 ) ; + int idx = s . indexOf ( STRING0 ) ; + while ( idx >= NUMBER0 ) { String b = s . substring ( NUMBER0 , idx ) ...
remove unneeded calls to String contains
<nb> public abstract class InstanceRegistry implements LeaseManager < InstanceInfo > , COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT @ deprecated public Applications getApplicationDeltas ( ) {
Fix up typos in documentation in InstanceRegistry
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Added missing semicolon
<nb> public class OQueryOperatorContains extends OQueryOperatorEqualityNotNulls { if ( iLeft instanceof Collection < ? > ) { - final Collection < ORecordSchemaAware < ? > > collection = ( Collection < ORecordSchemaAware < ? > > ) iLeft ; + final Collection < Object > collection = ( Collection < Object > ) iLe...
Fixed issue on CONTAINS operator
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class OverridingClassLoader extends DecoratingClassLoader { COMMENT p...
Refined default excluded packages
<nb> public class AddActivity extends BaseNavDrawerActivity implements OnAddShowListe getMenu ( ) . setContentView ( R . layout . addactivity_pager ) ; + setupActionBar ( ) ; + + setupViews ( ) ; + } + + private void setupActionBar ( ) { final ActionBar actionBar = getSupportActionBar ( ) ; action...
Move action bar and view init to separate methods
<nb> public final class Client { private String mResourcePath ; COMMENT private int mNumWorkers ; - COMMENT - private String mTachyonHome ; COMMENT private String mMasterAddress ; COMMENT
Remove unused field
<nb> public class Query checkNotNull ( groupBy , STRING0 ) ; checkNotNull ( orderBy , STRING1 ) ; checkNotNull ( where , STRING2 ) ; - checkNotNull ( where , STRING3 ) ; - checkNotNull ( where , STRING4 ) ; + checkNotNull ( having , STRING3 ) ; + checkNotNull ( limit , STRING4 ) ; this . select = sele...
Fix broken preconditions
<nb> import NAMESPACE ; @ immutable public final class PackageIdentifier implements Comparable < PackageIdentifier > , Serializable { - private static final Interner < PackageIdentifier > INTERNER = Interners . newStrongInterner ( ) ; + private static final Interner < PackageIdentifier > INTERNER = Interners ...
Replace strong interning with weak interning for better GC
<nb> public class FMLNetworkHandler netLoginHandler . completeConnection ( STRING0 ) ; return ; } + else + { + SINGLE + FMLLog . fine ( STRING1 , userName ) ; + return ; + } } switch ( loginStates . get ( netLoginHandler ) )
Fix bug causing NPE if non whitelisted player joins an FML server without FML installed