diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GrizzlyConnectionsPool implements ConnectionsPool < String , Connection
unlimitedConnections = ( maxConnections == - NUMBER0 ) ;
delayedExecut... | Remove deprecated api usage |
<nb> public class WarClassloadingDependencyProcessor implements DeploymentUnitProcess
public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ;
+
+ if ( ! DeploymentTypeMarker . isType ( De... | WarClassLoadingDependencyProcessor should only update module dependency of |
<nb> public final class SecurityClassLoad {
loadCorePackage ( loader ) ;
loadCoyotePackage ( loader ) ;
loadLoaderPackage ( loader ) ;
+ loadRealmPackage ( loader ) ;
loadSessionPackage ( loader ) ;
loadUtilPackage ( loader ) ;
loadJavaxPackage ( loader ) ;
<nb> public final class SecurityClassLoad {
... | Fix TCK test failure under a security Manager |
<nb> public class SizeTieredCompactionStrategy extends AbstractCompactionStrategy
public AbstractCompactionTask getMaximalTask ( final int gcBefore )
{
Collection < SSTableReader > sstables = cfs . markAllCompacting ( ) ;
+ if ( sstables == null )
+ return null ;
+
return new CompactionTask ( cfs , sstabl... | avoid NPE on no op major compaction |
<nb> public class MetaDataTableImpl implements MetaDataTable {
LOG . info ( STRING0 + table ) ;
String resourceName = STRING1 + dbSupport . getDbName ( ) + STRING2 ;
- String source = new ClassPathResource ( resourceName , classLoader ) . loadAsString ( STRING3 ) ;
+ String source = new ClassPathResource ( re... | MetaDataTableImpl now uses its own class loader |
<nb> public class Stage extends InputAdapter implements Disposable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- public void setViewport ( float width , float height , boolean strech ) {
+ public void setViewport ( float width , float height , boolean stretch ) {
if ( ! stretch ) {
if ( wi... | fixed type and subsequent bug in Stage |
<nb> public class TachyonFS extends AbstractTachyonFS {
String userTempFolder = mWorkerClient . getUserTempFolder ( ) ;
if ( StringUtils . isBlank ( userTempFolder ) ) {
- LOG . error ( STRING0 ) ;
+ LOG . error ( STRING1 , userTempFolder ) ;
return null ;
} | tweak TachyonFS logging |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RuleTest extends TestCase {
public void testJavaRuleIds ( ) throws IOException {
final Set < String > ids = new HashSet < > ( ) ;
final Set < Class > ruleClas... | add sanity check for test |
<nb> public class HtmlUtil {
}
public static boolean supportsXmlTypedHandlers ( PsiFile file ) {
- return STRING0 . equals ( file . getLanguage ( ) . getID ( ) ) ;
+ Language language = file . getLanguage ( ) ;
+ while ( language != null ) {
+ if ( STRING0 . equals ( language . getID ( ) ) ) return true ;... | javascript has a lot of javascript languages |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix R import |
<nb> class LanguageToolHttpHandler implements HttpHandler {
httpExchange . sendResponseHeaders ( httpReturnCode , xmlResponse . getBytes ( ENCODING ) . length ) ;
httpExchange . getResponseBody ( ) . write ( xmlResponse . getBytes ( ENCODING ) ) ;
} else {
+ setAllowOrigin ( httpExchange ) ;
httpExchange . se... | set the CORS header also for the error message |
<nb> public abstract class PreferenceGroup extends Preference {
synchronized ( this ) {
preference . onPrepareForRemoval ( ) ;
boolean success = mPreferenceList . remove ( preference ) ;
- if ( success ) {
+ if ( success && mAttachedToHierarchy ) {
preference . onDetached ( ) ;
}
return success ; | Fix bug in onDetached lifecycle |
<nb> public class VirtualDirectoryImpl extends VirtualFileSystemEntry {
private static final boolean IS_UNDER_TEAMCITY = System . getProperty ( STRING0 ) != null ;
- private static final boolean SHOULD_PERFORM_ACCESS_CHECK = System . getenv ( STRING1 ) == null ;
+ private static final boolean SHOULD_PERFORM_A... | Renamed env name |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
SINGLE
SINGLE
SINGLE
<nb> public class PaymentTransactionInfoPluginConverter {
public static TransactionStatus toTransactionStatus ( ... | protect PaymentTransactionInfoPluginConverter against NPE |
<nb> public class Printer {
public void println ( Object . . . objects ) {
print ( objects ) ;
- out . append ( STRING0 ) ;
+ println ( ) ;
+ }
+
+ private void println ( ) {
+ out . append ( System . getProperty ( STRING1 ) ) ;
}
public void print ( Object . . . objects ) {
<nb> public class ... | Replace n with System getProperty line separator |
<nb> public class GpsLocationProvider extends LocationProviderImpl {
SINGLE
private boolean mEnabled ;
- SINGLE
- private boolean mLocationTracking ;
SINGLE
private boolean mNetworkAvailable ;
<nb> public class GpsLocationProvider extends LocationProviderImpl {
@ override
public void enableLocat... | Remove redundant mLocationTracking field from GpsLocationProvider |
<nb> public class SettingsFragment extends ListFragment {
return ;
}
- Slot s = slotManager . getSelectedSlot ( ) ;
- if ( user != null && s != null ) {
- s . update ( user ) ;
+ if ( user != null ) {
+ Slot s = slotManager . getSelectedSlot ( ) ;
+ if ( s != null ) {
+ s . update ( user ) ;
+ }
... | handle cancelled logins |
<nb> public class ReaderConstants {
public static final int MIN_FEATURED_IMAGE_WIDTH = NUMBER0 ; SINGLE
- public static final int DISCOVER_SITE_ID = NUMBER1 ; SINGLE
+ public static final long DISCOVER_SITE_ID = NUMBER1 ; SINGLE
SINGLE
SINGLE | Changed DISCOVER_SITE_ID to a long |
<nb> public final class Characteristic implements Comparable < Characteristic > {
return this ;
}
- Characteristic removeChild ( Characteristic child ) {
+ public Characteristic removeChild ( Characteristic child ) {
children . remove ( child ) ;
return this ;
}
<nb> public final class Characteristic ... | Fix issue when getting children |
<nb> public enum Format {
UnresolvedOdexInstruction ( - NUMBER0 ) ;
public final int size ;
- public final boolean payloadFormat ;
+ public final boolean isPayloadFormat ;
private Format ( int size ) {
this ( size , false ) ;
}
- private Format ( int size , boolean payloadFormat ) {
+ private Fo... | Rename Format payloadFormat to isPayloadFormat |
<nb> public class Tokens {
public boolean isDeprecated ( ) {
return false ;
}
+
+ @ override
+ public String toString ( ) {
+ return String . format ( STRING0 , getText ( ) ) ;
+ }
}
SINGLE | Add toString method to CommentWithTextAndPosition to make debugging easier |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed missing opening brace in FacebookDialog page link |
<nb> public final class SimpleHttpClient implements HttpClient , Serializable , Disposa
final Callable < Boolean > callable = new CallableHttpMessageSender ( message ) ;
final Future < Boolean > result = EXECUTOR_SERVICE . submit ( callable ) ;
- if ( message . isIssueAsynchronousCallbacks ( ) ) {
+ if ( mess... | fixed prop access |
<nb>
COMMENT
package NAMESPACE ;
-
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DuplicateBroadcastProtectionFilter implements PerRequestBroadcastFi
return true ;
}
} catch ( Exception e ) {
- logger . error ( e . getMessage ( ) ) ;
+ logger . error ( STRING0 ,... | Cleaned up some vauge logging check to make sure our broadcaster is not null when broadcatsing |
<nb> public class Searchables {
private SearchableInfo mDefaultSearchable = null ;
private SearchableInfo mDefaultSearchableForWebSearch = null ;
+ public static String GOOGLE_SEARCH_COMPONENT_NAME =
+ STRING0 ;
+ public static String ENHANCED_GOOGLE_SEARCH_COMPONENT_NAME =
+ STRING1 ;
+
COMMENT
COM... | EnhancedGoogleSearch overrides GoogleSearch if present |
<nb> public class FileOperationsHelper {
downloaderBinder . cancel ( account , file ) ;
} else {
- Log_OC . w ( TAG , STRING0 + file + STRING1 ) ;
+ Log_OC . d ( TAG , STRING0 + file + STRING1 ) ;
}
- } else if ( uploaderBinder != null ) {
+ }
+ if ( uploaderBinder != null ) {
if ( uploaderBinder . ... | added debug output |
<nb> public class BufferedBlockOutStreamTest {
SINGLE
Assert . assertFalse ( mTestStream . mHasFlushed ) ;
- mTestStream . write ( INCREASING_BYTES , NUMBER0 , mTestStream . getBuffer ( ) . limit ( ) / NUMBER1 + NUMBER2 ) ;
+ int bytesToWrite = mTestStream . getBuffer ( ) . limit ( ) / NUMBER1 + NUMBER2 ;
+... | Fix unit test |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LabelPainters {
g2 . setColor ( JBColor . BLACK ) ;
int x = paddingX + textPadding + TEXT_PADDING_X ;
- int y = paddingY + fontMetrics . ... | vcs log use the same baseline finding method from SimpleColoredComponent used in commit cell renderer for message for labels |
<nb> public class HiveClient
try {
columns . put ( tableName , getTableMetadata ( tableName ) . getColumns ( ) ) ;
}
+ catch ( HiveViewNotSupportedException e ) {
+ SINGLE
+ }
catch ( TableNotFoundException e ) {
SINGLE
}
<nb> public abstract class AbstractTestHiveClient
}
@ test
+ public vo... | HiveClient listTableColumns exclude views instead of throwing HiveViewNotSupportedException |
<nb> public class TextEditingTargetRenameHelper
Position startPos = scope . getPreamble ( ) ;
Position endPos = scope . getEnd ( ) ;
+ SINGLE
+ if ( scope . isTopLevel ( ) )
+ endPos = Position . create ( editor_ . getSession ( ) . getLength ( ) , NUMBER0 ) ;
+
TokenCursor cursor = editor_ . getSession ... | handle top level refactor |
<nb> public class ActionMenuView extends LinearLayout implements MenuBuilder . ItemInvo
@ override
public void onConfigurationChanged ( Configuration newConfig ) {
super . onConfigurationChanged ( newConfig ) ;
- mPresenter . updateMenuView ( false ) ;
- if ( mPresenter != null && mPresenter . isOverflowMen... | Fix NPE in ActionMenuView when there isn t a presenter |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
}
public boolean allowAppAnimationsLw ( ) {
- if ( mKeyguard != null && mKeyguard . isVisibleLw ( ) ) {
+ if ( mKeyguard != null && mKeyguard . isVisibleLw ( ) && ! mKeyguard . isAnimatingLw ( ) ) {
SINGLE
SINGLE
return false ;
<nb>... | Expose apps when keyguard animating |
<nb> public class Ordering
if ( index < NUMBER0 ) {
throw new IllegalArgumentException ( STRING0 ) ;
}
- if ( type == null || order == null ) {
+ if ( order == null ) {
throw new NullPointerException ( ) ;
}
if ( order == Order . NONE ) { | Fixed overrestrictive null pointer check in Ordering |
<nb> public class SearchHistoryFragment extends SherlockListFragment implements Sear
if ( location == null ) {
location = ( ( OsmandApplication ) activity . getApplication ( ) ) . getSettings ( ) . getLastKnownMapLocation ( ) ;
}
-
+ locationUpdate ( location ) ;
clearButton . setVisibility ( historyAdapter... | Try fix issue where distances in serach history tab are not updated when origin is changed |
<nb> public class HtmlFormat extends RepresentationFormat
String render ( Map < String , Object > serialized )
{
Map < Object , Object > map = new HashMap < Object , Object > ( ) ;
- transfer ( serialized , map , STRING0 , STRING1 ) ;
+ transfer ( serialized , map , STRING0 , STRING2 , STRING3 ,
+ STRING4 C... | Added back links to the first page in the HTML format |
<nb> public class Post {
Map < String , Object > contentStruct = new HashMap < String , Object > ( ) ;
- if ( ! post . isPage ) {
+ if ( ! post . isPage && post . isLocalDraft ( ) ) {
SINGLE
HashMap < ? , ? > globalSettings = WordPress . wpDB
. getNotificationOptions ( context ) ; | Only add the tagline when uploading a local draft |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ArchitectureCheck extends Byte... | Remove duplicated words from violation message |
<nb> public class KMeansTest extends TestUtil {
ard ( FLOAT0 , NUMBER0 , NUMBER1 , FLOAT1 ) ) ) ;
SINGLE
- double totssR = FLOAT2 ;
+ double totssR = FLOAT3 ;
double btwssR = FLOAT4 ;
double [ ] wssR = new double [ ] { FLOAT5 , FLOAT6 , FLOAT7 , FLOAT8 } ;
double [ ] [ ] centersR = ard ( ard ( FLOAT9 , ... | Change last digit in KMeans golden result |
<nb> public class PyFileElementType extends IStubFileElementType < PyFileStub > {
@ override
public int getStubVersion ( ) {
- return NUMBER0 ;
+ return NUMBER1 ;
}
@ nullable
<nb> public class PyNamedParameterElementType extends PyStubElementType < PyNamedParame
getStubElementType ( ) ) ;
}
+... | don t create stubs for named parameters inside lambda |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public final class ContinueEvent implements FilterChainEvent {
private final HttpTransactionContext context ;
<nb> import NAMESPACE ;
impo... | Add class docs for events that had no documentation |
<nb> public class WallVisitorUtils {
return false ;
}
+ if ( parent instanceof SQLJoinTableSource ) {
+ SQLJoinTableSource joinTableSource = ( SQLJoinTableSource ) parent ;
+ if ( joinTableSource . getCondition ( ) == x ) {
+ return true ;
+ }
+
+ }
+
if ( parent instanceof SQLUnionQuery ) {
S... | improve sql wall |
<nb> public class BarcodeScanner extends Plugin {
SINGLE
}
this . success ( new PluginResult ( PluginResult . Status . OK , obj ) , this . callback ) ;
- } if ( resultCode == Activity . RESULT_CANCELED ) {
+ } else if ( resultCode == Activity . RESULT_CANCELED ) {
JSONObject obj = new JSONObject ( ) ;
try... | valid scans would report a success and an error every time |
<nb> public class TabWidget extends LinearLayout implements OnFocusChangeListener {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public void setRightStripDrawable ( Drawable drawable ) {
mBottomLeftStrip = drawable ;
<nb> public class TabWidget extends LinearLayout implement... | Fix javadoc copy paste error |
<nb> public abstract class JedisClusterConnectionHandler {
hostAndPort . getPort ( ) ) ;
this . nodes . put ( hostAndPort . getHost ( ) + hostAndPort . getPort ( ) , jp ) ;
Jedis jedis = jp . getResource ( ) ;
- discoverClusterNodesAndSlots ( jedis ) ;
- jp . returnResource ( jedis ) ;
+ try {
+ discoverC... | Add exception handling in caso of unexecpected errors |
<nb> public class CxfConsumerTest extends CamelTestSupport {
assertNotNull ( STRING0 , cxfMessage ) ;
ServletRequest request = ( ServletRequest ) cxfMessage . get ( STRING1 ) ;
assertNotNull ( STRING2 , request ) ;
- assertNotNull ( STRING3 + request . getRemoteAddr ( ) ) ;
+ assertNotNull ( STRING3 , request... | Fixed a typo of CxfConsumerTest |
<nb> public class EditPostActivity extends SherlockActivity implements OnClickListene
setResult ( Activity . RESULT_CANCELED , new Intent ( ) ) ;
finish ( ) ;
}
+ if ( mFormatBar . getVisibility ( ) == View . VISIBLE )
+ hideFormatBar ( ) ;
return ;
} | Also hide format bar when canceling media selection |
<nb>
package NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TemplateEngineManagerImplTest {
ContentTypes . TEXT_HTML ) , instanceOf ( OverrideHtmlTemplateEngine . class ) ) ;
}
+ @ test
+ publi... | added test for NPE bugfix in TemplateEngineManagerImpl |
<nb> public class MigrationInfoDumper {
table . append ( ruler ) ;
if ( migrationInfos . length == NUMBER0 ) {
- table . append ( STRING0 ) ;
+ table . append ( StringUtils . trimOrPad ( STRING1 , ruler . length ( ) - NUMBER1 , STRING2 ) ) . append ( STRING3 ) ;
} else {
for ( MigrationInfo migrationInfo ... | Fixed empty table layout |
<nb> public class PrefixQueryBuilder extends AbstractQueryBuilder < PrefixQueryBuilder >
}
}
} else {
+ if ( fieldName != null ) {
+ throw new ParsingException ( parser . getTokenLocation ( ) , STRING0
+ + fieldName + STRING1 + parser . currentName ( ) + STRING2 ) ;
+ }
fieldName = currentFieldName ;
... | Throw parsing error if prefix query contains multiple fields in its short version |
<nb> public class ImageDecodeOptions {
COMMENT
public final boolean forceStaticImage ;
- ImageDecodeOptions ( ImageDecodeOptionsBuilder b ) {
+ public ImageDecodeOptions ( ImageDecodeOptionsBuilder b ) {
this . minDecodeIntervalMs = b . getMinDecodeIntervalMs ( ) ;
this . backgroundColor = b . getBackgrou... | Allow client to extend ImageDecoderOptions |
<nb> public class EnglishGrammaticalStructureTest extends TestCase {
STRING0 ,
SINGLE
SINGLE
+ STRING1 ,
} ;
SINGLE
<nb> public class EnglishGrammaticalStructureTest extends TestCase {
SINGLE
SINGLE
SINGLE
+ STRING2 +
+ STRING3 +
+ STRING4 +
+ STRING5 +
+ STRING6 +
+ STRING7 +
+ STRI... | Add test for new conversion of comparative and as as with advcl |
<nb> public class FlickScrollPane extends Group implements Layout {
boolean tap ( int x , int y ) {
focus ( null , NUMBER0 ) ;
if ( ! super . touchDown ( x , y , NUMBER0 ) ) return false ;
- Actor actor = focusedActor [ NUMBER0 ] ;
- toLocalCoordinates ( actor , point ) ;
- actor . touchUp ( point . x , poi... | fixed FlickSCrollPane would call touchUp on hit child twice once in tap and once in touchUp |
<nb> public class StorageProxy implements StorageProxyMBean
MBeanServer mbs = ManagementFactory . getPlatformMBeanServer ( ) ;
try
{
- mbs . registerMBean ( new StorageProxy ( ) , new ObjectName ( MBEAN_NAME ) ) ;
+ mbs . registerMBean ( instance , new ObjectName ( MBEAN_NAME ) ) ;
}
catch ( Exception e )... | Storage Proxy should register instance not new instance |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT... | add copyright headers |
<nb> import static NAMESPACE
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ; | Fix rebasing issue |
<nb> public class NettyResourceFactory implements InitializingBean , DisposableBean {
unterminatableExecutor = null ;
}
- public Executor getChannelFactoryExecutor ( ) {
+ public synchronized Executor getChannelFactoryExecutor ( ) {
return unterminatableExecutor ;
}
} | Fixed inconsistent synchronization |
<nb> abstract public class NeoAlgoBenchmark
protected void setUpGlobal ( )
{
- setUpGlobal ( STRING0 ) ;
+ setUpGlobal ( STRING1 ) ;
}
protected void tearDownGlobal ( )
<nb> abstract public class NeoAlgoBenchmark
COMMENT
protected boolean saveStatistic ( long milliSeconds , boolean print )
{
-... | Stores test data under target |
<nb> public abstract class TransportBroadcastByNodeAction < Request extends BroadcastRe
Supplier < Request > request ,
String executor ,
boolean canTripCircuitBreaker ) {
- super ( settings , actionName , threadPool , transportService , actionFilters , indexNameExpressionResolver , request ) ;
+ super ( setti... | Propagate canTripCircuitBreaker for all broadcasted actions |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class ScriptManagerBase < SCRIPT extends ScriptBase > implements Sc
forEachScript ( ( ( Processor < Script > ) scriptProcessor ) ) ;
return... | remove dependency on JavaScriptDebugger |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
<nb> public class DefaultSctpChannelConfig extends DefaultChannelConfig implements Sc
} else if ( option == SCTP_NODELAY ) {
setSctpNoDelay ( ( Boolean ) value ) ;
} else... | Revert Fixed ClassCastException in setting min max sctp streams |
<nb> public class AtmosphereFramework implements ServletContextProvider {
s = sc . getInitParameter ( BROADCAST_FILTER_CLASSES ) ;
if ( s != null ) {
broadcasterFilters . addAll ( Arrays . asList ( s . split ( STRING0 ) ) ) ;
+ logger . info ( STRING1 , s ) ;
}
s = sc . getInitParameter ( BROADCASTER_LIFECY... | Log installed BroadcastFilter |
<nb> public class SSLValve extends ValveBase {
private static final Log log = LogFactory . getLog ( SSLValve . class ) ;
- protected String sslClientCertHeader = STRING0 ;
- protected String sslCipherHeader = STRING1 ;
- protected String sslSessionIdHeader = STRING2 ;
- protected String sslCipherUserKeySi... | Reduce visibility kkolinko review |
<nb> public class ClientContext {
sMasterAddress = new InetSocketAddress ( masterHostname , masterPort ) ;
sRandom = new Random ( ) ;
-
- BlockStoreContext . INSTANCE . accessReinitializer ( sBSCReinitializerAccesser ) ;
- FileSystemContext . INSTANCE . accessReinitializer ( sFSCReinitializerAccesser ) ;
... | Resolved the cyclic dependency in static field initialization |
<nb> final class Bootstrap {
SINGLE
JVMCheck . check ( ) ;
+ SINGLE
+ checkLucene ( ) ;
+
INSTANCE . setup ( true , settings , environment ) ;
INSTANCE . start ( ) ;
<nb> final class Bootstrap {
private static void exit ( int status ) {
System . exit ( status ) ;
}
+
+ private static void ... | Add a hard check to ensure we are running with the expected lucene version |
<nb> import NAMESPACE ;
COMMENT
public final class OAuthRegisteredService extends RegexRegisteredService {
- private static final long serialVersionUID = NUMBER0 ;
+ private static final long serialVersionUID = NUMBER1 ;
private String clientSecret ; | fixed serialization id |
<nb> public class JdbcExecutor extends AbstractExecutor implements Executor {
try {
stmt . execute ( statement ) ;
} catch ( SQLException e ) {
- log . severe ( STRING0 + statement , e ) ;
throw e ;
}
} | removed unneeded log |
<nb> public class ClientConnectionHandler extends SimpleChannelUpstreamHandler {
} else if ( message . hasModuleData ( ) ) {
receiveModule ( ctx , message . getModuleData ( ) ) ;
} else if ( message . hasJoinComplete ( ) ) {
+ if ( missingModules . size ( ) > NUMBER0 ) {
+ logger . error ( STRING0 ) ;
+ }
... | Added a warning in the event that the server does not send all needed modules |
<nb> public class Loader
public String getFMLVersionString ( )
{
- return String . format ( STRING0 , major , minor , rev , build ) ;
+ return STRING1 ;
}
public ClassLoader getModClassLoader ( ) | Hardcode the FML version in game as a specific value |
<nb> public class DomElementXmlDescriptor implements XmlElementDescriptor {
if ( element == null && tag . getParentTag ( ) != null ) {
element = myManager . getDomElement ( tag . getParentTag ( ) ) ;
}
- if ( element != null && file instanceof XmlFile ) {
+ if ( element != null && file instanceof XmlFile && !... | don t compute namespace prefix for root dom elements |
<nb> public class AndroidManifestFinderTest extends AAProcessorTestHelper {
@ test
public void findsManifestInGeneratedSourceParentFolder ( ) throws Exception {
+ deleteManifestFromParentOfOutputDirectory ( ) ;
copyManifestToParentOfOutputDirectory ( ) ;
CompileResult result = compileFiles ( SomeClass . cla... | Fix AndroidManifestFinderTest if it fails once |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public abstract class AnActionButton ex... | myUpdaters contains only one item in most cases |
<nb> public class RabbitMQConsumer extends DefaultConsumer {
} else {
msg = exchange . getIn ( ) ;
}
-
+
+ if ( exchange . getException ( ) != null ) {
+ getExceptionHandler ( ) . handleException ( STRING0 , exchange , exchange . getException ( ) ) ;
+ }
+
if ( ! exchange . isFailed ( ) ) {
SINGLE... | RabbitMQConsumer don t use Camel ExceptionHandler BEFORE requeing message |
<nb> public class TestPerformance extends BaseTest {
assertTrue ( STRING0 , jdkSourceRoot != null && ! jdkSourceRoot . isEmpty ( ) ) ;
compileJavaParser ( USE_LR_GRAMMAR ) ;
- final String lexerName = USE_LR_GRAMMAR ? STRING1 : STRING2 ;
- final String parserName = USE_LR_GRAMMAR ? STRING3 : STRING4 ;
- fin... | Fix whitespace damage |
<nb> public abstract class AbstractGenerator {
STRING0 ,
STRING1 ,
STRING2 } ;
- public final String IDENTITY_NAME = STRING3 ;
+ public final String IDENTITY_NAME = STRING4 ;
public final String IDENTITY_TYPE = STRING5 ;
protected XmppConnectionService mXmppConnectionService ; | bumped cap version as well |
<nb> public class MessagingController implements Runnable {
PendingCommand command = new PendingCommand ( ) ;
command . command = PENDING_COMMAND_MOVE_OR_COPY_BULK_NEW ;
- int length = NUMBER0 + uids . length ;
+ int length = NUMBER1 + uids . length ;
command . arguments = new String [ length ] ;
command ... | Fixed array length calculation |
<nb> public class Wallet extends BaseTaggableObject implements Serializable , BlockCha
SINGLE
builder . append ( STRING0 ) ;
+ final long keyRotationTime = vKeyRotationTimestamp * NUMBER0 ;
+ if ( keyRotationTime > NUMBER1 )
+ builder . append ( String . format ( STRING1 , Utils . dateTimeFormat ( keyRotati... | Don t spam the log with setting key rotation time while loading wallets |
<nb> public class BrightnessController implements ToggleSlider . Listener {
setMode ( automatic ? Settings . System . SCREEN_BRIGHTNESS_MODE_AUTOMATIC
: Settings . System . SCREEN_BRIGHTNESS_MODE_MANUAL ) ;
if ( ! automatic ) {
- final int val = value + value + MINIMUM_BACKLIGHT ;
+ final int val = value + MI... | Fix typo that causes brigtness to be wrong |
<nb> class TermKeyListener {
code = mKeyCodes [ keyCode ] ;
}
if ( code != null ) {
+ if ( EmulatorDebug . LOG_CHARACTERS_FLAG ) {
+ byte [ ] bytes = code . getBytes ( ) ;
+ Log . d ( EmulatorDebug . LOG_TAG , STRING0 + EmulatorDebug . bytesToString ( bytes , NUMBER0 , bytes . length ) + STRING1 ) ;
+ }
... | Log output codes produced by keypresses symmetrical to logging input data |
<nb> public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler
clearConnection ( ) ;
}
catch ( Throwable ex2 ) {
- if ( logger . isErrorEnabled ( ) ) {
- logger . error ( STRING0 +
- this . sessionId , ex2 ) ;
+ if ( logger . isDebugEnabled ( ) ) {
+ logger . debug ( STRING1 + thi... | Catch exception while clearing TCP conn to broker |
<nb> public class TrackMessageSizeFilter implements PerRequestBroadcastFilter {
return new BroadcastAction ( BroadcastAction . ACTION . CONTINUE , msg ) ;
}
- return new BroadcastAction ( BroadcastAction . ACTION . CONTINUE , null ) ;
+ return new BroadcastAction ( BroadcastAction . ACTION . CONTINUE , messag... | Return the original message as well |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public interface EmbeddedTokenTypesProvider {
String getName ( ) ;
IElementType getElementType ( ) ;
- Language getLanguage ( ) ;
} | revert added getLanguage for embeddedTokenTypesProviders |
<nb> public abstract class OAbstractFile implements OFile {
COMMENT
COMMENT
public void lock ( ) throws IOException {
+ if ( channel == null )
+ return ;
+
acquireWriteLock ( ) ;
try {
for ( int i = NUMBER0 ; i < LOCK_MAX_RETRIES ; ++ i ) { | Fixed issue with OFile impl without an opened channel |
<nb> class AttributeMember extends BaseProcessableElement < Element > implements Attribu
if ( element ( ) . getKind ( ) == ElementKind . METHOD ) {
ExecutableElement executableElement = ( ExecutableElement ) element ( ) ;
AccessorNamePrefix prefix = AccessorNamePrefix . fromElement ( executableElement ) ;
+ Str... | Fix handling of all uppercase attribute names |
<nb>
COMMENT
package NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
-
public class TestCacheT... | Removed a star import |
<nb> public class NotificationPanelView extends PanelView implements
}
mNotificationStackScroller . setIntrinsicPadding ( stackScrollerPadding ) ;
requestScrollerTopPaddingUpdate ( animateClock ) ;
- mAnimateNextTopPaddingChange = false ;
}
private void startClockAnimation ( int y ) {
<nb> public class ... | Fixed panel top padding animation regression |
<nb> final public class MediaCodecList {
COMMENT
public static MediaCodecInfo getInfoFor ( String codec ) {
+ initCodecList ( ) ;
return sAllCodecInfos [ findCodecByName ( codec ) ] ;
} | initialize codec list before MediaCodec getCodecInfo |
<nb> public class UnsafeDataAccess extends AbstractDataAccess
static
{
try
- {
+ {
+ SINGLE
+ SINGLE
@ suppresswarnings ( STRING0 )
Field field = sun . misc . Unsafe . class . getDeclaredField ( STRING1 ) ;
field . setAccessible ( true ) ;
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPAC... | trying unsafe on Android |
<nb> public class RecyclerView extends ViewGroup implements ScrollingView , NestedScro
setScrollState ( SCROLL_STATE_DRAGGING ) ;
}
+ SINGLE
+ mNestedOffsets [ NUMBER0 ] = mNestedOffsets [ NUMBER1 ] = NUMBER0 ;
+
int nestedScrollAxis = ViewCompat . SCROLL_AXIS_NONE ;
if ( canScrollHorizontally ) {
nes... | Make sure that we clear any nested offsets |
<nb> public class SlidingMenu extends RelativeLayout {
mViewBehind . dataSetChanged ( ) ;
}
+ public void setEnabled ( boolean b ) {
+ mViewAbove . setEnabled ( b ) ;
+ mViewBehind . setEnabled ( b ) ;
+ }
+
COMMENT
COMMENT
COMMENT | Now you can enable and disable the SlidingMenu |
<nb> public class PrefFragment extends PreferenceFragment implements SharedPreference
case AppSettings . PAGE_TYPE_SECOND_MENTIONS :
text . add ( STRING0 + AppSettings . getInstance ( context ) . secondScreenName ) ;
break ;
+ case AppSettings . PAGE_TYPE_WORLD_TRENDS :
+ text . add ( getString ( R . string .... | Fix Pick the visible items in the drawer with the new trends option |
<nb> class ClientConductor implements Agent , DriverListener
if ( now > ( timeOfLastDoWork + interServiceTimeoutNs ) )
{
activePublications . close ( ) ;
+ activeSubscriptions . close ( ) ;
throw new ConductorServiceTimeoutException (
String . format ( STRING0 , interServiceTimeoutNs ) ) ; | add closing of subscriptions images to inter service timeout |
<nb> public class LocalAllocateDangledIndices extends AbstractComponent {
try {
channel . sendResponse ( t ) ;
} catch ( Exception e ) {
- logger . error ( STRING0 , e ) ;
+ logger . warn ( STRING0 , e ) ;
}
}
<nb> public class LocalAllocateDangledIndices extends AbstractComponent {
try {
channel ... | change logging to warning in LocalAllocateDangledIndices |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public class JSR310InstantType extends AbstractJSR310DateTimeType < Instant > {
@ override
public String getLiteral ( Instant value ) {
- return dateTimeFormatter . ... | Fix formatting of propertyless java time Instant |
<nb>
COMMENT
package NAMESPACE ;
- import static NAMESPACE ;
-
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPA... | Removed superflous semi colon |
<nb> public class MetaContactImpl
addCapabilities ( contact , opSets ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
private void removeCapabilities ( Contact contact ,
Map < String , ? extends OperationSet > opSets )
{
<nb> public class MetaContactImpl
}
COMMENT
- CO... | Fix callee name in error message |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | removed unused import |
<nb> class FastScroller {
if ( mListAdapter == null && mList != null ) {
getSectionsFromIndexer ( ) ;
}
+ if ( mList != null ) {
+ mList . requestDisallowInterceptTouchEvent ( true ) ;
+ }
cancelFling ( ) ;
return true ;
}
- } else if ( action == MotionEvent . ACTION_UP ) {
+ } else if ( action ... | Make the fastscroll thumb tell the parent to not intercept touch events |
<nb> public abstract class SelectorManager extends AbstractLifeCycle implements Dumpa
protected void doStart ( ) throws Exception
{
super . doStart ( ) ;
- _selector = Selector . open ( ) ;
+ _selector = newSelector ( ) ;
_state . set ( State . PROCESS ) ;
}
+ protected Selector newSelector ( ) throws... | Introduced factory method to create JDK s Selector instances |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | add AssignableShellMetric java to rpc |
<nb> public class CompactionTask extends AbstractCompactionTask
Map < Integer , Long > mergedRows = new HashMap < Integer , Long > ( ) ;
for ( int i = NUMBER0 ; i < counts . length ; i ++ )
{
- int rows = i + NUMBER1 ;
long count = counts [ i ] ;
+ if ( count == NUMBER0 )
+ continue ;
+
+ int rows = i... | omit zero counts from compaction merge summary |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.