diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class MetaContactListServiceImpl = ( OperationSetPersistentPresence ) provider . getOperationSet ( OperationSetPersistentPresence . class ) ; + SINGLE + if ( persPresOpSet == null ) + return ; + ContactGroup rootGroup = persPresOpSet . getServerStoredContactListRoot ( ) ; - SINGLE + ...
Remove all children of the proto root before removing the root itself
<nb> public final class SourceMapDecoder { if ( reader . peek ( ) != JsonToken . END_ARRAY ) { sourcesContent = new SmartList < String > ( ) ; do { - sourcesContent . add ( StringUtilRt . convertLineSeparators ( reader . nextString ( ) ) ) ; + if ( reader . peek ( ) == JsonToken . STRING ) { + sourcesConten...
Expected a string but was NULL
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - public abstract class XReferrersProvider < T extends XValue > { - public abstract T getReferringObjectsValue ( ) ; + public abstract class XReferrersProvider { + public abstract XValue getReferringObjectsValue ( ) ; }
Remove type parameter
<nb> public class Storage extends Plugin { } } + COMMENT + COMMENT + COMMENT + public void onReset ( ) { + this . onDestroy ( ) ; + } + SINGLE SINGLE SINGLE
Add onReset to Storage
<nb> import NAMESPACE ; COMMENT public class ReaderDatabase extends SQLiteOpenHelper { protected static final String DB_NAME = STRING0 ; - private static final int DB_VERSION = NUMBER0 ; + private static final int DB_VERSION = NUMBER1 ; COMMENT COMMENT
Set correct db version
<nb> public class MissingSymbolsHandler { @ subscribe public void onBuildFinished ( BuildEvent . Finished event ) { SINGLE - if ( missingSymbolEvents . get ( event . getBuildId ( ) ) . size ( ) == NUMBER0 ) { + if ( missingSymbolEvents . get ( event . getBuildId ( ) ) . isEmpty ( ) ) { return ; } missin...
Fix a style nit
<nb> class CheckAccessControls implements ScopedCallback , HotSwapCompilerPass { STRING0 ) ; static final DiagnosticType BAD_PRIVATE_GLOBAL_ACCESS = - DiagnosticType . warning ( + DiagnosticType . error ( STRING1 , STRING2 ) ;
Make private variable accesses an error by default
<nb> import NAMESPACE ; class ResourceUtils { @ nullable + @ suppresswarnings ( STRING0 ) static Drawable getDrawable ( @ nonnull Context context , @ drawableres int drawableId ) { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) return context . getDrawable ( drawableId ) ;
Suppress the deprecation warning which is given during compilation
<nb> public class SearchRegionByNameActivity extends SearchByNameAbstractActivity < Reg @ override public int compare ( RegionAddressRepository lhs , RegionAddressRepository rhs ) { - return col . compare ( lhs . getName ( ) , rhs . getName ( ) ) ; + return col . compare ( getText ( lhs ) , getText ( rhs ) ) ...
Fix city search
<nb> public class PhotonUtils { COMMENT COMMENT COMMENT - public static enum Quality { + public enum Quality { HIGH , MEDIUM , LOW <nb> public class PhotonUtils { SINGLE imageUrl = UrlUtils . removeQuery ( imageUrl ) ; - SINGLE - SINGLE - SINGLE - if ( imageUrl . endsWith ( STRING0 ) ) {...
Allow photon to resize GIFs
<nb> public class TempTask extends AbstractTask { } } finally { - SINGLE - tempIterator . close ( ) ; + if ( tempIterator != null ) { + SINGLE + tempIterator . close ( ) ; + } } if ( ! this . taskCanceled ) {
fixed NullPointerException bug in shutdown of TempTask
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove com beust jcommander internal Lists usage
<nb> public final class IntVersion implements Version , Serializable { return new IntVersion ( val + NUMBER0 ) ; } + public IntVersion previous ( ) { + return new IntVersion ( val - NUMBER0 ) ; + } + @ override public boolean atMost ( Version other ) { if ( ! ( other instanceof IntVersion ) ) {
Add previous method to IntVersion
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; <nb> public class NestedExceptionTests extends TestCase { public void testNestedRuntimeExceptionWithRootCause ( ) { String myMessage = STRING0 ; String rootCauseMesg = STRI...
removed unecessary dependency on ServletException
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import static NAMESPACE ;...
Fixed license headers
<nb> import NAMESPACE ; COMMENT public class SoundLevelChangeEvent extends EventObject { + + COMMENT + COMMENT + COMMENT + private Hashtable < String , Integer > levels = null ; + COMMENT COMMENT COMMENT <nb> public class SoundLevelChangeEvent extends EventObject Hashtable < String , Integer...
Adds comments to the SoundLevelChangeEvent
<nb> public class DefaultDeploymentCache < T > implements DeploymentCache < T > { } ) ; } else { - this . cache = new HashMap < String , T > ( ) ; + this . cache = Collections . synchronizedMap ( new HashMap < String , T > ( ) ) ; } }
DefaultDeploymentCache uses non thread safe HashMap
<nb> public abstract class PsiReferenceBase < T extends PsiElement > implements PsiRefer } public PsiElement bindToElement ( PsiElement element ) throws IncorrectOperationException { - throw new IncorrectOperationException ( STRING0 ) ; + throw new IncorrectOperationException ( STRING1 + getClass ( ) ) ; } ...
enhanced error message
<nb> public final class TestUniqueId { when ( client . get ( anyGet ( ) ) ) . thenReturn ( d ) ; - final Answer the_race = new Answer < byte [ ] > ( ) { + final Answer < byte [ ] > the_race = new Answer < byte [ ] > ( ) { public byte [ ] answer ( final InvocationOnMock unused_invocation ) { SINGLE asser...
Fix non parameterized class in TestUniqueId
<nb> public class ProgressBar extends View { if ( mProgress > max ) { mProgress = max ; + refreshProgress ( R . id . progress , mProgress , false ) ; } } }
The volume key will effect both ring and media vol at the same time
<nb> public class Trees { return buf . toString ( ) ; } - public static < Symbol > String getNodeText ( Tree t , Parser recog ) { + public static String getNodeText ( Tree t , Parser recog ) { if ( recog != null ) { if ( t instanceof ParseTree . RuleNode ) { int ruleIndex = ( ( ParseTree . RuleNode ) t ...
remove unused type param
<nb> public abstract class CharMatcher implements Predicate < Character > { COMMENT COMMENT COMMENT + COMMENT COMMENT public static final CharMatcher DIGIT = new RangesMatcher ( STRING0 , ZEROES . toCharArray ( ) , NINES . toCharArray ( ) ) ; <nb> public abstract class CharMatcher implements Predicate <...
Add warning to CharMatcher DIGIT
<nb> public class SpecialFiles { excludedFiles . add ( STRING0 ) ; SINGLE excludedFiles . add ( STRING1 ) ; SINGLE excludedFiles . add ( STRING2 ) ; SINGLE + + excludedFiles . add ( STRING3 ) ; SINGLE + excludedFiles . add ( STRING4 ) ; SINGLE + excludedFiles . add ( STRING5 ) ; SINGLE + excludedFiles ....
add tests with java to excluded tests
<nb> public class Utils { static public boolean isEmpty ( int [ ] a ) { return a == null || a . length == NUMBER0 ; } static public boolean contains ( int [ ] a , int d ) { for ( int i = NUMBER0 ; i < a . length ; i ++ ) if ( a [ i ] == d ) return true ; return false ; } + SINGLE static public int [ ] differe...
Make difference int int more robust but leave it asymmetric
<nb> public class TelescopeLayout extends FrameLayout { COMMENT private static void delete ( File file ) { if ( file . isDirectory ( ) ) { - for ( File child : file . listFiles ( ) ) - delete ( child ) ; + File [ ] files = file . listFiles ( ) ; + if ( files != null ) { + for ( File child : files ) { ...
Handle null files list in cleanup
<nb> public class ElasticsearchClient extends DB { SINGLE settings . put ( props ) ; final String clusterName = settings . get ( STRING0 ) ; - System . out . println ( STRING1 + clusterName ) ; - System . out . println ( STRING2 + settings . get ( STRING3 ) ) ; - System . out . println ( STRING4 + remoteMod...
elasticsearch Print diagnostic outputs on stderr
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class ASMClassLoader extends ClassLoader { <nb> public class ASMClassLoader extends ClassLoader { } public ASMClassLoader ( ) { - super ( Thread . currentThread ( ) . getContextClassLoader ( ) ) ; + supe...
fixed osgi classloader bug
<nb> import static NAMESPACE ; COMMENT public class MasterClient214 extends Client < Master > implements MasterClient { - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT public static final ProtocolVersion PROTOCOL_VERSION = new ProtocolVersion ( ( byte ...
Move HA protocol version legend to the newest MasterClient
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MessageArchiveManager implements OnPacketListener , return ; ChatStorage chatStorage = chatStorages . get ( account , chat . getWith ( ) , c...
Fix crash when unexpected chat history received
<nb> public class RequestBuilder < TranscodeType > implements Cloneable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public < Y extends Target < TranscodeType > > Y into ( Y target ) { Util . assertMainThread ( ) ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT ...
Fix doc errors in RequestBuilder and BaseTarget
<nb> public class ManifestUpdateMojo extends AbstractAndroidMojo { Element supportsScreensElem = XmlHelper . getOrCreateElement ( doc , manifestElement , ELEM_SUPPORTS_SCREENS ) ; + getLog ( ) . info ( STRING0 + ELEM_SUPPORTS_SCREENS ) ; + if ( parsedSupportsScreens . getAnyDensity ( ) != null ) { support...
Output a log message whenever supports screens or compatible screens are updated
<nb> public class Solo { COMMENT @ suppresswarnings ( { STRING0 , STRING1 } ) - protected static int initializeTimeout ( String property , int defaultValue ) { + private static int initializeTimeout ( String property , int defaultValue ) { try { Class clazz = Class . forName ( STRING2 ) ; Method method ...
Made initializeTimeout private
<nb> public interface SequenceBarrier long waitFor ( long sequence ) throws AlertException , InterruptedException ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Disruptor < T > COMMENT COMMENT COMMENT - COMMENT COMMENT public long getCursor ( ) {
Fix some javadoc errors
<nb> public final class TrustManagerFactory { private static X509TrustManager unsecureTrustManager ; private static X509TrustManager localTrustManager ; - private static SecureX509TrustManager secureTrustManager ; - private static X509Certificate [ ] lastCertChain = null ; private static File keyStoreFi...
Changed host from static to instance
<nb> public class WsInputStream extends java . io . InputStream { SINGLE throw new IOException ( STRING0 ) ; } + read += last ; } }
Fix silly error
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DefaultRouteMatcher { } private void giveMatch ( final String uri , List < RouteMatcher > routeEntries ) { - routeEntries . sort ( new Co...
modify the grammar
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
which awt things are we using
<nb> public class DownloadsUtil { Context context = XposedApp . getInstance ( ) ; ArrayList < File > dirs = new ArrayList < > ( NUMBER0 ) ; for ( File dir : ContextCompat . getExternalCacheDirs ( context ) ) { - if ( Environment . MEDIA_MOUNTED . equals ( EnvironmentCompat . getStorageState ( dir ) ) ) { + if...
Fix Crash at Open
<nb> public class SpanAligner2 { } SpanBo rootSpanBo = rootList . get ( NUMBER0 ) ; final List < SpanAlign > list = new ArrayList < SpanAlign > ( ) ; + + SINGLE + List < SpanEventBo > spanEvents = rootSpanBo . getSpanEventBoList ( ) ; + spanEvents . remove ( spanEvents . size ( ) - NUMBER1 ) ; + popul...
add test code
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class MvcFramework { public abstract void updateProjectStructure ( @ notnull final Module module ) ; - public abstract void ensureRunConfigurationExists ( @ notnull Module module ) ; + public void ensureRunConfiguratio...
mvc implement ensureRunConfigurationExists by default
<nb> public class AssetFile extends FileHandler { SINGLE typeTreeBlock . setOffset ( in . position ( ) ) ; - L . log ( Level . FINER , STRING0 , typeTreeBlock ) ; in . readStruct ( typeTree ) ; typeTreeBlock . setEndOffset ( in . position ( ) ) ;
Removed debugging line
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove an unused import
<nb> public abstract class Tree extends AbstractCollection < Tree > implements Label , La return ; } pw . print ( STRING0 ) ; - String nodeString = onlyLabelValue ? nodeString ( ) : nodeString ( ) ; + String nodeString = onlyLabelValue ? value ( ) : nodeString ( ) ; pw . print ( nodeString ) ; SINGLE bo...
Fix label value only from user markwoon
<nb> public class HttpRequest { COMMENT public HttpRequest receive ( final Appendable appendable ) throws HttpRequestException { - final BufferedReader reader = new BufferedReader ( reader ( ) , bufferSize ) ; + final BufferedReader reader = bufferedReader ( ) ; return new CloseOperation < HttpRequest > ( r...
Call bufferedReader from receive
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RemoteInterpreterServer Constructor < Interpreter > constructor = replClass . getConstructor ( new Class [ ] { Properties ....
Pass classloader to scala compiler in remote process
<nb> public interface ByContentSpec { COMMENT ByContentSpec xml ( NoArgAction handler ) ; - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - ByContentSpec allTypes ( NoArgAction handler ) ; - } <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - impo...
Revert Add allTypes to ByContentSpec
<nb> public interface NewConnectionHandler COMMENT COMMENT COMMENT - void onNewConnection ( final String channel , final int streamId , final int sessionId ) ; + void onNewConnection ( String channel , int streamId , int sessionId ) ; }
Java Remove redundant qualifiers
<nb> public class HystrixMetricsPoller { SINGLE if ( running . compareAndSet ( false , true ) ) { logger . info ( STRING0 ) ; - scheduledTask = executor . scheduleWithFixedDelay ( new MetricsPoller ( listener ) , NUMBER0 , delay , TimeUnit . MILLISECONDS ) ; + try { + scheduledTask = executor . scheduleWith...
Handle an error during construction of a MetricsPoller more gracefully
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
fixed a verify call example in Captor javadoc
<nb> public class UpgradeServletOutputStream extends ServletOutputStream { return ; } closed = true ; - flushInternal ( false , false ) ; + flushInternal ( ( listener == null ) , false ) ; }
Use the write listener to decide between a blocking and a non blocking flush on close
<nb> public class ItemAdapter < Item extends IItem > extends AbstractAdapter < Item > imple SINGLE mItems . addAll ( items ) ; + SINGLE + mapPossibleTypes ( items ) ; + SINGLE if ( newItemsCount > previousItemsCount ) { if ( previousItemsCount > NUMBER0 ) {
add mapping of the possible types to the new set method
<nb> public class HqlDomain { public static class Cat extends Animal { int breed ; Color eyecolor ; - @ onetomany Collection < Cat > kittens ; + @ onetomany List < Cat > kittens ; @ manytoone Cat mate ; }
finished collection list separation
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT - COMMENT - CO...
Fixed Javadocs for extension providers
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT COMMENT - public class GetMoreMessage extends RequestMessage { + class GetMoreMessage extends RequestMessage { private final long cursorId ; private final int numberToReturn ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMEN...
Made two accidentally public message classes package private
<nb> class SipSessionGroup implements SipListener { properties . setProperty ( STRING0 , getStackName ( ) ) ; String outboundProxy = myself . getProxyAddress ( ) ; if ( ! TextUtils . isEmpty ( outboundProxy ) ) { + Log . v ( TAG , STRING1 + outboundProxy ) ; properties . setProperty ( STRING2 , outboundProxy ...
Fix the dialing from contact for internet address
<nb> public class CamelDestination extends AbstractDestination implements Configurabl try { getLogger ( ) . log ( Level . FINE , STRING0 ) ; - distinationEndpoint = camelContext . getEndpoint ( camelDestinationUri ) ; + distinationEndpoint = getCamelContext ( ) . getEndpoint ( camelDestinationUri ) ; consum...
Fixed the NPE error of CamelDestination
<nb> abstract class StaticMembersProcessor < T extends PsiMember > implements Processor < List < T > applicableList ) { final Boolean alreadyMentioned = myPossibleClasses . get ( containingClass ) ; if ( alreadyMentioned == Boolean . TRUE ) return ; + if ( containingClass . getQualifiedName ( ) == null ) { + ...
don t add static imports on classes without fqn
<nb> public class S3Client { try { Class . forName ( STRING0 ) ; } catch ( ClassNotFoundException e ) { - throw new GradleException ( STRING1 + - STRING2 ) ; + throw new GradleException ( STRING1 + + STRING2 ) ; } } }
Fix checkstyle issue
<nb> public class EvaluationTests extends ExpressionTestCase { evaluateAndAskForReturnType ( STRING0 , new Double ( FLOAT0 ) , Double . class ) ; } - SINGLE SINGLE SINGLE SINGLE <nb> public class EvaluationTests extends ExpressionTestCase { SpelMessages . RESULT_OF_SELECTION_CRITERIA_IS_NOT_BOOLEAN ) ...
moved TODOs to readme
<nb> public class Parallel implements Action { @ override public void act ( float delta ) { int len = actions . size ( ) ; for ( int i = NUMBER0 ; i < len ; i ++ ) - actions . get ( i ) . act ( delta ) ; + if ( ! actions . get ( i ) . isDone ( ) ) + actions . get ( i ) . act ( delta ) ; } @ override p...
fixed small bug in Parallel and Sequence action
<nb> public abstract class FragmentHostCallback < E > extends FragmentContainer { COMMENT COMMENT @ nullable - abstract E onGetHost ( ) ; + public abstract E onGetHost ( ) ; COMMENT COMMENT
make onGetHost public
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class VillagerRegistry } return defaultSkin ; } - + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + pub...
Added an accessor for villagers
<nb> public class RmdTemplateData format_options: [ STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 ] , - format_notes: STRING8 + format_notes: STRING9 } , { format_name: STRING10 , <nb> public class RmdTemplateData STRING11 , STRING3 , STRING4 , STRING5 , STRING2 , S...
tweak notes for default formats
<nb> public class FindBugsSpec implements Serializable { } public String getJvmArguments ( ) { - return maxHeapSize ; + return maxHeapSize ; } public boolean isDebugEnabled ( ) {
Fixed new code to fit code style
<nb> public class AllCodehausJavaTestsSuite { suite . addTestSuite ( MethodTest . class ) ; suite . addTestSuite ( ModuleNodeTest . class ) ; suite . addTestSuite ( NewStaticMetaMethodTest . class ) ; + suite . addTestSuite ( NodeAsHTMLPrinterTest . class ) ; suite . addTestSuite ( org . codehaus . groovy . c...
add new test to suite
<nb> public class VoiceInteractionManagerService extends SystemService { super ( handler ) ; ContentResolver resolver = mContext . getContentResolver ( ) ; resolver . registerContentObserver ( Settings . Secure . getUriFor ( - Settings . Secure . VOICE_INTERACTION_SERVICE ) , false , this ) ; + Settings . Sec...
Make VIMS SettingsObserver multiuser aware
<nb> public class FastPrintWriter extends PrintWriter { if ( mOutputStream != null ) { CharBuffer charBuffer = CharBuffer . wrap ( mText , NUMBER0 , mPos ) ; CoderResult result = mCharset . encode ( charBuffer , mBytes , true ) ; - while ( true ) { + while ( ! mIoError ) { if ( result . isError ( ) ) { th...
Fix FastPrintWriter infinite loop
<nb> public final class ClusterFixture { Runtime . getRuntime ( ) . addShutdownHook ( new ShutdownHook ( ) ) ; } + private ClusterFixture ( ) { + } + public static String getDefaultDatabaseName ( ) { return DEFAULT_DATABASE_NAME ; }
Fixed Checkstyle error
<nb> public class DataFrameHandler implements FrameHandler , AutoCloseable final long initialTermId = connectedSubscription . activeTermId ( ) ; final int initialWindowSize = connectedSubscription . currentWindowSize ( ) ; + SINGLE + SINGLE connectedSubscription . statusMessageSender ( ) . send ( initialTer...
Added TODO for moving sending of inital status message to the conductor Agent
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FileCommandToolbar extends Toolbar moreMenu . addItem ( commands . exportFiles ( ) . createMenuItem ( false ) ) ; moreMenu . addSeparator ( ) ; moreMenu . addItem ( commands . s...
add go to working dir to More dropdown
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OLiveQueryTest { ODatabaseDocumentTx db = new ODatabaseDocumentTx ( STRING0 ) ; db . activateOnCurrentThread ( ) ; db . ...
Fixed live query test case
<nb> import NAMESPACE ; public class DefaultUniqueTicketIdGenerator implements UniqueTicketIdGenerator { COMMENT - protected final Logger LOGGER = LoggerFactory . getLogger ( this . getClass ( ) ) ; + protected final Logger logger = LoggerFactory . getLogger ( this . getClass ( ) ) ; COMMENT private fin...
fixed cs issue with logger name
<nb> public final class CategoryIds { public static final CategoryId COLLOQUIALISMS = new CategoryId ( STRING0 ) ; COMMENT public static final CategoryId WIKIPEDIA = new CategoryId ( STRING1 ) ; + public static final CategoryId BARBARISM = new CategoryId ( STRING2 ) ; COMMENT public static final CategoryId ...
Add barbarism category
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DBTest extends TestCase { @ test @ suppresswarnings ( STRING0 ) SINGLE + @ ignore ( STRING1 ) public void shouldRunStringCommandAgainstS...
Ignored a test that was intermittent
<nb> public interface DataModel extends Refreshable , Serializable { void removePreference ( long userID , long itemID ) throws TasteException ; COMMENT - COMMENT + COMMENT COMMENT COMMENT boolean hasPreferenceValues ( ) ;
Fixed typo in javadoc
<nb> public class PyDocstringCompletionContributor extends CompletionContributor { protected void addCompletions ( @ notnull CompletionParameters parameters , ProcessingContext context , @ notnull CompletionResultSet result ) { - if ( parameters . getInvocationCount ( ) == NUMBER0 ) return ; + if ( parameters...
used proper function for detecting autopopup
<nb> import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ClientRequestExecutor extends SelectorManagerWorker { if ( timeoutMs == - NUMBER0 ) { this . expiration = - NUMBER0 ; } else { - timeoutMs -= SelectorManager . SELECTOR_POLL_MS...
Modified client request executor timeout to not factor in the selector timeout
<nb> public class MultiWordTreeExpander { = Tsurgeon . parseOperation ( STRING0 ) ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT private static TregexPattern floppedGerund = TregexPattern . compile ( STRING1 ) ; private static ...
Also handle flopped infinitives after expanding multi word verb tokens
<nb> public class Main { @ benchmark public void benchMustacheCodegen ( ) throws IOException { - normal . execute ( nw , scope ) . close ( ) ; + codegen . execute ( nw , scope ) . close ( ) ; } @ benchmark public void benchMustacheIndy ( ) throws IOException { - normal . execute ( nw , scope ) . clo...
was actually not running the correct benchmarks but they are actually quite similar with simple objects
<nb> public class ModSorter else { modGraph . addEdge ( before , mod ) ; - modGraph . addEdge ( nameLookup . get ( dep ) , mod ) ; + if ( nameLookup . containsKey ( dep ) ) { + modGraph . addEdge ( nameLookup . get ( dep ) , mod ) ; + } } } <nb> public class ModSorter else { modGraph . addEd...
Fix soft dependencies so they can exist properly
<nb> public class GroovyScriptHandlerFactory implements HandlerFactory { } } - boolean compileStatic = Boolean . getBoolean ( launchConfig . getOther ( COMPILE_STATIC_PROPERTY_NAME , COMPILE_STATIC_PROPERTY_DEFAULT ) ) ; + boolean compileStatic = Boolean . parseBoolean ( launchConfig . getOther ( COMPILE_STAT...
Fix handling of compile static property
<nb> public class SubscriptionManager implements BaseColumns { COMMENT public static final long DEFAULT_SUB_ID = Long . MAX_VALUE ; + COMMENT + COMMENT + public static final long MIN_SUB_ID_VALUE = NUMBER0 ; + + COMMENT + COMMENT + public static final long MAX_SUB_ID_VALUE = DEFAULT_SUB_ID - NUMBER1...
Add SM isUsableSubIdValue
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + @ ignore ( STRING0 ) public class BackupHaIT { private DbRepresenta...
Ignores BackupHaIT temporarily
<nb> public class ReaderPhotoViewerFragment extends Fragment { return view ; } + @ suppresswarnings ( STRING0 ) @ override public void onAttach ( Activity activity ) { super . onAttach ( activity ) ;
Suppress onAttach deprecation warning in ReaderPhotoViewerFragment
<nb> public class MocoRestTest extends BaseMocoHttpTest < RestServer > { } @ test + public void should_put_with_response_handler ( ) throws Exception { + RestServer server = restServer ( NUMBER0 ) ; + final Plain resource1 = new Plain ( ) ; + resource1 . code = NUMBER1 ; + resource1 . message = STRING0 ...
added put with handler test for rest
<nb> public class StorageTier { Pair < StorageDir , List < BlockInfo > > evictInfo = mBlockEvictor . getDirCandidate ( dirs , pinList , requestSizeBytes ) ; if ( evictInfo == null ) { - SINGLE + SINGLE + SINGLE return mSpaceAllocator . getStorageDir ( dirs , userId , requestSizeBytes ) ; } dirSelected...
update the comments for the logic
<nb> public class SketchParser { return - NUMBER0 ; } - System . out . println ( STRING0 + setupStart ) ; - SINGLE int bracketCount = NUMBER0 ; int pos = setupStart ;
remove debug message
<nb> public abstract class SquidDatabase { COMMENT COMMENT COMMENT + @ beta protected void setFastInsertEnabled ( boolean enabled ) { fastInsertEnabled = enabled ; }
Add the beta annotation to setFastInsertEnabled
<nb> public class SvnConfigurable implements Configurable { myUseCommonProxy . setText ( SvnBundle . message ( STRING0 , ApplicationNamesInfo . getInstance ( ) . getProductName ( ) ) ) ; myEditProxiesButton . addActionListener ( new ConfigureProxiesListener ( myProject ) ) ; - - myClearCacheLabel . setLabelFo...
options editor highlighting imporovements
<nb> public final class AppInviteContent implements ShareModel { out . writeString ( this . previewImageUrl ) ; } + @ suppresswarnings ( STRING0 ) + public static final Creator < AppInviteContent > CREATOR = + new Creator < AppInviteContent > ( ) { + public AppInviteContent createFromParcel ( final Parcel...
added missing CREATOR to parcelable class AppInviteContent
<nb> public class ThinkDifferent implements ApplicationListener { fileMenu . add ( base . getSketchbookMenu ( ) ) ; - SINGLE - item = new JMenuItem ( STRING0 ) ; + item = Toolkit . newJMenuItemShift ( STRING0 , STRING1 ) ; item . addActionListener ( new ActionListener ( ) { public void actionPerformed (...
add cmd shift O to Open Examples on OS X with no window open
<nb> public class JobInfo implements Parcelable { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public Builder addTriggerContentUri ( @ nonnull TriggerContentUri uri ) {
Improve JobScheduler API demo
<nb> class MongoCollectionImpl < T > extends MongoCollectionBaseImpl < T > implements Mongo public UpdateResult save ( final MongoSave < T > save ) { Object id = serializer . getId ( save . getDocument ( ) ) ; if ( id == null ) { - return insert ( new MongoInsert < T > ( save . getDocument ( ) ) ) ; + return ...
Propagating writeConcern in save
<nb> public class SwiftOutputStream extends OutputStream { SINGLE SINGLE if ( mHttpCon . getResponseCode ( ) >= NUMBER0 ) { + LOG . error ( STRING0 + mHttpCon . getResponseCode ( ) ) ; is = mHttpCon . getErrorStream ( ) ; } else { is = mHttpCon . getInputStream ( ) ;
Log an error when Swift output stream does not successfully close
<nb> public class TestRestTemplate extends org . springframework . boot . test . web . client . T COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class TestRestTemplate extends org . springframework . boot . test . web . client . T COMMENT COMMENT COMMENT - COMMENT + ...
Fix checksyle violations
<nb> public final class LegacyCookieProcessor implements CookieProcessor { SINGLE private boolean presserveCookieHeader = CookieSupport . PRESERVE_COOKIE_HEADER ; - @ suppresswarnings ( STRING0 ) SINGLE + @ suppresswarnings ( STRING0 ) SINGLE SINGLE private boolean alwaysAddExpires = SetCookieSupport . AL...
Correct a default
<nb> public class AnimateDismissAdapter < T > extends ArrayAdapterDecorator < T > { public void onAnimationCancel ( Animator arg0 ) { } } ) ; - animatorSet . setDuration ( NUMBER0 ) ; animatorSet . start ( ) ; } else { AnimateDismissAdapter . super . removePositions ( positions ) ;
Removed long duration
<nb> public class ScanFilterAndProjectOperator public SourceOperator createOperator ( DriverContext driverContext ) { checkState ( ! closed , STRING0 ) ; - OperatorContext operatorContext = driverContext . addOperatorContext ( operatorId , FilterAndProjectOperator . class . getSimpleName ( ) ) ; + OperatorCon...
Fix operator name for debugging
<nb> public class GraphHopperWeb implements GraphHopperAPI Instruction instr ; if ( sign == Instruction . USE_ROUNDABOUT || sign == Instruction . LEAVE_ROUNDABOUT ) { - instr = new RoundaboutInstruction ( sign , text , ia , instPL ) ; + RoundaboutInstruction ri = new RoundaboutInstruction ( sign , text , ia ,...
fixing bug in GraphHopperWeb
<nb> public class AsyncStockServlet extends HttpServlet implements TickListener , Asyn private static final long serialVersionUID = NUMBER0 ; - public static final String POLL = STRING0 ; - public static final String LONG_POLL = STRING1 ; - public static final String STREAM = STRING2 ; - - static final ...
Remove more unused code