diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class StdErrLog extends AbstractLogger
{ | Fix reference to org eclipse jetty util log stderr LONG system property in javadoc for StdErrLog |
<nb> public class OverridableMethodCallInConstructorInspection
this . methodName = methodName ;
}
+ @ notnull
public String getName ( ) {
return InspectionGadgetsBundle . message (
STRING0 , methodName ) ;
<nb> public class OverridableMethodCallInConstructorInspection
if ( ! PsiUtil . canBeOverriden (... | don t report calls to overridable methods of other classes |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SearchFragment extends ListFragment {
final int vertPadding = getResources ( ) . getDimensionPixelSize... | Cast MainActivity correctly |
<nb> public class AndroidMultiTouchHandler implements AndroidTouchHandler {
case MotionEvent . ACTION_POINTER_UP :
case MotionEvent . ACTION_OUTSIDE :
case MotionEvent . ACTION_CANCEL :
- realPointerIndex = input . lookUpPointerIndex ( pointerId ) ;
+ realPointerIndex = input . lookUpPointerIndex ( pointerId ... | fixed multitouch pointer id remapping |
<nb> public class FactoryCreateRule extends Rule {
SINGLE
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public FactoryCreateRule (
- String className ,
- String attributeName ,
- boolean ignoreCreateExceptions ... | Remove unused constructors |
<nb> import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
public interface Task {
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
void execute ( RowReceiver rowReceiver ) ;
COMMEN... | Fix NPE in BulkPortal |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SlackProducer extends DefaultProducer {
slackMessage . setIconUrl ( slackEndpoint . getIconUrl ( ) ) ;
slackMessage . setIc... | camel slack should use charset when sending to slack |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Remove duplicated the from javadoc |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT... | add missing copyright |
<nb> public class RealmExampleActivity extends Activity implements AdapterView . OnItem
}
JsonParser parser = new JsonParser ( ) ;
- JsonArray array = parser . parse ( new InputStreamReader ( stream ) ) . getAsJsonArray ( ) ;
+ JsonArray jsonArray = parser . parse ( new InputStreamReader ( stream ) ) . getAsJ... | Updated jsonArray variable based on pull request feedback |
<nb> public class ControllerActionTransformer implements GrailsArtefactClassInjector ,
TraitInjectionUtils . injectTrait ( compilationUnit , source , commandObjectNode , Validateable . class ) ;
List < ConstructorNode > declaredConstructors = commandObjectNode . getDeclaredConstructors ( ) ;
- if ( declaredCons... | Add object initializers instead of creating the statement manually |
<nb> public final class CommandLineInvoker {
List < String > lines = new ArrayList < String > ( ) ;
try {
while ( ( line = reader . readLine ( ) ) != null ) {
- lines . add ( line ) ;
+ if ( ! line . startsWith ( STRING0 ) ) {
+ lines . add ( line ) ;
+ }
}
}
catch ( IOException ex ) { | Ignore special variable related JVM output in CommandLineInvoker |
<nb> import static NAMESPACE
COMMENT
COMMENT
public class ProblemDescriptionNode extends SuppressableInspectionTreeNode {
- private final static Logger LOG = Logger . getInstance ( ProblemDescriptionNode . class ) ;
protected final InspectionToolWrapper myToolWrapper ;
private final CommonProblemDescriptor ... | don t use possibly null variable to get a Project in ProblemDescriptorNode |
<nb> class GutterIntentionAction extends AbstractIntentionAction implements Comparabl
return descriptor . getAction ( ) ;
}
} ) ;
- descriptors . add ( new HighlightInfo . IntentionActionDescriptor ( first . getAction ( ) , options , first . getDisplayName ( ) , first . getIcon ( ) ) ) ;
+ descriptors . add (... | remove options header |
<nb> public class ObjectType extends TypeWithProperties {
}
boolean isInhabitable ( ) {
- for ( String pname : props . keySet ( ) ) {
- if ( ! props . get ( pname ) . getType ( ) . isInhabitable ( ) ) {
+ for ( Property p : props . values ( ) ) {
+ if ( ! p . getType ( ) . isInhabitable ( ) ) {
return f... | Don t use Map keySet when we only care about values |
<nb> public class OfflineMessageManager {
item . setAction ( STRING0 ) ;
request . addItem ( item ) ;
}
- connection . createPacketCollectorAndSend ( request ) . nextResultOrThrow ( ) ;
-
SINGLE
PacketFilter messageFilter = new AndFilter ( packetFilter , new PacketFilter ( ) {
public boolean accept ( Pa... | Send request after the PacketCollector was setup |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
}
final int preferredRotation ;
- if ( mHdmiPlugged ) {
- SINGLE
- preferredRotation = mHdmiRotation ;
- } else if ( mLidOpen == LID_OPEN && mLidOpenRotation >= NUMBER0 ) {
+ if ( mLidOpen == LID_OPEN && mLidOpenRotation >= NUMBER0 ) ... | Make the dock orientation override the HDMI orientation |
<nb> import NAMESPACE ;
HomeActivity . class ,
HomeFragment . class
} ,
- complete = false ,
+ addsTo = AndroidModule . class ,
library = true
)
public class ActivityModule { | Switch Android example to use addsTo for a complete module |
<nb> class RecentTasks extends ArrayList < TaskRecord > {
SINGLE
if ( mPersistedTaskIds . get ( userId ) == null ) {
mPersistedTaskIds . put ( userId , mTaskPersister . loadPersistedTaskIdsForUser ( userId ) ) ;
+ Slog . i ( TAG , STRING0 + userId ) ;
}
}
<nb> class RecentTasks extends ArrayList < TaskR... | Prevent NPE when syncing recent tasks |
<nb> public class AtmosphereRequest extends HttpServletRequestWrapper {
COMMENT
@ override
public String getRemoteUser ( ) {
- return b . request . getRemoteUser ( ) ;
+ return b . principal != null ? b . principal . getName ( ) : b . request . getRemoteUser ( ) ;
}
COMMENT | Add getRemoteUser Support |
<nb> class DayView extends CheckedTextView {
private void setEnabled ( ) {
super . setEnabled ( isInRange && ! isDecoratedDisabled ) ;
- setVisibility ( isEnabled ( ) || showOtherDates ? View . VISIBLE : View . INVISIBLE ) ;
+ setVisibility ( isInRange || showOtherDates ? View . VISIBLE : View . INVISIBLE ) ;... | Fix logic to show disabled days but not ones out of range |
<nb> public abstract class SocketReader implements Runnable {
}
else {
if ( ! processUnknowPacket ( doc ) ) {
- throw new XmlPullParserException ( LocaleUtils . getLocalizedString (
- STRING0 ) + tag ) ;
+ Log . warn ( LocaleUtils . getLocalizedString ( STRING0 ) +
+ doc . asXML ( ) ) ;
+ open = false ;... | Improved logging when a packet is of an unknown type |
<nb> final class SQLiteBooksDatabase extends BooksDatabase {
@ override
protected String getHash ( long bookId , long lastModified ) {
- final SQLiteStatement statement = get (
- STRING0
- ) ;
- statement . bindLong ( NUMBER0 , bookId ) ;
- statement . bindLong ( NUMBER1 , lastModified ) ;
try {
+ f... | fixed possible sync crash |
<nb> public class QueryableStateIntegrationTest {
} catch ( final IllegalStateException e ) {
SINGLE
return false ;
+ } catch ( final InvalidStateStoreException e ) {
+ SINGLE
+ return false ;
}
+
return store != null && store . get ( key ) != null ;
}
} , NUMBER0 , STRING0 ) ;
<nb> public class... | catch InvalidStateStoreException in QueryableStateIntegrationTest |
<nb> public abstract class GenericUDF implements Closeable {
return date ;
}
- protected Date getTimestampValue ( DeferredObject [ ] arguments , int i , Converter [ ] converters )
+ protected Timestamp getTimestampValue ( DeferredObject [ ] arguments , int i , Converter [ ] converters )
throws HiveException... | GenericUDF getTimestampValue should return Timestamp instead of Date Alex Pivovarov via Jason Dere |
<nb> public enum ObjectHolderRegistry {
{
try
{
- clazz = Class . forName ( className , true , getClass ( ) . getClassLoader ( ) ) ;
+ clazz = Class . forName ( className , extractFromValue , getClass ( ) . getClassLoader ( ) ) ;
classCache . put ( className , clazz ) ;
}
catch ( Exception ex ) | Fixed issue with ObjectHolder and the new registry system |
<nb> public class AtmosphereResourceImpl implements
COMMENT
public void resume ( ) {
SINGLE
+ try {
synchronized ( event ) {
if ( ! event . isResuming ( ) && ! event . isResumedOnTimeout ( ) && event . isSuspended ( ) && isInScope ) {
action . type = AtmosphereServlet . Action . TYPE . RESUME ;
<nb> pub... | Shield us from any unexpected exception |
<nb> class InspectionTreeCellRenderer extends ColoredTreeCellRenderer {
final Integer occur = entry . getValue ( ) ;
SimpleTextAttributes attrs = SimpleTextAttributes . GRAY_ATTRIBUTES ;
- if ( level == HighlightDisplayLevel . ERROR ) {
+ if ( level == HighlightDisplayLevel . ERROR && ! myView . getGlobalInsp... | do not use red color for severity grouping |
<nb> public abstract class AbstractCassandraStorage extends LoadFunc implements Store
return validator . compose ( value ) ;
}
- protected class CfInfo
+ protected static class CfInfo
{
boolean compactCqlTable = false ;
boolean cql3Table = false ; | make CfInfo a static inner class |
<nb> public class ActFmInvoker {
if ( changesHappened ) {
String gcm = Preferences . getStringValue ( GCMIntentService . PREF_REGISTRATION ) ;
+ ActFmSyncThread . syncLog ( STRING0 + gcm ) ;
if ( ! TextUtils . isEmpty ( gcm ) ) {
params = AndroidUtilities . addToArray ( Object . class , params , STRING1 , g... | Log the gcm token with sync logs |
<nb> public class ChunkGeneratorForest extends ChunkGeneratorTerrain {
r += FLOAT0 ;
}
- if ( r > - FLOAT1 && r < FLOAT1 ) {
+ if ( r > - FLOAT2 && r < FLOAT2 ) {
double r2 = _rand . standNormalDistrDouble ( ) ;
if ( r2 > - NUMBER0 && r2 < - NUMBER1 ) {
c . setBlock ( x , y + NUMBER1 , z , ( byte ) NUMB... | Increased amount of generated trees |
<nb> public interface TypeWriter < T > {
COMMENT
COMMENT
COMMENT
+ @ suppressfbwarnings ( value = STRING0 , justification = STRING1 )
public List < DynamicType > getAuxiliaryTypes ( ) {
return implementationContext . getAuxiliaryTypes ( ) ;
} | Added hint for findbugs |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class GLM extends Request {
-
protected final H2OHexKey _key = new H2OHexKey ( KEY ) ;
protected final H2OHexKeyCol _y = new H2OHexKeyCol ( Y , _key ) ;
protected final HexColumnSelect _x = new HexNonConstantColumnSelect ( X , _key , _y ) ;
<nb> public c... | Added pretty print of model equation for poisson family |
<nb> public class SpecialFiles {
filesCompiledWithoutStdLib . add ( STRING0 ) ; SINGLE
filesCompiledWithoutStdLib . add ( STRING1 ) ; SINGLE
filesCompiledWithoutStdLib . add ( STRING2 ) ; SINGLE
+ filesCompiledWithoutStdLib . add ( STRING3 ) ; SINGLE
+ filesCompiledWithoutStdLib . add ( STRING4 ) ; SINGLE
f... | Fix Android tests |
<nb> public final class ServiceUtils {
SINGLE
clearTraktCredentials ( context ) ;
}
- } catch ( RetrofitError e ) {
+ } catch ( RetrofitError ignored ) {
}
COMMENT
COMMENT | Set exception as ignored for inspection tool |
<nb> public class IssueTrackingTest {
return referenceIssue ;
}
- public void test ( ) {
- IssueDto referenceIssue1 = newReferenceIssue ( STRING0 , NUMBER0 , NUMBER1 , STRING1 ) ;
- IssueDto referenceIssue2 = newReferenceIssue ( STRING2 , NUMBER2 , NUMBER3 , STRING3 ) ;
- IssueDto referenceIssue3 = newRef... | Delete useless code |
<nb> public class Request
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void setLocalPort ( int port ) {
+ localPort = port ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class RemoteIpValve extends ValveBase {
}
request . setServerPort ( port ) ;
if ( changeLocal... | Allow the localPort to be overridden for a request |
<nb> abstract class AbstractJavacOptions implements RuleKeyAppendable {
@ override
public RuleKey . Builder appendToRuleKey ( RuleKey . Builder builder ) {
- SINGLE
builder . setReflectively ( STRING0 , getSourceLevel ( ) )
. setReflectively ( STRING1 , getTargetLevel ( ) )
. setReflectively ( STRING2 , J... | Address a TODO in the AbstractJavacOptions |
<nb> public class BaseDeployer {
jarFullName , srcFile + STRING0 + jarName , true ) ;
}
}
+
+ FileUtil . delete ( srcFile + STRING1 ) ;
}
protected void copyTlds ( File srcFile ) throws Exception { | Rename util jsf to util bridges |
<nb> public abstract class InstanceRegistry implements LeaseManager < InstanceInfo > ,
for ( InstanceInfo instanceInfo : application . getInstances ( ) ) {
appInstanceTillNow . addInstance ( instanceInfo ) ;
}
+ } else {
+ logger . info ( STRING0 ,
+ application . getName ( ) , remoteRegion ) ;
}
}
+ ... | Added some more debug statements |
<nb> public abstract class FileLock
else if ( fileName . getName ( ) . equals ( NeoStore . DEFAULT_NAME ) )
{
FileLock regular = wrapOrNull ( channel . tryLock ( ) ) ;
- if ( regular == null ) return null ;
+ if ( regular == null )
+ throw new IOException ( STRING0 + channel ) ;
+
FileLock extra = getLo... | Improved error reporting for file lock failures |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public class IconUtilEx {
else if ( object instanceof Ejb ) {
return Icons . EJB_ICON ;
}
+ else if ( object instanceof EnterpriseBean ) {
+ return Icons . EJB_ICON ;
... | removing unused code |
<nb> public class WordPress extends Application {
editor . remove ( WordPress . ACCESS_TOKEN_PREFERENCE ) ;
editor . commit ( ) ;
if ( wpDB != null ) {
- wpDB . deleteAllAccounts ( ) ;
wpDB . updateLastBlogId ( - NUMBER0 ) ;
wpDB . deleteDatabase ( this ) ;
} | remove useless deleteAllAccounts in initWpDb |
<nb> public class StringUtils {
COMMENT
COMMENT
public static String getRelativePath ( String basePath , String fullPath ) {
- String relativePath = fullPath . substring ( basePath . length ( ) ) . replace ( STRING0 , STRING1 ) ;
- if ( relativePath . charAt ( NUMBER0 ) == STRING1 ) {
- relativePath = relat... | Fix possible string index out of bounds exception |
<nb> public class IntRangeTest extends TestCase {
assertTrue ( STRING0 , r . contains ( new Integer ( NUMBER0 ) ) ) ;
assertTrue ( STRING1 , r . contains ( new Integer ( NUMBER1 ) ) ) ;
assertTrue ( STRING2 , r . contains ( new Integer ( NUMBER2 ) ) ) ;
+ assertTrue ( STRING3 , r . contains ( new Integer ( NUMB... | fixed broken test case |
<nb> public class XmlSlurper extends DefaultHandler {
final FileInputStream fis = new FileInputStream ( file ) ;
final InputSource input = new InputSource ( fis ) ;
input . setSystemId ( STRING0 + file . getAbsolutePath ( ) ) ;
- return parse ( input ) ;
+ try {
+ return parse ( input ) ;
+ } finally {
... | XmlSlurper does not close InputStream leaks file handles resources |
<nb> class LockScreen extends LinearLayout implements KeyguardScreen , KeyguardUpdateM
private java . text . DateFormat mDateFormat ;
private java . text . DateFormat mTimeFormat ;
private boolean mCreatedInPortrait ;
+ private boolean mDisableMenuKeyInLockScreen ;
COMMENT
COMMENT
<nb> class LockScreen ... | Allow menu hard key to be disabled in LockScreen on some devices |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TcpIpJoiner extends AbstractJoiner {
} else {
final InetAddress [ ] allAddresses = InetAddress . getAllByName ( host ) ;
for ( final InetAdd... | prevent use of Inet6Address when finding possible addresses |
<nb> public class WeldEjbInjectionServices extends AbstractResourceInjectionServices
Class < ? > injectionPointRawType = Reflections . getRawType ( injectionPoint . getType ( ) ) ;
SINGLE
Class < ? > c = clazz ;
- boolean found = true ;
+ boolean found = false ;
while ( c != null && c != Object . class ) { ... | Fix boolean property in handleServiceLookup |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | removed obsolete imports |
<nb> final class ServerControllerService implements Service < ServerController > {
final File [ ] extDirs = serverEnvironment . getJavaExtDirs ( ) ;
final File [ ] newExtDirs = Arrays . copyOf ( extDirs , extDirs . length + NUMBER0 ) ;
- newExtDirs [ extDirs . length ] = new File ( serverEnvironment . getServer... | Fix transposed path |
<nb> public class CacheControlledResponseFeature implements DynamicFeature {
@ override
public void configure ( final ResourceInfo resourceInfo , final FeatureContext configuration ) {
- AnnotatedMethod am = new AnnotatedMethod ( resourceInfo . getResourceMethod ( ) ) ;
+ final AnnotatedMethod am = new Annota... | Removed unnecessary return statement |
<nb> public class AaptCompilerMojo extends AbstractAaptMojo {
COMMENT
private boolean createPackageDirectories ;
- COMMENT
- COMMENT
- COMMENT
- SINGLE
-
public void execute ( ) throws MojoExecutionException , MojoFailureException {
SINGLE
CommandExecutor executor = CommandExecutor . Factory . cre... | Removed unused field |
<nb> public class CppCompletionRequest
private void showCompletionPopup ( JsArray < CppCompletion > completions )
{
SINGLE
- CppCompletionSignatureTip . hideAll ( ) ;
+ if ( completions . length ( ) > NUMBER0 )
+ CppCompletionSignatureTip . hideAll ( ) ;
if ( popup_ == null )
popup_ = createCompletion... | only hide signature tip if we are about to show more completions |
<nb> public class TrayProvider extends ContentProvider {
if ( row == - NUMBER0 ) {
throw new SQLiteException ( STRING0 ) ;
}
- Log . v ( TAG , STRING1 ) ;
return NUMBER0 ;
} else {
SINGLE
<nb> public class TrayProvider extends ContentProvider {
prefSelection ,
prefSelectionArgs ) ;
if ( update > N... | remove unneccessary provider logging |
<nb> public class SplitterTest extends TestCase {
correctListToCheck ( checkAreas , text , new String [ ] { STRING0 } ) ;
}
- public void testWordInBr1 ( ) {
+ COMMENT
String text = STRING1 ;
List < CheckArea > checkAreas = SplitterFactory . getInstance ( ) . getIdentifierSplitter ( ) . split ( text ) ;
... | remove some tests |
<nb> class ContextImpl extends Context {
if ( container != null ) {
compatInfo = container . getDisplayAdjustments ( displayId ) . getCompatibilityInfo ( ) ;
}
- if ( compatInfo == null && displayId == Display . DEFAULT_DISPLAY ) {
- compatInfo = packageInfo . getCompatibilityInfo ( ) ;
+ if ( compatInfo ==... | Set compatInfo to default if unset in ContextImpl constructor |
<nb> public abstract class PackageUtil {
}
public static boolean canBeStarted ( Context context , Intent intent , boolean checkSignature ) {
- System . err . println ( STRING0 + intent . getData ( ) ) ;
final PackageManager manager = context . getApplicationContext ( ) . getPackageManager ( ) ;
final Resolv... | removed debug printing |
<nb> public class MaterializedResult
this . types = ImmutableList . copyOf ( types ) ;
}
+ public Builder rows ( List < MaterializedRow > rows )
+ {
+ this . rows . addAll ( rows ) ;
+ return this ;
+ }
+
public Builder row ( Object . . . values )
{
rows . add ( new MaterializedRow ( DEFAULT_PRE... | Add support for adding rows to MaterializedResult |
<nb> public class TagViewFragment extends TaskListFragment {
( ( FilterWithCustomIntent ) filter ) . customTaskList = new ComponentName ( getActivity ( ) , customComponent ) ;
+ extras . putParcelable ( TOKEN_FILTER , filter ) ;
( ( AstridActivity ) getActivity ( ) ) . setupTasklistFragmentWithFilterAndCustom... | Fixed a bug when toggling subtasks mode |
<nb> public class BaseBulletTest extends BulletTest {
private final static String customDesktopLib = null ; SINGLE
private static boolean initialized = false ;
- private static void init ( ) {
+ public static void init ( ) {
if ( initialized ) return ;
SINGLE
if ( Gdx . app . getType ( ) == ApplicationT... | Fix loading library |
<nb> public class NewChunk extends Chunk {
}
}
if ( rerun ) { _naCnt = - NUMBER0 ; type ( ) ; } SINGLE
- boolean sparse ;
+ boolean sparse = false ;
SINGLE
if ( MIN_SPARSE_RATIO * ( _naCnt + _nzCnt ) < _len ) {
set_sparse ( _naCnt + _nzCnt ) ;
sparse = true ;
- } else sparse = ( _sparseLen != _len )... | cancel sparse in compress if below required sparse ratio instead of just going on with sparse representation |
<nb> public abstract class WPDrawerActivity extends ActionBarActivity {
initBlogSpinner ( ) ;
updateMenuDrawer ( ) ;
+ setToolbarClickListener ( ) ;
+ }
+
+ protected void setToolbarClickListener ( ) {
SINGLE
getToolbar ( ) . setNavigationOnClickListener ( new View . OnClickListener ( ) {
@ override... | Set the toolbarClickListener again once we leave ReaderPostListActivity |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NativeActivity extends Activity implements SurfaceHolder . Callback2 ,
SINGLE
SINGLE
SINGLE
- path = ai . applicationInfo . dataDir +... | Use new nativeLibraryPath field for NativeActivity |
<nb> public class WindowManagerService extends IWindowManager . Stub
SINGLE
SINGLE
- boolean fullscreen = ws . isFullscreen ( dw , dh ) ;
- including = ! ws . mIsImWindow && ! fullscreen ;
+ including = ! ws . mIsImWindow && ! ws . isFullscreen ( dw , dh ) ;
final WindowStateAnimator winAnim = ws . mWin... | Make SurfaceView layers captured by screenshotApplications |
<nb> public final class BridgeResources extends Resources {
}
@ override
- public Drawable getDrawable ( int id ) throws NotFoundException {
- return getDrawable ( id , null ) ;
- }
-
- @ override
public Drawable getDrawable ( int id , Theme theme ) {
Pair < String , ResourceValue > value = getResou... | Remove implementation of deprecated method |
<nb> public class MethodCall implements Implementation . Composable {
COMMENT
COMMENT
COMMENT
- public MethodCall withAssigner ( Assigner assigner , Assigner . Typing typing ) {
+ public Implementation . Composable withAssigner ( Assigner assigner , Assigner . Typing typing ) {
return new MethodCall ( metho... | Do not allow further argument configuration after setting assigner |
<nb> final class ActivityStack {
prev . state = ActivityState . PAUSING ;
prev . task . touchActiveTime ( ) ;
clearLaunchTime ( prev ) ;
- prev . updateThumbnail ( screenshotActivities ( prev ) , null ) ;
+ final ActivityRecord next = mStackSupervisor . topRunningActivityLocked ( ) ;
+ if ( next == null || ... | Do not take screenshots when launching activities |
<nb> public class GetGlue {
case CHECKIN_FAILED :
Toast . makeText ( mContext , mContext . getString ( R . string . checkinfailed ) ,
Toast . LENGTH_LONG ) . show ( ) ;
- EasyTracker . getTracker ( ) . sendEvent ( TAG , STRING0 , mComment , ( long ) NUMBER0 ) ;
+ EasyTracker . getTracker ( ) . sendEvent ( TAG... | Fix GetGlue check in event message |
<nb> public class AeronLatencyUnderLoadPublisher implements RateController . Callback
{
e . printStackTrace ( ) ;
}
- pub . close ( ) ;
- sub . close ( ) ;
- ctx . close ( ) ;
+
aeron . close ( ) ;
try
<nb> public class AeronLatencyUnderLoadSubscriber
sub . poll ( NUMBER0 ) ;
}
-
- sub .... | Fixed seg faults |
<nb> public class TestAsyncContextImpl extends TomcatBaseTest {
}
}
}
-
-
- @ test
- public void testAsyncDispatchEncoding ( ) throws Exception {
-
- }
} | Remove test I opted to host elsewhere |
<nb> public class MethodDescriptionTokenTest {
not ( new MethodDescription . Token ( FOO ,
MODIFIERS ,
Collections . singletonList ( mock ( GenericTypeDescription . class ) ) ,
- second ,
+ first ,
Collections . singletonList ( secondParameter ) ,
Collections . singletonList ( mock ( GenericTypeDescriptio... | Fixed test for method token |
<nb> public interface DBCResultSet extends DBPObject
DBCStatement getSourceStatement ( ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ nullable
Object getAttributeValue ( int index ) throws DBCException ;
@ nullable | DBC uses zero based attribute indexes |
<nb> public class GeocoderResource {
public GeocoderResource ( @ context OTPServer otpServer , @ pathparam ( STRING0 ) String routerId ) {
GraphIndex graphIndex = otpServer . graphService . getGraph ( routerId ) . index ;
- if ( graphIndex . luceneIndex == null ) {
- SINGLE
- graphIndex . luceneIndex = new ... | Synchronize initialization of Lucene index |
<nb> import NAMESPACE ;
import NAMESPACE ;
public interface PermissionManager {
+ COMMENT
+ COMMENT
+ COMMENT
static final String CHAT_PERMISSION = STRING0 ;
+
COMMENT
COMMENT
COMMENT
<nb> public interface PermissionManager {
COMMENT
COMMENT
static final String CHEAT_PERMISSION = STRING1 ;... | Added some javadoc to some permission constants |
<nb> public class IconGridActivity extends AppCompatActivity {
SINGLE
itemAdapter . add ( items ) ;
+ SINGLE
+ fastAdapter . expand ( NUMBER0 ) ;
+
SINGLE
fastAdapter . withSavedInstanceState ( savedInstanceState ) ;
} | expand a item to make example look a bit more interesting |
<nb> public abstract class BaseQuickAdapter < T > extends RecyclerView . Adapter < RecyclerV
mNextLoadEnable = true ;
mFooterView = null ;
}
+ mLastPosition = - NUMBER0 ;
notifyDataSetChanged ( ) ;
} | setNewData add resetLastPosition |
<nb> public class BasicSliceOutput extends SliceOutput
}
@ override
+ public BasicSliceOutput appendInt ( int value )
+ {
+ writeInt ( value ) ;
+ return this ;
+ }
+
+ @ override
public BasicSliceOutput appendShort ( int value )
{
writeShort ( value ) ;
<nb> public class DynamicSliceOutput ... | Add appendInt to Slice |
<nb> public class SocialNetworkManager extends Fragment {
public GooglePlusSocialNetwork getGooglePlusSocialNetwork ( ) {
if ( ! mSocialNetworksMap . containsKey ( GooglePlusSocialNetwork . ID ) ) {
- throw new IllegalStateException ( STRING0 ) ;
+ throw new IllegalStateException ( STRING1 ) ;
}
return ... | changed wrong IllegalStateException from facebook to google |
<nb> public class ParquetHiveRecordCursor
} ) ;
}
catch ( Exception e ) {
- if ( dataSource != null ) {
- try {
- dataSource . close ( ) ;
- }
- catch ( IOException ignored ) {
- }
- }
if ( e instanceof PrestoException ) {
throw ( PrestoException ) e ;
}
<nb> public class ParquetHiveRecordCu... | Fix resource leak in Parquet reeader |
<nb> import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RestrictedObjectMethodsTest extends TestBase {
@ ignore
@ test
- public void shouldNotAllowStubbingRestrictedMethods ( ) {
- try ... | Removed one invalid TODO Ignore |
<nb> public class Time {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static int compare ( Time a , Time b ) {
if ( a == null ) { | Fix typo in Time compare |
<nb> public class LocalStore extends Store implements Serializable , LocalStoreMigrati
{
if ( set != isSet ( Flag . SEEN ) )
{
- folder . setUnreadMessageCount ( folder . getUnreadMessageCount ( ) + ( set ? NUMBER0 : - NUMBER0 ) ) ;
+ folder . setUnreadMessageCount ( folder . getUnreadMessageCount ( ) + ( set... | fix a deleted message count logic error |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AssetServlet extends HttpServlet {
}
}
- private final transient Cache < String , byte [ ] > cache ;
+ private... | Upgrade AssetServlet to use LoadingCache |
<nb> public class ClearWanQueuesTest extends HazelcastTestSupport {
}
@ test
- public void testResumingWanState ( ) throws Exception {
+ public void testClearWanQueue ( ) throws Exception {
ClearWanQueuesRequest clearWanQueuesRequest = new ClearWanQueuesRequest ( STRING0 , STRING1 ) ;
JsonObject jsonObjec... | Fixed method name in ClearWanQueuesTest |
<nb> public class NetworkInfo implements Parcelable {
private boolean mIsAvailable ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public NetworkInfo ( int type ) { }
-
- COMMENT
COMMENT
COMMENT
public NetworkInfo ( int type , int subtype , String typeName , String subtypeName ... | Kill the NetworkInfo int type constructor |
<nb> public class MavenExecuteGoalDialog extends DialogWrapper {
return myGoalsComboBox ;
}
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
... | Remove big outdated comment |
<nb> public class JavaScriptCompressor {
String symbol ;
JavaScriptToken token ;
+ JavaScriptToken lastToken = getToken ( NUMBER0 ) ;
ScriptOrFnScope currentScope ;
JavaScriptIdentifier identifier ;
<nb> public class JavaScriptCompressor {
currentScope = getCurrentScope ( ) ;
switch ( token . getT... | Fix problem with getters and setters by storing last seen token and skipping over the function |
<nb> public final class GlideExecutor extends ThreadPoolExecutor {
@ override
public < T > Future < T > submit ( Callable < T > task ) {
- return super . submit ( task ) ;
+ return maybeWait ( super . submit ( task ) ) ;
}
COMMENT | Fix missing wait in GlideExecutor |
<nb> class ServerThread extends Thread {
bluetoothA2dp ) ;
bluetooth . initAfterA2dpRegistration ( ) ;
+ int airplaneModeOn = Settings . System . getInt ( mContentResolver ,
+ Settings . System . AIRPLANE_MODE_ON , NUMBER0 ) ;
int bluetoothOn = Settings . Secure . getInt ( mContentResolver ,
Settings . Se... | Don t enable Bluetooth when booting into airplane mode |
<nb> public abstract class ValueInstantiator
getValueTypeDesc ( ) ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public Object createFromObjectWith ( Deserializa... | Add docs to new ValueInstantiator and PropertyValueBuffer methods |
<nb> public class GetPatternsFromDataMultiClass implements Serializable {
for ( CoreLabel l : sent ) {
i ++ ;
- if ( ! l . containsKey ( PatternsAnnotations . MatchedPhrases . class ) )
+ SINGLE
+ if ( ! l . containsKey ( PatternsAnnotations . MatchedPhrases . class ) || ! ( l . get ( PatternsAnnotations . ... | making it back compatible |
<nb> import NAMESPACE ;
COMMENT
public abstract class ConfiguredCommand < T extends Configuration > extends Command {
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- protected ConfiguredCommand ( String name ) {
- super ( name , null ) ;
- }
-
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> imp... | Fixed NPE for old description less constructors |
<nb> public class HeaderFixer {
if ( content . startsWith ( STRING0 ) ) {
System . out . println ( STRING1 + inputFile . inputFile + STRING2 ) ;
BufferedWriter writer = new BufferedWriter ( new OutputStreamWriter ( new FileHandle ( inputFile . outputFile ) . write ( false ) ) ) ;
- writer . write ( header + STR... | Added newline for HeaderFixer |
<nb> public class Http2UpgradeHandler extends AbstractStream implements InternalHttpU
Integer . toString ( se . getStreamId ( ) ) , se . getError ( ) ) ) ;
}
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
Stream stream = getStream ( se . getStreamId ( ) , false ) ;
- if ( stream != null && stream . sendReset ( )... | Modify behaviour for resetting streams |
<nb> public class AuditorImpl implements Auditor {
private Timer timer = new Timer ( STRING0 ) ;
private SaveQueuedPacketsTask saveQueuedPacketsTask ;
private FastDateFormat dateFormat ;
+ private static FastDateFormat auditFormat ;
public AuditorImpl ( AuditManager manager ) {
auditManager = manager ;
... | Added milliseconds to audited packets |
<nb> public class VectorClockTest extends TestCase {
clocks [ n + NUMBER0 ] ) ;
}
}
+
+ public void testIncrementAndSerialize ( ) {
+ int node = NUMBER0 ;
+ VectorClock vc = getClock ( node ) ;
+ assertEquals ( node , vc . getMaxVersion ( ) ) ;
+ int increments = NUMBER1 ;
+ for ( int i = NUMBER2 ; ... | Add additional vector clock test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public class JournalIntegrationTest {
private LocalTachyonClust... | Use the new TachyonFileSystem |
<nb> public class CyclicBarrierHttpServer extends ExternalResource {
throw new RuntimeException ( e ) ;
}
}
+ if ( stopped ) {
+ System . out . println ( STRING0 ) ;
+ outputStream . write ( STRING1 . getBytes ( ) ) ;
+ return ;
+ }
+
connected = false ;
released = false ;
} | Send back failure response to client when test server is stopped |
<nb> import NAMESPACE ;
notifyAll ( ) ;
}
}
- if ( state != ExoPlayer . STATE_IDLE ) {
+ if ( state != ExoPlayer . STATE_IDLE && state != ExoPlayer . STATE_PREPARING ) {
SINGLE
handler . sendEmptyMessage ( MSG_DO_SOME_WORK ) ;
} | Don t call doSomeWork if we re preparing |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.