diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class JazzyHelper implements AbsListView . OnScrollListener {
break ;
default : break ;
}
- notifyAdditionalOnScrollStateChangedListener ( view , scrollState ) ;
+ notifyAdditionalOnScrollStateChangedListener ( view , scrollState ) ;
}
public void setTransitionEffect ( int transitionEffect )... | Fix checkstyle errors |
<nb> public class ForgeEventFactory
{
ItemStack [ ] tmp = new ItemStack [ stacks . length ] ;
for ( int x = NUMBER0 ; x < tmp . length ; x ++ )
- tmp [ x ] = stacks [ x ] . copy ( ) ;
+ tmp [ x ] = ItemStack . copyItemStack ( stacks [ x ] ) ;
PotionBrewEvent . Pre event = new PotionBrewEvent . Pre ( tmp )... | Fixed NPE thrown when brewing event is fired and not all slots are filled |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PSurfaceNEWT implements PSurface {
}
+ public Canvas initCanvas ( PApplet sketch ) {
+ this . sketch = sketch ;
+
+ sketchWidth = sketch . sketchWidth ( ) ;
+ sketchHeig... | oops add that method |
<nb> public class StandaloneClusterClient
{
life . add ( logging ) ;
life . add ( clusterClient ) ;
- timer = new Timer ( ) ;
+ timer = new Timer ( true ) ;
addShutdownHook ( ) ;
life . start ( ) ;
} | Make timer run as daemon |
<nb> public class RecyclerViewDragDropManager implements DraggableItemConstants {
COMMENT
COMMENT
public void release ( ) {
- cancelDrag ( ) ;
+ cancelDrag ( true ) ;
if ( mHandler != null ) {
mHandler . release ( ) ; | Call cancelDrag true when in RecyclerViewDragDropManager release |
<nb> public class StandardWrapper extends ContainerBase
COMMENT
public synchronized Servlet loadServlet ( ) throws ServletException {
- if ( unloading ) {
- throw new ServletException (
- sm . getString ( STRING0 , getName ( ) ) ) ;
- }
-
SINGLE
if ( ! singleThreadModel && ( instance != null ) )
r... | Remove unused code |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultModuleVersionPublishMetaData implements BuildableModuleVersi
return artifact ;
}
- public ArtifactIdentifier getArtifactIden... | Removed unused method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LightAdvHighlightingTest extends LightDaemonAnalyzerTestCase {
binary . getLOperand ( ) . replace ( expression ) ;
binary .... | don t let a huge number of invokeLater stick in the queue in test |
<nb> public class NotificationsProcessingService extends Service {
}
private NotificationCompat . Builder getBuilder ( ) {
- String title = getString ( R . string . app_name ) ;
- NotificationCompat . Builder builder = new NotificationCompat . Builder ( mContext )
+ return new NotificationCompat . Builder (... | fixed redundant local var |
<nb> public class ModClusterSubsystemElementParser implements XMLElementReader < List < M
ssl = config . get ( SSL ) . get ( CONFIGURATION ) ;
else
ssl = config . get ( SSL ) ;
- writeSSL ( writer , ssl ) ;
+ if ( ssl . isDefined ( ) )
+ writeSSL ( writer , ssl ) ;
}
writer . writeEndElement ( ) ;
} | Fix the broken smoke test |
<nb> public class DruidDataSourceFactoryTest1 extends TestCase {
JdbcUtils . close ( dataSource ) ;
}
}
+
+ public void test_getObjectInstance ( ) throws Exception {
+ Assert . assertNull ( new DruidDataSourceFactory ( ) . getObjectInstance ( null , null , null , null ) ) ;
+ }
+
+ public void test_ge... | add DruidDataSourceFactory getObjectInstance testcase test null branche |
<nb> public class MongoBridge {
coll . update ( query , update , true , false ) ;
}
- public void writeMessageCounts ( int total , Map < String , Integer > streams , Map < String , Integer > hosts ) {
+ public synchronized void writeMessageCounts ( int total , Map < String , Integer > streams , Map < String ,... | make MongoBridge writeMessageCounts access synced |
<nb> public class DefaultPaymentGatewayApi extends DefaultApiBase implements PaymentG
@ override
public GatewayNotification doPaymentGatewayApiOperation ( final UUID adjustedPaymentMethodId , final Iterable < PluginProperty > adjustedPluginProperties ) throws PaymentApiException {
if ( adjustedPaymentMethodId == ... | pass adjusted plugin properties in processNotification |
<nb> public abstract class BaseStatusBar extends SystemUI implements
for ( int i = NUMBER0 ; i < numActions ; i ++ ) {
Notification . Action action = actions . get ( i ) ;
+ if ( action == null ) {
+ continue ;
+ }
RemoteInput [ ] remoteInputs = action . getRemoteInputs ( ) ;
- for ( RemoteInput ri : ac... | Fix NPE in processForRemoteInput |
<nb> public class ProjectViewProjectNode extends AbstractProjectNode {
for ( VirtualFile root : topLevelContentRoots ) {
final Module module = ModuleUtil . findModuleForFile ( root , myProject ) ;
- if ( module != null ) {
+ if ( module != null ) { SINGLE
modules . add ( module ) ;
}
- else {
- LOG . ... | Some people exclude module s content roots |
<nb> public class ReactImageManager extends SimpleViewManager < ReactImageView > {
return REACT_CLASS ;
}
- private final @ nullable AbstractDraweeControllerBuilder mDraweeControllerBuilder ;
+ private @ nullable AbstractDraweeControllerBuilder mDraweeControllerBuilder ;
private final @ nullable Object mCal... | Reuse DraweeControllerBuilder instead of allocating one for every image |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ... | Send TV app the intent for the new active source |
<nb> public class TestMapper extends LoggingBaseTest {
@ test
public void testPerformance ( ) throws Exception {
- SINGLE
+ SINGLE
SINGLE
SINGLE
- final long maxTime = NUMBER0 ;
+ final long maxTime = NUMBER1 ;
long time = testPerformanceImpl ( ) ;
if ( time >= maxTime ) {
SINGLE | Buidlbot needs a little longer |
<nb> public final class AndroidGraphics implements Graphics , Renderer {
void pause ( ) {
synchronized ( synch ) {
+ if ( ! running ) return ;
running = false ;
pause = true ;
while ( pause ) { | changed AndroidGraphics pause won t synch on pause if listener is currently not running |
<nb> public final class MediaDriver implements AutoCloseable
return errorHandler ;
}
+ public Context errorHandler ( final ErrorHandler errorHandler )
+ {
+ this . errorHandler = errorHandler ;
+ return this ;
+ }
+
public DistinctErrorLog errorLog ( )
{
return errorLog ; | Java Add the ability to set the driver error handler in the context |
<nb> public class WorkerActor extends org . deeplearning4j . iterativereduce . actor . core . a
if ( tracker . needsReplicate ( id ) ) {
try {
log . info ( STRING0 + id ) ;
+ if ( tracker . getCurrent ( ) == null || tracker . getCurrent ( ) . get ( ) == null ) {
+ return ;
+ }
setE ( tracker . getCurrent ... | add sanity check silly parallelism to the worker actor such that it doesnt try to replicate a null network |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> pu... | improved error reporting for antlr based exceptions |
<nb> public class NodesInfoResource extends JaxRsResourceBase {
}
}
- if ( pluginName != null && pluginVersion != null ) {
+ if ( pluginName != null ) {
return new PluginNodeCommandMetadata ( pluginName , pluginVersion , input . getNodeCommandProperties ( ) ) ;
} else {
return new NodeCommandMetadata ( ... | Add ability to trigger node command for plugin without specifying the version |
<nb> public abstract class ToolWindowManager {
public abstract ToolWindow registerToolWindow ( @ notnull String id , boolean canCloseContent , @ notnull ToolWindowAnchor anchor , boolean sideTool ) ;
public abstract ToolWindow registerToolWindow ( @ notnull String id , boolean canCloseContent , @ notnull ToolWind... | forgotten file submitted |
<nb> public class Bits {
}
if ( bits . length > commonWords ) {
- for ( int i = other . bits . length , s = bits . length ; s > i ; i ++ ) {
+ for ( int i = commonWords , s = bits . length ; s > i ; i ++ ) {
bits [ i ] = NUMBER0 L ;
}
} | initialized loop index with commonWords |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CommandLineActionFactory {
final StartParameter startParameter = new StartParameter ( ) ;
startParameterConverter . conve... | support the gradle timeout property when running gradle daemon |
<nb>
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
COMMENT
COMMENT
+ @ checkreturnvalue
+ @ parametersarenonnullbydefault
package NAMESPACE ;
+
+ import NAMESPACE ;
+ import NAMESPACE ; | Add CheckReturnValue to the com google common eventbus package |
<nb> public class ProgressWheel extends View {
public void setDelayMillis ( int delayMillis ) {
this . delayMillis = delayMillis ;
}
+
+ public int getContourColor ( ) {
+ return contourColor ;
+ }
+
+ public void setContourColor ( int contourColor ) {
+ this . contourColor = contourColor ;
+
+ ... | Add missing getter and setter for Contour size and color attributes |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT | Remove documentation for implemented ideas |
<nb> public class DlvApi {
public String file ;
SINGLE
public int line ;
- SINGLE
- public Function function ;
+ SINGLE
+ Location currentLoc ;
+ SINGLE
+ Location userCurrentLoc ;
+ SINGLE
+ Location goStatementLoc ;
}
SINGLE | update DlvApi Goroutine |
<nb> public class AprEndpoint extends AbstractEndpoint < Long > {
@ override
public int read ( boolean block , byte [ ] b , int off , int len ) throws IOException {
+ SINGLE
+ SINGLE
if ( closed ) {
throw new IOException ( sm . getString ( STRING0 , getSocket ( ) ) ) ;
} | Add a TODO |
<nb> import NAMESPACE ;
public class DeepLearningParameters extends Model . Parameters {
public DeepLearningParameters ( ) {
super ( ) ;
- _stopping_rounds = NUMBER0 ; SINGLE
+ _stopping_rounds = NUMBER1 ; SINGLE
_stopping_tolerance = NUMBER1 ; SINGLE
} | Turn off early convergence based stopping for DL by default for now until the client APIs support full control |
<nb> public class ShortcutManager implements NativePreviewHandler ,
SINGLE
if ( prefixes_ . contains ( shortcut . getKeySequence ( ) ) )
+ {
+ e . preventDefault ( ) ;
return false ;
+ }
SINGLE
SINGLE | prevent default when a prefix key is pressed prevent beeps |
<nb> public class ProtobufAnnotationSerializerSlowITest {
@ test
public void testOpenie ( ) {
- testAnnotators ( STRING0 ) ;
+ testAnnotators ( STRING1 ) ;
}
@ test
<nb> public class ProtobufAnnotationSerializerSlowITest {
testAnnotators ( STRING2 ) ;
}
+
+ @ test
+ public void testGender ... | Fix some failing slowitests |
<nb> public class Tensor extends DoubleMatrix implements Serializable {
return get ( getRowIndicesForSlice ( index ) , getColIndicesForSlice ( ) ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void setSlice ( int index , DoubleMatrix slice ) {
+ if ( slice . rows != rows (... | added check for setting the slice |
<nb> public abstract class MixinTileEntityBanner extends TileEntity {
}
private void updatePatterns ( ) {
+ if ( this . patterns == null ) SINGLE
+ patterns = Lists . newArrayList ( ) ;
this . patterns . clear ( ) ;
if ( this . field_175118_f != null ) {
GameRegistry registry = SpongeMod . instance . ge... | Fix banner related crash |
<nb> class AppletFrame extends Frame {
AppletFrame ( String title , Applet applet , int width , int height )
{
super ( title ) ;
+ this . addWindowListener ( new WindowAdapter ( ) {
+ public void windowClosing ( WindowEvent e ) {
+ System . exit ( NUMBER0 ) ;
+ }
+ } ) ;
applet . init ( ) ;
applet .... | make x button work |
<nb> public class SourceFormatter {
newContent = StringUtil . replace (
newContent ,
new String [ ] {
- STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 ,
- STRING6 , STRING7 , STRING8 , STRING9
+ STRING0 , STRING1 , STRING10 , STRING2 , STRING3 , STRING4 ,
+ STRING5 , STRING6 , STRING7 , STRING8... | SourceFormatter remove unnecessary spaces |
<nb> public class SetPasswordCommand implements AdminCommand
Config config = loadNeo4jConfig ( homeDir , configDir ) ;
File authDir = config . get ( auth_store_directory ) ;
FileUserRepository userRepository =
- new FileUserRepository ( new File ( authDir , STRING0 ) . toPath ( ) , NullLogProvider . getInstance... | Use correct auth file name matching server |
<nb> public class ImapStore extends Store {
private boolean mExists ;
public ImapFolder ( String name ) {
- this . mName += name ;
+ this . mName = name ;
}
public String getPrefixedName ( ) { | Changed a of a null string back to the appropriate sign |
<nb> public class Capture extends PImage implements PConstants {
boolean singleFrac = false ;
try {
Fraction fr = str . getFraction ( STRING0 ) ;
- res . add ( makeResolutionString ( w , h , fr . numerator , fr . denominator ) ) ;
+ res . add ( makeResolutionString ( w , h , fr . numerator , fr . denominator ... | Renamed Video setPath to Video setGStreamerPath fixed logic in Capture addResFromStructure |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StorageDir {
return new ArrayList < Long > ( mBlockIdToBlockMap . keySet ( ) ) ;
}
+ public Collection < BlockMeta > getBlocks ( ) {
+ return mBlockIdToBl... | Add a method in StorageDir to get a collection of blocks |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class Lambda1 {
List < String > names2 = Arrays . asList ( STRING0 , null , STRING1 , STRING2 , STRING3 ) ;
names2 . sort ( Comparator . nullsLast ... | add even more comparator stuff |
<nb> public class TestAccount {
return accountJson ;
}
- @ test ( groups = STRING0 )
+ @ test ( groups = STRING0 , enabled = false )
public void testFoo ( ) throws Exception {
ObjectMapper mapper = new ObjectMapper ( ) ;
<nb> public class TestAccount {
}
- @ test ( groups = STRING0 )
+ @ tes... | Disable tests until fixed |
<nb> public abstract class HttpMessageDecoder extends ReplayingDecoder < HttpMessageDec
reset ( ) ;
if ( ! chunk . isLast ( ) ) {
SINGLE
- return new HttpChunk [ ] { chunk , HttpChunk . LAST_CHUNK } ;
+ return new Object [ ] { chunk , HttpChunk . LAST_CHUNK } ;
}
}
return chunk ;
<nb> public abstract ... | Removed the slow Class isArray call by returning Object instead of HttpChunk |
<nb> public class FrameLayoutWithHole extends FrameLayout {
}
private void enforceMotionType ( ) {
- Log . d ( STRING0 , STRING1 ) ;
+ Log . d ( STRING0 , STRING1 ) ;
if ( mViewHole != null ) { Log . d ( STRING0 , STRING2 ) ;
if ( mMotionType != null && mMotionType == TourGuide . MotionType . ClickOnly ) ... | Fix Memory Leak |
<nb> public class ColibriConferenceIQ
COMMENT
public static IQ createGracefulShutdownErrorResponse ( final IQ request )
{
- if ( ! ( request . getType ( ) == Type . GET || request . getType ( ) == Type . SET ) )
- {
- throw new IllegalArgumentException (
- STRING0
- + request . toXML ( ) ) ;
- }
-
... | Does not override getChildElementXML when creating graceful shutdown error response |
<nb> public class Version {
COMMENT
COMMENT
COMMENT
- VersionFile versionFile ( File versionFile ) {
+ public static VersionFile versionFile ( File versionFile ) {
return new DefaultVersionFile ( versionFile ) ;
}
}
<nb> import NAMESPACE ;
class VersionBumper {
+ COMMENT
+ COMMENT
+ COMMEN... | Fixed a problem updated docs |
<nb> public class DefaultSqlPrepareStatementStrategy implements SqlPrepareStatementSt
}
private static final class PopulateIterator implements Iterator < Object > {
- private static final String MISSING_PARAMETER_EXCEPTION
- = STRING0 ;
+ private static final String MISSING_PARAMETER_EXCEPTION =
+ STRING0... | Fixed the CS error in camel sql |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE
COMMENT
COMMENT
COMMENT
- public interface GrConstructorInvocation extends GrStatement , GrConstructorCall , P... | improve references for super and this calls in constructors |
<nb> public class DropwizardResourceConfig extends ResourceConfig {
register ( OptionalMessageBodyWriter . class ) ;
register ( OptionalParamFeature . class ) ;
register ( new SessionFactoryProvider . Binder ( ) ) ;
- EncodingFilter . enableFor ( this , GZipEncoder . class ) ;
}
public static DropwizardRe... | Remove Jersey GZip Encoder |
<nb> public class SerialService extends ISerialManager . Stub {
public ParcelFileDescriptor openSerialPort ( String path ) {
mContext . enforceCallingOrSelfPermission ( android . Manifest . permission . SERIAL_PORT , null ) ;
- return native_open ( path ) ;
+ for ( int i = NUMBER0 ; i < mSerialPorts . length ... | Only allow opening files that are whitelisted serial port devices |
<nb> public class TestSparseVector extends TestCase {
public void testAssignUnaryFunction ( ) {
test . assign ( new NegateFunction ( ) ) ;
for ( int i = NUMBER0 ; i < values . length ; i ++ ) {
- if ( i == NUMBER0 || i == NUMBER1 ) {
- assertEquals ( STRING0 + i + STRING1 , - FLOAT0 , test . getQuick ( i ) ) ... | Oops missed committing unit test change with last change |
<nb> public class IntMathTest extends TestCase {
}
}
- SINGLE
- SINGLE
-
- SINGLE
- SINGLE
-
- SINGLE
- SINGLE
-
private boolean fitsInInt ( BigInteger big ) {
return big . bitLength ( ) <= NUMBER0 ;
}
<nb> public class LongMathTest extends TestCase {
}
}
- SINGLE
- SINGLE
- ... | Make comments javadocs so MOE correctly strips them |
<nb> public final class PayloadBuilder {
else
aps . put ( STRING0 , body . subSequence ( NUMBER0 , body . length ( ) - d ) ) ;
- assert this . length ( ) <= payloadLength ;
return this ;
} | remove failed assertion |
<nb> public final class BasePermission implements Permission {
public String toString ( ) {
return STRING0 + getPattern ( ) + STRING1 + mask + STRING2 ;
}
+
+ public int hashCode ( ) {
+ return this . mask ;
+ }
}
<nb> public class CumulativePermission implements Permission {
return ( this . mask ... | Add hashCode methods |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public abstract class UriComponents {
+ public abstract class UriCompo... | Make UriComponents Serializable |
<nb> public class EventBus implements IEventExceptionHandler
public void unregister ( Object object )
{
ArrayList < IEventListener > list = listeners . remove ( object ) ;
+ if ( list == null )
+ return ;
for ( IEventListener listener : list )
{
ListenerList . unregisterAll ( busID , listener ) ; | Fix possible crash in EventBus |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HashingTest extends TestCase {
STRING0 )
. build ( ) ;
+ public void testAllHashFunctionsHaveKnownHashes ( ) throws Exception {
+ for ( Method method : Has... | Add a test that ensures any new HashFunctions must have an entry in |
<nb> public class WXModuleManager {
}
if ( sModuleFactoryMap . containsKey ( moduleName ) ) {
- if ( WXEnvironment . isApkDebugable ( ) ) {
- throw new WXException ( STRING0 + moduleName ) ;
- } else {
- WXLogUtils . e ( STRING1 + moduleName ) ;
- return false ;
- }
+ WXLogUtils . w ( STRING1 + modu... | android allow duplication registerModule |
<nb>
COMMENT
COMMENT
COMMENT
-
package NAMESPACE ;
import NAMESPACE ;
<nb> public class TestInterceptor extends JdbcInterceptor {
@ override
public void poolClosed ( ConnectionPool pool ) {
- SINGLE
super . poolClosed ( pool ) ;
poolclosed = true ;
}
<nb> public class TestInterceptor ext... | Remove TODO markers |
<nb> import NAMESPACE ;
COMMENT
public class ReaderDatabase extends SQLiteOpenHelper {
protected static final String DB_NAME = STRING0 ;
- private static final int DB_VERSION = NUMBER0 ;
+ private static final int DB_VERSION = NUMBER1 ;
COMMENT
COMMENT
<nb> public class ReaderDatabase extends SQLiteOp... | Resolved conflicts in ReaderDatabase java and ReaderTagTable java |
<nb> public class ZenModeConditions implements ConditionProviders . Callback {
@ override
public void onServiceAdded ( ComponentName component ) {
if ( DEBUG ) Log . d ( TAG , STRING0 + component ) ;
- if ( isAutomaticActive ( component ) ) {
- mHelper . setConfigAsync ( mHelper . getConfig ( ) , STRING1 ) ; ... | Always reevaluate rules when a new service is added |
<nb>
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 ;
import NAMESPACE ;
<nb> public class Loca... | Dump pact plan as json using the local executor |
<nb> public class StackScrollAlgorithm {
float newNotificationEnd = newYTranslation + newHeight ;
boolean isHeadsUp = ( child instanceof ExpandableNotificationRow )
&& ( ( ExpandableNotificationRow ) child ) . isPinned ( ) ;
- if ( newYTranslation < previousNotificationEnd && ambientState . isShadeExpanded ( ) ... | Fix smooth panel deceleration |
<nb> abstract class BroadcasterFactoryInjector extends BaseInjectableProvider {
}
@ override
+ public Broadcaster lookup ( Object id ) {
+ return _get ( ) . lookup ( id ) ;
+ }
+
+ @ override
+ public Broadcaster lookup ( Object id , boolean createIfNull ) {
+ return _get ( ) . lookup ( id , createI... | Implement new BroadcasterFactory API |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ReaderCommentAdapter extends RecyclerView . Adapter < ReaderCommentAdap
mAvatarSz = context . getResources ( ) . getDimensionPixelSize ( R . dimen . avatar_sz_sma... | Lightened highlight color |
<nb> public class GELFMessage {
COMMENT
COMMENT
public void addAdditionalData ( String key , String value ) {
- this . additionalData . put ( key , value ) ;
+ if ( key != null && value != null ) {
+ this . additionalData . put ( key , value ) ;
+ }
}
COMMENT
<nb> public class AdditionalFieldMatch... | check additional data for null values |
<nb> public class PlayerChatEvent extends PlayerEvent {
public void setMessage ( String message ) {
this . message = message ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void setPlayer ( final Player player ) {
+ this . player = player ;
+ }
}
<nb> import NAME... | Tweak to PlayerChatEvent allow plugins to set the player that the chat command executes as |
<nb> public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
COMMENT
EGG ,
COMMENT
+ COMMENT
+ COMMENT
+ SPAWNER_EGG ,
+ COMMENT
COMMENT
COMMENT
LIGHTNING , | Added Spawner Egg support to CreatureSpawnEvent |
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ @ suppresswarnings ( STRING0 )
public class BoundedOverheadBlockStoreTest {
@ rule
public TemporaryFolder folder = new TemporaryFolder ( ) ; | Suppress deprecation warning |
<nb> public class EditorWindow {
}
else {
myPanel . removeAll ( ) ;
- if ( editor != null ) {
- editorManager . disposeComposite ( editor ) ;
- }
+ editorManager . disposeComposite ( editor ) ;
}
if ( unsplit && getTabCount ( ) == NUMBER0 ) { | Revert NPE in EditorWindow |
<nb> public class RestLiHTMLDocumentationRenderer implements RestLiDocumentationRende
public void setJsonFormatUri ( URI jsonFormatUri )
{
- _jsonFormatUri = _serverNodeUri . resolve ( jsonFormatUri ) ;
+ _jsonFormatUri = URI . create ( _serverNodeUri . toString ( ) + jsonFormatUri . toString ( ) ) ;
}
... | Fix bug that context path is missing in docgen View in JSON format link |
<nb> public class ActionBarContextView extends ViewGroup {
mCloseButton = new ImageButton ( getContext ( ) ) ;
mCloseButton . setImageDrawable ( mCloseDrawable ) ;
mCloseButton . setBackgroundDrawable ( null ) ;
- mCloseButton . setOnClickListener ( new OnClickListener ( ) {
- public void onClick ( View v ) {... | Fix a bug with closing action bar context modes |
<nb> public final class AccessibilityManager {
COMMENT
COMMENT
public IAccessibilityManagerClient getClient ( ) {
- return mClient
+ return mClient ;
}
COMMENT | Fixing the build for real |
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
mSelectedPosition < mAdapter . getCount ( ) ) {
final View view = getChildAt ( mSelectedPosition - mFirstPosition ) ;
- performItemClick ( view , mSelectedPosition , mSelectedRowId ) ;
+ if ( view != null ) {
+ performI... | Fix possible NPE in AdapterView s OnItemClickListener clients |
<nb> public class ExplainTask extends Task < ExplainWork > implements Serializable {
}
SINGLE
- String jsonAST = outputAST ( work . getAstStringTree ( ) , out , jsonOutput , NUMBER0 ) ;
- if ( out != null ) {
- out . println ( ) ;
- }
+ if ( work . getAstStringTree ( ) != null ) {
+ String jsonAST = o... | getJSONPlan throws a NPE if the ast is null namit via He Yongqiang |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ; | Remove unneeded import |
<nb> final class ActivityStack {
if ( ! r . visible ) {
if ( DEBUG_VISBILITY ) Slog . v (
TAG , STRING0 + r ) ;
+ r . visible = true ;
mWindowManager . setAppVisibility ( r . appToken , true ) ;
}
if ( r != starting ) { | Fix the activity visibility state not sync between ActivityManager and WindowManager |
<nb> public class FilterModelImpl implements FilterModel {
}
public void updateParameters ( Query query ) {
- ( ( FilterQueryImpl ) query ) . updateParameters ( ) ;
- fireChangeEvent ( ) ;
+ if ( query instanceof FilterQueryImpl ) {
+ ( ( FilterQueryImpl ) query ) . updateParameters ( ) ;
+ fireChangeEv... | Fix issue in FiltersModel that avoid operators to have properties |
<nb> public class SmartComboBox extends JComboBox
}
( ( FilterableComboBoxModel ) getModel ( ) ) . setFilter ( filter ) ;
- SINGLE
+
setPopupVisible ( false ) ;
- setPopupVisible ( true ) ;
+
+ if ( getModel ( ) . getSize ( ) > NUMBER0 )
+ setPopupVisible ( true ) ;
+
filtering = false ;
}
} | do not open the popup if the user input doesn t match any of the items in the combo box |
<nb> public class NumpyUfuncs {
UFUNC_LIST . add ( STRING0 ) ;
UFUNC_LIST . add ( STRING1 ) ;
+ UFUNC_LIST . add ( STRING2 ) ;
}
} | added fabs to ufuncs |
<nb> public class Connector extends LifecycleMBeanBase {
COMMENT
protected int maxSavePostSize = NUMBER0 * NUMBER1 ;
-
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
protected String parseBodyMethods = STRING0 ;
+ COMMENT
+ COMMENT
+ COMMENT
protected HashSet < String > parseBodyMethodsSet ; | Added documentation to parseBodyMethods and parseBodyMethodSet members |
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
public class GroovyAssert {
private static final int MAX_NESTED_EXCEPTIONS = NUMBER0 ; | deprecate old GroovyAssert class from groovy util in favor of the new one in groovy test package |
<nb> public class ScreenRegionSharer implements ScreenSharer {
ssi . y = y ;
ssi . captureWidth = width ;
ssi . captureHeight = height ;
+ ssi . scaleWidth = width ;
+ ssi . scaleHeight = height ;
System . out . println ( STRING0 + ssi . x + STRING1 + ssi . y + STRING2 + ssi . captureWidth + STRING1 + ssi .... | can now capture region inside the frame without the borders |
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class JoddCore {
COMMENT
- COMMENT
- COMMENT
- public static final String JODD_VERSION ;
-
- COMMENT
COMMENT
COMMENT
public static String tempFilePrefix = STRING0 ;
<nb> public class Jo... | removed jodd version |
<nb> 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 class MinaProducer extends DefaultProducer ... | MinaProducer now throws CamelExchangeException if no message received from remote server when sync true |
<nb> public class RecyclerView extends ViewGroup implements ScrollingView , NestedScro
if ( event . getAction ( ) == MotionEventCompat . ACTION_SCROLL ) {
final float vScroll , hScroll ;
if ( mLayout . canScrollVertically ( ) ) {
- vScroll = MotionEventCompat
+ SINGLE
+ SINGLE
+ vScroll = - MotionEventCom... | DO NOT MERGE Fix the mouse wheel orientation for the consistency with AbsListView |
<nb> public class FakeProcess extends Process {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
public boolean isDestroyed ( ) {
return isDestroyed ;
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
public boolean isWaitedFor ( ) {
return isWaitedFor ; | Fix malformed Javadoc |
<nb> public final class SloppyMath {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Updated run script |
<nb> public class PositionManagerImpl implements PositionManager {
return null ;
}
- PsiClass psiClass = DebuggerUtils . findClass ( refType . name ( ) , project , myDebugProcess . getSearchScope ( ) ) ;
+ final String originalQName = refType . name ( ) ;
+ final GlobalSearchScope searchScope = myDebugProce... | reverted changes blocking inner classes in libraries to work |
<nb> public abstract class Closure < V > extends GroovyObjectSupport implements Cloneabl
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class Closure < V > extends GroovyObjectSupport impl... | Use better example for Closure composition |
<nb> class ContextImpl extends Context {
mUser = user ;
mPackageInfo = packageInfo ;
- mContentResolver = new ApplicationContentResolver ( this , mainThread , user ) ;
mResourcesManager = ResourcesManager . getInstance ( ) ;
mDisplay = display ;
mOverrideConfiguration = overrideConfiguration ;
<nb> clas... | Using the correct package name for ContentResolver |
<nb> public class IQTypeFilter extends FlexiblePacketTypeFilter < IQ > {
public static final PacketFilter SET = new IQTypeFilter ( Type . set ) ;
public static final PacketFilter RESULT = new IQTypeFilter ( Type . result ) ;
public static final PacketFilter ERROR = new IQTypeFilter ( Type . error ) ;
+ public s... | Add IQTypeFilter GET_OR_SET |
<nb> public class ImplHandler {
public void clearCache ( ) {
SINGLE
- for ( AssetCache cache : classToCacheMap . values ( ) ) {
- cache . clearCache ( ) ;
+ synchronized ( classToCacheMap ) {
+ for ( AssetCache cache : classToCacheMap . values ( ) ) {
+ cache . clearCache ( ) ;
+ }
}
} | synchronized access in clearCache |
<nb> final class WindowState implements WindowManagerPolicy . WindowState {
final int ph = containingFrame . height ( ) ;
final Task task = getTask ( ) ;
final boolean nonFullscreenTask = isInMultiWindowMode ( ) ;
- final boolean fitToDisplay = task != null && ! nonFullscreenTask && ! layoutInParentFrame ( ) ; ... | Fix IME layout |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class VcsLogGraphTable extends JBTable {
LOG . error ( STRING0 + model ) ;
return null ;
}
- return ( ( GraphTableModel ) model ) . getSelectedC... | log fix a typo lead to a CCE |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
public class DefaultDeploymentCache < T > implements DeploymentCache < T > {
+ private static final Logger logger = Logger . getLogger ( DefaultD... | Added a line of logging to see if it actually works |
<nb> public abstract class OChannelBinaryClientAbstract extends OChannelBinary {
} catch ( Exception e ) {
SINGLE
- rootException = OException . wrapException ( new OIOException ( iMessage ) , iPrevious ) ;
+ rootException = OException . wrapException ( new OSystemException ( iMessage ) , iPrevious ) ;
}
... | fixed wrong retry in case of not found serialized exception in the client |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public class PomJavaAspectImpl extends PomJavaAspect implements ProjectComponent
final TreeChangeEvent changeSet = ( TreeChangeEvent ) event . getChangeSet ( model . getModelAs... | Making java aspect work for code fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.