diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class English extends Language implements AutoCloseable { @ override public Contributor [ ] getMaintainers ( ) { - return new Contributor [ ] { ...
en adding Mike Unwalla as maintainer for English
<nb> public class IdeMenuBar extends JMenuBar { private void setState ( @ notnull State state ) { myState = state ; + if ( myState == State . EXPANDING && myActivationWatcher != null && ! myActivationWatcher . isRunning ( ) ) { + myActivationWatcher . start ( ) ; + } else if ( myActivationWatcher != null &&...
don t eat the battery r maxim
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class LoadTextUtil { int crlfCount = NUMBER0 ; final int length = buffer . length ( ) ; + final char [ ] bufferArray = CharArrayUtil . fro...
if we have array lying nearby then use its characters for iteration
<nb> public class ReadCallback < TMessage , TResolved > implements IAsyncCallback < TMessag public TResolved get ( ) throws ReadTimeoutException , DigestMismatchException { - if ( ! await ( command . getTimeout ( ) , TimeUnit . MICROSECONDS ) ) + if ( ! await ( command . getTimeout ( ) , TimeUnit . MILLISECON...
Fix ReadCallback get TimeUnit
<nb> public class TextureUnpacker { SINGLE if ( region . rotate ) { BufferedImage srcImage = page . getSubimage ( region . left , region . top , region . height , region . width ) ; - splitImage = new BufferedImage ( region . height , region . width , page . getType ( ) ) ; + splitImage = new BufferedImage ( ...
Fix TextureUnpacker bug in rotated images inside atlas
<nb> public class Main { . setNavigation ( Navigation . NONAV ) ; SessionParams params = getSessionParams ( parser , customConfigGenerator , - layoutLibCallback , STRING0 , false , + layoutLibCallback , STRING1 , false , RenderingMode . V_SCROLL , NUMBER0 ) ; renderAndVerify ( params , STRING2 ) ; <nb...
Fix layoutlib expand unit test
<nb> public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve Date lastDead = node . getDeadTime ( ) ; Long timeSinceLastDead = Long . MAX_VALUE ; if ( lastDead != null ) { - timeSinceLastDead = lastDead . getTime ( ) - System . currentTimeMillis ( ) ; + timeSinceLastDead = System . c...
Fix incorrect calculation of time since last dead time
<nb> public abstract class FileSystem { } catch ( URISyntaxException e ) { SINGLE - throw new IOException ( STRING0 ) ; + throw new IOException ( STRING1 + + STRING2 + uri . toString ( ) + STRING3 ) ; } } <nb> public abstract class FileSystem { SINGLE if ( ! FSDIRECTORY . containsKey ( uri . g...
Add URI causing exception to message
<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 ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ...
Removed unused imports
<nb> public class LookupCellRenderer implements ListCellRenderer { final Color foreground = isSelected ? SELECTED_FOREGROUND_COLOR : FOREGROUND_COLOR ; final Color background = getItemBackground ( list , index , isSelected ) ; - int allowedWidth = list . getFixedCellWidth ( ) - getCommonGapsWidth ( ) - getIconI...
take advantage of the non fixed lookup width
<nb> public class AnalyzedTokenReadingsTest extends TestCase { new AnalyzedToken ( STRING0 , null , null ) ) , NUMBER0 ) ; int i = NUMBER0 ; for ( AnalyzedToken tokenReading : tokenReadings ) { - System . out . println ( tokenReading ) ; if ( i == NUMBER0 ) { assertThat ( tokenReading . getToken ( ) , is ( ...
remove print to System out
<nb> public class EvictorImpl implements Evictor { recordStore . evict ( key , backup ) ; if ( ! backup ) { - mapServiceContext . interceptAfterRemove ( mapName , value ) ; boolean expired = recordStore . isExpired ( record , now , false ) ; recordStore . doPostEvictionOperations ( key , value , expired ) ;...
Removed left over interceptor call because it is already handled by evict method
<nb> public class OJDBCExtractor extends OAbstractExtractor { try { Class . forName ( driverClass ) . newInstance ( ) ; + } catch ( Exception e ) { + throw new OConfigurationException ( STRING0 + driverClass + STRING1 , e ) ; + } + + try { conn = DriverManager . getConnection ( url , userName , userPa...
Improved error output
<nb> public class MovieDetailFragment extends BaseDetailFragment if ( visibleItemCount > NUMBER0 && firstVisibleItem == NUMBER0 ) { final View firstView = absListView . getChildAt ( NUMBER0 ) ; + mCollapsingTitleLayout . setVisibility ( View . VISIBLE ) ; + final int toolbarHeight = toolbar . getHeight ( ) ...
Make Movie detail Toolbar scroll off
<nb> public final class TvInputManagerService extends SystemService { UserState userState = getUserStateLocked ( mUserId ) ; for ( SessionState sessionState : userState . sessionStateMap . values ( ) ) { if ( mSessionToken == sessionState . mHardwareSessionToken ) { - try { - sessionState . mSession . release...
Remove session state when hardware wrapper input crashes
<nb> public abstract class MultilanguageCodeStyleAbstractPanel extends CodeStyleAbstr protected void customizeSettings ( ) { for ( LanguageCodeStyleSettingsProvider provider : Extensions . getExtensions ( LanguageCodeStyleSettingsProvider . EP_NAME ) ) { - resetDefaultNames ( ) ; - provider . customizeSetting...
Don t show language specific settings on common panels if the language doesn t have a preview tab
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; COMMENT
replace org drools core util StringUtils with org apache commons lang StringUtils
<nb> public class DeepLearningMNIST extends TestUtil { p . _adaptive_rate = false ; SINGLE p . _replicate_training_data = false ; SINGLE p . _override_with_best_model = false ; SINGLE + p . _diagnostics = false ; SINGLE SINGLE p . _score_interval = NUMBER0 ; SINGLE
Don t gather Neurons Weights Biases statistics
<nb> class Clicker { private final RobotiumUtils robotiumUtils ; private final int PAUS = NUMBER0 ; private final int TIMEOUT = NUMBER1 ; + private final int CLICKTIMEOUT = NUMBER2 ; private final static int MENU = NUMBER3 ; <nb> class Clicker { private void clickOnScreen ( View view , boolean longCli...
Shortened timeout for clicks
<nb> public class ConnectivityService extends IConnectivityManager . Stub { if ( ConnectivityManager . isNetworkTypeMobile ( info . getType ( ) ) && ( NUMBER0 != Settings . Global . getInt ( mContext . getContentResolver ( ) , Settings . Global . DEVICE_PROVISIONED , NUMBER0 ) ) - && ( ( state == NetworkInfo . ...
Tighten condition for calling checkMobileProvisioning
<nb> public class ConnectivityService extends IConnectivityManager . Stub { SINGLE info = new NetworkInfo ( info ) ; info . setDetailedState ( DetailedState . BLOCKED , null , null ) ; + if ( VDBG ) log ( STRING0 ) ; } if ( mLockdownTracker != null ) { info = mLockdownTracker . augmentNetworkInfo ( info )...
Add Logging around getNetworkInfo
<nb> public class InitCommand extends OptionParsingCommand { STRING0 , STRING1 ) ; String [ ] sources = sourceOptions . getSourcesArray ( ) ; - if ( ! ( loader instanceof GroovyClassLoader ) ) { + if ( ! ( loader instanceof GroovyClassLoader ) && sources . length > NUMBER0 ) { List < RepositoryConfigurati...
Only run InitCommand if there is code to process
<nb> public class PlayApplicationPlugin implements Plugin < Project > { DeploymentRegistry deploymentRegistry = serviceRegistry . get ( DeploymentRegistry . class ) ; PlayApplicationDeploymentHandle deploymentHandle = deploymentRegistry . get ( PlayApplicationDeploymentHandle . class , playRun . getPath ( ) ) ; ...
Fix integ tests for Play reload
<nb> public class OfficeToPdfConversionSuccessFilter { Gson gson = new Gson ( ) ; String updateMsg = gson . toJson ( msg ) ; log . debug ( STRING0 + updateMsg ) ; - messagingService . send ( MessagingConstants . PRESENTATION_CHANNEL , updateMsg ) ; + messagingService . send ( MessagingConstants . TO_PRESENTAT...
fix compile issue
<nb> public class AndroidInput implements Input , OnKeyListener , OnTouchListener { v . setFocusable ( true ) ; v . setFocusableInTouchMode ( true ) ; v . requestFocus ( ) ; - v . requestFocusFromTouch ( ) ; } this . config = config ; this . onscreenKeyboard = new AndroidOnscreenKeyboard ( context , new H...
Fix weird focus issue
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMES...
whitelist recently edited files
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Updated Javadoc of SslHandler
<nb> public abstract class FirebaseRecyclerAdapter < T , VH extends RecyclerView . ViewHol @ override public VH onCreateViewHolder ( ViewGroup parent , int viewType ) { - ViewGroup view = ( ViewGroup ) LayoutInflater . from ( parent . getContext ( ) ) . inflate ( mModelLayout , parent , false ) ; + ViewGroup ...
use use the parameter viewType to inflate view layout
<nb> public class RpcResponseMessage extends AbstractMessage { @ override public String toString ( ) { return getClass ( ) . getSimpleName ( ) + STRING0 + msgId + STRING1 + result + + ( error != null ? STRING2 + error : STRING3 ) + STRING4 ; } }
Added the error information to the toString if
<nb> public class GangliaWriter extends BaseOutputWriter { for ( final Map . Entry < String , Object > resultValue : result . getValues ( ) . entrySet ( ) ) { final String name = JmxUtils . getKeyString2 ( query , result , resultValue , getTypeNames ( ) , null ) ; final String value = resultValue . getValue ( ) ....
Add more debug of the output data type of GangliaWriter
<nb> public final class BlockMetadataManager { } } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public static BlockMetadataManager createBlockMetadataManager ( ) { return new BlockMetadataManager ( ) ; } <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPAC...
Fixing compilation issues
<nb> public abstract class MigrationTestCase { COMMENT COMMENT COMMENT - private static final String BASEDIR = STRING0 ; + protected static final String BASEDIR = STRING0 ; protected DataSource dataSource ; private Connection connection ;
Fixing invisibility of BASEDIR in MigrationTestCase
<nb> public abstract class AbstractProtocol implements ProtocolHandler , } int port = getPort ( ) ; if ( port == NUMBER0 ) { - SINGLE + SINGLE name . append ( STRING0 ) ; name . append ( getNameIndex ( ) ) ; + port = getLocalPort ( ) ; + if ( port != - NUMBER1 ) { + name . append ( STRING1 ) ; + n...
When using automatic ports include the port number in the name used in logging if we know it
<nb> public class ShapefilePopulation extends BasicPopulation { } double input = FLOAT0 ; if ( inputAttribute != null ) { - input = ( Double ) feature . getAttribute ( inputAttribute ) ; + Number n = ( Number ) feature . getAttribute ( inputAttribute ) ; + input = n . doubleValue ( ) ; } Individual indi...
accept non double input from shapefiles
<nb> public class ResultMatchers { } ; } - SINGLE - @ suppresswarnings ( STRING0 ) public static Matcher < Object > hasSingleFailureContaining ( final String string ) { return new BaseMatcher < Object > ( ) {
Remove old todo
<nb> public class MainActivity extends Activity implements try { pipe = ParcelFileDescriptor . createPipe ( ) ; - new TransferTask ( new AutoCloseInputStream ( pipe [ NUMBER0 ] ) , + new TransferThread ( new AutoCloseInputStream ( pipe [ NUMBER0 ] ) , new FileOutputStream ( getOutputFile ( ) ) ) . start ( )...
renamed TransferTask to TransferThread
<nb> public abstract class AbstractSharedSessionContract implements SharedSessionCont this . transactionCoordinator = factory . getServiceRegistry ( ) . getService ( TransactionCoordinatorBuilder . class ) . buildTransactionCoordinator ( jdbcCoordinator , this ) ; - - SINGLE - getTransaction ( ) ; } }
Fix issue with jta getTransaction
<nb> public interface OnDrawListener { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix html tag for gradle
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class BatchSession implements SqlSession { MappedStatement mappedStatement = configuration . getMappedStatement ( stat...
Make sure MyBatis is not configured to use generated keys in batch inserts
<nb> public class SmartDexingStep implements Step { steps . add ( new RmStep ( tempDexJarOutput , true ) ) ; steps . add ( new XzStep ( repackedJar ) ) ; return new CompositeStep ( steps ) ; - } else if ( outputPath . endsWith ( DexStore . JAR . getExtension ( ) ) ) { + } else if ( outputPath . endsWith ( Dex...
Fix a suffix check bug
<nb> public class BytesType extends AbstractType public String getString ( byte [ ] bytes ) { - return Arrays . toString ( bytes ) ; + return FBUtilities . bytesToHex ( bytes ) ; } }
convert bytes to hex for BytesType getString
<nb> public class PyPackageManagerImpl extends PyPackageManager { final String path = ( binary != null ) ? binary : binaryFallback ; if ( usePyVenv ) { - SINGLE + SINGLE final VirtualFile binaryFile = LocalFileSystem . getInstance ( ) . refreshAndFindFileByPath ( path ) ; if ( binaryFile != null ) { fin...
Removed old TODOs
<nb> public class PropertyValuesHolder implements Cloneable { SINGLE Log . e ( STRING0 , STRING1 + mPropertyName + - STRING2 + mValueType ) ; + STRING3 + mValueType ) ; } return returnVal ;
Add space after property name in error message
<nb> public class BluetoothService extends IBluetooth . Stub { } return false ; } + + @ override + public int hashCode ( ) { + int hash = NUMBER0 ; + hash = hash * NUMBER1 + ( address == null ? NUMBER2 : address . hashCode ( ) ) ; + hash = hash * NUMBER1 + ( uuid == null ? NUMBER2 : uuid . hashCode ( ...
Add hashCode to BluetoothService RemoteService
<nb> public class VolumeUI extends SystemUI { final Intent intent = ZenModePanel . ZEN_SETTINGS ; intent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK | Intent . FLAG_ACTIVITY_CLEAR_TOP ) ; mContext . startActivityAsUser ( intent , new UserHandle ( UserHandle . USER_CURRENT ) ) ; + + SINGLE + mContext . send...
Dismiss shade when launching settings from rocker
<nb> public enum HttpMethodType { Class < ? > [ ] parameterTypes = method . getParameterTypes ( ) ; Annotation [ ] [ ] parameterAnnotations = method . getParameterAnnotations ( ) ; - int count = parameterAnnotations . length - NUMBER0 ; + int count = parameterAnnotations . length ; + if ( ! builder . isSync...
Only exclude the last param if execution is not synchronous
<nb> public class PeerGroupTest extends TestWithPeerGroup { } } , Threading . SAME_THREAD ) ; SINGLE + long start = System . currentTimeMillis ( ) ; SINGLE connectPeerWithoutVersionExchange ( NUMBER0 ) ; - long start = System . currentTimeMillis ( ) ; SINGLE try { peerDisconnectedFuture . get ( timeou...
Fix another peerTimeoutTest failure mode
<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode , private void checkBarModes ( ) { if ( mDemoMode ) return ; - int sbMode = mStatusBarMode ; - if ( panelsEnabled ( ) && ( mInteractingWindows & StatusBarManager . WINDOW_STATUS_BAR ) != NUMBER0 - && mState != StatusBarState . KEYGUA...
Don t force black status bar when expanded
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public final class TrendingAdapter extends RecyclerView . Adapter < TrendingAdapter . ViewHolder > + final class TrendingAdapter extends RecyclerView . Adapter < TrendingAdapter . ViewHolder > implements Action1 < List < Repository > > { publ...
Hide package only types
<nb> public class ViewPager extends ViewGroup { targetPage = velocity > NUMBER0 ? currentPage : currentPage + NUMBER1 ; } else { final float truncator = currentPage >= mCurItem ? FLOAT0 : FLOAT1 ; - targetPage = ( int ) ( currentPage + pageOffset + truncator ) ; + targetPage = currentPage + ( int ) ( pageOffs...
Fix page snapping for large number pages
<nb> public final class HeadersConfigurer < H extends HttpSecurityBuilder < H > > extends A COMMENT COMMENT public HeadersConfigurer < H > xssProtection ( ) { - return addHeaderWriter ( new XContentTypeOptionsHeaderWriter ( ) ) ; + return addHeaderWriter ( new XXssProtectionHeaderWriter ( ) ) ; } COMMEN...
Fix Header tests
<nb> public class H2OError extends Iced { } this . _stacktrace = arr . toArray ( new String [ NUMBER0 ] ) ; } + + SINGLE + String prefix = STRING0 ; + String postfix = STRING1 ; + _msg = prefix + _msg + postfix ; + _dev_msg = prefix + _dev_msg + postfix ; + _exception_msg = prefix + _exception_msg +...
Add extra header annotation around the error message in stack traces for better legibility
<nb> public class ActivityMain extends ActivityBase implements OnItemSelectedListener } ) ; else holder . imgCbAsk . setClickable ( false ) ; + } else { + holder . imgIcon . setImageDrawable ( null ) ; + holder . imgIcon . destroyDrawingCache ( ) ; } }
Erase icon for application list view items
<nb> public class Main { String opts [ ] = assign [ NUMBER0 ] . split ( STRING0 ) ; for ( String opt : opts ) - _config . addActiveOption ( opt ) ; + _config . addActiveOption ( opt . trim ( ) ) ; } else {
OPTIONS should allow spaces in comma separated list
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT COMMENT public class ConnectTraktActivity extends BaseActivity { <nb> public class ConnectTraktActivity extends BaseActivity { if ( savedInstanceState == null ) { if ( ServiceUtils . isTraktCredentialsValid ( this...
Improve comments in ConnectTraktActivity
<nb> public class Vec extends Keyed { SINGLE transient Chunk _cache ; COMMENT - final Chunk chunkForRow ( long i ) { + public final Chunk chunkForRow ( long i ) { Chunk c = _cache ; return ( c != null && c . _chk2 == null && c . _start <= i && i < c . _start + c . _len ) ? c : ( _cache = chunkForRow_impl ...
put back public chunkForRow
<nb> public class StatsCommentsFragment extends StatsAbstractListFragment { if ( mDatamodels [ NUMBER0 ] != null && ! isErrorResponse ( NUMBER0 ) ) { SINGLE mTotalsLabel . setVisibility ( View . VISIBLE ) ; int totalNumberOfFollowers = ( ( CommentFollowersModel ) mDatamodels [ NUMBER0 ] ) . getTotal ( ) ; - mTo...
catch the AssertionError
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ChunkDecoderFactory { if ( impl == null ) { impl = VanillaChunkDecoder . class ; } + SINGLE + if ( ! Booleans . parseBoolean ( System . getProperty ( STRING0 ) , false ) ) { ...
disable optimized decoder by default
<nb> public class JavaEditor extends Editor { List < LineBreakpoint > bps = debugger . getBreakpoints ( tab . getFileName ( ) ) ; SINGLE - File sourceFile = new File ( sketch . getFolder ( ) , tab . getFileName ( ) ) ; + SINGLE + SINGLE SINGLE try { - String code = Base . loadFile ( sourceFile ) ; +...
Modified the java mode to use the methods in the SketchCode class for loading and saving files
<nb> public class AggregatorFactories { @ override public InternalAggregation buildAggregation ( long owningBucketOrdinal ) { - return aggregators . get ( owningBucketOrdinal ) . buildAggregation ( NUMBER0 ) ; + SINGLE + SINGLE + if ( owningBucketOrdinal >= aggregators . size ( ) || aggregators . get ( ow...
Fix NPE AIOOBE when building a bucket which has not been collected
<nb> public class TaskConfig { builder . cmd ( job . getCommand ( ) ) ; builder . env ( containerEnvStrings ( ) ) ; builder . exposedPorts ( containerExposedPorts ( ) ) ; - builder . hostname ( containerHostname ( job . getId ( ) . getName ( ) + STRING0 + - job . getId ( ) . getVersion ( ) ) ) ; builder . d...
Do not set container hostname
<nb> public final class Main { projectFilesystem , config , getWebServerIfDaemon ( context ) , - executionEnvironment , - consoleListener , - console ) ; + consoleListener ) ; String [ ] remainingArgs = new String [ args . length - NUMBER0 ] ; System . arraycopy ( args , NUMBER0 , remainingArgs , NU...
Fix a lint warning in the open source version of Buck
<nb> public class TreeContactList COMMENT public FilterQuery applyFilter ( ContactListFilter filter ) { - if ( logger . isInfoEnabled ( ) ) - logger . info ( STRING0 + filter ) ; + if ( logger . isDebugEnabled ( ) ) + logger . debug ( STRING0 + filter ) ; if ( currentFilterQuery != null && ! currentFi...
Fixed excesive logging in the contact list ui reported by Emil Ivov
<nb> public class ProjectManagerImpl extends ProjectManagerEx implements Disposable { return null ; } - TransactionGuard . getInstance ( ) . submitTransactionAndWait ( ( ) - > openProject ( project ) ) ; + openProject ( project ) ; return project ; } } ) ;
opening project in the same background thread
<nb> public class EndpointInjector { return camelContext . getEndpoint ( url , MockEndpoint . class ) ; } + @ suppresswarnings ( STRING0 ) @ produces public Endpoint createEndpoint ( InjectionPoint point ) { Class < ? extends Endpoint > endpointType = Endpoint . class ;
Fixed the eclipse warning of camel cdi
<nb> public class XMPPConnection { } private JFrame debugFrame = null ; - protected String host ; - protected int port ; - protected Socket socket ; + String host ; + int port ; + Socket socket ; String connectionID ; private String user = null ; <nb> public class XMPPConnection { COMMENT ...
Changed method and constructor from protected to default access to clean up Javadocs
<nb> public class DaemonCommandExecution { private Throwable exception ; private Object result ; - private final List < Runnable > finalizers = new LinkedList < Runnable > ( ) ; public DaemonCommandExecution ( DaemonConnection connection , Command command , DaemonContext daemonContext , DaemonStateControl d...
Removed some dead code
<nb> public class HelixBrokerRoutingTable implements ExternalViewChangeListener , Inst for ( ExternalView externalView : externalViewList ) { String resourceName = externalView . getResourceName ( ) ; if ( servingClusterList . contains ( resourceName ) ) { - LOGGER . info ( STRING0 + resourceName + STRING1 - ...
Change printing of routing table from info to debug
<nb> public class JRubyBackend implements Backend { } public void runStep ( String uri , Locale locale , String stepKeyword , String stepName , int line , DataTable dataTable , DocString docString ) throws Throwable { - SINGLE List < DataTableRow > dataTableRows = null ; if ( dataTable != null ) { dataTab...
Take out the TODO because it s TODONE
<nb> public class RingBufferTest assertThat ( ringBuffer . getPublished ( NUMBER0 ) [ NUMBER1 ] , is ( ( Object ) STRING0 ) ) ; } + @ suppresswarnings ( STRING1 ) @ test public void shouldPublishEvents ( ) throws Exception { <nb> public class RingBufferTest event [ NUMBER1 ] = sequence ; } } ; -...
fix up compiler warnings in RingBufferTest
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility mPrivateFlags &= ~ DRAWN ; mPrivateFlags |= INVALIDATED ; mPrivateFlags &= ~ DRAWING_CACHE_VALID ; - if ( mParent != null && mAttachInfo != null && mAttachInfo . mHardwareAccelerated ) { - mParent . invalidateChild ( t...
Fixing invalidate problems in software rendered mode
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; @ threadsafe public final class SqlQueryExecution <nb> public final class SqlQueryExecution if ( queryInfo != null ) { return queryInfo . getQueryStats ( ) . getTo...
Fix NPE in SqlQueryExecution
<nb> public enum WebSocketVersion { if ( this == V00 ) { return STRING0 ; } + if ( this == V07 ) { + return STRING1 ; + } if ( this == V08 ) { return STRING2 ; }
Correclty handle V07 WebSockets
<nb> class TreeJCodeGen extends TreeVisitor < RuntimeException > { visit ( ) ; closure ( _sb ) ; _sb . p ( _csb ) ; - System . err . print ( _csb . toString ( ) ) ; } }
Remove debug statement
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; @ target ( ElementType . TYPE ) @ retention ( RetentionPolicy . RUNTIME ) @ documented + @ inherited @ import ( { EnableAutoConfi...
Add Inherited to EnableAutoConfiguration
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class MediaRouteControllerDialog extends AlertDialog { + public class MediaRouteControllerDi...
Revert Use AlertDialog for MediaRouteControllerDialog
<nb> public enum LearnerState . State . delivered ) ) { outgoing . offer ( Message . respond ( LearnerMessage . learn , message , - new LearnerMessage . LearnState ( instance . value_2 ) ) . setHeader ( InstanceId - . INSTANCE , - instanceId . toString ( ) ) ) ; + new LearnerMessage . LearnState ( instanc...
Serving learnRequests now sets the ConversationId properly solves some serious bugs
<nb> public class BpmnJsonConverter implements EditorJsonConstants , StencilConstants , } } - COMMENT - Map < String , SequenceFlow > flowSourceMap = new HashMap < String , SequenceFlow > ( ) ; - Map < String , SequenceFlow > flowTargetMap = new HashMap < String , SequenceFlow > ( ) ; - for ( Process proc...
Fix JSON to BPMN model conversion issue
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CalcitePlanner extends SemanticAnalyzer { hepPgmBldr . addRuleInstance ( ReduceExpressionsRule . JOIN_INSTANCE ) ; hepPgmBl...
Add UnionMerge rule on cbo path Ashutosh Chauhan via John Pullokkaran
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ serviceprovider ( service = VectorialFileExporter . class ) public class PDFExporter implements VectorialFileExporter , LongTask { private SVGExporter svgExporter ;
Deactivate PDF export
<nb> public class SqlTask noMoreSplits = taskExecution . getNoMoreSplits ( ) ; } else { - taskStats = new TaskStats ( taskStateMachine . getCreatedTime ( ) ) ; + SINGLE + DateTime endTime = state . isDone ( ) ? DateTime . now ( ) : null ; + taskStats = new TaskStats ( taskStateMachine . getCreatedTime ( )...
Set end time on tasks deleted before creation
<nb> public final class Bmgr { if ( err == NUMBER0 ) { observer . waitForCompletion ( ) ; sets = observer . sets ; - for ( RestoreSet s : sets ) { - if ( s . token == token ) { - System . out . println ( STRING0 + s . name ) ; - didRestore = ( mRestore . restoreAll ( token , observer ) == NUMBER0 ) ; - ...
Don t crash bmgr if there are no available restore sets
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; abstract public class Fs { public static Fs fromJar ( URL url ) { - return new JarFs ( new File ( url . ge...
Fix FileNotFoundException when offline true and deps directory contains spaces
<nb> public class SPDYConnection extends AbstractConnection implements Controller , Id SINGLE SINGLE SINGLE - SINGLE + SINGLE super ( endPoint , executor , executeOnFillable ) ; this . bufferPool = bufferPool ; this . parser = parser ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; ...
ignore type of exception in GoAwayTest testDataNotProcessedAfterGoAway
<nb> public class KeyChainGroup implements KeyBag { COMMENT COMMENT public void addAndActivateHDChain ( DeterministicKeyChain chain ) { - log . info ( STRING0 , chain ) ; for ( ListenerRegistration < KeyChainEventListener > registration : basic . getListeners ( ) ) chain . addEventListener ( registration . ...
Remove misleading log statement
<nb> public final class JobSchedulerService extends com . android . server . SystemService public void onDeviceIdleStateChanged ( boolean deviceIdle ) { synchronized ( mLock ) { if ( deviceIdle ) { - SINGLE + SINGLE + SINGLE for ( int i = NUMBER0 ; i < mActiveServices . size ( ) ; i ++ ) { JobServiceCon...
Skip cancelling jobs with FLAG_WILL_BE_FOREGROUND
<nb> public class TokenMetadata lock . readLock ( ) . lock ( ) ; try { - Set < InetAddress > eps = tokenToEndpointMap . inverse ( ) . keySet ( ) ; + Multimap < InetAddress , Token > endpointToTokenMap = tokenToEndpointMap . inverse ( ) ; + Set < InetAddress > eps = endpointToTokenMap . keySet ( ) ; if (...
don t repeatedly inverve the tokenToEndpointMap
<nb> public class PaymentChannelServer { log . info ( STRING0 ) ; } conn . sendToClient ( msg . build ( ) ) ; + conn . destroyConnection ( clientRequestedClose ) ; } @ override
invoke destroyConn on server side even when client requested it
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - - import NAMESPACE ; - COMMENT COMMENT COMMENT <nb> public class JavaFileStructureFilteringTest extends JavaFileStructureTestCase { public void testMatcher1 ( ) throws Exception { checkTree ( STRING0 ) ; } public void testMatcher2 ( ) t...
make a request instead of bombed test
<nb> public class HasChildQueryParser implements QueryParser { String joinField = ParentFieldMapper . joinField ( parentType ) ; IndexReader indexReader = searchContext . searcher ( ) . getIndexReader ( ) ; IndexSearcher indexSearcher = new IndexSearcher ( indexReader ) ; + indexSearcher . setQueryCache ( null ...
Explicitly disabled the query cache
<nb> public class PeopleActivity extends BaseActivity implements PeopleFragment . OnSho SINGLE if ( mTwoPane ) { - f . setActivateOnItemClick ( true ) ; + f . setActivateOnItemClick ( ) ; } getSupportFragmentManager ( ) . beginTransaction ( ) <nb> public class PeopleFragment extends Fragment { COMME...
Drop unnecessary parameter from setActivateOnItemClick
<nb> public class ThreadMXBeanFindDeadlockedThreadsHandler implements OperationStepHa . setReplyValueType ( ModelType . LONG ) . setRuntimeOnly ( ) . setReadOnly ( ) + . allowReturnNull ( ) . build ( ) ; public static final ThreadMXBeanFindDeadlockedThreadsHandler INSTANCE = new ThreadMXBeanFindDeadlocked...
allow return null
<nb> public class PyReferenceImpl implements PsiReferenceEx , PsiPolyVariantReference PsiElement realContext , PsiElement roof ) { ResolveResultList ret = new ResolveResultList ( ) ; PsiElement uexpr = processor . getResult ( ) ; - final List < PsiElement > definers = processor . getDefiners ( ) ; + List < Ps...
fixed broken test
<nb> public class MemoryAwareThreadPoolExecutor extends ThreadPoolExecutor { try { wait ( ) ; } catch ( InterruptedException e ) { - SINGLE + Thread . currentThread ( ) . interrupt ( ) ; } finally { waiters -- ; }
Catch InterruptedException and interrupt the current Thread so we at least give someone the chance todo something about it
<nb> public final class TSMeta { } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class TSMeta { } LOG . info ( STRING0 + meta ) ; - final Deferred < TSMeta > meta = getFromSt...
Remove extra getFromStorage
<nb> public class JBTable extends JTable implements ComponentWithEmptyText , Component myEmptyTextHelper = new EmptyTextHelper ( this ) { @ override protected boolean isEmpty ( ) { - return getRowCount ( ) == NUMBER0 ; + return JBTable . this . isEmpty ( ) ; } } ; myExpandableItemsHandler = Expandable...
empty text rendering fix
<nb> public class InputMethodService extends AbstractInputMethodService { showWindow ( true ) ; } SINGLE - boolean showing = onEvaluateInputViewShown ( ) ; + boolean showing = isInputViewShown ( ) ; mImm . setImeWindowStatus ( mToken , IME_ACTIVE | ( showing ? IME_VISIBLE : NUMBER0 ) , mBackDisposition ) ...
Fixed the problem ime invisible status despite being the icon that appears in the statusbar
<nb> public class LiteralTests extends ExpressionTestCase { evaluate ( STRING0 , null , null ) ; } - SINGLE - SINGLE - SINGLE - SINGLE + public void testLiteralDate01 ( ) { + evaluate ( STRING1 , STRING2 , Boolean . class ) ; + } public void testLiteralDate02 ( ) { evaluate ( STRING3 , STRING4...
modified Date tests
<nb> public class Invoker { return buffer . toString ( ) ; } else if ( arguments instanceof String ) { - return STRING0 + arguments + STRING0 ; + return ( String ) arguments ; } else { return arguments . toString ( ) ;
strings when toStringed return themselves instead of a quoted string
<nb> public class WaterFilter extends Filter { COMMENT public void setReflectionMapSize ( int reflectionMapSize ) { this . reflectionMapSize = reflectionMapSize ; - reflectionPass . init ( renderManager . getRenderer ( ) , reflectionMapSize , reflectionMapSize , Format . RGBA8 , Format . Depth ) ; - reflectio...
Fixed NPE in water filter when setting the reflection mapsize before the filter has been initialized