diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class ClosureCheckModule implements Callback , HotSwapCompilerPass {
static final DiagnosticType REFERENCE_TO_SHORT_IMPORT_BY_LONG_NAME =
DiagnosticType . disabled (
STRING0 ,
- STRING1 ) ;
+ STRING2 ) ;
static final DiagnosticType REQUIRE_NOT_AT_TOP_LEVEL =
DiagnosticType . error (
... | Fix error message for new goog module check |
<nb> import NAMESPACE ;
COMMENT
class JpaLocalTxnInterceptor implements MethodInterceptor {
+ SINGLE
@ inject
- private final JpaPersistService emProvider = null ;
+ private JpaPersistService emProvider = null ;
@ inject
- private final UnitOfWork unitOfWork = null ;
+ private UnitOfWork unitOfWor... | This change removes final from fields annotated with Inject |
<nb> public class TableSpeedSearch extends SpeedSearchBase < JTable > {
private static final PairFunction < Object , Cell , String > TO_STRING = new PairFunction < Object , Cell , String > ( ) {
@ override
public String fun ( Object o , Cell cell ) {
- return o == null ? STRING0 : o . toString ( ) ;
+ return ... | we should not use Boolean as source of search review |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
@ targetapi ( NUMBER0 )
final class OverscrollHelper {
+
+ static final String LOG_TAG = STRING0 ;
static void overScrollBy ( PullToRefreshBase < ? > view , int deltaY , int scrollY , boole... | Add Debug to OverScrollHelper |
<nb> public class AnalyticsApplication extends Application {
synchronized public Tracker getDefaultTracker ( ) {
if ( mTracker == null ) {
GoogleAnalytics analytics = GoogleAnalytics . getInstance ( this ) ;
- analytics . getLogger ( ) . setLogLevel ( Logger . LogLevel . VERBOSE ) ;
+ SINGLE
mTracker = anal... | Remove deprecated Logger usage in Analytics |
<nb> public class StreamingSlopPusherTest extends TestCase {
}
Collections . shuffle ( entrySet ) ;
- populateSlops ( NUMBER0 , slopStoreNode0 , entrySet ) ;
+
+ SINGLE
+ List < Versioned < Slop > > firstSet = entrySet . subList ( NUMBER0 , NUMBER1 ) , secondSet = entrySet . subList ( NUMBER1 , NUMBER2 ) ... | Modified unit test to do out of order delivery of slops |
<nb> abstract class ActivityTransitionCoordinator extends ResultReceiver {
final protected ArrayList < View > mSharedElements = new ArrayList < View > ( ) ;
final protected ArrayList < String > mSharedElementNames = new ArrayList < String > ( ) ;
final protected ArrayList < View > mTransitioningViews = new ArrayL... | Fix memory leak of ResultReceiver |
<nb> public class ProjectPopupMenu extends ToolbarPopupMenu
addItem ( commands . projectMru8 ( ) . createMenuItem ( false ) ) ;
addItem ( commands . projectMru9 ( ) . createMenuItem ( false ) ) ;
addSeparator ( ) ;
+ addItem ( commands . clearRecentProjects ( ) . createMenuItem ( false ) ) ;
+ addSeparator ( ... | Add the Clear Recent Projects menu item to the popup |
<nb> public class OrientVertex extends OrientElement implements Vertex {
final String iClassName ) {
return addEdge ( label , inVertex , iClassName , null , ( Object [ ] ) null ) ;
}
+
+ public OrientEdge addEdge ( final String label , final OrientVertex inVertex , final Object [ ] fields ) {
+ return addEd... | Added utility method to setup an edge with properties from JS |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Cleaned up unused import |
<nb> public class TransportSQLActionTest extends SQLTransportIntegrationTest {
@ test
public void testSelectCountStarWithWhereClause ( ) throws Exception {
- execute ( STRING0 ) ;
+ execute ( STRING1 ) ;
ensureGreen ( ) ;
execute ( STRING2 , new Object [ ] { STRING3 } ) ;
execute ( STRING2 , new Object ... | fix a flaky test |
<nb> class WebConfigurationHandlerUtils {
}
public static void initializeConnector ( Resource resource , ModelNode model ) {
- resource . registerChild ( SSLPATH , Resource . Factory . create ( ) ) ;
- final Resource ssl = resource . getChild ( SSLPATH ) ;
if ( model . hasDefined ( SSL ) ) {
+ resource . ... | Don t create ssl configurate resource if there isn t a ssl attribute |
<nb> public class Desktop
else
{
if ( ! file . isDirectory ( ) )
- org . jdesktop . jdic . desktop . Desktop . browse ( file . toURL ( ) ) ;
+ org . jdesktop . jdic . desktop . Desktop . browse (
+ file . toURI ( ) . toURL ( ) ) ;
else
Runtime . getRuntime ( ) . exec ( STRING0
+ file . getCanonicalPat... | Fix opening received files with space in the name in incoming file transfer |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused import |
<nb> public class MetadataTest extends BaseDataTest {
@ before
public void setup ( ) throws Exception {
dataSource = createUnpooledDataSource ( BaseDataTest . BLOG_PROPERTIES ) ;
+ runScript ( dataSource , BLOG_DDL ) ;
}
@ test | fixed wrong test |
<nb> public class WebappVerifierConfiguration implements Configuration
RuleSet suite = RuleSet . load ( configurationUri . toURL ( ) ) ;
- WebappVerifier verifier = suite . createWebappVerifier ( new URI ( context . getWar ( ) ) ) ;
+ String warLocation = context . getWar ( ) ;
+
+ if ( ! warLocation . st... | resolve a uri issue with war files coming in from context xml files |
<nb> public abstract class Drawable {
SINGLE
SINGLE
if ( opts == null ) opts = new BitmapFactory . Options ( ) ;
- opts . inScreenDensity = res . getDisplayMetrics ( ) . noncompatDensityDpi ;
+ opts . inScreenDensity = res != null
+ ? res . getDisplayMetrics ( ) . noncompatDensityDpi : DisplayMetrics . DENS... | Cannot make or receive phone calls |
<nb> public class Camera {
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add documentation for scene mode |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AllTests {
suite . addTestSuite ( CommandReplayerTest . class ) ;
suite . addTestSuite ( CommandRewriteTest . class ) ;
suite . addTestSuite ( InterceptingInjectorBuilderTest . ... | Moving InjectionController out |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class LdapTemplateTests extends AbstractLdapIntegrationTests {
+ public class SpringSecurityLdapTemplateTests extends AbstractLdapIntegrationTests {
SINGLE
private SpringSecurityLdapTemplate template ;
<nb> public class LdapTemplateTests extends... | Reamed template test class to match tested class |
<nb> public class CallTransferHandler
if ( detailProvider != null )
{
- callee = detail . getAddress ( ) ;
- provider = detailProvider ;
- break ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ if ( callConference . isJitsiVideoBridge ( ) )
+ {
+ for ( Call call : callConference . getCalls ( ) )
... | Only allow contacts from the same account as the videobridge to be invited into |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class GuiceServletContextListener
public void contextInitialized ( ServletContextEvent servletContextEvent ) {
ServletContext servletContext = servletContext... | Added support for early access to the Servlet conteext |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ deprecated
public class LocationProvider { | suggest LocationRequest rather than Criteria |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AndroidCallableWrapper < ResultT > implements Runnable {
if ( e != null ) {
if ( launchLocation != null ) {
final StackTraceElement [ ] sta... | Remove reference to Arrays copyOf |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ api
public class UIData implements AssetData {
private UIWidget rootWidget ;
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ... | Expose UIElement to modules |
<nb> public class Test extends ConventionTask implements JavaForkOptions , PatternFilt
private boolean ignoreFailures ;
private FileCollection classpath ;
private TestFramework testFramework ;
- private boolean testReport ;
+ private boolean testReport = true ;
private boolean scanForTestClasses = true ;
... | reverted the default of the testReport property to true |
<nb> public class ChildBrowser extends Plugin {
edittext . setText ( url ) ;
edittext . setInputType ( InputType . TYPE_TEXT_VARIATION_URI ) ;
edittext . setImeOptions ( EditorInfo . IME_ACTION_GO ) ;
+ edittext . setInputType ( InputType . TYPE_NULL ) ; SINGLE
edittext . setOnKeyListener ( new View . OnKeyLi... | Removed the url text edit ability |
<nb> public class AceEditor implements DocDisplay ,
{
Selection selection = getSession ( ) . getSelection ( ) ;
String oldValue = getSession ( ) . getTextRange ( selection . getRange ( ) ) ;
- value = StringUtil . normalizeNewLines ( value ) ;
replaceSelection ( value ) ;
<nb> public class AceEditor imp... | normalize newlines in single argument replaceSelection |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FilterResourcesStep implements Step {
SINGLE
SINGLE
+ String fromDensity = ( density == Density . NO_QUALIFIER ? STRING... | Fix regex when downscaling from drawable |
<nb> public class GrailsDataBinder extends ServletRequestDataBinder {
}
String propertyName = getNameOf ( propertyValue ) ;
- bean . setAutoGrowNestedPaths ( true ) ;
Class < ? > type = bean . getPropertyType ( propertyName ) ;
if ( type == null ) {
continue ;
}
PropertyEditor editor = findCustomEdi... | Fix failing functional test |
<nb> public class ContactJabberImpl
{
if ( obj == null
|| ! ( obj instanceof ContactJabberImpl )
- || ! ( ( ContactJabberImpl ) obj ) . getAddress ( ) . equals ( getAddress ( ) ) )
+ || ! ( ( ( ContactJabberImpl ) obj ) . getAddress ( ) . equals ( getAddress ( ) )
+ && ( ( ContactJabberImpl ) obj ) . getPro... | fixed equals method to return false for contacts from different providers |
<nb> public class ViewPreloadSizeProvider < T > implements ListPreloader . PreloadSizeProv
@ override
public void onSizeReady ( int width , int height ) {
this . size = new int [ ] { width , height } ;
- this . viewTarget = null ;
}
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMME... | Only set size once in ViewPreloadSizeProvider |
<nb> public class Key < T > {
return new Key < T > ( name ) ;
}
- @ nullable
public T get ( @ nullable UserDataHolder holder ) {
return holder == null ? null : holder . getUserData ( this ) ;
}
- @ nullable
public T get ( @ nullable Map < Key , ? > holder ) {
SINGLE
return holder == null ? null ... | remove Nullable from key get as it s too generic |
<nb> public abstract class RxRatpack {
private final ExecControl execControl ;
public ExecutionBackedSubscriber ( ExecControl execControl , Subscriber < ? super T > subscriber ) {
+ super ( subscriber ) ;
this . execControl = execControl ;
this . subscriber = subscriber ;
} | Pass the Subscription down the chain for the subscriber |
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
COMMENT
COMMENT
boolean shouldShowSelector ( ) {
- return ( ! isInTouchMode ( ) ) || ( touchModeDrawsInPressedState ( ) && isPressed ( ) ) ;
+ return ( isFocused ( ) && ! isInTouchMode ( ) ) || ( touchModeDrawsInPressedSt... | Only draw AbsListView selector when focused or pressed |
<nb> import NAMESPACE ;
import NAMESPACE ;
final class ImmutableList < T > extends AbstractList < T > implements RandomAccess , Serializable {
- final List < T > list ;
+ private final ArrayList < T > list ;
ImmutableList ( List < T > list ) {
this . list = new ArrayList < > ( list ) ;
<nb> final clas... | Provide faster defensive copy |
<nb> public class SentimentPipeline {
break ;
}
case ROOT : {
- int sentiment = RNNCoreAnnotations . getPredictedClass ( tree ) ;
out . println ( STRING0 + sentence . get ( SentimentCoreAnnotations . ClassName . class ) ) ;
break ;
} | Remove an unneeded assignment |
<nb> public final class NdefMessage implements Parcelable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public int getByteArrayLength ( ) { | Fix doc bug |
<nb> public class ReproduceInfoPrinter extends RunListener {
public ReproduceErrorMessageBuilder appendESProperties ( ) {
appendProperties ( STRING0 , STRING1 , STRING2 , TESTS_CLUSTER , TestCluster . TESTS_ENABLE_MOCK_MODULES ,
- STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 ) ;
+ STRING3 , STRIN... | TEST fixed typo in ReproduceInfoPrinter s nighly nightly |
<nb> public class XaContainer
SINGLE
TxIdGenerator txIdFactory = config != null ?
( TxIdGenerator ) config . get ( TxIdGenerator . class ) : TxIdGenerator . DEFAULT ;
+ txIdFactory = txIdFactory != null ? txIdFactory : TxIdGenerator . DEFAULT ;
rm = new XaResourceManager ( dataSource , tf , txIdFactory , lo... | o Fixed a copy paste typo in an exception |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class GUtil {
return buffer . toString ( ) ;
}
+ public static String join ( Object [ ] self , String separator ) {
+ ... | Enhanced util classes |
<nb> public class CheckPointerImpl extends LifecycleAdapter implements CheckPointer
COMMENT
msgLog . info ( prefix ( lastClosedTransactionId ) + STRING0 ) ;
storeFlusher . forceEverything ( ) ;
+ msgLog . info ( prefix ( lastClosedTransactionId ) + STRING1 ) ;
COMMENT
COMMENT
<nb> public class CheckPoin... | Improve logging around check pointing |
<nb> public class TestHoveringTank extends SimpleApplication implements AnalogListene
public static void main ( String [ ] args ) {
TestHoveringTank app = new TestHoveringTank ( ) ;
- AppSettings settings = new AppSettings ( true ) ;
- settings . setRenderer ( AppSettings . LWJGL_OPENGL3 ) ;
app . start ( )... | Remove a weird line of code from TestHoveringTank |
<nb> public class PostsActivity extends WPActionBarActivity
}
protected void popPostDetail ( ) {
+ if ( isFinishing ( ) ) {
+ return ;
+ }
+
FragmentManager fm = getFragmentManager ( ) ;
ViewPostFragment f = ( ViewPostFragment ) fm . findFragmentById ( R . id . postDetail ) ;
if ( f == null ) { | Don t pop fragment if the activity is finishing |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class ModalDialogBase extends DialogBox
switch ( nativeEvent . getKeyCode ( ) )
{
case KeyCodes . KEY_ENTER :
+
+ SINGLE
+ Element ... | Allow enter on TextArea |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | fixed typo in javadoc |
<nb> public class AsyncHttpClient {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class AsyncHttpClient {
responseHandler , context ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ ... | Added POST method that takes an entity and amended comments |
<nb> public class InProcessBuildActionExecuter implements BuildActionExecuter < BuildAc
public Object execute ( BuildAction action , BuildRequestContext buildRequestContext , BuildActionParameters actionParameters , ServiceRegistry contextServices ) {
DefaultGradleLauncher gradleLauncher = ( DefaultGradleLauncher... | Shuffled some code around to make more robust |
<nb> import NAMESPACE ;
COMMENT
public class SphinxDocString extends StructuredDocString {
public static String [ ] KEYWORD_ARGUMENT_TAGS = new String [ ] { STRING0 , STRING1 } ;
- public static String [ ] ALL_TAGS = new String [ ] { STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 ... | added paramenters recognized by sphinx |
<nb> public interface BlockStore {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- boolean moveBlock ( long userId , long blockId , long lockId ) throws IOException ;
+ boolean moveBlock ( long userId , long blockId , long lockId , BlockStoreLocation newLocation )
+ throws IOException ; ... | a missing parameter |
<nb> class PackageManagerService extends IPackageManager . Stub {
}
SINGLE
if ( updatedPkg != null && ( parseFlags & PackageParser . PARSE_IS_SYSTEM ) != NUMBER0 ) {
- if ( ! ps . codePath . equals ( scanFile ) ) {
+ if ( ps != null && ! ps . codePath . equals ( scanFile ) ) {
SINGLE
SINGLE
SINGLE | Add null check for package settings |
<nb> public class DateFormat_Delegate {
COMMENT
return false ;
}
+
+ @ layoutlibdelegate
+ COMMENT
+ return false ;
+ }
} | Add missing DateFormat method |
<nb> public class Fragment implements ComponentCallbacks2 , OnCreateContextMenuListene
COMMENT
COMMENT
public void setUserVisibleHint ( boolean isVisibleToUser ) {
- if ( ! mUserVisibleHint && isVisibleToUser && mState < STARTED ) {
+ if ( ! mUserVisibleHint && isVisibleToUser && mState < STARTED && mFragment... | Fix NPE for Fragment setUserVisibleHint true |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PortletContextFactory {
if ( portletContext == null ) {
if ( portlet . isWARFile ( ) ) {
- COMMENT
+ PortletCont... | Fix wrong servlet context for hot deploy wars |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public abstract class CompletionTestBase extends JavaCodeInsightFixtureTestCase
final LookupImpl lookup = ... | introduce LookupArranger to support different sorting strategies in lookups |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Added code example to AbstractInvocationHandler to suggest users to use Reflection newProxy |
<nb> public abstract class ChainableReverseAbstractInterpreter
scope . inferQualifiedSlot ( node , qualifiedName , origType , type ) ;
break ;
+ case Token . THIS :
+ SINGLE
+ break ;
+
default:
throw new IllegalArgumentException ( STRING0 +
node . toStringTree ( ) ) ;
<nb> public class TypeInfere... | Handle this properly in the RAI |
<nb> public class SlidingUpPanelLayout extends ViewGroup {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void setParalaxOffset ( int val ) {
+ mParallaxOffset = val ;
+ requestLayout ( ) ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Added a setter for parallax offset |
<nb> public class SubProcessTest
{
private static final String MESSAGE = STRING0 ;
- private static class TestingProcess extends SubProcess < Callable < String > , String > implements
- Callable < String >
+ private static class TestingProcess extends SubProcess < Callable < String > , String > implements C... | Fixed a broken test case |
<nb> import NAMESPACE ;
COMMENT
public class Loader
{
- private static Pattern zipJar = Pattern . compile ( STRING0 ) ;
- private static Pattern modClass = Pattern . compile ( STRING1 ) ;
+ private static Pattern zipJar = Pattern . compile ( STRING2 ) ;
+ private static Pattern modClass = Pattern . compil... | Fix regular expressions thanks ChickenBones |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public class IpnbImagePanel extends IpnbCodeOutputPanel < IpnbImageOutputCell > {
private static final Logger LOG = Logger . getInstance ( IpnbImagePanel . class ) ;
<nb> public class IpnbImagePanel ext... | python handles incorrectly encoded images in |
<nb> public abstract class AbstractFlexibleItem < VH extends RecyclerView . ViewHolder >
this . mSelectable = selectable ;
}
- @ override
- public boolean isSelected ( ) {
- return mSelected ;
- }
-
- @ override
- public void setSelected ( boolean selected ) {
- this . mSelected = selected ;
- }... | Removed isSelected and setSelected from IFlexible interface |
<nb> public class StreamConsumer extends DefaultConsumer implements Runnable {
eos = line == null ;
if ( ! eos && isRunAllowed ( ) ) {
SINGLE
- line2 = br . readLine ( ) ;
+ line2 = readAhead ( br ) ;
boolean last = line2 == null ;
index = processLine ( line , last , index ) ;
}
<nb> public class Stre... | Fixed regression in camel stream when reading from system in |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
COMMENT
static final int SYSTEM_UI_CHANGING_LAYOUT =
View . SYSTEM_UI_FLAG_HIDE_NAVIGATION
- | View . SYSTEM_UI_FLAG_FULLSCREEN ;
+ | View . SYSTEM_UI_FLAG_FULLSCREEN
+ | View . STATUS_BAR_TRANSLUCENT
+ | View . NAVIGATION_BAR_TRANSLUCE... | Translucent sysui flags affect layout |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
public final class InodeLastModificationTimeEntry implements JournalEntry {
protected final long mId ;
protected final long mLastModificationTimeMs ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMEN... | Added JavaDoc for InodeLastModificationTimeEntry |
<nb> public class PlaygroundActivity extends Activity {
SINGLE
ImageView iv3 = ( ImageView ) findViewById ( R . id . test3 ) ;
- iv3 . setImageBitmap ( new IconicsDrawable ( this , new FontAwesome ( ) , FontAwesome . Icon . faw_android ) . sizeDp ( NUMBER0 ) . color ( Color . parseColor ( STRING0 ) ) . toBitmap... | add sample how to use the new different methods |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
@ weblistener
- public class WsConfigListener implements ServletContextListener {
+ public class ... | Base the examples WsConfigListener on the generic |
<nb> public class Delombok {
}
JavaCompiler delegate = compiler . processAnnotations ( compiler . enterTrees ( toJavacList ( roots ) ) ) ;
+ delegate . flow ( delegate . attribute ( delegate . todo ) ) ;
for ( JCCompilationUnit unit : roots ) {
DelombokResult result = new DelombokResult ( catcher . getComme... | Delombok now also runs attrib on more files this will reveal more errors which is particularly important for tests |
<nb> public class CustomApplication extends Application {
} ) ;
COMMENT
-
- SINGLE
SINGLE
DrawerImageLoader . init ( new DrawerImageLoader . IDrawerImageLoader ( ) {
@ override | remove invalid comment |
<nb> public class TestBanning extends TestCase {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | add comment about random banning test |
<nb> public class StudyProjectGenerator {
courseInfos . addAll ( getCoursesFromCache ( ) ) ;
}
- writer = new PrintWriter ( cacheFile ) ;
+ writer = new PrintWriter ( cacheFile , STRING0 ) ;
for ( CourseInfo courseInfo : courseInfos ) {
final String json = gson . toJson ( courseInfo ) ;
writer . println... | write course names with proper encoding |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class CheckAccessControls implements ScopedCallback , HotSwapCompilerPass {
if ( objectType != null ) {
Property p = objectType . getOwnSlot ( propertyName ) ;
+ Preconditions . checkNotNu... | Add a couple Preconditions checks to debug the crash that is showing up with the new release |
<nb> public class PlaybackDebugger implements UiDebuggerExtension , PlaybackRunner . Sta
new Thread ( ) {
@ override
public void run ( ) {
- new WaitFor ( ) {
+ new WaitFor ( NUMBER0 ) {
@ override
protected boolean condition ( ) {
return KeyboardFocusManager . getCurrentKeyboardFocusManager ( ) . getFo... | reduced timeout in tests to one minute down from ridiculous ten minutes |
<nb> public class BaseFileSystem implements FileSystem {
@ override
public void loadMetadata ( AlluxioURI path , LoadMetadataOptions options )
throws FileDoesNotExistException , IOException , AlluxioException {
+ LOG . debug ( STRING0 , path ) ;
FileSystemMasterClient masterClient = mContext . acquireMasterCl... | Add log to the loadMetadata cmd in BaseFileSystem |
<nb> public final class MoreTypes {
SINGLE
SINGLE
SINGLE
- if ( Objects . equal ( a , b ) ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( Objects . equal ( a , b ) && ! ( a instanceof ExecutableType ) ) {
return true ;
}
EqualVisitorParam p = new EqualVisitorParam ( ) ; | Disable the MoreTypes equal optimization of returning true when TypeMirror equals is true for the specific case of ExecutableType |
<nb> public class MainActivity extends AppCompatActivity implements
findViewById ( R . id . invite_button ) . setOnClickListener ( this ) ;
SINGLE
- SINGLE
+ SINGLE
mGoogleApiClient = new GoogleApiClient . Builder ( this )
. addApi ( AppInvite . API )
. enableAutoManage ( this , this ) | Fixing a typo |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface MavenPublication extends Publication {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix snippets in MavenPublication so that they configure artifacts and not tasks |
<nb> public class LocalSession {
public void setTool ( int item , Tool tool ) throws InvalidToolBindException {
if ( item > NUMBER0 && item < NUMBER1 ) {
throw new InvalidToolBindException ( item , STRING0 ) ;
- } else if ( item == NUMBER0 ) {
- throw new InvalidToolBindException ( item , STRING1 ) ;
} else... | Revert Do not allow tool bindings to the hand |
<nb> public class FileHandle {
protected FileHandle ( ) {
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public FileHandle ( String fileName ) {
+ this . file = new File ( fileName ) ;
+ this . type = FileType . Absolute ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMEN... | changed FileHandle has two new constructors for use in non crossplatform tools that don t need a backend |
<nb> public class ListenerManager extends BaseManager {
}
public void syncForDead ( Address deadAddress ) {
- syncForAdd ( ) ;
+ SINGLE
+ for ( List < ListenerItem > listeners : namedListeners . values ( ) ) {
+ for ( ListenerItem listenerItem : listeners ) {
+ if ( ! listenerItem . localListener ) {
... | Fixed listener deregistration on member leave |
<nb> public class DozeService extends DreamService {
private void updateListener ( ) {
if ( ! mConfigured || mSensor == null ) return ;
- if ( mRequested && ! mDisabled ) {
+ if ( mRequested && ! mDisabled && ! mRegistered ) {
mRegistered = mSensors . requestTriggerSensor ( this , mSensor ) ;
+ if ( DEBUG... | Fix trigger sensor re registration |
<nb> public class AsyncHttpClient {
final ArrayList < AsyncHttpClientMiddleware > mMiddleware = new ArrayList < AsyncHttpClientMiddleware > ( ) ;
public ArrayList < AsyncHttpClientMiddleware > getMiddleware ( ) {
- return mMiddleware ;
+ synchronized ( mMiddleware ) {
+ return mMiddleware ;
+ }
}
publ... | Synchronise access to mMiddleware |
<nb> public abstract class RealmBaseAdapter < T extends RealmObject > extends BaseAdapte
protected Context context ;
protected int resId ;
- public RealmBaseAdapter ( Context context , int resId , RealmResults < T > realmResults , boolean automaticUpdate ) {
+ public RealmBaseAdapter ( Context context , Realm... | Remove the resourceId from the RealmBaseAdapter constructor |
<nb> public abstract class AbstractAndroidMojo extends AbstractMojo {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed javadoc comment |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ uriendpoint ( scheme = STRING0 , title = STRING1 , syntax = STRING2 , consumerClass = BraintreeConsumer . class , label = STRING3 )
+ @ uriendpoint ( scheme = STRING0 , title = STRING1 , syntax = STRING4 , consumerClass = BraintreeConsumer . class , label = ... | Fix Braintree Syntax |
<nb> public class WebView extends AbsoluteLayout
COMMENT
@ deprecated
public static synchronized PluginList getPluginList ( ) {
- return null ;
+ return new PluginList ( ) ;
}
COMMENT | Return an empty PluginList instead of null for the |
<nb> public class ODistributedResponseManager {
}
public ODistributedResponse getFinalResponse ( ) {
- synchronized ( responseGroups ) {
+ synchronized ( responseLock ) {
manageConflicts ( ) ;
<nb> public class ODistributedResponseManager {
}
public void timeout ( ) {
- synchronized ( response... | fixed issue with synchronization |
<nb> public class CalendarView extends FrameLayout {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
private void initilaizePaints ( ) {
mDrawPaint . setFakeBoldText ( false ) ;
<nb> public class CalendarView extends FrameLayout {
mMonthNumDrawPaint . setAntiAlias ( true ) ;
mMonthNumDrawPaint . setStyle ( ... | Day numbers in CalendarView have incorrect size |
<nb> public class Morphia {
map ( c ) ;
}
}
-
- public synchronized Morphia map ( Class entityClass ) {
- if ( ! mapper . isMapped ( entityClass ) ) {
- mapper . addMappedClass ( entityClass ) ;
+
+ public synchronized Morphia map ( Class . . . entityClasses ) {
+ if ( entityClasses != null && entit... | Support more than one class now |
<nb> public class ContinuousOperation extends Operation {
this . finish = finish ;
}
+ public long getStartTime ( ) {
+ return start ;
+ }
+
public long getElapsedTime ( ) {
return finish - start ;
} | Added a getter for start time |
<nb> public class DottedFilterEdgesGenerator {
SINGLE
private void update ( ) {
downWalk ( ) ;
+ cleanup ( ) ;
upWalk ( ) ;
}
+ private void cleanup ( ) {
+ for ( int currentNodeIndex = myUpIndex ; currentNodeIndex <= myDownIndex ; currentNodeIndex ++ ) {
+ myNumbers . setNumber ( currentNodeIndex ,... | even if a graph is broken do not add strange dashed edges to it |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GZIPInputFilter extends InflaterInputFilter {
short magic = Memory . peekShort ( header , NUMBER0 , ByteOrder . LITTLE_ENDIAN... | on a bad gzip stream eat any extra data that may come in |
<nb> public class DefaultSctpChannelConfig extends DefaultChannelConfig implements Sc
} else if ( option == SCTP_NODELAY ) {
setSctpNoDelay ( ( Boolean ) value ) ;
} else if ( option == SCTP_INIT_MAXSTREAMS ) {
- List < Integer > streams = ( List < Integer > ) value ;
- setInitMaxStreams ( SctpStandardSocketO... | Revert Minor refactoring in variable naming in sctp stream config |
<nb> public class EclipseLinkPersistenceProviderAdaptor implements
@ suppresswarnings ( { STRING0 , STRING1 } )
@ override
public void addProviderProperties ( Map properties , PersistenceUnitMetadata pu ) {
- if ( ! properties . containsKey ( ECLIPSELINK_TARGET_SERVER ) ) {
+ if ( ! pu . getProperties ( ) . c... | Fix Modification in if criteria only to be evaluated from PeristanceUnitMetadata properties |
<nb> public class IdeTooltipManager implements ApplicationComponent , AWTEventListener
maybeShowFor ( c , me ) ;
}
} else if ( me . getID ( ) == MouseEvent . MOUSE_EXITED ) {
- if ( me . getComponent ( ) == myCurrentComponent ) {
+ if ( me . getComponent ( ) == myCurrentComponent || me . getComponent ( ) == m... | moving out cenetring bugs |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public class ReverseAlternateKNodes {
public Node reverse ( Node head , int k , boolean reverse ) {
+ if ( k <= NUMBER0 ) {
+ return head ;
+ }
if ( head == null ) {
return null ;
} | Adding extra check on reverse alternate k nodes qs |
<nb> public class PlaybackService extends Service {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void pause ( boolean abandonFocus , boolean reinit ) {
if ( player . isPlaying ( ) ) {
<nb> public class PlaybackService extends Service {
case PLAYING :
case PAUSED :
case ... | Prevented IllegalStateException when calling getDurationSafe |
<nb> public class Utils {
if ( tvdbstring . length ( ) != NUMBER0 ) {
tvdbstring += STRING0 ;
}
- tvdbstring += item ;
+ tvdbstring += item . trim ( ) ;
}
return tvdbstring ;
} | Trim splitted TVDb strings e g guest stars |
<nb> public class Indexer {
SINGLE
writer . write ( JSONValue . toJSONString ( Mapping . get ( ) ) ) ;
-
+ writer . flush ( ) ;
if ( conn . getResponseCode ( ) == HttpURLConnection . HTTP_OK ) {
return true ;
} else { | fixed missing creation of ElasticSearch mapping |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ReviewPresenter implements IsWidget
final EventBus events ,
final VcsState vcsState ,
final Commands commands ,
- final... | eliminate eclipse warnings |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.