diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> final class HttpReadListener implements ChannelListener < StreamSourceChannel > {
if ( exchange . isPersistent ( ) && ! exchange . isUpgrade ( ) ) {
final StreamSourceChannel channel = this . requestChannel ;
final HttpReadListener listener = new HttpReadListener ( responseChannel , channel , exchange . getC... | Adjust the dispatch strategy based on if we are pipelining or not |
<nb> public class GCalEventDownloader extends AbstractActiveService implements Manage
return myService . getFeed ( myQuery , CalendarEventFeed . class ) ;
}
catch ( AuthenticationException ae ) {
- logger . error ( STRING0 , ae ) ;
+ logger . error ( STRING1 , ae . getMessage ( ) ) ;
}
catch ( Exception e... | improved some logging statements |
<nb> public final class AlarmControlSet implements TaskEditControlSet {
return true ;
}
- }
+ }
<nb> public class TaskAdapter extends CursorAdapter implements Filterable {
requestNewDetails ( task ) ;
}
+ if ( taskDetailLoader . size ( ) > NUMBER0 ) {
+ activity . runOnUiThread ( new Runnable ( ) ... | Enforce refresh details date after tag gets removed and other details updating actions |
<nb> public final class ViewRootImpl implements ViewParent ,
COMMENT
COMMENT
private boolean isDisplayedOnScreen ( View view ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
return ( view . mAttachInfo != null
&& view . mAttachInfo . mWindowVisibility == View . VISIBLE
- && view . getVisibility ( ) == View .... | Accessibility query APIs report invisible views |
<nb> public class PhoneStatusBar extends StatusBar {
SINGLE
SINGLE
public void userActivity ( ) {
- if ( mNavigationBarView != null ) {
- mNavigationBarView . setHidden ( false ) ;
+ if ( NUMBER0 != ( mSystemUiVisibility & View . SYSTEM_UI_FLAG_HIDE_NAVIGATION ) ) {
+ try {
+ mBarService . setSystemUiVi... | Properly generate systemUiVisibilityChanged callbacks |
<nb> public class OverScroller {
COMMENT
public void setFinalX ( int newX ) {
if ( mScrollMode == MODE_DEFAULT ) {
+ if ( newX < mMinimumX ) {
+ mMinimumX = newX ;
+ }
+ if ( newX > mMaximumX ) {
+ mMaximumX = newX ;
+ }
mDefaultScroller . setFinalX ( newX ) ;
}
}
<nb> public class OverScrolle... | Fix a bug in OverScroller setFinalX Y |
<nb> public class RoutesCompile extends SourceTask {
COMMENT
private List < String > additionalImports = new ArrayList < String > ( ) ;
- private boolean javaProject ;
private boolean namespaceReverseRouter ;
private boolean generateReverseRoutes = true ;
private PlayPlatform platform ;
<nb> public clas... | Remove javaProject property from RoutesCompile |
<nb> public final class KotlinPropertyAccessTranslator extends PropertyAccessTranslat
@ override
@ notnull
public JsExpression translateAsGet ( ) {
- SINGLE
PropertyGetterDescriptor getter = propertyDescriptor . getGetter ( ) ;
assert getter != null : STRING0 ;
return callBuilderForAccessor ( )
<nb> pub... | Resolve outdated TODOs |
<nb> public class GlobalStatusSelectorBox
group . add ( createMenuItem ( GlobalStatusEnum . OFFLINE , - NUMBER0 ) ) ;
if ( ! GuiActivator . getConfigurationService ( )
- . getBoolean ( HIDE_GLOBAL_STATUS_MESSAGE , false ) )
+ . getBoolean ( HIDE_GLOBAL_STATUS_MESSAGE , false )
+ && isPresenceOpSetForProvide... | Disables global status message menu and if no operation set to support it |
<nb> public final class LogUtil {
public static final int ERROR = NUMBER0 ;
- public static final int LEVEL = ERROR ;
+ public static int level = ERROR ;
public static void d ( String tagName , String message ) {
- if ( LEVEL >= DEBUG ) {
+ if ( level <= DEBUG ) {
Log . d ( tagName , message ) ;
}... | Modify the log level |
<nb> public class YourTest {
protected CodeInsightTestFixture myFixture ;
SINGLE
SINGLE
- final String dataPath = STRING0 ;
+ final String dataPath = STRING1 ;
@ before | Updated version of the test source file |
<nb> public class PsiImmediateClassType extends PsiClassType . Stub {
if ( substituted != null ) {
lst . add ( substituted ) ;
}
+ else {
+ return PsiType . EMPTY_ARRAY ;
+ }
}
return lst . toArray ( createArray ( lst . size ( ) ) ) ;
} | don t provide invalid types with inconsistent number of parameters if type corresponds to the raw substitution |
<nb> abstract class AbstractOperationContext implements OperationContext {
}
public final ProcessType getProcessType ( ) {
- assert isControllingThread ( ) ;
return processType ;
}
public final RunningMode getRunningMode ( ) {
- assert isControllingThread ( ) ;
return runningMode ;
}
@ suppres... | Remove unnecessary assertions that a known thread is reading immutable fields |
<nb> public class CachingAsyncAuthenticator {
new IteratingAuthenticator ( callback ) . start ( ) ;
}
- COMMENT
- COMMENT
- COMMENT
- public void reset ( ) {
- authenticatedDatabases . clear ( ) ;
- }
-
SINGLE
- private Set < String > getUnauthenticatedDatabases ( ) {
+ public Set < String > g... | Fixed a bug in where the caching authenticator was not actually caching |
<nb> public class Inspect extends Request {
if ( len == - NUMBER0 )
break ;
off += len ;
+ if ( off == bs . length ) SINGLE
+ bs = Arrays . copyOf ( bs , bs . length * NUMBER1 ) ;
}
} catch ( IOException ioe ) { SINGLE
} finally { | Handle files which compress extremely well |
<nb> public class DecryptStreamParser {
DecryptedTempFileBody body = new DecryptedTempFileBody ( transferEncoding , decryptedTempDirectory ) ;
OutputStream outputStream = body . getOutputStream ( ) ;
try {
- IOUtils . copy ( inputStream , outputStream ) ;
+ InputStream decodingInputStream ;
+ boolean closeS... | Revert fix double application of transfer decoding for decrypted parts |
<nb> public class MessageViewFragment extends Fragment implements OnClickListener ,
@ override
public void onClick ( View view ) {
- switch ( view . getId ( ) ) {
- case R . id . download : {
- ( ( AttachmentView ) view ) . saveFile ( ) ;
- break ;
- }
- case R . id . download_remainder : {
- onDown... | Remove old unused code from click handler |
<nb> public abstract class AbstractSamlObjectBuilder {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public String marshalSamlXmlObject ( final XMLObject object , final StringWriter writer ) {
try { | Fixed CS issue |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class ResourceTypeTree implements BatchExtension , ServerExtension {
public Builder addRelations ( String parentQualifier ,... | Remove the dependency on ArrayUtils from ResourceTypeTree |
<nb> public class PyTypeParser {
}
SINGLE
for ( PyClass aClass : classes ) {
- if ( aClass . getQualifiedName ( ) . startsWith ( STRING0 ) ) {
+ final String name = aClass . getQualifiedName ( ) ;
+ if ( name != null && name . startsWith ( STRING0 ) ) {
final PyType t = new PyClassType ( aClass , false ) ... | Fixed NPE in PyTypeParser |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
public class MD5Test
{
public static void main ( String [ ] argv ) throws FileNotFoundException
{
- MD5Loader . loadModel ( new FileInputStream ( STR... | changed added debug renderer |
<nb> public class GrailsASTUtils {
new ClassExpression ( constructorMethod . getDeclaringClass ( ) ) , STRING0 , arguments ) ;
constructCallExpression . setMethodTarget ( constructorMethod ) ;
ExpressionStatement constructorInitExpression = new ExpressionStatement ( constructCallExpression ) ;
- constructorBody... | fixed failing tests |
<nb> public class MagicLinkRequestFragment extends Fragment {
}
private void sendMagicLinkRequest ( ) {
+ disableRequestEmailButtonAndShowProgressDialog ( ) ;
Map < String , String > params = new HashMap < > ( ) ;
params . put ( EMAIL_KEY , mEmail ) ; | calling method when button is clicked |
<nb> public class SslHandler extends StreamToStreamCodec {
SINGLE
private final boolean startTls ;
- private boolean firstMessageSend ;
+ private boolean sentFirstMessage ;
private volatile boolean enableRenegotiation = true ;
<nb> public class SslHandler extends StreamToStreamCodec {
@ override
p... | Fix starttls support |
<nb> public class HistogramLogReader {
histogram . setStartTimeStamp ( ( long ) ( absoluteStartTimeStampSec * FLOAT0 ) ) ;
histogram . setEndTimeStamp ( ( long ) ( absoluteEndTimeStampSec * FLOAT0 ) ) ;
+ scanner . nextLine ( ) ; SINGLE
+
return histogram ;
} catch ( java . util . NoSuchElementException... | Fix log reader to handle CR LF newline format correctly |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ; | Removed unused import |
<nb> public class MainActivity extends ActionBarActivity {
} else if ( parser instanceof JacksonDatabindParser ) {
mBarChart . addTiming ( section , NUMBER0 , parseResult . runDuration / NUMBER1 f ) ;
} else if ( parser instanceof LoganSquareParser ) {
- mBarChart . addTiming ( section , NUMBER2 , parseResult .... | Fixed bar chart indices |
<nb> public final class ClassNodeLoader extends ClassLoader {
if ( classes . containsKey ( name ) ) {
return nodeToClass ( classes . get ( name ) ) ;
} else {
- return super . loadClass ( name ) ;
+ return super . findClass ( name ) ;
}
} | super loadClass calls loadClass in superclass |
<nb> public class IpnbFilePanel extends JPanel implements Scrollable , DataProvider {
public void cutCell ( ) {
myBufferPanel = getSelectedCell ( ) ;
+ if ( myBufferPanel == null ) return ;
selectNextOrPrev ( myBufferPanel ) ;
final int index = myIpnbPanels . indexOf ( myBufferPanel ) ;
if ( index < NUMBE... | fixed NPE on cut in empty file |
<nb> public class AuthenticationITest extends WithJetty {
final RequestSpecification specification = new RequestSpecBuilder ( ) . setAuth ( form ( STRING0 , STRING1 , springSecurity ( ) ) ) . build ( ) ;
given ( ) .
- auth ( ) . form ( STRING0 , STRING1 , springSecurity ( ) ) .
+ spec ( specification ) .
ex... | Fix errorous test |
<nb> public class TableQuery {
}
protected native void nativeSubTable ( long nativeQueryPtr , long columnIndex ) ;
- public TableQuery parent ( ) {
+ public TableQuery endSubTable ( ) {
nativeParent ( nativePtr ) ;
return this ;
} | Renamed parent to endSubTable method |
<nb> public class GenericLocationTest {
assertEquals ( loc . getHeading ( ) , cloned . getHeading ( ) ) ;
assertEquals ( loc . getNamedPlace ( ) , cloned . getNamedPlace ( ) ) ;
}
+
+ @ test
+ public void testFromOldStyleStringIncomplete ( ) {
+ String input = STRING0 ;
+ GenericLocation loc = GenericLo... | Add test for incomplete strings to GenericLocationTest |
<nb> public class RDotTxtEntry implements Comparable < RDotTxtEntry > {
@ override
public RDotTxtEntry apply ( String input ) {
Optional < RDotTxtEntry > entry = parse ( input ) ;
- Preconditions . checkNotNull ( entry . isPresent ( ) , STRING0 , input ) ;
+ Preconditions . checkState ( entry . isPresent ( ) ... | Fix wrong precondition check |
<nb> public class EpisodeTools {
SINGLE
return SeriesGuideContract . Episodes . FIRSTAIREDMS + STRING0 + ( currentTime
+ DateUtils . HOUR_IN_MILLIS )
+ + STRING1 + SeriesGuideContract . Episodes . SELECTION_HAS_RELEASE_DATE
+ STRING1 + SeriesGuideContract . Episodes . SELECTION_UNWATCHED_OR_SKIPPED ;
}
} ... | Exclude no release date episodes when bulk setting watched |
<nb> public class DefaultEdgeFilter implements EdgeFilter
return out && iter . isForward ( encoder ) || in && iter . isBackward ( encoder ) ;
}
+ public boolean acceptsIn ( )
+ {
+ return in ;
+ }
+
+ public boolean acceptsOut ( )
+ {
+ return out ;
+ }
+
@ override
public String toString ... | add two property method to DefaultEdgeFilter |
<nb> public abstract class Context {
COMMENT
COMMENT
COMMENT
+ @ systemapi
public static final String NETWORK_SCORE_SERVICE = STRING0 ;
COMMENT | Expose NETWORK_SCORE_SERVICE as SystemApi |
<nb> public class EnvironmentalExecException extends ExecException {
public ActionExecutionException toActionExecutionException ( String messagePrefix ,
boolean verboseFailures , Action action ) {
if ( verboseFailures ) {
- return new ActionExecutionException ( messagePrefix + STRING0 + getMessage ( ) , this , ... | Fix reporting of error messages for EnvironmentalExecException |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class DefaultGroovyMethods {
}
return i ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static ClassLoader getRootLoader ( ClassLoad... | added getRootLaoder for ClassLoader |
<nb> public class Allocation extends BaseObj {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- public void ioSendOutput ( ) {
- ioSend ( ) ;
- }
-
- COMMENT
COMMENT
COMMENT
COMMENT | Remove old hidden API |
<nb> public class UISettings extends SimpleModificationTracker implements PersistentS
public boolean ALWAYS_SHOW_WINDOW_BUTTONS = false ;
public boolean CYCLE_SCROLLING = true ;
public boolean SCROLL_TAB_LAYOUT_IN_EDITOR = true ;
- public boolean HIDE_TABS_IF_NEED = false ;
+ public boolean HIDE_TABS_IF_NEED ... | set default value for Hide tabs if there is no space to true |
<nb> public abstract class AbstractAttributeMapper implements AttributeMap {
Attribute attr = ruleClass . getAttribute ( index ) ;
if ( attr . getType ( ) != type ) {
throw new IllegalArgumentException ( STRING0 + attrName
- + STRING1 + type + STRING2 + ruleLabel ) ;
+ + STRING3 + attr . getType ( ) + STRING4... | Include real type in type casting error message |
<nb> public class ControlFlowBuilder extends GroovyRecursiveElementVisitor {
public Iterable < ? extends Instruction > succ ( CallEnvironment env ) {
final Stack < CallInstruction > callStack = getStack ( env , this ) ;
- if ( callStack . isEmpty ( ) ) return Collections . emptyList ( ) ;
+ assert ! callStack... | remove extra check now that the bug has been fixed |
<nb> public class DragSortListView extends ListView {
}
}
- private int getItemChildHeight ( View item ) {
- View child = ( ( ViewGroup ) item ) . getChildAt ( NUMBER0 ) ;
-
- int spec = MeasureSpec . makeMeasureSpec ( NUMBER0 , MeasureSpec . UNSPECIFIED ) ;
- child . measure ( spec , spec ) ;
- retur... | Remove unused private function before bed |
<nb> public class OnlineBrowser extends javax . swing . JPanel implements HyperlinkListen
}
handle . finish ( ) ;
Confirmation msg = new NotifyDescriptor . Confirmation (
- STRING0 + name ,
+ STRING1 + name ,
NotifyDescriptor . OK_CANCEL_OPTION ,
NotifyDescriptor . INFORMATION_MESSAGE ) ;
DialogDisplaye... | Fixed typo in dialog when an assetpack download is successful |
<nb> public class EditorSearchComponent extends JPanel implements DataProvider {
private final JTextField mySearchField ;
private final Color myDefaultBackground ;
- private static final Color GRADIENT_C1 = new Color ( NUMBER0 , NUMBER0 , NUMBER0 ) ;
- private static final Color GRADIENT_C2 = new Color ( NUMB... | Make search bar gradient colors match default panel LnF background color |
<nb> public class ConnectivityManager {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public boolean requestBandwidthUpdate ( Network network ) { | Fix the javadoc for requestBandwidthUpdate |
<nb> public abstract class AbstractEndpoint {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public long getConnectionCount ( ) { | Further clarify the value |
<nb> public class QSTileHost implements QSTile . Host , Tunable {
}
public void addTile ( String spec ) {
- if ( mTileSpecs . contains ( spec ) ) {
+ final String setting = Settings . Secure . getStringForUser ( mContext . getContentResolver ( ) ,
+ TILES_SETTING , ActivityManager . getCurrentUser ( ) ) ;
... | Do not use cached tile specs value in QSTileHost addTile |
<nb> public class RenderScript {
}
mRWLock = new ReentrantReadWriteLock ( ) ;
try {
- registerNativeAllocation . invoke ( sRuntime , NUMBER0 * NUMBER1 * NUMBER1 * NUMBER1 ) ; SINGLE
+ registerNativeAllocation . invoke ( sRuntime , NUMBER0 * NUMBER1 * NUMBER1 ) ; SINGLE
} catch ( Exception e ) {
Log . e ( ... | Fix typo with register native allocation |
<nb> public class CalligraphyConfig {
mInstance = new CalligraphyConfig ( defaultFontAssetPath , defaultAttributeId ) ;
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public static void initDefault ( ) {
- mInstance = new CalligraphyConfig ( ) ;
- }
-
... | removed unneeded call |
<nb> public static boolean populateComponent ( ContentValues values ,
Time end = new Time ( endTzid ) ;
end . parse ( dtendProperty . getValue ( ) ) ;
- long durationMillis = end . toMillis ( false COMMENT )
+ long durationMillis = end . toMillis ( false COMMENT )
- start . toMillis ( false COMMENT ) ;
lo... | Fix recurrence parsing for all day events |
<nb> public class TypeUtils {
if ( obj instanceof Number ) {
int ordinal = ( ( Number ) obj ) . intValue ( ) ;
-
- Method method = clazz . getMethod ( STRING0 ) ;
- Object [ ] values = ( Object [ ] ) method . invoke ( null ) ;
- for ( Object value : values ) {
- Enum e = ( Enum ) value ;
- if ( e . or... | improved cast to enum performance |
<nb> public class MemoryGraphSafe implements SaveableGraph {
Helper . writeInts ( storageLocation + STRING0 , refToEdges ) ;
Helper . writeInts ( storageLocation + STRING1 , edgesArea ) ;
SINGLE
- Helper . writeSettings ( storageLocation + STRING2 , size , creationTime , nextEdgePointer ) ;
+ Helper . writeSe... | fixed bug in save load |
<nb> public class JCVideoPlayer extends FrameLayout implements View . OnClickListener ,
@ override
public void onPrepared ( ) {
+ if ( surfaceHolder . getSurface ( ) == null || ! surfaceHolder . getSurface ( ) . isValid ( ) ) return ;
if ( CURRENT_STATE != CURRENT_STATE_PREPAREING ) return ;
JCMediaManager ... | fix a bug check surface before prepared |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
COMMENT | remove non used import |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
<nb> public class EnglishGrammaticalStructure extends GrammaticalStructure {
}
}
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
... | Add a commented out blob of a much more readable but significantly slower version of addStrandedPobj |
<nb> public class XmppConnectionService extends Service implements OnPhoneContactsLoa
long timeout = Config . CONNECT_TIMEOUT - secondsSinceLastConnect ;
if ( timeout < NUMBER0 ) {
Log . d ( Config . LOGTAG , account . getJid ( ) + STRING0 ) ;
+ account . getXmppConnection ( ) . resetAttemptCount ( ) ;
reconn... | reset attempt count when reconnecting because of timeout |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class QSAnimator implements Callback , PageListener , Listener , OnLayoutCha
private boolean mFullRows ;
private int mNumQuickTiles ;
private floa... | Fix leak in QSAnimator |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Clarify use of Bean with EnableAsync executors |
<nb> public class ListPopupBuilder {
public JBPopup createPopup ( ) {
JPanel contentPane = new JPanel ( new BorderLayout ( ) ) ;
if ( myTitle != null ) {
- JLabel label = new JLabel ( STRING0 + myTitle + STRING0 ) ;
+ final String title = myTitle . startsWith ( STRING1 ) ? myTitle : STRING0 + myTitle + STRING... | Prevent html from appearing in ListPopup s title |
<nb> public class NameMaps {
putTagPropertyToServerName ( TagData . USER_ID , STRING0 , false ) ;
putTagPropertyToServerName ( TagData . NAME , STRING1 , false ) ;
- putTagPropertyToServerName ( TagData . PICTURE , STRING2 , false ) ; SINGLE
- putTagPropertyToServerName ( TagData . MEMBERS , STRING3 , false )... | Minor update to TagData name maps |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | eliminate eclipse warning |
<nb> public class HttpRequest {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public HttpRequest contentType ( final String value , final String charset ) {
+ final String separator = STRING0 + PARAM_CHARSET + STRING1 ;
+ return header ( HEADER_CONTENT_TYPE , value + se... | Add helper to set type and charset of content |
<nb> public abstract class Script extends GroovyObjectSupport {
}
public Object getProperty ( String property ) {
- if ( binding . hasVariable ( property ) ) {
- return binding . getVariable ( property ) ;
- }
- return super . getProperty ( property ) ;
+ try {
+ return binding . getVariable ( propert... | Exception driven control flow in groovy lang Script getProperty |
<nb> public final class FragmentedMp4Extractor implements Extractor {
private boolean readSample ( ExtractorInput input ) throws IOException , InterruptedException {
if ( parserState == STATE_READING_SAMPLE_START ) {
if ( currentTrackBundle == null ) {
- currentTrackBundle = getNextFragmentRun ( trackBundles ) ... | Don t update currentTrackBundle until end of block |
<nb> import NAMESPACE ;
COMMENT
public class GrLightMethodBuilder extends LightElement implements GrMethod {
private String myName ;
- private PsiType myReturnType ;
+ private PsiType myReturnType = PsiType . VOID ;
private final GrModifierList myModifierList ;
private GrParameterList myParameterList ;
... | Access to untyped expression inspection reports valid references in constraints section |
<nb> public class RecyclerView extends ViewGroup implements ScrollingView , NestedScro
void onInitializeAccessibilityNodeInfoForItem ( View host , AccessibilityNodeInfoCompat info ) {
final ViewHolder vh = getChildViewHolderInt ( host ) ;
SINGLE
- if ( vh != null && ! vh . isRemoved ( ) ) {
+ if ( vh != null ... | Not filling accessibility info for hidden views |
<nb> public class J3MLoader implements AssetLoader {
tex . setWrap ( WrapMode . Repeat ) ;
}
tex . setKey ( texKey ) ;
+ tex . setName ( texKey . getName ( ) ) ;
}
return tex ;
} else { | set texture name in addition to key when loading it |
<nb> public class VoldemortConfig implements Serializable {
this . coreThreads = props . getInt ( STRING0 , Math . max ( NUMBER0 , maxThreads / NUMBER1 ) ) ;
this . adminMaxThreads = props . getInt ( STRING1 , NUMBER2 ) ;
- this . adminCoreThreads = props . getInt ( STRING2 , Math . max ( NUMBER0 , maxThreads /... | Fixed typo in adminCoreThreads that was causing an IllegalArgumentException in ThreadPoolExecutor |
<nb> public final class SchemaGeneratorTest {
Cursor c = sqLiteDatabase . rawQuery ( sql , null ) ;
if ( c . moveToFirst ( ) ) {
- Assert . assertEquals ( NUMBER0 , c . getInt ( NUMBER1 ) ) ;
+ Assert . assertEquals ( NUMBER2 , c . getInt ( NUMBER1 ) ) ;
}
if ( ! c . isClosed ( ) ) {
<nb> public final... | fixes of tests for foreign record allow null integration |
<nb> public class GoAppEngineRunConfiguration extends GoRunConfigurationBase < GoAppEng
@ notnull
@ override
- protected ModuleBasedConfiguration createInstance ( ) {
- return new GoAppEngineRunConfiguration ( getProject ( ) , getName ( ) , GoAppEngineRunConfigurationType . getInstance ( ) ) ;
- }
-
- @... | Remove deprecated method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import static NAMESPACE ;
+ SINGLE
public class SparkEndpoint extends DefaultEndpoint {
... | Added endpoint documentation |
<nb> public class StatusBarService extends Service implements CommandQueue . Callbacks
}
if ( expanded == null ) {
String ident = notification . pkg + STRING0 + Integer . toHexString ( notification . id ) ;
- Slog . e ( TAG , STRING1 + ident ) ;
+ Slog . e ( TAG , STRING1 + ident , exception ) ;
return null... | Log full exception when failing to inflate notification view |
<nb> public class CanonicalPathUtilsTestCase {
Assert . assertEquals ( STRING0 , CanonicalPathUtils . canonicalize ( STRING1 ) ) ;
Assert . assertEquals ( STRING2 , CanonicalPathUtils . canonicalize ( STRING3 ) ) ;
- SINGLE
+ SINGLE
Assert . assertEquals ( STRING4 , CanonicalPathUtils . canonicalize ( STRIN... | adds a test case to canonical path to see how it deals with multiple trailing slashes |
<nb> public class TestOverdueIntegration extends TestOverdueBase {
addDaysAndCheckForCompletion ( NUMBER0 , NextEvent . PAYMENT_ERROR , NextEvent . INVOICE_PAYMENT_ERROR ) ;
SINGLE
- addDaysAndCheckForCompletion ( NUMBER1 ) ;
+ addDaysAndCheckForCompletion ( NUMBER1 , NextEvent . NULL_INVOICE ) ;
invoiceChe... | Fix overdue test issue flakiness due to non deterministic behavior |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public interface EventLogCategory {
- ExtensionPointName < EventLogCategory > EP_NAME = ExtensionPointName . create ( STRING0 ) ;
+ public abstract class EventLogCategory {
+ public static final ExtensionPointName < EventLogCategory > EP_NAME = ExtensionPo... | convert EventLogCategory to abstract class |
<nb> public class CompletionProgressIndicator extends ProgressIndicatorBase implement
}
public boolean isRepeatedInvocation ( CompletionType completionType , Editor editor ) {
- return completionType == myParameters . getCompletionType ( ) && editor == myEditor && ! isAutopopupCompletion ( ) ;
+ return comple... | explicit completion during active autopopup should insert common prefix and focus the lookup |
<nb> public class DocumentationComponent extends JPanel implements Disposable , DataPr
}
}
}
+
+ @ override
+ public Dimension getPreferredSize ( ) {
+ Dimension editorPaneSize = myEditorPane . getPreferredScrollableViewportSize ( ) ;
+ Dimension controlPanelSize = myControlPanel . getPreferredSize ( ) ... | Quick doc component has a too small size when its shown at the very first time |
<nb> public class TezTask extends Task < TezWork > {
}
SINGLE
- Set < StatusGetOpts > statusGetOpts = EnumSet . of ( StatusGetOpts . GET_COUNTERS ) ;
- counters = client . getDAGStatus ( statusGetOpts ) . getDAGCounters ( ) ;
+ try {
+ Set < StatusGetOpts > statusGetOpts = EnumSet . of ( StatusGetOpts . G... | Getting Tez LimitExceededException after dag execution on large query Jason Dere reviewed by Gopal V |
<nb> public enum AndroidExcludedRefs {
}
} ,
- SPEECH_RECOGNIZER ( SDK_INT == KITKAT ) {
+ SPEECH_RECOGNIZER ( SDK_INT < LOLLIPOP ) {
@ override void add ( ExcludedRefs . Builder excluded ) {
SINGLE
SINGLE | Ignore SpeechRecognizer pre L |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HtmlUtil {
return false ;
}
- public static boolean isHtmlTagContainingFile ( final Editor editor , final PsiFile file ... | remove Editor dependency from HtmlUtil |
<nb> public class ProgressBar extends Widget implements Disableable {
if ( bg != null ) {
bg . draw ( batch , x + ( int ) ( ( width - bg . getMinWidth ( ) ) * FLOAT0 ) , y , bg . getMinWidth ( ) , height ) ;
bgTopHeight = bg . getTopHeight ( ) ;
- positionHeight -= - ( bgTopHeight + bg . getBottomHeight ( ) ) ;... | Fixed vertical scroll bar thumb position |
<nb> public class MucOptions {
if ( user != null ) {
synchronized ( users ) {
users . remove ( user ) ;
- if ( user . affiliation . ranks ( Affiliation . MEMBER ) && user . realJid != null ) {
+ if ( membersOnly ( ) &&
+ nonanonymous ( ) &&
+ user . affiliation . ranks ( Affiliation . MEMBER ) &&
+ user... | only keep offline members in members only conferences |
<nb> public final class Tools {
COMMENT
COMMENT
public static InputStream getStream ( String filename ) throws IOException {
- InputStream is = Tools . class . getClass ( ) . getResourceAsStream ( filename ) ;
+ SINGLE
+ SINGLE
+ InputStream is = Tools . class . getResourceAsStream ( filename ) ;
if ( i... | use a different way to access getResourceAsStream as the other way breaks in a web context |
<nb> public class HostConfig
@ override
public void lifecycleEvent ( LifecycleEvent event ) {
- if ( event . getType ( ) . equals ( Lifecycle . PERIODIC_EVENT ) )
- check ( ) ;
-
SINGLE
try {
host = ( Host ) event . getLifecycle ( ) ;
<nb> public class HostConfig
}
SINGLE
- if ( event . getT... | Ensure HostConfig has the latest settings of copyXML deployXML and unpackWARs before performing automatic deployment |
<nb> public class FloatingSearchView extends FrameLayout {
if ( focused ) {
+ mLeftAction . setVisibility ( View . VISIBLE ) ;
+
if ( mLeftActionMode == LEFT_ACTION_MODE_SHOW_HAMBURGER_ENUM_VAL && ! mMenuOpen )
openMenuDrawable ( mMenuBtnDrawable , true ) ;
else if ( mLeftActionMode != LEFT_ACTION_MODE_... | fixed issue with left action visibility on rotation |
<nb> class CodeFragmentCodeStyleSettingsPanel extends TabbedLanguageCodeStylePanel {
@ override
protected void somethingChanged ( ) {
+ mySelectedTextFormatter . restoreSelectedText ( ) ;
reformatSelectedTextWithNewSettings ( ) ;
}
<nb> class CodeFragmentCodeStyleSettingsPanel extends TabbedLanguageCode... | Restore initial text before reformat |
<nb> public class SuperMethodInvocationRewriter extends TreeVisitor {
AbstractTypeDeclaration typeNode = typeMap . get ( superMethod . type . getTypeDeclaration ( ) ) ;
assert typeNode != null : STRING0 ;
String superclassName = NameTable . getFullName ( superMethod . type . getSuperclass ( ) ) ;
- typeNode . g... | Initialize super function pointers before other static initialization |
<nb> class ReaderBlogInfoView extends LinearLayout {
public void run ( ) {
ReaderAnim . scaleIn ( layoutInner , ReaderAnim . Duration . SHORT ) ;
}
- } , NUMBER0 ) ;
+ } , NUMBER1 ) ;
}
SINGLE | increased blogInfo animation delay |
<nb> public abstract class ModuleFiles {
public static ModuleFiles create ( @ jsonproperty ( STRING0 ) Map < String , ChunkDescription > chunks ,
@ jsonproperty ( STRING1 ) List < String > jsFiles ,
@ jsonproperty ( STRING2 ) List < String > cssFiles ) {
- return new AutoValue_PackageFiles ( chunks , jsFiles , ... | Fix leftover of class renaming |
<nb> final class ActivityStack {
SINGLE
int index = mTaskHistory . size ( ) ;
- for ( int i = NUMBER0 ; i < index ; ++ i ) {
+ for ( int i = NUMBER0 ; i < index ; ) {
TaskRecord task = mTaskHistory . get ( i ) ;
if ( task . userId == userId ) {
if ( DEBUG_TASKS ) Slog . d ( TAG , STRING0 + getStackId ( ... | Fix incorrect looping limits |
<nb> public enum ErrorType {
COMMENT
CHANNELS_BLOCK_IN_COMBINED_GRAMMAR ( NUMBER0 , STRING0 , ErrorSeverity . ERROR ) ,
- NONCONFORMING_LR_RULE ( NUMBER1 , STRING1 , ErrorSeverity . ERROR ) ,
+ NONCONFORMING_LR_RULE ( NUMBER2 , STRING1 , ErrorSeverity . ERROR ) ,
COMMENT
COMMENT | set error number so it does not conflict with Sam s fork |
<nb> import NAMESPACE ;
COMMENT
public class CipherUtil {
private static final Logger logger = Logger . getLogger ( CipherUtil . class . getSimpleName ( ) ) ;
- private static final String ALPHANUMERIC_CHARS = STRING0 ;
+ SINGLE
+ private static final String ALPHABETHIC_CHARS = STRING1 ;
private static ... | Clarifying non numeric alphanumeric strings |
<nb> public class InstanceSpec
private static final String localhost ;
static
{
- String address ;
+ String address = STRING0 ;
try
{
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- address = InetAddress . getLocalHost ( ) . getHostAddress ( ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ S... | Speed up TestingServer startup time on OS X Lion |
<nb> public class Function extends ValueSymbol {
return arguments ;
}
+ public FunctionInfo info ( ) {
+ return info ;
+ }
+
@ override
public DataType valueType ( ) {
return info . returnType ( ) ;
<nb> public class Reference extends ValueSymbol {
}
+ public ReferenceInfo info ( ) {
+ r... | expose FunctionInfo and ReferenceInfo in Reference and Function symbol |
<nb> public class PhoneFactory {
case RILConstants . NETWORK_MODE_GSM_UMTS :
return Phone . PHONE_TYPE_GSM ;
+ SINGLE
case RILConstants . NETWORK_MODE_GLOBAL :
+ case RILConstants . NETWORK_MODE_LTE_CDMA_EVDO :
+ case RILConstants . NETWORK_MODE_LTE_CMDA_EVDO_GSM_WCDMA :
return Phone . PHONE_TYPE_CDMA ;... | handle missing constants when creating a Phone instance |
<nb> public class ProcessOutput {
}
public List < String > getStdoutLines ( ) {
- return splitLines ( myStdoutBuilder . toString ( ) ) ;
+ return splitLines ( getStdout ( ) ) ;
}
public List < String > getStderrLines ( ) {
- return splitLines ( myStderrBuilder . toString ( ) ) ;
+ return splitLines ... | Pass exception to stderr |
<nb> public class GraphHopper implements GraphHopperAPI
SINGLE
private AlgorithmPreparation prepare ;
private boolean doPrepare = true ;
- private boolean chEnabled = false ;
+ private boolean chEnabled = true ;
private String chType = STRING0 ;
private int periodicUpdates = NUMBER0 ;
private int lazyUp... | enable ch by default also in GraphHopper instance |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CameraPreview extends SurfaceView implements SurfaceHolder . Callback
}
List < Camera . Size > sizes = mCamera . getParameters ( ) . getSupportedPreviewSizes ... | Calculate the optimal preview size based on the view size |
<nb> public class ButtonGroup {
if ( button == null ) throw new IllegalArgumentException ( STRING0 ) ;
button . buttonGroup = null ;
buttons . removeValue ( button , true ) ;
+ checkedButtons . removeValue ( button , true ) ;
}
public void remove ( Button . . . buttons ) { | Fixed ButtonGroup not removing from the checked buttons list |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.