diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class XmppConnection extends ImConnection implements CallbackHandler {
sTrustManager . setDomain ( domain ) ;
sTrustManager . setServer ( requestedServer ) ;
- mTrustManager = new MemorizingTrustManager ( aContext , sTrustManager , null ) ;
+ mTrustManager = new MemorizingTrustManager ( aContext )... | fixing MemorizingTrustManager constructor call |
<nb> public abstract class Migration
{
throw new RuntimeException ( e ) ;
}
- mi . row_mutation = ByteBuffer . wrap ( dob . asByteArray ( ) ) ;
+ mi . row_mutation = ByteBuffer . wrap ( dob . getData ( ) , NUMBER0 , dob . getLength ( ) ) ;
SINGLE
this . subdeflate ( mi ) ; | avoid unnecessary copy |
<nb> import NAMESPACE ;
protected static Module createMainModule ( ) {
return ApplicationManager . getApplication ( ) . runWriteAction ( new Computable < Module > ( ) {
public Module compute ( ) {
- return ModuleManager . getInstance ( ourProject ) . newModule ( STRING0 ) ;
+ return ModuleManager . getInstanc... | don t create module with empty name |
<nb> public class OpenHelperManager {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
- DaoManager . clearCache ( ) ;
+ DaoManager . clearDaoCache ( ) ;
instanceCount = NUMBER0 ;
} | Fixed bad bug to stop prematurely clearing DAO configs |
<nb> public @ interface Singleton {
COMMENT
COMMENT
boolean lazy ( ) default false ;
+
+
+ COMMENT
+ COMMENT
+ COMMENT
+ String property ( ) default STRING0 ;
} | Added support for custom property name |
<nb> public class AndroidApplication extends Activity implements AndroidApplicationBa
@ override
protected void onDestroy ( ) {
super . onDestroy ( ) ;
+ Gdx . app = null ;
+ Gdx . input = null ;
+ Gdx . audio = null ;
+ Gdx . files = null ;
+ Gdx . graphics = null ;
+ Gdx . net = null ;
}
@ ove... | Fixed memory leaks on android |
<nb> class GlobalNamespace
isSet = true ;
type = Name . Type . FUNCTION ;
break ;
+ case Token . CATCH :
case Token . INC :
case Token . DEC :
isSet = true ;
<nb> public class CheckGlobalNamesTest extends CompilerTestCase {
STRING0 ,
UNDEFINED_NAME_WARNING ) ;
}
+
+ public void testGlobalCatch... | Fix for errors wrt exceptions in the global scope |
<nb> public class BindArrayTest {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING3 ,
STRING4 ,
STRING5 ,
STRING6
<nb> public class BindArrayTest {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING3 ,
STRING4 ,
STRING7 ,
STRING6
<nb> public class BindArrayTest {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING... | Remove unused imports from tests |
<nb> public class Rules {
COMMENT
public static int getSpeakerClusterId ( Document document , String speakerString ) {
int speakerClusterId = - NUMBER0 ;
- if ( NumberMatchingRegex . isDecimalInteger ( speakerString ) ) {
+ if ( speakerString != null && NumberMatchingRegex . isDecimalInteger ( speakerString )... | Fix antecedent generator for new coref annotations and make coref same speaker more robust to null speaker |
<nb> public class MainActivity extends AppCompatActivity {
@ override
public void onPageSelected ( int position ) {
recordImageView ( ) ;
+ recordScreenView ( ) ;
}
} ) ;
<nb> public class MainActivity extends AppCompatActivity {
recordImageView ( ) ;
}
+ @ override
+ public void onResume ( ) ... | Analytics screen view tracking |
<nb> public class MediaPlayerDemo_Video extends Activity implements OnBufferingUpdate
mMediaPlayer = new MediaPlayer ( this ) ;
mMediaPlayer . setDataSource ( path ) ;
mMediaPlayer . setDisplay ( holder ) ;
- mMediaPlayer . prepare ( ) ;
+ mMediaPlayer . prepareAsync ( ) ;
mMediaPlayer . setOnBufferingUpdat... | Fixed prepare failed |
<nb> public abstract class BroMethodCompiler extends AbstractMethodCompiler {
return new PointerType ( getStructType ( sootType ) ) ;
}
if ( isStruct ( sootType ) ) {
- if ( isPassByValue ( method , i ) && STRING0 . equals ( anno ) ) {
- return getStructType ( sootType ) ;
- }
- SINGLE
+ SINGLE
SINGLE... | Fixed a problem with Callback methods which don t handle small ByVal structs properly |
<nb> public class If implements Function {
SQLExpr condition = parameters . get ( NUMBER0 ) ;
condition . accept ( visitor ) ;
Object itemValue = condition . getAttributes ( ) . get ( EVAL_VALUE ) ;
- if ( Boolean . TRUE == itemValue || ( itemValue != null && ! SQLEvalVisitorUtils . eq ( itemValue , NUMBER0 ) )... | improve sql wall |
<nb> public class ZWaveAssociationCommandClass extends ZWaveCommandClass
COMMENT
protected void processGroupingsReport ( SerialMessage serialMessage , int offset ) {
maxGroups = serialMessage . getMessagePayloadByte ( offset + NUMBER0 ) ;
- logger . debug ( STRING0 , getNode ( ) , maxGroups ) ;
+ logger . deb... | Fix association logging bug |
<nb> public class ConversionServiceContextConfigTests {
@ test
public void testConfigOk ( ) {
- ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext ( STRING0 ) ;
+ ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext ( STRING1 ) ;
TestClient client = context . ... | fixed failing test due to case issue |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused import |
<nb> public class PyReferenceExpressionImpl extends PyElementImpl implements PyRefere
}
public boolean shouldHighlightIfUnresolved ( ) {
- return false ;
+ return getQualifier ( ) == null && ! isBuiltInConstant ( ) ;
+ }
+
+ private boolean isBuiltInConstant ( ) {
+ String name = getReferencedName ( )... | highlighting unresolved references |
<nb> final class SQLiteBooksDatabase extends BooksDatabase {
STRING0 +
STRING1 +
STRING2 +
- STRING3 ,
+ STRING4 ,
null
) ;
final LinkedList < String > names = new LinkedList < String > ( ) ; | fixed SQL error |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public class NativeServicesTestFixture {
static NativeServices nativeServices ; | Removing unused imports |
<nb> class BluetoothEventLoop {
SINGLE
SINGLE
SINGLE
- mBluetoothService . notifyIncomingA2dpConnection ( address , true ) ;
+ mBluetoothService . notifyIncomingA2dpConnection ( address , false ) ;
} else {
Log . i ( TAG , STRING0 + authorized +
STRING1 + address ) ;
mA2dp . allowIncomingConnect ( dev... | Call notifyIncomingA2dpConnection with correct rejected status |
<nb> public class WorldEdit {
SINGLE
if ( split [ NUMBER0 ] . equals ( STRING0 ) ) {
split [ NUMBER0 ] = STRING1 ;
- }
+ SINGLE
+ } else if ( split [ NUMBER0 ] . matches ( STRING2 ) ) {
+ String [ ] newSplit = new String [ split . length + NUMBER1 ] ;
+ System . arraycopy ( split , NUMBER0 , newSplit , ... | Now you can use script js directly as a command |
<nb> public interface InvoiceUserApi {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface InvoiceUserApi {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | update Javadoc in InvoiceUserApi |
<nb> final class DexterInstance {
private final IntentProvider intentProvider ;
private final Collection < String > pendingPermissions ;
private final MultiplePermissionsReport multiplePermissionsReport ;
+ private final AtomicBoolean isRequestingPermission ;
private Activity activity ;
private MultiplePerm... | Add final modifier on field DexterInstance isRequestingPermission |
<nb> public class HttpClient {
HttpVersion . HTTP_1_1 , HttpMethod . GET , uri . toASCIIString ( ) ) ;
request . setHeader ( HttpHeaders . Names . HOST , host ) ;
request . setHeader ( HttpHeaders . Names . CONNECTION , HttpHeaders . Values . CLOSE ) ;
+ request . setHeader ( HttpHeaders . Names . ACCEPT_ENCODI... | Update the example to utilize the new HttpDecompressionHandler |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MatchTask extends AbstractTask {
} ;
- final SpillingResettableIterator < Value > v1ResettableIterator ;
+ SpillingRe... | added finally clause to release memory in crossValues method |
<nb> public abstract class AbstractHibernateQuery < Q extends AbstractHibernateQuery < Q >
private int fetchSize = NUMBER0 ;
- private Map < Path < ? > , LockMode > lockModes = new HashMap < Path < ? > , LockMode > ( ) ;
+ private final Map < Path < ? > , LockMode > lockModes = new HashMap < Path < ? > , Lock... | made lockModes final |
<nb> public class SIPCommSelectorBox extends JLabel
COMMENT
COMMENT
COMMENT
- public void setSelected ( JMenuItem menuItem ) {
- this . setIcon ( menuItem . getIcon ( ) ) ;
- this . setSelectedObject ( menuItem . getText ( ) ) ;
+ public void setSelected ( String text , Icon icon ) {
+ this . setIcon ( ... | setSelected method uses text and icon instead of JMenuItem |
<nb> public class DriverConnection extends DriverConnectionPadding3 implements AutoCl
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public ReceiveChannelEndpoint receiveChannelEndpoint ( )
- {
- return channelEndpoint ;
- }
-
- COMMENT
COMMENT
COMMENT
COMMENT | Removed unused method |
<nb> public class TaskExecutor
return finishedFuture ;
}
+ public boolean isDestroyed ( )
+ {
+ return destroyed . get ( ) ;
+ }
+
public void destroy ( )
{
destroyed . set ( true ) ;
<nb> public class TaskExecutor
}
}
catch ( Throwable t ) {
- if ( t instanceof PrestoException ) {
+ i... | Skip logging errors for destroyed drivers |
<nb>
package NAMESPACE ;
public interface Observer < S extends Observable < S , O , A > , O extends Observer < S , O , A > , A > {
- public void update ( S subject , A argument ) ;
+
+ void update ( S subject , A argument ) ;
} | refactor Remove unnecessary declarations in observer pattern |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class ArgumentCaptor < T > {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
... | Documented the varargs behavior of argument captor |
<nb> package NAMESPACE ;
public enum ProductCategory {
BASE ,
- ADD_ON
+ ADD_ON ,
+ STANDALONE
} | Adding standalone product category |
<nb> public class EmulatorView extends View implements GestureDetector . OnGestureListe
}
Linkify . addLinks ( textToLinkify , Linkify . WEB_URLS ) ;
- URLSpan [ ] urls = textToLinkify . getSpans ( NUMBER0 , mColumns , URLSpan . class ) ;
+ URLSpan [ ] urls = textToLinkify . getSpans ( NUMBER0 , textToLinkify... | Fixed bug preventing multiple links on a wrapped line |
<nb> public class FreeTypeTest extends GdxTest {
font = new BitmapFont ( Gdx . files . internal ( STRING0 ) , flip ) ;
FileHandle fontFile = Gdx . files . internal ( STRING1 ) ;
FreeTypeFontGenerator generator = new FreeTypeFontGenerator ( fontFile ) ;
- FreeTypeBitmapFontData fontData = generator . generateDat... | changed FreeTypeTest uses same point size for freetype generated bitmapfont |
<nb> public class TextureView extends View {
private HardwareLayer mLayer ;
private SurfaceTexture mSurface ;
private SurfaceTextureListener mListener ;
+ private boolean mHadSurface ;
private boolean mOpaque = true ;
<nb> public class TextureView extends View {
Log . w ( LOG_TAG , STRING0
+ STRING1... | Recreate TextureView s display list on attach |
<nb> public class ConfusionMatrix extends Iced {
}
public String toASCII ( ) {
- if ( table == null && domain != null ) {
- table = toTable ( ) ;
- return table . toString ( ) ;
- }
- return STRING0 ;
+ return ( table = toTable ( ) ) != null ? table . toString ( ) : STRING0 ;
}
COMMENT | Fix printout of confusion matrix |
<nb> public class StreetVertexIndexServiceImpl implements StreetVertexIndexService {
}
}
List < String > uniqueNames = new ArrayList < String > ( uniqueNameSet ) ;
-
- SINGLE
- String fmt = ResourceBundleSingleton . INSTANCE . localize ( STRING0 , locale ) ;
+
if ( uniqueNames . size ( ) > NUMBER0 ) {
... | Corner translation uses Localized string now |
<nb> public class ChartCalculator {
return distance * ( contentRect . width ( ) / currentViewport . width ( ) ) ;
}
- public float calculateRawDistanceYX ( float distance ) {
+ public float calculateRawDistanceY ( float distance ) {
return distance * ( contentRect . height ( ) / currentViewport . height ( )... | Renamed calculateRawDistancyYX into calculateRawDistanceY |
<nb> public class CompletionServiceImpl extends CompletionService {
}
public void correctCaseInsensitiveString ( @ notnull final LookupElement element , InsertionContext context ) {
+ if ( ! element . isPrefixMatched ( ) ) {
+ return ;
+ }
+
final String prefix = element . getPrefixMatcher ( ) . getPref... | don t fix case insensitivitiy for emulated item insertion |
<nb> public class PatternRuleTest extends TestCase {
alreadyMatched = alreadyMatched || matches . length != NUMBER0 ;
- if ( matches . length != NUMBER0 ) {
+ if ( ( matches . length != NUMBER0 ) && ! simpleRule ) {
assertTrue ( lang + STRING0 + badSentence + STRING1 + rule + STRING2 +
matches . length , ... | fixing bug in phrase testing |
<nb> public abstract class AioCompletionHandler < V , A extends Channel > implements Comp
COMMENT
protected abstract void failed0 ( Throwable exc , A channel ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
private static final int MAX_STACK_DEPTH = NUMBER0 ;
private static final ThreadLocal < Integ... | Add comment about why we need to count the depth of the stack in AioCompletionHandler |
<nb> public class Resources {
keyboardHidden , mConfiguration . navigation , width , height ,
mConfiguration . screenLayout , mConfiguration . uiMode , sSdkVersion ) ;
- drawableCacheClear ( mDrawableCache , configChanges ) ;
- drawableCacheClear ( mColorDrawableCache , configChanges ) ;
+ clearDrawableCach... | Shoud specify the Resource class instance as an argument of the method |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface ResolutionStrategy {
Set < ModuleVersionSelector > getForcedModules ( ) ;
COMMENT
- COMMENT
- COMMENT
+ ... | Added javadoc on dependency resolve actions to the ResolutionStrategy type |
<nb> public class LambdaExpressionCompatibilityConstraint implements ConstraintFormul
return false ;
}
for ( PsiExpression returnExpression : returnExpressions ) {
- constraints . add ( new ExpressionCompatibilityConstraint ( returnExpression , substitutor . substitute ( returnType ) ) ) ;
+ constraints . add... | skip wildcards in SAM return types |
<nb> public class ViewFetcher {
else
return null ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
+ public View getView ( int id ) {
+ final Activity activity = activityUtils . getCurrentActivity ( false ) ;
+ return activity . findViewById ( id ) ;
+ }
COMMENT
<nb> public c... | Added a new method getView int id |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LoggingCommandLineConverter extends AbstractCommandLineConverter < Lo
if ( commandLine . hasOption ( CONSOLE ) ) {
S... | Replace usage of WordUtils with StringUtils |
<nb> public class BubbleFlowView extends HorizontalScrollView {
}
}
- SINGLE
- mContent . removeView ( centerView ) ;
- mContent . addView ( centerView ) ;
+ bringTabViewToFront ( centerView ) ;
mIsExpanded = true ;
return true ;
}
+ private void bringTabViewToFront ( View tabView ) {
+ tabVie... | Change add remove view to use bringToFront |
<nb> public class FileEventUtil {
parameters . put ( STRING0 , syncFile . getDescription ( ) ) ;
parameters . put ( STRING1 , syncFile . getTypePK ( ) ) ;
- parameters . put ( STRING2 , filePath . getFileName ( ) ) ;
+ parameters . put ( STRING2 , String . valueOf ( filePath . getFileName ( ) ) ) ;
paramete... | sync engine Make string serializable for jackson |
<nb> public class Form {
COMMENT
public void setAnswer ( String variable , String value ) {
if ( ! isSubmitType ( ) ) {
- throw new IllegalStateException ( STRING0 ) ;
+ throw new IllegalStateException ( STRING1 +
+ STRING2 ) ;
}
FormField field = getField ( variable ) ;
if ( field != null ) {
<nb> ... | Changed detailed error message in setAnswer |
<nb> public class TypedHandler implements TypedActionHandler {
static CharFilter . Result getLookupAction ( final char charTyped , final LookupImpl lookup ) {
final LookupElement currentItem = lookup . getCurrentItem ( ) ;
- if ( currentItem != null && charTyped != STRING0 ) {
+ if ( currentItem != null && ch... | Terminate lookup after typing and characters |
<nb> class EditorPainter implements TextDrawingCallback {
int endX = ( int ) fragment . offsetToX ( x , startOffset , isRtl ? baseStartOffset - i - NUMBER0 : baseStartOffset + i + NUMBER0 ) ;
if ( c == STRING0 ) {
+ SINGLE
g . fillRect ( ( startX + endX - strokeWidth ) / NUMBER1 , y - strokeWidth + NUMBER0 , ... | remove irrelevant inspection |
<nb> public class ImplementsClause implements GroovyElementTypes {
}
}
+ ParserUtils . getToken ( builder , mNLS ) ;
isMarker . done ( IMPLEMENTS_CLAUSE ) ;
return IMPLEMENTS_CLAUSE ;
} | eat NLS after implements clause |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultJvmApiSpec implements JvmApiSpec {
}
public Set < JvmPackageName > getExports ( ) {
- return ImmutableSet . copyOf ( exports ) ;
+ return exports ;
}
public Dep... | Preserve mutability of DefaultJvmApiSpec getExports |
<nb> public class PackageChange extends BroadcastReceiver {
Uri inputUri = Uri . parse ( intent . getDataString ( ) ) ;
if ( inputUri . getScheme ( ) . equals ( STRING0 ) ) {
SINGLE
- final String packageName = inputUri . getSchemeSpecificPart ( ) ;
- final int uid = intent . getIntExtra ( Intent . EXTRA_UID ... | Remove obsolete final keywords |
<nb> class FocusManager implements View . OnFocusChangeListener {
COMMENT
COMMENT
public void restoreLastFocus ( ) {
+ if ( mAdapter . getItemCount ( ) == NUMBER0 ) {
+ SINGLE
+ return ;
+ }
+
if ( mLastFocusPosition != RecyclerView . NO_POSITION ) {
SINGLE
focusItem ( mLastFocusPosition ) ; | Fix a crash when browsing empty roots |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix Screen java javadoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
public class CxfSimpleRouterTest extends CamelTestSupport {
+ protected static Server server ;
protected static final String ROUTER_ADDRESS = STRING0 ;
protec... | Stopping the service when the CxfSimpleRouterTest is over |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SearchDialog extends DialogWrapper {
}
} ) ;
}
+ catch ( ProcessCanceledException e ) {
+ throw e ;
+ }
catch ( R... | don t log ProcessCanceledException |
<nb> public class UserManagerService extends IUserManager . Stub {
final int userSize = mUsers . size ( ) ;
for ( int i = NUMBER0 ; i < userSize ; i ++ ) {
UserInfo ui = mUsers . valueAt ( i ) ;
- if ( ui . isPrimary ( ) ) {
+ if ( ui . isPrimary ( ) && ! mRemovingUserIds . get ( ui . id ) ) {
return ui ;
... | Skip dead users when getting primary |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public class TestLuceneIndex
index . add ( node , STRING0 , STRING1 ) ;
assertTh... | Making sure the index can start in existing clean DB directory |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT | Remove unused imports |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ @ ignore ( STRING0 )
public class Mina2ClientModeTcpTextlineDelimiterTest extends BaseMina2Test {
@ test | Skip test that has problem |
<nb> public class JetPairMatcher implements PairedBraceMatcher {
new BracePair ( JetTokens . LBRACKET , JetTokens . RBRACKET , false )
} ;
+ @ override
public BracePair [ ] getPairs ( ) {
return pairs ;
}
+ @ override
public boolean isPairedBracesAllowedBeforeType ( @ notnull final IElementType lbra... | Add override annotations remove warnings |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class PatternsAnnotations implements Serializable {
private static final long serialVersionUID = NUMBER0 ;
<nb> public class PatternsAnnotatio... | add another annotation |
<nb> class MountService extends IMountService . Stub
private void warnOnNotMounted ( ) {
final StorageVolume primary = getPrimaryPhysicalVolume ( ) ;
- if ( primary != null
- && Environment . MEDIA_MOUNTED . equals ( getVolumeState ( primary . getPath ( ) ) ) ) {
- Slog . w ( TAG , STRING0 ) ;
+ if ( prim... | Handle ISE when physical volume isn t mounted |
<nb> public class MavenModelConverter {
private static List < MavenPlugin > convertPlugins ( Model mavenModel ) throws RemoteException {
List < MavenPlugin > result = new ArrayList < MavenPlugin > ( ) ;
- Set < String > pluginKeys = new THashSet < String > ( ) ;
Build build = mavenModel . getBuild ( ) ;
i... | Remove dead code |
<nb> public final class Convert {
else if ( ( fromClass == Long . class || fromClass == long . class ) && java . util . Date . class . isAssignableFrom ( toClass ) ) {
return toDate ( ( Long ) from , toClass ) ;
}
+
+ else if ( ( fromClass == String . class ) && java . lang . Enum . class . isAssignableFrom (... | Handle String to Enum conversion when Java Enums are stored as Strings in the database |
<nb> abstract public class ServerStarter {
SINGLE
final ClassLoader parent = findParentClassLoader ( ) ;
SINGLE
- File libDir = new File ( STRING0 ) ;
+ File libDir = new File ( STRING1 ) ;
ClassLoader loader = new JiveClassLoader ( parent , libDir ) ;
Thread . currentThread ( ) . setContextClassLoader ( ... | Server starter should load all archives from lib directory not bin lib |
<nb> public class SpanishTreebankParserParams extends TregexPoweredTreebankParserPara
annotations . put ( STRING0 , new Pair ( STRING1 ,
new SimpleStringFunction ( STRING2 ) ) ) ;
- SINGLE
+ SINGLE
annotations . put ( STRING3 , new Pair ( STRING4 , new SimpleStringFunction ( STRING5 ) ) ) ;
compileAnnot... | Disable markNonRecSPs tree annotation |
<nb> public class DeterminePartitionsJob implements Jobby
log . info ( STRING0 , groupByJob . getJobName ( ) , groupByJob . getTrackingURL ( ) ) ;
if ( ! groupByJob . waitForCompletion ( true ) ) {
- log . error ( STRING1 , groupByJob . getJobID ( ) . toString ( ) ) ;
+ log . error ( STRING1 , groupByJob . ge... | Fix NPE in DeterminePartitionsJob when it fails |
<nb> public class ColumnPolicyIntegrationTest extends SQLTransportIntegrationTest {
execute ( STRING0 ) ;
execute ( STRING1 ) ;
- waitForMappingUpdateOnAll ( STRING2 , STRING3 ) ;
+ waitForMappingUpdateOnAll ( STRING2 , STRING3 , STRING4 ) ;
Map < String , Object > sourceMap = getSourceMap ( STRING2 ) ;
a... | fixed flaky test at sql dynamic mapping |
<nb> public class ShadowTextView extends ShadowView {
@ implementation
public void setTextSize ( int unit , float value ) {
- if ( unit == TypedValue . COMPLEX_UNIT_DIP ) {
+ if ( unit == TypedValue . COMPLEX_UNIT_DIP || unit == TypedValue . COMPLEX_UNIT_SP ) {
textSize = value * getResources ( ) . getDispl... | Add convert sp to pixel to setTextSize of ShadowTextView |
<nb> public class TelecomManager {
private final Context mContext ;
+ private final ITelecomService mTelecomServiceOverride ;
+
COMMENT
COMMENT
COMMENT
<nb> public class TelecomManager {
COMMENT
COMMENT
public TelecomManager ( Context context ) {
+ this ( context , null ) ;
+ }
+
+ COMME... | Add TelecomManager constructor for passing in TelecomServiceImpl |
<nb> public class AuthenticatorActivity extends AccountAuthenticatorActivity
if ( success )
finish ( ) ;
} else {
- updateStatusIconFailUserName ( ) ;
+ int statusText = result . getCode ( ) == ResultCode . MAINTENANCE_MODE ? R . string . maintenance_mode : R . string . auth_fail_get_user_name ;
+ updateSta... | Fix bug Shibboleth server does not recognize maintenance mode |
<nb> public class SquidDatabaseTest extends DatabaseTestCase {
}
public void testSimpleQueries ( ) {
- String sql = STRING0 ;
- insertBasicTestModel ( ) ;
+ database . beginTransactionNonExclusive ( ) ;
+ try {
+ SINGLE
+ SINGLE
+ String sql = STRING0 ;
+ insertBasicTestModel ( ) ;
- assertEqu... | Fix unit test using the changes function |
<nb> public class SmoothScrollExitUntilCollapsedActivity extends BaseActivity {
}
} ) ;
- mAdapter = new DynamicAdapter < > ( Utils . getSampleData ( ) , new DynamicAdapter . OnItemClickListener ( ) {
- @ override
- public void onItemClick ( View view ) {
- startActivity ( BlankActivity . newIntent ( Smoo... | Removed sample code |
<nb> public class RouteInfoWidgetsFactory {
}
} else if ( alarm . getType ( ) == AlarmInfoType . TOLL_BOOTH ) {
SINGLE
+ text = STRING0 ;
} else if ( alarm . getType ( ) == AlarmInfoType . TRAFFIC_CALMING ) {
if ( settings . DRIVING_REGION . get ( ) . americanSigns ) {
locimgId = R . drawable . warnings_t... | Add dollar sign |
<nb> abstract class ConnectionPool < T extends RedisConnection > {
private void connectTo ( ClientConnectionsEntry entry , RPromise < T > promise ) {
if ( promise . isDone ( ) ) {
+ releaseConnection ( entry ) ;
return ;
}
T conn = poll ( entry ) ; | connectTo should release connection if promise has been already done |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class GraphTxAbstractTest {
final String dbName = GraphTxAbstractTest . class . getSimpleName ( ) ;
final String storageType = g... | fixed delete of files of an open database |
<nb> public class MultiMapService implements ManagedService , RemoteService , Migration
}
public void rollbackMigration ( PartitionMigrationEvent event ) {
- clearMigrationData ( event . getPartitionId ( ) ) ;
+ if ( event . getMigrationEndpoint ( ) == MigrationEndpoint . DESTINATION ) {
+ clearMigrationDat... | Fixed multimap migration rollback |
<nb> public class WPDelayedHurlStack implements HttpStack {
additionalHeaders . put ( STRING0 , auth ) ;
}
- String blogUriScheme = WordPress . currentBlog . getUri ( ) . getScheme ( ) ;
-
if ( StringUtils . getHost ( request . getUrl ( ) ) . endsWith ( STRING1 ) && mCtx != null
- && AccountHelper . isSig... | Removed error prone blog URL scheme check from WPDelayedHurlStack |
<nb> public class ProcessorTestHelper {
CharSequence sourceContent = source . getCharContent ( true ) ;
if ( diagnostic . getPosition ( ) != Diagnostic . NOPOS ) {
CharSequence contentInError = sourceContent . subSequence ( ( int ) diagnostic . getStartPosition ( ) , ( int ) diagnostic . getEndPosition ( ) ) ;
... | Use a more sane comparitor in assertCompilationDiagnostingOn |
<nb> public class ShadowApplication extends ShadowContextWrapper {
return service ;
}
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void defineSystemService ( String name , String className ) {
+ SYSTEM_SERVIC... | Add defineSystemService on ShadowApplication to allow substituting system service classes with custom implementations |
<nb> public class SuppressionsLoaderTest extends BaseCheckTestSupport {
}
@ test
- @ suppresswarnings ( STRING0 )
public void testUnableToFindSuppressions ( ) throws Exception {
Class < SuppressionsLoader > loaderClass = SuppressionsLoader . class ;
Method loadSuppressions =
<nb> public class Suppressio... | Remove redundant suppressions from test code |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PeopleManagementActivity extends AppCompatActivity
if ( peopleInviteFragment == null ) {
Blog blog = WordPress . getCurrentBlog ( ) ;
String... | Simplify string check for emptiness |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class Queue {
- private Vector vector = new Vector ( ) ;
+ private Vector < Object > vector = new Vector < Object > ( ) ;
private boolean stopWaiting = false ;
private boolean waiting = false ; | Fix generics warnings |
<nb> public class InputSetupService extends AbstractExecutionThreadService {
SINGLE
if ( ( lifecycle == Lifecycle . RUNNING ) && ( previousLifecycle . get ( ) == Lifecycle . STARTING || previousLifecycle . get ( ) == Lifecycle . UNINITIALIZED ) ) {
LOG . info ( STRING0 , previousLifecycle . get ( ) , lifecycle ) ... | Fix another input startup race condition |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;... | Fix checkstyle after rebase |
<nb> public class DocumentCommitThread extends DocumentCommitProcessor implements Run
boolean isEnabled ( ) {
return myEnabled ;
}
-
- @ testonly
- public void waitUntilAllCommitted ( long timeout ) throws InterruptedException {
- if ( ! myEnabled ) {
- throw new IllegalStateException ( STRING0 ) ;
- ... | remove unnecessary method |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class Debug
<nb> public class Debug
{
Debug . log ( new JSONObject ( object ) . toString ( ) ) ;
}
+
+ public static void logAttachDetachException ( AttachDetachExce... | Add debug method for unwinding and logging AttachDetachException |
<nb> public class PluginRunConfiguration extends RunConfigurationBase {
params . setJdk ( jdk ) ;
params . getClassPath ( ) . addFirst ( libPath + File . separator + STRING0 ) ;
+ params . getClassPath ( ) . addFirst ( libPath + File . separator + STRING1 ) ;
params . getClassPath ( ) . addFirst ( libPath + F... | include jdom jar in DevKit IDEA jars setting for XML RPC port number |
<nb> public abstract class PreferenceManager {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public static String getLastUploadPath ( Context context ) {
<nb> public abstract class PreferenceManager {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static void se... | moved the preference accessing to the oC Preference Manager |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class AnnotationValidator {
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMM... | added missing documentation |
<nb> public class ClientContext {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static long getRandomNonNegativeLong ( ) {
return Math . abs ( sRandom . nextLong ( ) ) ;
<nb> public class ClientContext {
COMMENT
COMMENT
COMMENT
- SINGLE
+ SINGLE
public static synchronized void reinitializeW... | Fixing minor nits in ClientContext |
<nb> public class FSRecords implements Forceable {
myNames = new PersistentStringEnumerator ( namesFile ) ;
myAttributes = new Storage ( attributesFile . getCanonicalPath ( ) ) ;
myContents = new RefCountingStorage ( contentsFile . getCanonicalPath ( ) ) ;
- myRecords = new ResizeableMappedFile ( recordsFile , ... | in persistent fs use more optimal getInt getLong putInt putLong via unsafe given the fact file record is page aligned |
<nb> public class ParticleEmitterTest extends GdxTest {
else if ( keycode == Input . Keys . SPACE ) {
emitterIndex = ( emitterIndex + NUMBER0 ) % emitters . size ;
emitter = emitters . get ( emitterIndex ) ;
+
+ SINGLE
+ if ( emitter . isComplete ( ) ) emitter . reset ( ) ;
particleCount = ( int ) ( emitt... | add athe bility to stop and continue the current emitter |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT | add missing import |
<nb> public class ActivityMain extends Activity implements OnItemSelectedListener , Co
public void onClick ( DialogInterface dialog , int which ) {
Intent xInstallerIntent = getPackageManager ( ) . getLaunchIntentForPackage (
STRING0 ) ;
- xInstallerIntent . putExtra ( STRING1 , NUMBER0 ) ;
- if ( xInstallerI... | Fix null pointer |
<nb> public final class Presentation implements Cloneable {
myDisplayedMnemonicIndex = - NUMBER0 ;
if ( text != null ) {
-
if ( text . indexOf ( UIUtil . MNEMONIC ) >= NUMBER1 ) {
text = text . replace ( UIUtil . MNEMONIC , STRING0 ) ;
}
<nb> public final class Presentation implements Cloneable {
}
... | do not allocate empty strings |
<nb> public class ConfigurationPermissionsResolver implements PermissionsResolver {
return new String [ NUMBER0 ] ;
}
- return ( String [ ] ) groups . toArray ( ) ;
+ return groups . toArray ( new String [ groups . size ( ) ] ) ;
}
} | Fixed bad list to array conversion in ConfigurationPermissionsResolver |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.