diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - - import NAMESPACE ; COMMENT COMMENT COMMENT <nb> public class ReflectionHelper Exception failed = null ; for ( String fieldName : fieldNames ) { - String remappedField = FMLDeobfuscatingRemapper . INSTANCE . mapFieldName ( clazz...
should help some reflection cases with the deobf
<nb> public class ODocument extends ORecordAbstract implements Iterable < Entry < String , COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ODocument extends ORecordAbstract implements Iterable < Entry < String , COMMENT COMMENT - COMMENT + COMMENT COMMENT CO...
improve javadoc for merge methods
<nb> public class GestureController implements View . OnTouchListener { protected boolean onDown ( @ nonnull MotionEvent e ) { stopFlingAnimation ( ) ; - if ( mSettings . isEnabled ( ) && isAnimatingState ( ) ) { - SINGLE - SINGLE - stopStateAnimation ( ) ; - mIsRestrictZoomRequested = true ; - } ...
Do not stop state animation on touch
<nb> import NAMESPACE ; public class TestNonIntegerPrimaryKeySpec { @ primarykey - @ columnspec ( constraints = STRING0 ) + @ columnspec ( name = STRING1 , constraints = STRING0 ) String key ; String value ;
Fix a column name warning in the unit tests generated by our own validation
<nb> public class AWTLoader implements AssetLoader { private void flipImage ( short [ ] img , int width , int height , int bpp ) { int scSz = ( width * bpp ) / NUMBER0 ; scSz /= NUMBER1 ; SINGLE - byte [ ] sln = new byte [ scSz ] ; + short [ ] sln = new short [ scSz ] ; int y2 = NUMBER2 ; for ( int y1 = N...
fixed arraycopy buffer overflow error for Shorts in AWTLoader
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; @ suppresslint ( STRING0 ) - public class PreferenceActivity extends ActionBarActivity { + public class PreferenceActivity extends AppCompatActivity { pu...
PreferenceActivity extend AppCompatActivity
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
fix merge issue
<nb> public class TachyonWorker implements Runnable { Command cmd = null ; while ( ! mStop ) { long diff = System . currentTimeMillis ( ) - lastHeartbeatMs ; - int hbIntervaltMs = mTachyonConf . getInt ( Constants . WORKER_TO_MASTER_HEARTBEAT_INTERVAL_MS , + int hbIntervalMs = mTachyonConf . getInt ( Constant...
Fix typo on local var name
<nb> public class JedisClusterTest extends Assert { assertEquals ( NUMBER0 , jme . getSlot ( ) ) ; assertEquals ( new HostAndPort ( STRING0 , NUMBER1 ) , jme . getTargetNode ( ) ) ; } + fail ( ) ; } @ test ( expected = JedisAskDataException . class )
Add fail in case test doesn t throw any exception
<nb> public class IdleStateHandler extends ChannelHandlerAdapter { } } + COMMENT + COMMENT + COMMENT + COMMENT + public long getReaderIdleTimeInMillis ( ) { + return readerIdleTimeMillis ; + } + + COMMENT + COMMENT + COMMENT + COMMENT + public long getWriterIdleTimeInMillis ( ) { + ret...
Add getters for the specified timeout values
<nb> public class PackageManagerService extends IPackageManager . Stub { subDir = nativeLibraryRoot ; } - int copyRet = NativeLibraryHelper . copyNativeBinariesIfNeededLI ( handle , - subDir , Build . SUPPORTED_ABIS [ abi ] ) ; + int copyRet = NativeLibraryHelper . copyNativeBinariesIfNeededLI ( handle , su...
Use the correct ABI list while copying native libs
<nb> public class Color { COMMENT COMMENT COMMENT - public static float toIntBits ( int r , int g , int b , int a ) { + public static int toIntBits ( int r , int g , int b , int a ) { return ( a < < NUMBER0 ) | ( b < < NUMBER1 ) | ( g < < NUMBER2 ) | r ; - } COMMENT
fixed Color toIntBits so it returns int instead of float
<nb> public class DependencyManager implements InstallShinyEvent . Handler Dependency . cranPackage ( STRING0 , STRING1 ) , Dependency . cranPackage ( STRING2 , STRING3 ) , Dependency . cranPackage ( STRING4 , STRING5 ) , - Dependency . cranPackage ( STRING6 , STRING7 ) , Dependency . embeddedPackage ( STRING...
remove dependency on XML package for rmarkdown
<nb> public class DeskShareApplet extends JApplet implements ClientListener { private void createAndShowGUI ( final String warning ) { JOptionPane . showMessageDialog ( null , warning , - STRING0 , + STRING1 , JOptionPane . ERROR_MESSAGE ) ; stop ( ) ; }
change java version dialog title to explicitly tell the user that it is an error
<nb> public class StringMemory extends Memory { case STRING : return toString ( ) . equals ( memory . toString ( ) ) ; case OBJECT : case ARRAY : return false ; + case BOOL : return memory . equal ( this . value ) ; default : return equal ( memory . toValue ( ) ) ; } }
Fix stackoverflow bug in StringMemory equal with booleans
<nb> public abstract class DruidAbstractDataSource extends WrapperAdapter implements public final static boolean DEFAULT_TEST_ON_BORROW = false ; public final static boolean DEFAULT_TEST_ON_RETURN = false ; public final static boolean DEFAULT_WHILE_IDLE = true ; - public static final long DEFAULT_TIME_BETWEEN_E...
fixed minEvictableIdleTimeMillis timeBetweenEvictionRunsMillis default
<nb> public class RoutingHelper { @ override public void run ( ) { for ( IRouteInformationListener l : listeners ) { - l . newRouteIsCalculated ( updateRoute , suppressTurnPrompt ) ; + l . newRouteIsCalculated ( updateRoute , true ) ; } } } ) ;
try l newRouteIsCalculated updateRoute true
<nb> public class WebView extends AbsoluteLayout return WebView . this . getHorizontalScrollbarHeight ( ) ; } + public void super_onDrawVerticalScrollBar ( Canvas canvas , Drawable scrollBar , + int l , int t , int r , int b ) { + WebView . super . onDrawVerticalScrollBar ( canvas , scrollBar , l , t , r , ...
Add super_onDrawVerticalScrollBar to WebView PrivateAccess
<nb> public class Moco { } public static MocoMonitor log ( final String filename ) { - return new LogMonitor ( new DefaultLogFormatter ( ) , new FileLogWriter ( filename ) ) ; + return new LogMonitor ( new DefaultLogFormatter ( ) , new FileLogWriter ( checkNotNullOrEmpty ( filename , STRING0 ) ) ) ; } p...
checked filename not null in log publish interface
<nb> public class ObjCMemberPlugin extends AbstractCompilerPlugin { public static final String PROPERTY = STRING0 + OBJC_ANNOTATIONS_PACKAGE + STRING1 ; public static final String BIND_SELECTOR = STRING0 + OBJC_ANNOTATIONS_PACKAGE + STRING2 ; public static final String NOT_IMPLEMENTED = STRING0 + OBJC_ANNOTATIONS...
Fixed up IBAction IBOutlet annotation descriptors
<nb> public class KMeans extends Request { @ override protected Response serve ( ) { try { - if ( destination_key . record ( ) . _originalValue . equals ( source_key . record ( ) . _originalValue ) ) + if ( destination_key . record ( ) . _originalValue != null && destination_key . record ( ) . _originalValue ...
Fixed a NullPointer bug when dest key set to default
<nb> package NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class SuffixTrie < C extends CharSequence > extends Trie < C > { @ override public boolean add ( C key ) { + SINGLE return false ; } }
Added some comments
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT @ supportedannotationtypes ( { STRING0 } ) + @ supportedsourceversion ( So...
Fix compiler warnings
<nb> public class DutchSRXSentenceTokenizerTest extends TestCase { testSplit ( STRING0 ) ; SINGLE - testSplit ( STRING1 ) ; - testSplit ( STRING2 ) ; - testSplit ( STRING3 ) ; - testSplit ( STRING4 ) ; - testSplit ( STRING5 ) ; + testSplit ( STRING6 , STRING7 ) ; + testSplit ( STRING8 , STRING9 ) ; ...
Fixed tests with multiple sentences
<nb> class DisplayContent { for ( int tokenNdx = tokens . size ( ) - NUMBER0 ; tokenNdx >= NUMBER1 ; -- tokenNdx ) { AppWindowToken wtoken = tokens . get ( tokenNdx ) ; if ( wtoken . mDeferRemoval ) { + stack . mExitingAppTokens . remove ( wtoken ) ; wtoken . mDeferRemoval = false ; mService . removeAppFrom...
Eliminate misleading warning
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + public class MemoryUsedSampleable implements ...
Removed unused import
<nb> public final class Sets { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT public static < E > SetView < E > union ( final Set < ? extends E > set1 , final Set < ? extends E > set2 ) { checkNotNull ( set1 , STRING0 ) ;
Remove incorrect javadoc regarding passing the smaller Set first from Sets union
<nb> public class SkylarkRuleClassFunctions { } builder . setConfiguredTargetFunction ( implementation ) ; - builder . setRuleDefinitionEnvironment ( ( SkylarkEnvironment ) funcallEnv ) ; + builder . setRuleDefinitionEnvironment ( + ( ( SkylarkEnvironment ) funcallEnv ) . getGlobalEnvironment ( ) ) ; retu...
Fix bug that prevented functions generating rules
<nb> public class RoutingService extends AbstractLifecycleComponent < RoutingService > i @ override protected void doStop ( ) throws ElasticSearchException { if ( scheduledRoutingTableFuture != null ) { scheduledRoutingTableFuture . cancel ( true ) ; + scheduledRoutingTableFuture = null ; } clusterService ....
nullify the updater on stop
<nb> public class FeedUtils { public static List < Long > getSortedTimestamps ( List < FeedEntry > entries ) { List < Long > timestamps = Lists . newArrayList ( ) ; - int i = NUMBER0 ; for ( FeedEntry entry : entries ) { timestamps . add ( entry . getUpdated ( ) . getTime ( ) ) ; - i ++ ; - if ( i >= NU...
use all timestamps available to build average time
<nb> public class InspectionResultsViewComparator implements Comparator { } private static int compareEntities ( final RefEntity entity1 , final RefEntity entity2 ) { + if ( entity1 != null && entity2 != null ) { + final int nameComparison = entity1 . getName ( ) . compareToIgnoreCase ( entity2 . getName ( ) ...
compare element name before line number to get consistent results for files containing multiple classes
<nb> public class MethodDefinition { StringIdItem [ ] _parameterNames = debugInfoItem . getParameterNames ( ) ; if ( _parameterNames != null ) { for ( StringIdItem parameterName : _parameterNames ) { - parameterNames . add ( parameterName . getStringValue ( ) ) ; + parameterNames . add ( parameterName == null...
Add check for null parameterName value
<nb> public class XsltUriResolver implements URIResolver { String scheme = ResourceHelper . getScheme ( href ) ; if ( scheme != null ) { SINGLE - if ( STRING0 . equals ( scheme ) || STRING1 . equals ( scheme ) ) { + if ( STRING0 . equals ( scheme ) ) { + SINGLE href = FileUtil . compactPath ( href ) ; +...
xslt component has problem loading resource from classpath on windows
<nb> public class PyExtractSuperclassDialog extends UpDirectedMembersMovingDialog { super . doOKAction ( ) ; } + @ override + public JComponent getPreferredFocusedComponent ( ) { + return myExtractedSuperNameField ; + } + protected JPanel createNorthPanel ( ) { Box box = createBox ( ) ; box . add ...
preferred focused component
<nb> public class GithubPullRequest { @ mandatory private String ref ; @ mandatory private String sha ; - @ mandatory private GithubRepo repo ; + private GithubRepo repo ; @ mandatory private GithubUser user ; @ notnull <nb> public class GithubPullRequest { return sha ; } - @ notnull + @ nul...
anchors of pull requests might not have a reporitory
<nb> public class Job < T extends Keyed > extends Keyed { COMMENT COMMENT public static boolean isRunning ( Key job_key ) { - Job j = DKV . get ( job_key ) . get ( ) ; - assert j != null : STRING0 ; - return j . isRunning ( ) ; + Value j = DKV . get ( job_key ) ; + assert j != null : STRING1 ; + retur...
Fix assertion for Job isRunning
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class AnalysisModule extends AbstractModule { private final Settings settings ; - private final List < AnalysisBinderProcessor > processors = Lists . n...
change the addition of analysis processors to override the default ones
<nb> public abstract class StaticTypeCheckingSupport { lock . writeLock ( ) . unlock ( ) ; lock . readLock ( ) . lock ( ) ; } + } else if ( cachedMethods == null ) { + lock . readLock ( ) . unlock ( ) ; + lock . writeLock ( ) . lock ( ) ; + try { + cachedMethods = getDGMMethods ( registry ) ; + } fina...
If no extension module is found we should still load the DGM methods
<nb> public class DigitalClock extends LinearLayout { } } ) ; } else { - mContext . unregisterReceiver ( this ) ; + try { + mContext . unregisterReceiver ( this ) ; + } catch ( RuntimeException e ) { + SINGLE + } } } } ; <nb> public class DigitalClock extends LinearLayout { digitalClock . se...
Catch exceptions from workaround for OOM
<nb> public class AsyncHttpClient { } COMMENT + COMMENT + COMMENT + COMMENT + public void setTimeout ( int timeout ) { + final BasicHttpParams httpParams = this . httpClient . getParams ( ) ; + ConnManagerParams . setTimeout ( httpParams , timeout ) ; + HttpConnectionParams . setSoTimeout ( httpPara...
add timeout setting
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public final class Main { private static CommandLine parseCli ( String . . . args ) throws ParseException { ...
Replace deprecated PosixParser with DefaultParser
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; ...
remove unused imports
<nb> public class MetaContactChatPanel private void sendSmsMessage ( String text ) { OperationSetSmsMessaging smsOpSet = null ; + COMMENT Contact contact = null ; Iterator contacts = metaContact . getContacts ( ) ; <nb> public class MetaContactChatPanel return ; } - + COMMENT SINGLE Iterat...
change some sms interface behavior
<nb> public class InitialContext extends InitialLdapContext { try { final Class < ? > factoryClass = Class . forName ( factoryClassName , true , classLoader ) ; defaultInitCtx = ( ( javax . naming . spi . InitialContextFactory ) factoryClass . newInstance ( ) ) . getInitialContext ( myProps ) ; + } catch ( Nami...
avoid wrap of naming exceptions
<nb> public class SimpleTypedSet implements TypedSet { private static final float FILL_RATIO = FLOAT0 ; - public static final long FOUR_MEGABYTES = new DataSize ( NUMBER0 , MEGABYTE ) . toBytes ( ) ; + private static final long FOUR_MEGABYTES = new DataSize ( NUMBER0 , MEGABYTE ) . toBytes ( ) ; private f...
Make SimpleTypedSet FOUR_MEGABYTES private
<nb> public class FloatingActionButton extends ImageButton { return mType ; } + public boolean isVisible ( ) { + return mVisible ; + } + protected AbsListView . OnScrollListener getOnScrollListener ( ) { return mOnScrollListener ; }
Add the isVisible getter
<nb> public class MainActivity extends AppCompatActivity implements View . OnClickListe case R . id . tiny_window : jcVideoPlayerStandard . startWindowTiny ( ) ; break ; + case R . id . auto_tiny_window : + startActivity ( new Intent ( MainActivity . this , AutoTinyActivity . class ) ) ; + break ; case R ...
start auto tiny activity
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AgentBuilderDefaultApplicationSuperTypeLoadingTest { public MethodRule agentAttachmentRule = new AgentAttachmentRule ( ) ; ...
Removed unused rule
<nb> public final class GsmDataConnectionTracker extends DataConnectionTracker { if ( apnContext . getPendingAction ( ) == ApnContext . PENDING_ACTION_RECONNECT ) { apnContext . setPendingAction ( ApnContext . PENDING_ACTION_NONE ) ; } - trySetupData ( apnContext ) ; + SINGLE + SINGLE + SINGLE + sendMes...
Delay data reconnection after disconnected
<nb> public class DummyTransformingCompiler implements JavaSourceTransformingCompiler } ) ; context . getProgressIndicator ( ) . setText ( STRING0 + url ) ; try { - FileOutputStream fos = new FileOutputStream ( new File ( url ) ) ; - DataOutput out = new DataOutputStream ( new BufferedOutputStream ( fos ) ) ;...
correctly close stream
<nb> public class RestAdapter { } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Tweak RestAdapter documentation for accuracy
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ViewFilePanel extends Composite implements TextDisplay panel . add ( lblCaption ) ; new FullscreenPopupPanel ( panel , as...
set focus to ace on load of file viewer
<nb> public class QueryStateMachine recordDoneStats ( ) ; - failureCause . compareAndSet ( null , toFailure ( throwable ) ) ; boolean failed = queryState . setIf ( FAILED , currentState - > ! currentState . isDone ( ) ) ; if ( failed ) { log . debug ( throwable , STRING0 , queryId ) ; + failureCause . c...
Only abort transaction if query actually failed
<nb> public class CubeMapMaterial extends AAdvancedMaterial { STRING0 + STRING1 + STRING2 + - STRING3 + STRING4 + STRING5 + <nb> public class CubeMapMaterial extends AAdvancedMaterial { STRING6 + STRING7 + STRING8 + - STRING9 + STRING10 + M_FOG_VERTEX_DENSITY + STRING11 ; <nb> public cla...
Remove unused varying from cube map shader
<nb> public class ClientChannelHandler extends SimpleChannelUpstreamHandler { SINGLE if ( producer . getConfiguration ( ) . isTextline ( ) ) { - System . out . println ( STRING0 + body ) ; body = producer . getContext ( ) . getTypeConverter ( ) . mandatoryConvertTo ( String . class , exchange , body ) ; }
Removed system out println
<nb> public class RabbitMQConsumer extends DefaultConsumer { consumer . getProcessor ( ) . process ( exchange ) ; long deliveryTag = envelope . getDeliveryTag ( ) ; - log . trace ( STRING0 , deliveryTag ) ; - channel . basicAck ( deliveryTag , false ) ; + if ( consumer . endpoint . isAutoAck ( ) ) { + log...
rabbitmq component sends basic ack after channel closed when endpoint is set to autoAck
<nb> import NAMESPACE ; public class SearchCoreFactory { - SINGLE - SINGLE SINGLE SINGLE - SINGLE SINGLE <nb> public class AmenityIndexRepositoryBinary implements AmenityIndexRepository { @ override public boolean checkContainsInt ( int top31 , int left31 , int bottom31 , int right31 ) {...
Fix issue with poi search
<nb> public abstract class AbstractSamlObjectBuilder { try { final MarshallerFactory marshallerFactory = Configuration . getMarshallerFactory ( ) ; final Marshaller marshaller = marshallerFactory . getMarshaller ( object ) ; - final Element element = marshaller . marshall ( object ) ; + element . setAttribu...
added support for samlp
<nb> public class MethodAnalyzer { deodexedOpcode = Opcode . INVOKE_VIRTUAL_RANGE ; } - Instruction3rc deodexedInstruction = new ImmutableInstruction3rc ( deodexedOpcode , instruction . getRegisterCount ( ) , - instruction . getStartRegister ( ) , resolvedMethod ) ; + Instruction3rc deodexedInstruction = ne...
Fix issue with deodexing invoke virtual quick range
<nb> public class ShadowContentResolver { private HashMap < Uri , TestCursor > uriCursorMap = new HashMap < Uri , TestCursor > ( ) ; public static class NotifiedUri { - Uri uri ; - boolean syncToNetwork ; - ContentObserver observer ; + public final Uri uri ; + public final boolean syncToNetwork ; + pu...
Need public access
<nb> - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT package NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; - im...
Fix test to reflect Path variable on windows instead of PATH
<nb> public abstract class NetworkParameters implements Serializable { public static final String PAYMENT_PROTOCOL_ID_TESTNET = STRING0 ; COMMENT public static final String PAYMENT_PROTOCOL_ID_UNIT_TESTS = STRING1 ; + public static final String PAYMENT_PROTOCOL_ID_REGTEST = STRING2 ; SINGLE <nb> public ...
Give regtest a payment protocol ID too
<nb> public class TreeTest extends TestCase { Tree t = Tree . valueOf ( STRING0 , new LabeledScoredTreeReaderFactory ( new TreeNormalizer ( ) ) ) ; assertNull ( STRING1 , t . label ( ) . value ( ) ) ; - String answer = STRING2 + - STRING3 + - STRING4 + - STRING5 + - STRING6 ; + String answer = STRING7...
Make TreeTest cross platform also from markwoon
<nb> public class MountSetting extends ResponseSetting { } public ResponseHandler getResponseHandler ( ) { - return this . asResponsSetting ( ) . getResponseHandler ( ) ; + return this . asResponseSetting ( ) . getResponseHandler ( ) ; } @ override <nb> public class MountSetting extends ResponseSettin...
added response to mount setting
<nb> public class MenuBuilder implements Menu { || shortcutChar == possibleChars . meta [ NUMBER0 ] || ( qwerty && shortcutChar == STRING0 && keyCode == KeyEvent . KEYCODE_DEL ) ) && - item . isEnabled ( ) ) { + item . isEnabled ( ) && + item . isVisible ( ) ) { items . add ( item ) ; } }
Check MenuItem isVisible for keyboard shortcuts
<nb> public class AssetManager implements Disposable { AssetErrorListener listener = null ; int loaded = NUMBER0 ; int toLoad = NUMBER0 ; + + final FileHandleResolver resolver ; Logger log = new Logger ( STRING0 , Application . LOG_NONE ) ; <nb> public class AssetManager implements Disposable { COMM...
Added final reference to the FileHandleResolver for which an AssetManager was created using
<nb> class StatementAnalyzer . distinct ( ) . collect ( toImmutableList ( ) ) ; - SINGLE - if ( ! aggregates . isEmpty ( ) || ! allGroupingColumns . isEmpty ( ) ) { + SINGLE + SINGLE + SINGLE + if ( ! aggregates . isEmpty ( ) || ! groupingSets . isEmpty ( ) ) { SINGLE SINGLE SINGLE
Fix analysis of queries with GROUP BY
<nb> import NAMESPACE ; public class AndroidSchedulerTransformer < T > implements SchedulerTransformer < T > { @ override public Observable < T > call ( Observable < T > observable ) { - return observable . subscribeOn ( Schedulers . newThread ( ) ) . observeOn ( AndroidSchedulers . mainThread ( ) ) ; + retur...
Rx uses io scheduler
<nb> public class LabelAdjust extends AbstractLayout implements Layout { double label_occupied_height = FLOAT0 * ( ( n1 . getNodeData ( ) . getTextData ( ) . getHeight ( ) ) + n2 . getNodeData ( ) . getTextData ( ) . getHeight ( ) ) ; boolean collision = ( xDist < label_occupied_width && yDist < label_occupied_heig...
Debug Label Adjust algorithm
<nb> public class NativeCodeGenerator { COMMENT COMMENT public void generate ( ) throws Exception { - generate ( STRING0 , STRING1 , STRING2 , new String [ NUMBER0 ] , new String [ NUMBER0 ] ) ; + generate ( STRING0 , STRING1 , STRING2 , null , null ) ; } COMMENT
fixed tiny bug in NativeCodeGenerator generate
<nb> COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class DefaultProxyTransfer implements ProxyTransfer { private long amountWritten ; + private static final int BUFFER_SIZE = NUMBER0 ; + public DefaultProxyTransfer ( ) { } <nb> public c...
Increased proxy transfer buffer size
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CustomStyleSpan extends MetricAffectingSpan { if ( family != null ) { typeface = ReactFontManager . getInstance ( ) . getTypeface (...
Fix typeface getting applied recursively without new style
<nb> public class IntegerColumnReference extends FieldCacheExpression < IndexNumericFie case NUMBER0 : return null ; case NUMBER1 : - return ( ( Long ) values . nextValue ( ) ) . intValue ( ) ; + return ( int ) values . nextValue ( ) ; default : throw new GroupByOnArrayUnsupportedException ( columnName ( ...
avoid boxing in IntegerColumnReference
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; @ suppresswarnings ( STRING0 ) public final class ABTestEventReportingService { <nb> public final class ABTestEventReportingService { } ) . start ( ) ; } - public void pushAllUnreportedABTestEve...
Don t report retention if statistics tracking turned off
<nb> public class ExtensionComponentAdapter extends ConstructorInjectionComponentAdap if ( myPluginDescriptor . getPluginClassLoader ( ) != null ) { classLoader . add ( myPluginDescriptor . getPluginClassLoader ( ) ) ; } - XStream xStream = new XStream ( ) ; + XStream xStream = new XStream ( new PropertyRefle...
Fixed lost reflection provider
<nb> public class LoanBroker extends RouteBuilder { SINGLE . multicast ( new BankResponseAggregationStrategy ( ) . setAggregatingOutMessage ( true ) ) SINGLE - . setParallelProcessing ( true ) . to ( STRING0 , STRING1 , STRING2 ) ; + . parallelProcessing ( true ) . to ( STRING0 , STRING1 , STRING2 ) ; SIN...
Revert earlier fix I just needed to rebuild camel core
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
adding youtube link
<nb> public class ExtendedEntityManager extends AbstractEntityManager implements Seri } public void containerClose ( ) { - underlyingEntityManager . close ( ) ; + if ( underlyingEntityManager . isOpen ( ) ) { + underlyingEntityManager . close ( ) ; + } } @ override
only close the extended persistence context if its still open
<nb> class AbstractTreeUi { public void treeCollapsed ( TreeExpansionEvent e ) { TreePath path = e . getPath ( ) ; final DefaultMutableTreeNode node = ( DefaultMutableTreeNode ) path . getLastPathComponent ( ) ; - if ( isSelectionInside ( node ) ) { - SINGLE - ApplicationManager . getApplication ( ) . invok...
got rid of dirty invokeLater hack in trees
<nb> public class CursorWindow extends SQLiteClosable implements Parcelable { } acquireReference ( ) ; try { - nativeCopyStringToBuffer ( mWindowPtr , row , column , buffer ) ; + nativeCopyStringToBuffer ( mWindowPtr , row - mStartPos , column , buffer ) ; } finally { releaseReference ( ) ; }
Fix copyStringToBuffer row index calculation
<nb> public class AnalyticsTrackerNosara extends Tracker { break ; case EDITOR_ADDED_PHOTO_VIA_WP_MEDIA_LIBRARY : eventName = STRING0 ; - predefinedEventProperties . put ( STRING1 , STRING2 ) ; + predefinedEventProperties . put ( STRING1 , STRING3 ) ; break ; case EDITOR_PUBLISHED_POST : eventName = STR...
rename property to match the iOS project
<nb> public final class TextWithImportsImpl implements TextWithImports { SINGLE SINGLE s = StringUtil . convertLineSeparators ( s ) ; - String [ ] split = s . split ( String . valueOf ( STRING0 ) ) ; + String [ ] split = s . split ( STRING1 ) ; return Trinity . create ( split [ NUMBER0 ] , split . length > ...
removed useless string conversion
<nb> public class SimpleRealmProxy extends Simple { row . setLong ( Realm . columnIndices . get ( STRING0 ) . get ( STRING1 ) , ( long ) value ) ; } - @ override - public int getObject_id ( ) { - realm . checkIfValid ( ) ; - return ( int ) row . getLong ( Realm . columnIndices . get ( STRING0 ) . get ( ST...
Fix annotations processor tests
<nb> public class NodeJSAPIGenerator { } public void generateNodeJSFiles ( List < ApiImplementor > implementors ) throws IOException { - for ( ApiImplementor imp : ApiGeneratorUtils . getAllImplementors ( ) ) { + for ( ApiImplementor imp : implementors ) { this . generateNodeJSComponent ( imp ) ; } }
Fix incorrect generation of Node js API for non default API implementors
<nb> SINGLE SINGLE SINGLE + SINGLE package NAMESPACE ; <nb> public class Model { COMMENT public Session newSession ( ) { session = new Session ( this ) ; + SINGLE + session . saveContext ( session . getNewContext ( Constant . messages . getString ( STRING0 ) ) ) ; return session ; } <n...
Persist the default context on new sessions
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT public interface ClassInjector { COMMENT <nb> public class ClassReloadingStrategy implements ClassLoadingStrategy { } } + COMMENT + COMMENT + COMMENT static class Enabled implements ...
Added missing javadoc
<nb> public class PacketParserUtils { presence . setPriority ( priority ) ; } catch ( NumberFormatException nfe ) { } + catch ( IllegalArgumentException iae ) { + SINGLE + presence . setPriority ( NUMBER0 ) ; + } } else if ( elementName . equals ( STRING0 ) ) { presence . setMode ( Presence . Mode ....
Assume Presence priority to be zero when priority is out of range
<nb> public class AprSocket implements Runnable { setStatus ( CONNECTED ) ; if ( context . sslMode ) { - Socket . timeoutSet ( socket , context . connectTimeout * NUMBER0 ) ; + Socket . timeoutSet ( socket , + context . connectTimeout * NUMBER1 ) ; blockingStartTLS ( ) ; } setNonBlocking ( ) ; SINGLE
Fix Findbugs warning
<nb> public class SegmentedRaftLog extends LifecycleAdapter implements RaftLog @ override public long readEntryTerm ( long logIndex ) throws IOException { - log . info ( STRING0 , logIndex , state . prevIndex , state . prevTerm ) ; if ( logIndex == state . prevIndex ) { return state . prevTerm ;
Remove noisy logging
<nb> public class AtmosphereResponse implements HttpServletResponse { setStatus ( sc , msg ) ; asyncIOWriter . writeError ( this , sc , msg ) ; } else { - _r ( ) . sendError ( sc , msg ) ; + if ( ! _r ( ) . isCommitted ( ) ) { + _r ( ) . sendError ( sc , msg ) ; + } else { + logger . trace ( STRING0 ) ;...
Prevent annoying IEException
<nb> public class Benchmarks extends TestCase { COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Benchmarks extends TestCase { COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + ...
Updated Windows results removal of digest
<nb> public abstract class AWSEmailNotifier implements MonkeyEmailNotifier { request . setReturnPath ( sourceAddress ) ; LOGGER . debug ( String . format ( STRING0 , subject , to ) ) ; - SendEmailResult result = sesClient . sendEmail ( request ) ; + SendEmailResult result = null ; + try { + result = sesCl...
Add debug information when failing to send Janitor email
<nb> final class GraphHandler implements HttpRpc { final int max_age , final String basepath ) throws IOException { final String cachepath = basepath + ( query . hasQueryStringParam ( STRING0 ) - ? STRING1 : STRING2 ) ; + ? STRING3 : STRING2 ) ; final File cachedfile = new File ( cachepath ) ; if ( cached...
Use the extension
<nb> public abstract class BundleBase { return messageOrDefault ( bundle , key , null , params ) ; } - @ nullable public static String replaceMnemonicAmpersand ( @ nullable final String value ) { - if ( value == null ) + if ( value == null ) { + SINGLE return null ; + } + if ( value . indexOf ( ...
npe in replaceMnemonicAmpersand allow null arguments
<nb> public class TestHelper { Realm . deleteRealmFile ( context , newName ) ; TestHelper . copyRealmFromAssets ( context , realmPath , newName ) ; } - s + public static class StubInputStream extends InputStream { @ override public int read ( ) throws IOException {
Fixed merge mistake
<nb> public class FilterTests extends ElasticsearchIntegrationTest { . endObject ( ) ) ) ; } indexRandom ( true , builders . toArray ( new IndexRequestBuilder [ builders . size ( ) ] ) ) ; + ensureGreen ( ) ; } @ test <nb> public class ValueCountTests extends ElasticsearchIntegrationTest { } client ...
add more ensureGreen to aggs tests
<nb> public final class Calendar { COMMENT COMMENT public static final String OWNER_ACCOUNT = STRING0 ; + + COMMENT + COMMENT + COMMENT + COMMENT + public static final String DELETED = STRING1 ; } COMMENT
Add deleted row to Events table
<nb> public class SpringFactory implements ObjectFactory { public SpringFactory ( ) { stepDefContext = new StaticApplicationContext ( ) ; + stepDefContext . refresh ( ) ; appContext = new ClassPathXmlApplicationContext ( new String [ ] { STRING0 } , stepDefContext ) ; }
Initialize StaticApplicationContext in SpringFactory
<nb> public class OObjectEntitySerializer { fieldName = p . getName ( ) ; - List < String > classTransientFields = transientFields . get ( pojoClass ) ; + List < String > classTransientFields = transientFields . get ( currentClass ) ; if ( ( idField != null && fieldName . equals ( idField . getName ( ) ) ...
Stopped serializing transient fields where fields marked with JPA
<nb> package NAMESPACE ; import static NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMMENT
Removed useless import