diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class ExampleDataProvider extends AbstractDataProvider { private static String makeText ( long id , String text , int swipeReaction , boolean simplified ) { final StringBuilder sb = new StringBuilder ( ) ; - sb . append ( id + STRING0 ) ; + sb . append ( id ) ; + sb . append ( STRING0 ) ; sb ....
Fix AS warnings of Performance issues
<nb> public class PathDeserializer extends JsonDeserializer < Path > { if ( sub != null ) { return Json . mapper ( ) . convertValue ( sub , RefPath . class ) ; } else { - Path path = Json . mapper ( ) . convertValue ( node , PathImpl . class ) ; ; + Path path = Json . mapper ( ) . convertValue ( node , PathIm...
removing extra semicolon
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public interface PsiQualifiedNamedElement { + public interface PsiQualifiedNamedElement extends PsiNamedElement { COMMENT COMMENT CO...
add missing PsiNamedElement part
<nb> public class HystrixMetricsPoller { json . writeNumberField ( STRING0 , System . currentTimeMillis ( ) ) ; SINGLE - json . writeBooleanField ( STRING1 , circuitBreaker . isOpen ( ) ) ; + if ( circuitBreaker == null ) { + SINGLE + json . writeBooleanField ( STRING1 , false ) ; + } else { + json . ...
handle null circuit breaker
<nb> public final class ConsumerCoordinator extends AbstractCoordinator { COMMENT COMMENT public void ensurePartitionAssignment ( ) { - if ( subscriptions . partitionsAutoAssigned ( ) ) + if ( subscriptions . partitionsAutoAssigned ( ) ) { + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + ...
Fix transient failures in pattern subscription tests
<nb> public class WebSettings { } COMMENT - COMMENT + COMMENT + COMMENT COMMENT public boolean getSaveFormData ( ) { - return mSaveFormData ; + return mSaveFormData && ! mPrivateBrowsingEnabled ; } COMMENT
Do not show autofill or saved form data in incognito mode
<nb> public class InvokerHelper { return ( String ) nullObject . getMetaClass ( ) . invokeMethod ( nullObject , STRING0 , EMPTY_ARGS ) ; } if ( arguments . getClass ( ) . isArray ( ) ) { + if ( arguments instanceof Object [ ] ) { + return toArrayString ( ( Object [ ] ) arguments , maxSize , false ) ; + } ...
Avoid unnecessary array transformation for Object
<nb> public class TachyonFileSystem extends AbstractTachyonFileSystem { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class LineageMasterClient extends MasterClientBase { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT C...
Incorporated PR comments
<nb> public final class InodeTreeTest { InodeDirectory nested = ( InodeDirectory ) root . getChild ( STRING0 ) ; InodeDirectory test = ( InodeDirectory ) nested . getChild ( STRING1 ) ; Inode < ? > file = test . getChild ( STRING2 ) ; - verifyJournal ( mTree , Lists . < Inode < ? > > newArrayList ( root , neste...
SMALLFIX Removed explicit type arguments in InodeTreeTest
<nb> public class UpdatesIndexFragment extends SherlockListFragment { osmandRegions = getMyApplication ( ) . getResourceManager ( ) . getOsmandRegions ( ) ; List < IndexItem > indexItems = new ArrayList < IndexItem > ( ) ; if ( BaseDownloadActivity . downloadListIndexThread != null ) { - indexItems = DownloadAc...
Fixed null pointer
<nb> public final class ActivityManagerService extends ActivityManagerNative implemen if ( activity != null && activity . shortComponentName != null ) { info . append ( STRING0 ) . append ( activity . shortComponentName ) . append ( STRING1 ) ; } + info . append ( STRING2 ) ; if ( annotation != null ) { - i...
Fix formatting of ANRs
<nb> public class Mockito extends Matchers { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
fixed javadoc a bit
<nb> public class BranchTicketService extends ITicketService implements RefsChangedLi } catch ( Exception e ) { log . error ( null , e ) ; } finally { - db . close ( ) ; + if ( db != null ) { + db . close ( ) ; + } } return false ; }
Fix possible NPE when deleting a repository and cleaning up branch based tickets
<nb> public class TextRange implements Segment , Serializable { } public boolean contains ( @ notnull TextRange range ) { + return contains ( ( Segment ) range ) ; + } + public boolean contains ( @ notnull Segment range ) { return containsRange ( range . getStartOffset ( ) , range . getEndOffset ( ) ) ; ...
new contains method
<nb> public class AvailableToolChains { List < ToolChainCandidate > compilers = new ArrayList < ToolChainCandidate > ( ) ; if ( OperatingSystem . current ( ) . isWindows ( ) ) { compilers . addAll ( findVisualCpps ( ) ) ; - SINGLE - SINGLE + compilers . add ( findMinGW ( ) ) ; + compilers . add ( findCygw...
Re enabling mistakenly commented tool chains
<nb> import NAMESPACE ; import NAMESPACE ; public class StringRef { + public static final StringRef [ ] EMPTY_ARRAY = new StringRef [ NUMBER0 ] ; + private int id ; private String name ; private final PersistentStringEnumerator store ; <nb> public class StringRef { return nameId != NUMBER0 ? new Str...
delay string loading in stub by using stringrefs
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; + public class SocketSetting extends BaseSetting < SocketResponseSetting > implements Setting < SocketResponseSetting > , SocketResponseSetting { public SocketSetting ( RequestMatcher ma...
added apply method to socket setting
<nb> public class SimpleCommandMap implements CommandMap { COMMENT COMMENT private synchronized boolean register ( String label , Command command , boolean isAlias ) { - if ( isAlias && knownCommands . containsKey ( label ) ) { - SINGLE + if ( ( command instanceof VanillaCommand || isAlias ) && knownCommand...
Bleeding Plugin aliases should have higher priority than fallbacks
<nb> public class InputMethodManagerService extends IInputMethodManager . Stub final boolean isScreenSecurelyLocked = isScreenLocked && mKeyguardManager . isKeyguardSecure ( ) ; final boolean inputShown = mInputShown && ( ! isScreenLocked || mInputBoundToKeyguard ) ; - mImeWindowVis = ( ! isScreenSecurelyLocked...
Decouple IME_ACTIVE and IME_VISIBLE for hardware keyboards
<nb> public final class CookieManager { COMMENT COMMENT public String getCookie ( String url ) { + if ( useChromiumHttpStack ( ) ) { + return nativeGetCookie ( url ) ; + } + WebAddress uri ; try { uri = new WebAddress ( url ) ; <nb> public final class CookieManager { SINGLE private static nati...
Hook up CookieManager getCookie for Chromium HTTP stack
<nb> import NAMESPACE ; COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface Funnel < T > extends Serializable { COMMENT COMM...
Improve Funnel javadocs about using an enum
<nb> public class JPQLCollectionAnyVisitorTest { } @ test - public void Simple_Operation ( ) { + public void Simple_BooleanOperation ( ) { Predicate predicate = cat . kittens . any ( ) . name . eq ( STRING0 ) ; assertEquals ( STRING1 + STRING2 + <nb> public class JPQLCollectionAnyVisitorTest { } ...
improved subquery tests
<nb> class JspReader { return caw . toString ( ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT int peekChar ( ) { - if ( ! hasMoreInput ( ) ) + return peekChar ( NUMBER0 ) ; + } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMEN...
Add a peek method that allows the look ahead to be specified
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class StripeButton extends AnchoredButton implements ActionListener myDragPane = findLayeredPane ( e ) ; if ( myDragPane == null ) return ; - final BufferedImage image = UIUtil . createImage ( getWidth ( ) , getHeight ( ) ,...
fixed garbled stripe button drag image
<nb> public class GroupDaoTest extends AbstractDaoTestCase { public void select_by_key ( ) { setupData ( STRING0 ) ; - GroupDto group = dao . getByKey ( session , STRING1 ) ; + GroupDto group = new GroupDao ( ) . getByKey ( session , STRING1 ) ; assertThat ( group ) . isNotNull ( ) ; assertThat ( group . ...
Improve test coverage
<nb> public class DelaunayIsolineBuilder < TZ > implements IsolineBuilder < TZ > { shell . setUserData ( new ArrayList < LinearRing > ( ) ) ; } SINGLE + int nHolesFailed = NUMBER0 ; for ( LinearRing hole : holes ) { outer: { SINGLE <nb> public class DelaunayIsolineBuilder < TZ > implements IsolineBuilde...
less logging we re getting a lot of hole failures right now
<nb> public abstract class SslContext { return ks ; } - static KeyStore buildKeyStore ( File certChainFile , File keyFile , String keyPassword ) - throws KeyStoreException , NoSuchAlgorithmException , - CertificateException , NoSuchPaddingException , InvalidKeySpecException , - InvalidAlgorithmParameterEx...
Remove unused method in SslContext
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import static NAMESPACE ; + @ runwith ( HazelcastParallelClassRunner . class ) + @ category ( { QuickTest . class , Parallel...
Added missing annotations to WrongTargetExceptionTest
<nb> public class StreamPlan private final long repairedAt ; private final StreamCoordinator coordinator ; - private StreamConnectionFactory connectionFactory = new DefaultConnectionFactory ( ) ; - private boolean flushBeforeTransfer = true ; COMMENT <nb> public class StreamPlan { this . descripti...
remove orphanable field connectionFactory
<nb> public class Replication { @ jsonproperty ( required = true ) private Role role = Role . HIDDEN_SLAVE ; @ description ( STRING0 ) + @ notnull @ jsonproperty ( required = true ) private String syncSource ; @ description ( STRING1 )
Added not null restriction to replication syncSource in configuration
<nb> public class HystrixMetricsStreamServlet extends HttpServlet { try { String d = request . getParameter ( STRING0 ) ; if ( d != null ) { - delay = Integer . parseInt ( d ) ; + delay = Math . max ( Integer . parseInt ( d ) , NUMBER0 ) ; } } catch ( Exception e ) { SINGLE
Safely handle negative input on the delay input to metrics stream
<nb> public class QueryResults case STRING0 : return Boolean . class . cast ( value ) ; case STRING1 : + case STRING2 : case STRING3 : case STRING4 : case STRING5 :
Add support for the json type to the client
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public class DrawableRequestBuilder < ...
Add warnings for future api changes
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - class EvictorTestUtils { + public class EvictorTestUtils { private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ; COMMENT
Make EvictorTestUtils class public so other unittests can also use it
<nb> public class WebSettings { private boolean mDatabaseEnabled = false ; private String mAppCachePath = STRING0 ; private boolean mAppCacheEnabled = false ; + private boolean mDomStorageEnabled = false ; SINGLE private class EventHandler { <nb> public class WebSettings { } COMMENT + COMMENT ...
Add support for toggling DOM Storage support on and off
<nb> public class TechniqueDef implements Savable { COMMENT @ deprecated FixedPipeline , + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + StaticPass } public enum ShadowMode { <nb> import NAMESPACE ; import NAMESPACE ; import N...
allow static pass lighting to be selected
<nb> public class PrintActivity extends Activity implements RemotePrintDocument . Updat private static final int STATE_PRINTER_UNAVAILABLE = NUMBER0 ; private static final int STATE_UPDATE_SLOW = NUMBER1 ; private static final int STATE_PRINT_COMPLETED = NUMBER2 ; + private static final int STATE_FINISHING = NU...
Do not finish multiple times
<nb> public class GermanSentenceTokenizer extends SentenceTokenizer { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 , STRING14 , STRING15 , STRING16 , STRING17 , STRING18 , STRING19 , STRING20 , STRING21 , STRING22 , S...
adding abbreviation uppercase spelling of existing abbrviation
<nb> public class PropsData implements Cloneable { protected String lookupValue ( final String key , final String . . . profiles ) { if ( profiles != null ) { for ( String profile : profiles ) { + if ( profile == null ) { + continue ; + } while ( true ) { final Map < String , PropsEntry > profileMap = t...
fixed potential NPE with props
<nb> package NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Jsr199JavacIntegrationTest { SOURCE_PATHS , Optional . of ( pathToSrcsList ) , Optional . < Path > absent ( ) ) ; + fail ( STRING0 ) ; ...
Fail a test if a try catch block that s meant to fail doesn t
<nb> public class Categories extends Suite { } private Description parentDescription ( Description description ) { + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE Class < ? > testClass = description . getTestClass ( ) ; if ( testClass == null )
Add comment about next steps
<nb> public final class MinaConverter { @ converter public static ByteBuffer toByteBuffer ( byte [ ] bytes ) { - System . out . println ( STRING0 ) ; ByteBuffer buf = ByteBuffer . allocate ( bytes . length ) ; buf . put ( bytes ) ; return buf ;
remove the System out println line
<nb> public class Nio2Endpoint extends AbstractEndpoint < Nio2Channel > { int thisTime = transfer ( buf , off , len , socketWriteBuffer ) ; len = len - thisTime ; off = off + thisTime ; - if ( socketWriteBuffer . remaining ( ) == NUMBER0 ) { - flush ( true ) ; - } + flush ( true ) ; } } else { SINGL...
Fix failing unit test
<nb> public class PinCheck extends Activity { private static Long timestamp = NUMBER0 l ; private static Long lastStart = NUMBER0 l ; + private static int PINCODE_TIMEOUT = NUMBER1 ; public static void setUnlockTimestamp ( ) { timestamp = System . currentTimeMillis ( ) ; } public static boolean chec...
moved timeout to PINCODE_TIMEOUT
<nb> final class JimfsOutputStream extends OutputStream { } @ override - public synchronized void write ( byte [ ] b , int off , int len ) throws IOException { + public void write ( byte [ ] b , int off , int len ) throws IOException { checkPositionIndexes ( off , off + len , b . length ) ; synchronized (...
Remove unnecessary synchronized
<nb> public class JmsBinding { Object value = getValidJMSHeaderValue ( headerName , headerValue ) ; if ( value != null ) { SINGLE - String key = endpoint . getJmsKeyFormatStrategy ( ) . encodeKey ( headerName ) ; + String key = jmsKeyFormatStrategy . encodeKey ( headerName ) ; jmsMessage . setObjectProperty...
Fixed NPE when endpoint not pprovided in JmsBinding
<nb> public interface NewMongoCollection < T > { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface NewMongoCollection < T > { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix javadoc errors
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix Javadoc error in JdbcOperations
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
remove unused imports
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - impor...
anonymous inner class now skips enum constant initializers
<nb> public class PreAlightEdge extends FreeEdge { } else { throw new IllegalStateException ( STRING0 ) ; } + if ( transfer_time == NUMBER0 ) { + SINGLE + transfer_penalty = NUMBER0 ; + } } else { COMMENT alight_before = t0 - options . minTransferTime * NUMBER1 ; <nb> public class PreBoardEdge ext...
timed transfers are preferred transfers
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix JavaDoc error
<nb> public class KotlinCompiler { File target = new File ( vFile . getParent ( ) . getPath ( ) , file ) ; try { FileUtil . writeToFile ( target , factory . asBytes ( file ) ) ; + System . out . println ( STRING0 + target ) ; } catch ( IOException e ) { System . out . println ( e . getMessage ( ) ) ; }
report generated classfiles
<nb> public class CheckBoxList < T > extends JBList { JLabel infoLabel = new JLabel ( auxText , SwingConstants . RIGHT ) ; infoLabel . setBorder ( new EmptyBorder ( NUMBER0 , NUMBER0 , NUMBER0 , checkbox . getInsets ( ) . left ) ) ; - infoLabel . setFont ( font ) ; + infoLabel . setFont ( UIUtil . getFont ( U...
make secondary text smaller
<nb> public class SSAOFilter extends Filter { } ; ssaoPass . init ( renderManager . getRenderer ( ) , ( int ) ( screenWidth / downSampleFactor ) , ( int ) ( screenHeight / downSampleFactor ) , Format . RGBA8 , Format . Depth , NUMBER0 , ssaoMat ) ; - ssaoPass . getRenderedTexture ( ) . setMinFilter ( Texture . ...
remove excessive GPU mipmap generation not needed for filters
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class AndroidSdkTest { final String pathForTool = sdk . getPathForTool ( STRING0 ) ; Assert . assertEquals ( STRING1 , pathForTool ) ; } ...
Added test for platform sdk layout
<nb> public class StickyGridHeadersGridView extends GridView implements OnScrollListe super . setOnItemSelectedListener ( this ) ; } + @ override + public void setOnScrollListener ( OnScrollListener listener ) { + this . mScrollListener = listener ; + } + private int getHeaderHeight ( ) { if ( mStic...
allow external scroll listener
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public final class VelocityTracker implements Poolable < VelocityTracker > { private static final Pool < VelocityTracker > sPool = Pools . synchronizedPool ( <nb> public final class VelocityTracker implements Poolable < Veloci...
Fixed doc typo and removed warning
<nb> public abstract class GLTexture implements Disposable { COMMENT protected void delete ( ) { if ( glHandle != NUMBER0 ) { - buffer . put ( NUMBER0 , glHandle ) ; + buffer . put ( NUMBER0 , glHandle ) ; + buffer . position ( NUMBER0 ) ; + buffer . limit ( NUMBER1 ) ; Gdx . gl . glDeleteTextures ( NUM...
who fucked up Texture delete
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMM...
Remove unused imports from HystrixCodaHaleMetricsPublisherCollapser
<nb> public class InterfaceHelperClassNode extends InnerClassNode { COMMENT COMMENT COMMENT - public InterfaceHelperClassNode ( ClassNode outerClass , String name , int modifiers , ClassNode superClass , List callSites ) { + public InterfaceHelperClassNode ( ClassNode outerClass , String name , int modifiers ...
adds generics information to the List
<nb> public class KubernetesNodesProducerTest extends KubernetesTestSupport { Node node = result . get ( NUMBER0 ) ; - assertTrue ( node . getStatus ( ) . getCapacity ( ) . get ( STRING0 ) . getAmount ( ) . equals ( STRING1 ) ) ; + assertTrue ( node . getStatus ( ) . getCapacity ( ) . get ( STRING0 ) . getAmo...
Fixed integration tests
<nb> public class UserSearchManager { return data ; } - - public static void main ( String args [ ] ) throws Exception { - XMPPConnection . DEBUG_ENABLED = true ; - XMPPConnection con = new XMPPConnection ( STRING0 ) ; - con . login ( STRING1 , STRING2 ) ; - - UserSearchManager manager = new UserSea...
Remove bogus test
<nb> public class BuildExperimentRunner { if ( experiment . getInvocationCount ( ) != null ) { return experiment . getInvocationCount ( ) ; } - SINGLE - InvocationSpec invocation = experiment . getInvocation ( ) ; - if ( invocation instanceof GradleInvocationSpec ) { - if ( ( ( GradleInvocationSpec ) invo...
Take more measurements for non daemon tests too
<nb> public class NameUtilTest extends UsefulTestCase { assertFalse ( firstLetterMatcher ( STRING0 ) . matches ( STRING1 ) ) ; assertFalse ( firstLetterMatcher ( STRING2 ) . matches ( STRING3 ) ) ; assertFalse ( firstLetterMatcher ( STRING4 ) . matches ( STRING5 ) ) ; + assertTrue ( firstLetterMatcher ( STRING6...
xxxConfig should match config if first letter matching true
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
deleting unused import
<nb> public final class WindowManagerGlobal { throw new IllegalArgumentException ( STRING0 ) ; } - final WindowManager . LayoutParams wparams = ( WindowManager . LayoutParams ) params ; + final WindowManager . LayoutParams wparams = ( WindowManager . LayoutParams ) params ; if ( parentWindow != null ) { p...
Don t force hardware acceleration for services on low end GFX
<nb> public class DataTypesTest { assertEquals ( new BytesRef ( STRING0 ) , DataTypes . STRING . value ( longValue ) ) ; } - - @ test ( expected = ClassCastException . class ) - public void convertToBooleanUnsupported ( ) { - DataTypes . BOOLEAN . value ( NUMBER0 ) ; - } - - private static Map < S...
fixed failing DataTypesTest due Changes in type conversion
<nb> public class TraceableDisposable { @ suppresswarnings ( STRING0 ) @ override public void printStackTrace ( PrintWriter s ) { - super . printStackTrace ( s ) ; if ( CREATE_TRACE != null ) { s . println ( STRING1 ) ; CREATE_TRACE . printStackTrace ( s ) ; <nb> public class TraceableDisposable { s ....
move TraceableDisposable s own trace to the bottom as the least important
<nb> public class UserPhotosViewPagerAdapter extends CursorPagerAdapter { public UserPhotosViewPagerAdapter ( Context context , OnSingleTapListener tapListener , OnPickFriendRequestListener friendRequestListener ) { - super ( context , null , true ) ; + super ( context , null , false ) ; mTapListener = tapL...
Turn off AutoRequery
<nb> public class JavadocOptionFileWriter { final Map < String , JavadocOptionFileOption > optionsWithoutLocale = CollectionUtils . filter ( options , new Spec < Map . Entry < String , JavadocOptionFileOption > > ( ) { public boolean isSatisfiedBy ( Map . Entry < String , JavadocOptionFileOption > element ) { -...
Fix beginners mistake checkstyle issue
<nb> public class TestOperationSetMultiUserChat2 COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT - public void testNickName ( ) + public void disable_testNickName ( ) throws OperationFailedException , OperationNotSupportedException {
Disable regulary failing test about changing nickname for jabber multichat
<nb> public class RecoverySystem { return arg ; } - private RecoverySystem ( ) { } SINGLE + private void RecoverySystem ( ) { } SINGLE }
Fix a constructor
<nb> public class ReservedWordTests extends ScriptTestCase { } ) ; assertTrue ( expected . getMessage ( ) . contains ( STRING0 ) ) ; } + + COMMENT + public void testDocVar ( ) { + IllegalArgumentException expected = expectThrows ( IllegalArgumentException . class , ( ) - > { + exec ( STRING1 ) ; + } )...
add reserved word tests for doc too
<nb> class AppWidgetServiceImpl extends IAppWidgetService . Stub implements WidgetBacku private void deleteProviderLocked ( Provider provider ) { int N = provider . widgets . size ( ) ; - for ( int i = NUMBER0 ; i < N ; i ++ ) { + for ( int i = N - NUMBER1 ; i >= NUMBER0 ; i -- ) { Widget widget = provider ...
Fix collection iteration index
<nb> public final class ActivityManagerService extends ActivityManagerNative ConfigurationInfo . GL_ES_VERSION_UNDEFINED ) ; mConfiguration . setToDefaults ( ) ; - mConfiguration . setLocale ( Locale . getDefault ( ) ) ; + mConfiguration . locale = Locale . getDefault ( ) ; mConfigurationSeq = mConfigurat...
Fix unexpected language changes on SIM card insertion
<nb> public final class NodeUtil { && n . getFirstChild ( ) . isCall ( ) ; } + static boolean isVanillaFunction ( Node n ) { + return n . isFunction ( ) && ! n . isArrowFunction ( ) ; + } + static boolean isVanillaFor ( Node n ) { return n . isFor ( ) && n . getChildCount ( ) == NUMBER0 ; } <nb> p...
Add NodeUtil isVanillaFunction helper method
<nb> public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo public void setResourceLoader ( ResourceLoader resourceLoader ) { Assert . notNull ( resourceLoader , STRING0 ) ; this . resourceLoader = resourceLoader ; + if ( ! this . setMetadataReaderFactoryCalled ) { + this . metadataR...
Configuration class processing uses MetadataReaderFactory for current ResourceLoader
<nb> public interface WebService extends ServerExtension { private final boolean required ; private final Set < String > possibleValues ; - public Param ( Action action , NewParam newParam ) { + protected Param ( Action action , NewParam newParam ) { this . key = newParam . key ; this . deprecatedKey = ne...
Fix quality flaw
<nb> public class FullCheck { final ConsistencyReporter reporter = new ConsistencyReporter ( recordAccess , report , reportMonitor ) ; StoreProcessor processEverything = new StoreProcessor ( decorator , reporter , Stage . SEQUENTIAL_FORWARD , cacheAccess ) ; - ProgressMonitorFactory . MultiPartBuilder progress ...
States the fact that the CC is experimental in progress printing
<nb> public class DriverConductor extends Agent workCount += processTimers ( ) ; final long now = timerWheel . now ( ) ; - - workCount += connections . doAction ( DriverConnection : : scanForGaps ) ; workCount += connections . doAction ( ( connection ) - > connection . sendPendingStatusMessages ( now ) ) ; ...
Java Get status messages out as soon as possible
<nb> import static NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + COMMENT public class IntMatchFilterTest { @ test <nb> public class IntMatchFilterTest { } @ test + public void testEqualsAndHashCode ( ) { + EqualsVerifier . forClass ( IntMatchFilter . class ) . verify ( ) ; + } + ...
Use EqualsVerifier to test equals and hashCode in IntMatchFilter
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMES...
Simplify typed dependency output
<nb> public class TsurgeonTest extends TestCase { runTest ( tregex , tsurgeon , STRING0 , STRING1 ) ; } + public void testCoindex ( ) { + TregexPattern tregex = TregexPattern . compile ( STRING2 ) ; + TsurgeonPattern tsurgeon = Tsurgeon . parseOperation ( STRING3 ) ; + runTest ( tregex , tsurgeon , STRING...
Add a brief coindex test
<nb> public class ChatSessionAdapter extends info . guardianproject . otr . app . im . IChatSes } void insertOrUpdateChat ( String message ) { - ContentValues values = new ContentValues ( NUMBER0 ) ; - - values . put ( Imps . Chats . LAST_MESSAGE_DATE , System . currentTimeMillis ( ) ) ; - values . put ( ...
don t null out update last message timestamp unless there is message body
<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode , . alpha ( FLOAT0 ) . setDuration ( NUMBER0 ) . setInterpolator ( ALPHA_IN ) - . setStartDelay ( NUMBER1 ) ; + . setStartDelay ( NUMBER1 ) + + SINGLE + SINGLE + SINGLE + . withEndAction ( null ) ; SINGLE if ( mKeyguard...
Fix missing status bar icons
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; public class DBApiLayerTest extends TestCase { <nb> public class DBApiLayerTest extends TestCase { } catch ( MongoException . CursorNotFound e ) { assertEquals ( cursor . getSer...
Relaxed some assertions in tests to work with older mongos versions
<nb> public class RepairJob implements Runnable { private final static int DELETE_BATCH_SIZE = NUMBER0 ; private final static Logger logger = Logger . getLogger ( RepairJob . class . getName ( ) ) ; - public final static List < String > blackList = Arrays . asList ( STRING0 , STRING1 , STRING2 ) ; + public fi...
delete mysql from blacklist
<nb> public final class OperationEntry { public enum Flag { COMMENT READ_ONLY , - COMMENT - COMMENT - COMMENT - @ deprecated - DEPLOYMENT_UPLOAD , COMMENT RESTART_NONE , COMMENT
Remove OperationEntry Flag DEPLOYMENT_UPLOAD
<nb> public class IntegerList { } public final int binarySearch ( int key ) { - return Arrays . binarySearch ( _data , key ) ; + return Arrays . binarySearch ( _data , NUMBER0 , _size , key ) ; } public final int binarySearch ( int fromIndex , int toIndex , int key ) { + if ( fromIndex < NUMBER0 || to...
Fix IntegerList binarySearch
<nb> public abstract class OAbstractFile implements OFile { try { for ( int i = NUMBER0 ; i < LOCK_MAX_RETRIES ; ++ i ) { try { - fileLock = channel . tryLock ( NUMBER0 , NUMBER1 , false ) ; + fileLock = channel . tryLock ( NUMBER0 , NUMBER1 , true ) ; if ( fileLock != null ) break ; } catch ( Overlappi...
Replace exclusive lock with shared so that backup task can bee performed while database is running
<nb> public class StandardTitanGraph extends TitanBlueprintsGraph { SINGLE for ( InternalVertex v : mutatedProperties . keySet ( ) ) { + SINGLE indexUpdates . addAll ( indexSerializer . getIndexUpdates ( v , mutatedProperties . get ( v ) ) ) ; } SINGLE <nb> import NAMESPACE ; import NAMESPACE ; impo...
Reverted change reading TTL from edge label type in ImplicitKey
<nb> public final class EmbeddedGraphDatabase extends AbstractGraphDatabase COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
cleaning up Javadoc
<nb> public class GitBlitServer { HashSessionManager sessionManager = new HashSessionManager ( ) ; sessionManager . setHttpOnly ( true ) ; SINGLE - sessionManager . setSecureRequestOnly ( params . port <= NUMBER0 && params . securePort > NUMBER0 ) ; + sessionManager . setSecureRequestOnly ( ( params . port <=...
Set secure session cookies when redirecting from HTTP to HTTPS
<nb> public class GroovyCompilerProcess implements TranslatingCompiler { required . add ( STRING0 ) ; required . add ( STRING1 ) ; required . add ( STRING2 ) ; - SINGLE + required . add ( STRING3 ) ; } private boolean required ( String name )
Compiler process takes JUNIT jar as well
<nb> public class CoyoteAdapter SINGLE connector . getContainer ( ) . getPipeline ( ) . getFirst ( ) . event ( request , response , request . getEvent ( ) ) ; + if ( ! error && ! response . isClosed ( ) && ( request . getAttribute ( Globals . EXCEPTION_ATTR ) != null ) ) { + SINGLE + SINGLE + request . ge...
If an exception is thrown processing an event which was not an error the contract says an ERROR event
<nb> public class GuavaNearCacheImpl < K , V > implements NearCache < K , V > { public GuavaNearCacheImpl ( NearCacheConfig nc , final MapClientProxy < K , V > map ) { this . map = map ; - CacheBuilder cacheBuilder = CacheBuilder . newBuilder ( ) . maximumSize ( nc . getMaxSize ( ) ) ; + CacheBuilder cacheBui...
only apply maximum cache size to guava cach if it is greater than zero
<nb> public class DateTimeType extends LiquibaseDataType { if ( database instanceof MSSQLDatabase ) { Object [ ] parameters = getParameters ( ) ; - if ( originalDefinition . equalsIgnoreCase ( STRING0 ) - || originalDefinition . equals ( STRING1 ) ) { + if ( originalDefinition . toLowerCase ( ) . startsWith...
Handle smalldatetime with parameters
<nb> import NAMESPACE ; public class LocalJarSnapshotCache { - SINGLE + SINGLE + SINGLE private File storage ; private Map < File , JarSnapshot > snapshots ;
Documented the TODO better
<nb> public class AtomicReferenceService implements ManagedService , RemoteService , Mi return getOrPutIfAbsent ( containers , name , atomicReferenceConstructorFunction ) ; } - SINGLE - public boolean containsReferenceContainer ( String name ) { - return containers . containsKey ( name ) ; - } - @ ove...
Removed unused method in AtomicReferenceService