diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class PeerGroup {
}
}
}
+ SINGLE
peer . removeEventListener ( getDataListener ) ;
EventListenerInvoker . invoke ( peerEventListeners , new EventListenerInvoker < PeerEventListener > ( ) {
@ override | Add a TODO in PeerGroup |
<nb> public class ShareActionProvider extends ActionProvider {
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public bo... | Ignore the result of the on share callback in ShareActionProvider |
<nb> import NAMESPACE ;
trackFormats = new MediaFormat [ selectedTrackIndices . length ] [ ] ;
SINGLE
SINGLE
- internalPlaybackThread = new PriorityHandlerThread ( getClass ( ) . getSimpleName ( ) + STRING0 ,
+ internalPlaybackThread = new PriorityHandlerThread ( STRING1 ,
Process . THREAD_PRIORITY_AUDIO ) ... | Don t use getClass |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class SeriesGuideApplication extends Application {
public void onCreate ( ) {
super . onCreate ( ) ;
... | Plant a logging trees for timber |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Leg {
@ xmlattribute
@ jsonserialize
public String routeColor = null ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ xmlattribute
+ @ ... | Add GTFS routetype to leg |
<nb> public class ExtendedDeviceChooserDialog extends DialogWrapper {
} ;
myLaunchEmulatorRadioButton . addActionListener ( listener ) ;
myChooserRunningDeviceRadioButton . addActionListener ( listener ) ;
+ myAvdCombo . addActionListener ( listener ) ;
init ( ) ; | fixL add listener to avd combo |
<nb> public class DefaultDataBuffer implements DataBuffer {
@ override
public int read ( ) {
return readInternal (
- buffer - > buffer . hasRemaining ( ) ? buffer . get ( ) & NUMBER0 : - NUMBER1 ) ;
+ buffer - > readableByteCount ( ) > NUMBER2 ? buffer . get ( ) & NUMBER0 : - NUMBER1 ) ;
}
@ override
... | Fixed issue with DefaultDataBuffer asInputStream |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AuthFactory {
authProvider = AuthProviderFactory . getAuthProvider ( ) ;
userIDProvider = UserProviderFactory . g... | Removed cookieKey wasn t used |
<nb> public class SlidingUpPanelLayout extends ViewGroup {
public SlidingUpPanelLayout ( Context context , AttributeSet attrs , int defStyle ) {
super ( context , attrs , defStyle ) ;
+
+ if ( isInEditMode ( ) ) {
+ return ;
+ }
+
if ( attrs != null ) {
TypedArray defAttrs = context . obtainStyledAt... | Prevent the custom View to be drawn in the UI editor |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LdapManager {
if ( debug ) {
Log . debug ( STRING0 + username + STRING1 ) ;
}
- throw new UnauthorizedException ( STRING2 + username + STRING3 ) ;
+ t... | Throw better exception if user not found |
<nb> public class NotificationStackScrollLayout extends ViewGroup
final int range = getScrollRange ( ) ;
if ( y < NUMBER0 && oldY >= NUMBER0 || y > range && oldY <= range ) {
float currVelocity = mScroller . getCurrVelocity ( ) ;
- if ( currVelocity >= mMinimumVelocity * NUMBER1 ) {
+ if ( currVelocity >= mMi... | Adapted the minimum velocity amount needed to perform an overscroll |
<nb> public class RmdOutputPanel extends SatelliteFramePanel < AnchorableFrame >
if ( getNavigationMenu ( ) . isVisible ( ) )
{
fireSlideIndexChanged ( ) ;
- slideChangeMonitor_ . scheduleRepeating ( NUMBER0 ) ;
+ slideChangeMonitor_ . scheduleRepeating ( NUMBER1 ) ;
}
return false ;
}
- } , NUM... | tighten polling interval for rmd preview navigation |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public interface PyClass extends PsiNamedElement , PyElement , PyDocStringOwner , StubBasedPsiElement < PyCl... | delete obsolete annotation |
<nb> public class KeyChainGroup {
marriedKeysScripts = new LinkedHashMap < ByteString , Script > ( ) ;
maybeLookaheadScripts ( ) ;
- if ( ! this . currentKeys . isEmpty ( ) ) {
+ if ( ! this . followingKeychains . isEmpty ( ) ) {
DeterministicKey followedWatchKey = getActiveKeyChain ( ) . getWatchingKey ( )... | Fix issue with deserialization and currentAddresses |
<nb> class GlobalActions implements DialogInterface . OnDismissListener , DialogInterfac
}
SINGLE
- SINGLE
- if ( true || SystemProperties . getBoolean ( STRING0 , false ) ) {
+ if ( SystemProperties . getBoolean ( STRING0 , false ) ) {
addUsersToMenu ( mItems ) ;
} | Remove power menu user switcher |
<nb> final class Settings {
ArraySet < String > currentDomains = current . getIntentFilterVerificationInfo ( ) . getDomains ( ) ;
if ( status == INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS ) {
for ( PackageSetting ps : mPackages . values ( ) ) {
- if ( ps == null || ps . pkg . packageName . equals ( package... | Fix NPE when walking the set of packages to update app link policy |
<nb> public class SyslogProcessorTest {
assertEquals ( STRING0 , lm . getFacility ( ) ) ;
assertEquals ( NUMBER0 , lm . getLevel ( ) ) ;
assertEquals ( ValidNonStructuredMessage , lm . getFullMessage ( ) ) ;
- assertEquals ( ( int ) Tools . getUTCTimestampWithMilliseconds ( ) , ( int ) lm . getCreatedAt ( ) ) ;... | remove one more syslogprocessor asset sigh |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DateView extends TextView {
private final Date mCurrentTime = new Date ( ) ;
- private Simpl... | Correclty capitalize Date in status bar panel |
<nb> public class MainFrameTouch
COMMENT
private void init ( )
{
- if ( GuiActivator . getUIService ( ) . getExitOnMainWindowClose ( ) )
- this . setDefaultCloseOperation ( JFrame . DISPOSE_ON_CLOSE ) ;
- else
- this . setDefaultCloseOperation ( JFrame . HIDE_ON_CLOSE ) ;
+ setDefaultCloseOperation (
... | Bring forward fix from standard GUI to touch screen GUI |
<nb> public class AppearanceToolbar implements AppearanceUIModelListener {
protected void setup ( ) {
clear ( ) ;
if ( model != null ) {
+ removeAll ( ) ;
for ( Enumeration < AbstractButton > btns = buttonGroups . getElements ( ) ; btns . hasMoreElements ( ) ; ) {
AbstractButton btn = btns . nextElement ( )... | Fix UI issue when switching workspaces in appearance |
<nb> public abstract class AbstractEndpoint {
}
public int getMaxConnections ( ) { return this . maxConnections ; }
+
+ public long getConnectionCount ( ) {
+ if ( connectionLimitLatch != null ) {
+ return connectionLimitLatch . getCount ( ) ;
+ }
+ return - NUMBER0 ;
+ }
+
COMMENT
COMMENT
C... | Add public method to retrieve the current connectionCount |
<nb> public class InspectionApplication {
logError ( InspectionsBundle . message ( STRING0 ,
libraryOrderEntry . getLibraryName ( ) ,
module . getName ( ) ) ) ;
- if ( myErrorCodeRequired ) System . exit ( NUMBER0 ) ;
- return ;
}
}
} | do not fail build when library has invalid entries add warnings |
<nb> public class Helper {
COMMENT
COMMENT
COMMENT
- public static final int VERSION_FILE = NUMBER0 ;
+ public static final int VERSION_FILE = NUMBER1 ;
COMMENT
COMMENT
COMMENT | upgrading file version |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class OnePixelDivider extends Divider {
- public static final Color BACKGROUND = new JBColor ( NUMBER0 , NUMBER1 ) ;
+ public static final Color BACKGROUND = new JBColor ( Gray . xC5 , Gray . x51 ) ;
private boolean myVertical ;
private Splitter mySplitter ... | update BACKGROUND color |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | fixed unknown import |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HystrixDashboardStream {
final Observable < DashboardData > singleSource ;
final AtomicBoolean isSourceCurrentlySubscribed = new AtomicBoolean ( fal... | Made dashboard data emission interval configurable on startup |
<nb> public class MapInfoLayer extends OsmandMapLayer {
mapInfoControls . changeVisibility ( mi ) ;
}
recreateControls ( ) ;
- } else if ( o . toString ( ) . equals ( map . getString ( R . string . map_widget_reset ) ) ) {
+ } else if ( which == NUMBER0 ) {
mapInfoControls . resetToDefault ( ) ;
recreateC... | Fix map layer |
<nb> public final class RemoteBlockInStream extends BufferedBlockInStream {
SINGLE
try ( RemoteBlockReader reader = RemoteBlockReader . Factory . create ( ) ) {
ByteBuffer data = reader . readRemoteBlock ( mWorkerInetSocketAddress , mBlockId , getPosition ( ) ,
- bytesLeft , mLockId , mBlockWorkerClient . getSe... | SMALLFIX Incorporated PR comment |
<nb> public class CompilerDaemonManager implements CompilerDaemonFactory {
for ( CompilerDaemonClient client : clients ) {
client . stop ( ) ;
}
- clients . clear ( ) ;
LOGGER . info ( STRING0 , clients . size ( ) ) ;
+ clients . clear ( ) ;
}
private void registerStopOnBuildFinished ( ProjectInternal... | fixed log message |
<nb> public final class WorkDurationFactory implements BatchComponent , ServerComponen
return WorkDuration . createFromValueAndUnit ( value , unit , hoursInDay ) ;
}
- public WorkDuration createFromWorkingLong ( Long duration ) {
+ public WorkDuration createFromWorkingLong ( long duration ) {
return WorkDur... | Replace Long by long |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TileAdapter extends RecyclerView . Adapter < Holder > implements TileSta
return false ;
}
}
- if ( target . getItemView... | Fix crash while editing QS |
<nb> public final class BitmapRegionDecoder {
COMMENT
public Bitmap decodeRegion ( Rect rect , BitmapFactory . Options options ) {
checkRecycled ( STRING0 ) ;
- if ( rect . left < NUMBER0 || rect . top < NUMBER0 || rect . right > getWidth ( )
- || rect . bottom > getHeight ( ) )
- throw new IllegalArgumentE... | Release the constraint on the requested version |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LoggingTransformer implements ClassInjector {
public static final String LOG_PROPERTY = STRING0 ;
public void performInje... | changed property check to field check |
<nb>
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
-
SINGLE
class A {
private final int field ;
<nb>
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
-... | skip copyright for tests |
<nb> public class PreferencesActivity extends SherlockPreferenceActivity {
}
private void sendNotificationsSettings ( ) {
- AppLog . d ( STRING0 ) ;
+ AppLog . d ( T . NOTIFS , STRING0 ) ;
new sendNotificationSettingsTask ( ) . execute ( ) ;
} | Updated sendNotificationsSettings to use AppLog tag |
<nb> public class SceneComposerToolController extends SceneToolController {
}
protected void refreshNonSpatialMarkers ( ) {
- nonSpatialMarkersNode . detachAllChildren ( ) ;
- addMarkers ( rootNode . getLookup ( ) . lookup ( Node . class ) ) ;
+ SceneApplication . getApplication ( ) . enqueue ( new Callable... | fixed an issue causing scene graph updated from another thread error int he scenecomposer when adding an audio node |
<nb> public class JavaChangeSignatureHandler implements ChangeSignatureHandler {
return PsiTreeUtil . getParentOfType ( element , PsiMethod . class ) ;
}
+ final PsiTypeParameterList typeParameterList = PsiTreeUtil . getParentOfType ( element , PsiTypeParameterList . class ) ;
+ if ( typeParameterList != null... | prefer type over type parameter |
<nb> public class DateHistogramBuilder extends ValuesSourceAggregationBuilder < DateHis
private String timeZone ;
private String format ;
private String offset ;
- private float factor = FLOAT0 ;
COMMENT
COMMENT
<nb> public class DateHistogramBuilder extends ValuesSourceAggregationBuilder < DateHis
} ... | Removed unused factor parameter in DateHistogramBuilder |
<nb> public class Projects implements OpenProjectFileHandler ,
commands . showDiagnosticsProject ( ) . remove ( ) ;
}
boolean enableProjectSharing = hasProject &&
- sessionInfo . projectSupportsSharing ( ) ;
+ sessionInfo . projectSupportsSharing ( ) &&
+ sessionInfo . isProjectOwner ( ) ;
commands . shar... | don t show project sharing options to non owners |
<nb> import static NAMESPACE ;
public class PresenterTest {
+ @ suppresswarnings ( STRING0 ) SINGLE
@ nonnull
private Presenter < Object > presenter ;
+ @ suppresswarnings ( STRING0 ) SINGLE
@ nonnull
private Object view ; | Fix TestWarnings in PresenterTest |
<nb> public class MessageFromJsonConverter {
String voiceBridge = payload . get ( Constants . VOICE_CONF ) . getAsString ( ) ;
Long duration = payload . get ( Constants . DURATION ) . getAsLong ( ) ;
Boolean autoStartRecording = payload . get ( Constants . AUTO_START_RECORDING ) . getAsBoolean ( ) ;
- Boolean a... | extracted the wrong boolean from the message which broke recording |
<nb> public class PyPackageRequirementsInspectionTest extends PyTestCase {
final String perSdkDir = Integer . toHexString ( System . identityHashCode ( sdk ) ) ;
final VirtualFile root = myFixture . copyDirectoryToProject ( dir , perSdkDir ) ;
assertNotNull ( root ) ;
- setupModuleSdk ( getSingleModule ( myFixt... | Fixed tear down in package requirements tests |
<nb> public enum ActionCode {
ASYNC_DISPATCH ,
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- ASYNC_DISPATCH_FOR_OPERATION ,
-
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Http11NioProcessor extends AbstractHttp11Processor < NioChannel > {
} else {
throw new IllegalStateExcepti... | Remove unused ActionCode |
<nb> public abstract class ContainerBase extends LifecycleMBeanBase
t = e ;
throw e ;
} finally {
- thread = null ;
if ( ! threadDone ) {
log . error ( unexpectedDeathMessage , t ) ;
} | NPE on stop only threadStop should set thread to null or it needs a sync |
<nb> public abstract class WPDrawerActivity extends ActionBarActivity {
if ( mDrawerLayout != null ) {
mDrawerLayout . setDrawerShadow ( R . drawable . drawer_shadow , GravityCompat . START ) ;
mDrawerToggle = new ActionBarDrawerToggle (
- this , mDrawerLayout , mToolbar , R . string . open_drawer ,
+ this , ... | Added spinny animation to drawer toggle just because |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DbCreationTest {
file = new File ( STRING0 ) ;
if ( ! file . exists ( ) )
file = new File ( OSystemVariableResolver . resolveSystemVariables... | Reported exception when server cfg file is not found |
<nb> public interface GitRepository {
Topic < GitRepositoryChangeListener > GIT_REPO_CHANGE = Topic . create ( STRING0 , GitRepositoryChangeListener . class ) ;
- String toLogString ( ) ;
-
COMMENT
COMMENT
COMMENT
<nb> public interface GitRepository {
COMMENT
void update ( TrackedTopic . . . topic... | move the method to the end |
<nb> public class ResourceHttpRequestHandler extends WebContentGenerator
COMMENT
COMMENT
protected MediaType getMediaType ( HttpServletRequest request , Resource resource ) {
- SINGLE
- MediaType mediaType = getMediaType ( resource ) ;
- if ( mediaType != null ) {
- return mediaType ;
- }
return this ... | Fix compile issue |
<nb> public class MongoTool extends Configured implements Tool {
log . info ( STRING0 + mapper ) ;
job . setMapperClass ( mapper ) ;
- job . setCombinerClass ( MongoConfigUtil . getCombiner ( conf ) ) ;
+ Class < ? extends Reducer > combiner = MongoConfigUtil . getCombiner ( conf ) ;
+ if ( combiner != null... | If combiner is not specified do not pass it to Hadoop |
<nb> class ContentStreamBitmapHunter extends BitmapHunter {
InputStream is = null ;
try {
is = contentResolver . openInputStream ( path ) ;
- return BitmapFactory . decodeStream ( contentResolver . openInputStream ( path ) , null , options ) ;
+ return BitmapFactory . decodeStream ( is , null , options ) ;
... | do not reopen content input stream |
<nb> public class NamespaceCodegen extends GenerationStateAware {
substringTo = name . length ( ) ;
}
- return namespaceInternalName + STRING0 + name . substring ( substringFrom , substringTo ) ;
+ SINGLE
+ return namespaceInternalName + STRING0 + name . substring ( substringFrom , substringTo ) + STRING1 ;... | Added in the end of multi file namespace internal names to prevent them from having Test suffix |
<nb> public class PApplet extends Applet
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class PImage implements PConstants , Cloneable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | pixels tag writes methods properly to index |
<nb> final class DisplayPowerState {
public void run ( ) {
mScreenUpdatePending = false ;
- if ( mPhotonicModulator . setState ( mScreenOn ,
- mScreenOn ? ( int ) ( mScreenBrightness * mElectronBeamLevel ) : NUMBER0 ) ) {
+ int brightness = mScreenOn && mElectronBeamLevel > FLOAT0 ? mScreenBrightness : NUMB... | Don t scale screen brightness by electron beam level |
<nb> public class RebalanceControllerCLI {
. withRequiredArg ( )
. ofType ( String . class )
. describedAs ( STRING0 ) ;
- parser . accepts ( STRING1 ,
- STRING2 ) ;
+ parser . accepts ( STRING3 ,
+ STRING4 ) ;
}
private static void printUsage ( ) {
<nb> public class RebalanceControllerCLI {
hel... | turn on reset quota by default for rebalance controller cli |
<nb> public class Notification implements Parcelable
}
private void resetStandardTemplateWithActions ( RemoteViews big ) {
+ big . setViewVisibility ( R . id . actions_container , View . GONE ) ;
big . setViewVisibility ( R . id . actions , View . GONE ) ;
big . removeAllViews ( R . id . actions ) ;
<nb... | Fix action container visibility |
<nb> public final class Response {
return ResponseBody . create ( body . contentType ( ) , result . size ( ) , result ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
public ResponseBody body ( ) {
return body ;
} | Add javadoc for Response body |
<nb> public interface NinjaConstant {
COMMENT
final String APPLICATION_STATIC_ASSET_BASEDIR = STRING0 ;
+ COMMENT
+ final String APPLICATION_MODULES_BASE_PACKAGE = STRING1 ;
+
COMMENT
COMMENT
COMMENT | add missed constant NinjaConstant APPLICATION_MODULES_BASE_PACKAGE |
<nb> public class MeFragment extends Fragment {
grantResults ) {
switch ( requestCode ) {
case CAMERA_AND_MEDIA_PERMISSION_REQUEST_CODE :
- if ( permissions == null || permissions . length == NUMBER0 ) {
+ if ( permissions . length == NUMBER0 ) {
AnalyticsTracker . track ( AnalyticsTracker . Stat . ME_GRAVA... | Remove uneeded null check |
<nb> public class FuzzyQueryBuilder extends AbstractQueryBuilder < FuzzyQueryBuilder > i
}
}
} else {
+ if ( fieldName != null ) {
+ throw new ParsingException ( parser . getTokenLocation ( ) , STRING0
+ + fieldName + STRING1 + parser . currentName ( ) + STRING2 ) ;
+ }
fieldName = parser . currentName ... | Throw parsing error if fuzzy query contains multiple fields in its short version |
<nb> public class SettingsGeneralActivity extends SettingsBaseActivity implements OnR
getString ( R . string . lang_ko ) ,
getString ( R . string . lang_lt ) ,
getString ( R . string . lang_lv ) ,
+ getString ( R . string . lang_ml ) + incompleteSuffix ,
getString ( R . string . lang_mr ) + incompleteSuffix ,... | Fix ml lang |
<nb> public class SipManager {
COMMENT
COMMENT
public static boolean isApiSupported ( Context context ) {
+ return true ;
+ COMMENT
return context . getPackageManager ( ) . hasSystemFeature (
PackageManager . FEATURE_SIP ) ;
+ COMMENT
}
COMMENT
COMMENT
COMMENT
public static boolean isVoipSup... | always return true for SIP API and VOIP support query |
<nb> public class EventProcessor implements BootstrapEventCallback
srcKeys . add ( rs . getString ( NUMBER0 ) ) ;
values . add ( rs . getBytes ( NUMBER1 ) ) ;
} catch ( Exception ex ) {
- System . out . println ( STRING0 + ex ) ;
+ throw new BootstrapProcessingException ( ex ) ;
}
return new BootstrapEv... | Incoporated review comments |
<nb> public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal
if ( mHardwareLayer == null ) {
mHardwareLayer = mAttachInfo . mHardwareRenderer . createHardwareLayer (
width , height , isOpaque ( ) ) ;
- mLocalDirtyRect . setEmpty ( ) ;
+ mLocalDirtyRect . set ( NUMBER0 , NUMBER... | Fix hardware layer redraw bug |
<nb> public class AccessibilityNodeInfoCompat {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public void setHasImage ( boolean hasImage ) { | Fix docs build |
<nb> public class StringObservableTest {
@ test
public void testByLine ( ) {
- List < Line > lines = StringObservable . byLine ( Observable . from ( Arrays . asList ( STRING0 , STRING1 , STRING2 , STRING3 ) ) ) . toList ( ) . toBlockingObservable ( ) . single ( ) ;
+ String newLine = System . getProperty ( ST... | Fixed byLine test to use line separator system property instead of n |
<nb> class EditorGutterComponentImpl extends EditorGutterComponentEx implements Mouse
int startOffset = highlighter . getStartOffset ( ) ;
int endOffset = highlighter . getEndOffset ( ) ;
- if ( myEditor . getFoldingModel ( ) . isOffsetCollapsed ( startOffset ) &&
- myEditor . getFoldingModel ( ) . isOffsetCo... | do not hide RangeHighlighter entirely on folding of it s start and end |
<nb> public enum CompilationLevel {
options . labelRenaming = true ;
options . removeDeadCode = true ;
options . optimizeArgumentsArray = true ;
- options . setRemoveUnusedVariable ( Reach . LOCAL_ONLY ) ;
+ options . setRemoveUnusedVariables ( Reach . LOCAL_ONLY ) ;
options . collapseObjectLiterals = true ... | Fix typo in the name of a settter |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT ... | Fix the Singapore content ratings |
<nb> public abstract class OpenInEditorWithMouseAction extends AnAction implements Du
@ notnull private List < ? extends Editor > myEditors = Collections . emptyList ( ) ;
public OpenInEditorWithMouseAction ( ) {
- setShortcutSet ( ActionManager . getInstance ( ) . getAction ( IdeActions . ACTION_GOTO_DECLARATI... | add null check for action that is not assigned in MPS |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
@ runwith ( SpringJUnit4ClassRunner . class )
@ contextconfiguration ( { STRING0 , STRING1 , STRING2 } ) | Removing reference to the unknown UserResource class |
<nb> public class ParserAnnotatorITest extends TestCase {
}
public void testParserAnnotator ( ) throws Exception {
- Annotation document = new Annotation ( text ) ;
+ Annotation document = new Annotation ( TEXT ) ;
pipeline . annotate ( document ) ;
int i = NUMBER0 ;
for ( CoreMap sentence : document ... | Give constants CAPITAL LETTERS |
<nb>
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class NewCookieProvider implements HeaderDelegateProvider < NewCookie > {
if ( cookie . isHttpOnly ( ) ) {
b . append ( STRING0 ) ;
}
- return b . toString ( ) ;
+ if ( cookie . getExpiry ( ) != null ) {
+... | Add Expires to toString if set with prefered date format |
<nb> public class IntentionSettingsConfigurable extends BaseConfigurable implements A
}
public String getHelpTopic ( ) {
- return STRING0 ;
+ return STRING1 ;
}
public void disposeComponent ( ) { | Help id corrected |
<nb> public class TwoWayView extends ViewGroup {
HORIZONTAL ;
} ;
+ private static final int TOUCH_MODE_IDLE = NUMBER0 ;
+ private static final int TOUCH_MODE_DRAGGING = NUMBER1 ;
+ private static final int TOUCH_MODE_FLINGING = NUMBER2 ;
+
private ListAdapter mAdapter ;
private boolean mIsVertical ... | library Move private flags up in the class |
<nb> public interface TypePool {
COMMENT
COMMENT
COMMENT
-
- COMMENT
- COMMENT
- COMMENT
private final String descriptor ;
COMMENT | Removed duplicated documentation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
ObjectContractTest . class ,
TheoriesPerformanceTest . class ,
JUnit4ClassRunnerTest . class ,
- UseSuiteAsASuper... | Added FilterableTest to AllTests |
<nb> final class ActivityStack {
SINGLE
ActivityRecord r = ( ActivityRecord ) msg . obj ;
Slog . w ( TAG , STRING0 + r ) ;
- synchronized ( this ) {
+ synchronized ( mService ) {
activityIdleInternalLocked ( r != null ? r . appToken : null , true , null ) ;
}
} break ; | Fix wrong synch object |
<nb> public class CompletionResult {
return myMatcher . isStartMatch ( myLookupElement ) ;
}
+ @ override
+ public String toString ( ) {
+ return myLookupElement . toString ( ) ;
+ }
} | add CompletionResult toString |
<nb> public class SecondaryLoadBalanceTest extends TestCase {
counters . get ( addr . getHost ( ) ) . incrementAndGet ( ) ;
}
- System . out . println ( STRING0 + nodes . size ( ) ) ;
+ SINGLE
for ( final String host : counters . keySet ( ) ) {
- System . out . println ( host + STRING1 + counters . get ... | removed system out |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class MvcRunConfiguration extends ModuleBasedConfiguration < RunCo
@ notnull ... | Kill all child process when stop grails griffon project |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class GenericFileMessage < T > extends DefaultMessage {
}
@ override
+ @ suppresswarnings ( STRING0 )
+ public void copyFrom ( Message that ) {
+ super . copyFrom ( that ) ;
+
+ if ( that instanc... | GenericFileMessage fixed copyFrom to copy the generic file also |
<nb> public class JavaClientTest extends TestCase {
assertEquals ( NUMBER0 , usersCollection . find ( ) . count ( ) ) ;
db . addUser ( STRING0 , STRING1 . toCharArray ( ) ) ;
- assertEquals ( NUMBER1 , usersCollection . find ( ) . count ( ) ) ;
}
finally {
m . close ( ) ;
<nb> public class JavaClientTes... | Changed test of addUser so that it actually work when mongod is started with auth |
<nb> public final class Queues {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix a few typos in the javadocs of Queues synchronizedQueue |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DiagramObjectCollector {
{
Collection < DBSEntity > tables = collectTables ( monitor , roots ) ;
for ( DBSEntity table : tables ) {
- if (... | Remove views from ERD |
<nb> public class ResolvedConfigurationIdentifier {
@ override
public String toString ( ) {
- return String . format ( STRING0 , getModuleGroup ( ) , getModuleVersion ( ) , getModuleName ( ) , configuration ) ;
+ return String . format ( STRING0 , getModuleGroup ( ) , getModuleName ( ) , getModuleVersion ( ) ... | Fixed ResolvedConfigurationIdentifier toString |
<nb> public class MockFSDirectoryService extends FsDirectoryService {
@ override
public Directory [ ] build ( ) throws IOException {
- return helper . wrapAllInplace ( delegateService . build ( ) ) ;
+ return delegateService . build ( ) ;
}
@ override | Prevent double wrapping directories in MockDirectoryWrapper |
<nb> public class StorageImporter {
SINGLE
if ( account . identities != null ) {
importIdentities ( editor , uuid , account , overwrite , existingAccount , prefs ) ;
+ } else if ( ! mergeImportedAccount ) {
+ SINGLE
+ throw new InvalidSettingValueException ( ) ;
}
SINGLE | Require accounts to at least have one identity when importing |
<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 ;
<nb> public class StreamSession implements IEn... | Make StreamSession more thread safe |
<nb> public final class Closeables {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
+ @ deprecated
public static void closeQuietly ( @ nullable Closeable closeable ) {
try {
close ( closeable , true ) ; | Deprecate Closeables closeQuietly |
<nb> public class AbstractTypeCheckingExtension extends TypeCheckingExtension {
context . pushEnclosingMethod ( methodNode ) ;
}
+ public Set < MethodNode > getGeneratedMethods ( ) {
+ return generatedMethods ;
+ }
+
public List < BinaryExpression > getEnclosingBinaryExpressionStack ( ) {
return conte... | Missing getter for generated methods |
<nb> class AppCompatDelegateImplV9 extends AppCompatDelegateImplBase
@ override
public void onDestroy ( ) {
+ if ( mInvalidatePanelMenuPosted ) {
+ mWindow . getDecorView ( ) . removeCallbacks ( mInvalidatePanelMenuRunnable ) ;
+ }
+
super . onDestroy ( ) ;
if ( mActionBar != null ) { | Remove callback to invalidate menu if necessary |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
import NAMESPACE ;
import ... | Fixed the reference problem caused by externalization of commons lang and google guava |
<nb> public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput
public void setServerUser (
@ consoleparameter ( name = STRING0 , description = STRING1 ) String iServerUserName ,
@ consoleparameter ( name = STRING2 , description = STRING3 ) String iServerUserPasswd ,
- @ consoleparameter (... | Removed unused parameters |
<nb> public class GremlinFluentUtility extends FluentUtility {
if ( pipe instanceof VerticesEdgesPipe ) {
numberedStep = pipelineSize - i ;
break ;
- } else if ( pipe instanceof PropertyFilterPipe || pipe instanceof EdgesVerticesPipe ) {
+ } else if ( pipe instanceof PropertyFilterPipe || pipe instanceof Inte... | fixed IntervalPipe bug |
<nb> public class MediaFile {
}
int lastDot = fileName . lastIndexOf ( STRING0 ) ;
if ( lastDot > NUMBER0 ) {
- String extension = fileName . substring ( lastDot + NUMBER1 ) ;
+ String extension = fileName . substring ( lastDot + NUMBER1 ) . toUpperCase ( ) ;
Integer value = sFileTypeToFormatMap . get ( ext... | Fix case sensitive file extension matching for computing MTP format code |
<nb> public class DefaultJdbcOptimisticLockingExceptionMapper implements JdbcOptimist
Throwable throwable = it . next ( ) ;
SINGLE
if ( throwable instanceof SQLException ) {
- SQLException se = ( SQLException ) it ;
+ SQLException se = ( SQLException ) throwable ;
if ( isConstraintViolation ( se ) ) {
ret... | Corrected the typos |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class Point {
+ public class Point implements Serializable {
private static final long serialVersionUID = - NUMBER0 ; | Made Point class Serializable to support serializing ClusterSet |
<nb> public final class Settings {
MOVED_TO_GLOBAL . add ( Settings . Global . WIFI_SAVED_STATE ) ;
MOVED_TO_GLOBAL . add ( Settings . Global . WIFI_SUPPLICANT_SCAN_INTERVAL_MS ) ;
MOVED_TO_GLOBAL . add ( Settings . Global . WIFI_SUSPEND_OPTIMIZATIONS_ENABLED ) ;
+ MOVED_TO_GLOBAL . add ( Settings . Global . WI... | Add Settings Global WIFI_VERBOSE_LOGGING_ENABLED |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractCatalinaTask extends BaseRedirectorHelperTask {
} catch ( IOException ioe ) {
SINGLE
}
- istream = null ;
}
}
-
}
-
-
} | Fix Eclipse warnings |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ targetapi ( Build . VERSION_CODES . ICE_CREAM_SANDWICH_MR1 )
public final class CameraConfigurationUtils {
private static final String ... | Declare minimum Android in this module without an app |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.