diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class ElevationProfileSegment implements Serializable { private PackedCoordinateSequence elevationProfile ; - private double length ; - private double slopeSpeedEffectiveLength ; private double bicycleSafetyEffectiveLength ; <nb> public class ElevationProfileSegment implements Serializable...
Remove unused length from ElevationProfileSegment
<nb> public class TextComponentSelectionModel implements SelectionModel { } public void setSelection ( final int startOffset , final int endOffset ) { - myTextComponent . setCaretPosition ( startOffset ) ; - myTextComponent . moveCaretPosition ( endOffset ) ; + if ( myTextComponent . getCaretPosition ( ) ==...
improve ctrl w behavior
<nb> public class UploadServletRequest extends HttpServletRequestWrapper { GetterUtil . get ( SystemProperties . get ( UploadServletRequest . class . getName ( ) + STRING0 ) , - ( String ) SystemProperties . get ( STRING1 ) ) ) ; + SystemProperties . get ( STRING1 ) ) ) ; public UploadServletRequest ( Htt...
Remove unncecessary class cast
<nb> - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class NamedEntityObjectIdentity implements AclObjectIdentity { throws IllegalAccessException , InvocationTargetException { Assert . notNull...
Support Hibernate CGLIB modified domain objects
<nb> public abstract class AbstractTestQueries assertQuery ( STRING0 + STRING1 ) ; - SINGLE - for ( String joinType : ImmutableList . of ( STRING2 , STRING3 ) ) { - assertQuery ( STRING4 + - STRING5 + joinType + STRING6 + - STRING7 + - STRING8 ) ; - } + SINGLE + assertQuery ( STRING9 + + STRIN...
Move test for non correlated EXISTS to JOIN conditition
<nb> class JavaPredefinedConfigurations { SINGLE createSearchTemplateInfo ( SSRBundle . message ( STRING0 ) , STRING1 , EXPRESSION_TYPE ) , createSearchTemplateInfo ( SSRBundle . message ( STRING2 ) , STRING3 , EXPRESSION_TYPE ) , - createSearchTemplateInfo ( SSRBundle . message ( STRING4 ) , STRING5 , EXPRESSI...
fix lambdas existing template
<nb> public class ZWaveMultiInstanceCommandClass extends ZWaveCommandClass { ZWaveEndpoint endpoint = this . endpoints . get ( endpointId ) ; if ( endpoint == null ) { - logger . error ( STRING0 , endpoint , this . getNode ( ) . getNodeId ( ) ) ; + logger . error ( STRING0 , endpointId , this . getNode ( ) . ...
Improve error logging when endpoint not found show endpoint id
<nb> public class RetryingMetaStoreClient implements InvocationHandler { ( e . getCause ( ) instanceof TTransportException ) ) { caughtException = ( TException ) e . getCause ( ) ; } else if ( ( e . getCause ( ) instanceof MetaException ) && - e . getCause ( ) . getMessage ( ) . matches ( STRING0 ) ) { + e . ...
RetryingMetaStoreClient does not retry wrapped TTransportExceptions Chaoyu Tang via Szehon
<nb> public class InstallerFragment extends Fragment { @ override public final void onClick ( final View v ) { - dlgProgress . setMessage ( mProgressDlgText ) ; - dlgProgress . show ( ) ; + if ( mProgressDlgText != null ) { + dlgProgress . setMessage ( mProgressDlgText ) ; + dlgProgress . show ( ) ; +...
Fix empty progress dialog shouldn t show up at all
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class AutoDiscoverableClientTest { COMMENT COMMENT @ test + @ ignore ( STRING0 ) public void testAutoDiscoverableClosing ( ) { ...
Ignoring intermittently failing tests
<nb> public class JazzyViewPager extends ViewPager { private View findViewFromObject ( int position ) { Object o = mObjs . get ( Integer . valueOf ( position ) ) ; + if ( o == null ) { + return null ; + } PagerAdapter a = getAdapter ( ) ; View v ; for ( int i = NUMBER0 ; i < getChildCount ( ) ; i ++ )...
added null check
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JavaSafeDeleteProcessor extends SafeDeleteProcessorDelegateBase { PsiElement element = reference . getElement ( ) ; if ( el...
disable deep parameter delete for super calls only
<nb> import NAMESPACE ; COMMENT final class InactivityTimer { - private static final int INACTIVITY_DELAY_MINUTES = NUMBER0 ; + private static final int INACTIVITY_DELAY_SECONDS = NUMBER1 * NUMBER2 ; private final ScheduledExecutorService inactivityTimer = Executors . newSingleThreadScheduledExecutor ( ...
Weird Android doesn t have TimeUnit MINUTES
<nb> public class TachyonMaster { mIsServing = true ; SINGLE - mWebServer = new MasterUIWebServer ( ServiceType . MASTER_WEB , mMasterAddress , this , mTachyonConf ) ; + mWebServer = new MasterUIWebServer ( ServiceType . MASTER_WEB , NetworkAddressUtils . getBindAddress ( + ServiceType . MASTER_WEB , mTachy...
Fix web server address
<nb> public abstract class JSONLexerBase implements JSONLexer , Closeable { int offset = NUMBER0 ; char chLocal = charAt ( bp + ( offset ++ ) ) ; - + + final boolean negative = chLocal == STRING0 ; + if ( negative ) { + chLocal = charAt ( bp + ( offset ++ ) ) ; + } + long value ; if ( chLocal >=...
bug fixed ArrayMapping negative long value
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TestCommand extends AbstractCommandRunner < TestCommandOptions > { } SINGLE + ConcurrencyLimit concurrencyLimit = new C...
Restore behaviour of serialising tests when debug flag is seen
<nb> public class DBCursor implements Iterator < DBObject > , Iterable < DBObject > { COMMENT COMMENT public ServerAddress getServerAddress ( ) { - if ( _it != null && _it instanceof DBApiLayer . Result ) - return ( ( DBApiLayer . Result ) _it ) . getServerAddress ( ) ; - _check ( ) ; if ( _it != null...
simplified getServerAddress method
<nb> public class JSFrameworkSupportProvider extends FrameworkSupportInModuleProvider } @ override + public boolean isOnlyLibraryAdded ( ) { + return true ; + } + + @ override public void addSupport ( @ notnull Module module , @ notnull ModifiableRootModel rootModel ,
Remove Set up library later from dialog
<nb> public final class WebSocketReader { return type ; } - @ override public long contentLength ( ) throws IOException { + @ override public long contentLength ( ) { return - NUMBER0 ; } <nb> public abstract class ResponseBody implements Closeable { COMMENT COMMENT COMMENT - public abstract l...
Querying the response content length never does I O
<nb> public class SignalToneUtil { static public final int IS95_CONST_IR_ALERT_MED = NUMBER0 ; static public final int IS95_CONST_IR_ALERT_HIGH = NUMBER1 ; static public final int IS95_CONST_IR_ALERT_LOW = NUMBER2 ; - static public final int TAPIAMSSCDMA_SIGNAL_PITCH_UNKNOWN = NUMBER3 ; + + SINGLE + SINGL...
Fix WPS Queued pip tone not working issue
<nb> public final class Intersector { split [ offset + i ] = a + t * ( b - a ) ; } } - + COMMENT public static void main ( String [ ] args ) { Plane plane = new Plane ( new Vector3 ( NUMBER0 , NUMBER1 , NUMBER1 ) , NUMBER1 ) ; SplitTriangle split = new SplitTriangle ( NUMBER2 ) ; <nb> public final cla...
Removed main method in Intersector
<nb> public class GridView extends AbsListView { boolean handled = false ; int action = event . getAction ( ) ; if ( KeyEvent . isConfirmKey ( keyCode ) - && event . hasNoModifiers ( ) && action == KeyEvent . ACTION_UP ) { + && event . hasNoModifiers ( ) && action != KeyEvent . ACTION_UP ) { handled = resur...
DO NOT MERGE Fix conditional when checking for confirm key
<nb> public class AetherGrapeEngine implements GrapeEngine { builder . setProxy ( this . proxySelector . getProxy ( repository ) ) ; repository = builder . build ( ) ; } - this . repositories . add ( repository ) ; + this . repositories . add ( NUMBER0 , repository ) ; } @ override <nb> public class G...
Fix grab test
<nb> public class WallpaperManager { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class WallpaperManager { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix constant name in WallpaperManager javadoc
<nb> public class FeedInfoActivity extends ActionBarActivity { menu . findItem ( R . id . support_item ) . setVisible ( feed != null && feed . getPaymentLink ( ) != null ) ; menu . findItem ( R . id . share_link_item ) . setVisible ( feed != null && feed . getLink ( ) != null ) ; + menu . findItem ( R . id . vi...
Fixed NullPointerException in FeedInfoActivity
<nb> public class JobServiceContext extends IJobCallback . Stub implements ServiceConne private static final int defaultMaxActiveJobsPerService = ActivityManager . isLowRamDeviceStatic ( ) ? NUMBER0 : NUMBER1 ; COMMENT - private static final long EXECUTING_TIMESLICE_MILLIS = NUMBER2 * NUMBER3 ; + private stat...
Give scheduled jobs a more substantial timeslice
<nb> public class MainActivity extends QKActivity implements SlidingMenu . SlidingMenuL public void onClosed ( ) { SINGLE SINGLE - if ( mContent != null ) mContent . onContentOpened ( ) ; + if ( mContent != null && ( ( Fragment ) mContent ) . isAdded ( ) ) mContent . onContentOpened ( ) ; } @ override
Fix notification click crash
<nb> public class YamlConfigurationLoader implements ConfigurationLoader return url ; } + @ override public Config loadConfig ( ) throws ConfigurationException { return loadConfig ( getStorageConfigURL ( ) ) ; <nb> public class YamlConfigurationLoader implements ConfigurationLoader public Config loa...
remove dead local
<nb> public interface ApplicationConfig { COMMENT COMMENT String HANDLER_MAPPING_REGEX = ApplicationConfig . class . getPackage ( ) . getName ( ) + STRING0 ; + String ANNOTATION_PROCESSOR = AnnotationProcessor . class . getName ( ) ; } <nb> public class AtmosphereFramework implements ServletContextProvider ...
Add support for web xml AnnotationProcessor installation
<nb> public final class LockInfo this . readCount = readCount ; this . writeCount = writeCount ; this . waitingThreads = new ArrayList < WaitingThread > ( ) ; - for ( LockingTransaction tx : this . lockingTxs = locking . toArray ( new LockingTransaction [ locking . size ( ) ] ) ) + this . lockingTxs = locking...
Moved assignment to a separate line to make Eclipse IDE happy
<nb> public abstract class BaseStatusBar extends SystemUI implements } protected void addNotificationViews ( NotificationData . Entry entry ) { + if ( entry == null ) { + return ; + } SINGLE int pos = mNotificationData . add ( entry ) ; if ( DEBUG ) {
Avoid SystemUI crash due to NPE
<nb> public class OperatorFactory { } private String firstOrNull ( final String [ ] names ) { - return names . length == NUMBER0 ? null : names [ NUMBER0 ] ; + return names == null || names . length == NUMBER0 ? null : names [ NUMBER0 ] ; } }
Fixed NPE in OperatorFactory
<nb> public class SourceFormatter { newContent = StringUtil . replace ( newContent , new String [ ] { - STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , + STRING0 , STRING1 , STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 } , new String [ ] {
SourceFormatter accidentally changed logic on a previous source formatting commit
<nb> public abstract class ImmutableList < E > extends ImmutableCollection < E > } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class Ordering < T > implements Comparator < T > { COMMENT public < E extends T > ImmutableList < E > immutableSortedCopy ( Iterable < E > i...
Optimize Ordering immutableSortedCopy
<nb> public class BoundFieldModuleTest extends TestCase { try { injector . getInstance ( Integer . class ) ; fail ( ) ; - } catch ( ProvisionException expected ) { + } catch ( ConfigurationException expected ) { SINGLE } }
Catch ConfigurationException not ProvisionException
<nb> public class PluginManager { if ( Files . exists ( toLocation ) ) { IOUtils . rm ( toLocation ) ; } - Files . move ( binFile , toLocation , StandardCopyOption . ATOMIC_MOVE ) ; + Files . move ( binFile , toLocation ) ; if ( Files . getFileStore ( toLocation ) . supportsFileAttributeView ( PosixFileAttr...
PLUGIN Don t use atomic move when installing plugin
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MapReduceIndex < Key , Value , Input > implements UpdatableIndex < Key , Val } catch ( StorageException | ProcessCanceledException ex...
avoid deadlock in tests when updateWithMap encountered an exception
<nb> public class DerbyJPAEclipseLinkTest extends AbstractJPATest { SINGLE } + @ override + public void In5 ( ) { + SINGLE + } + + @ override + public void In7 ( ) { + SINGLE + } } <nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NA...
fixed JPA tests
<nb> public interface PublishingExtension { RepositoryHandler getRepositories ( ) ; - void repositories ( Action < RepositoryHandler > configure ) ; + void repositories ( Action < ? super RepositoryHandler > configure ) ; PublicationContainer getPublications ( ) ; - void publications ( Action < Public...
Fix Action generic signatures
<nb> public class SpiderHtmlFormParser extends SpiderParser { if ( base . getAttributeValue ( STRING0 ) != null ) baseURL = base . getAttributeValue ( STRING0 ) ; } - + SINGLE List < Element > forms = source . getAllElements ( HTMLElementName . FORM ) ; <nb> public class SpiderHtmlFormParser extends S...
Changed Spider behaviour to use request URI as action when it is missing
<nb> public class SMTRunnerConsoleTest extends BaseSMTRunnerTestCase { STRING0 + STRING1 + STRING2 + + STRING3 + STRING4 + STRING5 + STRING6 + <nb> public class SMTRunnerConsoleTest extends BaseSMTRunnerTestCase { STRING7 + STRING1 + STRING2 + + STRING3 + STRING4 + STRING8 , SINGLE
tweak test data
<nb> public abstract class BaseTemplate implements Writable { run ( ) ; return out ; } finally { - this . out . flush ( ) ; + if ( this . out != null ) { + this . out . flush ( ) ; + } this . out = null ; } }
Add null check to avoid errors to be swallowed
<nb> public final class InternalLifecycleIntegration extends Fragment { History defaultHistory ; Flow . Dispatcher dispatcher ; Intent intent ; + private boolean dispatcherSet ; public InternalLifecycleIntegration ( ) { super ( ) ; <nb> public final class InternalLifecycleIntegration extends Fragment { ...
set dispatcher when Activity created or resumed
<nb> public class NullHandlingTest { @ test public void last_token_defaults_to_null ( ) { - - SINGLE - - Configuration configuration = Configuration . builder ( ) . options ( Option . DEFAULT_PATH_LEAF_TO_NULL ) . build ( ) ; assertNull ( JsonPath . parse ( DOCUMENT , configuration ) . read ( STRING...
Removed out dated FIXME marker
<nb> public class DrawerLayoutActivity extends AppCompatActivity { } } ; - mDrawerLayout . setDrawerListener ( mDrawerToggle ) ; + mDrawerLayout . addDrawerListener ( mDrawerToggle ) ; SINGLE SINGLE
Switch DrawerLayout to new listener API
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FilterAdapter e...
Restore icons in widget filter picker
<nb> final class WindowState implements WindowManagerPolicy . WindowState { SINGLE final float w = frame . width ( ) ; final float h = frame . height ( ) ; - tmpMatrix . setScale ( NUMBER0 + NUMBER1 / w , NUMBER0 + NUMBER1 / h , w / NUMBER1 , h / NUMBER1 ) ; + if ( w >= NUMBER0 && h >= NUMBER0 ) { + tmpMatr...
Fix a hang in SF caused by invalid transform matrix from the WM
<nb> public class OTPApplication extends Application { static { SINGLE SLF4JBridgeHandler . removeHandlersForRootLogger ( ) ; - SINGLE + SINGLE SLF4JBridgeHandler . install ( ) ; } + COMMENT public final OTPServer server ; + + COMMENT private final boolean secure ; COMMENT <nb> public cl...
add a few comments
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MessageList extends K9ListActivity implements OnItemClickListe...
Fix a bug pull to refresh exposed in our swipe to select code
<nb> public class SimplifiedPathServiceImpl implements PathService { LOG . warn ( STRING0 ) ; return null ; } - spt . getPaths ( ) . get ( NUMBER0 ) . dump ( ) ; + SINGLE return spt . getPaths ( ) ; COMMENT
spew less output
<nb> public class Solo { return viewFetcher . getView ( EditText . class , text ) ; } - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - - public int getCurrenButtonsCount ( ) { - int number = viewFetcher . getCurrentViews ( Button . class ) . size ( ) ; ...
Removed the deprecated getCurrentButtonsCount
<nb> public abstract class AbstractLiquibaseMojo extends AbstractMojo { dbPassword , driver , defaultSchemaName , - databaseClass ) ; + databaseClass , + null ) ; SINGLE liquibase = createLiquibase ( getFileOpener ( artifactClassLoader ) , database ) ; getLog ( ) . debug ( STRING0 + String . valueOf (...
Fixing broken build new version of CommandLineUtils createDatabaseObject was not being called properly in some locations
<nb> public class AdaptedConnection extends AbstractConsumerConnection { } protected < T > T doGetModel ( Class < T > type , ConsumerOperationParameters operationParameters ) { - return type . cast ( getDelegate ( ) . getModel ( type . asSubclass ( ProjectVersion3 . class ) , operationParameters ) ) ; + retur...
Removed the cast for now turns out not every model implements the protocol interfaces in every version
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + SINGLE public interface ClusterPeer { COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + SINGLE @ singleton public class JGroupsClusterPeer implements ClusterPeer { <nb> THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBIL...
Adding a few TODOs
<nb> public class SSTableExportTest { return bytesToHex ( ByteBufferUtil . bytes ( str ) ) ; } - + @ test public void testEnumeratekeys ( ) throws IOException { <nb> public class SSTableExportTest char [ ] buf = new char [ ( int ) temp . length ( ) ] ; file . read ( buf ) ; String output = new S...
Fix broken JSON object comparison in test
<nb> class DelayedStream implements ClientStream { private volatile ClientStream realStream ; @ guardedby ( STRING0 ) - private Compressor compressor ; - - @ guardedby ( STRING0 ) private Iterable < String > compressionMessageEncodings ; - SINGLE - @ guardedby ( STRING0 ) - private Object decompress...
Removed unsused variables
<nb> public class EditPostActivity extends SherlockFragmentActivity implements OnClic } else { mContentEditText . setMovementMethod ( ArrowKeyMovementMethod . getInstance ( ) ) ; - mContentEditText . setSelection ( mContentEditText . getSelectionStart ( ) ) ; + int selectionStart = mContentEditText . getSelec...
Also set text selection end if it is valid
<nb> public class DumpModelAsXmlPlaceholdersTest extends SpringTestSupport { assertEquals ( STRING0 , context . getRoutes ( ) . get ( NUMBER0 ) . getId ( ) ) ; String xml = ModelHelper . dumpModelAsXml ( context , context . getRouteDefinition ( STRING0 ) ) ; assertNotNull ( xml ) ; - System . out . println ( xm...
Removed system out
<nb> public class ExternalSystemAutoImporter implements BulkFileListener , DocumentLis entries ) ; final MessageBus messageBus = project . getMessageBus ( ) ; - messageBus . connect ( project ) . subscribe ( VirtualFileManager . VFS_CHANGES , autoImporter ) ; + messageBus . connect ( ) . subscribe ( VirtualFi...
Simplify retrieving messageBus
<nb> public class ComponentModelBasePlugin implements Plugin < ProjectInternal > { return new DefaultLanguageTransformContainer ( ) ; } - SINGLE - @ mutate - void closeComponentsForBinaries ( ModelMap < Task > tasks , ComponentSpecContainer components ) { - } - SINGLE SINGLE @ finalize
Removed empty rule that is not required
<nb> public final class Calendar { public interface CalendarsColumns { COMMENT + COMMENT + COMMENT + public static final String SOURCE_ID = STRING0 ; + + COMMENT COMMENT COMMENT COMMENT <nb> public final class Calendar { COMMENT COMMENT public static final String SYNC_EVENTS = STRING1 ; ...
add new columns
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class ActivityChooserView extends ViewGroup implements ActivityChooserMod getListPopupWindow ( ) . dismiss ( ) ; ViewTreeObserver viewTr...
Removing unused imports and swiching off deprecated APIs
<nb> public class ToolsImpl implements Tools { } } - for ( ScopeToolState state : getTools ( ) ) { - if ( state . getScope ( project ) == null ) { - return state . getTool ( ) ; - } - } } return myDefaultState . getTool ( ) ; }
completely ignore currently unresolved scopes
<nb> public abstract class ExecutionContext implements Closeable { return ImmutableExecutionContext . copyOf ( this ) . withConsole ( console ) . withProcessExecutor ( new ProcessExecutor ( console ) ) - . withClassLoaderCache ( getClassLoaderCache ( ) . addRef ( ) ) ; + . withClassLoaderCache ( getClassLoade...
Do not share the WorkerProcesses map when duplicating an ExecutionContext
<nb> public class CaseRule extends GermanRule { exceptions . add ( STRING0 ) ; exceptions . add ( STRING1 ) ; exceptions . add ( STRING2 ) ; + exceptions . add ( STRING3 ) ; exceptions . add ( STRING4 ) ; exceptions . add ( STRING5 ) ; exceptions . add ( STRING6 ) ;
de add exception to avoid false alarm
<nb> public class MDTintHelper { } } - public static void setTint ( SeekBar seekBar , int color ) { - ColorStateList s1 = ColorStateList . valueOf ( color ) ; - if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) { - seekBar . setThumbTintList ( s1 ) ; - seekBar . setProgressTintList ( ...
Removed SeekBar tint method
<nb> import NAMESPACE ; COMMENT COMMENT public class TaskServiceTest extends ActivitiInternalTestCase { - - public void testMustFail ( ) { - assertTrue ( false ) ; - } public void testSaveTaskUpdate ( ) { Task task = taskService . newTask ( ) ;
Fix failing test
<nb> public final class MenuAssert extends AbstractAssert < MenuAssert , Menu > { public MenuAssert hasItem ( int id ) { isNotNull ( ) ; assertThat ( actual . findItem ( id ) ) SINGLE - . overridingErrorMessage ( STRING0 ) SINGLE + . overridingErrorMessage ( STRING0 , id ) SINGLE . isNotNull ( ) ; return ...
Change MenuAssert failure messages to include the menu id or index
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public interface RosterStore { COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT - public Collection < RosterPacket . Item > getEntries ( ) ;...
Make RosterStore getEntries return a List
<nb> public class NotNullInstrumentingBuilder extends ModuleLevelBuilder { final ProjectDescriptor pd = context . getProjectDescriptor ( ) ; final boolean addNotNullAssertions = JpsJavaExtensionService . getInstance ( ) . getOrCreateCompilerConfiguration ( pd . getProject ( ) ) . isAddNotNullAssertions ( ) ; - ...
do not show progress messages when there is nothing to do
<nb> public class RoutingRequest implements Cloneable , Serializable { COMMENT public boolean onlyTransitTrips = false ; - private StreetEdge splittedEdge = null ; + COMMENT + COMMENT + COMMENT + COMMENT + private StreetEdge splitEdge = null ; COMMENT <nb> public class RoutingRequest implement...
Renamed splittedEdge to splitEdge
<nb> public final class Utils int aTabWidth ) { int len = NUMBER0 ; - final char [ ] chars = aString . toCharArray ( ) ; for ( int idx = NUMBER0 ; idx < aToIdx ; idx ++ ) { - if ( chars [ idx ] == STRING0 ) { + if ( aString . charAt ( idx ) == STRING0 ) { len = ( len / aTabWidth + NUMBER1 ) * aTabWidth ...
removing unnecessary char copying to reduce GC pressure
<nb> public class AceEditorIdleCommands private static boolean isStandaloneMarkdownLink ( String line ) { - return line . matches ( STRING0 ) ; + return line . matches ( STRING1 ) ; } private static boolean isImageHref ( String href )
allow attributes following image links for image preview
<nb> public class SessionCountChangedEvent extends GwtEvent < SessionCountChangedEvent . public SessionCountChangedEvent ( Data data ) { - data_ = data ; + count_ = data . getCount ( ) ; + } + + public SessionCountChangedEvent ( int count ) + { + count_ = count ; } public int getCount ( ) { ...
integer constructor for session count changed event
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public class PatternRuleId { COMMENT COMMENT public PatternRuleId ( String id ) { + Validate . notEmpty ( id , STRING0 ) ; this . id = id ; this . subId = null ; } <nb> public class PatternRuleId { C...
fix toString validate parameters
<nb> SINGLE package NAMESPACE ; - import NAMESPACE ; - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT - public class MinimalVersion implements Version , Serializable { - public static final MinimalVersion INSTANCE = new MinimalVersion ( ) ; + class MinimalVersion impleme...
Make MinimalVersion package private since it has no outside consumers
<nb> public class PointDescription { } public static PointDescription deserializeFromString ( String s , LatLon l ) { - PointDescription pd = null ; + PointDescription pd = null ; if ( s != null && s . length ( ) > NUMBER0 ) { int in = s . indexOf ( STRING0 ) ; if ( in >= NUMBER0 ) { <nb> public class...
Make description non empty
<nb> public class IqParser extends AbstractParser implements OnIqPacketReceived { super ( service ) ; } - public void rosterItems ( final Account account , final Element query ) { + private void rosterItems ( final Account account , final Element query ) { final String version = query . getAttribute ( STRIN...
made method private that is no longer required to be public
<nb> public class Oracle extends AbstractDialect { public static final String ID = STRING0 ; public Oracle ( ) { - super ( ID , STRING0 , STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ) ; + super ( ID , STRING0 , STRING5 , STRING1 , STRING2 , STRING3 , STRING4 ) ; } public Class < ? extends org . hibe...
Fix Oracle ActiveRecord adapter
<nb> public class KotlinClassifier implements SuspendableClassifier { SINGLE excludePrefixes = new String [ ] { SINGLE - STRING0 + STRING0 , + SINGLE + STRING1 } ; }
Exclude shaded variant of Kotlin s ModuleDescriptorImpl
<nb> public class HttpRequestTest extends ServerTestCase { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ test + public void getNonGzippedWithUncompressEnabled ( ) throws Exception { + String url = setUp ( new RequestHandler ( ) { + + public void handle ( Request request , HttpServletResp...
Add test of no server compression when requested
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
removed Log import
<nb> import NAMESPACE ; import NAMESPACE . * ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; <nb> public class GroovyStarter { SINGLE SINGLE groovy . importFrom ( STRING0 , STRING1 ) ; + + SINGLE + String tools = System . getProperty ( STRING2 ) ; + if (...
will add tools jar property to the classpath
<nb> public static Object load ( Reader rdr , String sourcePath , String sourceName ) thro LINE_BEFORE , pushbackReader . getLineNumber ( ) , LINE_AFTER , pushbackReader . getLineNumber ( ) , UNCHECKED_MATH , UNCHECKED_MATH . deref ( ) + , RT . WARN_ON_REFLECTION , RT . WARN_ON_REFLECTION . deref ( ) ) ) ; ...
push warn on reflection during compile load
<nb> class ModelMetricsHandler extends Handler { public ModelMetricsListSchemaV3 score ( int version , ModelMetricsListSchemaV3 s ) { SINGLE ModelMetricsList parms = s . createAndFillImpl ( ) ; - parms . _model . score ( parms . _frame , parms . _destination_key ) ; SINGLE + Frame fr = parms . _model . score ...
Remove junk scoring frame when just asking for metrics
<nb> class Task implements DimLayer . DimLayerUser { if ( mFullscreen || ! StackId . isTaskResizeableByDockedStack ( mStack . mStackId ) || displayContent == null - || displayContent . getDockedStackLocked ( ) != null ) { + || displayContent . getDockedStackVisibleForUserLocked ( ) != null ) { return true ;...
Fix flicker when unlocking
<nb> public class Mockito extends Matchers { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Recommending the do family methods for spies
<nb> public abstract class BaseViewAnimator { protected abstract void prepare ( View target ) ; - public void animate ( View target ) { + public BaseViewAnimator setTarget ( View target ) { reset ( target ) ; prepare ( target ) ; + return this ; + } + + public void animate ( View target ) { star...
add ObjectAnimators to AnimatorSet before call AnimatorSet set methods
<nb> public final class Util { } } + COMMENT + COMMENT + COMMENT + COMMENT static void deleteContents ( File dir ) throws IOException { File [ ] files = dir . listFiles ( ) ; if ( files == null ) { - throw new IllegalArgumentException ( STRING0 + dir ) ; + throw new IOException ( STRING1 + dir )...
Don t throw runtime exceptions on racy IO operations
<nb> class WebViewRenderer extends WebRenderer { cancelBuildArticleContentTask ( ) ; mArticleContent = null ; - mWebView . stopLoading ( ) ; + if ( null != mWebView ) { + mWebView . stopLoading ( ) ; - SINGLE - mWebChromeClient . onProgressChanged ( mWebView , NUMBER0 ) ; + SINGLE + mWebChromeClie...
Fixed crash with null pointer
<nb> public class AccessibilityServiceInfo implements Parcelable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Updating AccessibilityNodeInfo JavaDoc
<nb> public abstract class MenuDrawer extends ViewGroup { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public ViewGroup getMenuContainer ( ) { + return mMenuContainer ; + } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public ViewGroup getContentContainer ( ) { + if ( ...
Add methods for getting the menu and content containers
<nb> public class Span implements Serializable , Iterable < Integer > { COMMENT COMMENT public static int distance ( Span a , Span b ) { - if ( a . isBefore ( b ) ) { + if ( Span . overlaps ( a , b ) ) { + return NUMBER0 ; + } else if ( a . contains ( b ) || b . contains ( a ) ) { + return NUMBER0 ; +...
Fix weird bug with span distance
<nb> public class OStorageLocal extends OStorageLocalAbstract { public String getPhysicalClusterNameById ( final int iClusterId ) { checkOpeness ( ) ; + if ( iClusterId < NUMBER0 ) + return null ; + lock . acquireSharedLock ( ) ; try {
Fixed bug on negative cluster id
<nb> public class UBJsonWriter implements Closeable { return name ( name ) . value ( value ) ; } + COMMENT + COMMENT + public UBJsonWriter set ( String name , boolean value ) throws IOException { + return name ( name ) . value ( value ) ; + } + COMMENT COMMENT public UBJsonWriter set ( String na...
Add missing set boolean convenience method
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class AxisBase extends ComponentBase { COMMENT protected boolean mCustomAxisMax = false ; + COMMENT + COMMENT + COMMENT public float mAxisMaximum = FLOAT0 ; + + COMMENT...
Add documentation to axis
<nb> public class GroupByAggregateBreakerTest extends SQLTransportIntegrationTest { RamAccountingContext . FLUSH_BUFFER_SIZE = NUMBER0 ; return Settings . builder ( ) . put ( super . nodeSettings ( nodeOrdinal ) ) - . put ( CrateCircuitBreakerService . QUERY_CIRCUIT_BREAKER_LIMIT_SETTING , STRING0 ) + . put (...
fixed flaky group by circuit breaker test
<nb> public class PSurfaceAWT implements PSurface { COMMENT private Dimension setFrameSize ( ) { SINGLE - System . out . format ( STRING0 , sketchWidth , sketchHeight ) ; - new Exception ( ) . printStackTrace ( System . out ) ; + SINGLE + SINGLE Insets insets = frame . getInsets ( ) ; int windowW = Ma...
turn off some debug warnings
<nb> public class Observable < T > { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Observable < T > { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
clarify join groupJoin no ordering guarantees
<nb> public class GenericFileOnCompletion < T > implements Synchronization { handleException ( e ) ; } - } COMMENT <nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class LoggingExceptionHandler implements ExceptionH...
Reduced the noise by LoggingExceptionHandler to log at DEBUG level instead