diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class BaseClientDetails implements ClientDetails { public int hashCode ( ) { final int prime = NUMBER0 ; int result = NUMBER1 ; - result = prime * result + accessTokenValiditySeconds ; - result = prime * result + refreshTokenValiditySeconds ; + result = prime * result + ( ( accessTokenValiditySe...
remove possible NPE in BaseClientDetails
<nb> public class ConfigurationFrame extends JFrame COMMENT COMMENT public void showDialog ( ) { + ConfigurationForm configForm + = ( ConfigurationForm ) this . configContainer . get ( NUMBER0 ) ; + + this . formScrollPane . getViewport ( ) . removeAll ( ) ; + + this . formScrollPane . getViewport ( )...
select the first configuration form in the list when showing the configuration frame
<nb> public abstract class ProcessorDefinition < Type extends ProcessorDefinition > exte return children ; } + COMMENT + COMMENT + COMMENT + COMMENT + public boolean addOutputObject ( Object node ) { + if ( node instanceof ProcessorDefinition ) { + addOutput ( ( ProcessorDefinition ) node ) ; + re...
added a helper method to make it easy to build up camel routes generically with reflection from inside Scala code
<nb> public final class SerializerCompressionDeflateWrapper < E > implements GroupSerial return serializer . valueArrayDeleteValue ( vals , pos ) ; } - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE @ override public boolean equals ( E a1 , E a2 ) {
Remove test TODO
<nb> public class WindowManagerService extends IWindowManager . Stub w . mContentChanged = false ; SINGLE - if ( w . mHasSurface && ! w . isHiddenFromUserLocked ( ) ) { + if ( w . mHasSurface ) { SINGLE final boolean committed = winAnimator . commitFinishDrawingLocked ( ) ; <nb> public class WindowMan...
Fixed issue with background user window consuming touch events
<nb> public class DumbServiceImpl extends DumbService implements Disposable { @ override public void waitForSmartMode ( ) { - final Application application = ApplicationManager . getApplication ( ) ; - if ( ! application . isUnitTestMode ( ) ) { - assert ! application . isDispatchThread ( ) ; - if ( appli...
allow waitForSmartMode invocations on EDT
<nb> class EntityWriter < E extends S , S > implements ParameterBinder < E > { filterBindable = new Predicate < Attribute < E , ? > > ( ) { @ override public boolean test ( Attribute < E , ? > value ) { - return list . contains ( value ) || value == versionAttribute ; + return list . contains ( value ) || +...
Add check for system version column in update fix
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - public final class ReaderException extends Exception { + + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + public final class ReaderException extends java . lang . Throwable { public ReaderException ( String messa...
Made some temporary changes to make throwing ReaderExceptions more efficient
<nb> public abstract class ReduceFunction < T > extends AbstractFunction implements Gene COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Updated JavaDocs of ReduceFunction
<nb> public class StatefulSessionSynchronizationInterceptor extends AbstractEJBInterc STRING0 + statefulSessionComponentInstance ) ; } statefulSessionComponentInstance . afterCompletion ( status == Status . STATUS_COMMITTED ) ; + SINGLE + transactionKey = null ; SINGLE releaseInstance ( statefulSessionCom...
Fix race condition
<nb> final class DatagramServerHandler extends VertxHandler < DatagramSocketImpl > { } @ override - public void handlerAdded ( ChannelHandlerContext ctx ) throws Exception { - super . handlerAdded ( ctx ) ; - } - - @ override protected DatagramSocketImpl getConnection ( Channel channel ) { return so...
Removed redundant method
<nb> public final class PartitionAwareKey < K , P > implements PartitionAware < Object > , Dat this . partitionKey = ValidationUtil . isNotNull ( partitionKey , STRING0 ) ; } + SINGLE + private PartitionAwareKey ( ) { + } + public K getKey ( ) { return key ; }
Added no arg constructor to PartitionAwareKey for deserialization
<nb> public class XaLogicalLog } long version = findLogContainingTxId ( txId ) ; + System . out . println ( STRING0 + txId + STRING1 + version ) ; if ( version == - NUMBER0 ) { throw new RuntimeException ( STRING2 + txId + STRING3 +
Added a System out for debugging
<nb> public final class CalendarContract { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public static final String CALENDAR_COLOR_INDEX = STRING0 ; <nb> public final class CalendarContract { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT public s...
Fix immenent build breakage
<nb> public final class ListStatusOptions { COMMENT COMMENT public ListStatusOptions ( ListStatusTOptions options ) { - mLoadMetadataType = LoadMetadataType . fromThrift ( options . getLoadMetadataType ( ) ) ; + mLoadMetadataType = LoadMetadataType . Once ; + if ( options . isSetLoadMetadataType ( ) ) { +...
Fix a backward compatiblity issue
<nb> public final class RingBuffer < E > implements Cursored , DataProvider < E > COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT @ suppresswarnings ( STRING0 ) public E get ( long sequence ) <nb> public final class RingBuffer < E > implements Cursored , DataProvider < E > COMMENT COMMENT ...
Remove deprecated methods
<nb> public class FileConsumerJpaIdempotentTest extends ContextTestSupport { protected RouteBuilder createRouteBuilder ( ) throws Exception { return new RouteBuilder ( ) { public void configure ( ) throws Exception { - from ( STRING0 ) . to ( STRING1 ) ; + from ( STRING2 ) . to ( STRING1 ) ; } } ; }
Fixed the test error of camel jpa
<nb> class JarLoader extends Loader { private void initPackageCache ( ) throws IOException { myPackages = new HashSet < String > ( ) ; + myPackages . add ( STRING0 ) ; final Enumeration < ? extends ZipEntry > entries = getZipFile ( ) . entries ( ) ; while ( entries . hasMoreElements ( ) ) {
Fixed resource loader
<nb> public class PropertyParser { public String handleToken ( String content ) { if ( variables != null && variables . containsKey ( content ) ) { return variables . getProperty ( content ) ; - } else { - return STRING0 + content + STRING1 ; } + return STRING0 + content + STRING1 ; } } }
removed unnecessary else statement
<nb> public class DatabaseShardManager long partitionId = dao . insertPartition ( tableId , partition ) ; for ( PartitionKey partitionKey : partitionKeys ) { - dao . insertPartitionKey ( tableId , partition , partitionKey . getName ( ) , partitionKey . getType ( ) . toString ( ) , partitionKey . getValue ( ) ) ...
Fix type name handling for Raptor partition keys
<nb> public class JavaGenerator implements CodeGenerator ) ) ; sb . append ( String . format ( - indent + STRING0 + + indent + STRING1 + + indent + STRING2 + indent + STRING3 + indent + STRING4 + indent + STRING5 +
Fix generated output formatting for indentation
<nb> public final class ScribeCollector implements CollectorComponent { COMMENT public static final class Builder implements CollectorComponent . Builder { Collector . Builder delegate = Collector . builder ( ScribeCollector . class ) ; - CollectorMetrics metrics ; + CollectorMetrics metrics = CollectorMetric...
Defaults ScribeCollector to NOOP_METRICS
<nb> public class AsmAnalyzer { try { SINGLE - if ( getClass ( ) . getClassLoader ( ) . loadClass ( className ) != null ) { + if ( className . startsWith ( STRING0 ) || + getClass ( ) . getClassLoader ( ) . loadClass ( className ) != null ) { return ; } } catch ( ClassNotFoundException e ) {
Exclude java namespace classes from layoutlib
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT ...
make toggle soft wraps actions DumbAware
<nb> public class AceEditor implements DocDisplay , widget_ . getEditor ( ) . setKeyboardHandler ( KeyboardHandler . emacs ( ) ) ; else widget_ . getEditor ( ) . setKeyboardHandler ( null ) ; + + SINGLE + widget_ . getEditor ( ) . addKeyboardHandler ( previewer . getKeyboardHandler ( ) ) ; } public St...
bring back previewer
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ; <nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COM...
Fix broken build
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ webservlet ( name = STRING0 , urlPatterns = { STRING1 } ) + @ webservlet ( urlPatterns = { STRING1 } ) public class TestServlet extends HttpServlet { COMMENT
Removing redundant attributes from WebServlet
<nb> public abstract class ConcurrentArrayBlockingQueue < E > extends ConcurrentArrayQue @ override public void put ( E element ) throws InterruptedException { - throw new UnsupportedOperationException ( ) ; + offer ( element ) ; } @ override public boolean offer ( E element , long timeout , TimeUnit ...
Fixed put and timed offer implementations in Unbounded
<nb> public class CommitChangeListDialog extends DialogWrapper implements CheckinProj rootPane . add ( mySplitter , BorderLayout . CENTER ) ; - JComponent browserHeader = myBrowser . getHeaderPanel ( ) ; - myBrowser . remove ( browserHeader ) ; - rootPane . add ( browserHeader , BorderLayout . NORTH ) ; -...
move the changelist selector back
<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 ; <nb> public class StructureViewComponent extends Simp...
update documentation hints on selection changes
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - abstract public class AbstractIterator < E > implements Iterator < E > { + public abstract class AbstractIterator < E > implements Iterator < E > { - abstract public boolean hasNext ( ) ; + COMMENT + @ override + public abstract boolean hasNext ( ) ;...
Correct typos add Override
<nb> public class ClassGenerator extends Generator < ClassStmtToken > { } else { ExtendsStmtToken extend = ( ExtendsStmtToken ) token ; FulledNameToken what = analyzer . generator ( NameGenerator . class ) . getToken ( nextToken ( iterator ) , iterator ) ; + + if ( what == null ) { + unexpectedToken ( exten...
Fix class generator npe
<nb> public final class QueryUtil { } else { final List < String > list = new ArrayList < > ( args . length ) ; - for ( Object arg : args ) { - list . add ( arg . toString ( ) ) ; + for ( int i = NUMBER0 ; i < args . length ; i ++ ) { + list . add ( args [ i ] . toString ( ) ) ; } return list ;
Revert foreach for better performance in java
<nb> public class FontSizeSettings extends K9PreferenceActivity { } ) ; mMessageViewContentSlider . getOnPreferenceChangeListener ( ) . onPreferenceChange ( - mMessageViewContentSlider , new Float ( mMessageViewContentSlider . getValue ( ) ) ) ; + mMessageViewContentSlider , mMessageViewContentSlider . getVal...
Fix bad manual boxing
<nb> public class LRUSoftCacheTest extends TestSupport { } private Object createData ( ) { - SINGLE - byte [ ] buf = new byte [ NUMBER0 * NUMBER1 * NUMBER1 ] ; + SINGLE + byte [ ] buf = new byte [ NUMBER2 * NUMBER1 * NUMBER1 ] ; return buf ; } }
Increased memory due CI servers have high mem for testing
<nb> public class BillingActivity extends BaseActivity { new AlertDialog . Builder ( this ) . setMessage ( getString ( errorResId ) + STRING0 + message ) - . setNeutralButton ( android . R . string . ok , null ) + . setPositiveButton ( android . R . string . ok , null ) . create ( ) . show ( ) ; }
Make billing error dialog dismiss button right aligned
<nb> import NAMESPACE ; COMMENT public class SslCometdProducerConsumerTest extends ContextTestSupport { - private static final String URI = STRING0 + private static final String URI = STRING1 + STRING2 ; protected String pwd = STRING3 ;
Fixed the test error of SslCometdProducerConsumerTest in my windows box
<nb> public final class ContactsContract { COMMENT COMMENT - COMMENT + COMMENT COMMENT public static final Uri CONTENT_SUMMARY_URI = Uri . withAppendedPath ( AUTHORITY_URI , STRING0 ) ; <nb> public final class ContactsContract { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT publi...
Adding contact group NOTES and SYSTEM_ID
<nb> public interface MetricRegistry { COMMENT COMMENT Counter createCounter ( String name ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ deprecated + Counter registerCounter ( String name ) ; } <nb> public class Metrics implements MetricRegistry , MetricProvider { }...
Restore ABI of MetricRegistry
<nb> public class SmartTabLayout extends HorizontalScrollView { mTabStrip . setCustomTabColorizer ( tabColorizer ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void setDefaultTabTextColor ( int color ) { + mTabViewTextColors = ColorStateList . valueOf ( color ) ; + } ...
Add setter for tab text color
<nb> public class WolfTheProblemSolverImpl extends WolfTheProblemSolver { } long progressLimit = NUMBER0 ; for ( VirtualFile file : files ) { - progressLimit += file . getLength ( ) ; SINGLE + if ( file . isValid ( ) ) progressLimit += file . getLength ( ) ; SINGLE } pass . setProgressLimit ( progressLimi...
rev max Skip invalid files in Wolf
<nb> public class SlidingUpPanelLayout extends ViewGroup { SINGLE if ( ady <= dragSlop && adx <= dragSlop - && mSlideOffset >= NUMBER0 && ! isViewUnder ( mSlideableView , ( int ) mInitialMotionX , ( int ) mInitialMotionY ) && mFadeOnClickListener != null ) { + && mSlideOffset > NUMBER0 && ! isViewUnder ( mSli...
Fix a bug with the fadeclicklistener
<nb> public class SearchEverywhereAction extends AnAction implements CustomComponentA @ override public void run ( ) { myCalcThread = new CalcThread ( project , pattern ) ; + myPopupActualWidth = NUMBER0 ; myCurrentWorker = myCalcThread . start ( ) ; } } ) ; <nb> public class SearchEverywhereAction exte...
adjust popup size
<nb> public class JspRuntimeLibrary { SINGLE SINGLE - COMMENT - public static void handleSetPropertyExpression ( Object bean , - String prop , String expression , PageContext pageContext , - VariableResolver variableResolver , FunctionMapper functionMapper ) - throws JasperException - { - try { - ...
Remove unused code
<nb> public class JetDecompiledData { @ notnull public static JetDecompiledData getDecompiledData ( @ notnull VirtualFile virtualFile , @ notnull Project project ) { synchronized ( LOCK ) { - if ( virtualFile . getUserData ( USER_DATA_KEY ) == null ) { + JetDecompiledData cachedData = virtualFile . getUserDat...
Add caching by project to decompiled data
<nb> public class PooledTopNAlgorithm @ override protected void scanAndAggregate ( - PooledTopNParams params , - int [ ] positions , - BufferAggregator [ ] theAggregators , - int numProcessed + final PooledTopNParams params , + final int [ ] positions , + final BufferAggregator [ ] theAggregators , ...
Make some variables in PooledTopNAlgorithm final
<nb> public class BrowseErrorActivity extends Activity handler . postDelayed ( new Runnable ( ) { @ override public void run ( ) { + if ( getFragmentManager ( ) . isDestroyed ( ) ) { + return ; + } getFragmentManager ( ) . beginTransaction ( ) . remove ( mSpinnerFragment ) . commit ( ) ; mErrorFragment ...
Fix NPE if user finishes activity quickly
<nb> public class StyleData implements Style { } @ override public Attribute getAttrValue ( ResName resName ) { - Attribute attribute = items . get ( resName ) ; - - SINGLE - if ( attribute == null && ! STRING0 . equals ( resName . packageName ) ) { - attribute = items . get ( resName . withPackageName ...
Removed hack which seems not necessary all tests pass without it
<nb> import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import static NAMESPACE ; public class ResultTransformerOutputWriter < T extends OutputWriter > extends OutputWriterAdapter { - private static final Logger logger = LoggerFactory . getLogger ( ResultTransformerO...
Removing logging exception logging handled upstream
<nb> public abstract class AbstractTestDistributedQueries assertQuery ( STRING0 , STRING1 ) ; assertQuery ( STRING2 , STRING3 ) ; + assertQueryTrue ( STRING4 ) ; + SINGLE assertQuery ( STRING5 , STRING6 ) ;
Fix Raptor delete test
<nb> public class StopAfterWeightIterator extends PrefetchingIterator < WeightedPath > return null ; } WeightedPath path = new WeightedPathImpl ( costEvaluator , paths . next ( ) ) ; - System . out . println ( STRING0 + path ) ; if ( foundWeight != null && path . weight ( ) > foundWeight ) { return null ;
removing a System out println
<nb> public class SwingUIFacade implements UIFacade { return JOptionPane . showConfirmDialog ( null , STRING0 + StreamUtil . getLineSeparator ( ) + STRING1 + database . getConnection ( ) . getURL ( ) + StreamUtil . getLineSeparator ( ) + STRING2 + database . getConnection ( ) . getConnectionUserName ( ) + StreamU...
Fix typo in dialog box for nonlocal database
<nb> public final class ContactsContract { public static final String CONTENT_ITEM_TYPE = STRING0 ; COMMENT + COMMENT + COMMENT + public static final String CONTENT_TYPE = STRING1 ; + + COMMENT COMMENT COMMENT COMMENT <nb> public final class ContactsContract { public static final Uri CONTENT_L...
Adding CONTENT_TYPE to CommonDataKinds Email
<nb> public class PeriodicGraphUpdater { public void start ( ) { updater = new UpdateTask ( ) ; thread = new Thread ( updater ) ; + SINGLE thread . setDaemon ( false ) ; + SINGLE + thread . setName ( STRING0 ) ; thread . start ( ) ; }
give graph updater thread a name
<nb> public class Peer extends PeerSocketHandler { } } catch ( Throwable t ) { SINGLE - SINGLE - SINGLE + SINGLE + SINGLE log . error ( STRING0 , t ) ; } }
Fix a doc reference to Google Code
<nb> public class TableTripPattern implements TripPattern , Serializable { COMMENT COMMENT List < Stop > retval = new ArrayList < Stop > ( patternHops . length + NUMBER0 ) ; - for ( int i = NUMBER1 ; i < patternHops . length ; i ++ ) + for ( int i = NUMBER1 ; i <= patternHops . length ; i ++ ) retval . add ...
Fixed bug where last stop of TableTripPattern getStops is always null
<nb> public class SignatureChecker { Map < String , String > parsed = new HashMap < String , String > ( ) ; JsonFactory jf = new JsonFactory ( ) ; try { - JsonParser parser = jf . createJsonParser ( jsonmessage ) ; + JsonParser parser = jf . createParser ( jsonmessage ) ; parser . nextToken ( ) ; SINGLE w...
Replace deprecated createJsonParser with createParser
<nb> public class Socket extends Emitter { public static final String EVENT_RECONNECTING = Manager . EVENT_RECONNECTING ; - private static Map < String , Integer > events = new HashMap < String , Integer > ( ) { { + protected static Map < String , Integer > events = new HashMap < String , Integer > ( ) { { ...
Making the events hash protected in Socket class
<nb> public class ConstructorUtils { public PrimitiveAwareVarArgsTransformer ( Constructor < ? > constructor ) { super ( constructor ) ; - defaultInstance = defaultPrimitives . getInstance ( componentType ) ; + defaultInstance = ( componentType != null ) ? defaultPrimitives . getInstance ( componentType ) : n...
Avoid Guava s notnull precondition
<nb> public final class ParseSetup extends Iced { || n . endsWith ( STRING0 ) || n . endsWith ( STRING1 ) || n . endsWith ( STRING2 ) + || n . endsWith ( STRING3 ) || n . endsWith ( STRING4 ) ) { n = n . substring ( NUMBER0 , dot ) ; dot = n . lastIndexOf ( STRING5 ) ;
Adds svm as a file extension to the hex name cleanup
<nb> public class mod_BuildCraftCore extends NetworkMod { x += FLOAT0 ; z += FLOAT0 ; + tessellator . setBrightness ( block . getMixedBrightnessForBlock ( iblockaccess , xCoord , yCoord , zCoord ) ) ; + double s = FLOAT1 ; if ( meta == NUMBER0 ) {
Set the brightness before rendering a marker
<nb> public class SequenceManager { pstmt . execute ( ) ; } finally { - DbConnectionManager . closeConnection ( pstmt , null ) ; + DbConnectionManager . closeStatement ( pstmt ) ; } } } <nb> public class LdapGroupProvider implements GroupProvider { String userDNPart = ldapName . get ( ldapName . siz...
Restructured enterprise tabs a bit
<nb> public class WebSocketUpgradeFilter extends AbstractLifeCycle implements Filter , { try { + alreadySetToAttribute = false ; configuration . stop ( ) ; } catch ( Exception e )
Resetting the field that marks the filter exported as a context attribute
<nb> public class ChunkedWriteHandler implements ChannelUpstreamHandler , ChannelDowns this . currentEvent = null ; currentEvent . getFuture ( ) . setFailure ( t ) ; - t . printStackTrace ( ) ; fireExceptionCaught ( ctx , t ) ; closeInput ( chunks ) ;
Removed unnecessary printStackTrace
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + @ runwith ( HazelcastParallelClassRunner . class ) + @ category ( { QuickTest . class , ParallelTest . class } ) public cl...
Added missing annotations to SizeEstimatorFactoryTest
<nb> public class PackageManagerService extends IPackageManager . Stub { allUsers = sUserManager . getUserIds ( ) ; perUserInstalled = new boolean [ allUsers . length ] ; for ( int i = NUMBER0 ; i < allUsers . length ; i ++ ) { - perUserInstalled [ i ] = ps . getInstalled ( allUsers [ i ] ) ; + perUserInstall...
PackageManager get NPE while running performance plan
<nb> public class PrivacyService { SINGLE if ( mUseCache ) synchronized ( mRestrictionCache ) { + if ( restriction . methodName == null ) { + SINGLE + synchronized ( mRestrictionCache ) { + for ( Hook hook : PrivacyManager . getHooks ( restriction . restrictionName ) ) { + CRestriction key = new CRestri...
Fix service restriction caching
<nb> import NAMESPACE ; COMMENT COMMENT public class Drawer { + COMMENT + COMMENT + COMMENT + COMMENT + private static final String PREF_USER_LEARNED_DRAWER = STRING0 ; + + COMMENT + COMMENT + COMMENT private static final String BUNDLE_SELECTION = STRING1 ; SINGLE <nb> public class Drawe...
use the pref name from the generated DrawerLayout
<nb> public class BasicAuthenticationEntryPoint implements AuthenticationEntryPoint , } public void commence ( HttpServletRequest request , HttpServletResponse response , AuthenticationException authException ) - throws IOException , ServletException { - HttpServletResponse httpResponse = ( HttpServletRespons...
Remove unnecessary local variable
<nb> public class ImageProcessingActivity extends Activity mTest = new Vignette ( true , true ) ; break ; case NUMBER0 : - mTest = new GroupTest ( true ) ; + mTest = new GroupTest ( false ) ; break ; case NUMBER1 : - mTest = new GroupTest ( false ) ; + mTest = new GroupTest ( true ) ; break ; case...
update image processing to fix ScriptGroup names
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DelayedAllocationIT extends ESIntegTestCase { COMMENT COMMENT COMMENT + @ testlogging ( STRING0 ) public void testDelayedAllocationChang...
Increased logging level for testDelayedAllocationChangeWithSettingTo100ms
<nb> public final class JavassistProxyFactory } } - if ( LoggerFactory . getLogger ( getClass ( ) ) . isDebugEnabled ( ) ) { + if ( Boolean . getBoolean ( STRING0 ) ) { targetCt . debugWriteFile ( System . getProperty ( STRING1 ) ) ; } <nb> public final class JavassistProxyFactory } } - if ( L...
Use internal flag to determine whether to persist generated proxy classes
<nb> import NAMESPACE ; public class FailureDetectorConfig { - public static final String DEFAULT_IMPLEMENTATION_CLASS_NAME = ThresholdFailureDetector . class . getName ( ) ; + public static final String DEFAULT_IMPLEMENTATION_CLASS_NAME = BannagePeriodFailureDetector . class . getName ( ) ; public static...
Switched failure detector back to BannagePeriodFailureDetector due to instability with ThresholdFailureDetector
<nb> public class NewChatActivity extends Activity implements View . OnCreateContextMen public void onCreateContextMenu ( ContextMenu menu , View v , ContextMenuInfo menuInfo ) { AdapterContextMenuInfo info = ( AdapterView . AdapterContextMenuInfo ) menuInfo ; mContextMenuHandler . mPosition = info . position ; ...
Only show resend context menu on outgoing messages
<nb> public class TestNGTestClassProcessor implements TestClassProcessor { if ( ! suiteFiles . isEmpty ( ) ) { testNg . setTestSuites ( GFileUtils . toPaths ( suiteFiles ) ) ; - + SINGLE + SINGLE Object rootId = idGenerator . generateId ( ) ; TestDescriptorInternal rootSuite = new DefaultTestSuiteDescri...
Added some code documentation
<nb> public final class ByteBuffer2 { } public void sync ( ) { + if ( inMemory ) return ; for ( ByteBuffer b : buffers ) { if ( b != null && ( b instanceof MappedByteBuffer ) ) { ( ( MappedByteBuffer ) b ) . force ( ) ;
Fix close method with DirectMemory storage
<nb> import NAMESPACE ; COMMENT public class LocalSocket implements Closeable { - private LocalSocketImpl impl ; + private final LocalSocketImpl impl ; private volatile boolean implCreated ; private LocalSocketAddress localAddress ; private boolean isBound ;
Make a field final
<nb> public class ConferenceInfoDocument throw ( e ) ; } - conferenceInfo = document . getElementById ( CONFERENCE_INFO_ELEMENT_NAME ) ; + conferenceInfo = document . getDocumentElement ( ) ; if ( conferenceInfo == null ) { throw ( new Exception ( STRING0
Fix parsing of conference info documents
<nb> public class ZygoteInit { String args [ ] = { STRING0 , STRING1 , - STRING2 , + STRING3 , STRING4 , STRING5 , STRING6 ,
Give system server permission to access USB
<nb> public class VoiceRouter { if ( pn != null ) { pn = pn . replace ( STRING0 , STRING1 ) ; pn = pn . replace ( STRING2 , STRING1 ) ; - if ( player != null && STRING3 . equals ( player . getLanguage ( ) ) ) { + if ( ( player != null ) && ( ! STRING3 . equals ( player . getLanguage ( ) ) ) ) { pn = pn . re...
get logic operatrions right
<nb> public class HdfsConsumerTest extends HdfsTestSupport { context . addRoutes ( new RouteBuilder ( ) { public void configure ( ) { - from ( STRING0 + file . getParent ( ) . toUri ( ) + STRING1 ) . to ( STRING2 ) ; + from ( STRING0 + file . getParent ( ) . toUri ( ) + STRING1 ) + . to ( STRING2 ) ; } ...
Fix Checkstyle issues
<nb> public abstract class AbstractIntegrationtestMojo extends AbstractAndroidMojo { private boolean mavenTestSkip ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + private boolean mavenSkipTests ; + + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class AbstractIntegrati...
DskipTests doesn t skip integration tests
<nb> public abstract class FoundationTestCase extends TestCase { } COMMENT + COMMENT + COMMENT + COMMENT + protected Path scratchDir ( String pathName ) throws IOException { + return scratch . dir ( workspaceRelative ( pathName ) ) ; + } + + COMMENT COMMENT COMMENT COMMENT
Rewrite tests to avoid in the paths
<nb> public final class UnmountOptions { @ override public boolean equals ( Object o ) { - if ( this == o ) { - return true ; - } - if ( ! ( o instanceof UnmountOptions ) ) { - return false ; - } - return true ; + return this == o || o instanceof UnmountOptions ; } @ override
SMALLFIX Simplified equals implementation of UnmountOptions
<nb> public class ReactTextShadowNode extends LayoutShadowNode { ( ( ReactTextShadowNode ) child ) . markUpdateSeen ( ) ; } int end = sb . length ( ) ; - if ( end > start ) { + if ( end >= start ) { if ( textCSSNode . mIsColorSet ) { ops . add ( new SetSpanOperation ( start , end , new ForegroundColorSpan...
Set spans on empty strings
<nb> public class LoanBroker extends RouteBuilder { SINGLE SINGLE + SINGLE + SINGLE from ( STRING0 ) . aggregate ( header ( Constants . PROPERTY_SSN ) , new BankResponseAggregationStrategy ( ) ) - . completedPredicate ( header ( Exchange . AGGREGATED_COUNT ) . isEqualTo ( NUMBER0 ) ) + . completedPred...
Fixed the build error of camel example loan broker
<nb> public class GrailsDataBinder extends ServletRequestDataBinder { protected void bindAssociations ( MutablePropertyValues mpvs ) { for ( PropertyValue pv : mpvs . getPropertyValues ( ) ) { String propertyName = pv . getName ( ) ; - if ( ! isAllowed ( propertyName ) ) continue ; String propertyNameToCheck ...
fixed failing test
<nb> public class BinaryMapIndexReader { } ; - - private final RandomAccessFile raf ; protected final File file ; COMMENT
Add transport route
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class CQLSSTableWriter implements Closeable {
Document the lack of thread safety in CQLSSTableWriter
<nb> public class LwjglAWTCanvas implements Application { void create ( ) { try { setGlobals ( ) ; - graphics . initiateGLInstances ( ) ; + graphics . initiateGL ( ) ; listener . create ( ) ; lastWidth = Math . max ( NUMBER0 , graphics . getWidth ( ) ) ; lastHeight = Math . max ( NUMBER0 , graphics . ge...
Fix SwingLwjglTest crash due to LwjglGraphics not correctly initializing in LwjglAWTCanvas
<nb> public class ManagePackagesDialog extends DialogWrapper { else { myFilteredOut . add ( repoPackage ) ; } - if ( StringUtil . equals ( packageName , filter ) ) toSelect = repoPackage ; + if ( StringUtil . equalsIgnoreCase ( packageName , filter ) ) toSelect = repoPackage ; } filter ( filtered , toSele...
enter in search field should select most relevant package in the list of packages
<nb> public class AirMapView extends FrameLayout COMMENT COMMENT COMMENT + public void initialize ( FragmentManager fragmentManager ) { + initialize ( fragmentManager , null , null ) ; + } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public void initi...
Restoring initialize FragmentManager fragmentManager for older version support
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class SimpleSessionDescription { public SimpleSessionDescription ( long sessionId , String address ) { address = ( address . indexOf ( STRING0 ) < NUMBER0 ? STRING1 : STRING2 ) + address ;...
Make SimpleSessionDescription locale safe
<nb> public class GoSdkType extends SdkType { modificator . addRoot ( file , OrderRootType . CLASSES ) ; modificator . addRoot ( file , OrderRootType . SOURCES ) ; } + modificator . commitChanges ( ) ; } }
Add missing commit
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; <nb> public class RenameCollisionsTest extends LightRefactoringTestCase { doTest ( STR...
update test data
<nb> public class ResolveImportUtil { components . set ( NUMBER0 , STRING0 ) ; return PyQualifiedName . fromComponents ( components ) ; } - else if ( head . equals ( STRING1 ) | head . equals ( STRING2 ) ) { + else if ( head . equals ( STRING1 ) || head . equals ( STRING2 ) ) { final List < String > result ...
Fixed boolean or operator
<nb> public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements } public void destroySingletons ( ) { - if ( logger . isInfoEnabled ( ) ) { - logger . info ( STRING0 + this ) ; + if ( logger . isDebugEnabled ( ) ) { + logger . debug ( STRING0 + this ) ; } synchronized ( this . si...
Turn down logging in DefaultSingletonBeanRegistry
<nb> import NAMESPACE ; import NAMESPACE ; public class WorldSavedDataWireSystems extends WorldSavedData { - public static final String DATA_NAME = STRING0 ; + public static final String DATA_NAME = STRING1 ; public World world ; public final Map < WireSystem , Boolean > wireSystems = new HashMap < > ( ) ...
Fix data name and markDirty called every tick
<nb> public class ImageCropActivity extends BaseActivity { mImageView . getSnapshot ( new GestureImageView . OnSnapshotLoadedListener ( ) { @ override public void onSnapshotLoaded ( Bitmap bitmap ) { + finish ( ) ; ImageCropResultActivity . show ( ImageCropActivity . this , bitmap ) ; } } ) ;
Finishing image cropping activity when done
<nb> public class ProjectStructureConfigurable extends BaseConfigurable implements Se myGlobalLibrariesConfig . init ( myContext ) ; myModulesConfig . init ( myContext ) ; myFacetStructureConfigurable . init ( myContext ) ; - myArtifactsStructureConfigurable . init ( myContext , myModulesConfig , myProjectLibra...
do not init artifacts for default project nik