diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public abstract class AbstractPersistableEntity extends BusinessObject
COMMENT
COMMENT
@ transient
- public final boolean isNew ( ) {
+ public boolean isNew ( ) {
return ( getInternalId ( ) == null ) ;
}
<nb> public abstract class AbstractPersistableEntity extends BusinessObject
COMMENT
@ ver... | Remove finals conflicts with CGLIB generated classes |
<nb> public class MaterialAutoCompleteTextView extends AutoCompleteTextView {
postInvalidate ( ) ;
}
+ @ override
+ public CharSequence getError ( ) {
+ return tempErrorText ;
+ }
+
COMMENT
COMMENT
COMMENT | added getError override to MaterialAutoCompleteTextView |
<nb> public class TwoWayView extends AdapterView < ListAdapter > implements
@ override
protected LayoutParams generateDefaultLayoutParams ( ) {
- return new LayoutParams ( LayoutParams . WRAP_CONTENT , LayoutParams . WRAP_CONTENT ) ;
+ if ( mIsVertical ) {
+ return new LayoutParams ( LayoutParams . MATCH_PA... | library Proper default layout params depending on orientation |
<nb> public abstract class FinderRecursivePanel < T > extends JBSplitter implements Data
list . addListSelectionListener ( new ListSelectionListener ( ) {
@ override
public void valueChanged ( ListSelectionEvent event ) {
+ if ( event . getValueIsAdjusting ( ) ) return ;
if ( isMergeListItemsRunning ( ) ) ret... | restore event getValueIsAdjusting r Sergey V |
<nb> public class HtmlConverter {
private static final int MAX_SMART_HTMLIFY_MESSAGE_LENGTH = NUMBER0 * NUMBER1 ;
public static final String getHtmlHeader ( ) {
- return STRING0 ;
+ SINGLE
+ return STRING1 ;
}
public static final String getHtmlFooter ( ) { | Improve MessageWebView display |
<nb> public class WifiTracker {
}
private void updateNetworkInfo ( NetworkInfo networkInfo ) {
- COMMENT
- if ( ! mWifiManager . isWifiEnabled ( ) ) {
- mScanner . pause ( ) ;
- return ;
- }
+ if ( mScanner != null ) {
+ COMMENT
+ if ( ! mWifiManager . isWifiEnabled ( ) ) {
+ mScanner . pause ( ... | Handle network info updates while scanning is paused |
<nb> public class LocalIndexesFragment extends OsmandExpandableListFragment {
@ override
public void onCreateOptionsMenu ( Menu menu , MenuInflater inflater ) {
+ if ( ! this . isAdded ( ) ) {
+ return ;
+ }
SINGLE
- SINGLE
- if ( listAdapter != null && listAdapter . getGroupCount ( ) == NUMBER0 && ge... | Fixed NPE in localIndexFragment |
<nb> public class DdmHandleProfiling extends ChunkHandler {
COMMENT
COMMENT
private Chunk handleMPRQ ( Chunk request ) {
- int result = Debug . isMethodTracingActive ( ) ? NUMBER0 : NUMBER1 ;
+ int result = Debug . getMethodTracingMode ( ) ;
COMMENT
byte [ ] reply = { ( byte ) result } ;
<nb> href = S... | Change IsMethodTracingActive to GetMethodTracingMode for frameworks |
<nb> public class AddExchanges
if ( child . getProperties ( ) . isDistributed ( ) ) {
child = withDerivedProperties (
- new DistinctLimitNode ( idAllocator . getNextId ( ) , child . getNode ( ) , node . getLimit ( ) , node . getHashSymbol ( ) ) ,
- child . getProperties ( ) ) ;
-
- child = withDerivedProp... | Remove duplicate DistinctLimitNode from query plan |
<nb> import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
public class GotoActionModel implements ChooseByNameModel , CustomMatcherModel , Comparator < Object > , EdtSortingModel {
@ nonnls public static final String SETTINGS_KEY = STRING0 ;
<nb> public class GotoA... | missing bg for option descriptors |
<nb> public final class Attribute implements Comparable < Attribute > {
COMMENT
COMMENT
public abstract static class ComputedDefault {
- private final List < String > dependencies ;
- List < String > dependencies ( ) { return dependencies ; }
+ private final ImmutableList < String > dependencies ;
COMME... | Adjust visibility of ComputedDefault dependencies |
<nb> public class Tree extends WidgetGroup {
insert ( children . size , node ) ;
}
+ public void addAll ( Array < Node > nodes ) {
+ for ( int i = NUMBER0 , n = nodes . size ; i < n ; i ++ )
+ insert ( children . size , nodes . get ( i ) ) ;
+ }
+
public void insert ( int index , Node node ) {
node ... | Tree added addAll method |
<nb> import NAMESPACE ;
public class TestZActor
{
- @ test
+ SINGLE
public void testMinimalistic ( )
{
Actor acting = new ZActor . SimpleActor ( )
<nb> public class TestZActor
context . close ( ) ;
System . out . println ( STRING0 ) ;
}
- @ test
+ SINGLE
public void testRecreateAgent ( )
... | Disable TestZActor because it s unstable and blocking a release |
<nb> public abstract class LeafElement extends TreeElement {
}
public int copyTo ( @ nullable char [ ] buffer , int start ) {
+ final int length = myText . length ( ) ;
if ( buffer != null ) {
- CharArrayUtil . getChars ( myText , buffer , start ) ;
+ CharArrayUtil . getChars ( myText , buffer , start , l... | save some bits of time |
<nb> public class GroovyCompile extends AbstractCompile {
private void checkGroovyClasspathIsNonEmpty ( ) {
if ( getGroovyClasspath ( ) . isEmpty ( ) ) {
- throw new InvalidUserDataException ( STRING0 + getName ( ) + STRING1 ) ;
+ throw new InvalidUserDataException ( STRING0 + getName ( ) + STRING2 +
+ STRI... | improved error message |
<nb> public class Vectorizer implements PhysicalPlanResolver {
for ( BaseWork baseWork : sparkWork . getAllWork ( ) ) {
if ( baseWork instanceof MapWork ) {
convertMapWork ( ( MapWork ) baseWork , false ) ;
- } else if ( baseWork instanceof ReduceWork ) {
+ } else if ( baseWork instanceof ReduceWork
+ && Hi... | Check hive vectorized execution reduce enabled Spark Branch Jimmy via Xuefu |
<nb> public abstract class AppIntroBase extends AppCompatActivity {
protected PagerAdapter mPagerAdapter ;
protected AppIntroViewPager pager ;
protected List < Fragment > fragments = new Vector < > ( ) ;
- protected List < ImageView > dots ;
protected int slidesNumber ;
protected Vibrator mVibrator ;
prot... | Removed unused code |
<nb> public class ClassPatchManager {
return inputData ;
}
boolean ignoredError = false ;
- FMLLog . fine ( STRING0 , mappedName , inputData . length , list . size ( ) , list . size ( ) != NUMBER0 ? STRING1 : STRING2 ) ;
+ FMLLog . fine ( STRING0 , mappedName , ( inputData == null ? NUMBER1 : inputData . leng... | Fix NPE in new debug line when patch targets don t exist |
<nb> public class SpeakActivity extends Activity implements TextToSpeech . OnInitListen
private void showString ( String s ) {
myView . gotoPosition ( myParagraphCursor . Index , NUMBER0 , NUMBER0 ) ;
- myReader . repaintView ( ) ;
+ myReader . getViewWidget ( ) . repaint ( ) ;
myReader . showBookTextView (... | fixed compilation issue |
<nb> public class BlazeCommandDispatcher {
System . setErr ( new PrintStream ( reporterOutErr . getErrorStream ( ) , COMMENT true ) ) ;
for ( BlazeModule module : runtime . getBlazeModules ( ) ) {
- module . checkRuntime ( runtime ) ;
+ module . checkEnvironment ( env ) ;
}
if ( commonOptions . announce... | Change checkRuntime to take a CommandEnvironment instead |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AndroidAnnotationProcessor extends AbstractProcessor {
COMMENT
COMMENT
- Element element = roundEnv . getElementsAnnota... | Improve a little bit the message notification in case of errors if there is no elements |
<nb> public final class SequenceGroup extends Sequence
for ( int i = NUMBER0 ; i < oldSize ; i ++ )
{
final Sequence testSequence = oldSequences [ i ] ;
- if ( sequence == testSequence )
+ if ( sequence == testSequence && ! found )
{
found = true ;
} | Only remove the first occurrence |
<nb> public class ByteBuddy {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public DynamicType . Builder < ? > makeInterface ( TypeDescription . . . typeDescription ) {
- return makeInterface ( new TypeList . Explicit ( Arrays . asList ( typeDescription ) ) ) ;
- }
-
- COMMEN... | Removed overloaded vararg method that caused ambiguity |
<nb> public class MappedFileDataInput extends AbstractDataInput implements FileDataIn
public synchronized ByteBuffer readBytes ( int length ) throws IOException
{
int remaining = buffer . remaining ( ) - position ;
-
- assert length <= remaining
- : String . format ( STRING0 , remaining , length ) ;
+ if ... | Convert mmap assertion to if throw |
<nb> public class ODocumentHelper {
} else if ( iValue instanceof ORecord ) {
return ( RET ) ( ( ORecord ) iValue ) . getIdentity ( ) ;
}
- } else if ( ORecord . class . isAssignableFrom ( iFieldType ) ) {
+ } else if ( OIdentifiable . class . isAssignableFrom ( iFieldType ) ) {
if ( iValue instanceof ORID ... | add support of string to rid conversion on filed set |
<nb> public class Presences {
synchronized ( this . presences ) {
ArrayList < PresenceTemplate > templates = new ArrayList < > ( presences . size ( ) ) ;
for ( Presence p : presences . values ( ) ) {
- templates . add ( new PresenceTemplate ( p . getStatus ( ) , p . getMessage ( ) ) ) ;
+ if ( p . getMessage ... | don t show empty templates |
<nb> public class SingletonPredictor {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public LogisticClassifier < String , String > train ( GeneralDataset < String , String > pDataset ) {
<nb> public class CRFClassifier < IN extends CoreMap > extends AbstractSequenceClassifie
COMMENT
COMMENT ... | Fix a few javadoc warnings |
<nb> public class PeopleUtils {
}
} ;
- int page = ( int ) Math . floor ( offset / FETCH_LIMIT ) + NUMBER0 ;
+ int page = ( offset / FETCH_LIMIT ) + NUMBER0 ;
Map < String , String > params = new HashMap < > ( ) ;
params . put ( STRING0 , Integer . toString ( FETCH_LIMIT ) ) ;
params . put ( STRING1 , I... | Drops extra Math floor |
<nb> public class CompatibilityEngine extends AbstractEngine {
markTime ++ ;
SINGLE
- if ( vizConfig . isShowArrows ( ) && dataBridge . isDirected ( ) ) {
+ if ( edgeClass . isEnabled ( ) && vizConfig . isShowArrows ( ) && dataBridge . isDirected ( ) ) {
gl . glBegin ( GL2 . GL_TRIANGLES ) ;
for ( Iterato... | Fix arrow display issue |
<nb> import NAMESPACE ;
private static final int RENDERING_INTERVAL_MS = NUMBER0 ;
private static final int IDLE_INTERVAL_MS = NUMBER1 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ private static final int MAXIMUM_BUFFER_AHEAD_SOURCES = NUMBER2 ;
+
private final TrackSelector trackSelector... | Limit the maximum number of sources to buffer |
<nb> public class RemoteViewsAdapter extends BaseAdapter implements Handler . Callback
SINGLE
SINGLE
if ( ! mServiceConnection . isConnected ( ) ) {
- if ( mNotifyDataSetChangedAfterOnServiceConnected ) {
- return ;
- }
-
mNotifyDataSetChangedAfterOnServiceConnected = true ;
requestBindService ( ) ;
... | Remove problematic early return from notifyDataSetChanged |
<nb> public class ParserErrorsDescriptors {
public static class InvalidEmptyInput extends BaseParserTestDescriptor {
public String input = STRING0 ;
public String output = null ;
- public String errors = STRING1 ;
+ public String errors = STRING2 ;
public String startRule = STRING3 ;
public String grammar... | Fix test cases affected by recent changes |
<nb> public final class ChainedSubscription implements Subscription {
return unsubscribed ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void add ( final Subscription s ) {
Subscription unsubscribe = null ;
synchronized ( this ) {
<nb> public fin... | adding javadocs to ChainedSubscription methods |
<nb> public class AndroidManifest {
return ( data != null && data . getLabel ( ) != null ) ? data . getLabel ( ) : applicationLabel ;
}
+ @ deprecated
public void setPackageName ( String packageName ) {
this . packageName = packageName ;
} | Deprecate AndroidManifest setPackageName |
<nb> public class MainFrame
try
{
if ( accountInfoOpSet != null )
- return AccountInfoUtils . getDisplayName ( accountInfoOpSet ) ;
+ {
+ String displayName
+ = AccountInfoUtils . getDisplayName ( accountInfoOpSet ) ;
+ if ( displayName != null && displayName . length ( ) > NUMBER0 )
+ return displayN... | Retrieves account display name from account id if not returned from the account info operationset |
<nb> public class UserConfig {
SINGLE
for ( Map . Entry < String , String > systemProperty : userConfigTO . getSystemProperties ( ) . entrySet ( ) ) {
- System . setProperty ( systemProperty . getKey ( ) , systemProperty . getValue ( ) ) ;
+ String propertyValue = ( systemProperty . getValue ( ) != null ) ? s... | Set system properties to instead of null if they are empty |
<nb> public class WebSocket00Channel extends WebSocketChannel {
@ override
public void handle ( final ByteBuffer buffer , final PushBackStreamChannel channel ) throws WebSocketException {
- SINGLE
if ( ! buffer . hasRemaining ( ) ) {
return ;
}
<nb> public class WebSocket00Channel extends WebSocketChann... | Fix bug in frame handling |
<nb> public class MulticoreWrapper < I , O > {
}
@ override
- public Integer call ( ) {
- try {
- O result = processor . process ( item ) ;
- QueueItem < O > output = new QueueItem < O > ( result , itemId ) ;
- callback . call ( output , processorId ) ;
- return itemId ;
-
- } catch ( Exception e ... | Remove unused method |
<nb> public class DataLiberationActivity extends BaseActivity {
@ override
protected void onCreate ( Bundle savedInstanceState ) {
super . onCreate ( savedInstanceState ) ;
+ setContentView ( R . layout . activity_singlepane ) ;
setupActionBar ( ) ;
if ( savedInstanceState == null ) {
DataLiberationFrag... | Fix action bar in data liberation activity |
<nb> import NAMESPACE ;
COMMENT
public interface HelpID {
@ nonnls String COMPILER = STRING0 ;
+ @ nonnls String GENERATE_ANT_BUILD = STRING1 ;
}
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> ... | context Help invocation |
<nb> public abstract class AbstractAuthenticationProcessingFilter extends GenericFilt
@ override
public void afterPropertiesSet ( ) {
Assert . notNull ( authenticationManager , STRING0 ) ;
-
- if ( rememberMeServices == null ) {
- rememberMeServices = new NullRememberMeServices ( ) ;
- }
}
COMMENT | Remove null check inside afterPropertiesSet since it s never null |
<nb>
COMMENT
COMMENT
- package NAMESPACE ;
+ package NAMESPACE ;
COMMENT
COMMENT
<nb>
COMMENT
COMMENT
COMMENT
- package NAMESPACE ;
+ package NAMESPACE ;
COMMENT
COMMENT | Fix incorrect package declarations |
<nb> public class OperationSetBasicTelephonySipImpl
{
SINGLE
SINGLE
- ack = clientTransaction . getDialog ( ) . createRequest ( Request . ACK ) ;
+ CSeqHeader cseq = ( ( CSeqHeader ) ok . getHeader ( CSeqHeader . NAME ) ) ;
+ ack = clientTransaction . getDialog ( ) . createAck ( cseq . getSeqNumber ( ) ) ; ... | Fix sending ACK on Invite OK last attempt to revert libs do nothing |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT | skip remove unused import |
<nb> public class BaseOsmandRender implements RenderingRuleVisitor {
}
public boolean renderPolyline ( String tag , String val , int zoom , RenderingContext rc , OsmandRenderer o , int layer , boolean nightMode , boolean moreDetail ) {
- boolean r = renderPolylineImpl ( tag , val , zoom , rc , o , layer , night... | insert missing blank |
<nb> final class ReplayingDecoderBuffer implements ByteBuf {
@ override
public ByteBuf readBytes ( ByteBuf dst ) {
- throw new UnreplayableOperationException ( ) ;
+ checkReadableBytes ( dst . writableBytes ( ) ) ;
+ buffer . readBytes ( dst ) ;
+ return this ;
}
@ override | Fix unreplayble error |
<nb> import NAMESPACE ;
public abstract class AbstractZooKeeperManager implements Watcher
{
protected static final String HA_SERVERS_CHILD = STRING0 ;
- protected static final int SESSION_TIME_OUT = NUMBER0 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ protected static final int ... | Increased ZK session establishment timeout |
<nb> public class JvmLibraryResolutionErrorMessageBuilder implements LibraryResolutio
if ( moreThanOneBinary ) {
return String . format ( STRING0 , targetPlatform . getName ( ) , input . getDisplayName ( ) ) ;
}
- return String . format ( STRING1 , targetPlatform . getName ( ) , input . getDisplayName ( ) ) ;
... | Fix extra unused paramater |
<nb> public final class TestUtils {
s . setLogo ( new URL ( STRING0 ) ) ;
s . setLogoutType ( LogoutType . BACK_CHANNEL ) ;
s . setLogoutUrl ( new URL ( STRING1 ) ) ;
- s . setProxyPolicy ( new RefuseRegisteredServiceProxyPolicy ( ) ) ;
+ s . setProxyPolicy ( new RegexMatchingRegisteredServiceProxyPolicy ( ST... | fixed test case |
<nb> public abstract class DialogPreference extends Preference implements
private void requestInputMethod ( Dialog dialog ) {
Window window = dialog . getWindow ( ) ;
window . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_STATE_ALWAYS_VISIBLE |
- WindowManager . LayoutParams . SOFT_INPUT_ADJUST_R... | Adding pan behavior on preference dialog |
<nb> implements org . apache . hadoop . mapred . RecordWriter < ByteBuffer , List < Mutation > >
private final Configuration conf ;
private SSTableSimpleUnsortedWriter writer ;
private SSTableLoader loader ;
- private File outputdir ;
+ private final File outputdir ;
private Progressable progress ;
priv... | Keep outputdir final |
<nb> public class TripPattern implements Serializable {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
@ getter
public final Route route ;
-
+
+ COMMENT
+ COMMENT
+ COMMENT
+ @ getter
+ public final TraverseMode mode ;
+
COMMENT
COMMENT
COMMENT
<nb> public class TripPattern implements S... | add a traverseMode to trip patterns |
<nb> public class FieldNode extends AnnotatedNode implements Constants {
return new FieldNode ( name , ACC_PUBLIC | ACC_STATIC , fldType , theClass . getName ( ) , null ) ;
}
+ public FieldNode ( String name , int modifiers , String type , ClassNode owner , Expression initialValueExpression ) {
+ this ( name ... | Added support for property on fields to turn them into bean properties |
<nb> import NAMESPACE ;
try {
PackageInfo pi = context . getPackageManager ( ) . getPackageInfo (
packageName , PackageManager . GET_PERMISSIONS ) ;
+ if ( pi . requestedPermissions == null ) {
+ return false ;
+ }
return Arrays . asList ( pi . requestedPermissions ) . containsAll ( Arrays . asList ( perm... | Allow the system to error when missing required permissions |
<nb> public class PhoneWindow extends Window implements MenuBuilder . Callback {
}
if ( a . getBoolean ( com . android . internal . R . styleable . Window_windowContentTransitions , false ) ) {
requestFeature ( FEATURE_CONTENT_TRANSITIONS ) ;
+ }
if ( a . hasValue ( com . android . internal . R . styleable . ... | Fix build after bad merge resolution |
<nb> public class PropertyOfProgressionOrRange implements IntrinsicMethod {
StackValue . coerce ( wrapperClass . getAsmType ( ) , expectedType , v ) ;
return StackValue . onStack ( expectedType ) ;
}
-
- public enum OwnerKind {
- SEQUENCE ,
- RANGE
- }
} | Removed unused enum |
<nb> class MediaSessionCompatApi21 {
@ override
public boolean onMediaButtonEvent ( Intent mediaButtonIntent ) {
- return mCallback . onMediaButtonEvent ( mediaButtonIntent ) ;
+ return mCallback . onMediaButtonEvent ( mediaButtonIntent )
+ || super . onMediaButtonEvent ( mediaButtonIntent ) ;
}
@ ove... | Ensure MediaSessionCompat Callback behavior matches framework |
<nb> public class ConditionalOSMTagInspector implements ConditionalTagInspector
private final ConditionalParser permitParser , restrictiveParser ;
public ConditionalOSMTagInspector ( Object value , List < String > tagsToCheck ,
- Set < String > restrictiveValues , Set < String > permittedValues )
+ Set < Stri... | do not log conditional tag limitations anymore |
<nb> public class BinaryInspector {
if ( STRING0 . equals ( args [ NUMBER0 ] ) ) {
in . inspector ( new String [ ] {
SINGLE
- SINGLE
+ STRING1 , STRING2 , SINGLE
SINGLE
SINGLE
- STRING3 , STRING4 , STRING5 ,
+ SINGLE
SINGLE
SINGLE
SINGLE
<nb> public class BinaryInspector {
FileOutputStream o... | Fix default zoom for map inspector |
<nb> public class PdePreprocessor {
out . println ( indent + STRING0 + sketchHeight + STRING1 ) ;
}
}
- if ( sketchRenderer != null && ! hasMethod ( STRING2 ) ) {
+ if ( sketchRenderer != null && ! hasMethod ( STRING2 ) ) {
SINGLE
if ( sketchRenderer . equals ( STRING3 ) ||
+ sketchRenderer . equals ( S... | add the retina renderers in writeFooter |
<nb> final class WindowState implements WindowManagerPolicy . WindowState {
Task getTask ( ) {
AppWindowToken wtoken = mAppToken == null ? mService . mFocusedApp : mAppToken ;
if ( wtoken == null ) {
- Slog . e ( TAG , STRING0 + this + STRING1 + STRING2 + Debug . getCallers ( NUMBER0 ) ) ;
return null ;
}
... | Removed some spammy WindowManager logs |
<nb> public class SendMoneyController {
private void askForPasswordAndRetry ( ) {
Main . OverlayUI < WalletPasswordController > pwd = Main . instance . overlayUI ( STRING0 ) ;
final String addressStr = address . getText ( ) ;
+ final String amountStr = amountEdit . getText ( ) ;
pwd . controller . aesKeyPrope... | Fix a bug in SendMoneyController that caused it to forget the amount of money requested across password requests |
<nb> public class TachyonConf {
defaultProps . setProperty ( Constants . WORKER_MIN_WORKER_THREADS ,
String . valueOf ( Runtime . getRuntime ( ) . availableProcessors ( ) ) ) ;
defaultProps . setProperty ( Constants . MASTER_MIN_WORKER_THREADS ,
- String . valueOf ( NUMBER0 * Runtime . getRuntime ( ) . availabl... | reset min worker threads for tachyon workers |
<nb> public class UIServiceImpl
return chatWindowManager . getSelectedChat ( ) ;
}
-
+
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public String getCurrentPhoneNumber ( )
<nb> public class UIServiceImpl
new Color ( GuiActivator . getResources ( )
. getColor ( STRING0 ) ) ) ;
tool... | Increase tooltip dismiss delay |
<nb> public class Vector3 implements Serializable , Vector < Vector3 > {
COMMENT
public float z ;
- @ deprecated private final static Vector3 tmp = new Vector3 ( ) ;
- @ deprecated private final static Vector3 tmp2 = new Vector3 ( ) ;
- @ deprecated private final static Vector3 tmp3 = new Vector3 ( ) ;
- ... | Actually remove the tmp vectors |
<nb> public final class DisplayManagerService extends IDisplayManager . Stub {
synchronized ( mSyncRoot ) {
LogicalDisplay display = mLogicalDisplays . get ( displayId ) ;
if ( display != null && display . hasContentLocked ( ) != hasContent ) {
+ if ( DEBUG ) {
+ Slog . d ( TAG , STRING0 + displayId + STRING1... | Add debug message to help diagnose a presentation bug |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class XMLProfileParser implements ServerComponent {
private void processAlerts ( SMInputCursor alertsCursor , RulesProfile profile , ValidationM... | Log message about backward compatibility for XMLProfileParser |
<nb> abstract public class PyRemoteSshProcess extends Process {
public abstract Pair < String , Integer > obtainRemoteSocket ( String interpreterPath ) throws PyRemoteInterpreterException ;
public abstract PyRemoteSshProcess exec ( String command ) throws PyRemoteInterpreterException ;
+
+ public abstract boo... | Fixed bug in remote process termination |
<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 unused import |
<nb> import NAMESPACE ;
import NAMESPACE ;
import 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 NAMES... | Removed unused imports |
<nb> public final class RenderScriptBlur implements BlurAlgorithm {
}
@ override
- public void destroy ( ) {
+ public final void destroy ( ) {
blurScript . destroy ( ) ;
renderScript . destroy ( ) ;
if ( outAllocation != null ) { | Make destroy method final |
<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 OkHttpClientBuilder {
COMMENT
C... | Fix Quality flaw in sonar ws OkHttpClientBuilder |
<nb> public class PyTypeParser {
final PsiElement resolved = results . get ( NUMBER0 ) . getElement ( ) ;
if ( resolved instanceof PyTypedElement ) {
type = context . getType ( ( PyTypedElement ) resolved ) ;
+ if ( type instanceof PyClassLikeType ) {
+ type = ( ( PyClassLikeType ) type ) . toInstance ( ) ;
... | Parsing qualified type names should return class types for instances |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
COMMENT
public class TaskExecutionLogg... | Fixed parallel issue with task execution logger |
<nb> public class RepoRepository extends Repository {
@ override
boolean fileHasAnnotation ( File file ) {
- throw new UnsupportedOperationException ( STRING0 ) ;
+ return false ;
}
@ override | Fix fileHasAnnotations for Repo |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public class ConfigurationModelToDDMFormConverter {
setDDMFormFieldRepeatable ( attributeDefinition , ddmFormField ) ;
+ setDDMFormFieldDisplayStyle ( ddmFormField ) ;
... | String fields now accept multiple lines of text |
<nb> public class Reflections {
}
} catch ( Exception e ) {
if ( log != null && log . isDebugEnabled ( ) )
- log . debug ( STRING0 + file . getRelativePath ( ) + STRING1 + url . toExternalForm ( ) + STRING2 + scanner . getClass ( ) . getSimpleName ( ) , e . getMessage ( ) ) ;
+ log . debug ( STRING0 + file . ... | Fix swallowed exceptions when performing class scanning |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused imports |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class MessageBusImpl implements MessageBus {
private final ThreadLocal < Queue < DeliveryJob > > myMessageQueue = new ThreadLocal < Queue < DeliveryJob > > ( ) {
<nb> public class MessageBusImpl ... | Thread unsafe ArrayList to hold topic subscribers replaced with CopyOnWriteArrayList |
<nb> public class SpawnAction extends AbstractAction {
return this ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ public boolean hasOutputs ( ) {
+ return ! outputs . isEmpty ( ) ;
+ }
+
public Builder setResources ( ResourceSet resourceSet ) {
this . resourceSet = resourceSet ;
return this ; | Add method to check if the action produces any outputs |
<nb> public class XMPPTCPConnection extends XMPPConnection {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
- void startTLSReceived ( boolean required ) {
+ void startTLSReceived ( boolean required ) throws IOException {
if ( required && config . getSecurityMode ( ) ==
ConnectionConfiguration . SecurityMod... | Remove try catch in startTLSReceived |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unneeded import |
<nb> public class SaslStormServerAuthorizeHandler extends SimpleChannelUpstreamHandle
SINGLE
Channels . fireMessageReceived ( ctx , msg ) ;
}
- }
+ } | Removing newline from EOF |
<nb> public class JsFacade implements Exportable {
}
}
+ public void deleteMessage ( JsPeer peer , String id ) {
+ messenger . deleteMessages ( peer . convert ( ) , new long [ ] { Long . parseLong ( id ) } ) ;
+ }
+
public JsPromise deleteChat ( final JsPeer peer ) {
return JsPromise . create ( new Js... | Added message deletion |
<nb> public class BundleHelper {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix BundleHelper JavaDoc |
<nb> public class ProcessTemplates extends DefaultTask {
}
} ) ;
}
+ SINGLE
}
+ SINGLE | Render curly brace in code example |
<nb> public abstract class ActivatableNotificationView extends ExpandableOutlineView
super . onFinishInflate ( ) ;
mBackgroundNormal = ( NotificationBackgroundView ) findViewById ( R . id . backgroundNormal ) ;
mBackgroundDimmed = ( NotificationBackgroundView ) findViewById ( R . id . backgroundDimmed ) ;
+ upd... | Initialize background visibility of ActivatableNotificationView |
<nb> public interface ResourceCopier {
void setBasedir ( String basedir ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
void setDestdir ( String destdir ) ; | modify javadoc to eliminate breakiterator warning when generating docs |
<nb> public final class MoreExecutors {
SINGLE
}
}
- } ) ) ;
+ } , STRING0 + service ) ) ;
}
COMMENT | Give a readable name to the thread used by a delayed shutdown |
<nb> public class ConversationActivity extends XmppActivity
ConversationActivity . this . mConversationFragment . reInit ( getSelectedConversation ( ) ) ;
}
hideConversationsOverview ( ) ;
+ openConversation ( ) ;
}
} ) ;
mContentView = findViewById ( R . id . content_view_spl ) ;
<nb> public class Conv... | fixed regression in tablet ui |
<nb> public class MavenArtifact
List < String > allVersions = versions ;
if ( versionInfo . equals ( MavenArtifactReference . VERSION_PATTERN_RELEASE ) ) {
versionInfo = releaseVersion ;
+ if ( ! CommonUtils . isEmpty ( versionInfo ) && isBetaVersion ( versionInfo ) ) {
+ versionInfo = null ;
+ }
} else i... | Do not use alpha beta MAven artifact versions |
<nb> public class UtilTest {
}
@ test
+ public void toLowerHex_midValue ( ) {
+ assertThat ( toLowerHex ( NUMBER0 ) ) . isEqualTo ( STRING0 ) ;
+ }
+
+ @ test
public void toLowerHex_fixedLength ( ) {
assertThat ( toLowerHex ( NUMBER1 L ) ) . isEqualTo ( STRING1 ) ;
} | Adds middle test for toLowerHex |
<nb> public class BuildWork implements Work {
FileUtils . cleanDirectory ( buildWorkingDirectory ) ;
goPublisher . consumeLineWithPrefix ( STRING0 + buildWorkingDirectory . getAbsolutePath ( ) + STRING1 ) ;
} catch ( IOException e ) {
- bomb ( STRING2 + buildWorkingDirectory . getAbsolutePath ( ) ) ;
+ bomb (... | Log additional information when failing to clean a directory |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class XBreakpointManagerImpl implements XBreakpointManager , PersistentSta
@ notnull
@ override
public < B extends XBreakpoint ... | do not use ExtensionPointName findExtension it prevents breakpoint types inheritance |
<nb> public class RoutingService extends AbstractLifecycleComponent < RoutingService > i
if ( event . state ( ) . nodes ( ) . localNodeMaster ( ) ) {
SINGLE
if ( scheduledRoutingTableFuture == null ) {
+ SINGLE
+ routingTableDirty = true ;
scheduledRoutingTableFuture = threadPool . scheduleWithFixedDelay ( ... | do a reroute when a node becomes master |
<nb> public class UsageResource extends JaxRsResourceBase {
@ queryparam ( QUERY_END_DATE ) final String endDate ,
@ javax.ws.rs.core.context final HttpServletRequest request ) {
+ if ( startDate == null || endDate == null ) {
+ return Response . status ( Status . BAD_REQUEST ) . build ( ) ;
+ }
final Ten... | Add check on start end date for usage resource |
<nb> public class RootLoader extends URLClassLoader {
COMMENT
COMMENT
COMMENT
- protected Class loadClass ( final String name , boolean resolve ) throws ClassNotFoundException {
+ protected synchronized Class loadClass ( final String name , boolean resolve ) throws ClassNotFoundException {
Class c = this . ... | add sychronized flag to loadClass to ensure since internal structures are not thread safe |
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
if ( mLastY == Integer . MIN_VALUE ) {
rawDeltaY -= mMotionCorrection ;
}
- if ( dispatchNestedPreScroll ( NUMBER0 , - rawDeltaY , mScrollConsumed , mScrollOffset ) ) {
+ if ( dispatchNestedPreScroll ( NUMBER0 , mLastY !=... | Pass different dy into dispatchNestedSCroll |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GremlinPluginFunctionalTest implements GraphHolder
assertTrue ( response . indexOf ( STRING0 ) > response . indexOf ( STRING1... | Adding a test to track multiline script treatment in the REST layer |
<nb> public abstract class DeepWaterAbstractIntegrationTest extends TestUtil {
protected BackendTrain backend ;
@ beforeclass
- public static void stall ( ) { stall_till_cloudsize ( NUMBER0 ) ; }
+ public static void stall ( ) { stall_till_cloudsize ( NUMBER0 ) ; Assume . assumeTrue ( DeepWater . haveBackend ... | Add back the top level backend check |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.