diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class RenameProcessor extends BaseRefactoringProcessor {
String newName = entry . getValue ( ) ;
final RefactoringElementListener elementListener = getTransaction ( ) . getElementListener ( element ) ;
- RenameUtil . doRename ( element , newName , extractUsagesForElement ( element , usages ) , myPro... | get post rename callback before do renaming to avoif invalidation |
<nb> public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton {
if ( value instanceof String ) {
String message = ( String ) value ;
myIssueLinkRenderer . appendTextWithLinks ( message ) ;
- setToolTipText ( message ) ;
}
}
}
- private class MessageColumnInfo extends VcsColumnInfo ... | commit message tooltip hidden in file history tool window |
<nb> public class NioEndpoint {
SINGLE
ka . setComet ( false ) ; SINGLE
processSocket ( ka . getChannel ( ) , status , false ) ; SINGLE
+ if ( status == SocketStatus . TIMEOUT ) return ; SINGLE
}
if ( key . isValid ( ) ) key . cancel ( ) ;
- if ( key . channel ( ) . isOpen ( ) ) key . channel ( ) . close ... | mimic APR behavior and do stuff according to document TIMEOUT should not close the connection |
<nb> public class FS
}
}
+ public static void ensureDirectoryExists ( File dir ) throws IOException
+ {
+ if ( dir . exists ( ) )
+ {
+ return ;
+ }
+ if ( ! dir . mkdirs ( ) )
+ {
+ throw new IOException ( STRING0 + dir . getAbsolutePath ( ) ) ;
+ }
+ }
+
public static boolean isFile ( ... | jetty start add enable an disable functionality for modules |
<nb> public class DatabaseBackend extends SQLiteOpenHelper {
public Conversation findConversation ( final Account account , final Jid contactJid ) {
SQLiteDatabase db = this . getReadableDatabase ( ) ;
- String [ ] selectionArgs = { account . getUuid ( ) , contactJid . toBareJid ( ) . toString ( ) + STRING0 } ;... | fixed bug in find conference in database method |
<nb> public class RsdrMain
buf . clear ( ) ;
long offset = recordSize * i ;
int count = channel . read ( buf , offset ) ;
+ if ( count == - NUMBER0 )
+ {
+ break ;
+ }
byte [ ] bytes = new byte [ count ] ;
buf . clear ( ) ;
buf . get ( bytes ) ; | Fix a bug in the rsdr program |
<nb> public class ASTGenerator {
return ;
}
+ ASTNode decl = ps . compilationUnit . findDeclaringNode ( binding . getKey ( ) ) ;
+ if ( decl == null ) {
+ editor . statusMessage ( name . getIdentifier ( ) + STRING0 +
+ STRING1 , EditorStatus . ERROR ) ;
+ return ;
+ }
+
EventQueue . invokeLater ( ... | don t allow renaming nodes not declared in sketch |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SmppMessage extends DefaultMessage {
protected Object createBody ( ) {
if ( command instanceof MessageRequest ) {
byte [ ] shortMessage = ( ( MessageRequest ) command ) . getSho... | Fixed potential NPE |
<nb> public class DeviceOwner {
if ( mDeviceOwner != null ) {
out . startTag ( null , TAG_DEVICE_OWNER ) ;
out . attribute ( null , ATTR_PACKAGE , mDeviceOwner . packageName ) ;
+ if ( mDeviceOwner . name != null ) {
+ out . attribute ( null , ATTR_NAME , mDeviceOwner . name ) ;
+ }
out . endTag ( null , ... | Write device owner name to XML |
<nb> class PackageManagerService extends IPackageManager . Stub {
System . arraycopy ( cur , NUMBER0 , ret , NUMBER0 , i ) ;
}
if ( i < ( N - NUMBER1 ) ) {
- System . arraycopy ( cur , i , ret , i + NUMBER1 , N - i - NUMBER1 ) ;
+ System . arraycopy ( cur , i + NUMBER1 , ret , i , N - i - NUMBER1 ) ;
}
re... | Fix PM crash due to bad array bookkeeping logic |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | add disclaimer and example |
<nb> public class PyTypeCheckerInspection extends PyInspection {
final PyExpression source = node . getForPart ( ) . getSource ( ) ;
if ( source != null ) {
final PyType type = myTypeEvalContext . getType ( source ) ;
- if ( ! PyTypeChecker . isUnknown ( type ) && ! PyABCUtil . isSubtype ( type , PyNames . ITER... | Fixed possible NPE |
<nb> public class WsFrameServer extends WsFrameBase {
if ( log . isDebugEnabled ( ) ) {
log . debug ( STRING0 ) ;
}
- while ( isOpen ( ) && socketWrapper . isReadyForRead ( ) ) {
+ while ( isOpen ( ) ) {
SINGLE
inputBuffer . mark ( ) ;
inputBuffer . position ( inputBuffer . limit ( ) ) . limit ( inputBu... | Skip preparing the socket read buffer and invoke directly SocketWrapperBase read boolean ByteBuffer |
<nb> public class PhysicsSpace {
|| ( collisionObject1 . getCollideWithGroups ( ) & collisionObject . getCollisionGroup ( ) ) > NUMBER0 ) {
PhysicsCollisionGroupListener listener = collisionGroupListeners . get ( collisionObject . getCollisionGroup ( ) ) ;
PhysicsCollisionGroupListener listener1 = collisionGroupL... | Combine result of both listeners to determine if the collision should occur jbullet |
<nb> public final class ViewRootImpl implements ViewParent ,
enqueueInputEvent ( new KeyEvent ( event . getDownTime ( ) , event . getEventTime ( ) ,
event . getAction ( ) , keyCode , event . getRepeatCount ( ) , event . getMetaState ( ) ,
- event . getScanCode ( ) , event . getFlags ( ) | KeyEvent . FLAG_FALLBA... | Add missing constructor parameter to KeyEvent |
<nb> public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
@ override
protected void completed0 ( Void result , AioSocketChannel channel ) {
( ( DefaultAioUnsafe ) channel . unsafe ( ) ) . connectSuccess ( ) ;
- channel . pipeline ( ) . fireChannelActive ( ) ;
}
@ override | Fix multiple calls to fireChannelActive when using AIO |
<nb> public class SearchAction implements RulesWsAction {
. createParam ( PARAM_QPROFILE )
. setDescription ( STRING0 +
PARAM_ACTIVATION + STRING1 )
- . setExampleValue ( STRING2 ) ;
+ . setExampleValue ( STRING3 ) ;
action
. createParam ( PARAM_INHERITANCE ) | Improve ws rule search example value of qprofile |
<nb> public class StatefulServlet extends HttpServlet {
Stateful bean = ( Stateful ) session . getAttribute ( STRING0 ) ;
if ( bean == null ) {
try {
- bean = ( Stateful ) new InitialContext ( ) . lookup ( STRING1 ) ;
+ bean = ( Stateful ) new InitialContext ( ) . lookup ( STRING2 + Stateful . class . getCano... | remove hardcoded package name EJB JNDI util would come in handy here TODO |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ target ( ElementType . TYPE )
@ retention ( RetentionPolicy . SOURCE )
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ target ( ElementType . TYPE )
@ ret... | Added references to other constructor annotations in the javadoc |
<nb> class StatusPanel extends JPanel {
label . setText ( panel . description . toString ( ) ) ;
- updateButton . setEnabled ( ! contributionListing . hasListDownloadFailed ( )
+ updateButton . setEnabled ( contributionListing . hasDownloadedLatestList ( )
&& ( contributionListing . hasUpdates ( panel . get... | Install and update buttons only visible when net is active |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class Streams {
COMMENT
COMMENT
public static byte [ ] copyToByteArray ( InputStream in ) throws IOException {
- FastByteArrayOutputStream out = FastByteArrayOutputStre... | Use cache streams to copy over byes not the byte array |
<nb> public class DefaultRequirement {
public static final String FUNCTION_LINEAR_WITH_OFFSET = STRING0 ;
public static final String FUNCTION_LINEAR_WITH_THRESHOLD = STRING1 ;
- public static List < String > FUNCTIONS = ImmutableList . of ( FUNCTION_CONSTANT , FUNCTION_LINEAR , FUNCTION_LINEAR_WITH_OFFSET , FUN... | Fix quality flaw |
<nb> public class Transaction extends ChildMessage implements Serializable {
COMMENT
ASSURANCE_CONTRACT_PLEDGE ,
COMMENT
- ASSURANCE_CONTRACT_STUB
- SINGLE
+ ASSURANCE_CONTRACT_STUB ,
+ COMMENT
+ RAISE_FEE ,
+ SINGLE
}
private Purpose purpose = Purpose . UNKNOWN ; | Add RAISE_FEE to transaction purposes |
<nb> public abstract class RunConfigurationExtensionBase < T extends RunConfigurationBa
COMMENT
COMMENT
COMMENT
- protected abstract void writeExternal ( @ notnull final T runConfiguration ,
- @ notnull final Element element ) throws WriteExternalException ;
+ protected void writeExternal ( @ notnull final ... | don t save anything by default |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class NioDatagramWorker implements Runnable {
COMMENT
COMMENT
COMMENT
- if ( ! channel . isOpen ( ) ) {
+ i... | NioDatagramWorker should reject the write attempt on an unbound |
<nb> public abstract class HttpMessageDecoder extends ReplayingDecoder < HttpMessageDec
if ( msg instanceof HttpResponse ) {
HttpResponse res = ( HttpResponse ) msg ;
int code = res . getStatus ( ) . getCode ( ) ;
- if ( code < NUMBER0 ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( code < NUMBER0 && code != NUMB... | Correctly handle earlier versions of websockets |
<nb> public interface FieldLocator {
}
}
+ COMMENT
+ COMMENT
+ COMMENT
class Simple implements Resolution {
+ COMMENT
+ COMMENT
+ COMMENT
private final FieldDescription fieldDescription ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
protected Simple ( FieldDescription fieldDes... | Added missing javadoc |
<nb> public class StreetVertexIndexServiceImpl implements StreetVertexIndexService {
} else if ( uniqueNames . size ( ) == NUMBER0 ) {
calculatedName = new NonLocalizedString ( uniqueNames . get ( NUMBER1 ) ) ;
} else {
- calculatedName = new LocalizedString ( STRING0 , ( String [ ] ) null ) ;
+ calculatedNam... | Fixed wrong translation key unnamedStreed unnamedStreet |
<nb> public class DefaultBroadcaster implements Broadcaster {
protected boolean checkCachedAndPush ( final AtmosphereResource r , final AtmosphereResourceEvent e ) {
boolean cache = retrieveTrackedBroadcast ( r , e ) ;
- if ( ! cache ) return cache ;
+ if ( ! cache ) return false ;
if ( ! ( ( List ) e . g... | Fix trivial typo |
<nb> public class SuggestedFixes {
COMMENT
@ nullable
private static Modifier getTokModifierKind ( ErrorProneToken tok ) {
- SINGLE
switch ( tok . kind ( ) ) {
case PUBLIC :
return Modifier . PUBLIC ;
<nb> public class SuggestedFixes {
return Modifier . NATIVE ;
case STRICTFP :
return Modifier . S... | Handle the default modifier |
<nb> public class OALAudioTrack extends NSObject {
@ property
public native void setPaused ( boolean paused ) ;
- @ property ( selector = STRING0 )
+ @ property
public native boolean isPlaying ( ) ;
@ property | Fixed selector used for the isPlaying method in OALAudioTrack |
<nb> public abstract class TWBaseLayoutManager extends TWAbsLayoutManager {
}
@ override
+ protected void onLayoutScrapList ( Recycler recycler , State state ) {
+ mLanes . save ( ) ;
+ super . onLayoutScrapList ( recycler , state ) ;
+ mLanes . restore ( ) ;
+ }
+
+ @ override
public void setOrie... | layouts Restore state after a layout pass on the scrap list |
<nb> public class ReaderPostListFragment extends Fragment
mSearchView . setIconifiedByDefault ( true ) ;
mSearchView . setIconified ( true ) ;
+ SINGLE
+ SINGLE
+ View view = mSearchView . findViewById ( android . support . v7 . appcompat . R . id . search_src_text ) ;
+ if ( view instanceof AutoCompleteT... | Move setThreshold to initial setup |
<nb> public class CompilationChecker {
@ override
public boolean ignoreOptionalProblems ( ) {
- return true ;
+ return false ;
}
} | Bring back warnings |
<nb> public final class ActivityStackSupervisor {
}
mHomeStack . moveHomeTaskToTop ( ) ;
ActivityRecord r = mHomeStack . topRunningActivityLocked ( null ) ;
- if ( r != null ) {
+ if ( r != null && r . isHomeActivity ( ) ) {
mService . setFocusedActivityLocked ( r ) ;
return resumeTopActivitiesLocked ( mH... | Add test for topmost home stack activity being home |
<nb> public final class Settings {
STRING0 ;
COMMENT
- COMMENT
- COMMENT
- public static final String VOICE_SEARCH_URL = STRING1 ;
-
- COMMENT
- COMMENT
- COMMENT
- public static final String VOICE_SEARCH_ENCODING_THREE_G = STRING2 ;
-
- COMMENT
- COMMENT
- COMMENT
- public static final ... | Remove Voice Search constants factored them out into the Voice Search app |
<nb> NEXT_CHAR :
private static int guessNcols ( ParserSetup setup , String [ ] [ ] data ) {
int res = data [ NUMBER0 ] . length ;
if ( setup . _header ) return res ;
- boolean samelen = true ;
- for ( String [ ] s : data ) samelen &= ( s . length == res ) ;
- if ( samelen ) return res ;
+ boolean samelen... | Tweak parser header col detector |
<nb> public class LayeredIcon extends AbstractSizeAdjustingIcon {
adjustSize ( ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void setIcon ( Icon icon , int layer , @ magicconstant ( valuesFromClass = SwingConstants . class ) int constraint ) {
int width = getIconWidth ( ) ;
int height = getIc... | added MagicConstant javadoc added |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AsyncGenericProgramRunner < Settings extends RunnerSettings >
}
} ) ;
}
- } ) . doWhenR... | avoid double call handleExecutionError |
<nb> public class HtmlParserTest {
assertEquals ( STRING0 , anchors . get ( NUMBER0 ) . absUrl ( STRING1 ) ) ;
}
+ @ test public void handlesProtocolRelativeUrl ( ) {
+ String base = STRING2 ;
+ String html = STRING3 ;
+ Document doc = Jsoup . parse ( html , base ) ;
+ Element el = doc . select ( STRING... | Added test to verify protocol relative URLs |
<nb> public class FeatureInfo extends NodeInfo < SpecInfo , AnnotatedElement > implements
}
public boolean isUnrolled ( ) {
- return isParameterized ( ) && getReflection ( ) . isAnnotationPresent ( Unroll . class ) ;
+ return isParameterized ( ) && getFeatureMethod ( ) . getReflection ( ) . isAnnotationPresen... | fixed previous commit cleaned up Unroll handling |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class NimbusClient extends ThriftClient {
+ public class NimbusClient extends ThriftClient {
private Nimbus . Client _client ;
private static final Logger LOG = LoggerFactory . getLogger ( NimbusClient . class ) ;
<nb> public class... | Remove extra Integer ctor call |
<nb> public class NettyAsyncResponse implements Response {
COMMENT
COMMENT
public boolean hasResponseStatus ( ) {
- return ( bodyParts != null ? true : false ) ;
+ return ( status != null ? true : false ) ;
}
COMMENT | Fix trivial mistake spotted by Benjamin Bentmann |
<nb> public class ScopeChooserCombo extends ComboboxWithBrowseButton {
final DataContext dataContext = DataManager . getInstance ( ) . getDataContext ( ) ;
- PsiElement dataContextElement = LangDataKeys . PSI_ELEMENT . getData ( dataContext ) ;
+ PsiElement dataContextElement = LangDataKeys . PSI_FILE . getDa... | file should be selected instead of resolved element |
<nb> public class InterpreterTest extends TestCase {
String name , price ;
List < Feature > features ;
+ boolean hasfeatures ( ) {
+ return features != null && features . size ( ) > NUMBER0 ;
+ }
}
static class Feature { | broke this test |
<nb> public class ContainerUtil {
return items == null || items . isEmpty ( ) ? def : items . iterator ( ) . next ( ) ;
}
+ @ nullable
+ public static < T > T getLastItem ( final Collection < T > items ) {
+ Iterator < T > itr = items . iterator ( ) ;
+ T res = null ;
+ while ( itr . hasNext ( ) ) {
+... | Create action intention should create action in bottom of controller |
<nb> public class DeepLearning extends Job . ValidatedJob {
STRING0 ,
STRING1 ,
STRING2 ,
+ STRING3 ,
STRING4 ,
} ; | Allow change in whether to shuffle training data after checkpoint restart |
<nb> public class FileStaticAssetRequestHandler implements Handler {
Response response = exchange . getResponse ( ) ;
if ( ! request . getMethod ( ) . isGet ( ) ) {
- response . status ( METHOD_NOT_ALLOWED . code ( ) , METHOD_NOT_ALLOWED . reasonPhrase ( ) ) . send ( ) ;
+ exchange . clientError ( METHOD_NOT_... | Fix client error handling in asset handling |
<nb> public class Validator
}
SINGLE
- return resultsMatch ( controlResult , testResult ) ;
+ return true ;
}
public QueryPair getQueryPair ( ) | Simplify return value in Validator |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public interface SocketIOClient extends ClientOperations {
COMMENT
<nb> public class SocketIOServer implements ClientListeners {
COMMENT
COMMENT
public void start ( ) {
- EventLoopGroup bossGroup... | SocketIOServer stop causes NPE |
<nb> class AttachableImpl implements AttachableInternal {
public final List < Attachable > getAttachables ( ) {
return delegate . getAttachables ( ) ;
}
+
+ @ override
+ public final String toString ( ) {
+ if ( configuration == null ) {
+ return STRING0 ;
+ }
+ else {
+ return configuration . toS... | Override AttachableImpl toString |
<nb> public class DataFormatDefinition extends IdentifiedType {
COMMENT
COMMENT
COMMENT
- @ suppresswarnings ( STRING0 )
public static DataFormat getDataFormat ( RouteContext routeContext , DataFormatDefinition type , String ref ) {
if ( type == null ) {
ObjectHelper . notNull ( ref , STRING1 ) ; | Fix an eclipse warning |
<nb> public class GotoActionModel implements ChooseByNameModel , CustomMatcherModel , C
AnAction [ ] actions = group . getChildren ( null ) ;
includeGroup ( result , group , actions , containingGroupName ) ;
for ( AnAction action : actions ) {
- if ( action == null ) continue ;
+ if ( action == null || action... | go to action don t put separators into the map |
<nb> public class UserConfig {
return userConfigFile ;
}
- public static boolean preventStandbyEnabled ( ) {
+ public static boolean isPreventStandby ( ) {
return preventStandby ;
}
+
+ public static void setPreventStandby ( boolean newPreventStandby ) {
+ preventStandby = newPreventStandby ;
+ } ... | Add setter to prevent standby |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class GitCherryPickAction extends DumbAwareAction {
return ;
}
- e . getPresentation ( ) . setEnabled ( enabled ( project , log , details ) ) ;
+ e . getPresentation ( ) . setEnabledAndVisible ( enabled ( project , log , detail... | fix missing cherry pick action |
<nb> public class MusicPlayerActivity extends BaseActivity
initializeToolbar ( ) ;
initializeFromParams ( savedInstanceState ) ;
- startFullScreenActivityIfNeeded ( getIntent ( ) ) ;
+
+ SINGLE
+ if ( savedInstanceState == null ) {
+ startFullScreenActivityIfNeeded ( getIntent ( ) ) ;
+ }
}
@ ov... | Fix full screen activity from showing up on rotation |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public @ interface AtmosphereHandlerService {
COMMENT
COMMENT
Class < ? extends AtmosphereInterceptor > [ ] interceptors ( ) defa... | Add support for specifying BroadcasterCache |
<nb> class Scroller {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
<nb> public class Solo {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT | Clarified javadoc for scrollUpList in Solo and Scroller |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- @ deprecated
public class CharacterControl extends PhysicsCharacter implements PhysicsControl {
protected Spatial spatial ; | remove deprecation of CharacterControl |
<nb> public class TreeContactList
else
groupNode = parentNode . addContactGroup ( contactImpl ) ;
+ TreeNode node
+ = treeModel . getRoot ( ) . getChildAfter ( groupNode ) ;
SINGLE
if ( group . getSourceIndex ( )
< GuiActivator . getContactListService ( )
. getSourceIndex ( )
&& rootUIGroup == null ... | Fixes the appearance of the Contacts group |
<nb> abstract class BasicInvocation implements ResponseHandler , Runnable {
}
}
- @ edu.umd.cs.findbugs.annotations.suppresswarnings ( value = STRING0 ,
- justification = STRING1 )
private Object resolveResponse ( Object obj ) {
if ( obj == null ) {
return NULL_RESPONSE ; | Removed unwanted findbugs supression |
<nb> public class DisUnitySettings {
}
public boolean isClassFiltered ( Integer classID ) {
- return classFilter != null && classFilter . contains ( classID ) ;
+ return classFilter != null && ! classFilter . contains ( classID ) ;
}
} | Fixed wrong class filter condition |
<nb> public class InternalClusterService extends AbstractLifecycleComponent < ClusterSe
task . listener . clusterStateProcessed ( task . source , previousClusterState , newClusterState ) ;
}
- executor . clusterStatePublished ( newClusterState ) ;
+ try {
+ executor . clusterStatePublished ( newClusterState... | Safely notify cluster state task executor of publish |
<nb> public abstract class IndexableSetContributor implements IndexedRootsProvider {
}
public static Set < VirtualFile > getRootsToIndex ( IndexedRootsProvider provider ) {
- COMMENT
if ( provider instanceof IndexableSetContributor ) {
return ( ( IndexableSetContributor ) provider ) . getAdditionalRootsToIn... | don t convert file url file |
<nb> public class QKLinearLayout extends LinearLayout {
@ targetapi ( NUMBER0 )
@ override
public void setBackground ( Drawable background ) {
- background . mutate ( ) . setColorFilter ( mBackgroundTint , PorterDuff . Mode . SRC_ATOP ) ;
+ background . mutate ( ) . setColorFilter ( mBackgroundTint , PorterDu... | Fix dialog shadow |
<nb> public class ApplicationImpl extends ComponentManagerImpl implements Application
}
public Future < ? > executeOnPooledThread ( Runnable action ) {
- synchronized ( ourThreadExecutorsService ) {
- return ourThreadExecutorsService . submit ( action ) ;
- }
+ return ourThreadExecutorsService . submit ( ... | avoid unneeded synchronization |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Corrected wrong package name in Javadoc |
<nb> public class RenderSessionImpl extends RenderAction < SessionParams > {
SINGLE
boolean isThemeAppCompat = false ;
for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
+ if ( defaultTheme == null ) {
+ break ;
+ }
SINGLE
if ( defaultTheme . getName ( ) . startsWith ( STRING0 ) ) {
isThemeAppCompat = tru... | Fix isThemeAppCompat NPE when using an invalid theme |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PrivacyManager {
SINGLE
if ( result . time >= NUMBER0 ) {
key . restricted = restricted ;
- if ( result . time > NUMBER... | Log out of band caching |
<nb> public class WeatherDemo extends Activity {
mgr . removeUpdates ( onLocationChange ) ;
}
+ @ override
+ public void onDestroy ( ) {
+ super . onDestroy ( ) ;
+
+ client . getConnectionManager ( ) . shutdown ( ) ;
+ }
+
private void updateForecast ( Location loc ) {
String url = String . for... | Added shutdown of HttpClient to onDestroy |
<nb> public class OsgiSpringCamelContext extends SpringCamelContext {
ctx = bundleContext ;
}
FactoryFinder finder = new OsgiFactoryFinderResolver ( bundleContext ) . resolveDefaultFactoryFinder ( getClassResolver ( ) ) ;
- return new OsgiTypeConverter ( ctx , getInjector ( ) , finder ) ;
+ return new OsgiTyp... | Adapt to latest changes of OsgiTypeConverter constructor |
<nb> public class ConstantsAndVariables implements Serializable {
SINGLE
SINGLE
- String backgroundSymbol = STRING0 ;
+ public String backgroundSymbol = STRING0 ;
int wordShaper = WordShapeClassifier . WORDSHAPECHRIS2 ;
private Map < String , String > wordShapeCache = new HashMap < String , String > ( )... | make a var public |
<nb> public abstract class ActionPlaces {
public static final String COMMANDER_POPUP = STRING0 ;
public static final String COMMANDER_TOOLBAR = STRING1 ;
public static final String CONTEXT_TOOLBAR = STRING2 ;
+ public static final String TOOLWINDOW_TITLE = STRING3 ;
public static final String PROJECT_VIEW_P... | introduce ActionPlaces TOOLWINDOW_TITLE |
<nb> public class TwitterActivity extends SherlockActivity implements ExtendedListVie
protected QuickAdapter adapter ;
@ nonconfigurationinstance
- private String followingAccount = STRING0 ;
+ protected String followingAccount = STRING0 ;
@ afterviews
void afterViews ( ) { | Fixed private field |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public class ConfigurationDialog implements ActionListener {
Rule rule = ( Rule ) iter . next ( ) ;
cons . gridy = row ;
- JCheckBox checkBox = null ;
- if ( rule instanceof PatternRule ) { ... | don t display the pattern in the dialog for now |
<nb> abstract class StatementAnalyzer < T extends Analysis > extends DefaultTraversalVis
FunctionInfo eqFunctionInfo = context . getFunctionInfo ( eqFunctionIdent ) ;
Function eqFunction = context . allocateFunction ( eqFunctionInfo , eqArguments ) ;
- argumentTypes = new ArrayList < > ( ) ;
- argumentTypes .... | simplified List creation |
<nb> public class ResultSetViewer extends Viewer
@ override
public boolean isHasMoreData ( ) {
- return dataReceiver . isHasMoreData ( ) ;
+ return getExecutionContext ( ) != null && dataReceiver . isHasMoreData ( ) ;
}
@ override | RSV segment read fix in disconnected editor |
<nb> public final class FileDataManagerTest {
COMMENT
@ test
public void clearPersistedFilesTest ( ) throws Exception {
- writeFileWithBlocks ( NUMBER0 , ImmutableList . of ( NUMBER0 , NUMBER1 ) ) ;
+ writeFileWithBlocks ( NUMBER0 , ImmutableList . of ( NUMBER1 , NUMBER2 ) ) ;
mManager . clearPersistedFiles... | Improve clarity of clearPersistFilesTest |
<nb> public abstract class Message implements Serializable {
private static final long serialVersionUID = NUMBER0 L ;
SINGLE
- private static final Wire WIRE = new Wire ( ) ;
+ static final Wire WIRE = new Wire ( ) ;
COMMENT
COMMENT
<nb> final class MessageSerializedForm implements Serializable {
tr... | Remove wasteful default instance allocation on deserialize |
<nb> public class MessageView extends K9Activity implements OnClickListener
private void onMove ( )
{
- if ( MessagingController . getInstance ( getApplication ( ) ) . isMoveCapable ( mAccount ) == false )
+ if ( ( MessagingController . getInstance ( getApplication ( ) ) . isMoveCapable ( mAccount ) == false ... | Avoid NullPointerException when trying to move a message before it is fully loaded in message view |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class EmptyViewRecyclerView extends RecyclerView {
private View mEmptyView ;
<nb> import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
public class MultiSelectRecyclerViewAdapter extends ... | Add comments to new classes |
<nb> public interface OperationService {
long getExecutedOperationCount ( ) ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- void dumpPerformanceMetrics ( StringBuffer sb ) ;
-
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class OperationServ... | Removed deprecated OperationService dumpPerformanceMetrics |
<nb> public class TestOperationSetPresence
contactPresEvtCollector ) ;
synchronized ( contactPresEvtCollector ) {
- operationSetPresence2 . publishPresenceStatus ( newStatus , STRING0 ) ;
+ SINGLE
+ operationSetPresence2 . publishPresenceStatus ( newStatus , null ) ;
SINGLE
contactPresEvtCollector . wai... | temporaly remove status message for the first status change to see will the build failed again |
<nb> public final class RIL extends BaseCommands implements CommandsInterface {
rr . onError ( GENERIC_FAILURE , null ) ;
rr . release ( ) ;
}
+ } finally {
+ SINGLE
+ SINGLE
+ SINGLE
+ releaseWakeLockIfDone ( ) ;
}
if ( ! alreadySubtracted ) {
<nb> public final class RIL extends BaseCommands im... | Release wakelock on RIL request send error |
<nb> public class SymbolAllocator
{
Preconditions . checkNotNull ( nameHint , STRING0 ) ;
+ SINGLE
+ nameHint = nameHint . toLowerCase ( ) ;
+
if ( nameHint . contains ( STRING1 ) ) {
nameHint = nameHint . substring ( NUMBER0 , nameHint . indexOf ( STRING1 ) ) ;
}
<nb> public abstract class Abstract... | Fix symbol to QualifiedName conversion |
<nb> final class BindingClass {
if ( requiresRemoval ) {
TypeName listenerClassName = bestGuess ( listener . type ( ) ) ;
listenerField = fieldName + ( ( ClassName ) listenerClassName ) . simpleName ( ) ;
- result . addStatement ( STRING0 , listenerField , callback . build ( ) ) ;
+ result . addStatement ( ST... | Remove redundant this keyword |
<nb> public class WifiConfiguration implements Parcelable {
return sbuf . toString ( ) ;
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public WifiConfiguration ( ScanResult scannedAP ) {
- networkId = - NUMBER0 ;
- SSID = scannedAP . SSID ;
- BSSID = scannedAP . BSSID ;
- }
- COMMENT... | Remove dead commented code |
<nb> public class StudyProjectGenerator {
File cacheFile = new File ( myCoursesDir , CACHE_NAME ) ;
PrintWriter writer = null ;
try {
+ if ( ! myCoursesDir . exists ( ) ) {
+ final boolean created = myCoursesDir . mkdirs ( ) ;
+ if ( ! created ) {
+ LOG . error ( STRING0 ) ;
+ return ;
+ }
+ }
if ... | create a new courses directory if could not find one |
<nb> public class NiftyJmeDisplay implements SceneProcessor {
soundDev = new SoundDeviceJme ( assetManager , audioRenderer ) ;
renderDev = new RenderDeviceJme ( this ) ;
- inputSys = new InputSystemJme ( ) ;
+ inputSys = new InputSystemJme ( inputManager ) ;
nifty = new Nifty ( renderDev , soundDev , inpu... | Fixed build problem due to changed constructor format |
<nb> public class DbSupportFactory {
}
SINGLE
- if ( databaseProductName . startsWith ( STRING0 ) ) {
+ if ( databaseProductName . startsWith ( STRING1 ) ) {
return new SybaseASEDbSupport ( connection ) ;
} | Fixed Sybase ASE database identification string |
<nb> import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- CO... | Updated example configuration in javadoc for LdapAuthenticationProvider |
<nb> public class ServletContextImpl implements ServletContext {
@ override
public ServletRegistration getServletRegistration ( final String servletName ) {
final ServletInfo servlet = deploymentInfo . getServlets ( ) . get ( servletName ) ;
+ if ( servlet == null ) {
+ return null ;
+ }
return new Servle... | Fix ServletContextImpl getServletRegistration bug |
<nb> public class OldIndexBackwardsCompatibilityIT extends ESIntegTestCase {
}
}
+ @ awaitsfix ( bugUrl = STRING0 )
public void testOldIndexes ( ) throws Exception {
setupCluster ( ) ; | TEST Temporarily silence failing bwc test |
<nb> public class MulticastService implements Runnable {
final byte packetVersion = input . readByte ( ) ;
if ( packetVersion != Packet . VERSION ) {
logger . warning ( STRING0
- + Packet . VERSION + STRING1 + packetVersion ) ;
+ + Packet . VERSION + STRING1 + packetVersion
+ + STRING2 + datagramPacketRecei... | Add sender s address to warning on JoinRequest to be able to identify it |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | remove javadoc warning |
<nb> public class AccountManagerService
final boolean permissionGranted = customTokens ||
permissionIsGranted ( account , authTokenType , callerUid ) ;
+ if ( loginOptions == null ) {
+ loginOptions = new Bundle ( ) ;
+ }
if ( customTokens ) {
SINGLE
loginOptions . putInt ( AccountManager . KEY_CALLER... | Fix NPE caller may not pass loginOptions |
<nb> public abstract class RemoteSiteTest extends AbstractBasicTest {
int byteToRead = lengthWrapper [ NUMBER0 ] ;
Assert . assertEquals ( available , byteToRead ) ;
-
- String page = new String ( bytes , NUMBER0 , byteToRead , STRING0 ) ;
- Assert . assertEquals ( page . length ( ) , r . getResponseBody ( ... | Remove that part for now as it suffer encoding issue |
<nb> public class TestCommandTest {
return new DependencyGraph ( graph ) ;
}
- < < < < < < < HEAD
- == == == =
- < < < < < < < HEAD
- == == == =
- > > > > > > > d80e841 . . . Add STRING0 as an option to java_test ( )
COMMENT
COMMENT
COMMENT
<nb> public class TestCommandTest {
( expectedStr . e... | Somehow some merge garbage got into the repo |
<nb> public class XWebView extends XHook {
SINGLE
} else if ( mMethod == Methods . loadUrl ) {
- if ( param . args . length > NUMBER0 )
- if ( isRestrictedExtra ( param , ( String ) param . args [ NUMBER0 ] ) ) {
+ if ( param . args . length > NUMBER0 ) {
+ String extra = ( param . args [ NUMBER0 ] instan... | Fix class cast exception support info |
<nb> public class ViewTest {
shadowOf ( view ) . checkedPerformClick ( ) ;
}
- @ ignore ( STRING0 )
@ test
public void getBackground_shouldReturnNullIfNoBackgroundHasBeenSet ( ) throws Exception {
assertThat ( view . getBackground ( ) , nullValue ( ) ) ;
}
- @ ignore ( STRING0 )
@ test
public vo... | removed ignored tests |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.