diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import static NAMESPACE ; public class KernelHealth { private static final String panicMessage = STRING0 - + STRING1 ; + + STRING2 ; SINGLE private volatile boolean tmOk = true ; SINGLE <nb> public class KernelHealth catch ( Exception e ) { throw new Error ( panicMessage + STRING3 + panicDi...
Improved couple log messages around NeoStore
<nb> import NAMESPACE ; import static NAMESPACE ; - class BsonCallbackAdapter extends AbstractBsonWriter { + class BSONCallbackAdapter extends AbstractBsonWriter { private BSONCallback bsonCallback ; <nb> class BsonCallbackAdapter extends AbstractBsonWriter { COMMENT COMMENT COMMENT - protecte...
Fix name of BSONCallbackAdapter
<nb> public class DefaultEntitlement extends EntityBase implements Entitlement { SINGLE refresh ( context , internalCallContext ) ; + final DateTime now = clock . getUTCNow ( ) ; + SINGLE - final DateTime effectiveDate = effectiveDateOrNull == null ? clock . getUTCNow ( ) : effectiveDateOrNull ; + final...
integrate code review comments
<nb> public class ConnectionResourceIT extends JmsTestSupport { } @ test - public void testAsynchronous ( ) throws Exception { + public void testConnectionResourceRouter ( ) throws Exception { MockEndpoint mock = getMockEndpoint ( STRING0 ) ; mock . expectedMessageCount ( NUMBER0 ) ; mock . expectsNoDup...
Fixed incorrect test name
<nb> public class MultiObjectivePathServiceImpl implements PathService { private static final Logger LOG = LoggerFactory . getLogger ( MultiObjectivePathServiceImpl . class ) ; private static final MonitoringStore store = MonitoringStoreFactory . getStore ( ) ; + + private static final double MAX_WALK = NUMBE...
do not repeat doubling when all hope is lost
<nb> public class SecurityDomainProcessor extends AbstractAnnotationEJBProcessor < EJBC final String securityDomain = securityDomainAnnotation . value ( ) . asString ( ) ; logger . debug ( STRING0 + componentDescription . getEJBName ( ) + STRING1 + securityDomain ) ; if ( securityDomain . trim ( ) . isEmpty ( ) )...
fixing typo in exception message
<nb> public class ModAPIManager { public void addAPIReference ( String embedded ) { - currentReferents . add ( embedded ) ; - referredMods . add ( VersionParser . parseVersionReference ( embedded ) ) ; + if ( currentReferents . add ( embedded ) ) + { + referredMods . add ( VersionParser . parseVersionRe...
Fix up duplicate entries
<nb> public class CreateTriggerStatement extends SchemaAlteringStatement public void checkAccess ( ClientState state ) throws UnauthorizedException { - state . ensureIsSuper ( STRING0 ) ; + state . ensureIsSuper ( STRING1 ) ; } public void validate ( ClientState state ) throws RequestValidationException
fix message spilleng
<nb> public class ReaderPostListFragment extends Fragment implements AbsListView . OnSc COMMENT COMMENT COMMENT - protected void refreshPosts ( ) { + private void refreshPosts ( ) { getPostAdapter ( ) . refresh ( ) ; }
Change the visibility of refreshPosts back to private
<nb> public class MemCachedPersistenceTest extends StorageBaseTest private MemCachedStorageHelper memCachedStorageHelper ; @ test - public void testObserverSerialization ( ) throws Exception + public void testReferenceSerialization ( ) throws Exception { createStage ( ) ; IHelloActor helloActor = IActor...
Resolve reference replacement objects
<nb> public class DVParser { System . err . println ( STRING0 ) ; System . err . println ( STRING1 ) ; System . err . println ( STRING2 ) ; - System . err . println ( STRING3 ) ; + System . err . println ( STRING4 ) ; System . err . println ( STRING5 ) ; System . err . println ( STRING6 ) ; System . err...
Fix a comment
<nb> public class SessionUtils { COMMENT COMMENT private static final String [ ] USER_TEST_ATTRIBUTES = new String [ ] { - STRING0 , STRING1 , STRING2 , STRING3 , STRING4 } ; + STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , + STRING5 } ; COMMENT COMMENT
Add support for detecting Spring Security user names in the manager app
<nb> public class AprEndpoint extends AbstractEndpoint < Long > { nextPollerTime += pollerTime ; } if ( rv > NUMBER0 ) { + rv = mergeDescriptors ( desc , rv ) ; pollerSpace [ i ] += rv ; connectionCount . addAndGet ( - rv ) ; for ( int n = NUMBER0 ; n < rv ; n ++ ) { <nb> public class AprEndpoint extend...
Add a placeholder for the descriptor merging that is going to be necessary for OSX and BSD
<nb> public class ZooKeeperMasterModel implements MasterModel { return opFactory . error ( e , host , RollingUpdateError . TOKEN_VERIFICATION_ERROR ) ; } catch ( HostNotFoundException e ) { return opFactory . error ( e , host , RollingUpdateError . HOST_NOT_FOUND ) ; - } catch ( JobPortAllocationConflictExcepti...
Fix stylecheck error
<nb> public class JspCompilationContext { private final Log log = LogFactory . getLog ( JspCompilationContext . class ) ; SINGLE protected Map < String , JarResource > tagFileJarUrls ; - protected boolean isPackagedTagFile ; protected String className ; protected String jspUri ; <nb> public class JspCom...
Remove unused code
<nb> public class Client extends ConnectionWithStatus implements IStatefulObject { private synchronized void connect ( long delayMs ) { try { if ( closing ) { + LOG . info ( STRING0 , dstAddressPrefixedName ) ; return ; } if ( connectionEstablished ( channelRef . get ( ) ) ) { + LOG . info ( STRING1 ,...
Add logging to connect for corner cases e g client is being closed
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class App extends Plugin { + public class App extends CordovaPlugin { COMMENT COMMENT
Upgrading App plugin to CordovaPlugin
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AndroidFacet extends Facet < AndroidFacetConfiguration > { return ; } + DumbService . getInstance ( project ) . waitFor...
fix index not ready exception
<nb> public final class TreeWalker COMMENT COMMENT COMMENT - private static enum AstState { + private enum AstState { COMMENT COMMENT COMMENT <nb> public final class AnnotationUseStyleCheck extends Check { COMMENT COMMENT COMMENT - public static enum ElementStyle { + public enum ElementStyle...
Remove unnecessary enum modifiers
<nb> class OperationRunnerImpl extends OperationRunner implements MetricsProvider { return ; } + Address localAddress = node . getThisAddress ( ) ; if ( state == NodeState . SHUT_DOWN ) { - throw new HazelcastInstanceNotActiveException ( STRING0 + op ) ; + throw new HazelcastInstanceNotActiveException ( S...
Fix a potentially misleading exception message
<nb> public class CachingFileWriter { c . close ( ) ; } catch ( IOException e ) { IOException ex = new IOException ( STRING0 + displayName ) ; - ex . initCause ( e ) ; + ex . initCause ( e ) ; SINGLE throw ex ; } }
Added a comment
<nb> public class AsyncSocketMiddleware extends SimpleMiddleware { SINGLE data . request . logv ( STRING0 ) ; - return new TransformFuture < AsyncSocket , InetAddress [ ] > ( ) { + return new TransformFuture < AsyncSocket , InetAddress [ ] > ( ) { int reported ; @ override protected void transform ( fin...
Remove the final modifier from some variables to allow them to drop from the anon class closure
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import N...
Cleaned up unused imports
<nb> public abstract class OAbstractPaginatedStorage extends OStorageAbstract impleme } } - - public OIndexEngine getIndexEngine ( int indexId ) { - return indexEngines . get ( indexId ) ; - } + public int loadExternalIndexEngine ( String engineName , String algorithm , OIndexDefinition indexDefinit...
removed getIndexEngine public api
<nb> public class WebView extends AbsoluteLayout setUpSelect ( ) ; if ( mNativeClass != NUMBER0 && nativeWordSelection ( x , y ) ) { nativeSetExtendSelection ( ) ; - getWebChromeClient ( ) . onSelectionStart ( this ) ; + WebChromeClient client = getWebChromeClient ( ) ; + if ( client != null ) client . onSe...
DO NOT MERGE fix null check
<nb> class ByteArrayObjectDataInput extends InputStream implements BufferObjectDataIn COMMENT COMMENT public int readUnsignedByte ( ) throws IOException { - return readByte ( ) ; + return NUMBER0 & ( int ) readByte ( ) ; } COMMENT <nb> class ByteArrayObjectDataInput extends InputStream implements Buff...
readUnsignedByte readUnsignedShort should never return a negative value
<nb> import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public abstract class BaseActualServer < T extends ResponseSetting < T > > extends Ba @ override @ suppresswarnings ( STRING0 ) public RequestMa...
fixed any response matcher
<nb> public abstract class CallIdSequence { COMMENT COMMENT COMMENT - public static final class CallIdSequenceWithBackpressureViaException extends CallIdSequence { + public static final class CallIdSequenceFailFast extends CallIdSequence { private static final int INDEX_HEAD = NUMBER0 ; private static fin...
findbugs fix renaming
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class CommandLineRunner { } private static boolean decode ( URI uri , Hashtable < DecodeHintType , Object > hints ) throws IOException { -...
Improved error message when file URI is mistyped
<nb> public class MainActivity extends Activity implements OnNavigationListener { @ override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; + + if ( savedInstanceState != null ) + mSelectedItem = savedInstanceState . getInt ( KEY_SELECTED_CLASS ) ; fina...
Fixed retention of selected ActionBar item on device rotation
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMMENT
torod core Removed a unused import
<nb> public class RenameDialog extends RefactoringDialog { } public String [ ] getSuggestedNames ( ) { - Set < String > result = new HashSet < String > ( ) ; + LinkedHashSet < String > result = new LinkedHashSet < String > ( ) ; final NameSuggestionProvider [ ] providers = Extensions . getExtensions ( NameS...
preserve suggestions order
<nb> public class AnimatedVectorDrawable extends Drawable implements Animatable { @ override public Drawable mutate ( ) { if ( ! mMutated && super . mutate ( ) == this ) { - mAnimatedVectorState . mVectorDrawable . mutate ( ) ; + mAnimatedVectorState = new AnimatedVectorDrawableState ( + mAnimatedVectorStat...
Deep copy the animator target setup when mutate
<nb> public abstract class InCallService extends Service { private final Handler mHandler = new Handler ( Looper . getMainLooper ( ) ) { @ override public void handleMessage ( Message msg ) { + if ( mPhone == null && msg . what != MSG_SET_IN_CALL_ADAPTER ) { + return ; + } + switch ( msg . what ) { ca...
Fix NPE crash when mPhone is null
<nb> public class FeedManager { && feed . getImage ( ) . getFile_url ( ) != null ) { File imageFile = new File ( feed . getImage ( ) . getFile_url ( ) ) ; imageFile . delete ( ) ; + } else if ( requester . isDownloadingFile ( feed . getImage ( ) ) ) { + requester . cancelDownload ( context , feed . getImage (...
Deleting a feed without an image caused an application crash
<nb> public class GroovyMain { String filename = ( String ) i . next ( ) ; SINGLE SINGLE - File file = searchForGroovyScriptFile ( filename ) ; + File file = huntForTheScriptFile ( filename ) ; processFile ( s , file ) ; } }
Refactoring bit me here
<nb> public abstract class Transition { public abstract int getSerializationType ( ) ; - COMMENT - public boolean isEpsilon ( ) { return false ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public boolean isEpsilon ( ) { + return false ; ...
Improved documentation for Transition isEpsilon
<nb> public abstract class TransportNegotiator extends JingleNegotiator { } - for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { + for ( int i = NUMBER0 ; i < NUMBER2 ; i ++ ) { try { - Thread . sleep ( NUMBER3 ) ; + Thread . sleep ( NUMBER4 ) ; } catch ( InterruptedException e ) { e . printStackTrace...
Add more wait time to Relayed Candidates Establishing
<nb> public class AstridActivity extends FragmentActivity return SubtasksListFragment . class ; } - private static boolean isTagFilter ( Filter filter ) { + public static boolean isTagFilter ( Filter filter ) { if ( filter instanceof FilterWithCustomIntent ) { String className = ( ( FilterWithCustomIntent...
Fixed a bug where widgets created under the old system could use the wrong fragment
<nb> public final class NewCustomControlWizardAction extends AbstractNewControlWizard DialogDisplayer . getDefault ( ) . notifyLater ( new NotifyDescriptor . Message ( STRING0 ) ) ; } } else { - DialogDisplayer . getDefault ( ) . notifyLater ( new NotifyDescriptor . Message ( STRING1 + className + STRING2 ) ) ;...
improve error dialog
<nb> public class OsmAndLocationProvider implements SensorEventListener { loc . setSpeed ( startLocation . getSpeed ( ) ) ; loc . setAltitude ( startLocation . getAltitude ( ) ) ; loc . setTime ( System . currentTimeMillis ( ) ) ; - float meters = ( System . currentTimeMillis ( ) - startLocation . getTime ( ) )...
Fix interpolation issues
<nb> public class HttpClientTest extends AbstractHttpClientServerTest Assert . assertTrue ( successLatch . await ( NUMBER0 , TimeUnit . SECONDS ) ) ; } - @ slow @ test public void test_QueuedRequest_IsSent_WhenPreviousRequestClosedConnection ( ) throws Exception { <nb> public class HttpClientTest extend...
Removed unused Slow annotations
<nb> public class Exec extends Iced { String parseID ( ) { StringBuilder sb = new StringBuilder ( ) ; - if ( peek ( ) == STRING0 ) { _x ++ ; return parseID ( ) ; } SINGLE + if ( peek ( ) == STRING0 ) { _x ++ ; skipWS ( ) ; return parseID ( ) ; } SINGLE if ( isSpecial ( peek ( ) ) ) { return sb . append ( ( ...
allow ws after the and before next token
<nb> class ExpressionDecomposer { } SINGLE - SINGLE - SINGLE + SINGLE + SINGLE SINGLE COMMENT COMMENT <nb> class ExpressionDecomposer { } COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typos in comments
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class UltimateRecyclerView extends FrameLayout implements Scrollable { private static boolean isParallaxHeader = false ; COMMEN...
overload res id
<nb> public class AceEditor implements DocDisplay , @ override public void onKeyDown ( KeyDownEvent event ) { - if ( isVimModeOn ( ) ) + if ( isVimModeOn ( ) || isEmacsModeOn ( ) ) return ; int mod = KeyboardShortcut . getModifierValue ( event . getNativeEvent ( ) ) ;
disable certain yank commands when in Emacs mode
<nb> public class Main { Collections . addAll ( args , System . getProperty ( STRING0 ) + STRING1 , + STRING2 , STRING3 , copyPatchFile . getPath ( ) , STRING4 , <nb> public class Patch { shouldRevert = true ; cancelled = true ; } - catch ( Exception e ) { + catch ( Throwable e ) { shouldRev...
handling OOM errors and other increased Xmx for updater process
<nb> public class OCommandExecutorSQLUpdate extends OCommandExecutorSQLSetAware imple parserRequiredKeyword ( KEYWORD_UPDATE ) ; - subjectName = parserRequiredWord ( true , STRING0 , STRING1 ) ; + subjectName = parserRequiredWord ( false , STRING0 , STRING1 ) ; if ( subjectName == null ) throwSyntaxErrorE...
fixed bug on inner select traverse
<nb> public interface Query { public Query setBigDecimal ( String name , BigDecimal number ) ; public Query setBigInteger ( String name , BigInteger number ) ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public Query setDate ( String name , Date date ) ; + + COMMENT + COMMENT ...
Add comments to setDate setTime setTimestamp methods to reduce confusion to the Hibernate newbies in future
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT - COMMENT ...
fixed javadoc for new feature stubbing consecutive calls
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - public abstract class ChannelImplDetector { - private static final boolean EPOLL = System . getPrope...
Fix the epoll check
<nb> public class StarTreeRecordStreamAvroFileImpl implements Iterable < StarTreeRecord } else if ( o instanceof Integer ) { - builder . setMetricValue ( timeColumnName , ( ( Integer ) o ) . longValue ( ) ) ; + builder . setTime ( ( ( Integer ) o ) . longValue ( ) ) ; } else if ( o instanceof Long ) { ...
fixed bug where avro stream did not set time
<nb> import NAMESPACE ; COMMENT COMMENT public class GuideMenu extends GuidePageBase { - private static final int ORDER_OFFSET_X = - NUMBER0 ; + private static final int ORDER_OFFSET_X = - NUMBER1 ; private static final int ORDER_OFFSET_Y = NUMBER2 ; COMMENT
Nudge the order switching icons slightly
<nb> public class ShelveChangesCommitExecutor implements CommitExecutor { ChangeList changeList = ChangesUtil . getChangeListIfOnlyOne ( myProject , changesArray ) ; if ( changeList instanceof LocalChangeList ) { LocalChangeList localChangeList = ( LocalChangeList ) changeList ; - if ( localChangeList . getChan...
don t remove Default changelist when everything from it is shelved
<nb> public class BaseGradleProjectResolverExtension implements GradleProjectResolver private static boolean isIdeaTask ( final String taskName , @ nullable String group ) { if ( ( group == null || STRING0 . equalsIgnoreCase ( group ) ) && StringUtil . containsIgnoreCase ( taskName , STRING1 ) ) return true ; -...
fix filtering idea gradle plugin tasks
<nb> public class YouTrackCompletionContributor extends CompletionContributor { result . addAllElements ( ContainerUtil . map ( suggestions , new Function < CompletionItem , LookupElement > ( ) { @ override public LookupElement fun ( CompletionItem item ) { - LookupElementBuilder builder = LookupElementBuilder ...
Add boldness for keywords in completion list for YouTrack queries
<nb> public interface AgentBuilder { enum SelfInjection implements InitializationStrategy { COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT SPLIT {
Clarified javadoc comment
<nb> public class ViewPropertyAnimator { @ override public void run ( ) { mView . setLayerType ( View . LAYER_TYPE_HARDWARE , null ) ; - mView . buildLayer ( ) ; + if ( mView . isAttachedToWindow ( ) ) { + mView . buildLayer ( ) ; + } } } ; final int currentLayerType = mView . getLayerType ( ) ;
Only buildLayer on attached views
<nb> public class AdminRunningInstancesPanel extends DetailPanel { variableItem . getItemProperty ( STRING0 ) . setValue ( variable ) ; SINGLE - String theValue = variableRendererManager . getStringRepresentation ( variables . get ( variable ) ) ; + String theValue = null ; + try { + theValue = variableRe...
Fixed potential renderer error
<nb> public class SlidingTabActivity extends AppCompatActivity implements OnTabSelect mFragments . add ( SimpleCardFragment . getInstance ( title ) ) ; } + View decorView = getWindow ( ) . getDecorView ( ) ; ViewPager vp = ViewFindUtils . find ( decorView , R . id . vp ) ; vp . setAdapter ( new MyPagerAda...
remove the dependence of NineOldAnimation
<nb> public class TaskBasedResource extends SecuredResource { taskQuery . taskDefinitionKey ( request . getTaskDefinitionKey ( ) ) ; } taskQuery . taskDefinitionKeyLike ( request . getTaskDefinitionKeyLike ( ) ) ; - if ( request . getTaskDefinitionKey ( ) != null ) { + if ( request . getDueDate ( ) != null ) ...
Fixed copy paste error fixing tests
<nb> public class MongoDBRiver extends AbstractRiverComponent implements River { COMMENT void internalStartRiver ( ) { if ( startupThread != null ) { - SINGLE - SINGLE + SINGLE return ; } SINGLE context . setStatus ( Status . STARTING ) ; + SINGLE + SINGLE Runnable startupRunnable = new Runn...
Add a code comment
<nb> public class ReadPreference { public static ReadPreference SECONDARY = new SecondaryReadPreference ( ) ; - COMMENT + public static ReadPreference withTags ( Map < String , String > tags ) { return new TaggedReadPreference ( tags ) ; } public static ReadPreference withTags ( final DBObject tags ) ...
enable tagging on ReadPrefs
<nb> public class ShardRecoveryManager throw new PrestoException ( RAPTOR_RECOVERY_ERROR , STRING0 + shardUuid , e ) ; } - if ( ! storageFile . exists ( ) || storageFile . length ( ) != backupFile . length ( ) ) { - stats . incrementShardRecoveryFailure ( ) ; - throw new PrestoException ( RAPTOR_RECOVERY_ER...
Fix logic for shard recovery verification
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MemcachedCacheBroker implements CacheBroker try { return new MemcachedCacheBroker ( new MemcachedClient ( - new ConnectionFactoryBuilder ...
enable consistent hashing and optimizations daemonize memcached IO thread
<nb> public class DefaultWorkerProcessFactory implements Factory < WorkerProcessBuilder Object id = idGenerator . generateId ( ) ; String displayName = getBaseName ( ) + STRING0 + id ; - WorkerFactory workerFactory ; - if ( isLoadApplicationInSystemClassLoader ( ) ) { - workerFactory = systemClassLoaderWork...
Always use the app in system classloader ClassLoader strategy for worker processes
<nb> public class OracleProcedureManager extends SQLObjectEditor < OracleProcedureStand return null ; } List < DBEPersistAction > actions = new ArrayList < > ( ) ; - actions . add ( new SQLDatabasePersistAction ( STRING0 , STRING1 + source ) ) ; SINGLE + actions . add ( new SQLDatabasePersistAction ( STRING0 ...
Show CREAOR REPLACE in procedures sources
<nb> public class ZWaveNodeStageAdvancer implements ZWaveEventListener { if ( serialMessage == null ) { return ; } - if ( ! msgQueue . contains ( serialMessage ) ) { + if ( ! msgQueue . contains ( serialMessage ) && msgQueue . remainingCapacity ( ) > NUMBER0 ) { msgQueue . add ( serialMessage ) ; } }
Add check that queue is not full before adding packet
<nb> public interface AgentBuilder { classLoader = classLoader == null ? BootstrapClassLoaderMarker . INSTANCE : classLoader ; TypePool . CacheProvider cacheProvider = cacheProviders . get ( classLoader ) ; while ( cacheProvider == null ) { - cacheProviders . putIfAbsent ( classLoader , TypePool . CacheProvider...
Optimized map access
<nb> public class ConnectionSettings { public static final int DEFAULT_WINDOW_SIZE = ( NUMBER0 < < NUMBER1 ) - NUMBER0 ; private static final long UNLIMITED = ( ( long ) NUMBER0 < < NUMBER2 ) ; SINGLE private static final int MAX_WINDOW_SIZE = ( NUMBER0 < < NUMBER3 ) - NUMBER0 ; + private static final int MIN...
Use a constant for the default max frame size
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class ScrollableResultsIterator < T > implements CloseableIterator < T > { private final boolean asArray ; + @ nullable private Boolean hasNext ; public...
added Nullable to ScrollableResultsIterator hasNext
<nb> public class View implements Drawable . Callback2 , KeyEvent . Callback , Accessibilit SINGLE SINGLE SINGLE - if ( mUserPaddingStart > NUMBER0 ) { + if ( mUserPaddingStart >= NUMBER0 ) { mUserPaddingLeft = mUserPaddingStart ; } else if ( mUserPaddingLeft < NUMBER0 ) { mUserPaddingLeft = mPaddingLef...
Fix resolution padding glitch
<nb> public class InstantUploadBroadcastReceiver extends BroadcastReceiver { Log_OC . w ( TAG , STRING0 ) ; } else if ( intent . getAction ( ) . equals ( NEW_VIDEO_ACTION ) ) { - if ( ! isConnectedViaWiFi ( context ) ) { - Log_OC . e ( TAG , STRING1 ) ; - return ; - } String [ ] CONTENT_PROJECTION = { V...
Allow instant upload of new videos although not using Wi Fi with the same policy as pictures
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class EnterTransitionCoordinator extends ActivityTransitionCoordinator @ override protected void startExitTrans...
Fix blink when going back quickly after entering Activity
<nb> public class NodePersistentStorage { SINGLE File realf = new File ( d2 + File . separator + keyName ) ; try { + SINGLE + if ( System . getProperty ( STRING0 ) . toLowerCase ( ) . startsWith ( STRING1 ) ) { + if ( realf . exists ( ) ) { + boolean success = realf . delete ( ) ; + if ( ! success ) { ...
On windows delete target file before moving
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public interface JsonObjectFormatVisitor extends JsonFormatVisitorWithSerializerProvider { - public void property ( BeanPropertyWriter writer ) ; + public void property ( BeanProperty writer ) ; - public void...
replaces BeanPropertyWriter references with BeanProperty
<nb> public class TestCaseClassLoaderTest extends TestCase { public void testJarClassLoading ( ) throws Exception { URL url = getClass ( ) . getResource ( STRING0 ) ; - assertNotNull ( STRING1 , url ) ; + if ( url == null ) + return ; SINGLE String path = url . getFile ( ) ; TestCaseClassLoader loader =...
If test jar doesn t exist ignore the test don t fail
<nb> import NAMESPACE ; file = STRING0 ) } ) - public class KeymapManagerImpl extends KeymapManagerEx implements PersistentStateComponent < Element > , ExportableComponent { + public class KeymapManagerImpl extends KeymapManagerEx implements PersistentStateComponent < Element > , ExportableApplicationComponen...
restore export import keymaps
<nb> public class ResFileDecoder { decode ( inDir , inFileName , outDir , outFileName , STRING0 ) ; return ; } - if ( typeName . equals ( STRING1 ) ) { + if ( typeName . equals ( STRING1 ) || typeName . equals ( STRING2 ) ) { if ( inFileName . toLowerCase ( ) . endsWith ( STRING3 ) ) { outFileName = outRe...
Added support for res mipmap
<nb> public abstract class Vibrator { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT public void vibrate ( long milliseconds , int streamHint ) { vibrate ( Process . myUid ( ) , mPackageName , milliseconds , streamHint ) ; <nb> public abstract class Vibrator { COMMENT ...
Fix javadoc links in Vibrator
<nb> public class GameData { static Item findItem ( String modId , String name ) { - return ( Item ) getMain ( ) . iItemRegistry . getObject ( modId + STRING0 + name ) ; + return getMain ( ) . iItemRegistry . getObject ( modId + STRING0 + name ) ; } static Block findBlock ( String modId , String name ) ...
Fix GameData findBlock
<nb> public class PasspointManager { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public void connect ( PasspointPolicy selected ) { }
Fix docs build break in passpoint manager
<nb> public class HibernateDomainExporter { SINGLE } Type propertyType = getType ( cl , clazz , p . getName ( ) ) ; + switch ( propertyType . getCategory ( ) ) { + case DATE : + case TIME : + case DATETIME : + String type = p . getType ( ) . getName ( ) ; + if ( STRING0 . equals ( type ) ) { + prope...
Add date time handling to HibernateDomainExporter
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - public class PersonTest extends TestCase { public void testTest ( ) { assertTrue ( true ) ;
removed obsolete imports
<nb> public class DefaultSystemClientTest { ) ; DefaultSystemClient client = new DefaultSystemClient ( requestFactory ) ; - Migration migration = client . migrate ( NUMBER0 , NUMBER1 ) ; + Migration migration = client . migrate ( NUMBER2 , NUMBER1 ) ; assertThat ( migration . status ( ) ) . isEqualTo ( Mi...
Remove false positives of DefaultSystemClientTest on slow boxes
<nb> public class NativeLibraryHelper { Log . d ( TAG , STRING0 + entry . getName ( ) ) ; } - final String installGdbServerPath = APK_LIB + GDBSERVER ; + final String installGdbServerPath = GDBSERVER ; nativeFiles . add ( Pair . create ( entry , installGdbServerPath ) ) ; return PACKAGE_INSTALL_NATIVE_F...
Fix location of gdbserver upon installation
<nb> public class AppWidgetHostView extends FrameLayout { @ override protected void dispatchRestoreInstanceState ( SparseArray < Parcelable > container ) { - final ParcelableSparseArray jail = ( ParcelableSparseArray ) container . get ( generateId ( ) ) ; + ParcelableSparseArray jail = ( ParcelableSparseArray...
Fix possible NPE in the code that restores widgets state
<nb> public final class Constants { public static final String TldSchemaPublicId_20 = STRING0 ; ; public static final String TldSchemaResourcePath_20 = - STRING1 ; + STRING2 ; public static final String WebDtdPublicId_22 = STRING3 ; <nb> public final class Constants { public static final String JspS...
Change some locations
<nb> public class WebsocketComponentRouteExampleTest extends CamelTestSupport { public void testWSHttpCall ( ) throws Exception { AsyncHttpClient c = new AsyncHttpClient ( ) ; - WebSocket websocket = c . prepareGet ( STRING0 + port + STRING1 ) . execute ( + WebSocket websocket = c . prepareGet ( STRING0 + por...
fixed CS error
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class SimpleCrypto { <nb> public class SimpleCrypto { } SINGLE - if ( keystore . containsAlias ( STRING0 ) ) { + if ( keystore . containsAlias ( KEY_ALIAS ) ) { SINGLE ...
Use correct alias better description with warning
<nb> public class StickyGridHeadersGridView extends GridView implements OnScrollListe numFittedColumns = NUMBER0 ; } mNumMeasuredColumns = numFittedColumns ; - mAdapter . setNumColumns ( numFittedColumns ) ; } else { SINGLE SINGLE mNumMeasuredColumns = mNumColumns ; - mAdapter . setNumColumns ( mNumMe...
onMeasure throw a NullPointerException if not settled the adapter
<nb> public class Struts2Factory extends ObjectFactory { } @ override @ suppresswarnings ( STRING0 ) - public Object buildBean ( Class clazz , Map extraContext ) { + public Object buildBean ( Class clazz , Map < String , Object > extraContext ) { if ( strutsInjector == null ) { synchronized ( this ) { i...
put generics back in Struts2Factory
<nb> public abstract class AbstractFramedChannel < C extends AbstractFramedChannel < C , R safeClose ( channel . getSourceChannel ( ) ) ; throw e ; } - throw UndertowMessages . MESSAGES . channelIsClosed ( ) ; + forceFree = true ; + return null ; } pooled . getResource ( ) . flip ( ) ; }
Don t throw an exception in recieve if there is no more data
<nb> public class MultiLayerNetwork implements Serializable , Classifier , Layer { COMMENT @ override public void fit ( org . nd4j . linalg . dataset . api . DataSet data ) { + boolean hasMaskArrays = data . hasMaskArrays ( ) ; + if ( hasMaskArrays ) setLayerMaskArrays ( data . getFeaturesMaskArray ( ) , data...
fit DataSet uses mask arrays if present
<nb> public class VanillaInventoryCodeHooks for ( int j = NUMBER0 ; j < dest . getSizeInventory ( ) ; j ++ ) { ItemStack destStack = dest . getStackInSlot ( j ) ; - if ( destStack == null || destStack . stackSize < destStack . getMaxStackSize ( ) || ItemHandlerHelper . canItemStacksStack ( extractItem , destSta...
Fixed small bug in item extraction code
<nb> import NAMESPACE ; public class JsPromise extends JavaScriptObject { public static < T > JsPromise from ( Promise < T > promise ) { - create ( new JsPromiseExecutor ( ) { + return create ( new JsPromiseExecutor ( ) { @ override public void execute ( ) { promise . then ( this : : resolve ) . failu...
return created promise from Promise from
<nb> public class StandardEngine extends ContainerBase implements Engine { COMMENT COMMENT @ override - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT public void logAccess ( Request request , Response response , long time , boolean useDefault ) {
Remove unnecessary comment
<nb> public class DozeLog { log ( STRING0 + dozing ) ; } - public static void traceFling ( boolean expand , boolean aboveThreshold , boolean thresholdNeeded ) { + public static void traceFling ( boolean expand , boolean aboveThreshold , boolean thresholdNeeded , + boolean screenOnFromTouch ) { if ( ! ENAB...
Log screenOnFromTouch when flinging
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class MainActivity extends Activity implements View . OnClickListener { } private void startRequest ( ) { - aclient . get ( this , getURLString ( ) , new AsyncHttpResponseHandler ( )...
Fix override issue in sample app
<nb> public class WindowManagerService extends IWindowManager . Stub + STRING0 + frame + STRING1 + insets + STRING2 + surfaceInsets ) ; Animation a = mAppTransition . loadAnimation ( lp , transit , enter , mCurConfiguration . orientation , frame , insets , surfaceInsets , isVoiceInteraction , - freeform , atoke...
Fix black screen when launching app from Recents into non docked area