diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class DetailsCache { return myBranches . get ( new Pair < VirtualFile , AbstractHash > ( root , hash ) ) ; } } + + public void resetBranchesCache ( ) { + synchronized ( myLock ) { + myBranches . clear ( ) ; + } + } } <nb> public class GitLogUI implements Disposable { private void rel...
reset contained branches cache on refresh
<nb> public class SQLCreateVertexTest extends DocumentDBBaseTest { resultMessages . add ( document . < String > field ( STRING0 ) ) ; } + System . out . println ( STRING1 + toString ( messages ) + STRING2 + toString ( resultMessages ) ) ; Assert . assertEqualsNoOrder ( messages . toArray ( ) , resultMessages ...
modifying create vertex test with more explicit logs
<nb> public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton { int selectionSize = sel . size ( ) ; if ( selectionSize > NUMBER0 ) { - myDiffHandler . showDiffForTwo ( myFilePath , sel . get ( NUMBER1 ) , sel . get ( sel . size ( ) - NUMBER0 ) ) ; + myDiffHandler . showDiffForTwo ( myFilePath...
provide exact revision to the diff handler
<nb> public class GradleRunnerFactory { COMMENT COMMENT COMMENT + COMMENT COMMENT + @ deprecated public static GradleRunnerVersion1 createGradleRunner ( ClassLoader parentClassLoader , File gradleHomeDirectory , GradleRunnerInteractionVersion1 interaction , boolean showDebugInfo ) throws Exception { S...
Deprecated UIFactory and GradleRunnerFactory
<nb> public final class DefaultExchange implements Exchange { public < T > T getProperty ( String name , Class < T > type ) { Object value = getProperty ( name ) ; - if ( value == null ) { - return null ; - } SINGLE SINGLE <nb> public final class DefaultExchange implements Exchange { public < T ...
Ah yeah the boolean issue as null will have the TC return that as false
<nb> public class GitblitContext extends DaggerContext { SINGLE SINGLE String defaultBase = Constants . contextFolder$ + STRING0 ; - String base = lookupBaseFolderFromJndi ( ) ; + String base = System . getProperty ( STRING1 , lookupBaseFolderFromJndi ( ) ) ; if ( ! StringUtils . isEmpty ( System . getenv (...
Allow gitblit baseFolder to be defined by a system property
<nb> public class LazyTypeParameterDescriptor extends AbstractLazyTypeParameterDescri JetSimpleNameExpression constrainedParameterName = jetTypeConstraint . getSubjectTypeParameterName ( ) ; if ( constrainedParameterName != null ) { if ( getName ( ) . equals ( constrainedParameterName . getReferencedNameAsName ( ...
Bind references to type parameters in contraints in LAZY mode
<nb> inline b2BodyType getBodyType ( int type ) COMMENT COMMENT - COMMENT + COMMENT public void setAwake ( boolean flag ) { jniSetAwake ( addr , flag ) ; }
Fixed setAwake javadoc
<nb> public class InspectionResultsView extends JPanel implements Disposable , Occuren myPreviewEditor . getColorsScheme ( ) . setColor ( EditorColors . GUTTER_BACKGROUND , myPreviewEditor . getColorsScheme ( ) . getDefaultBackground ( ) ) ; myPreviewEditor . getScrollPane ( ) . setBorder ( IdeBorderFactory . creat...
try scroll to nearest ref entity when descriptor is invalid
<nb> public class RestResponseFactory { if ( value != null ) { SINGLE for ( RestVariableConverter c : variableConverters ) { - if ( value . getClass ( ) . isAssignableFrom ( c . getVariableType ( ) ) ) { + if ( c . getVariableType ( ) . isAssignableFrom ( value . getClass ( ) ) ) { converter = c ; break ;...
Switched position of classes in isAssignableFrom
<nb> public class IonBitmapCache { o = new BitmapFactory . Options ( ) ; o . inJustDecodeBounds = true ; BitmapFactory . decodeByteArray ( bytes , offset , length , o ) ; + if ( o . outWidth < NUMBER0 || o . outHeight < NUMBER0 ) + return null ; int scale = Math . min ( o . outWidth / targetWidth , o . outH...
Watch for bounds decode errors
<nb> public final class Exceptions { COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> public final class Exceptions { throw ( OnCompletedFailedException ) t ; } SINGLE - else if ( t instanceof StackOverflowError ) { - throw ( StackOverflowError ) t ; - } else if ( t instanceof ...
Remove explicit StackOverflow check as its a VirtualMachineError
<nb> public class AbstractServiceTest extends TestCase { } private static class NoOpThreadedService extends AbstractExecutionThreadService { - @ override protected void run ( ) throws Exception { } + final CountDownLatch latch = new CountDownLatch ( NUMBER0 ) ; + @ override protected void run ( ) throws Exc...
Fix a race condition in
<nb> Parallelism : FLOAT0 double parallelism = cpuTime . toMillis ( ) / wallTime . toMillis ( ) ; SINGLE - String perNodeSummary = String . format ( STRING0 , - parallelism / nodes , - formatCountRate ( globalExecutionStats . getCompletedPositionCount ( ) / nodes , wallTime , false ) , - formatDataRate ( ...
Fix divide by zero when no nodes
<nb> import static NAMESPACE ; COMMENT COMMENT @ suppresswarnings ( { STRING0 } ) - public class MainMediumTest { + public class MainClassLoaderSmallTest { COMMENT COMMENT COMMENT
rename command line test to avoid conflicts with MediumTest configuration in parent pom xml
<nb> public class SmartComboBox extends JComboBox class StartsWithFilter implements Filter { - private String prefix ; - public StartsWithFilter ( String prefix ) { this . prefix = prefix ; } + + public StartsWithFilter ( String prefix ) + { + this . prefix = prefix . toLowerCase ( ) ; + } + p...
combo box filter now matches any part of the text
<nb> public class LruCache implements Cache { } @ override public final synchronized void clearKeyUri ( String uri ) { - boolean sizeChanged = false ; int uriLength = uri . length ( ) ; for ( Iterator < Map . Entry < String , Bitmap > > i = map . entrySet ( ) . iterator ( ) ; i . hasNext ( ) ; ) { Map . E...
Avoid unnecessary call to trimToSize when invalidating cache
<nb> public class Observable < T > { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Add retryWhen example to Javadoc
<nb> public class MessagingController implements Runnable { remoteFolder . expunge ( ) ; } + + SINGLE + SINGLE + synchronizeFolder ( account , remoteFolder , true , NUMBER0 , null ) ; + compact ( account , null ) ; + + } } finally
Improve the Do what I mean nature of Empty trash it now syncs the
<nb> package NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT - COMMENT + COMMENT COMMENT public class LagartoParserContext { - protected final CharBuffer input ; protected long startTime ; protected long endTime ; protected long elapsedTime ; protected int offset ; - public Laga...
remove input from the LagartoParserContext
<nb> public class DebugLogs extends BaseActivity { Intent intent = new Intent ( Intent . ACTION_SEND ) ; intent . setType ( STRING0 ) ; SINGLE - intent . putExtra ( Intent . EXTRA_EMAIL , new String [ ] { STRING1 } ) ; + intent . putExtra ( Intent . EXTRA_EMAIL , new String [ ] { STRING2 } ) ; intent . putE...
Changed debug email
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Contact { } public String getJid ( ) { - return this . jid ; + return this . jid . toLowerCase ( Locale . getDefault ( ) ) ; } public boolean match ( String needle ) {...
made contact jids lower case
<nb> public class OracleDatabase extends AbstractJdbcDatabase { method . invoke ( sqlConn , true ) ; reservedWords . addAll ( Arrays . asList ( sqlConn . getMetaData ( ) . getSQLKeywords ( ) . toUpperCase ( ) . split ( STRING0 ) ) ) ; - reservedWords . addAll ( Arrays . asList ( STRING1 , STRING2 , STRING3 , ST...
DESC is an oracle keywords
<nb> public class Environment { = getDirectory ( STRING0 , STRING1 ) ; private static final File EXTERNAL_STORAGE_DIRECTORY - = getDirectory ( STRING2 , STRING3 ) ; + = getDirectory ( STRING2 , STRING4 ) ; private static final File EXTERNAL_STORAGE_ANDROID_DATA_DIRECTORY - = new File ( new File ( getDir...
Fix default mount point for external storage
<nb> public class BasicAuthManagerFactory extends AuthManager . Factory return new BasicAuthManager ( userRepository , systemUTC ( ) , config . get ( GraphDatabaseSettings . auth_enabled ) ) ; } - } + } <nb> public class BasicAuthSubject implements AuthSubject COMMENT private void validatePassword ( Str...
Fix code style
<nb> public abstract class AbstractPatternRule extends Rule { return description ; } + COMMENT + COMMENT + COMMENT @ override public String getId ( ) { return id ; <nb> public abstract class AbstractPatternRule extends Rule { COMMENT COMMENT COMMENT + COMMENT COMMENT public String getFul...
add reference to getFullId getId
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo in javadoc
<nb> public class ExampleActivityTest { RealmResults < Person > people = mockRealmResults ( ) ; SINGLE - when ( mockRealm . allObjects ( Person . class ) ) . thenReturn ( people ) ; + when ( mockRealm . where ( Person . class ) . findAll ( ) ) . thenReturn ( people ) ; SINGLE SINGLE <nb> public class ...
Fix JVM unit tests
<nb> public class Location { return position . hashCode ( ) + NUMBER0 * world . hashCode ( ) ; } + @ override + public String toString ( ) { + return STRING0 + world . getName ( ) + STRING1 + position . toString ( ) + + STRING2 + yaw + STRING3 + pitch ; + } public static Location fromLookAt ( LocalW...
Add toString to Location
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SourcesOrderRootTypeUIFactory implements OrderRootTypeUIFactory { return new SdkPathEditor ( ProjectB...
find java source roots in new source path only for java sdk corrected
<nb> public class PhoneWindowManager implements WindowManagerPolicy { if ( ! isKeyguardShowing ) { navTranslucent &= areTranslucentBarsAllowed ( ) ; } - boolean statusBarExpandedNotKeyguard = ! isKeyguardShowing + boolean statusBarExpandedNotKeyguard = ! isKeyguardShowing && mStatusBar != null && mStatusBar...
Fix continous crash in WindowManager in boot
<nb> public class InheritanceToDelegationDialog extends RefactoringDialog { init ( ) ; } + @ override + public JComponent getPreferredFocusedComponent ( ) { + return myFieldNameField ; + } + protected void dispose ( ) { myInnerClassNameField . removeDataChangedListener ( myDataChangedListener ) ; ...
focus right component
<nb> public class MediaBrowserActivity extends AppCompatActivity implements MediaGrid mMediaEditFragment = MediaEditFragment . newInstance ( mediaId ) ; ft . add ( R . id . media_browser_container , mMediaEditFragment , MediaEditFragment . TAG ) ; ft . addToBackStack ( null ) ; - ft . commit ( ) ; + ft . comm...
Allowing state loss in MediaEditFragment to avoid IllegalStateException
<nb> public class TregexTest extends TestCase { assertFalse ( matcher . find ( ) ) ; } + public void testOptional ( ) { + Tree tree = treeFromString ( STRING0 ) ; + TregexPattern pattern = TregexPattern . compile ( STRING1 ) ; + TregexMatcher matcher = pattern . matcher ( tree ) ; + assertTrue ( matcher...
Add a brief test for optional nodes
<nb> public abstract class NanoHTTPD { COMMENT public void start ( ) throws IOException { if ( sslServerSocketFactory != null ) { - SSLServerSocket ss = ( SSLServerSocket ) sslServerSocketFactory . createServerSocket ( myPort ) ; + SSLServerSocket ss = ( SSLServerSocket ) sslServerSocketFactory . createServer...
Allow hostname binding for SSL
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ResolverActivity extends Activity { if ( isVoiceInteraction ( ) ) { onSetupVoiceInteraction ( ) ; } + + getWindow ( )...
DO NOT MERGE Fix jank when intent resolver chooser windows animate in
<nb> public class MorphiaIterator < T , V > implements Iterable < V > , Iterator < V > { public long getMapperTime ( ) { return mapperTime ; } + + public void close ( ) { + if ( wrapped != null ) + wrapped . close ( ) ; + } }
add close method for cursor
<nb> public interface Synthesizer { COMMENT COMMENT COMMENT - public String [ ] synthesize ( final AnalyzedToken token , final String posTag ) throws IOException ; + public String [ ] synthesize ( AnalyzedToken token , String posTag ) throws IOException ; COMMENT COMMENT <nb> public interface Synthesi...
remove final from interface where they have no effect
<nb> public interface VcsFileRevision extends VcsFileContent , VcsRevisionDescription public byte [ ] getContent ( ) throws IOException , VcsException { return ArrayUtil . EMPTY_BYTE_ARRAY ; } - - public int compareTo ( VcsFileRevision vcsFileRevision ) { - return NUMBER0 ; - } } ; String getBranchN...
remove unused method
<nb> public interface ElasticsearchConstants { String PARAM_INDEX_TYPE = STRING0 ; String PARAM_CONSISTENCY_LEVEL = STRING1 ; String PARAM_REPLICATION_TYPE = STRING2 ; + String PARENT = STRING3 ; String TRANSPORT_ADDRESSES = STRING4 ; String PROTOCOL = STRING5 ; String LOCAL_NAME = STRING6 ;
add parent to constants
<nb> public class FBUtilities props . load ( in ) ; return props . getProperty ( STRING0 ) ; } - catch ( IOException ioe ) + catch ( Exception e ) { - throw new IOError ( ioe ) ; + logger_ . warn ( STRING1 , e ) ; + return STRING2 ; } }
Don t stop server from starting if version properties is missing
<nb> public class HalideLibrary Linker . LinkableDepType type ) { SINGLE HalideLibrary rule = ( HalideLibrary ) requireBuildRule ( cxxPlatform ) ; - Path libPath = getPathToOutput ( ) . resolve ( rule . getLibraryName ( ) ) ; + Path libPath = rule . getPathToOutput ( ) . resolve ( rule . getLibraryName ( ) ) ...
halide Fix bug in HalideLibrary getNativeLinkableInput
<nb> public class DividerView extends FrameLayout implements OnTouchListener , mEntranceAnimationRunning = true ; resizeStack ( position , mSnapAlgorithm . getMiddleTarget ( ) . position , mSnapAlgorithm . getMiddleTarget ( ) ) ; - - SINGLE - performHapticFeedback ( HapticFeedbackConstants . VIRTUAL_KEY ) ;...
Removing extra haptic feedback
<nb> public class ResultSetViewer extends Viewer redrawData ( true ) ; } if ( refreshData ) { - if ( ResultSetUtils . isServerSideFiltering ( this ) && supportsDataFilter ( ) ) { - refreshData ( null ) ; - } else { - activePresentation . formatData ( true ) ; - } + refreshData ( null ) ; } else { ...
Local ordering fix
<nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPAC...
Fix failed WAL test
<nb> public class AtomicArray < T > implements Collection < T > int i = fromIndex ; do { - final T element = array [ i ] ; - if ( null != element ) - { - actionsCount += function . apply ( element ) ; - } - - i ++ ; + actionsCount += function . apply ( array [ i ] ) ; - if ( i == array . lengt...
Remove unnecessary null check in forEach because a null element cannot be added
<nb> public class BatteryStatsImpl extends BatteryStats { for ( int i = NUMBER0 ; i < NUM_SCREEN_BRIGHTNESS_BINS ; i ++ ) { mScreenBrightnessTimer [ i ] . reset ( false ) ; } - mEstimatedBatteryCapacity = ( int ) mPowerProfile . getBatteryCapacity ( ) ; + + if ( mPowerProfile != null ) { + mEstimatedBatte...
Prevent early boot crash reading PowerProfile
<nb> public class CompileDriver { if ( useExtProcessBuild ) { SINGLE myProject . save ( ) ; + ApplicationManager . getApplication ( ) . saveSettings ( ) ; } PsiDocumentManager . getInstance ( myProject ) . commitAllDocuments ( ) ; FileDocumentManager . getInstance ( ) . saveAllDocuments ( ) ;
save application settings before starting build to ensure that changes in global libraries and SDKs are seen by build process
<nb> class NameAnonymousFunctionsMapped implements CompilerPass { case Token . STRING_KEY : return node . getString ( ) ; default : - return new CodePrinter . Builder ( node ) . build ( ) ; + return compiler . toSource ( node ) ; } }
Reorganize a few things so that targets can be sorted better internally
<nb> public class OrmLiteConfigUtil { public static void writeConfigFile ( String fileName , Class < ? > [ ] classes ) throws SQLException , IOException { File rawDir = findRawDir ( new File ( STRING0 ) ) ; if ( rawDir == null ) { - System . err . println ( STRING1 + RAW_DIR_NAME + STRING2 ) ; + System . err ...
Improved the error message a bit
<nb> import NAMESPACE ; public native SKReceiptRefreshRequestOptions getReceiptProperties ( ) ; COMMENT COMMENT - COMMENT - COMMENT - COMMENT - @ method ( selector = STRING0 ) - protected native @ pointer long init ( NSDictionary < NSString , ? > properties ) ; COMMENT COMMENT COMMENT
Fixed a compilation error
<nb> public final class Bukkit { } Bukkit . server = server ; + server . getLogger ( ) . info ( STRING0 + getName ( ) + STRING1 + getVersion ( ) ) ; } public static String getName ( ) {
Print version message at server definition
<nb> public class FileReference implements PsiPolyVariantReference { SINGLE int delta = newElementName . length ( ) - myRange . getLength ( ) ; myRange = new TextRange ( getRangeInElement ( ) . getStartOffset ( ) , getRangeInElement ( ) . getStartOffset ( ) + newElementName . length ( ) ) ; - FileReference [ ] ...
fixed issue with folding with nested stylesheets
<nb> public abstract class SpiceArrayAdapter < T > extends ArrayAdapter < T > { if ( convertView != null ) { spiceListItemView = ( SpiceListItemView < T > ) convertView ; } else { - spiceListItemView = createView ( getContext ( ) ) ; + spiceListItemView = createView ( getContext ( ) , parent ) ; } spiceLi...
Pass parent to createView
<nb> public class ProgressEvent extends CategorisedOutputEvent { @ override public String toString ( ) { - return String . format ( STRING0 , status ) ; + return STRING1 + status ; } public OperationIdentifier getOperationId ( ) {
Replace String format with concatenation
<nb> public interface PropertyResolver { < T > Class < T > getPropertyAsClass ( String key , Class < T > targetType ) ; COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix method comment for getRequiredProperty String
<nb> public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow try { mCurrentTheme = Theme . fromJSONV1_1 ( response ) ; if ( mCurrentTheme != null ) { + mCurrentTheme . save ( ) ; WordPress . wpDB . setCurrentTheme ( siteId , mCurrentTheme . getId ( ) ) ; mThemeBrowserFragment . setR...
Fixing customize theme crash
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ vertxgen + @ vertxgen ( concrete = false ) public interface WebSocketBase < T > extends ReadStream < T > , WriteStream < T > { COMMENT
Make WebSocketBase an abstract gen interface
<nb> public class OChannelBinaryAsynch extends OChannelBinary { private int currentSessionId ; private final int maxUnreadResponses ; - private static final int MAX_LENGTH_DEBUG = NUMBER0 ; + private static final int MAX_LENGTH_DEBUG = NUMBER1 ; public OChannelBinaryAsynch ( final Socket iSocket , final O...
improved readable of dirty buffer
<nb> public class UnknownRequestBody implements AsyncHttpRequestBody < Void > { return null ; } + @ deprecated public void setCallbacks ( DataCallback callback , CompletedCallback endCallback ) { emitter . setEndCallback ( endCallback ) ; emitter . setDataCallback ( callback ) ; } + public DataEmitt...
allow access to emitter
<nb> public class TransportExecutorTest extends SQLTransportIntegrationTest { public void testImportTask ( ) throws Exception { execute ( STRING0 + STRING1 ) ; + ensureGreen ( ) ; String filePath = Joiner . on ( File . separator ) . join ( copyFilePath , STRING2 ) ; CopyNode copyNode = new CopyNode ( file...
ensure green state in import test
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public class Pair < L , R > { if ( ! ( o instanceof Pair ) ) { return false ; } - Pair pairo = ( Pair ) o ; - return this . left . equals ( pairo . getLeft ( ) ) - && this . right . equals ( pairo . getRig...
Improved equals method
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class TFramedTransportFactory implements ITransportFactory {
remove bad import
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class ConfigurationClassEnhancer { } Object beanInstance = ( ! ObjectUtils . isEmpty ( beanMethodArgs ) ? beanFactory . getBean ( beanName , beanMethodAr...
Bean type mismatch check accepts assignable values according to ClassUtils
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
change DiagramElementManager API to support Java properties
<nb> public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe case SimPuk : SINGLE SecurityMode securityMode = mSecurityModel . getSecurityMode ( ) ; - if ( securityMode != SecurityMode . None ) { + if ( securityMode != SecurityMode . None + || ! mLockPatternUtils . isLockScreenDisab...
Fixed an inconsistency when booting up with SIMPIn
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public interface Block { COMMENT COMMENT COMMENT - Location getLocation ( ) ; COMMENT <nb> public interface Bloc...
Bleeding Added Block breakNaturally and Block getDrops
<nb> public class RajawaliScene extends AFrameTask { SINGLE if ( mNextCamera != null ) { mCamera = mNextCamera ; + mCamera . setProjectionMatrix ( mRenderer . getViewportWidth ( ) , mRenderer . getViewportHeight ( ) ) ; mNextCamera = null ; } }
Causes RajawaliScene to update the camera frustrum when switching cameras
<nb> public final class Constants { SINGLE STRING0 , STRING1 , - STRING2 , - STRING3 , STRING4 , STRING5 , STRING6 , <nb> public class UILApplication extends Application { . threadPriority ( Thread . NORM_PRIORITY - NUMBER0 ) . denyCacheImageMultipleSizesInMemory ( ) . diskCacheFileNameGenerator...
Removed broken URLs limit disk cache
<nb> public class WildcardQueryBuilder extends BaseQueryBuilder { @ override public void doXContent ( XContentBuilder builder , Params params ) throws IOException { builder . startObject ( WildcardQueryParser . NAME ) ; - if ( boost == - NUMBER0 && rewrite != null ) { + if ( boost == - NUMBER0 && rewrite == n...
Fix WildcardQueryBuilder when only rewrite is changed
<nb> public class MessageListFragment extends QKContentFragment implements ActivityLa mConversation . blockMarkAsRead ( true ) ; mConversation . markAsRead ( ) ; + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + long time = System . currentTimeMillis ( ) ; while ( ! mOpened ) { - } SINGLE + if ( Sy...
Fixed battery drain
<nb> public class HazelcastIdempotentRepository extends ServiceSupport implements Ide @ override public boolean contains ( String key ) { - return this . repo . containsKey ( key ) ; + repo . lock ( key ) ; + try { + return this . repo . containsKey ( key ) ; + } finally { + repo . unlock ( key ) ; ...
Hazelcast idempotent repository Should use locks
<nb> public class GrailsConsole implements ConsoleLogger { @ override public String toString ( ) { if ( size ( ) == NUMBER0 ) return peek ( ) + CATEGORY_SEPARATOR ; - return DefaultGroovyMethods . join ( this , CATEGORY_SEPARATOR ) + CATEGORY_SEPARATOR ; + return DefaultGroovyMethods . join ( ( Iterable ) thi...
Use non deprecated versions of methods
<nb> public abstract class KotlinCompileMojoBase extends AbstractMojo { if ( sources . size ( ) <= NUMBER0 ) throw new MojoExecutionException ( STRING0 ) ; - if ( sources . size ( ) > NUMBER1 ) - throw new MojoExecutionException ( STRING1 ) ; - - final String src = sources . get ( NUMBER0 ) ; - - log ...
enabled multiple source directories
<nb> public class ExpandableNotificationRow extends ActivatableNotificationView { mMaxExpandHeight = NUMBER0 ; mWasReset = true ; onHeightReset ( ) ; + requestLayout ( ) ; } @ override
Fixed a bug where the notifications could overlap when reset
<nb> public class DnDManagerImpl extends DnDManager implements DnDEvent . DropTargetHig component . putClientProperty ( SOURCE_KEY , null ) ; myLastProcessedOverComponent = null ; + myCurrentDragContext = null ; } public void registerTarget ( DnDTarget target , JComponent component ) {
fixing memory leak
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MarkupBuilder extends BuilderSupport { this ( new IndentPrinter ( writer ) ) ; } + public MarkupBuilder ( Writer writer ) { + this ( new IndentPrinter ( ne...
added an extra constructor to allow a Writer to be passed into the constructor
<nb> public abstract class OStorageEmbedded extends OStorageAbstract { : - NUMBER0 ; ioRecord = browseCluster ( iListener , ioRecord , cluster , beginClusterPosition , endClusterPosition , iLockEntireCluster ) ; + if ( ioRecord == null ) + SINGLE + break ; } } catch ( IOException e ) { <nb> public a...
Fixed bug on LIMIT keywork in SQL UPDATE statement
<nb> import NAMESPACE ; public class DataStructures { - private static final int SIZE = NUMBER0 ; + private static final int SIZE = NUMBER1 ; private static Integer [ ] unsorted = null ; public static void main ( String [ ] args ) {
Removed some testing code
<nb> public class LocalTransportThreadModelTest2 { class LocalHander extends ChannelInboundMessageHandlerAdapter < Object > { private final String name ; - public volatile ChannelFuture lastWriteFuture = null ; + public volatile ChannelFuture lastWriteFuture ; public AtomicInteger count = new AtomicIntege...
Remove redundant field initialization
<nb> public class NewChunk extends Chunk { public void addEnum ( int e ) { append2 ( e , Integer . MIN_VALUE + NUMBER0 ) ; } public void addNA ( ) { if ( isUUID ( ) ) addUUID ( C16Chunk . _LO_NA , C16Chunk . _HI_NA ) ; - if ( isStr ( ) ) addStr ( null ) ; + else if ( isStr ( ) ) addStr ( null ) ; + else if ...
Allow NewChunks s addNA to work for Float or Double Chunks
<nb> public class HikariConfig implements HikariConfigMBean private boolean isAllowPoolSuspension ; private boolean isWeakThreadLocals ; private DataSource dataSource ; - private final Properties dataSourceProperties ; + private Properties dataSourceProperties ; private ThreadFactory threadFactory ; priva...
Declaring fields final prevents the copyState method from working
<nb> public abstract class JDBCDataSource SINGLE log . error ( STRING0 + connectionInfo . getUrl ( ) ) ; } - } catch ( SQLException e ) { + } catch ( Throwable e ) { log . debug ( STRING1 + driverInstance . getClass ( ) . getName ( ) + STRING2 , e ) ; } Connection connection ;
acceptsURL check doesn t thorw exception
<nb> public class GitVcs extends AbstractVcs < CommittedChangeList > { COMMENT @ nullable public GitVersion getVersion ( ) { + if ( myVersion == null ) { + checkVersion ( ) ; + } return myVersion ; }
if null check version
<nb> public class Pushover { logger . debug ( STRING0 + response ) ; try { + if ( StringUtils . isEmpty ( response ) ) { + logger . error ( STRING1 ) ; + return false ; + } String responseMessage = parseResponse ( response ) ; if ( StringUtils . isEmpty ( responseMessage ) ) { return true ; <nb> p...
Added a nicer error message when communication with Pushover API fails to
<nb> abstract public class AbstractPlugin implements Plugin , Comparable < Object > { } protected void sendAndReceive ( HttpMessage msg , boolean isFollowRedirect ) throws HttpException , IOException { - sendAndReceive ( msg , true , true ) ; + sendAndReceive ( msg , isFollowRedirect , true ) ; } COMMEN...
Changed the method AbstractPlugin sendAndReceive HttpMessage msg boolean isFollowRedirect to use the parameter isFollowRedirect
<nb> public class TripTimes implements Serializable , Comparable < TripTimes > , Cloneable this . arrivalTimes = null ; this . departureTimes = null ; this . timepoints = Deduplicator . deduplicateBitSet ( timepoints ) ; - LOG . info ( STRING0 , trip , timepoints ) ; + LOG . trace ( STRING0 , trip , timepoint...
stifle log entries about timepoints
<nb> public class FlashlightTile extends QSTile < QSTile . BooleanState > implements state . visible = mFlashlightController . isAvailable ( ) ; state . label = mHost . getContext ( ) . getString ( R . string . quick_settings_flashlight_label ) ; if ( arg instanceof UserBoolean ) { - state . value = ( ( UserBoo...
Fix Flashlight tile animation
<nb> public final class ZWaveNetworkMonitor implements ZWaveEventListener { healing . state = HealState . PING ; ZWaveNoOperationCommandClass zwaveCommandClass = ( ZWaveNoOperationCommandClass ) healing . node . getCommandClass ( CommandClass . NO_OPERATION ) ; - if ( zwaveCommandClass == null ) + if ( zwaveC...
Stop HEAL lockup if NO OP not supported by a device
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class BridgeExceptionHandlerToErrorHandler implements ExceptionHandler {
Added note to javadoc about brdige error handler does not support interceptors onCompletion etc
<nb> package NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import NAMESPACE ; <nb> public class CameraBinderDecorator { public static final int EBUSY = - NUMBER0 ; public static final int ENODEV = - NUM...
Add MAX_CAMERAS_IN_USE error case handling
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GitVcs extends AbstractVcs < CommittedChangeList > { Disposer . dispose ( myVFSListener ) ; myVFSListener = null ; } - ...
git Fix NPE for obsolete component initialization
<nb> public class NotificationsUtils { public static final String WPCOM_PUSH_DEVICE_NOTIFICATION_SETTINGS = STRING0 ; public static final String WPCOM_PUSH_DEVICE_UUID = STRING1 ; - public static final String WPCOM_PUSH_AUTH_TOKEN = STRING2 ; public static final String WPCOM_PUSH_DEVICE_SERVER_ID = STRING3 ...
Removed some unused strings
<nb> public class DialogBuilder implements Disposable { return showImpl ( true ) . getExitCode ( ) ; } + public boolean showAndGet ( ) { + return showImpl ( true ) . isOK ( ) ; + } + public void showNotModal ( ) { showImpl ( false ) ; }
add convenient showAndGet DialogWrapper has one
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ComplementaryFontsRegistry { return ourSharedDefaultFont ; } } + + @ testonly + public static void resetCaches ( ) { + ourUsedFonts ...
Fix blinking EditorImplTest testSoftWrapsRecalculationInASpecificCase
<nb> public class TrackingSerialMergeScheduler extends MergeScheduler { if ( merge == null ) break ; + SINGLE + SINGLE + writer . mergeInit ( merge ) ; + int totalNumDocs = merge . totalNumDocs ( ) ; long totalSizeInBytes = merge . totalBytesSize ( ) ; long time = System . currentTimeMillis ( ) ;
call mergeInit in the serial merge scheduler case to get proper stats for it
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class EventTrackerModule extends AbstractModule { <nb> public class EventTrackerModule extends AbstractModule { @ override protected void configure ( ) { Names . bindProperties ( super . bi...
create event tracker directory if not exist
<nb> import static NAMESPACE ; COMMENT @ implements ( DialogFragment . class ) public class ShadowDialogFragment extends ShadowFragment { + private static DialogFragment latestDialogFragment ; + private Dialog dialog ; @ realobject <nb> public class ShadowDialogFragment extends ShadowFragment { real...
Don t show the SwiperChooserDialog if a SwiperType preference has already been set
<nb> public interface Server { COMMENT COMMENT public File getWorldContainer ( ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public OfflinePlayer [ ] getOfflinePlayers ( ) ; }
Added method to retrieve all players on a server online or offline
<nb> public class OutputModelController { } public void buildLexerRuleActions ( Lexer lexer , final Rule r ) { + if ( r . actions . isEmpty ( ) ) { + return ; + } + CodeGenerator gen = delegate . getGenerator ( ) ; Grammar g = delegate . getGrammar ( ) ; String ctxType = gen . target . getRuleFuncti...
Don t create action functions for lexer rules with no specified actions