diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class WebView extends AbsoluteLayout return false ; } WebViewCore . CursorData data = cursorDataNoPosition ( ) ; - data . mX = viewToContentX ( ( int ) event . getX ( ) ) ; - data . mY = viewToContentY ( ( int ) event . getY ( ) ) ; + data . mX = viewToContentX ( ( int ) event . getX ( ) + mScro...
Touch exploration hover events don t map coordinates correctly on scrollable WebViews
<nb> public final class EpollSocketChannel extends AbstractEpollChannel implements So if ( buf . hasMemoryAddress ( ) ) { long memoryAddress = buf . memoryAddress ( ) ; int readerIndex = buf . readerIndex ( ) ; + int writerIndex = buf . writerIndex ( ) ; for ( ; ; ) { - int localFlushedAmount = Native . wri...
Correctly write single ByteBuf with memoryAddress
<nb> public class ChatRoomJabberImpl COMMENT COMMENT COMMENT - static ChatRoomMemberRole smackRoleToScRole ( String smackRole , + public static ChatRoomMemberRole smackRoleToScRole ( String smackRole , String affiliation ) { if ( affiliation != null )
Makes ChatRoomJabberImpl smackRoleToScRole utility method public
<nb> public class RiverMongoMapReduceTest extends RiverMongoDBTestAbstract { private DBCollection mongoCollection ; private DBCollection mongoCollection2 ; - @ factory ( dataProvider = STRING0 ) + @ factory ( dataProvider = STRING1 ) public RiverMongoMapReduceTest ( ExecutableType type ) { super ( type ) ...
Don t run RiverMongoMapReduceTest against TokuMX Toku doesn t seem to update the oplog properly for map reduce output
<nb> public class IntentUtils { . setAction ( ACTION_INSTALL_SHORTCUT ) ; } + public static Intent makeLaunchApp ( String packageName , Context context ) { + return context . getPackageManager ( ) . getLaunchIntentForPackage ( packageName ) ; + } + public static Intent makePickFile ( ) { return new In...
Add more to IntentUtils
<nb> public class AIMSICD extends FragmentActivity implements AsyncResponse { menu . add ( DrawerMenuItem . create ( NUMBER0 , getString ( R . string . about_aimsicd ) , STRING0 , true , this ) ) ; menu . add ( DrawerMenuItem . create - ( NUMBER1 , getString ( R . string . debugging ) , STRING1 , false , this )...
Fixed missing symbol
<nb> public class RequestCreator { COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT...
Add documentation on proper Target usage
<nb> public class FileTemplateUtil { modifiedPatternsPath = new File ( modifiedPatternsPath , STRING0 ) ; modifiedPatternsPath = new File ( modifiedPatternsPath , STRING1 ) ; - if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { - System . out . println ( STRING2 ) ; - } - LogSystem em...
remove debug output
<nb> public class PatternRuleTest extends TestCase { private void testBadSentences ( JLanguageTool languageTool , JLanguageTool allRulesLanguageTool , Language lang , Map < String , PatternRule > complexRules , PatternRule rule ) throws IOException { final List < IncorrectExample > badSentences = rule . getIncorr...
prepare test that fails if a rule doesn t have at least one example that triggers the rule
<nb> public class ScaleFrameLayout extends FrameLayout { } @ override + protected boolean addViewInLayout ( View child , int index , ViewGroup . LayoutParams params , + boolean preventRequestLayout ) { + boolean ret = super . addViewInLayout ( child , index , params , preventRequestLayout ) ; + if ( ret )...
Override addViewInLayout to apply scale factor
<nb> public abstract class TvInputService extends Service { trackIdSet . clear ( ) ; SINGLE + final List < TvTrackInfo > tracksCopy = new ArrayList < > ( tracks ) ; executeOrPostRunnable ( new Runnable ( ) { @ override public void run ( ) { try { if ( DEBUG ) Log . d ( TAG , STRING0 ) ; if ( mSessio...
Use copied track list for onTracksChanged callback
<nb> class BluetoothManagerService extends IBluetoothManager . Stub { } catch ( RemoteException e ) { Slog . e ( TAG , STRING0 , e ) ; } finally { - mBluetoothLock . readLock ( ) . lock ( ) ; + mBluetoothLock . readLock ( ) . unlock ( ) ; } } else if ( st == BluetoothAdapter . STATE_ON ) { SINGLE
Unlock mBluetoothLock readLock instead of double locking it
<nb> public class TokenFinder { if ( token != null ) return token ; - if ( word . startsWith ( STRING0 ) ) - return VariableExprToken . class ; - if ( word . matches ( STRING1 ) ) return IntegerExprToken . class ; <nb> public class TokenFinder { if ( word . matches ( STRING2 ) ) return HexExprVa...
Fix name variable token finding
<nb> public class SearchClient extends TransportClient implements Startable { } return response ; } catch ( Exception e ) { - LOGGER . error ( STRING0 + request , e ) ; + LOGGER . error ( STRING1 , request ) ; throw new IllegalStateException ( STRING2 , e ) ; } }
Fixed SearchClient error output to show request
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class HexDumpProxyInitializer extends ChannelInitializer < SocketChannel > { <nb> public class HexDumpProxyInitializer extends ChannelInitializer < SocketChannel > { @...
HexDumpProxy should log hex dump
<nb> class MoveByFirstByte extends MRTask < MoveByFirstByte > { + ( Math . max ( NUMBER0 , _fr . numRows ( ) / NUMBER1 / H2O . CLOUD . size ( ) ) ) + STRING0 + Arrays . toString ( _MSBhist ) + STRING1 ) ; } + System . out . println ( STRING2 + _biggestBit + STRING3 ) ; + int msb = NUMBER2 ; + for ( int m = ...
Added MSBhist and biggestBit trace to check good MSB split
<nb> public interface FileSystem { COMMENT COMMENT COMMENT - @ fluent String readSymlinkSync ( String link ) ; COMMENT <nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT public ...
remove erroneous Fluent and use warning for now on bad testComplete
<nb> public class ImmutableClassToInstanceMapTest extends TestCase { MapFeature . RESTRICTS_KEYS , CollectionFeature . KNOWN_ORDER , CollectionSize . ANY , - MapFeature . ALLOWS_NULL_QUERIES ) + MapFeature . ALLOWS_NULL_QUERIES , + CollectionFeature . SERIALIZABLE ) . createTestSuite ( ) ) ; return su...
Make ImmutableClassToInstanceMap serializable
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
remove unused import
<nb> public abstract class GotoTargetHandler implements CodeInsightActionHandler { try { GotoData gotoData = getSourceAndTargetElements ( editor , file ) ; - if ( gotoData != null ) { + if ( gotoData != null && gotoData . source != null ) { show ( project , editor , file , gotoData . source , gotoData . tar...
Added additional null check because got NPE with that at local environment
<nb> public final class PreconditionMessage { public static final String ERR_SEEK_PAST_END_OF_BLOCK = STRING0 ; public static final String ERR_SEEK_PAST_END_OF_FILE = STRING1 ; public static final String ERR_WRITE_BUFFER_NULL = STRING2 ; - public static final String RAW_TABLE_METADATA_NULL = STRING3 ; public ...
Remove RawTable precondition message
<nb> public class OsmandSettings { } public final CommonPreference < Float > SAVE_TRACK_MIN_SPEED = new FloatPreference ( STRING0 , FLOAT0 ) . makeProfile ( ) ; { - SINGLE - SINGLE - SINGLE + SAVE_TRACK_MIN_SPEED . setModeDefaultValue ( ApplicationMode . CAR , FLOAT1 ) ; + SAVE_TRACK_MIN_SPEED . setMode...
Justify default settings for saving track
<nb> public class TestParserExec extends BaseTest { public void testIfIfElse ( ) throws Exception { String grammar = STRING0 + + STRING1 + STRING2 + STRING3 + STRING4 + <nb> public class TestParserExec extends BaseTest { STRING5 ; - String found = execParser ( STRING6 , grammar , STRING7 , STRIN...
fix test so no error due to EOF
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CRFBiasedClassifier < IN extends CoreMap > extends CRFClassifier < IN > { super ( props ) ; } + public CRFBiasedClassif...
added another constructor
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ targetapi ( Build . VERSION_CODES . HONEYCOMB ) public class ListWidgetPreferenceFragment extends BaseSettingsFragment { @ suppresswarnings ( STRING0 ) private SharedPreferences . OnSharedPreferenceChangeListener <nb> public class ListWidgetPreferenceF...
Only update widget settings UI if still added
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility COMMENT public void clearAnimation ( ) { if ( mCurrentAnimation != null ) { - mCurrentAnimation . cancel ( ) ; + mCurrentAnimation . detach ( ) ; } mCurrentAnimation = null ; } <nb> public abstract class Animat...
Fix the lock screen
<nb> public class ExternalResourceManagerImpl extends ExternalResourceManagerEx imple @ nonnls private static final String PERSISTENCE_NS = STRING0 ; @ nonnls private static final String PERSISTENCE_ORM_NS = STRING1 ; - @ nonnls private static final String SOURCE_FORGE_NS = STRING2 ; - private Map < String ...
hibernate DTD s moved to plugin
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class VcsDirtyScopeManagerImpl extends VcsDirtyScopeManager implements Pr } public void rootsChanged ( ModuleRootEvent event ) ...
don t mark dirty synchronously on rootsChanged
<nb> public class ModelTestUtils { Assert . assertEquals ( STRING0 + writeOp , FAILED , result . get ( OUTCOME ) . asString ( ) ) ; transformedOperation = mainServices . transformOperation ( modelVersion , config . correctWriteAttributeOperation ( writeOp ) ) ; result = mainServices . executeOperation ( modelVers...
Reenable the write attribute checking
<nb> public class FileLRUCache { COMMENT COMMENT public long getMaxOccupiedSpace ( ) { - return maxFileSize * cache . getCacheSize ( ) ; + return ( long ) maxFileSize * cache . getCacheSize ( ) ; } COMMENT
fixed int int to long
<nb> abstract class BitmapHunter implements Runnable { bitmap = applyCustomTransformations ( data . transformations , bitmap ) ; } } - stats . dispatchBitmapTransformed ( bitmap ) ; + if ( bitmap != null ) { + stats . dispatchBitmapTransformed ( bitmap ) ; + } } }
If custom transformation fails do not invoke stats
<nb> public class ModifyKeyboardShortcutsWidget extends ModalDialogBase table_ = new DataGrid < CommandBinding > ( NUMBER0 , RES , KEY_PROVIDER ) ; + FlowPanel emptyWidget = new FlowPanel ( ) ; + Label emptyLabel = new Label ( STRING0 ) ; + emptyLabel . getElement ( ) . getStyle ( ) . setMarginTop ( NUMBER1...
add empty widget
<nb> public class Geometry extends Spatial { SINGLE SINGLE - if ( isGrouped ( ) ) { - groupNode = null ; - startIndex = - NUMBER0 ; + if ( geomClone . isGrouped ( ) ) { + geomClone . groupNode = null ; + geomClone . startIndex = - NUMBER0 ; } geomClone . cachedWorldMat = cachedWorldMat . clone (...
Fix incorrect reset of Geometry members after cloning
<nb> public class OClusterLocal extends OSharedResourceAdaptive implements OCluster { if ( endOffsetData < NUMBER0 ) { endOffsetData = fileSegment . getFilledUpTo ( ) / RECORD_SIZE - NUMBER1 ; - if ( endOffsetData > NUMBER0 ) { + if ( endOffsetData >= NUMBER0 ) { long [ ] fetchPos ; for ( long currentPos ...
Fixed backward compatibility issue in local cluster
<nb> public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput @ consolecommand ( splitInWords = false , description = STRING0 ) public void explain ( @ consoleparameter ( name = STRING1 , description = STRING2 ) String iCommandText ) { - Object result = sqlCommand ( STRING3 , iCommandTex...
fixed bug on EXPLAIN
<nb> public abstract class AbstractWriteInterface implements WriteInterface { while ( iterator . hasNext ( ) ) { MetaDocPart metaDocPart = iterator . next ( ) ; String statement = getDeleteDocPartsStatement ( schemaName , metaDocPart . getIdentifier ( ) , dids ) ; + sqlHelper . executeUpdate ( c , statement ,...
Added delete logging
<nb> public class CherryPicker { String description = STRING0 ; if ( ! successfulCommits . isEmpty ( ) ) { description += STRING1 + StringUtil . pluralize ( STRING2 , successfulCommits . size ( ) ) + STRING3 ; - description = getCommitsDetails ( successfulCommits ) ; + description += getCommitsDetails ( succe...
fix successful part of notification
<nb> public class DependencyBank { CONTROLLERS ( new String [ ] { STRING0 } , new String [ ] { STRING1 , STRING2 } , - new String [ ] { STRING3 } , + new String [ ] { STRING0 , STRING3 } , new String [ ] { } , SINGLE new String [ ] { STRING4 , STRING5 , STRING6 } ) , BOX2DLIGHTS ( new String [ ] { S...
Ensure compatibility with the Android gradle plugin
<nb> public class RuleUpdater implements ServerComponent { } private void updateDebtRemediationFunction ( RuleUpdate update , Context context ) { + Integer subChar = context . rule . getSubCharacteristicId ( ) ; boolean noChar = - ( context . rule . getDefaultSubCharacteristicId ( ) == null && context . rul...
Fix quality flaw
<nb> public abstract class HdmiRecordListener { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT public int getProgrammedInfo ( ) { if ( ! isProgrammed ( ) ) { <nb> public abstract class HdmiRecordListener { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT ...
Fix invalid annotation throw
<nb> public class GetPatternsFromDataMultiClass implements Serializable { for ( Tree child : tree . children ( ) ) { for ( Tree grand : child . children ( ) ) { if ( grand . isLeaf ( ) ) { - System . out . println ( STRING0 + grand . label ( ) + STRING1 + grandstr ) ; ( ( CoreLabel ) grand . label ( ) ) . set...
remove log msg
<nb> public class EclipseClasspathStorageProvider implements ClasspathStorageProvider final EclipseClasspathWriter classpathWriter = new EclipseClasspathWriter ( model ) ; final CachedXmlDocumentSet fileSet = getFileSet ( ) ; - classpathWriter . writeClasspath ( classpathElement , fileSet . read ( EclipseXml . ...
do not read content if file doesn t exist
<nb> package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT public class PsiInvalidElementAccessException extends RuntimeException { - private final PsiElement myElement ; + private final SoftReference < PsiElement > myElementReference ; SINGLE public PsiInvalidElementAccessExcepti...
preventing memory leak
<nb> public class GpsNetInitiatedHandler { + STRING0 + mPopupImmediately + STRING1 + getInEmergency ( ) ) ; - if ( getLocationEnabled ( ) && ! getInEmergency ( ) ) { + if ( ! getLocationEnabled ( ) && ! getInEmergency ( ) ) { SINGLE try { mNetInitiatedListener . sendNiResponse ( notif . notificationId ,
Fix an incorrect behavior that failed AT T privacy test
<nb> public class StbTrueType { static native long initFont ( byte [ ] data , int offset ) ; / * stbtt_fontinfo * info = ( stbtt_fontinfo * ) malloc ( sizeof ( stbtt_fontinfo ) ) ; int result = stbtt_InitFont ( info , ( const unsigned char * ) data , offset ) ; - % jnigen - cleanup % if ( ! result ) { free ...
fixed StbTrueType had jni clean up code in it
<nb> public class NotificationsWebViewActivity extends AuthenticatedWebViewActivity { super . onCreate ( savedInstanceState ) ; mWebView . getSettings ( ) . setJavaScriptEnabled ( true ) ; mWebView . getSettings ( ) . setDisplayZoomControls ( false ) ; + mWebView . getSettings ( ) . setDomStorageEnabled ( true ...
Fixed WP com from not loading in NotificationsWebViewActivity
<nb> public class ZenCodingTemplate extends CustomLiveTemplateBase { @ override public void renderElement ( LookupElementPresentation presentation ) { super . renderElement ( presentation ) ; - presentation . setTailText ( STRING0 , true ) ; + presentation . setTailText ( STRING1 , true ) ; } } ;
prioritize templates with properties that starts with given
<nb> public class LauncherAppsService extends ILauncherApps . Stub { final Intent mainIntent = new Intent ( Intent . ACTION_MAIN , null ) ; mainIntent . addCategory ( Intent . CATEGORY_LAUNCHER ) ; + mainIntent . setPackage ( packageName ) ; long ident = Binder . clearCallingIdentity ( ) ; try { List < Re...
Fix bug with getLauncherActivities ignoring packageName
<nb> public final class CommonTestUtilsTest { } @ test - public void basic ( ) throws Exception { + public void testEqualsBasic ( ) throws Exception { CommonTestUtils . testEquals ( Basic . class ) ; } @ test - public void manyFields ( ) { + public void testEqualsManyFields ( ) { CommonTestUtils...
Improve test names
<nb> public class RoboCursor extends BaseCursor { } @ override - public int getCount ( ) { - return results . length ; - } - - @ override public int getColumnCount ( ) { return results [ NUMBER0 ] . length ; }
Remove duplicate RoboCursor getCount definition
<nb> public class EditPeopleControlSet extends PopupControlSet { } assignedCustom . setText ( email ) ; dontClearAssignedCustom = true ; + refreshDisplayView ( ) ; dialog . dismiss ( ) ; } else { DialogUtilities . okDialog ( activity , activity . getString ( R . string . TEA_contact_error ) , null ) ; <...
Fix bug with choosing contact from quickadd
<nb> public class BubbleFlowView extends HorizontalScrollView { } view . setScaleX ( targetScale ) ; view . setScaleY ( targetScale ) ; + view . invalidate ( ) ; } public int getItemCount ( ) {
Add invalidate hack
<nb> public class MessageList { if ( updateForMe ( account , folder ) ) { - addOrUpdateMessages ( account , folder , messages ) ; + FolderInfoHolder f = mCurrentFolder ; + + SINGLE + if ( f != null ) + { + addOrUpdateMessages ( account , mCurrentFolder , messages ) ; + } } <nb> public clas...
Eliminate a variant of addOrUpdateMessage that was only called once
<nb> public class BenchmarkDerbyR2DBackedTranslator { @ setup ( Level . Invocation ) public void setup ( ) throws Exception { - databaseInterface = new DerbyDatabaseInterface ( tableRefFactory ) ; + databaseInterface = new DerbyDatabaseInterface ( ) ; OfficialDerbyDriver driver = new OfficialDerbyDriver ( )...
Removed tableRefFactory dependency in DerbyDataBaseInterface
<nb> final class ActivityStack { final TaskRecord nextTask = next . task ; final TaskRecord prevTask = prev != null ? prev . task : null ; - if ( prevTask != null && prevTask . mOnTopOfHome && prev . finishing && prev . frontOfTask ) { + if ( prevTask != null && prevTask . stack == this && + prevTask . mOnT...
Prevent home task from being set as ontopofhome
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; public class TouchImageViewActivity extends Activity { - - TouchImageView img ; - COMMENT @ override public void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanc...
Removing onClickListener from example activity
<nb> public class LayoutTransition { } } if ( mAnimateParentHierarchy ) { + Animator parentAnimator = ( changeReason == APPEARING ) ? + defaultChangeIn : defaultChangeOut ; ViewGroup tempParent = parent ; while ( tempParent != null ) { ViewParent parentParent = tempParent . getParent ( ) ; if ( parent...
Fix behavior of custom animations for LayoutTransition
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT public class ToolsJarRule implements MethodRule { public static final String JAVA_HOME_PROPERTY = STRING0 ; public static final String TOOLS_JAR_LOCATION = STRING1 ; - public static final St...
Added documentation to the tools jar test rule
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JerseyAutoConfiguration implements WebApplicationInitializer { } private void addInitParameters ( RegistrationBean registration ) { - regi...
Clarify init params in Jersey autoconfig only servlet and filter
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public class TestServlet extends HttpServlet { out . println ( STRING0 ) ; out . println ( STRING1 ) ; Client client = ClientBuilder . newClient ( ) ; - WebTarget target = c...
Removed GlassFish specific dependencies
<nb> public class ImporterDOT implements FileImporter , LongTask { } else if ( streamTokenizer . ttype == STRING0 ) { NodeDraft nodeDraft = getOrCreateNode ( nodeId ) ; nodeAttributes ( streamTokenizer , nodeDraft ) ; + } else { + getOrCreateNode ( nodeId ) ; + streamTokenizer . pushBack ( ) ; } } }
The original parser will ignore single node which would make the parser confused when parsing the rest of the file
<nb> public class ModelDescriptionValidator { } if ( ! typeNode . hasDefined ( DESCRIPTION ) ) { - errors . add ( new ValidationFailure ( STRING0 + type + STRING1 , address ) ) ; + errors . add ( new ValidationFailure ( STRING0 + type + STRING2 + typeNode . toString ( ) + STRING1 , address ) ) ; } ModelNo...
show the ModelNode on validation errors
<nb> abstract class ActivityTransitionCoordinator extends ResultReceiver { Matrix tempMatrix = new Matrix ( ) ; for ( String name : names ) { Bundle sharedElementBundle = state . getBundle ( name ) ; + View snapshot = null ; if ( sharedElementBundle != null ) { Parcelable parcelable = sharedElementBundle . ...
Keep snapshot order matching the shared elements
<nb> public abstract class BugReport { SINGLE SINGLE } - System . exit ( exitCode ) ; + SINGLE + SINGLE + SINGLE + SINGLE + Runtime . getRuntime ( ) . halt ( exitCode ) ; } private static void printThrowableTo ( OutErr outErr , Throwable e ) {
Fix shutdown deadlock when a shutdown hook crashes halt instead of exit
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; <nb> public final class JsProgram extends SourceInfoAwareJsNode { @ notnull @ override public JsProgram deepCopy ( ) { - throw new NotImplementedException ( ) ; + throw new ...
use standard UnsupportedOperationException instead of NotImplementedException from internal packages
<nb> public abstract class CommonHystrixCommandTests < C extends AbstractTestHystrixCom @ override public void call ( C command ) { TestableExecutionHook hook = command . getBuilder ( ) . executionHook ; - SINGLE - SINGLE - SINGLE + assertTrue ( hook . commandEmissionsMatch ( NUMBER0 , NUMBER1 , NUMBER0 )...
Adding back accidentally removed assertions
<nb> public class OrcRawRecordMerger implements AcidInputFormat . RawReader < OrcStruct > { @ override public void close ( ) throws IOException { + if ( primary != null ) { + primary . recordReader . close ( ) ; + } for ( ReaderPair pair : readers . values ( ) ) { pair . recordReader . close ( ) ; }
OrcRawRecordMerger does not close primary reader if not fully consumed Sudheesh Katkam via Prasanth J
<nb> public class CompletionPanel { float h = itemHeight * ( itemCount ) ; + if ( itemCount >= NUMBER0 ) + h += itemHeight * FLOAT0 ; SINGLE + return Math . min ( maxHeight , ( int ) h ) ; SINGLE }
Fix unneeded vertical scroll bar
<nb> public class DBBaseTest extends TestCase { @ test ( groups = { STRING0 } ) public void testCreateCollection ( ) { + _db . getCollection ( STRING1 ) . drop ( ) ; + _db . getCollection ( STRING2 ) . drop ( ) ; + _db . getCollection ( STRING3 ) . drop ( ) ; + _db . getCollection ( STRING4 ) . drop ( ) ;...
make tests pass
<nb> public class CaptureRegionFrame { final CirclePanel movePanel = new CirclePanel ( ) ; movePanel . setPreferredSize ( new Dimension ( MOVE_BAR_SIZE , MOVE_BAR_SIZE ) ) ; movePanel . setLayout ( new GridBagLayout ( ) ) ; - movePanel . setOpaque ( false ) ; BufferedImage moveCursorImage = null ; try { ...
added default background color to the move icon
<nb> public interface MapCodecTemplate { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface MapCodecTemplate { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT ...
Added javadoc for reflecting this change on the Map getAll and putAll requests
<nb> public class MasterParser extends ServiceParser { . setHttpEndpoint ( httpAddress ) . setKafkaBrokers ( getKafkaBrokers ( ) ) . setStateDirectory ( getStateDirectory ( ) ) - . setAgentReapingTimeout ( options . getInt ( agentReapingTimeout . getDest ( ) ) ) ; + . setAgentReapingTimeout ( options . getLon...
Fix CLI parsing error
<nb> abstract class PipelineBase extends Queable implements getClient ( key ) . type ( key ) ; return getResponse ( BuilderFactory . STRING ) ; } + + public Response < Long > zadd ( String key , double score , String member ) { + getClient ( key ) . zadd ( key , score , member ) ; + return getResponse ( B...
fix recover zadd with one score memeber
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ToolbarActionBar extends ActionBar { public boolean onKeyShortcut ( int keyCode , KeyEvent event ) { Menu menu = mDecorTool...
Fix alpha keyboard shortcuts with ToolbarActionBar
<nb> package NAMESPACE ; - enum Architecture { x86 , x64 ; + enum Architecture { x86 , x64 , ppc64le ; public static Architecture guess ( ) { - return System . getProperty ( STRING0 ) . contains ( STRING1 ) ? x64 : x86 ; + String arch = System . getProperty ( STRING0 ) ; + if ( arch . equals ( STRING2 )...
Add ppc64le support
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + @ path ( STRING0 ) public cla...
Removing unnecessary annotations and imports
<nb> import NAMESPACE ; COMMENT public final class GenericMultipleBarcodeReader implements MultipleBarcodeReader { - private static final int MIN_DIMENSION_TO_RECUR = NUMBER0 ; + private static final int MIN_DIMENSION_TO_RECUR = NUMBER1 ; private final Reader delegate ;
Turn down depth of recursion
<nb> public class HunspellTokenFilterFactory extends AbstractTokenFilterFactory { throw new ElasticSearchIllegalArgumentException ( String . format ( STRING0 , locale ) ) ; } - dedup = settings . getAsBoolean ( STRING1 , false ) ; + dedup = settings . getAsBoolean ( STRING1 , true ) ; } @ override
Changed hunspell token filter factory to use dedup true by default
<nb> public class TaskPropertiesResource extends SecuredResource { propertyJSON . put ( STRING0 , property . getId ( ) ) ; propertyJSON . put ( STRING1 , property . getName ( ) ) ; propertyJSON . put ( STRING2 , property . getValue ( ) ) ; - propertyJSON . put ( STRING3 , property . getType ( ) . getName ( ) ) ...
Fixed possible NPE when now type is defined on form property
<nb> public class JavaModule implements NamedElement . WithOptionalName { @ override public boolean isNamed ( ) { - return false ; + return DISPATCHER . isNamed ( module ) ; } @ override public String getActualName ( ) { - return null ; + return DISPATCHER . getName ( module ) ; } public Obj...
Added dispatcher invocations
<nb> public class ODocument extends ORecordAbstract implements Iterable < Entry < String , private void fetchSchemaIfCan ( ) { if ( _schema == null ) { ODatabaseDocumentInternal db = ODatabaseRecordThreadLocal . INSTANCE . getIfDefined ( ) ; - if ( db != null ) { + if ( db != null && ! db . isClosed ( ) ) { ...
add check on document schema load for open database
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; COMMENT COMMENT <nb> public abstract class Operation implements DataSerializable { sb . append ( STRING0 ) . append ( partitionId ) ; sb...
Operation toString has improved date toString for invocationTime
<nb> public class DownloadedRegionsLayer extends OsmandMapLayer { @ override public void onDraw ( Canvas canvas , RotatedTileBox tileBox , DrawSettings nightMode ) { final int zoom = tileBox . getZoom ( ) ; + if ( downloadBtn . getVisibility ( ) == View . VISIBLE ) { + downloadBtn . setVisibility ( View . GON...
Fix button download
<nb> public class WindowLayersController { SINGLE layer = assignAndIncreaseLayerIfNeeded ( mReplacingWindow , layer ) ; layer = assignAndIncreaseLayerIfNeeded ( mPinnedWindow , layer ) ; + final WindowState inputMethodTarget = mService . mInputMethodTarget ; + SINGLE + SINGLE + layer = Math . max ( layer ...
Always elevate input method above the input target
<nb> public class Itinerary { public Date endTime = null ; COMMENT - COMMENT + COMMENT COMMENT public long walkTime = NUMBER0 ; COMMENT - COMMENT + COMMENT COMMENT public long transitTime = NUMBER0 ; COMMENT - COMMENT + COMMENT COMMENT public long waitingTime = NUMBER0 ;
update API docs to match reality
<nb> public abstract class AbstractGradleExecuter implements GradleExecuter { if ( ! deprecationChecksOn ) { executer . withDeprecationChecksDisabled ( ) ; } + if ( ! eagerClassLoaderCreationChecksOn ) { + executer . withEagerClassLoaderCreationCheckDisabled ( ) ; + } if ( ! stackTraceChecksOn ) { execu...
Fix handling of eager classloader creation check when copying executers
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Improved documentation of LifeCycleAwareChannelHandler
<nb> public class TestRedisDistributedHash { } + @ override + public void testGroupingSetMixedExpressionAndColumn ( ) + throws Exception + { + } + + @ override + public void testGroupingSetMixedExpressionAndOrdinal ( ) + throws Exception + { + } + SINGLE SINGLE SINGLE
Remove grouping set test from TestRedisDistributed
<nb> import NAMESPACE ; COMMENT public class MinaUdpUsingTemplateTest extends ContextTestSupport { private static final transient Log LOG = LogFactory . getLog ( MinaUdpUsingTemplateTest . class ) ; - + private int messageCount = NUMBER0 ; public void testMinaRoute ( ) throws Exception { <nb> public c...
Fixed the CI s unit test error
<nb> public abstract class JCVideoPlayer extends FrameLayout implements View . OnClickL protected static final int CURRENT_STATE_PAUSE = NUMBER0 ; protected static final int CURRENT_STATE_AUTO_COMPLETE = NUMBER1 ; protected static final int CURRENT_STATE_ERROR = NUMBER2 ; - protected static int BACKUP_PLAYING_B...
fix samsung can not play bug
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class StandardStream implements IStream } @ override - public Session getSession ( ) + public ISession getSession ( ) { ...
Made getSession return ISession
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractFramedChannel < C extends AbstractFramedChannel < C , R SINGLE channel . markBroken ( ) ; } - for ( Ab...
Fix concurrent modification exception
<nb> import NAMESPACE ; public class TravelingSalesmanPathService implements PathService { private static final Logger LOG = LoggerFactory . getLogger ( TravelingSalesmanPathService . class ) ; - private static final int MAX_INTERMEDIATES = NUMBER0 ; @ autowired public GraphService graphService ; SINGLE
delete unused private static variable
<nb> public abstract class Window { public static final int FEATURE_CONTEXT_MENU = NUMBER0 ; COMMENT public static final int FEATURE_CUSTOM_TITLE = NUMBER1 ; - COMMENT + COMMENT All FLOAT0 graphics will be handled by OpenGL ES . - Private for now , until it is better tested ( not shipping in FLOAT1 ) + ...
make FEATURE_OPENGL public but hidden for now so we can test with it
<nb> public final class SqlUtils { aptUtils . getMessager ( ) . printMessage ( Diagnostic . Kind . WARNING , type + STRING0 + identifier + STRING1 + STRING2 + STRING3 - + STRING4 , element ) ; + + STRING5 , element ) ; } return true ; }
Update the warning about non alphanumeric characters to indicate we might consider it a warning in future versions
<nb> public class PdePreprocessor { SINGLE SINGLE + SINGLE filter = new TokenStreamCopyingHiddenTokenFilter ( lexer ) ; filter . hide ( PdeRecognizer . SL_COMMENT ) ; filter . hide ( PdeRecognizer . ML_COMMENT ) ; <nb> public class PdePreprocessor { SINGLE SINGLE - parser . compilationUnit ( ) ;...
Checkpointing preprocessor work
<nb> public abstract class GroovyElementVisitor { } public void visitBreakStatement ( GrBreakStatement breakStatement ) { - visitStatement ( breakStatement ) ; + visitFlowInterruptStatement ( breakStatement ) ; } public void visitContinueStatement ( GrContinueStatement continueStatement ) { - visitSta...
add visitFlowInterruptStatement to GroovyElementVisitor
<nb> public class RequestFacade implements HttpServletRequest { public void login ( String username , String password ) throws ServletException { - login ( username , password ) ; + request . login ( username , password ) ; } public void logout ( ) throws ServletException {
Fix infinite loop
<nb> public class AnnotatorPool { if ( ! oldSig . equals ( newSig ) ) { SINGLE SINGLE - System . err . println ( STRING0 + name + STRING1 - + oldSig + STRING2 + newSig + STRING3 ) ; + SINGLE + SINGLE this . factories . put ( name , factory ) ; newAnnotator = true ;
Turn off a debug message
<nb> public class GitSimpleHandler extends GitTextHandler { COMMENT protected void processTerminated ( final int exitCode ) { if ( myVcs == null ) { return ; } - if ( myStdoutLine . length ( ) != NUMBER0 ) { + if ( ! isStdoutSuppressed ( ) && myStdoutLine . length ( ) != NUMBER0 ) { myVcs . showMessages ( m...
revert git simple handler modification