diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Added a few keywords
<nb> public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio } void unloadIndex ( String indexName ) throws Exception { + client ( ) . admin ( ) . indices ( ) . prepareFlush ( indexName ) . setWaitIfOngoing ( true ) . setForce ( true ) . get ( ) ; SINGLE ElasticsearchAssertions . asse...
TEST issue additional flush
<nb> public class ChannelEndPoint implements EndPoint { final NIOBuffer nbuf = ( NIOBuffer ) buf ; final ByteBuffer bbuf = nbuf . getByteBuffer ( ) ; - SINGLE + SINGLE try { synchronized ( bbuf ) <nb> public class ChannelEndPoint implements EndPoint { bbuf . position ( buffer . putIndex ( ) ) ; ...
improved ishut oshut handling
<nb> public class Camera { } COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Camera { } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Explain setPreviewFrameRate and getPreviewFrameRate more clearly
<nb> public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha COMMENT COMMENT - COMMENT + COMMENT COMMENT private List < String > sysadmins = new CopyOnWriteArrayList < String > ( ) ; <nb> public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha } ...
Fixed node node condition
<nb> public class DefaultIdentifierGeneratorFactory implements IdentifierGeneratorFac } public void register ( String strategy , Class generatorClass ) { - LOG . debugf ( STRING0 + strategy + STRING1 + generatorClass . getName ( ) + STRING2 ) ; + LOG . debugf ( STRING0 , strategy , generatorClass . getName ( ...
Logging format error causes many test failures
<nb> class ProcessClosurePrimitives extends AbstractPostOrderCallback if ( requiresLevel . isOn ( ) ) { for ( UnrecognizedRequire r : unrecognizedRequires ) { DiagnosticType error ; - if ( providedNames . get ( r . namespace ) != null ) { + ProvidedName expectedName = providedNames . get ( r . namespace ) ; ...
emit the right error message when goog is required
<nb> public class ActionBarSherlockCompat extends ActionBarSherlock { } if ( keyCode == KeyEvent . KEYCODE_MENU && event . getAction ( ) == KeyEvent . ACTION_UP && isReservingOverflow ( ) ) { - if ( mActionBarView . isOverflowMenuShowing ( ) ) { - mActionBarView . hideOverflowMenu ( ) ; - } else { - mActi...
Only dispatch menu key to panel when no action modes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TempletonUtils { SINGLE SINGLE SINGLE - if ( ! ( path . getFileSystem ( conf ) instanceof DistributedFileSystem ) ) { + if ( ! ( path . ...
WebHCat does not honor user home directory Daniel Dai
<nb> public final class RequestHeaderRequestMatcher implements RequestMatcher { return expectedHeaderValue . equals ( actualHeaderValue ) ; } + + @ override + public String toString ( ) { + return STRING0 + + expectedHeaderName + STRING1 + + expectedHeaderValue + STRING2 ; + } }
Add RequestHEaderRequestMatcher toString
<nb> public class StatsUtils { @ suppresslint ( STRING0 ) public static long toMs ( String date , String pattern ) { if ( date == null ) { - AppLog . w ( T . UTILS , STRING1 ) ; return - NUMBER0 ; } + if ( pattern == null ) { AppLog . w ( T . UTILS , STRING2 ) ; return - NUMBER0 ;
Remove a log line that was added during the debug of an issue a long time ago
<nb> class BackupManagerService extends IBackupManager . Stub { } } + SINGLE + removeMessages ( MSG_RESTORE_TIMEOUT ) ; + sendEmptyMessageDelayed ( MSG_RESTORE_TIMEOUT , TIMEOUT_RESTORE_INTERVAL ) ; + mWakelock . release ( ) ; } break ;
Don t spuriously time out restore sessions
<nb> public final class CamelThreadFactory implements ThreadFactory { Thread answer = new Thread ( runnable , threadName ) ; answer . setDaemon ( daemon ) ; - LOG . trace ( STRING0 , name , answer ) ; + LOG . trace ( STRING1 , threadName , answer ) ; return answer ; }
Thread factory should log the actual thread name created
<nb> public class RegistryValue { private String _get ( String key , String defaultValue , boolean mustExistInBundle ) { final String userValue = myRegistry . getUserProperties ( ) . get ( key ) ; if ( userValue == null ) { + String systemProperty = System . getProperty ( key ) ; + if ( systemProperty != null...
override Registry values with D
<nb> public abstract class AdapterViewAnimator extends AdapterView < Adapter > } LayoutParams createOrReuseLayoutParams ( View v ) { - final ViewGroup . LayoutParams currentLp = v . getLayoutParams ( ) ; - if ( currentLp instanceof ViewGroup . LayoutParams ) { - LayoutParams lp = ( LayoutParams ) currentLp ...
Fix AdapterViewAnimator createOrReuseLayoutParams
<nb> public class ContactListItemTextView extends LinearLayout { String otherString = STRING0 ; if ( TextUtils . isEmpty ( addressBookName ) ) { - if ( commonContacts > NUMBER0 ) { + if ( commonContacts > NUMBER0 && ! user . isConnected ( ) ) { otherString = getResources ( ) . getQuantityString ( R . plural...
Hide common friends from connected users
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PreferUnallocatedShardUnass...
don t list connect exceptions
<nb> public abstract class AbstractDuration implements ReadableDuration , Serializable setDuration ( iType = type , ( ReadableDuration ) duration ) ; } else { DurationConverter converter = ConverterManager . getInstance ( ) . getDurationConverter ( duration ) ; - if ( converter . isPrecise ( duration ) ) { + ...
Added special conversion check
<nb> public abstract class BaseDownloadTask { COMMENT COMMENT public boolean isRunning ( ) { + SINGLE if ( ! isUsing ( ) ) { return false ; }
add noinspection simplifiable for more readable in BaseDownloadTask
<nb> public class FeedEntryStatusDAO extends GenericDAO < FeedEntryStatus > { Map < Long , Long > map = Maps . newHashMap ( ) ; Query query = em . createNamedQuery ( STRING0 ) ; query . setParameter ( STRING1 , user ) ; + setTimeout ( query ) ; List resultList = query . getResultList ( ) ; for ( Object o : ...
set timeout on unread count too
<nb> public class DomainClassMarshaller extends IncludeExcludePropertyMarshaller < JSON Object referenceObject = beanWrapper . getPropertyValue ( property . getName ( ) ) ; if ( isRenderDomainClassRelations ( ) ) { if ( referenceObject == null ) { - writer . value ( null ) ; + writer . valueNull ( ) ; } e...
Fix NPE in DomainClassMarshaller
<nb> public class FormatterTest extends GroovyFormatterTestCase { getGroovySettings ( ) . ALIGN_MULTILINE_PARAMETERS_IN_CALLS = true ; doTest ( ) ; } - public void _testAlignClosureBraceWithCall ( ) throws Throwable { doTest ( ) ; } + public void testAlignClosureBraceWithCall ( ) throws Throwable { doTest ( )...
uncomment the working test
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BlazeCommandUtils { } return template . + replace ( STRING0 , Constants . PRODUCT_NAME ) . replace ( STRING1 , topic ) . replace ( ST...
Use the correct product name blaze bazel in command help
<nb> public class RegisterSetTest public void testGetAndSet_allPositions ( ) throws Exception { RegisterSet rs = new RegisterSet ( ( int ) Math . pow ( NUMBER0 , NUMBER1 ) ) ; - for ( int i = NUMBER2 ; i < Math . pow ( NUMBER0 , NUMBER3 ) ; i ++ ) + for ( int i = NUMBER2 ; i < Math . pow ( NUMBER0 , NUMBER1 )...
fix failing test
<nb> class FileInstrumentationData { instrumentedBits = new BitSet ( ) ; branchPresent = new BitSet ( ) ; - branchesInLine = new HashMap < Integer , Integer > ( ) ; - branchNodes = new HashMap < BranchIndexPair , Node > ( ) ; + branchesInLine = new HashMap < > ( ) ; + branchNodes = new HashMap < > ( ) ; ...
Remove redundant generics instantiations
<nb> class TcpConnection { if ( socketChannel == null ) throw new SocketException ( STRING0 ) ; synchronized ( writeLock ) { int start = writeBuffer . position ( ) ; - writeBuffer . position ( start + NUMBER0 ) ; SINGLE + try { + writeBuffer . position ( start + NUMBER0 ) ; SINGLE + } catch ( IllegalArgum...
Properly handled overflows when attempting to move buffer position forward
<nb> public class AppCompiler { targetBuilder = new IOSSimulatorTarget . Builder ( ) ; } } + if ( targetBuilder == null ) { + targetBuilder = new ConsoleTarget . Builder ( ) ; + } i = NUMBER0 ; while ( i < targetArgs . size ( ) ) {
Fixed NPE in AppCompiler when building console apps
<nb> public class RoutingTableImpl extends BasicModule implements RoutingTable , Clust session . process ( packet ) ; } } + + if ( JiveGlobals . getBooleanProperty ( STRING0 , false ) ) + return true ; SINGLE List < ClientSession > highestPrioritySessions = getHighestPrioritySessions ( nonNegativePrio...
Fix send double messages
<nb> public class ScanResult implements Parcelable { COMMENT COMMENT public static class InformationElement { + public static final int EID_SSID = NUMBER0 ; + public static final int EID_BSS_LOAD = NUMBER1 ; + public static final int EID_HT_OPERATION = NUMBER2 ; + public static final int EID_INTERWORKING ...
DO NOT MERGE Moved Wifi InformationElement parsing to a common utility class
<nb> public enum OGlobalConfiguration { TX_COMMIT_SYNCH ( STRING0 , STRING1 , Boolean . class , false ) , SINGLE + @ deprecated BLUEPRINTS_TX_MODE ( STRING2 , STRING3 , Integer . class , NUMBER0 ) ,
Deprecated BLUEPRINTS_TX_MODE parameter
<nb> public class XmppConnection extends ImConnection implements CallbackHandler { @ override public void presenceChanged ( org . jivesoftware . smack . packet . Presence presence ) { - handlePresenceChanged ( presence ) ; + SINGLE SINGLE }
commenting out this redundant presence packet call that is
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class Pe...
do not allow monkey to flip OEM unlock flag
<nb> public abstract class Replacement { return range ( ) . lowerEndpoint ( ) ; } + COMMENT + public int length ( ) { + return endPosition ( ) - startPosition ( ) ; + } + COMMENT public int endPosition ( ) { return range ( ) . upperEndpoint ( ) ;
Add Replacement length
<nb> public class ConsoleBackedProgressRenderer implements OutputEventListener { public void onOutput ( OutputEvent event ) { if ( event instanceof ProgressStartEvent ) { operations . addLast ( STRING0 ) ; - } else if ( event instanceof ProgressCompleteEvent ) { operations . removeLast ( ) ; updateText ( ...
Updated some javadocs
<nb> public class ImportControllerImpl implements ImportController { } private FileImporterBuilder getMatchingImporter ( String extension ) { + if ( extension . startsWith ( STRING0 ) ) { + extension = extension . substring ( NUMBER0 ) ; + } for ( FileImporterBuilder im : fileImporterBuilders ) { for ( ...
Fix import controller importer matching code
<nb> public class JacksonEncoder implements Encoder { public void encode ( Object object , Type bodyType , RequestTemplate template ) { try { JavaType javaType = mapper . getTypeFactory ( ) . constructType ( bodyType ) ; - template . body ( mapper . writerWithType ( javaType ) . writeValueAsString ( object ) ) ...
Fixes deprecated method usage of Jackson library
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener SINGLE SINGLE partialEndOffset += delta ; + if ( partialStartOffset > N ) { + partialStartOffset = N ; + } else if ( partialStartOffset < NUMBER0 ) { + partialStartOffset = NUMBER0 ; + } if ( partialEndOffset > N )...
Avoid a crash trying to get a substring whose start is after its end
<nb> public class BitmapFactory { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT CO...
add more detail to BitmapFactory Options inPurgeable flag
<nb> public class SimpleTest extends LanguageTestSupport { assertExpression ( STRING0 , NUMBER0 ) ; } + public void testSimpleMapBoolean ( ) throws Exception { + Map map = new HashMap ( ) ; + exchange . getIn ( ) . setBody ( map ) ; + + map . put ( STRING1 , true ) ; + assertPredicate ( STRING2 , true...
Added unit test based on user forum issue
<nb> public class DefaultPicoContainer implements MutablePicoContainer , Serializable private PicoContainer parent ; private Set < PicoContainer > children = new HashSet < PicoContainer > ( ) ; - private Map < Object , ComponentAdapter > componentKeyToAdapterCache = new HashMap < Object , ComponentAdapter > ( )...
Added bits of sync
<nb> public class DatabaseDescriptor tableToCFMetaDataMap_ . get ( tName ) . put ( cfName , cfMetaData ) ; } } + if ( tables_ . isEmpty ( ) ) + throw new ConfigurationException ( STRING0 ) ; SINGLE tables_ . add ( Table . SYSTEM_TABLE ) ; <nb> public class StorageService implements IEndPointStateChang...
add check to ensure at least one keyspace present
<nb> public final class MapMaker extends GenericMapMaker < Object , Object > { ? DEFAULT_EXPIRATION_NANOS : expireAfterAccessNanos ; } + Executor getCleanupExecutor ( ) { + return ( cleanupExecutor == null ) + ? DEFAULT_CLEANUP_EXECUTOR : cleanupExecutor ; + } + COMMENT COMMENT COMMENT <nb> publ...
introduce MapMaker cleanupExecutor
<nb> class DefaultBinaryStore implements BinaryStore { } } - public DataInputStream getInput ( ) { - try { - return new DataInputStream ( new BufferedInputStream ( new FileInputStream ( file ) ) ) ; - } catch ( FileNotFoundException e ) { - throw throwAsUncheckedException ( e ) ; - } - } - priva...
Removed dead method
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public abstract class RunnerMediatorManager { + public class RunnerMediatorManager { + public static RunnerMediatorManager getInstance ( ) { return ServiceManager . getService ( RunnerMediatorManager . class ) ; } - public abstract String getRunner...
made not abstract removed PycharmRunnerMediatorManager using runnerw as default
<nb> import NAMESPACE ; } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; ifrLength += readLength ; scratchSliceType . reset ( ifrData , ifrLength ) ; + scratchSliceType . skipBits ( NUMBER0 ) ; SINGLE int len = scratchSliceType . peekExpGolombCodedNumLength ( )...
Fix IFR parsing
<nb> public class ConsistencyCheck { } COMMENT - Integer partitionCount = null ; + int partitionCount = NUMBER0 ; for ( Entry < String , Cluster > entry : clusterMap . entrySet ( ) ) { - Integer currentPartitionCount = entry . getValue ( ) . getNumberOfPartitions ( ) ; - if ( partitionCount == null ) { ...
Get rid of Integer reference comparison
<nb> public class OStorageRemote extends OStorageAbstract implements OStorageProxy , O OLogManager . instance ( ) . info ( this , STRING0 , maxPool ) ; + removeDeadConnections ( ) ; + final long startToWait = System . currentTimeMillis ( ) ; SINGLE <nb> public class OStorageRemote extends OStorageAbst...
removed dead connections when the pool is full
<nb> public class RenderMiningWell extends RenderMultiTile < TileMiningWell > { boolean more = tile . hasWork ( ) ; boolean paused = tile . getControlMode ( ) == Mode . Off ; part . center . colouri ( more ? ( paused ? COLOUR_STATUS_PAUSED : COLOUR_STATUS_ON ) : COLOUR_STATUS_DONE ) ; - part . center . lighti (...
Revert the PR breaking change
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class RankableObjectWithFields implements Rankable { + public class RankableObjectWithFields implements Rankable , Serializable { + private static fina...
RankableObjectWithFields implements Serializable to fix NotSerializableException errors
<nb> public class RPC < V extends DTask > implements Future < V > , Delayed , ForkJoinPool . Ma SINGLE @ override public boolean onExceptionalCompletion ( Throwable ex , CountedCompleter caller ) { if ( ! _firstException . getAndSet ( true ) ) { - ex . printStackTrace ( ) ; _dt . setException ( ex ) ; onCom...
remove extra stack printout
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public interface Downstream < T > { } , Execution . current ( ) . getEventLoop ( ) ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + default Completion...
Add some sugar for converting a downstream to a completion handler
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LocalRepositoryFunction extends RepositoryFunction { Path repositoryPath = getExternalRepositoryDirectory ( ) . getRelative (...
Do not follow symlinks when checking if a repository symlink already exists
<nb> public class MessageControllerWebTests { @ test public void testCreate ( ) throws Exception { this . mockMvc . perform ( post ( STRING0 ) . param ( STRING1 , STRING2 ) . param ( STRING3 , STRING4 ) ) - . andExpect ( status ( ) . isMovedTemporarily ( ) ) + . andExpect ( status ( ) . isFound ( ) ) . andE...
Fix use of deprecated API
<nb> public class MultiObjectivePathServiceImpl extends GenericPathService { } } - if ( pq . peek_min_key ( ) > options . maxWeight ) { - LOG . debug ( STRING0 , options . maxWeight ) ; - break QUEUE ; - } + SINGLE + SINGLE + SINGLE + SINGLE State su = pq . extract_min ( ) ;
do not cut off forward search for now
<nb> public class ChunkOutputStream extends FlowPanel addWithOrdinal ( fixedFrame , ordinal ) ; } else { + SINGLE + SINGLE + frame . getElement ( ) . getStyle ( ) . setHeight ( NUMBER0 , Unit . PX ) ; + frame . getElement ( ) . getStyle ( ) . setOverflow ( Overflow . SCROLL ) ; + frame . getElement ( ...
for knitr figure false html chunks use small start size then grow after load
<nb> public abstract class JedisClusterConnectionHandler { private void initializeSlotsCache ( Set < HostAndPort > startNodes , GenericObjectPoolConfig poolConfig ) { for ( HostAndPort hostAndPort : startNodes ) { - JedisPool jp = new JedisPool ( poolConfig , hostAndPort . getHost ( ) , hostAndPort . getPort ( ...
Fix leak connection when discovering cluster nodes
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; SINGLE SINGLE <nb> public class EasyX509TrustManager implements X509TrustManager { pri...
removed unused imports
<nb> public final class Quaternion { } public Quaternion fromEuler ( final float heading , final float attitude , final float bank ) { - float x = MathUtil . radiansToDegrees ( heading ) ; - float y = MathUtil . radiansToDegrees ( attitude ) ; - float z = MathUtil . radiansToDegrees ( bank ) ; + float x =...
Fix angle conversion in Quaternion fromEuler
<nb> public final class WebInterfaceConfigurationServlet extends HttpServlet { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT @ override public void doGet ( HttpServletRequest request , HttpServletResponse response ) <nb> public class WebInterfaceDownloadServlet extends HttpServlet { COMMENT ...
improve documentation in web package
<nb> public class LocalIndexesFragment extends OsmandExpandableListFragment { LocalIndexInfo c = findCategory ( i , i . isBackupedData ( ) ) ; if ( c != null ) { data . get ( c ) . remove ( i ) ; + if ( data . get ( c ) . size ( ) == NUMBER0 ) { + data . remove ( c ) ; + category . remove ( c ) ; + } } ...
removing last item in category does not remove category
<nb> public abstract class UpdatableDebuggerView extends JPanel implements DebuggerVi private final DebuggerStateManager myStateManager ; private volatile boolean myRefreshNeeded = true ; private final java . util . List < Disposable > myDisposables = new ArrayList < Disposable > ( ) ; - private boolean myUpdat...
revert incorrect change
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MapQueryEngineImpl_queryLocalPartition_resultSizeLimitTest extends assertEquals ( limit , result . size ( ) ) ; } + @ i...
Ignored a failing test in MapQueryEngineImpl_queryLocalPartition_resultSizeLimitTest needs further investigation
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class RxJavaErrorHandler { protected static final String ERROR_IN_RENDERING_SUFFIX = STRING0 ; COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMEN...
adding since annotation adjusting failed link targets to code
<nb> package NAMESPACE ; + import static NAMESPACE ; + + import NAMESPACE ; + + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; i...
Ignore PassivationTestCase testPassivationMaxSize
<nb> public class ViolationsViewer extends Page { private List < Date > dateFilters = new ArrayList < Date > ( ) ; private CheckBox expandCheckbox = null ; private String defaultFilter ; + private int defaultPeriodIndex = - NUMBER0 ; SINGLE private ViolationsPanel sourcePanel ; <nb> public class Violati...
the violations tab must reuse the period selected in violations drilldown
<nb> public interface Layer extends Serializable , Cloneable , Model { COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed little error typo in comment in Layer Interface
<nb> public class ElementMatchers { return new ModifierMatcher < T > ( ModifierMatcher . MatchMode . BRIDGE ) ; } - public static < T extends MethodDescription > ElementMatcher . Junction < T > is ( T methodDescription ) { + public static < T extends MethodDescription > ElementMatcher . Junction < T > is ( Me...
Removed obsolete generic argument
<nb> public abstract class ScanPanel extends AbstractPanel { } } ) ; } catch ( InterruptedException e ) { - log . info ( STRING0 ) ; + log . info ( STRING1 ) ; } catch ( Exception e ) { log . error ( e . getMessage ( ) , e ) ;
Fixed comment typo
<nb> public class VoldemortAdminTool { . withRequiredArg ( ) . describedAs ( STRING0 ) . ofType ( String . class ) ; - parser . accepts ( STRING1 , STRING2 ) + parser . accepts ( STRING1 , STRING3 ) . withRequiredArg ( ) . describedAs ( STRING1 ) . ofType ( Long . class ) ; <nb> public class Voldemort...
Fixed the confusing display messages for Admin tool rollback service
<nb> public abstract class AbstractStoreClientFactory implements StoreClientFactory { } } - throw new BootstrapFailureException ( STRING0 ) ; + throw new BootstrapFailureException ( STRING1 ) ; } public String bootstrapMetadataWithRetries ( String key ) {
fix a typo
<nb> public class OrganizationLocalServiceImpl COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface OrganizationLocalService extends BaseLocalService , COMMENT COMMENT more information see { @ link - com . liferay . portlet . usersadmin . util # Organizatio...
Fixed my mistake
<nb> public class IndexedRangeSlicer extends Operation ByteBuffer . wrap ( new byte [ ] { } ) , false , session . getColumnsPerKey ( ) ) ) ; - List < String > values = super . generateValues ( ) ; + List < ByteBuffer > values = super . generateValues ( ) ; ColumnParent parent = new ColumnParent ( STRING0 ) ...
Fix stress java build
<nb> public class ReaderPostActions { public void run ( ) { ReaderPost serverPost = ReaderPost . fromJson ( jsonObject ) ; - SINGLE - SINGLE - SINGLE - SINGLE + SINGLE + SINGLE + SINGLE + SINGLE if ( serverPost . feedId == NUMBER0 && localPost . feedId != NUMBER0 ) { serverPost . feedId = loca...
Only set feedId and feedItemId
<nb> public class WebView extends AbsoluteLayout private final Rect mViewRectViewport = new Rect ( ) ; private final RectF mVisibleContentRect = new RectF ( ) ; private boolean mGLViewportEmpty = false ; - WebViewInputConnection mInputConnection = new WebViewInputConnection ( ) ; + WebViewInputConnection mInp...
Prevent IME from popping up on startup
<nb> public class DefaultBroadcaster implements Broadcaster { removeAtmosphereResource ( r ) ; config . getBroadcasterFactory ( ) . removeAllAtmosphereResource ( r ) ; - bc . getBroadcasterCache ( ) . addToCache ( getID ( ) , r , new BroadcastMessage ( msg ) ) ; + bc . getBroadcasterCache ( ) . addToCache ( g...
Fix class cast
<nb> public class PaperTest { Paper . put ( STRING0 , STRING1 ) ; assertThat ( Paper . get ( STRING0 ) ) . isEqualTo ( STRING1 ) ; } + + @ test + public void testValidKeyNames ( ) { + Paper . put ( STRING0 , STRING2 ) ; + assertThat ( Paper . get ( STRING0 ) ) . isEqualTo ( STRING2 ) ; + + Paper . p...
Added tests for valid and invalid keys for Paper
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public interface BlockState { int getZ ( ) ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + Location getLocation ( ) ; + + COMMENT COMMENT COMMENT C...
Added missing BlockState functions
<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 ; <nb> public c...
Remove useless method call in JournalResource
<nb> public class FileInStream extends InputStream implements BoundedStream , Seekable SINGLE byte [ ] buffer = new byte [ Math . min ( ( int ) mSeekBufferSizeBytes , ( int ) len ) ] ; do { + SINGLE int bytesRead = read ( buffer , NUMBER0 , ( int ) Math . min ( buffer . length , len ) ) ; Preconditions . ch...
Add a comment
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MoveMarkerBottomSheetHelper { PointF point = mContextMenuLayer . getMovableCenterPoint ( rt ) ; double lat = rt . getLatFromPixel ( point . x ...
make Move Map Marker display respect Coordinate format
<nb> public class Email extends Application { COMMENT COMMENT COMMENT - public static final int NOTIFICATION_LED_OFF_TIME = NUMBER0 ; + public static final int NOTIFICATION_LED_OFF_TIME = NUMBER1 ; COMMENT COMMENT
Fixed typo in LED time off
<nb> public class JBTabbedPane extends JTabbedPane implements HierarchyListener { UIUtil . setNotOpaqueRecursively ( component ) ; setInsets ( component ) ; - revalidate ( ) ; + revalidate ( ) ; repaint ( ) ; }
JsTestDriver run configuration s layout
<nb> import NAMESPACE ; COMMENT public class FileTypeManagerImpl extends FileTypeManagerEx implements NamedJDOMExternalizable , ExportableApplicationComponent { private static final Logger LOG = Logger . getInstance ( STRING0 ) ; - private static final int VERSION = NUMBER0 ; + private static final int VERSIO...
Ignore Mercurial system folder by default
<nb> public class SimpleTextMessage implements MessageAppender public SimpleTextMessage ( EventDriver onEvent ) { this . onEvent = onEvent ; - this . utf = new Utf8StringBuilder ( ) ; + this . utf = new Utf8StringBuilder ( NUMBER0 ) ; size = NUMBER1 ; finished = false ; }
Rework batch mode buffering in websocket
<nb> public class RequestProcessor { } catch ( final Throwable t ) { Ln . d ( t , STRING0 , request . toString ( ) ) ; } + finally { + request . setRequestCancellationListener ( null ) ; + } } @ override
remove RequestCancellationListener after request
<nb> abstract class BasicInvocation implements Callback < Object > , BackupCompletionCall } private Object newOperationTimeoutException ( int pollCount , long pollTimeoutMs ) { - boolean hasResponse = potentialResponse == null ; + boolean hasResponse = potentialResponse != null ; int backupsExpected = expec...
Corrected error in TimeoutException
<nb> public class DataLiberationFragment extends SherlockFragment implements OnTaskFi mTask . execute ( ) ; } } ) ; + + SINGLE + if ( mTask != null && mTask . getStatus ( ) != AsyncTask . Status . FINISHED ) { + setProgressLock ( true ) ; + } } @ override <nb> public class JsonExportTask extends...
Restore locked state when import export task is still running
<nb> public class Server extends HandlerWrapper implements Attributes Server . class . getPackage ( ) . getImplementationVersion ( ) != null ) __version = Server . class . getPackage ( ) . getImplementationVersion ( ) ; else - __version = System . getProperty ( STRING0 , STRING1 ) ; + __version = System . get...
Bumping version identifier
<nb> public class JrePathEditor extends JPanel implements PanelWithAnchor { } private JreComboBoxItem getSelectedJre ( ) { - return ( JreComboBoxItem ) myPathField . getComboBox ( ) . getSelectedItem ( ) ; + return ( JreComboBoxItem ) myPathField . getComboBox ( ) . getEditor ( ) . getItem ( ) ; } publi...
properly save custom JRE path specified in run configuration
<nb> public class Image extends Widget { public void setAlign ( int align ) { this . align = align ; + invalidate ( ) ; } public float getMinWidth ( ) {
Image setAlign should call invalidate
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class LockScreen extends LinearLayout implements KeyguardScreen { mCallback . goToUnlockScreen ( ) ; } else if ( target == NUMBER0 || target == NUMBER1 ) {...
Change slide to camera intent to INTENT_ACTION_STILL_IMAGE_CAMERA
<nb> public class QueryResource { final long start = System . currentTimeMillis ( ) ; Query query = null ; - byte [ ] requestQuery = null ; String queryId = null ; final String reqContentType = req . getContentType ( ) ; <nb> public class QueryResource ) . build ( ) ; } catch ( Exception e ) { +...
Fix NPE in QueryResource on bad query
<nb> public class TravelingItem { toCenter = data . getBoolean ( STRING0 ) ; input = NBTUtils . readEnum ( data . getTag ( STRING1 ) , EnumFacing . class ) ; - output = NBTUtils . readEnum ( data . getTag ( STRING1 ) , EnumFacing . class ) ; + output = NBTUtils . readEnum ( data . getTag ( STRING2 ) , EnumFac...
Fix a bug where travelling items were not loaded properly
<nb> public class MeetingService { COMMENT COMMENT public void removeExpiredMeetings ( ) { + log . info ( STRING0 ) ; for ( Meeting m : meetings . values ( ) ) { if ( m . hasExpired ( defaultMeetingExpireDuration ) || m . wasNeverStarted ( defaultMeetingCreateJoinDuration ) ) { log . info ( STRING1 , m . ...
add logging for meeting cleaner background proc
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Node extends ClusterEntity { . execute ( ) ; } + @ jsonignore public List < InputState > getInputStates ( ) { List < InputState > inputStates = Lists . newArrayLis...
Preventing infinite loop when trying to serialize Node model
<nb> public class MetaClass { protected Reflector loadReflector ( List methods ) { ReflectorGenerator generator = new ReflectorGenerator ( methods ) ; String className = theClass . getName ( ) ; - String packagePrefix = STRING0 ; + String packagePrefix = STRING1 ; + COMMENT if ( className . startsWith ( S...
use a different package for reflectors
<nb> import NAMESPACE ; public class FastItemAdapter < Item extends IItem > extends FastAdapter < Item > { ItemAdapter < Item > mItemAdapter = new ItemAdapter < > ( ) ; + COMMENT + COMMENT + COMMENT public FastItemAdapter ( ) { mItemAdapter . wrap ( this ) ; } COMMENT + COMMENT + COMMENT + C...
add getter for the ItemAdapter inside the FastItemAdapter
<nb> public class AutoValueProcessor extends AbstractProcessor { return STRING0 ; } else { return STRING1 - + FluentIterable . from ( typeParameters ) - . transform ( ElementNameFunction . INSTANCE ) - . join ( Joiner . on ( STRING2 ) ) + + Joiner . on ( STRING2 ) . join ( + FluentIterable . from ( type...
Rewrite reference to GoogleInternal FluentIterable join
<nb> public class SmtpTransport extends Transport } } + SINGLE + if ( localHost . equals ( STRING0 ) ) + { + localHost = STRING1 ; + } + List < String > results = executeSimpleCommand ( STRING2 + localHost ) ; m8bitEncodingAllowed = results . contains ( STRING3 ) ;
Set a default hostname if we can t get the local hostname
<nb> public class DHNSDataBridge implements DataBridge , VizArchitecture { } } else if ( ! obj . isValid ( ) ) { engine . addObject ( AbstractEngine . CLASS_EDGE , ( ModelImpl ) obj ) ; - if ( vizConfig . isShowArrows ( ) ) { + if ( vizConfig . isShowArrows ( ) && ! edge . isSelfLoop ( ) ) { ModelImpl arrow...
Fix a bug when using self loops