diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; 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 ...
Improved class documentation of Traverser
<nb> public class ForsetiClient implements Locks . Client if ( lockCount > NUMBER0 ) { - localLocks . put ( resourceId , decrementExactToZero ( lockCount ) ) ; + localLocks . put ( resourceId , lockCount - NUMBER0 ) ; return true ; } return false ; } - private static int decrementExactToZero ( int...
Remove unnecessary underflow check in Forsetti
<nb> public abstract class AbstractJob extends Configured implements Tool { protected static Option buildOption ( String name , String shortName , String description , String defaultValue ) { return buildOption ( name , shortName , description , false , defaultValue ) ; } + + protected static Option buildOpti...
change the private scope add another option for required but no default value
<nb> import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <nb> import static NAMESPACE ; @ preparefortest ( { GraphHandler . class , HttpQuery . class } ) public final class TestGraphHandler { + @ beforeclass + public static...
Fixing a flaky test with ClassLoader voodoo
<nb> public class OsmandApplication extends Application { } } super . onCreate ( ) ; + new Toast ( this ) ; SINGLE appCustomization = new OsmAndAppCustomization ( ) ; appCustomization . setup ( this ) ;
Fix ui exception
<nb> public abstract class ComponentStoreImpl implements IComponentStore . Reloadable { } Class < T > stateClass = ComponentSerializationUtil . getStateClass ( component . getClass ( ) ) ; - SINGLE - if ( ! stateSpec . defaultStateAsResource ( ) && getDefaultState ( component , name , stateClass ) != null ) {...
remove assertion only if debug
<nb> final class CascadingMenuPopup extends MenuPopup implements MenuPresenter , OnKey popupWindow . setAnchorView ( mAnchorView ) ; popupWindow . setDropDownGravity ( mDropDownGravity ) ; popupWindow . setModal ( true ) ; + popupWindow . setInputMethodMode ( PopupWindow . INPUT_METHOD_NOT_NEEDED ) ; return p...
Set input method mode for CascadingMenuPopup
<nb> public class BubbleDraggable extends BubbleView implements Draggable { } } + SINGLE + flickAnimPeriod = Math . max ( FLOAT0 , flickAnimPeriod ) ; + animate ( ) . alpha ( Constant . BUBBLE_MODE_ALPHA ) . setDuration ( Constant . BUBBLE_ANIM_TIME ) ; mBadgeView . animate ( ) . alpha ( Constant . BUBB...
Ensure that a flick which occurs when right on the target bubble still has a minimal animation time
<nb> public class ConfigUpdateInstallReceiver extends BroadcastReceiver { private static final String TAG = STRING0 ; - private static final String EXTRA_CONTENT_PATH = STRING1 ; private static final String EXTRA_REQUIRED_HASH = STRING2 ; private static final String EXTRA_SIGNATURE = STRING3 ; private sta...
Drop unused String
<nb> public class BoundingBox implements Serializable { COMMENT COMMENT public Vector3 getCenter ( Vector3 out ) { - return cnt ; + return out . set ( cnt ) ; } public float getCenterX ( ) {
Fix getCenter out
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public abstract class TaggableReadPreference extends ReadPreference { private static List < Tag > getTagListFromMongoDocument ( final Document curTagSet ) { final List < Tag >...
Using entrySet instead of keySet and we are not findBugs clean
<nb> public class NativeLibraryHelper { SINGLE public static boolean removeNativeBinariesLI ( String nativeLibraryPath ) { + if ( nativeLibraryPath == null ) return false ; return removeNativeBinariesFromDirLI ( new File ( nativeLibraryPath ) ) ; }
Gracefully handle apps without native libraries
<nb> public class LibraryImpl implements LibraryEx . ModifiableModelEx , LibraryEx { if ( roots . size ( ) == NUMBER0 && rootType . skipWriteIfEmpty ( ) ) continue ; SINGLE final Element rootTypeElement = new Element ( rootType . name ( ) ) ; roots . writeExternal ( rootTypeElement , ROOT_PATH_ELEMENT ) ; - if ...
Revert config cleanup
<nb> public class SUTime { if ( base != null ) { p = base . getJodaTimePartial ( ) ; } - if ( p == null && range != null ) { + if ( p == null && range != null && range . mid ( ) != null ) { p = range . mid ( ) . getJodaTimePartial ( ) ; } return p ; <nb> public class TimeExpressionExtractorImpl implem...
Improve check when searching for first date in document
<nb> public class OTransactionOptimistic < REC extends ORecordInternal < ? > > extends OTra } private OTransactionEntry < REC > getRecord ( final int iClusterId , final long iPosition ) { - return entries . get ( ORecordId . generateString ( iClusterId , iPosition ) ) ; + return entries . get ( new ORecordId ...
Fixed issue on loading record in local tx
<nb> public class Pokemon { return ReleasePokemonResponse . Result . FAILED ; } - if ( response . getResult ( ) == Result . SUCCESS ) { + if ( response . getResult ( ) == Result . SUCCESS ) { pgo . getInventories ( ) . getPokebank ( ) . removePokemon ( this ) ; }
Fixed checkstyle error
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; public class XPathWildcardElement extends XPathElement {
Remove unused import
<nb> public class PlaybackOverlaySupportFragment extends DetailsSupportFragment { final AnimatorUpdateListener updateListener = new AnimatorUpdateListener ( ) { @ override public void onAnimationUpdate ( ValueAnimator arg0 ) { + if ( getVerticalGridView ( ) == null ) { + return ; + } final float fraction ...
Fix NPE in the support fragment
<nb> abstract class JsonObject { COMMENT COMMENT COMMENT - @ suppresswarnings ( STRING0 ) public < T > T get ( String name , Class < T > clazz ) { Object value = parameters . get ( name ) ; try {
Remove unneded supressWarning annotation
<nb> public class MetaContactListException COMMENT public static final int CODE_CONTACT_ALREADY_EXISTS_ERROR = NUMBER0 ; + COMMENT + COMMENT + COMMENT + COMMENT + public static final int CODE_GROUP_ALREADY_EXISTS_ERROR = NUMBER1 ; + COMMENT COMMENT COMMENT COMMENT - public static final int...
Fixed Error Dialog exception rendering and layout
<nb> public class WindowManagerService extends IWindowManager . Stub for ( i = N - NUMBER0 ; i >= NUMBER1 ; i -- ) { WindowState w = mWindows . get ( i ) ; - if ( someoneLosingFocus && w == mCurrentFocus && w . isDisplayedLw ( ) ) { - focusDisplayed = true ; - } - final boolean obscuredChanged = w . mOb...
Call deferred windowFocusChange when draw complete
<nb> public class BukkitWorld extends LocalWorld { return super . setBlock ( pt , block , notifyAdjacent ) ; } + + COMMENT + COMMENT + COMMENT + @ deprecated + public boolean setBlock ( Vector pt , com . sk89q . worldedit . foundation . Block block , boolean notifyAdjacent ) throws WorldEditException ...
Bukkit Added shim method for setBlock foundation Block
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT
Git merge fail
<nb> public class Options { Preconditions . checkNotNull ( usageMessage ) ; helpMessage = properties . getProperty ( HELP_MSG_KEY ) ; Preconditions . checkNotNull ( helpMessage ) ; - properties . clear ( ) ; - - SINGLE - propertiesUrl = Resources . getResource ( J2ObjC . class , STRING0 ) ; - try { - ...
Rolled back partial support for JRE package prefixes
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; public class UnnecessaryBoxingFixTest e...
Fix test names
<nb> public class DexGraph implements IndexableGraph { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT - public DexGraph ( File db , boolean create ) throws FileNotFoundException { + public DexGraph ( final File db ) throws FileNotFoundException { + boolean create = ! db . ex...
updated DexGraph constructor to behave like other DB implementations
<nb> public class AsmClassGenerator extends ClassGenerator { } public void visitTryCatchFinally ( TryCatchStatement statement ) { - onLineNumber ( statement , STRING0 ) ; visitStatement ( statement ) ; MethodVisitor mv = controller . getMethodVisitor ( ) ; CompileStack compileStack = controller . getCompi...
Rogue line number for try catch statement confuses IDE debuggers
<nb> public class SugarTransactionHelper { } } - public static interface Callback { + public interface Callback { void manipulateInTransaction ( ) ; } }
removing static from callback interface
<nb> public class Boot extends ClassLoader { SINGLE File tmproot = new File ( sroot ) ; + if ( ! tmproot . mkdirs ( ) ) throw new IOException ( STRING0 + tmproot . getAbsolutePath ( ) ) ; + File dir = File . createTempFile ( STRING1 , STRING2 , tmproot ) ; if ( ! dir . delete ( ) ) throw new IOException (...
add initial creation of iceroot
<nb> COMMENT package NAMESPACE ; - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - import NAMESPACE ; import NAMESPACE ;
Remove duplicated licence
<nb> public abstract class DirectoryIndex { public abstract DirectoryInfo getInfoForDirectory ( VirtualFile dir ) ; + public abstract boolean isExcludeRoot ( VirtualFile dir ) ; + @ notnull public abstract Query < VirtualFile > getDirectoriesByPackageName ( @ notnull String packageName , boolean include...
ProjectFileIndex isIgnored honors exclude roots outside of module content roots
<nb> public class AtomicDoubleTest extends JSR166TestCase { public void testSerialization ( ) throws Exception { AtomicDouble a = new AtomicDouble ( ) ; AtomicDouble b = serialClone ( a ) ; - assertTrue ( a != b ) ; + assertNotSame ( a , b ) ; a . set ( - FLOAT0 ) ; AtomicDouble c = serialClone ( a ) ; ...
Use assertNotSame x y in place of assertTrue x
<nb> class IonBitmapRequestBuilder implements Builders . ImageView . F , ImageViewFutureBu resizeWidth = NUMBER0 ; resizeHeight = NUMBER0 ; disableFadeIn = false ; - builder = null ; + builder = null ; } }
fixing the indentation
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; @ runwith ( OrderedJUnit4ClassRunner . class ) public class ScrubTest <nb> public class ScrubTest @ test public void testScrubCorruptedCounterRow ( ) throws IOException , WriteTimeoutExcept...
Skip scrub counter test when compression is enabled
<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 ; <nb> public cl...
Live templates re enabled in JSPX
<nb> public class SignalStrength implements Parcelable { int levelLteRsrp = NUMBER0 ; if ( mLteRsrp == - NUMBER1 ) levelLteRsrp = NUMBER0 ; - else if ( mLteRsrp >= - NUMBER2 ) levelLteRsrp = SIGNAL_STRENGTH_GREAT ; - else if ( mLteRsrp >= - NUMBER3 ) levelLteRsrp = SIGNAL_STRENGTH_GOOD ; - else if ( mLteRsr...
Adjust the LTE signal bar mapping
<nb> public class StandardRoot extends LifecycleMBeanBase protected void initInternal ( ) throws LifecycleException { super . initInternal ( ) ; - SINGLE + SINGLE SINGLE TomcatURLStreamHandlerFactory . register ( ) ;
Fix comment typo
<nb> public class FilerConsumerShouldSkipDoneFileSuffixTest extends ContextTestSuppor return new RouteBuilder ( ) { @ override public void configure ( ) throws Exception { - from ( STRING0 ) . to ( STRING1 ) ; + from ( STRING2 ) + . convertBodyTo ( String . class ) + . to ( STRING1 ) ; } } ; } <nb...
Fixed tests on CI servers
<nb> public class PatchReader { private DiffFormat myDiffFormat = null ; @ nonnls private static final String CONTEXT_HUNK_PREFIX = STRING0 ; @ nonnls private static final String CONTEXT_FILE_PREFIX = STRING1 ; - @ nonnls private static final Pattern ourUnifiedHunkStartPattern = Pattern . compile ( STRING2 ) ; ...
parse additional context for unified diff
<nb> public class Groovyc extends MatchingTask { } if ( failOnError ) { - log . info ( message ) ; + log . error ( message ) ; throw new BuildException ( STRING0 , t , getLocation ( ) ) ; } else { log . error ( message ) ;
Make groovyc log build failure at the error message with failOnError so
<nb> public class SpringMvcCompilerAutoConfiguration extends CompilerAutoConfiguratio imports . addStarImports ( STRING0 , STRING1 , STRING2 , - STRING3 , STRING4 ) ; + STRING3 , STRING4 , + STRING5 ) ; imports . addStaticImport ( GroovyTemplate . class . getName ( ) , STRING6 ) ; }
Add Spring MVC s org springframework ui package to the list of automatic imports
<nb> public class PassCodeActivity extends ActionBarActivity { if ( savedInstanceState != null ) { mConfirmingPassCode = savedInstanceState . getBoolean ( PassCodeActivity . KEY_CONFIRMING_PASSCODE ) ; mPassCodeDigits = savedInstanceState . getStringArray ( PassCodeActivity . KEY_PASSCODE_DIGITS ) ; - if ( mCon...
modify code to be simpler
<nb> public class Capsule implements Runnable { } catch ( Exception t ) { deshadow ( t ) . printStackTrace ( System . err ) ; } - + for ( Path p : oc . tmpFiles ) { try { delete ( p ) ; <nb> public class Capsule implements Runnable { } private void lockAppCache ( Path dir ) throws IOException { ...
Delete lock file on exit
<nb> public class MessageDigestAlgorithm String entity_body , String qop_value ) { + logger . debug ( STRING0 + algorithm + STRING1 + + username_value + STRING1 + realm_value + STRING1 + ( passwd != null + && passwd . trim ( ) . length ( ) > NUMBER0 ) + STRING1 + nonce_value + STRING1 + + nc_value + STRIN...
added some debug informations in the log
<nb> public class SipStackSharing if ( tlsLP != null ) this . stack . deleteListeningPoint ( tlsLP ) ; + Set < ListeningPoint > lpsToDelete = new HashSet < ListeningPoint > ( ) ; + @ suppresswarnings ( STRING0 ) Iterator lps = this . stack . getListeningPoints ( ) ; while ( lps . hasNext ( ) ) <nb> pu...
Prevent a ConcurrentModificationException
<nb> package NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public class MongoClientURI { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public MongoClientURI (...
Updated MongoClientURI javadoc to emphasize that the constructor that takes a MongoClientOptions Builder instance takes ownership of that instance
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; COMMENT COMMENT <nb> public class SmppBindingTest { SINGLE SINGLE } - + + @ test ...
Added test for different encodings
<nb> public class DaoSessionConcurrentTest extends AbstractDaoSessionTest < Application dao . insertWithoutSettingPk ( createEntity ( null ) ) ; } } ; - initThreads ( runnable1 , runnable2 , runnable3 , runnable4 ) ; + Runnable runnable5 = new Runnable ( ) { + @ override + public void run ( ) { + dao . ...
added insertOrReplace to DaoSessionConcurrentTest
<nb> public class FeedParser { private Date validateDate ( Date date ) { if ( date == null ) { - return null ; + return new Date ( ) ; } if ( date . before ( START ) || date . after ( END ) ) { - return null ; + return new Date ( ) ; } return date ; }
use a default date instead of null
<nb> public class PyReferenceImpl implements PsiReferenceEx , PsiPolyVariantReference return ref . multiResolveInner ( incompleteCode ) ; } } + + @ override + public boolean equals ( Object o ) { + if ( this == o ) return true ; + if ( o == null || getClass ( ) != o . getClass ( ) ) return false ; + ...
provide equals and hashCode for PyReferenceImpl
<nb> public class EditorSearchSession implements SearchSession , updateResults ( true ) ; } else { - clearSearchResults ( ) ; + nothingToSearchFor ( ) ; } updateMultiLineStateIfNeed ( ) ; } <nb> public class EditorSearchSession implements SearchSession , private void updateResults ( final boolean al...
revert to the old method name
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , region . op ( interactiveRegion , Region . Op . INTERSECT ) ; } + SINGLE + final View root = getRootView ( ) ; + if ( root != null ) { + region . op ( dx , dy , root . getWidth ( ) + dx , root . getHeight ( ) + dy , Region . Op ...
Account for window bounds in accessibility view click point computation
<nb> public class DatabaseAcceptanceTest extends DatabaseTestCase { } @ test + @ ignore ( STRING0 ) public void shouldBeAbleToAuthenticateAfterAddingUser ( ) throws InterruptedException { + SINGLE MongoCredential credential = MongoCredential . createMongoCRCredential ( STRING1 , getDatabaseName ( ) , STRI...
chore driver ignore test o m acceptancetest core DatabaseAcceptanceTest shouldBeAbleToAuthenticateAfterAddingUser
<nb> public interface OperationHandler { void execute ( NewOperationContext context , ModelNode operation , ResultHandler resultHandler ) ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - void applyModelOperation ( ModelNode submodel , ModelNode operatio...
Delete obsolete method
<nb> public interface SynthesisCallback { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface SynthesisCallback { COMMENT COMMENT public boolean hasFinished ( ) ; - } + }
Fix Javadoc error
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TachyonMaster { COMMENT COMMENT COMMENT - @ visiblefortesting int getLocalPort ( ) { return port ; } <nb> public class DataServer...
removed unneeded imports
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; ...
Restore full imports
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LogEntryShuffler { private final long min ; private final long max ; - private final ThreadLoc...
Fix compilation error
<nb> public class CppCompletionManager implements CompletionManager return false ; } - SINGLE + SINGLE + CompletionListPopupPanel popup = getCompletionPopup ( ) ; + if ( popup == null ) + return false ; + + SINGLE if ( keyCode == KeyCodes . KEY_BACKSPACE ) { suggestCompletions ( ) ; return f...
only trigger completion filter on backspace when the popup is visible
<nb> import NAMESPACE ; project = true , global = false ) } ) - public class SurefirePlugin implements Plugin { - - public String getKey ( ) { - return CoreProperties . SUREFIRE_PLUGIN ; - } - - public String getName ( ) { - return STRING0 ; - } - - public String getDescription ( ) { - ret...
Re apply lost refactoring
<nb> public class Instrumentation { if ( events != null ) { for ( int i = NUMBER0 ; i < events . length ; i ++ ) { + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE sendKeySync ( KeyEvent . changeTimeRepeat ( events [ i ] , SystemClock . uptimeMillis ( ) , NUMBER0 ) ) ; } }
Added missing comments in Instrumentation sendStringSync
<nb> public class Json { } } - @ suppresswarnings ( STRING0 ) - public static < T > T decodeValue ( String str , Class < ? > clazz ) throws DecodeException { + public static < T > T decodeValue ( String str , Class < T > clazz ) throws DecodeException { try { - return ( T ) mapper . readValue ( str , cl...
Improve generic type usage
<nb> public interface TypeWriter < T > { COMMENT void assertDefaultValue ( String name ) ; + COMMENT + COMMENT + COMMENT void assertDefaultMethodCall ( ) ; COMMENT
Added missing javadoc
<nb> final class DefaultPermissionGrantPolicy { grantRuntimePermissionsLPw ( wearHomePackage , PHONE_PERMISSIONS , true , userId ) ; grantRuntimePermissionsLPw ( wearHomePackage , MICROPHONE_PERMISSIONS , false , userId ) ; + grantRuntimePermissionsLPw ( wearHomePackage , LOCATION_PERMISSIONS , false , + user...
Give watch Home app location permissions by default
<nb> public interface QueryCacheConfigurator { COMMENT QueryCacheConfig getOrCreateConfiguration ( String mapName , String cacheName ) ; - COMMENT COMMENT COMMENT <nb> public interface QueryCacheEventService < E > { COMMENT String addListener ( String mapName , String cacheName , MapListener listene...
Fixed superfluous newlines in QueryCache package
<nb> public class InteractiveShell { if ( command == null || command . equals ( STRING0 ) ) { break ; } + if ( command . length ( ) == NUMBER0 ) { + continue ; + } try { Object answer = shell . evaluate ( command , STRING1 + counter ++ + STRING2 ) ; System . out . println ( InvokerHelper . inspect ( a...
ignore blank lines gracefully
<nb> public class EmulatorView extends View implements GestureDetector . OnGestureListe if ( mCursorBlink != NUMBER0 ) { mHandler . postDelayed ( mBlinkCursor , CURSOR_BLINK_PERIOD ) ; } - - SINGLE - SINGLE - mKeyListener . handleHardwareControlKey ( false ) ; + mKeyListener . onResume ( ) ; } COM...
Refactor this change to use the standard onPause onResume protocol
<nb> public class BitmapDrawable extends Drawable { } } + COMMENT + COMMENT + COMMENT @ override public Insets getOpticalInsets ( ) { if ( mApplyGravity && mBitmapState . mPaint . getShader ( ) == null ) {
DO NOT MERGE Fix build
<nb> package NAMESPACE ; public class Accumulator { private final String operation ; - private final String field ; + private final Object field ; public Accumulator ( final String operation , final String field ) { + this ( operation , ( Object ) ( STRING0 + field ) ) ; + } + + public Accumulator...
Allow Proper Implementation of Accumulator Sum
<nb> public class FileConsumerInterceptEmptyFileTest extends ContextTestSupport { deleteDirectory ( STRING0 ) ; MockEndpoint mock1 = getMockEndpoint ( STRING1 ) ; - mock1 . expectedMessageCount ( NUMBER0 ) ; - mock1 . expectedBodiesReceived ( STRING2 , STRING3 ) ; + mock1 . expectedBodiesReceivedInAnyOrder ...
Fixed test on other boxes
<nb> public class TachyonFileSystem implements Closeable , TachyonFSCore { public boolean mkdirs ( TachyonURI path ) throws IOException { FileSystemMasterClient masterClient = mContext . acquireMasterClient ( ) ; try { - SINGLE + SINGLE return masterClient . createDirectory ( path . getPath ( ) , true ) ; ...
Tagging TODOs in tachyon client file
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RexsterIndex < T extends Element > implements Index < T > { return StringFactory . indexString ( this ) ; } + public long count ( final St...
Added the count method to RexterIndex
<nb> public class BrowserDemo1 extends Activity { setContentView ( R . layout . main ) ; browser = ( WebView ) findViewById ( R . id . webkit ) ; - browser . loadUrl ( STRING0 ) ; + browser . loadUrl ( STRING1 ) ; } }
had incorrect URL
<nb> public class ColumnDefinition extends BaseDefinition { codeBlockBuilder . add ( STRING0 ) ; } + if ( notNull ) { + codeBlockBuilder . add ( STRING1 ) ; + } + return codeBlockBuilder . build ( ) ; } }
fixed not null columns
<nb> public class TransitBoardAlight extends PatternEdge implements OnBoardForwardEdg private boolean boarding ; public TransitBoardAlight ( TransitStopDepart fromStopVertex , PatternStopVertex toPatternVertex , - TableTripPattern pattern , int stopIndex , TraverseMode mode ) { + int stopIndex , TraverseMode ...
Remove TripPattern param from TransitBoardAlight
<nb> package NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT @ incubating - public interface SkippedEvent extends FinishEvent { + public interface SkippedEvent extends SuccessEvent { }
Make SkippedEvent extend SuccessEvent
<nb> public class ActionMenuPresenter extends BaseMenuPresenter public void updateMenuView ( boolean cleared ) { final ViewGroup menuViewParent = ( ViewGroup ) ( ( View ) mMenuView ) . getParent ( ) ; if ( menuViewParent != null ) { - setupItemAnimations ( ) ; + SINGLE ActionBarTransition . beginDelayedTran...
Fix breakage from ActionBar animations
<nb> public class ManagedSelector extends AbstractLifeCycle implements Runnable , Dump @ override public void run ( ) { - while ( isRunning ( ) || isStopping ( ) ) - _strategy . execute ( ) ; + _strategy . execute ( ) ; } - @ override public Runnable produce ( ) {
Removed loop calling the ExecutionStrategy since it was spinning
<nb> public abstract class WsFrameBase { ( ( MessageHandler . Partial < String > ) mh ) . onMessage ( messageBufferText . toString ( ) , last ) ; } else { + SINGLE ( ( MessageHandler . Whole < String > ) mh ) . onMessage ( messageBufferText . toString ( ) ) ; } <nb> public abstract class WsFrameBase { ...
Add a comment
<nb> public class Editor { } mSelectionHandleHeight = Math . max ( mSelectHandleLeft . getMinimumHeight ( ) , mSelectHandleRight . getMinimumHeight ( ) ) ; - getInsertionController ( ) . getHandle ( ) ; - mInsertionHandleHeight = mSelectHandleCenter . getMinimumHeight ( ) ; + InsertionPointCursorController ...
Fix crash when selecting text on a non editable TextView
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GrLightMethodBuilder extends LightElement implements GrMethod { } @ nullable - public GrTypeElement setReturnType ( Str...
Provide resolve scope for method GrLightMethodBuilder setReturnType
<nb> public final class ActivityStackSupervisor implements DisplayListener { thumbnails = null ; } - if ( isFrontStack ( mHomeStack ) ) { - booting = mService . mBooting ; - mService . mBooting = false ; - } + booting = mService . mBooting ; + mService . mBooting = false ; if ( mStartingUsers . si...
Make the booting flag update unconditional
<nb> public class ReaderBlog { blog . numSubscribers = json . optInt ( STRING0 ) ; } + SINGLE + if ( blog . blogId == NUMBER0 && blog . feedId != NUMBER0 ) { + blog . blogId = blog . feedId ; + } + return blog ; } <nb> public class ReaderPostActions { } ; AppLog . d ( T . READER , STRING1 + ...
Blog preview for a feed now shows posts
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; COMMENT @ channelpipelinecoverage ( STRING0 ) class HttpTunnelingChannelHandler extends SimpleChannelUpstreamHandler { + + privat...
Fixed a problem where HttpTunnelingChannelHandler does not log caught exceptions
<nb> public class Solo { COMMENT COMMENT COMMENT - + public View getView ( int id ) { return getter . getView ( id ) ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + + public < T extends View > View getView ( Class < T > viewClass , int index ) { + retu...
Added a new method getView Class viewClass int index
<nb> public interface TypeDefinition extends NamedElement , Iterable < TypeDefinition > { VARIABLE , COMMENT - COMMENT + COMMENT + COMMENT COMMENT VARIABLE_SYMBOLIC ; <nb> public interface TypeDescription extends TypeDefinition , TypeVariableSource { @ override protected Generic onSimpleType (...
Fixed javadoc and equality glitches
<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 ; + import...
Don t push nulls into index
<nb> public class XMPPServer { while ( tokenizer . hasMoreTokens ( ) ) { String username = tokenizer . nextToken ( ) ; try { - admins . add ( createJID ( username , null ) ) ; + admins . add ( createJID ( username . toLowerCase ( ) . trim ( ) , null ) ) ; } catch ( IllegalArgumentException e ) { SINGLE ...
Transform list of admins to lowercase
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ;
add license to the KeyboardUtil
<nb> public class MediaCommandPlayerImpl extends AbstractPrologCommandPlayer implemen for ( String s : builder . execute ( ) ) { bld . append ( s ) . append ( STRING0 ) ; } - sendAlertToAndroidWear ( ctx , bld . toString ( ) ) ; + if ( ctx != null ) { + sendAlertToAndroidWear ( ctx , bld . toString ( ) ) ; ...
add ctx not null checks to Media command player
<nb> public interface RepositoryHandler extends ArtifactRepositoryContainer { COMMENT COMMENT COMMENT + @ suppresswarnings ( STRING0 ) DependencyResolver mavenRepo ( Map < String , ? > args ) ; COMMENT <nb> public interface RepositoryHandler extends ArtifactRepositoryContainer { COMMENT COMMENT CO...
suppressed some javadoc warnings in IDEA because it doesn t know that the Javadoc is processed as one big heap
<nb> public class PerlAnalyzerFactory extends FileAnalyzerFactory { private static final String [ ] SUFFIXES = { STRING0 , STRING1 , - STRING2 + STRING2 , + STRING3 } ; private static final String [ ] MAGICS = { STRING4 ,
Add PH suffix to Perl analyzer
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class OutputModelController { SINGLE function . code = DefaultOutputModelFactory . list ( walker . block ( null , null ) ) ; } - catch ( Exception e ) { + catch ( org . antlr . runtim...
Catch specific RecognitionException instead of Exception
<nb> public class RuleQuery { } public RuleQuery setSortField ( @ nullable IndexField sf ) { - if ( ! sf . sortable ( ) ) { + if ( sf != null && ! sf . sortable ( ) ) { throw new IllegalStateException ( STRING0 + sf . field ( ) + STRING1 ) ; } this . sortField = sf ;
fix quality flaw NPE check
<nb> public final class ActFmSyncService { if ( ! newlyCreated ) { params . add ( STRING0 ) ; params . add ( remoteId ) ; - } else if ( ! values . containsKey ( Task . TITLE . name ) ) + } else if ( ! values . containsKey ( Task . TITLE . name ) ) { + pushTask ( task . getId ( ) ) ; return ; + } try...
If your task wasn t sent to Astrid com send the whole thing
<nb> public class AutomaticBean COMMENT private static class RelaxedStringArrayConverter implements Converter { COMMENT + @ suppresswarnings ( { STRING0 , STRING1 } ) @ override - public Object convert ( @ suppresswarnings ( STRING1 ) Class type , Object value ) { + public Object convert ( Class type , Ob...
Add additional suppression for unchecked operation
<nb> public class FileInStream extends InputStream implements BoundedStream , Seekable private long mStreamBlockId ; COMMENT - private byte [ ] mSeekBuffer = null ; + private byte [ ] mSeekBuffer ; COMMENT COMMENT <nb> public class FileInStream extends InputStream implements BoundedStream , Seekable ...
Always allocate buffer
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TupleDomainParquetPredicate < C > try { dictionary = dictionaryPage . getEncoding ( ) . initDictionary ( columnDescriptor , dictionaryPage ) ;...
Skip dictionary filtering if dictionary can not be read
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public interface Request { COMMENT MultiValueMap < String , String > getQueryParams ( ) ; + ByteBuf getBuffer ( ) ; + COMMENT COMMENT COMMENT <nb> public class DefaultRequest imp...
Expose the request ByteBuf
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + public class AnnotationObject { + @ jsonserialize ( include = Inclusion . NON_NULL ) @ xmlattribute public String vertex ; + @ jsonserialize ( include = Inclusion . NON_NULL ) @ xmlattribute public Inte...
make fields on annotation objects optional in json