diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class FileStructurePopup implements Disposable {
@ nullable
protected PsiFile getPsiFile ( final Project project ) {
- return PsiDocumentManager . getInstance ( project ) . getPsiFile ( myEditor . getDocument ( ) ) ;
+ return myEditor == null ? null : PsiDocumentManager . getInstance ( project ) .... | Structure viewer for simple editors support fixed |
<nb> abstract class AppCompatDelegateImplBase extends AppCompatDelegate {
@ override
public boolean onMenuOpened ( int featureId , Menu menu ) {
- return super . onMenuOpened ( featureId , menu )
- || AppCompatDelegateImplBase . this . onMenuOpened ( featureId , menu ) ;
+ super . onMenuOpened ( featureId ,... | Fix OnMenuVisibilityChangeListeners not working |
<nb> public abstract class SharedTreeModel < M extends SharedTreeModel < M , P , O > , P extend
_ntrees ++ ;
SINGLE
_scored_train = ArrayUtils . copyAndFillOf ( _scored_train , _ntrees + NUMBER0 , new ScoreKeeper ( ) ) ;
- _scored_valid = _validation_metrics != null ? ArrayUtils . copyAndFillOf ( _scored_valid ... | Fix a potential race condition in tree validation scoring |
<nb>
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+
package NAMESPACE ;
import NAMESPACE ; | Fixing missing license header |
<nb> public abstract class ProcessEngines {
}
for ( Iterator < URL > iterator = configUrls . iterator ( ) ; iterator . hasNext ( ) ; ) {
URL resource = iterator . next ( ) ;
+ log . info ( STRING0 + resource . toString ( ) + STRING1 ) ;
initProcessEnginFromResource ( resource ) ;
}
<nb> public abstract ... | Adding logging to process engine initialization to find strange errors on Jenkins |
<nb> public class XField extends XHook {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING3
+ STRING3 ,
+
+ STRING4 ,
+ STRING5 ,
+ STRING6
} ) ;
SINGLE | Prevent reflection of maps classes |
<nb> public final class Range < C extends Comparable > implements Predicate < C > , Serializ
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public boolean isEmpty ( ) {
<nb> public final class Range < C extends Comparable > implements Predicate < C > , Serializ
COMMENT
COMMENT
COMME... | Reduce visibility of Range asSet internally |
<nb> public class JarDiscoverer implements ITypeDiscoverer
catch ( LoaderException e )
{
FMLLog . log ( Level . SEVERE , e , STRING0 , ze . getName ( ) , candidate . getModContainer ( ) . getPath ( ) ) ;
+ jar . close ( ) ;
throw e ;
}
modParser . validate ( ) ; | Close the jar for cleanliness sake |
<nb> public class Drawer {
mListView = new ListView ( mActivity ) ;
mListView . setChoiceMode ( AbsListView . CHOICE_MODE_SINGLE ) ;
mListView . setDivider ( null ) ;
+ mListView . setDrawSelectorOnTop ( true ) ;
mListView . setClipToPadding ( false ) ;
if ( mTranslucentStatusBar ) { | improve drawer style |
<nb> public abstract class AssetExtractHandler {
public void setOutputFileName ( String outFileName ) {
SINGLE
- if ( StringUtils . isBlank ( outFileName ) ) {
+ if ( ! StringUtils . isBlank ( outFileName ) ) {
outFileName = outFileName . replaceAll ( STRING0 , STRING1 ) ;
}
this . outFileName = outFile... | Fixed wrong check |
<nb> public class IQRouterImpl extends BasicModule implements IQRouter {
}
}
- private boolean isLocalServer ( XMPPAddress recipientJID ) {
+
+ private boolean isLocalServer ( XMPPAddress recipientJID ) {
SINGLE
- SINGLE
- return recipientJID == null || recipientJID . getHost ( ) == null
- || STRING... | Fixed bug where localServer check would return incorrect boolean |
<nb> public class JavaCompletionContributor extends CompletionContributor {
result . addElement ( LookupElementBuilder . create ( STRING0 ) ) ;
}
- Set < String > usedWords = addReferenceVariants ( parameters , result , inheritors ) ;
-
addKeywords ( parameters , result ) ;
+ Set < String > usedWords = ... | add keywords before reference variants as they re quicker accounts for blinking JavaAutoPopupTest |
<nb> public class IpnbParser {
}
final JsonElement count = object . get ( STRING0 ) ;
if ( count != null ) {
- cellRaw . execution_count = count . getAsInt ( ) ;
+ cellRaw . execution_count = count . isJsonNull ( ) ? null : count . getAsInt ( ) ;
}
final JsonElement metadata = object . get ( STRING1 ) ;
... | handle nullJson in execution_count |
<nb> abstract class ELNode {
n . getExpression ( ) . visit ( this ) ;
}
+ @ suppresswarnings ( STRING0 )
public void visit ( Function n ) throws JasperException {
+ SINGLE
}
+ @ suppresswarnings ( STRING0 )
public void visit ( Text n ) throws JasperException {
+ SINGLE
}
+ @ suppresswarnings... | Suppress some invalid compiler warnings |
<nb> public class SpongePluginContainer implements ModContainer , PluginContainer {
Class < ? extends FMLEvent > eventClass = event . getClass ( ) ;
Class < ? extends Event > spongeEvent = ( Class < ? extends Event > ) EventRegistry . getAPIClass ( eventClass ) ;
if ( this . stateEventHandlers . containsKey ( spo... | Prevent crash if a plugin handler causes an error |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DatabaseUtilsTest extends AbstractDaoTestCase {
public void should_close_statement_and_resultset ( ) throws SQLException {
Connection connection = getConnection ( ) ;
try {
- ... | Fix compatibility of the test DatabaseUtilsTest with Oracle |
<nb> public class SpellChecker implements SpellCheckerSessionListener {
SINGLE
final boolean isEditing ;
+
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ final boolean apostrophe = ( selectionStart == end + NUMBER0 && editable . charAt ( end ) == STRING0 ) ;
if ( mIsSentenceSpellCheckSupported ) {
SINGLE
... | Defer spelling correction with apostrophe |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
... | fixed checkstyle issues |
<nb> public class Swagger {
this . basePath = basePath ;
}
- @ jsonignore
public List < Scheme > getSchemes ( ) {
return schemes ;
}
<nb> public class Swagger {
this . definitions = new HashMap < String , Model > ( ) ;
this . definitions . put ( key , model ) ;
}
- }
+ } | removed ignore annotation |
<nb> public class TextUtils {
COMMENT
public static int getLayoutDirectionFromLocale ( Locale locale ) {
if ( locale != null && ! locale . equals ( Locale . ROOT ) ) {
- final String scriptSubtag = ICU . getScript ( ICU . addLikelySubtags ( locale . toString ( ) ) ) ;
+ final String scriptSubtag = ICU . addLi... | Switch TextUtils over to new ICU API |
<nb> public class EmojiconGridFragment extends Fragment implements AdapterView . OnItem
super . onAttach ( activity ) ;
if ( activity instanceof OnEmojiconClickedListener ) {
mOnEmojiconClickedListener = ( OnEmojiconClickedListener ) activity ;
- } if ( getParentFragment ( ) instanceof OnEmojiconClickedListener... | Reformatted the code in EmojiconGridFragment |
<nb> public class DeadAgentReaperTest {
masterModel , TIMEOUT_HOURS , clock ) ;
reaper . startAsync ( ) . awaitRunning ( ) ;
- verify ( masterModel , timeout ( NUMBER0 ) ) . listHosts ( ) ;
+ verify ( masterModel , timeout ( NUMBER0 ) . atLeastOnce ( ) ) . listHosts ( ) ;
for ( final Datapoint datapoint :... | Fix flaky racey test |
<nb> public class InheritedInterfaceMethodTest extends TestCase {
public void testInvokeNewListMethodOnArrayList ( ) {
List list = new ArrayList ( ) ;
Object answer = InvokerHelper . invokeMethod ( list , STRING0 , new Object [ ] { STRING1 } ) ;
- assertEquals ( new Integer ( NUMBER0 ) , answer ) ;
-
+ asse... | fill small gap in GDK extend count for primitive arrays |
<nb> public class SearchQueryQueryToolChest implements QueryToolChest < Result < SearchRe
SINGLE
Properties props = Initialization . loadProperties ( ) ;
- maxSearchLimit = PropUtils . getPropertyAsInt ( props , STRING0 , NUMBER0 ) ;
+ maxSearchLimit = PropUtils . getPropertyAsInt ( props , STRING1 , NUMBER0 ... | Fix configuration property naming issue |
<nb> public class FlipVerticalTransformer extends ABaseTransformer {
view . setRotationX ( rotation ) ;
}
+ @ override
+ protected void onPostTransform ( View page , float position ) {
+ super . onPostTransform ( page , position ) ;
+
+ if ( position > - FLOAT0 && position < FLOAT0 ) {
+ page . setVis... | Fix click event with FlipVerticalTransformer |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class ADBParser {
+
public List < Device > parseGetDevicesOutput ( String adbDevicesOutput ) {
List < Device > devices = new LinkedList < > ( ) ;
String [ ] splittedOutput = adbDevicesOutput . split ( STRING0 ) ;
<nb> public class ADBParser {
String [ ... | Do not parse devices connected using an ip address |
<nb> public class SQLiteDatabase extends SQLiteClosable {
return ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ String prefixSql = sql . substring ( NUMBER0 , NUMBER1 ) ;
+ if ( prefixSql . toLowerCase ( ) . startsWith ( STRING0 ) ) {
+ return ;
+ }
+
SQLiteCompiledSql compiledSql = null ;
synchronized (... | caching PRAGMA sql statements caused cts tests failures |
<nb> public final class SecurityClassLoad {
private final static void loadUtilPackage ( ClassLoader loader )
throws Exception {
String basePackage = STRING0 ;
- loader . loadClass
- ( basePackage + STRING1 ) ;
loader . loadClass ( basePackage + STRING2 ) ;
} | Remove reference to deleted class |
<nb> public class AtmosphereResourceImpl implements AtmosphereResource {
SINGLE
if ( ! skipCreation && ( broadcaster == null || broadcaster . getScope ( ) == Broadcaster . SCOPE . REQUEST ) && ! isJersey ) {
- String id = broadcaster != null ? broadcaster . getID ( ) : getClass ( ) . getName ( ) ;
+ String id... | Use the instead of AtmosphereResource s class name |
<nb> public abstract class OBaseWorkload implements OWorkload {
indent . append ( STRING0 ) ;
return String . format (
- STRING1 ,
+ STRING2 ,
indent , total * NUMBER0 / ( float ) totalTime , throughputAvgNs / NUMBER1 f , indent , latencyAvgNs / NUMBER1 f ,
latencyPercentileAvg , latencyMinNs / NUMBER1 f ... | fixed small typo |
<nb> public class XDebuggerTreePanel implements DnDSource {
myMainPanel = new JPanel ( new BorderLayout ( ) ) ;
myMainPanel . add ( ScrollPaneFactory . createScrollPane ( myTree ) , BorderLayout . CENTER ) ;
Disposer . register ( parentDisposable , myTree ) ;
+ Disposer . register ( parentDisposable , new Dispo... | fixing debugger memory leaks |
<nb> abstract class AbstractRecord extends AbstractStore implements Record {
}
@ override
- public int getIndex ( String fieldName ) {
+ public final int getIndex ( String fieldName ) {
return fields . getIndex ( fieldName ) ;
} | Added missing final keyword |
<nb> public class InCodeGenerator
static SwitchGenerationCase checkSwitchGenerationCase ( Type type , List < RowExpression > values )
{
if ( values . size ( ) <= NUMBER0 ) {
- if ( type instanceof BigintType || type instanceof DateType ) {
+ if ( ! ( type instanceof BigintType || type instanceof DateType ) ) ... | Fix reversed condition in InCodeGenerator |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix ColorInt javadoc |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class Json {
- private final JsonFactory factory ;
- private final ObjectMapper mapper ;
- private final TypeFactory typeFactory ;
+ protected JsonFactory factory ;
+ protected ObjectMapper mapper ;
+ protected TypeFactory typeFactory ;
COMMENT
COMM... | relax access controls so subclasses can access the mapper etc |
<nb>
package NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
public class JoinConfig {
private MulticastConfig multicastConfig = new MulticastConfig ( ) ; | Improved javadoc JoinConfig |
<nb> private NetworkStateTracker makeWimaxStateTracker ( ) {
if ( checkType == prevNetType ) continue ;
if ( mNetConfigs [ checkType ] == null ) continue ;
if ( ! mNetConfigs [ checkType ] . isDefault ( ) ) continue ;
+ if ( mNetTrackers [ checkType ] == null ) continue ;
SINGLE
SINGLE | Fix NPE in ConnectivityService |
<nb> public class MortarScope {
@ suppresswarnings ( STRING0 ) SINGLE
private < T > T findService ( String serviceName ) {
if ( ! isDestroyed ( ) ) {
- if ( MortarScope . class . getName ( ) . equals ( serviceName ) ) return ( T ) this ;
+ if ( SERVICE_NAME . equals ( serviceName ) ) return ( T ) this ;
T... | Clarify the service lookup magic |
<nb> public class ActivityMain extends Activity implements OnItemSelectedListener , Co
@ override
protected void onCreate ( Bundle savedInstanceState ) {
super . onCreate ( savedInstanceState ) ;
-
- Util . log ( null , Log . WARN , STRING0 + getResources ( ) . getConfiguration ( ) . mcc ) ;
- Util . log ( ... | Remove test code |
<nb> public class AsyncNetworkSocket implements AsyncSocket {
public void onDataWritable ( ) {
SINGLE
+ if ( ! mChannel . isChunked ( ) ) {
+ SINGLE
+ mKey . interestOps ( ~ SelectionKey . OP_WRITE & mKey . interestOps ( ) ) ;
+ }
if ( mWriteableHandler != null )
mWriteableHandler . onWriteable ( ) ; ... | Fix spin locking in AsyncServer |
<nb> final class ActivityStack {
activities . get ( activityNdx ) . setSleeping ( false ) ;
}
}
+ if ( mPausingActivity != null ) {
+ Slog . d ( TAG , STRING0 ) ;
+ activityPausedLocked ( mPausingActivity . appToken , true ) ;
+ }
}
COMMENT | Treat screen on while pausing as pause timeout |
<nb> public class GtasksTaskListUpdater extends OrderedListUpdater < StoreObject > {
private void orderAndIndentHelper ( String listId , AtomicLong order , long parent , int indentLevel ) {
TodorooCursor < Metadata > metadata = metadataDao . query ( Query . select ( Metadata . PROPERTIES )
. where ( Criterion . a... | Handle infinite loop when parent is child |
<nb> public class CalendarHelper {
STRING0 , Locale . ENGLISH ) ;
public static SimpleDateFormat MMMMMyyyyFormat = new SimpleDateFormat (
- STRING1 , Locale . ENGLISH ) ;
+ STRING1 , Locale . getDefault ( ) ) ;
COMMENT
COMMENT | Using default locale |
<nb> public class Channel implements EstimateProvider , Cloneable , DumpableConnection <
case FORWARD :
throw new CompilerException ( STRING0 +
STRING1 ) ;
- case NONE : SINGLE
+ case NONE : SINGLE
case BROADCAST :
case PARTITION_HASH :
case PARTITION_RANGE :
case PARTITION_RANDOM :
+ case PARTITION... | Fix Bug with forced repartitioning in DOP changes |
<nb> public class Bookmarks implements PrivateData {
String jid = parser . getAttributeValue ( STRING0 , STRING1 ) ;
conf . setName ( name ) ;
- conf . setAutoJoin ( Boolean . parseBoolean ( autojoin ) ) ;
+ conf . setAutoJoin ( Boolean . valueOf ( autojoin ) . booleanValue ( ) ) ;
conf . setJid ( jid ) ;
... | Fixed JDK compatibility issue |
<nb> public class RegisterType {
SINGLE
protected static byte [ ] [ ] mergeTable =
{
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
... | Fix up the spacing of the merge table |
<nb> public class OpeningHoursParser {
for ( Token [ ] pair : listOfPairs ) {
if ( pair [ NUMBER0 ] != null && pair [ NUMBER1 ] != null ) {
if ( pair [ NUMBER0 ] . mainNumber <= pair [ NUMBER1 ] . mainNumber ) {
- for ( int j = pair [ NUMBER0 ] . mainNumber ; j <= pair [ NUMBER1 ] . mainNumber ; j ++ ) {
+ fo... | Fix array length problem |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NetworkDispatcher extends SimpleChannelInboundHandler < Packet > imple
@ override
public void exceptionCaught ( ChannelHand... | Try and stop the epic channel closed spam at close time |
<nb> public class NestedLoopOperation implements CompletionListenable {
if ( tryFinish ( ) ) {
return ;
}
- switchTo ( left . resumeable ) ;
+ if ( left . upstreamFinished ) {
+ SINGLE
+ assert emitRightJoin :
+ STRING0 ;
+ switchTo ( right . resumeable ) ;
+ } else {
+ switchTo ( left . resumeabl... | Fix pause resume handling on left join null emit |
<nb> public class AlpnOpenListener implements ChannelListener < StreamConnection > {
}
if ( match != null ) {
- sslEngine . getSession ( ) . putValue ( PROTOCOL_KEY , match ) ;
+ sslEngine . getHandshakeSession ( ) . putValue ( PROTOCOL_KEY , match ) ;
return potentialConnection . selected = match ;
} | Use the correct SSLSession during handshake |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class IncrementingEntryProcessor extends AbstractEntryProcessor < Integer , Integer > {
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT... | Improved JavaDoc of distributed classloading blacklisting and whitelisting test classes |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed ItemStack import |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NA... | removed bogus import from MM |
<nb> public class RSConnectPublishWizard
SINGLE
return new PublishMultiplePage ( STRING0 , STRING0 , null , input ) ;
}
+ else if ( ! input . isMultiRmd ( ) &&
+ ( ! input . isExternalUIEnabled ( ) || ! input . isSelfContained ( ) ) )
+ {
+ SINGLE
+ SINGLE
+ return new PublishReportSourcePage ( STRING... | skip RPubs page in wizard when doc is not RPubs eligible |
<nb> public class PeopleUtils {
for ( int i = NUMBER0 ; i < jsonArray . length ( ) ; i ++ ) {
Person person = Person . fromJSON ( jsonArray . optJSONObject ( i ) , localTableBlogId ) ;
- peopleList . add ( person ) ;
+ if ( person != null ) {
+ peopleList . add ( person ) ;
+ }
}
return peopleList ; | Fixed a possible NPE convertion JSON to Person model |
<nb> public class DisruptorQueue implements IStatefulObject {
try {
publishDirect ( FLUSH_CACHE , true ) ;
} catch ( InsufficientCapacityException e ) {
- throw new RuntimeException ( STRING0 ) ;
+ throw new RuntimeException ( STRING0 , e ) ;
}
}
} | add exception as cause when re thrown |
<nb> public class GdxTests {
SINGLE
SINGLE
TextButtonTest . class , TextButtonTestGL2 . class , TextureBindTest . class , SortedSpriteTest . class ,
- ExternalMusicTest . class , SoftKeyboardTest . class , DirtyRenderingTest . class , YDownTest . class , PathTest . class ,
+ ExternalMusicTest . class , SoftKe... | Remove PathTest from the tests |
<nb> public class SieveCoreferenceSystem {
CorefMentionFinder mentionFinder ;
if ( mentionFinderPropFilename != null ) {
Properties mentionFinderProps = new Properties ( ) ;
- mentionFinderProps . load ( new FileInputStream ( mentionFinderPropFilename ) ) ;
+ FileInputStream fis = new FileInputStream ( mentio... | Close a file |
<nb> public class MediaBrowserActivity extends AppCompatActivity implements MediaGrid
public void onSavedEdit ( String mediaId , boolean result ) {
if ( mMediaEditFragment != null && mMediaEditFragment . isVisible ( ) && result ) {
- FragmentManager fm = getFragmentManager ( ) ;
- fm . popBackStack ( ) ;
+ ... | Always revert the navigation icon to back |
<nb> public class LeakTask implements Runnable
public void cancel ( )
{
exception = null ;
- if ( scheduledFuture != null ) {
- scheduledFuture . cancel ( false ) ;
- }
+ scheduledFuture . cancel ( false ) ;
}
}
<nb> public class LeakTask implements Runnable
public void cancel ( )
{
exception ... | Eliminate unnecessary null check |
<nb> public class OGraphDatabase extends ODatabaseDocumentTx {
public static final String LABEL = STRING0 ;
private boolean safeMode = false ;
- protected OClass vertexBaseClass ;
- protected OClass edgeBaseClass ;
+ protected OClass vertexBaseClass ;
+ protected OClass edgeBaseClass ;
public OGraphDa... | Implemented close to clean graphdb specific properties |
<nb> public enum InventoryType {
COMMENT
COMMENT
COMMENT
- ENDER_CHEST ( NUMBER0 , STRING0 ) ;
+ ENDER_CHEST ( NUMBER0 , STRING0 ) ,
+ COMMENT
+ COMMENT
+ COMMENT
+ ANVIL ( NUMBER1 , STRING1 ) ,
+ COMMENT
+ COMMENT
+ COMMENT
+ BEACON ( NUMBER2 , STRING2 ) ,
+ ;
private final int size ;
... | Add inventory types for new containers |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class PageConfig {
+ public final class PageConfig {
SINGLE
boolean check4on = true ;
<nb> public class PageConfig {
COMMENT
COMMENT
public int getIntParam ( String name , int defaultValue ) {
+ int ret = defaultValue ;
String s = req ... | Don t reassign parameters |
<nb> public final class MultiThreadedClaimStrategy
COMMENT
public MultiThreadedClaimStrategy ( final int bufferSize , final int pendingBufferSize )
{
- if ( Integer . bitCount ( bufferSize ) != NUMBER0 )
- {
- throw new IllegalArgumentException ( STRING0 + bufferSize ) ;
- }
-
if ( Integer . bitCount ... | Remove unnecessary check |
<nb> public class Robolectric {
ShadowViewConfiguration . class ,
ShadowViewGroup . class ,
ShadowViewFlipper . class ,
+ ShadowViewMeasureSpec . class ,
ShadowViewStub . class ,
ShadowWebSettings . class ,
ShadowWebView . class , | Add shadow for View MeasureSpec class |
<nb> public class HeadersFragment extends BaseRowFragment {
@ override
protected void onRowSelected ( ViewGroup parent , View view , int position , long id ) {
if ( mOnItemSelectedListener != null ) {
- Row row = ( Row ) getAdapter ( ) . get ( position ) ;
- mOnItemSelectedListener . onItemSelected ( null , r... | Don t request items at negative indicies |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public class ReaderGapMarkerView extends RelativeLayout {
private TextView mText ;
- private ImageView m... | Removed unused ImageView variable from gap marker view |
<nb> public class TextFieldWithAutoCompletion < T > extends LanguageTextField {
protected String getLookupString ( @ notnull final String item ) {
return item ;
}
-
- @ override
- protected String getTailText ( @ notnull final String item ) {
- return null ;
- }
-
- @ override
- protected String g... | text completion remove empty implementations |
<nb> public interface RecordStore {
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | add some more explanation |
<nb> public class MethodInliner {
protected MethodNode markPlacesForInlineAndRemoveInlinable ( @ notnull MethodNode node ) {
node = prepareNode ( node ) ;
- Analyzer < SourceValue > analyzer = new Analyzer < SourceValue > ( new SourceInterpreter ( ) ) ;
+ Analyzer < SourceValue > analyzer = new Analyzer < Sou... | Analyzer Frame patching cause exception on void non local returns |
<nb> public class ConcurrentQueriesTest {
@ override
public Void call ( ) {
- try {
for ( int i = NUMBER0 ; i < CYCLES ; i ++ ) {
ODatabaseDocumentTx db = new ODatabaseDocumentTx ( url ) . open ( STRING0 , STRING0 ) ;
try {
<nb> public class ConcurrentQueriesTest {
totalRetries . addAndGet ( retry ) ;... | Prevent eating of exception by ConcurrentQueriesTest |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Dbinfo extends GraphDatabaseApp
{
GraphDatabaseService graphDb = getServer ( ) . getDb ( ) ;
Kernel kernel = null ;
... | Uses the AbstractGraphDatabase instead of EmbeddedGraphDatabase |
<nb> class BukkitEntity implements Entity {
@ suppresswarnings ( STRING0 )
< T > T getMetaData ( Class < T > metaDataClass ) {
- if ( metaDataClass == Tameable . class && getEntity ( ) instanceof org . bukkit . entity . Tameable ) {
+ if ( metaDataClass == Tameable . class && getEntity ( ) instanceof org . bu... | Fixed formatting error in BukkitEntity |
<nb> public class OwnCloudServerCheckOperation extends RemoteOperation {
}
public boolean isSharedSupported ( ) {
OwnCloudVersion shareServer = new OwnCloudVersion ( OCVERSION_SHARED_SUPPORTED ) ;
- if ( isOnline ( ) ) {
+ if ( mOCVersionString != null ) {
return mOCVersionString . compareTo ( shareServer )... | Add new check to isSharedSupported |
<nb> public class IndexNodeFunctionalityTest
assertEquals ( NUMBER0 , response . getStatus ( ) ) ;
hits = ( Collection < ? > ) JsonHelper . jsonToSingleValue ( response . getEntity ( String . class ) ) ;
SINGLE
- SINGLE
+ assertEquals ( NUMBER1 , hits . size ( ) ) ;
}
COMMENT | Commit a failing test the should be resolved in order to verify fulltext searches via REST |
<nb> public class MoveDirectoryWithClassesProcessor extends BaseRefactoringProcessor
for ( PsiDirectory directory : myDirectories ) {
final TargetDirectoryWrapper wrapper = myNestedDirsToMove . get ( directory ) ;
final PsiDirectory targetDirectory = wrapper . getTargetDirectory ( ) ;
- if ( targetDirectory == ... | revert wrong commit |
<nb> public class RecordReaderMultiDataSetIterator implements MultiDataSetIterator {
}
@ override
+ public void reset ( ) {
+ for ( RecordReader rr : recordReaders . values ( ) ) rr . reset ( ) ;
+ for ( SequenceRecordReader rr : sequenceRecordReaders . values ( ) ) rr . reset ( ) ;
+ }
+
+ @ override... | Add RecordReaderMultiDataSetIterator reset functionality |
<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 ;
@ te... | Fix test failure |
<nb> public interface Project extends Comparable < Project > {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
public interface Configuration extend... | Marked the conflict resolution part of the api experimental in the javadocs and removed some of the documentation about it |
<nb> public class DraggableView extends LinearLayout {
return left ;
}
+ @ override
+ public int clampViewPositionVertical ( View child , int top , int dy ) {
+ return top ;
+ }
} | Vertical drag supported overriding clampViewPositionVertical method |
<nb> public class PeopleContainer extends LinearLayout {
for ( int i = NUMBER0 ; i < getChildCount ( ) ; i ++ ) {
TextView textView = getTextView ( i ) ;
JSONObject person = PeopleContainer . createUserJson ( textView ) ;
- if ( person != null )
- people . put ( person ) ;
+ if ( person != null ) {
+ Stri... | Fixed an issue where you could share a list with a number user id instead of email |
<nb> public class TextArea extends TextField {
@ override
public boolean keyDown ( InputEvent event , int keycode ) {
- super . keyDown ( event , keycode ) ;
+ boolean result = super . keyDown ( event , keycode ) ;
Stage stage = getStage ( ) ;
if ( stage != null && stage . getKeyboardFocus ( ) == TextArea... | Get result when calling super in keyDown for later return |
<nb> public class Solo {
String value = ( String ) method . invoke ( null , property ) ;
return Integer . parseInt ( value ) ;
} catch ( Exception e ) {
- e . printStackTrace ( ) ;
return defaultValue ;
}
} | Removed printStackTrace in initializeTimeout |
<nb> public class PrivacyService {
db . endTransaction ( ) ;
}
- if ( dbFile . exists ( ) )
- Util . setPermission ( dbFile . getAbsolutePath ( ) , NUMBER0 , - NUMBER1 , PrivacyManager . cAndroidUid ) ;
} else if ( db . needUpgrade ( NUMBER2 ) ) {
SINGLE
+
} else if ( db . needUpgrade ( NUMBER3 ) ) { ... | Always set database permission |
<nb> public class MultiTypeRequestCoordinator implements RequestCoordinator , Request
@ override
public boolean isComplete ( ) {
- return isAnyRequestComplete ( ) ;
+ for ( Request request : requests ) {
+ if ( request . isComplete ( ) ) {
+ return true ;
+ }
+ }
+ return false ;
}
@ override ... | Fix bug in multi type request coordinator |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ threadsafe
public final class TachyonConf {
COMMENT
public static final String DEFAULT_PROPERT... | Adding thread safety annotations for tachyon conf in common module |
<nb> abstract class ComponentStoreImpl implements IComponentStore {
}
session . reset ( ) ;
LOG . info ( e ) ;
- IOException ioException = new IOException ( ) ;
+ IOException ioException = new IOException ( e . getMessage ( ) ) ;
ioException . initCause ( e ) ;
throw ioException ;
} | preserve message text for IOException |
<nb> public class CypherService
Map < String , Object > params = null ;
try
{
- params = ( Map < String , Object > ) ( command . containsKey ( PARAMS_KEY ) ? command . get ( PARAMS_KEY ) : new
- HashMap < String , Object > ( ) ) ;
+ params = ( Map < String , Object > ) ( command . containsKey ( PARAMS_KEY )... | turning null parameter arguments into empty maps |
<nb> public class TerrainGrid extends TerrainQuad {
attachQuadAt ( q4 , NUMBER0 ) ;
this . currentCell = cam ;
- this . setLocalTranslation ( cam . mult ( this . getLocalScale ( ) . mult ( this . quadSize ) ) ) ;
+ this . setLocalTranslation ( cam . mult ( this . getLocalScale ( ) . mult ( this . quadSize - N... | calculating localTranslation after gridChange |
<nb> public class SvnCommand {
private void startHandlingStreams ( ) {
outputAdapter = new CapturingProcessAdapter ( ) ;
myHandler . addProcessListener ( outputAdapter ) ;
- myHandler . addProcessListener ( new ErrorTracker ( ) ) ;
- myHandler . addProcessListener ( new ProcessEventTracker ( ) ) ;
+ myHandl... | Renamed listeners from SvnCommand |
<nb> public class PerformanceMonitor {
COMMENT
COMMENT
public static final HazelcastProperty ENABLED
- = new HazelcastProperty ( STRING0 , false ) ;
+ = new HazelcastProperty ( STRING1 , false ) ;
COMMENT
COMMENT | Performance monitor was using wrong property name |
<nb> public abstract class Contacts {
public abstract Intent contactPickerIntent ( ) ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public abstract ContactItem getEmailFromContactPicker ( final Intent intent )... | Updated JavaDoc for getEmailFromContactPicker |
<nb> public class DanmakuRenderer extends Renderer {
@ override
public void release ( ) {
DanmakusRetainer . release ( ) ;
- DanmakuFilters . getDefault ( ) . release ( ) ;
+ DanmakuFilters . getDefault ( ) . clear ( ) ;
}
@ override | not release the DanmakuFilters instance |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class Main {
+ public final class Main {
COMMENT
COMMENT
COMMENT | Make class final |
<nb> public class SingletonComponent extends AbstractComponent {
}
return this . singletonComponentInstance ;
}
+
+ @ override
+ public void stop ( ) {
+ synchronized ( this . singletonComponentInstance ) {
+ if ( this . singletonComponentInstance != null ) {
+ this . destroyInstance ( this . singleto... | Destroy the singleton component instance on component s stop |
<nb> public class StatisticalCorefProperties {
}
if ( conll ( props ) ) {
- newProps . setProperty ( CorefProperties . PARSER_PROP , STRING0 ) ;
+ newProps . setProperty ( CorefProperties . PARSER_PROP , props . getProperty ( CorefProperties . PARSER_PROP , STRING0 ) ) ;
newProps . setProperty ( CorefProper... | allow dependency mention detection on conll |
<nb> public class SqliteAndroidDatabaseType extends BaseSqliteDatabaseType implements
appendShortType ( sb ) ;
}
+ @ suppresswarnings ( STRING0 )
@ override
public FieldConverter getFieldConverter ( DataType dataType ) {
SINGLE
switch ( dataType ) {
case JAVA_DATE :
- return DataType . JAVA_DATE_STR... | Fixed JAVA_DATE deprecated handling |
<nb> public class CallPeerMediaHandler
locallyOnHold = false ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
private void closeStream ( MediaType type )
{
if ( type == MediaType . AUDIO )
<nb> public class CallPeerMediaHandler
audioStream . setMute ( mute ) ;
}
+ COMMEN... | Adds javadocs to MediaHandler java |
<nb>
COMMENT
- Copyright NUMBER0 Immutables Authors and Contributors
+ Copyright NUMBER0 - NUMBER1 Immutables Authors and Contributors
- Licensed under the Apache LicenseVersion FLOAT0 ( the STRING0 ) ;
+ Licensed under the Apache License , Version FLOAT0 ( the STRING0 ) ;
you may not use this file except... | fixed license header |
<nb> public class ExtensionManager {
public static class EpisodeActionReceivedEvent {
public int episodeTvdbId ;
+
public EpisodeActionReceivedEvent ( int episodeTvdbId ) {
this . episodeTvdbId = episodeTvdbId ;
}
<nb> public class ExtensionManager {
return extensions ;
}
+ COMMENT
+ COMMENT
... | Add isExtensionEnabled helper to ExtensionManager |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.