diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class ChatToolbarFragment extends BaseFragment {
} else if ( peer . getPeerType ( ) == PeerType . GROUP ) {
GroupVM groupVM = groups ( ) . get ( peer . getPeerId ( ) ) ;
- if ( groupVM . getGroupType ( ) == GroupType . GROUP ) {
+ if ( groupVM . getGroupType ( ) == GroupType . GROUP && groupVM . i... | handle call permission for groups |
<nb> public final class Math {
COMMENT
COMMENT
public static native double hypot ( double x , double y ) COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT ;
<nb> public final class StrictMath {
COMMENT
COMMENT
public static native double hypot ( double x , double y ) COMMENT
... | Added workaround to Math hypot for ARM processor bug |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Clarify documentation for DevicePolicyManager |
<nb> public class PGraphicsOpenGL extends PGraphics {
textureMode ( IMAGE ) ;
SINGLE
- ambient ( NUMBER0 ) ;
+ ambient ( NUMBER1 ) ;
specular ( NUMBER2 ) ;
emissive ( NUMBER3 ) ;
shininess ( NUMBER4 ) ;
<nb> public class PGraphicsOpenGL extends PGraphics {
textureMode ( IMAGE ) ;
SINGLE
- ambi... | Using white as the default ambient material property |
<nb> public class DatabaseBackend extends SQLiteOpenHelper {
private static DatabaseBackend instance = null ;
private static final String DATABASE_NAME = STRING0 ;
- private static final int DATABASE_VERSION = NUMBER0 ;
+ private static final int DATABASE_VERSION = NUMBER1 ;
public DatabaseBackend ( Conte... | Migrate all accounts to use compression |
<nb> public final class WebInterfaceConfigurationServlet extends HttpServlet {
for ( Map . Entry < Object , Object > entry : mTachyonConf . getInternalProperties ( ) . entrySet ( ) ) {
String key = entry . getKey ( ) . toString ( ) ;
if ( key . startsWith ( TACHYON_CONF_PREFIX ) && ! TACHYON_CONF_EXCLUDES . conta... | Change default to empty string to avoid issues |
<nb> public class AbsSpinnerTest {
@ before
public void setUp ( ) throws Exception {
TestUtil . addAllProxies ( ) ;
-
adapterView = new Gallery ( new Activity ( ) ) ;
} | git test run by Chee |
<nb> public class JavaFxClassBackedElementDescriptor implements XmlElementDescriptor ,
if ( field . hasModifierProperty ( PsiModifier . STATIC ) ) continue ;
final PsiType fieldType = field . getType ( ) ;
if ( PropertyUtil . findPropertyGetter ( myPsiClass , field . getName ( ) , false , true ) != null &&
- In... | complete string attribute properties |
<nb>
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
class Goo {
int boo ( ) { }
int doo ( ) { } | remove copyright from test data |
<nb> import NAMESPACE ;
public class HLayout extends FreeFlowLayoutBase implements FreeFlowLayout {
private static final String TAG = STRING0 ;
- private int itemWidth = - NUMBER0 ;
- private Map < Object , FreeFlowItem > proxies = new HashMap < Object , FreeFlowItem > ( ) ;
- private int headerHeight = - N... | Changed some private props to protected |
<nb> public class AndroidSdk
{
this . sdkPath = sdkPath ;
- System . out . println ( STRING0 + sdkPath + STRING1 + platformOrApiLevel ) ;
-
if ( sdkPath != null )
{
sdkManager = SdkManager . createManager ( sdkPath . getPath ( ) , new NullLogger ( ) ) ;
<nb> public class AndroidSdk
{
return target... | Removed console logging put in during testing |
<nb> public class AbstractPopup implements JBPopup {
if ( myPopup != null ) {
if ( ! canClose ( ) ) {
+ debugState ( STRING0 , State . CANCEL ) ;
+ myState = State . SHOWN ;
return ;
}
storeDimensionSize ( myContent . getSize ( ) ) ; | We should not set CANCEL if popup can t be closed |
<nb> public final class ApplicationContextFacade
classCache . put ( STRING0 , clazz ) ;
classCache . put ( STRING1 , clazz ) ;
classCache . put ( STRING2 , clazz ) ;
- classCache . put ( STRING3 , clazz ) ;
- classCache . put ( STRING4 , clazz ) ;
- classCache . put ( STRING5 , clazz ) ;
+ classCache . pu... | Engage brain rather than mindless copying |
<nb> public class JreMemoryLeakPreventionListener implements LifecycleListener {
new Class [ ] { long . class } ) ;
method . invoke ( null , Long . valueOf ( NUMBER0 ) ) ;
} catch ( ClassNotFoundException e ) {
- log . error ( sm . getString ( STRING0 ) , e ) ;
+ if ( System . getProperty ( STRING1 ) . starts... | Only log missing class as an error on Sun JVMs |
<nb> public class BpmnParse extends Parse {
SINGLE
TimerDeclarationType type = TimerDeclarationType . DATE ;
Expression expression = parseExpression ( timerEventDefinition , STRING0 ) ;
-
SINGLE
if ( expression == null ) {
type = TimerDeclarationType . CYCLE ;
expression = parseExpression ( timerEventDe... | added parsing error instead of NPE with unconfigured timer |
<nb> public class ImportedTestContentHandler extends DefaultHandler {
myDuration = attributes . getValue ( TestResultsXmlFormatter . ATTR_DURATION ) ;
myStatus = attributes . getValue ( TestResultsXmlFormatter . ATTR_STATUS ) ;
myProcessor . onTestStarted ( new TestStartedEvent ( name , attributes . getValue ( Te... | skip leading whitespaces |
<nb> public class ConfigResource
{
private final UIContext context ;
+ private static final String CANT_UPDATE_CONFIG_MESSAGE = STRING0 ;
+
public ConfigResource ( @ context ContextResolver < UIContext > resolver )
{
context = resolver . getContext ( UIContext . class ) ;
<nb> public class ConfigResou... | Missing some checks on cross updated config |
<nb> public class Task implements StudyItem {
private int myIndex ;
private StudyStatus myStatus = StudyStatus . Unchecked ;
- private int myStepicId ;
+ @ expose private int myStepicId ;
@ expose
@ serializedname ( STRING0 ) | Add expose annotation to stepic id field in Task |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class HttpMessageConvertersAutoConfiguration {
@ suppressw... | Clarify the deprecation status of HttpMapperProperties |
<nb> class TypeCollector {
visitType ( type . getSuperclass ( ) ) ;
visitType ( type . getDeclaringClass ( ) ) ;
for ( IVariableBinding field : type . getDeclaredFields ( ) ) {
- visitType ( field . getType ( ) ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGL... | Fixed endless recursion issue checking types with parameterized fields |
<nb> public class BulletPhysicsRenderer implements IGameObject {
EntityRef playerent = player . getEntity ( ) ;
LocalPlayerComponent localPlayerComp = playerent . getComponent ( LocalPlayerComponent . class ) ;
MinionBarComponent inventory = null ;
- boolean minionbarpresent ;
EntityRef closestminion = null ;... | removed unused bool |
<nb> public abstract class CoreService extends Service {
public final void onStart ( Intent intent , int startId ) {
SINGLE
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ if ( intent == null ) {
+ stopSelf ( startId ) ;
+ return ;
+ }
+
SI... | Avoid NullPointerException in services when process service is restarted |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class WebInterfaceHeaderServlet extends HttpServlet {
throws ServletException , IOException {
int masterWebPort = mTachyonConf . getInt ( Constants . MASTER_WEB_POR... | Fix default Master hostname |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BubbleTarget extends RelativeLayout {
}
Util . Assert ( mCurrentAlpha >= FLOAT0 && mCurrentAlpha <= FLOAT1 ) ;
setAlpha (... | Call setVisibility where appropriate |
<nb> public class MediaSessionRecord implements IBinder . DeathRecipient {
SINGLE
SINGLE
SINGLE
- temp . size ( ) ;
+ if ( temp != null ) {
+ temp . size ( ) ;
+ }
mMetadata = temp ;
}
mHandler . post ( MessageHandler . MSG_UPDATE_METADATA ) ; | Don t call size on a null metadata |
<nb> public class AsyncHttpClient {
private static final int DEFAULT_MAX_CONNECTIONS = NUMBER0 ;
private static final int DEFAULT_SOCKET_TIMEOUT = NUMBER0 * NUMBER1 ;
private static final int DEFAULT_MAX_RETRIES = NUMBER2 ;
+ private static final int DEFAULT_SOCKET_BUFFER_SIZE = NUMBER3 ;
private static final... | set default buffer size to prevent out of memory |
<nb> public class TwoWayView extends AdapterView < ListAdapter > implements
int endOffset = end - lastEnd ;
View firstChild = getChildAt ( NUMBER0 ) ;
- final int firstStart = ( mIsVertical ? firstChild . getTop ( ) : firstChild . getLeft ( ) ) ;
+ int firstStart = ( mIsVertical ? firstChild . getTop ( ) : fi... | library Fix too high correction when in horizontal mode |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class PushController implements Disposable {
myExecutorService . shutdownNow ( ) ;
}
+ @ notnull
+ public Project getProject ( ) {
+ return myProject ;
+ }
+
private void addMoreCommits ( RepositoryNode repositoryNode )... | add getter for project |
<nb> public abstract class BuildViewTestCase extends FoundationTestCase {
COMMENT
protected Artifact getGenfilesArtifact ( String packageRelativePath , ConfiguredTarget owner ,
Class < ? extends ConfiguredAspectFactory > creatingAspectFactory ) {
+ return getGenfilesArtifact (
+ packageRelativePath , owner , ... | Add getGenfilesArtifact that takes an explicit AspectParameters for looking up actions registered from Aspects that use a non empty AspectParameters |
<nb> import NAMESPACE ;
COMMENT
public class AppLog {
SINGLE
- public enum T { READER , EDITOR , MEDIA , NUX , API , STATS , UTILS , NOTIFS , DB , POSTS , COMMENTS , THEMES , TESTS , PROFILING }
+ public enum T { READER , EDITOR , MEDIA , NUX , API , STATS , UTILS , NOTIFS , DB , POSTS , COMMENTS , THEMES , T... | Adding SIMPERIUM tag to AppLog and use it in SimperiumUtils |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
- public class HttpPanelTextArea extends JTextArea {
+ public clas... | Changed JTextArea to ZapTextArea so that the Undo Redo Manager is working again |
<nb> final public class GPath extends DynamicEntity implements Iterable , Comparable {
public void setRoot ( Object point ) {
if ( this . startsFromRootIdentifier ) {
this . persistentRoot = point ;
+ } else if ( this . root instanceof Var ) {
+ SINGLE
+ this . persistentRoot = this . root . getValue ( ) ; ... | added re caching on setRoot for roots represented as variables |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
public class Standa... | made conversion service pluggable |
<nb> import NAMESPACE ;
@ xmlaccessortype ( XmlAccessType . NONE )
public class DefaultPriceListSet extends ValidatingConfig < StandaloneCatalog > implements PriceListSet {
@ xmlelement ( required = true , name = STRING0 )
- private PriceListDefault defaultPricelist ;
+ private DefaultPriceList defaultPriceli... | Change DefaultPriceListSet to use a DefaultPriceList instead of a PriceListDefault field for |
<nb> import NAMESPACE ;
import static NAMESPACE ;
- public final class ClassBodyWriter implements Writable , HasClassReferences {
+ final class ClassBodyWriter implements Writable , HasClassReferences {
static ClassBodyWriter forAnonymousType ( ) {
return new ClassBodyWriter ( Optional . < ClassName > a... | Hide ClassBodyWriter from the public API |
<nb> public interface RILConstants {
int PREFERRED_NETWORK_MODE = SystemProperties . getInt ( STRING0 ,
NETWORK_MODE_WCDMA_PREF ) ;
+ int BAND_MODE_UNSPECIFIED = NUMBER0 ; SINGLE
+ int BAND_MODE_EURO = NUMBER1 ; SINGLE
+ int BAND_MODE_USA = NUMBER2 ; SINGLE
+ int BAND_MODE_JPN = NUMBER3 ; SINGLE
+ int B... | Create BandMode Constants |
<nb> public class Snackbar extends SnackbarLayout {
@ override
protected void onDetachedFromWindow ( ) {
super . onDetachedFromWindow ( ) ;
+
+ mIsShowing = false ;
+
if ( mDismissRunnable != null ) {
removeCallbacks ( mDismissRunnable ) ;
} | Fix show call |
<nb> public class TreeVisitorAssertionError extends AssertionError {
private static String constructMessage ( AssertionError original , TreeNode node ) {
CompilationUnit unit = TreeUtil . getCompilationUnit ( node ) ;
+ if ( unit == null ) {
+ return original . getMessage ( ) ;
+ }
return String . format ... | Handle unparented nodes in TreeVisitorAssertionError |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ShadowActivity extends ShadowContextWrapper {
return LayoutInflater . from ( realActivity ) ;
}
+ @ implementation
+ ... | Add getMenuInflater to Activity |
<nb> public class DFSIOIntegrationTest implements Tool {
sBench . analyzeResult ( fs , TestType . TEST_TYPE_READ_SKIP , execTime ) ;
}
- SINGLE
+ SINGLE
SINGLE
public void testAppend ( ) throws Exception {
FileSystem fs = FileSystem . get ( sLocalTachyonClusterUri , sBench . getConf ( ) ) ; | Tagging TODOs in tachyon hadoop fs |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ suppresswarnings ( STRING0 )
public class MappingJacksonMessag... | Suppress warnings in MappingJacksonMsgConvTests |
<nb> public class DefaultScriptCompilationHandler implements ScriptCompilationHandler
classLoader ) ;
return urlClassLoader . loadClass ( source . getClassName ( ) ) . asSubclass ( scriptBaseClass ) ;
} catch ( Exception e ) {
- throw new GradleException ( String . format ( STRING0 +
- STRING1 +
- STRING2 +... | Fixed the checkstyle problem |
<nb> public class VectorDrawable extends Drawable {
strokePaint . setStrokeCap ( fullPath . mStrokeLineCap ) ;
}
- strokePaint . setStrokeMiter ( fullPath . mStrokeMiterlimit * minScale ) ;
+ strokePaint . setStrokeMiter ( fullPath . mStrokeMiterlimit ) ;
strokePaint . setColor ( applyAlpha ( fullPath . m... | MiterLimit represent a ratio itself no need to scale |
<nb> public class StatsGeoviewsFragment extends StatsAbstractListFragment {
SINGLE
SINGLE
+ SINGLE
String htmlPage = STRING0 +
STRING1 +
STRING2 + | Add missing link to the doc |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMEN... | adjust SearchExtBuilder javadocs |
<nb> public final class ZWaveNetworkMonitor implements ZWaveEventListener {
if ( oldestNode != null ) {
logger . debug ( STRING0 , oldestNode . getNodeId ( ) ) ;
+ SINGLE
+ oldestNode . resetResendCount ( ) ;
+
ZWaveNoOperationCommandClass zwaveCommandClass = ( ZWaveNoOperationCommandClass ) oldestNode
... | Reset resend count before starting ping sets time |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClientOnlyExample
SINGLE
SINGLE
- StorageProxy . insert ( change ) ;
+ StorageProxy . mutate ( Arrays . asList ( change ) ) ;
try
{
Thread . sleep ( ... | update sample to use new StorageProxy mutate method |
<nb> public class CumulativeDistribution < T > {
else break ;
}
- return value . value ;
+ return values . items [ imin ] . value ;
}
COMMENT | fixed CumulativeDistribution class returned wrong values |
<nb> public class Delay extends Action {
@ override public void finish ( ) {
pool . free ( this ) ;
action . finish ( ) ;
- super . finish ( ) ;
+ if ( ! listenerFired ) super . finish ( ) ;
}
@ override public Action copy ( ) {
return $ ( action . copy ( ) , duration ) ;
}
-
} | fixed Delay called listener twice |
<nb> public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2 < TestShel
SINGLE
runTestAndWaitUntilDone ( activity , runner . mTestPath , runner . mTimeoutInMillis ) ;
+ activity . clearCache ( ) ;
dumpMemoryInfo ( ) ;
SINGLE
<nb> public class TestShellActivity extends Activity implements... | Call clearCache on WebView before collecting memory information |
<nb> public class ResourceHandlerRegistry {
handler . setContentNegotiationManager ( this . contentNegotiationManager ) ;
try {
handler . afterPropertiesSet ( ) ;
+ handler . afterSingletonsInstantiated ( ) ;
}
catch ( Exception ex ) {
throw new BeanInitializationException ( STRING0 , ex ) ;
<nb>
COMM... | Fix missing ResourceHttpRequestHandler init in registry |
<nb> public class AtomicTitanQuery implements InternalTitanQuery {
return withPropertyConstraint ( etype , value ) ;
} else {
assert etype . isPropertyKey ( ) ;
- Preconditions . checkArgument ( ( ( TitanKey ) etype ) . getDataType ( ) . isInstance ( value ) , STRING0 ) ;
+ Class < ? > dataType = ( ( TitanKey... | Improve error message on property key type mismatch |
<nb> public class DefinitionsUpdateResponseVerbHandler implements IVerbHandler
}
catch ( ConfigurationException ex )
{
- logger . info ( STRING0 + ex . getMessage ( ) ) ;
+ SINGLE
+ logger . debug ( STRING0 + ex . getMessage ( ) ) ;
}
m . announce ( ) ;
} | add comment to Migration not applied log message |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TestDFSIO implements Tool {
long execTime = System . currentTimeMillis ( ) - tStart ;
bench . analyzeResult ( fs , TestType . TEST_TYPE_WRITE ... | disable TestDFSIO for now |
<nb> public class VisualizationServlet extends AbstractApplicationServlet
}
}
+ @ override
+ public void destroy ( )
+ {
+ super . destroy ( ) ;
+ graphDb . shutdown ( ) ;
+ }
+
public VisualizationServlet ( GraphDatabaseService graphDb )
{
this . graphDb = graphDb ;
<nb> public class Widget... | added shutdown hook of graphdb during servlet destroy |
<nb> public interface ClassFileLocator extends Closeable {
public static Resolution read ( Class < ? > type ) {
try {
JavaModule module = JavaModule . ofType ( type ) ;
- if ( module == null || ! module . isNamed ( ) ) {
+ if ( module != null && module . isNamed ( ) ) {
return ForModule . locate ( module , ... | Fixed module resolution |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class OOoDialog implements ActionListener {
SINGLE
int j = NUMBER0 ;
String contentForDisplay = null ;
- for ( Iterator iter ... | remove old style loop |
<nb> public class RestSwaggerReaderModelTest extends CamelTestSupport {
assertTrue ( json . contains ( STRING0 ) ) ;
assertTrue ( json . contains ( STRING1 ) ) ;
assertTrue ( json . contains ( STRING2 ) ) ;
-
+ assertFalse ( json . contains ( STRING3 ) ) ;
context . stop ( ) ;
} | do not populate enum when no allowable values are set |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+
import NAMESPACE ;
import static NAMESPACE ; | Removed unused imports |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class EventTest {
}
@ test
+ @ ignore ( STRING0 )
public void configuration_of_event ( ) {
executeAnalysis ( ) ; | Ignore a test of EventTest that has too many false positives |
<nb> public class LdapProviderBeanDefinitionParserTests {
assertEquals ( PASSWD_AUTH_CLASS , PasswordComparisonAuthenticator . class . getName ( ) ) ;
}
+ SINGLE
+ @ test
+ public void multipleProvidersAreSupported ( ) throws Exception {
+ setContext ( STRING0 +
+ STRING1 +
+ STRING2 +
+ STRING3 +
... | Added tst to confirm that this is no longer an issue due to other changes |
<nb> public abstract class AbstractProcessingFilter implements Filter ,
return uri . endsWith ( request . getContextPath ( ) + filterProcessesUrl ) ;
}
+ protected void sendRedirect ( HttpServletRequest request ,
+ HttpServletResponse response , String failureUrl )
+ throws IOException {
+ if ( ! failureU... | Allow external URLs from AbstractProcessingFilter |
<nb> public class PrintActivity extends Activity implements RemotePrintDocument . Updat
} else if ( spinner == mOrientationSpinner ) {
SpinnerItem < Integer > orientationItem = mOrientationSpinnerAdapter . getItem ( position ) ;
PrintAttributes attributes = mPrintJob . getAttributes ( ) ;
- if ( orientationItem... | Fix NPE in PrintActivity |
<nb> public class FileListListAdapter extends BaseAdapter implements ListAdapter {
SINGLE
if ( ! file . isFolder ( ) ) {
- if ( ( file . isImage ( ) || file . isVideo ( ) ) && file . getRemoteId ( ) != null ) {
+ if ( file . isImage ( ) && file . getRemoteId ( ) != null ) {
SINGLE
Bitmap thumbnail = Thumb... | revert previous commit |
<nb> public final class UpFolderAction extends AbstractThumbnailViewAction {
}
public void update ( ThumbnailView thumbnailView , AnActionEvent e ) {
- super . update ( thumbnailView , e ) ;
- if ( e . getPresentation ( ) . isEnabled ( ) ) {
- VirtualFile root = thumbnailView . getRoot ( ) ;
- e . getPres... | Fixed focus troubles |
<nb> public final class BluetoothInputDevice implements BluetoothProfile {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix comment for sendData |
<nb> public class EditTicketPage extends RepositoryPage {
break ;
}
}
+ if ( milestoneModel . getObject ( ) == null && ! StringUtils . isEmpty ( ticket . milestone ) ) {
+ SINGLE
+ SINGLE
+ TicketMilestone tms = new TicketMilestone ( ticket . milestone ) ;
+ milestones . add ( tms ) ;
+ milestoneModel... | Allow unregistered milestone selection on edit ticket page |
<nb> public class ConfigValidation {
}
SimpleTypeValidator . validateField ( name , String . class , ( ( Map ) o ) . get ( STRING0 ) ) ;
- SimpleTypeValidator . validateField ( name , long . class , ( ( Map ) o ) . get ( STRING1 ) ) ;
+ SimpleTypeValidator . validateField ( name , Long . class , ( ( Map ) o )... | Fixed config validation |
<nb> public class SslBytesClientTest extends SslBytesTest
client . start ( ) ;
SSLContext sslContext = sslContextFactory . getSslContext ( ) ;
- acceptor = ( SSLServerSocket ) sslContext . getServerSocketFactory ( ) . createServerSocket ( NUMBER0 ) ;
+ acceptor = ( SSLServerSocket ) sslContext . getServerSock... | Remove explicit port number from jetty client SslBytesClientTest |
<nb> public class HttpUrlConnector implements Connector {
AccessController . doPrivileged ( new PrivilegedExceptionAction < Object > ( ) {
@ override
public Object run ( ) throws NoSuchFieldException , IllegalAccessException {
- final Field methodField = httpURLConnectionClass . getSuperclass ( ) . getDeclaredF... | Fixed setRequestMethodViaJreBugWorkaround to work with HTTPS as well as HTTP |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class MicrosecondsClock implements Clock {
private static final long ONE_THOUSAND = NUMBER0 ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
COMMENT
public class MicrosecondsSyncClock implemen... | Put back original author tags that were inadvertantly left out |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
public class FloatingActionButton extends ImageButton {
private static final int TRANSLATE_DURATION_MILLIS = NUMBER0 ; | Delete outdated Javadoc |
<nb> public class TextField extends Widget {
COMMENT
public void cut ( ) {
if ( hasSelection ) {
- int minIndex = Math . min ( cursor , selectionStart ) ;
- int maxIndex = Math . max ( cursor , selectionStart ) ;
- clipboard . setContents ( text . substring ( minIndex , maxIndex ) ) ;
- text = text . subs... | Reuse copy delete for cut operation |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ChunkSat... | make text selectable in satellite chunks |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
<nb> public class Mongo {
}
COMMENT
- COMMENT
+ COMMENT
CO... | Updated Javadoc for slaveOk to refer to ReadPreference secondaryPreferred |
<nb> public final class Output {
@ suppresswarnings ( STRING0 )
private CharSequence extractSourceCode ( ) {
return LegacyJavaPostprocessing . rewrite ( consumer . asCharSequence ( ) ) ;
+ SINGLE
}
} | tried new postprocessing no luck yet |
<nb> class FileWatchingFailureHandler implements FailureHandler {
@ override
public void onChange ( Set < ChangedFiles > changeSet ) {
- System . out . println ( STRING0 ) ;
this . latch . countDown ( ) ;
} | Remove System out println |
<nb> public interface Firework extends Entity {
COMMENT
COMMENT
void setFireworkMeta ( FireworkMeta meta ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ void detonate ( ) ;
} | Add detonate method for firework entities |
<nb> public class ColumnFamilyStore implements ColumnFamilyStoreMBean
if ( sstable == null || ! sstable . acquireReference ( ) )
{
if ( logger . isDebugEnabled ( ) )
- logger . debug ( STRING0 + entries . getKey ( ) ) ;
+ logger . debug ( STRING1 , entries . getKey ( ) ) ;
sstable = SSTableReader . open ( e... | use parameterized logging |
<nb> public final class BytesToNameCanonicalizer
_seed , _tableInfo . get ( ) ) ;
}
+ @ deprecated SINGLE
+ public BytesToNameCanonicalizer makeChild ( boolean intern ) {
+ return new BytesToNameCanonicalizer ( this ,
+ intern , SINGLE
+ true , SINGLE
+ _seed , _tableInfo . get ( ) ) ;
+ }
+
COM... | add a deprecated ctor for BytesToNameCanonicalizer to improve backwards compat |
<nb> public final class Settings {
public static final String DEVICE_PROVISIONED = Global . DEVICE_PROVISIONED ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String USER_SETUP_COMPLETE = STRING0 ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Add Settings Secure USER_SETUP_COMPLETE |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class SSTableTest extends ServerTest {
- SINGLE
+ COMMENT
+ @ test
public void testSingleWrite ( ) throws IOException {
File f = File . createTempFile ( STRING0 , STRING1 ) ;
SSTable ssTable ;
<nb> public class SSTableTest extends ServerTest {
asse... | comment out broken tests |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ i... | fix emitter shape compile errors |
<nb> public class SQLiteBindingsAdapter implements SQLiteDatabaseWrapper {
}
@ override
- public void enableWriteAheadLogging ( ) {
- db . enableWriteAheadLogging ( ) ;
+ public boolean enableWriteAheadLogging ( ) {
+ return db . enableWriteAheadLogging ( ) ;
}
@ override
<nb> public class SQLiteD... | enableWriteAheadLogging returns a boolean not void |
<nb> public class JMXConnectorService implements Service < Void > {
}
private void setRmiServerProperty ( final String address ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( System . getProperty ( SERVER_HOSTNAME ) != null ) {
+ return ;
+ }
+
SecurityManager sm = System . getSecurityManager ( ) ;
if ( s... | Adding support of java rmi server hostname system property |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class PatchExtensionMethodCompletionProposal {
-
-
public static IJavaCompletionProposal [ ] getJavaCompletionProposals ( IJavaCompletionProposal [ ] javaCompletionProposals ,
CompletionProposalCollector completionProposalCollector ) {
<nb> public clas... | Somehow in eclipse mars wanted us to pull in more ecj deps fixed that problem with a trivial code tweak |
<nb> public class TableView implements TableOrView {
throw new RuntimeException ( STRING0 ) ;
}
+ SINGLE
@ override
public long upperBoundLong ( long columnIndex , long value ) {
throw new RuntimeException ( STRING0 ) ; | added TODO to upperBoundLong |
<nb> public class Executor {
CapturingProcessHandler handler = new CapturingProcessHandler ( clientProcess , CharsetToolkit . getDefaultSystemCharset ( ) ) ;
ProcessOutput result = handler . runProcess ( NUMBER0 * NUMBER1 ) ;
if ( result . isTimeout ( ) ) {
- throw new RuntimeException ( STRING0 ) ;
+ throw n... | tests Better message if command execution failed because of timeout |
<nb> public class ArgbEvaluator implements TypeEvaluator {
COMMENT
public Object evaluate ( float fraction , Object startValue , Object endValue ) {
int startInt = ( Integer ) startValue ;
- int startA = ( startInt > > NUMBER0 ) ;
+ int startA = ( startInt > > NUMBER0 ) & NUMBER1 ;
int startR = ( startInt >... | Fix shift mask error in ArtbEvaluator |
<nb> public abstract class AbstractColorsScheme implements EditorColorsScheme {
Color value = myColorsMap . get ( key ) ;
if ( myParentScheme != null ) {
if ( myParentScheme instanceof AbstractColorsScheme ) {
- if ( Comparing . equal ( ( ( AbstractColorsScheme ) myParentScheme ) . getOwnColor ( key ) , value )... | remember unchecked checkbox in colors |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT | Remove an unused import |
<nb> import NAMESPACE ;
@ xmlaccessortype ( XmlAccessType . FIELD )
public class ResequenceDefinition extends ProcessorDefinition < ResequenceDefinition > {
@ xmlelements ( {
- @ xmlelement ( required = false , name = STRING0 , type = BatchResequencerConfig . class ) ,
- @ xmlelement ( required = false , name... | Added missing name to JAXB in the DSL for the resequencer config types |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
imp... | Weaken instanceof on delete |
<nb> public final class JavaPluginLoader implements PluginLoader {
File oldDataFolder = getDataFolder ( file ) ;
SINGLE
- if ( dataFolder . isDirectory ( ) && oldDataFolder . isDirectory ( ) ) {
+ if ( dataFolder . equals ( oldDataFolder ) ) {
+ SINGLE
+ } else if ( dataFolder . isDirectory ( ) && oldData... | Added a check for when the old and new data folders are the same |
<nb> public class MultiTouchActorTest extends GdxTest implements InputProcessor {
super ( name , texture ) ;
}
- @ override protected boolean touchUp ( float x , float y , int pointer ) {
+ @ override public boolean touchUp ( float x , float y , int pointer ) {
boolean result = super . touchUp ( x , y , poi... | fixed tests due to Actor input method visibility changes |
<nb> public class NotificationDemoActivity extends AppCompatActivity {
@ override
protected void onDestroy ( ) {
+ if ( downloadId != NUMBER0 ) {
+ FileDownloader . getImpl ( ) . pause ( downloadId ) ;
+ }
this . notificationHelper . clear ( ) ;
clear ( ) ;
super . onDestroy ( ) ; | pause the download task when the notification demo activity is on destroy |
<nb> public class ProgressLoggingExternalResourceAccessor extends AbstractProgressLog
public InputStream openStream ( ) throws IOException {
return resource . openStream ( ) ;
}
+
+ public String toString ( ) {
+ return resource . toString ( ) ;
+ }
}
private class ProgressLoggingOutputStream extend... | Fix info logging for dowloading resources |
<nb> public class FileUploader extends Service
mNotificationManager . cancel ( R . string . uploader_upload_in_progress_ticker ) ;
SINGLE
- if ( ! uploadResult . isCancelled ( ) ) {
+ if ( ! uploadResult . isCancelled ( ) &&
+ ! uploadResult . getCode ( ) . equals ( ResultCode . DELAYED_FOR_WIFI ) ) {
+
... | Prevent error notification for delayed uploads waiting for Wifi |
<nb> public class MemcachedCacheBrokerBenchmark extends SimpleBenchmark
. setTranscoder ( transcoder )
. setShouldOptimize ( true )
. build ( ) ,
- AddrUtil . getAddresses ( STRING0 )
+ AddrUtil . getAddresses ( System . getProperty ( STRING1 , STRING0 ) )
) ;
broker = new MemcachedCacheBroker ( | make memcached host configurable for benchmarking |
<nb> public class OpenTSDBWriter extends OpenTSDBGenericWriter {
@ override
protected void sendOutput ( String metricLine ) throws IOException {
try {
+ if ( isDebugEnabled ( ) ) {
+ log . debug ( STRING0 , host , port , metricLine ) ;
+ }
this . out . writeBytes ( STRING1 + metricLine + STRING2 ) ;
} c... | Adding the debug to message log otherwise it is hard to debug which line |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.