diff
stringlengths 38
1.78k
| msg_token
stringlengths 9
190
|
|---|---|
<nb> public abstract class AbstractTitanGraphProvider extends AbstractGraphProvider {
add ( TitanGraphVariables . class ) ;
add ( FulgoraElementTraversal . class ) ;
- add ( FulgoraGraphComputer . class ) ;
- add ( FulgoraMapEmitter . class ) ;
- add ( FulgoraReduceEmitter . class ) ;
- add ( FulgoraMemory . class ) ;
- add ( FulgoraMemory . class ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
add ( TitanVertexStep . class ) ;
add ( TitanGraphStep . class ) ;
add ( TitanPropertiesStep . class ) ;
- add ( TitanLocalQueryOptimizerStrategy . class ) ;
- add ( TitanGraphStepStrategy . class ) ;
- add ( VertexCentricQuery . class ) ;
- add ( Cmp . class ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
add ( TitanFeatures . class ) ;
} } ;
|
removed Strategies from the IMPLEMENTATIONS in Provider
|
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
|
added copy right
|
<nb> public class StreamingWebSocketServlet extends WebSocketServlet {
}
public void tellClients ( BuckEvent event ) {
+ if ( connections . isEmpty ( ) ) {
+ return ;
+ }
+
try {
String message = new ObjectMapper ( ) . writeValueAsString ( event ) ;
tellAll ( message ) ;
|
Do not serialize events if there are no WebSocket clients connected
|
<nb> public class ContactHeaderWidget extends FrameLayout implements View . OnClickList
resetAsyncQueryHandler ( ) ;
}
- mQueryHandler . startQuery ( TOKEN_CONTACT_INFO , null , contactUri , ContactQuery . COLUMNS ,
+ mQueryHandler . startQuery ( TOKEN_CONTACT_INFO , contactUri , contactUri , ContactQuery . COLUMNS ,
null , null , null ) ;
}
|
Pass cookie to TOKEN_CONTACT_INFO so that QuickContact without photo works again
|
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
public class PacketExtensionFilter implements PacketFilter {
- private String elementName ;
- private String namespace ;
+ private final String elementName ;
+ private final String namespace ;
COMMENT
COMMENT
<nb> public class PacketExtensionFilter implements PacketFilter {
this ( null , namespace ) ;
}
+ public PacketExtensionFilter ( PacketExtension packetExtension ) {
+ this ( packetExtension . getElementName ( ) , packetExtension . getNamespace ( ) ) ;
+ }
+
+ public PacketExtensionFilter ( Class < ? extends PacketExtension > packetExtensionClass ) throws InstantiationException , IllegalAccessException {
+ this ( packetExtensionClass . newInstance ( ) ) ;
+ }
+
public boolean accept ( Packet packet ) {
return packet . getExtension ( elementName , namespace ) != null ;
}
|
Add PacketExtensionFilter PacketExtension constructor
|
<nb> public class RenderPipe extends TileEntitySpecialRenderer {
BlockInterface block = new BlockInterface ( ) ;
Fluid fluid = FluidRegistry . getFluid ( liquidId ) ;
- if ( fluid . getBlockID ( ) != NUMBER0 ) {
+ if ( fluid . getBlockID ( ) > NUMBER0 ) {
block . baseBlock = Block . blocksList [ fluid . getBlockID ( ) ] ;
} else {
block . baseBlock = Block . waterStill ;
|
Fix AIOOB in RenderPipe
|
<nb> public class OOrientDBLoader extends OAbstractLoader implements OLoader {
}
private void manageRemoteDatabase ( ) {
- if ( ! dbAutoCreate || ! dbAutoDropIfExists ) {
+ if ( ! dbAutoCreate && ! dbAutoDropIfExists ) {
log ( INFO , STRING0 + dbURL ) ;
return ;
}
|
fix failing test
|
<nb> class ASTStrLength extends ASTPrim {
private Vec lengthStringCol ( Vec vec ) {
Vec res = new MRTask ( ) {
@ override public void map ( Chunk chk , NewChunk newChk ) {
- if ( chk instanceof C0DChunk ) SINGLE
- for ( int i = NUMBER0 ; i < chk . len ( ) ; i ++ )
+ if ( chk instanceof C0DChunk ) { SINGLE
+ for ( int i = NUMBER0 ; i < chk . _len ; i ++ )
newChk . addNA ( ) ;
- else if ( ( ( CStrChunk ) chk ) . _isAllASCII ) { SINGLE
+ } else if ( ( ( CStrChunk ) chk ) . _isAllASCII ) { SINGLE
( ( CStrChunk ) chk ) . asciiLength ( newChk ) ;
} else { SINGLE
ValueString vs = new ValueString ( ) ;
|
Handle all NA chunks in string ops
|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- SINGLE
import NAMESPACE ;
|
Remove unused imports
|
<nb> import NAMESPACE ;
public class RetryQueryRunnerConfig
{
@ jsonproperty
- private int numTries = NUMBER0 ;
+ private int numTries = NUMBER1 ;
@ jsonproperty
private boolean returnPartialResults = false ;
|
revert changes to RetryQueryRunnerConfig
|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Preferences {
getPreferences ( ) . edit ( ) . putString ( STRING0 , account . getUuid ( ) ) . commit ( ) ;
}
- public void dump ( ) {
- if ( Config . LOGV ) {
- for ( String key : getPreferences ( ) . getAll ( ) . keySet ( ) ) {
- Log . v ( K9 . LOG_TAG , key + STRING1 + getPreferences ( ) . getAll ( ) . get ( key ) ) ;
- }
- }
- }
-
public SharedPreferences getPreferences ( ) {
return mStorage ;
}
|
Removed unused method that was used for debugging
|
<nb> public final class Caffeine < K , V > {
}
public Caffeine < K , V > executor ( Executor executor ) {
- executor = requireNonNull ( executor ) ;
+ this . executor = requireNonNull ( executor ) ;
return this ;
}
<nb> public final class CacheProvider {
Set < Caffeine < Object , Object > > combinations = new LinkedHashSet < > ( combinationCount ) ;
for ( Caffeine < Object , Object > builder : builders ) {
for ( Class < RemovalListener < ? , ? > > removalListenerClass : cacheSpec . removalListener ( ) ) {
+ @ suppresswarnings ( STRING0 )
+ RemovalListener < Object , Object > removalListener =
+ ( RemovalListener < Object , Object > ) removalListenerClass . newInstance ( ) ;
Caffeine < Object , Object > copy = builder . copy ( ) ;
- copy . removalListener ( removalListenerClass . newInstance ( ) ) ;
+ copy . removalListener ( removalListener ) ;
combinations . add ( copy ) ;
}
}
|
Fix findbugs error
|
<nb> public class CoxPH extends Job {
final double newLoglik = model . calcLoglik ( coxMR ) ;
if ( newLoglik > oldLoglik ) {
- model . calcModelStats ( newCoef , newLoglik ) ;
- model . calcCumhaz_0 ( coxMR ) ;
-
if ( i == NUMBER0 )
model . calcCounts ( coxMR ) ;
+ model . calcModelStats ( newCoef , newLoglik ) ;
+ model . calcCumhaz_0 ( coxMR ) ;
+
if ( newLoglik == NUMBER0 )
model . lre = - Math . log10 ( Math . abs ( oldLoglik - newLoglik ) ) ;
else
|
Rearrange order of summary stats calculations in Cox PH
|
<nb> import NAMESPACE ;
@ bugpattern ( name = STRING0 ,
summary =
STRING1
- + STRING2 ,
+ + STRING3
+ + STRING4 ,
explanation =
STRING5
+ STRING6
|
Improve error message for CompileTimeConstant
|
<nb> public class MySpringBootRouter extends FatJarRouter {
@ override
public void configure ( ) {
- from ( STRING0 ) .
- transform ( ) . simple ( STRING1 ) .
- to ( STRING2 , STRING3 ) ;
+ from ( STRING4 )
+ . transform ( ) . simple ( STRING1 )
+ . to ( STRING2 ) ;
}
@ bean
|
Lets avoid the mock endpoint in our production route in this example
|
<nb> public final class IntMath {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class IntMath {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class LongMath {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class LongMath {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
|
Improve the javadoc for mod
|
<nb> public class LayoutTypePortletTest {
}
@ test
- public void testNoPortlets ( ) throws Exception {
+ public void testGetAllPortletsShouldReturnNoPortlet ( ) throws Exception {
List < Portlet > portlets = _layoutTypePortlet . getAllPortlets ( ) ;
Assert . assertEquals ( NUMBER0 , portlets . size ( ) ) ;
|
rename existing test method
|
<nb> public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow
}
String siteId = getBlogId ( ) ;
mFetchingThemes = true ;
- WordPress . getRestClientUtilsV1_2 ( ) . getThemes ( siteId , NUMBER0 , mThemeBrowserFragment . getPage ( ) , new Listener ( ) {
+ int page = NUMBER1 ;
+ if ( mThemeBrowserFragment != null ) {
+ page = mThemeBrowserFragment . getPage ( ) ;
+ }
+ WordPress . getRestClientUtilsV1_2 ( ) . getThemes ( siteId , NUMBER0 , page , new Listener ( ) {
@ override
public void onResponse ( JSONObject response ) {
new FetchThemesTask ( ) . execute ( response ) ;
|
Setting a default page if fragment is not available
|
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NettyRatpackService extends AbstractIdleService implements RatpackS
bootstrap . childOption ( ChannelOption . SO_RCVBUF , socket . getReceiveBufferSize ( ) ) ;
bootstrap . option ( ChannelOption . SO_LINGER , socket . getSoLinger ( ) ) ;
bootstrap . childOption ( ChannelOption . IP_TOS , socket . getTrafficClass ( ) ) ;
- bootstrap . childOption ( ChannelOption . ALLOCATOR , UnpooledByteBufAllocator . DEFAULT ) ;
+ bootstrap . childOption ( ChannelOption . ALLOCATOR , PooledByteBufAllocator . DEFAULT ) ;
bootstrap . childOption ( ChannelOption . SO_KEEPALIVE , socket . getKeepAlive ( ) ) ;
bootstrap . option ( ChannelOption . SO_REUSEADDR , socket . getReuseAddress ( ) ) ;
bootstrap . option ( ChannelOption . SO_BACKLOG , NUMBER0 ) ;
|
Use a pooled byte buffer allocator
|
<nb> public class SampleActivity extends AppCompatActivity {
} else if ( drawerItem . getIdentifier ( ) == NUMBER0 ) {
intent = new Intent ( SampleActivity . this , EndlessScrollListActivity . class ) ;
} else if ( drawerItem . getIdentifier ( ) == NUMBER1 ) {
- intent = new Intent ( SampleActivity . this , EndlessScrollListActivity . class ) ;
+ intent = new Intent ( SampleActivity . this , SortActivity . class ) ;
} else if ( drawerItem . getIdentifier ( ) == NUMBER2 ) {
intent = new Intent ( SampleActivity . this , MopubAdsActivity . class ) ;
} else if ( drawerItem . getIdentifier ( ) == NUMBER3 ) {
|
start correct sample for SortActivity
|
<nb> public class MapActivityLayers {
adapter . item ( R . string . layer_favorites ) . selected ( settings . SHOW_FAVORITES . get ( ) ? NUMBER0 : NUMBER1 )
. icons ( R . drawable . ic_action_fav_dark , R . drawable . ic_action_fav_light ) . reg ( ) ;
adapter . item ( R . string . layer_gpx_layer ) . selected (
- getApplication ( ) . getSelectedGpxHelper ( ) != null ? NUMBER0 : NUMBER1 )
+ getApplication ( ) . getSelectedGpxHelper ( ) . isShowingAnyGpxFiles ( ) ? NUMBER0 : NUMBER1 )
SINGLE
. icons ( R . drawable . ic_action_polygom_dark , R . drawable . ic_action_polygom_light )
. reg ( ) ;
|
Fix selection bug
|
<nb> import NAMESPACE ;
public class RoutePerformanceCountTest extends ContextTestSupport {
private CountProcessor processor = new CountProcessor ( ) ;
- private int size = NUMBER0 ;
+ private int size = NUMBER1 ;
private String url = STRING0 ;
public void testSendMessages ( ) throws Exception {
<nb> import NAMESPACE ;
COMMENT
public class RoutePerformanceTest extends ContextTestSupport {
- private int size = NUMBER2 ;
+ private int size = NUMBER1 ;
private SimpleDataSet dataSet = new SimpleDataSet ( size ) ;
private String uri = STRING1 ;
|
Fixed unit test
|
<nb> class Request {
if ( hasBody )
entity = httpClientConnection . receiveResponseEntity ( header ) ;
- boolean supportPartialContent = v . greaterEquals ( HttpVersion . HTTP_1_1 ) ;
+ SINGLE
+ SINGLE
+ boolean supportPartialContent = STRING0 . equalsIgnoreCase ( header
+ . getAcceptRanges ( ) ) ;
if ( entity != null ) {
InputStream is = entity . getContent ( ) ;
|
Restrict the range request to the servers claiming
|
<nb> public class GeoPointFieldMapper implements XContentMapper , ArrayValueMapperPars
}
@ override public void close ( ) {
- latMapper . close ( ) ;
- lonMapper . close ( ) ;
+ if ( latMapper != null ) {
+ latMapper . close ( ) ;
+ }
+ if ( lonMapper != null ) {
+ lonMapper . close ( ) ;
+ }
+ if ( geohashMapper != null ) {
+ geohashMapper . close ( ) ;
+ }
+ if ( geoStringMapper != null ) {
+ geoStringMapper . close ( ) ;
+ }
}
@ override public void merge ( XContentMapper mergeWith , MergeContext mergeContext ) throws MergeMappingException {
|
fix wrong closing of possible null mappings in geo point mapping
|
<nb> public class AndroidDisplayer implements IDisplayer {
if ( PAINT != null )
PAINT . setTypeface ( font ) ;
}
+
+ public static void setPaintStorkeWidth ( float s ) {
+ PAINT . setStrokeWidth ( s ) ;
+ }
public Canvas canvas ;
<nb> public class DanmakuGlobalConfig {
COMMENT
COMMENT
COMMENT
- public DanmakuGlobalConfig setDanmakuStyle ( int style ) {
+ public DanmakuGlobalConfig setDanmakuStyle ( int style , float size ) {
mDanmakuStyle = style ;
switch ( style ) {
case DANMAKU_STYLE_NONE :
<nb> public class DanmakuGlobalConfig {
case DANMAKU_STYLE_STROKEN :
AndroidDisplayer . CONFIG_HAS_SHADOW = false ;
AndroidDisplayer . CONFIG_HAS_STROKE = true ;
+ AndroidDisplayer . setPaintStorkeWidth ( size ) ;
break ;
}
return this ;
|
Add paint storke width config
|
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class Config extends HashMap < String , Object > {
+ SINGLE
+ private static final long serialVersionUID = - NUMBER0 ;
+
COMMENT
COMMENT
COMMENT
|
Set Config Serialization
|
<nb> public class MapControlsLayer extends OsmandMapLayer {
}
int sh = Color . WHITE ;
if ( nightMode != null && nightMode . isNightMode ( ) ) {
- sh = NUMBER0 ;
+ sh = Color . TRANSPARENT ;
}
if ( shadowColor != sh ) {
shadowColor = sh ;
- zoomTextPaint . setColor ( sh == Color . WHITE ? Color . BLACK : sh ) ;
- rulerTextPaint . setColor ( sh == Color . WHITE ? Color . BLACK : sh ) ;
+ zoomTextPaint . setColor ( sh == Color . WHITE ? Color . BLACK : NUMBER0 ) ;
+ rulerTextPaint . setColor ( sh == Color . WHITE ? Color . BLACK : NUMBER0 ) ;
}
if ( showZoomLevel || ! view . getSettings ( ) . SHOW_RULER . get ( ) ) {
drawZoomLevel ( canvas ) ;
|
Fix night colors
|
<nb> public class NetExtension extends Extension {
@ override
public void onRegister ( CompileScope scope ) {
- registerClass ( scope , WrapHttpClient . class ) ;
- registerClass ( scope , WrapHttpRequest . class ) ;
- registerClass ( scope , WrapHttpResponse . class ) ;
- registerClass ( scope , WrapHttpEntity . class ) ;
- registerClass ( scope , WrapHttpFileEntity . class ) ;
- registerClass ( scope , WrapHttpUrlEncodingFormEntity . class ) ;
-
registerClass ( scope , WrapNetStream . class ) ;
registerWrapperClass ( scope , Proxy . class , WrapProxy . class ) ;
|
Improve Net extension
|
<nb> public class SingleIncludePatternFileTree implements MinimalFileTree {
if ( stopFlag . get ( ) ) {
break ;
}
- if ( step . matches ( child . getName ( ) ) ) {
- relativePath . addLast ( child . getName ( ) ) ;
+ String childName = child . getName ( ) ;
+ if ( step . matches ( childName ) ) {
+ relativePath . addLast ( childName ) ;
doVisitDirOrFile ( visitor , child , relativePath , segmentIndex + NUMBER0 , stopFlag ) ;
relativePath . removeLast ( ) ;
}
|
Compute file name only once
|
<nb> public class SplitwiseTagsView extends TokenCompleteTextView < SplitwiseActivity . T
}
private boolean isSelectingHint ( int selStart ) {
- return selStart > getText ( ) . length ( ) - suffixHint . length ( ) ;
+ return selStart >= getText ( ) . length ( ) - suffixHint . length ( ) ;
}
@ override
|
Don t let the user select the hint not even the first character
|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
|
Removed unused import
|
<nb> import NAMESPACE ;
class XmlSerializerImpl {
private SerializationFilter filter ;
- private Map < Pair < Class , Accessor > , Binding > myBindings = new HashMap < Pair < Class , Accessor > , Binding > ( ) ;
+ private Map < Pair < Type , Accessor > , Binding > myBindings = new HashMap < Pair < Type , Accessor > , Binding > ( ) ;
public XmlSerializerImpl ( SerializationFilter filter ) {
<nb> class XmlSerializerImpl {
private Binding _getClassBinding ( Class < ? > aClass , Type originalType , final Accessor accessor ) {
- final Pair < Class , Accessor > p = new Pair < Class , Accessor > ( aClass , accessor ) ;
+ final Pair < Type , Accessor > p = new Pair < Type , Accessor > ( originalType , accessor ) ;
Binding binding = myBindings . get ( p ) ;
|
Bug when binding fields with similar generic classes
|
<nb> public class BinaryNode < T > {
}
@ override public String toString ( ) {
- return STRING0 +
- STRING1 + data +
- STRING2 ;
+ return STRING0 + STRING1 + data + STRING2 ;
}
}
|
Fix check style issue in BinaryNode toString method
|
<nb> public abstract class BaseSliderView {
protected BaseSliderView ( Context context ) {
mContext = context ;
- this . mBundle = new Bundle ( ) ;
}
COMMENT
<nb> public abstract class BaseSliderView {
return this ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public BaseSliderView bundle ( Bundle bundle ) {
+ mBundle = bundle ;
+ return this ;
+ }
+
public String getUrl ( ) {
return mUrl ;
}
|
Users can now add Bundles to sliders if they want to access additional information
|
<nb> public final class ScriptIntrinsicBlur extends ScriptIntrinsic {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
|
RenderScript Fix ScriptIntrinsicBlur documentation
|
<nb>
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
|
remove use of markdown in javadoc
|
<nb> public enum OGlobalConfiguration {
}
private static void autoConfig ( ) {
- if ( System . getProperty ( DISK_CACHE_SIZE . key ) == null ) {
+ if ( System . getProperty ( DISK_CACHE_SIZE . key ) == null )
autoConfigDiskCacheSize ( ) ;
+
+ if ( System . getProperty ( WAL_RESTORE_BATCH_SIZE . key ) == null ) {
+ final long jvmMaxMemory = Runtime . getRuntime ( ) . maxMemory ( ) ;
+ if ( jvmMaxMemory > NUMBER0 * OFileUtils . GIGABYTE )
+ SINGLE
+ WAL_RESTORE_BATCH_SIZE . setValue ( NUMBER1 ) ;
+ else if ( jvmMaxMemory > NUMBER2 * OFileUtils . MEGABYTE )
+ SINGLE
+ WAL_RESTORE_BATCH_SIZE . setValue ( NUMBER3 ) ;
}
}
|
Improved performance on WAL restore if RAM is available
|
<nb> public class RingModel
else
status = NodeStatus . OK ;
- String token = r . left ( ) . toString ( ) ;
+ String token = r . left . toString ( ) ;
nodes . add ( new Node ( host , status , token ) ) ;
}
|
update circut for Range interface changes
|
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public abstract class TableModel extends AbstractModel {
|
Fix a javadoc typo
|
<nb> import static NAMESPACE
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
COMMENT
<nb> public class DefaultBroadcasterFactory extends BroadcasterFactory {
policy = new BroadcasterLifeCyclePolicy . Builder ( ) . policy ( IDLE ) . idleTimeInMS ( maxIdleTime ) . build ( ) ;
} else if ( IDLE_DESTROY . name ( ) . equalsIgnoreCase ( broadcasterLifeCyclePolicy ) ) {
policy = new BroadcasterLifeCyclePolicy . Builder ( ) . policy ( IDLE_DESTROY ) . idleTimeInMS ( maxIdleTime ) . build ( ) ;
+ } else if ( IDLE_RESUME . name ( ) . equalsIgnoreCase ( broadcasterLifeCyclePolicy ) ) {
+ policy = new BroadcasterLifeCyclePolicy . Builder ( ) . policy ( IDLE_RESUME ) . idleTimeInMS ( maxIdleTime ) . build ( ) ;
} else if ( NEVER . name ( ) . equalsIgnoreCase ( broadcasterLifeCyclePolicy ) ) {
policy = new BroadcasterLifeCyclePolicy . Builder ( ) . policy ( NEVER ) . build ( ) ;
} else {
|
Add missing IDLE_RESUME support
|
<nb> public class OProfiler extends OSharedResourceAbstract implements OProfilerMBean
}
public void unregisterHookValue ( final String iName ) {
- if ( recordingFrom < NUMBER0 )
- return ;
-
hooks . remove ( iName ) ;
}
<nb> public class OServerNetworkListener extends Thread {
try {
if ( serverSocket != null && ! serverSocket . isClosed ( ) )
serverSocket . close ( ) ;
+ protocol = null ;
} catch ( IOException ioe ) {
}
}
|
Fixed memory leak caused the server to not release connections
|
<nb> public class BptBlock {
public void buildBlock ( IBptContext context ) {
SINGLE
context . world ( ) . setBlock ( x , y , z , block , meta , NUMBER0 ) ;
- SINGLE
+ context . world ( ) . setBlockMetadataWithNotify ( x , y , z , meta , NUMBER0 ) ;
if ( block instanceof BlockContainer ) {
TileEntity tile = context . world ( ) . getTileEntity ( x , y , z ) ;
<nb> public class BptBlockRotateInventory extends BptBlockRotateMeta {
for ( int i = NUMBER1 ; i < inv . getSizeInventory ( ) ; ++ i ) {
inv . setInventorySlotContents ( i , null ) ;
}
-
}
}
|
added back double meta specification
|
<nb> class NioDatagramWorker implements Runnable {
channel . currentWriteEvent = evt ;
} catch ( final Throwable t ) {
channel . currentWriteEvent = null ;
- channel . inWriteNowLoop = false ;
evt . getFuture ( ) . setFailure ( t ) ;
evt = null ;
fireExceptionCaught ( channel , t ) ;
|
Removed incorrect boolean assignment
|
<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
|
Fix doc build
|
<nb> public class OtrKeyManagerImpl implements OtrKeyManager {
if ( sessionID == null )
return null ;
- String userID = sessionID . getLocalUserId ( ) ;
+ String userID = sessionID . getRemoteUserId ( ) ;
byte [ ] b64PubKey = this . store . getPropertyBytes ( userID + STRING0 ) ;
if ( b64PubKey == null )
|
should use remoteUserId not localUserId to find remote key
|
<nb> public class DatabaseHelper extends SQLiteOpenHelper {
loadStringSetting ( stmt , Settings . Secure . ACCESSIBILITY_SCREEN_READER_URL ,
R . string . def_accessibility_screen_reader_url ) ;
+
+ loadBooleanSetting ( stmt , Settings . System . LOCKSCREEN_DISABLED ,
+ R . bool . def_lockscreen_disabled ) ;
} finally {
if ( stmt != null ) stmt . close ( ) ;
}
|
Load lockscreen disabled setting on database create as well as upgrade
|
<nb> import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class XmlFileLoaderTest {
}
@ test
- public void testNextTag ( ) {
- fail ( STRING0 ) ;
+ public void testNextTag ( ) throws XmlPullParserException , IOException {
+ Set < Integer > acceptableTags = new HashSet < Integer > ( ) ;
+ acceptableTags . add ( XmlResourceParser . START_TAG ) ;
+ acceptableTags . add ( XmlResourceParser . END_TAG ) ;
+ parseUntilNext ( XmlResourceParser . START_DOCUMENT ) ;
+ int evt ;
+ int max = NUMBER0 ;
+ for ( int i = max ; i > NUMBER1 ; i -- ) {
+ evt = parser . nextTag ( ) ;
+ assertTrue ( acceptableTags . contains ( evt ) ) ;
+ }
}
@ test
|
Fixed nextTag test case
|
<nb> public class KeepAliveTimersTest extends CrateUnitTest {
KeepAliveTimers . ResettableTimer timer = futureAndTimer . v2 ( ) ;
SettableFuture < Void > future = futureAndTimer . v1 ( ) ;
timer . start ( ) ;
- future . get ( NUMBER0 , TimeUnit . MILLISECONDS ) ;
+ future . get ( NUMBER1 , TimeUnit . MILLISECONDS ) ;
}
@ test
|
increased wait time in testKeepAliveRunnableWithoutResetIsCalled to decrease likelyhood of a race condition
|
<nb> public final class OperatorTable {
binaryOperatorsMap . put ( JetTokens . LTEQ , JsBinaryOperator . LTE ) ;
binaryOperatorsMap . put ( JetTokens . EQEQ , JsBinaryOperator . REF_EQ ) ;
binaryOperatorsMap . put ( JetTokens . ANDAND , JsBinaryOperator . AND ) ;
+ binaryOperatorsMap . put ( JetTokens . OROR , JsBinaryOperator . OR ) ;
binaryOperatorsMap . put ( JetTokens . EXCLEQ , JsBinaryOperator . NEQ ) ;
binaryOperatorsMap . put ( JetTokens . PERC , JsBinaryOperator . MOD ) ;
binaryOperatorsMap . put ( JetTokens . PLUSEQ , JsBinaryOperator . ASG_ADD ) ;
|
added support for boolean operator
|
<nb> public class ZygoteInit {
static void closeServerSocket ( ) {
try {
if ( sServerSocket != null ) {
+ FileDescriptor fd = sServerSocket . getFileDescriptor ( ) ;
sServerSocket . close ( ) ;
+ if ( fd != null ) {
+ Libcore . os . close ( fd ) ;
+ }
}
} catch ( IOException ex ) {
Log . e ( TAG , STRING0 , ex ) ;
+ } catch ( libcore . io . ErrnoException ex ) {
+ Log . e ( TAG , STRING1 , ex ) ;
}
sServerSocket = null ;
|
Fix socket descriptor leak from Zygote to child app
|
<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 DefaultErrorStrategy implements ANTLRErrorStrategy {
}
else {
System . err . println ( STRING0 + e . getClass ( ) . getName ( ) ) ;
- if ( recognizer != null ) {
- recognizer . notifyErrorListeners ( e . getOffendingToken ( ) , e . getMessage ( ) , e ) ;
- }
+ recognizer . notifyErrorListeners ( e . getOffendingToken ( ) , e . getMessage ( ) , e ) ;
}
}
|
Remove unnecessary null check
|
<nb> public class TransportMoreLikeThisAction extends TransportAction < MoreLikeThisReq
}
final BoolQueryBuilder boolBuilder = boolQuery ( ) ;
try {
- DocumentMapper docMapper = indicesService . indexServiceSafe ( concreteIndex ) . mapperService ( ) . documentMapper ( request . type ( ) ) ;
+ final DocumentMapper docMapper = indicesService . indexServiceSafe ( concreteIndex ) . mapperService ( ) . documentMapper ( request . type ( ) ) ;
+ if ( docMapper == null ) {
+ throw new ElasticSearchException ( STRING0 + request . type ( ) + STRING1 ) ;
+ }
final Set < String > fields = newHashSet ( ) ;
if ( request . fields ( ) != null ) {
for ( String field : request . fields ( ) ) {
|
provide more information if a null DocumentMapper is returned
|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
|
Removed unused imports
|
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NodeEnvironment extends AbstractComponent implements Closeable {
SINGLE
public static final String SETTING_CUSTOM_DATA_PATH_ENABLED = STRING0 ;
+ SINGLE
+ public static final String SETTING_ENABLE_LUCENE_SEGMENT_INFOS_TRACE = STRING1 ;
+
public static final String NODES_FOLDER = STRING2 ;
public static final String INDICES_FOLDER = STRING3 ;
public static final String NODE_LOCK_FILENAME = STRING4 ;
@ inject
+ @ suppressforbidden ( reason = STRING5 )
public NodeEnvironment ( Settings settings , Environment environment ) throws IOException {
super ( settings ) ;
<nb> public class NodeEnvironment extends AbstractComponent implements Closeable {
}
maybeLogPathDetails ( ) ;
+
+ if ( settings . getAsBoolean ( SETTING_ENABLE_LUCENE_SEGMENT_INFOS_TRACE , false ) ) {
+ SegmentInfos . setInfoStream ( System . out ) ;
+ }
}
private static void releaseAndNullLocks ( Lock [ ] locks ) {
|
add node setting to send SegmentInfos debug output to System out
|
<nb> public class FixedWidthBlockBuilder
valueIsNull . appendByte ( isNull ? NUMBER0 : NUMBER1 ) ;
positionCount ++ ;
- blockBuilderStatus . addBytes ( fixedSize ) ;
+ blockBuilderStatus . addBytes ( Byte . BYTES + fixedSize ) ;
}
@ override
<nb> import static NAMESPACE ;
public class TestFixedWidthBlockBuilder
{
- private static final int BOOLEAN_ENTRY_SIZE = BOOLEAN . getFixedSize ( ) ;
+ private static final int BOOLEAN_ENTRY_SIZE = BOOLEAN . getFixedSize ( ) + Byte . BYTES ; SINGLE
private static final int EXPECTED_ENTRY_COUNT = NUMBER2 ;
@ test
<nb> public class TestFixedWidthBlockBuilder
private static void testIsFull ( PageBuilderStatus pageBuilderStatus )
{
- FixedWidthBlockBuilder blockBuilder = new FixedWidthBlockBuilder ( BOOLEAN_ENTRY_SIZE , pageBuilderStatus . createBlockBuilderStatus ( ) ) ;
+ FixedWidthBlockBuilder blockBuilder = new FixedWidthBlockBuilder ( BOOLEAN . getFixedSize ( ) , pageBuilderStatus . createBlockBuilderStatus ( ) ) ;
assertTrue ( pageBuilderStatus . isEmpty ( ) ) ;
while ( ! pageBuilderStatus . isFull ( ) ) {
BOOLEAN . writeBoolean ( blockBuilder , true ) ;
|
Fix bug in status accounting in FixedWidthBlockBuilder
|
<nb> public class RootBeanDefinition extends AbstractBeanDefinition {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public RootBeanDefinition ( Class beanClass , int autowireMode ) {
super ( ) ;
<nb> public class RootBeanDefinition extends AbstractBeanDefinition {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public RootBeanDefinition ( Class beanClass , MutablePropertyValues pvs ) {
super ( null , pvs ) ;
<nb> public class RootBeanDefinition extends AbstractBeanDefinition {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ public RootBeanDefinition ( String beanClassName ) {
+ setBeanClassName ( beanClassName ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
|
revised RootBeanDefinition constructors
|
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class ReplaceCommand extends SearchCommand {
- private final ReplaceOptions options ;
public ReplaceCommand ( Project project , ReplaceUsageViewContext context ) {
super ( project , context ) ;
- options = ( ( ReplaceConfiguration ) context . getConfiguration ( ) ) . getOptions ( ) ;
-
}
protected void findStarted ( ) {
<nb> public class ReplaceCommand extends SearchCommand {
final ReplaceUsageViewContext replaceUsageViewContext = ( ( ReplaceUsageViewContext ) context ) ;
replaceUsageViewContext . addReplaceUsage ( usage , replaceUsageViewContext . getReplacer ( ) . buildReplacement ( result ) ) ;
}
-
- public ReplaceOptions getOptions ( ) {
- return options ;
- }
}
|
remove unnecessary field and getter from SSR ReplaceCommand
|
<nb> public class LazyReplicatedMap extends AbstractReplicatedMap
Member next = members [ nextIdx ] ;
SINGLE
- nextIdx = firstIdx + NUMBER0 ;
+ nextIdx = nextIdx + NUMBER0 ;
if ( nextIdx >= members . length ) nextIdx = NUMBER1 ;
if ( next == null ) {
|
complete the bug fix
|
<nb> import NAMESPACE ;
COMMENT
public abstract class Drawable {
+ private static final Rect ZERO_BOUNDS_RECT = new Rect ( ) ;
+
private int [ ] mStateSet = StateSet . WILD_CARD ;
private int mLevel = NUMBER0 ;
private int mChangingConfigurations = NUMBER0 ;
- private Rect mBounds = new Rect ( ) ;
+ private Rect mBounds = ZERO_BOUNDS_RECT ; SINGLE
COMMENT
private boolean mVisible = true ;
<nb> public abstract class Drawable {
COMMENT
public void setBounds ( int left , int top , int right , int bottom ) {
Rect oldBounds = mBounds ;
-
+
+ if ( oldBounds == ZERO_BOUNDS_RECT ) {
+ oldBounds = mBounds = new Rect ( ) ;
+ }
+
if ( oldBounds . left != left || oldBounds . top != top ||
oldBounds . right != right || oldBounds . bottom != bottom ) {
mBounds . set ( left , top , right , bottom ) ;
|
Lazily allocate the mBounds Rect in Drawable
|
<nb> public interface BatchInserter
COMMENT
public Map getRelationshipProperties ( long relId ) ;
-
COMMENT
COMMENT
COMMENT
<nb> public interface BatchInserter
COMMENT
COMMENT
public String getStore ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public long getReferenceNode ( ) ;
+
}
<nb> public class BatchInserterImpl implements BatchInserter
{
return EmbeddedNeo . loadConfigurations ( file ) ;
}
+
+ public long getReferenceNode ( )
+ {
+ if ( nodeExists ( NUMBER0 ) )
+ {
+ return NUMBER0 ;
+ }
+ return - NUMBER1 ;
+ }
}
|
Added getReferenceNode to batch inserter
|
<nb> public class BooleanEncodedValue extends EncodedValue {
if ( out . annotates ( ) ) {
out . annotate ( STRING0 + ValueType . VALUE_BOOLEAN . name ( ) + STRING1 + Boolean . toString ( value ) ) ;
}
- out . writeByte ( ValueType . VALUE_BOOLEAN . value | ( value ? NUMBER0 : NUMBER1 < < NUMBER2 ) ) ;
+ out . writeByte ( ValueType . VALUE_BOOLEAN . value | ( ( value ? NUMBER0 : NUMBER1 ) < < NUMBER2 ) ) ;
}
COMMENT
|
Fix an issue with how encoded booleans are written
|
<nb> public class NeomediaActivator
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
- private VideoDeviceConfigurationListener
- videoDeviceConfigurationPropertyChangeListener ;
+ SINGLE
+ SINGLE
COMMENT
COMMENT
<nb> public class NeomediaActivator
SINGLE
SINGLE
- if ( videoDeviceConfigurationPropertyChangeListener == null )
+ SINGLE
+ COMMENT
{
getNotificationService ( ) ;
<nb> public class NeomediaActivator
. getDeviceConfiguration ( )
. addPropertyChangeListener (
videoDeviceConfigurationPropertyChangeListener ) ;
- }
+ COMMENT
}
SINGLE
<nb> public class NeomediaActivator
}
}
- if ( videoDeviceConfigurationPropertyChangeListener != null )
+ SINGLE
+ COMMENT
{
mediaServiceImpl
. getDeviceConfiguration ( )
<nb> public class NeomediaActivator
. managePopupMessageListenerRegistration ( false ) ;
videoDeviceConfigurationPropertyChangeListener = null ;
}
- }
+ COMMENT
}
finally
{
|
Disables pop up notification for video devices until video hotplug is not implemented
|
<nb> public class ProtobufAnnotationSerializer extends AnnotationSerializer {
}
keysToSerialize . remove ( QuotationsAnnotation . class ) ;
}
+ if ( doc . containsKey ( MentionsAnnotation . class ) ) {
+ for ( CoreMap mention : doc . get ( MentionsAnnotation . class ) ) {
+ builder . addMentions ( toProtoMention ( mention ) ) ;
+ }
+ keysToSerialize . remove ( MentionsAnnotation . class ) ;
+ }
SINGLE
return builder ;
}
|
Fixed mentions annotation
|
<nb> public class DefaultLocalMavenRepositoryLocator implements LocalMavenRepositoryL
private static final Pattern PLACEHOLDER_PATTERN = Pattern . compile ( STRING0 ) ;
private final MavenSettingsProvider settingsProvider ;
- private File localMavenRepository ;
private final SystemPropertyAccess system ;
private String localRepoPathFromMavenSettings ;
|
remove unused field in DefaultLocalMavenRepositoryLocator
|
<nb> import NAMESPACE ;
COMMENT
COMMENT
public abstract class WebInterfaceAbstractMetricsServlet extends HttpServlet {
+ private static final long serialVersionUID = - NUMBER0 ;
protected ObjectMapper mObjectMapper ;
|
Add missing serial version uid
|
<nb> public class McastService implements MembershipService , MembershipListener {
COMMENT
COMMENT
COMMENT
+ protected static final Member [ ] EMPTY_MEMBERS = new Member [ NUMBER0 ] ;
public Member [ ] getMembers ( ) {
- if ( impl == null || impl . membership == null ) return null ;
+ if ( impl == null || impl . membership == null ) return EMPTY_MEMBERS ;
return impl . membership . getMembers ( ) ;
}
COMMENT
|
never return null
|
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class FloatMath {
|
Fix incorrect FloatMath documentation
|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
- package NAMESPACE ;
+ package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
|
Move FilteredBeanPropertyWriter under impl pkg not externally useful
|
<nb> abstract public class SimpleItemAnimator extends RecyclerView . ItemAnimator {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ItemTouchHelper extends RecyclerView . ItemDecoration
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- public void attachToRecyclerView ( RecyclerView recyclerView ) {
+ public void attachToRecyclerView ( @ nullable RecyclerView recyclerView ) {
if ( mRecyclerView == recyclerView ) {
return ; SINGLE
}
|
Clarify ItemTouchHelper and SimpleItemAnimator docs
|
<nb> public class JavaBuild {
exportClassPath . append ( jarList [ i ] ) ;
}
} else {
+ exportClassPath . append ( STRING0 ) ;
for ( int i = NUMBER0 ; i < jarList . length ; i ++ ) {
- if ( i != NUMBER0 ) exportClassPath . append ( STRING1 ) ;
- exportClassPath . append ( STRING2 + jarList [ i ] ) ;
+ exportClassPath . append ( STRING3 + jarList [ i ] ) ;
}
}
|
Added APPDIR to classpath for exported linux applications
|
<nb> public class ReloadPipelinesAction extends AbstractComponent implements Transpor
this . pipelineStore = pipelineStore ;
this . clusterService = clusterService ;
this . transportService = transportService ;
- transportService . registerRequestHandler ( ACTION_NAME , ReloadPipelinesRequest : : new , ThreadPool . Names . SAME , this ) ;
+ transportService . registerRequestHandler ( ACTION_NAME , ReloadPipelinesRequest : : new , ThreadPool . Names . MANAGEMENT , this ) ;
}
public void reloadPipelinesOnAllNodes ( Consumer < Boolean > listener ) {
<nb> public class ReloadPipelinesAction extends AbstractComponent implements Transpor
@ override
public String executor ( ) {
- return ThreadPool . Names . MANAGEMENT ;
+ return ThreadPool . Names . SAME ;
}
} ) ;
}
|
fix thread pools use management the do the operation and response handeling
|
<nb> public class UDPTimeOutThread extends Thread {
try {
RPC t = PENDING . take ( ) ;
SINGLE
- if ( H2O . CLOUD . contains ( t . _target ) )
- t . call ( ) ;
- else
- t . cancel ( true ) ;
+ if ( H2O . CLOUD . contains ( t . _target ) ) {
+ if ( ! t . isDone ( ) ) t . call ( ) ;
+ } else t . cancel ( true ) ;
} catch ( InterruptedException e ) {
SINGLE
SINGLE
|
Do not resend already done tasks
|
<nb> public class XMPPServer {
COMMENT
COMMENT
COMMENT
- private Map < Class , Module > modules = new HashMap < Class , Module > ( ) ;
+ private Map < Class , Module > modules = new LinkedHashMap < Class , Module > ( ) ;
COMMENT
COMMENT
|
Use linked hash map so that iteration is in order
|
<nb> class DecodeJob < R > implements DataFetcherGenerator . FetcherReadyCallback ,
try {
runWrapped ( ) ;
} catch ( RuntimeException e ) {
- if ( Log . isLoggable ( TAG , Log . ERROR ) ) {
+ if ( ! isCancelled && Log . isLoggable ( TAG , Log . ERROR ) ) {
Log . e ( TAG , STRING0 , e ) ;
}
callback . onLoadFailed ( ) ;
<nb> class GifFrameLoader {
void clear ( ) {
callbacks . clear ( ) ;
recycleFirstFrame ( ) ;
- gifDecoder . clear ( ) ;
stop ( ) ;
if ( current != null ) {
requestManager . clear ( current ) ;
<nb> class GifFrameLoader {
requestManager . clear ( next ) ;
next = null ;
}
+ gifDecoder . clear ( ) ;
isCleared = true ;
}
|
Avoid logging exceptions related to cancellation
|
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
-
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
|
Removed HTML markup in Javadoc
|
<nb> import static NAMESPACE ;
COMMENT
public class DependencyParserITest extends TestCase {
- private static final double EnglishSdLas = FLOAT0 ;
+ private static final double EnglishSdLas = FLOAT1 ;
COMMENT
COMMENT
|
Update expected depparser English SD accuracy
|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class XsltComponent extends ResourceBasedComponent {
SINGLE
xslt . setUriResolver ( resolver ) ;
+ ResultHandlerFactory resultHandlerFactory = resolveAndRemoveReferenceParameter ( parameters , STRING0 , ResultHandlerFactory . class ) ;
+ if ( resultHandlerFactory != null ) {
+ xslt . setResultHandlerFactory ( resultHandlerFactory ) ;
+ }
+
+ Boolean failOnNullBody = getAndRemoveParameter ( parameters , STRING1 , Boolean . class ) ;
+ if ( failOnNullBody != null ) {
+ xslt . setFailOnNullBody ( failOnNullBody ) ;
+ }
+
xslt . setTransformerInputStream ( resource . getInputStream ( ) ) ;
configureXslt ( xslt , uri , remaining , parameters ) ;
return new ProcessorEndpoint ( uri , this , xslt ) ;
|
Added more options to xslt component
|
<nb> public class AnalyticsTrackerNosara extends Tracker {
break ;
case OPENED_COMMENTS :
eventName = STRING0 ;
- predefinedEventProperties . put ( STRING1 , STRING2 ) ;
+ predefinedEventProperties . put ( STRING1 , STRING3 ) ;
break ;
case OPENED_VIEW_SITE :
eventName = STRING0 ;
|
Fix a typo
|
<nb>
package NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
<nb> class NettyClientHandler extends Http2ConnectionHandler {
}
@ override
+ public void exceptionCaught ( ChannelHandlerContext ctx , Throwable cause ) throws Exception {
+ if ( getEmbeddedHttp2Exception ( cause ) == null ) {
+ SINGLE
+ SINGLE
+ goAwayStatus ( Status . fromThrowable ( cause ) ) ;
+ cause = new Http2Exception ( Http2Error . INTERNAL_ERROR , null , cause ) ;
+ }
+ super . exceptionCaught ( ctx , cause ) ;
+ }
+
+ @ override
protected void onConnectionError ( ChannelHandlerContext ctx , Throwable cause ,
Http2Exception http2Ex ) {
logger . log ( Level . FINE , STRING0 , cause ) ;
|
NettyClientHandler should handle all exceptionCaught s
|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
|
Fixed break in build
|
<nb> public class RemoveAllOperation extends MultiMapBackupAwareOperation {
}
public void onWaitExpire ( ) {
- getResponseHandler ( ) . sendResponse ( new MultiMapResponse ( null , null ) ) ;
+ MultiMapContainer container = getOrCreateContainer ( ) ;
+ getResponseHandler ( ) . sendResponse ( new MultiMapResponse ( null , getValueCollectionType ( container ) ) ) ;
}
public int getId ( ) {
|
pass correct value collection type to constructor
|
<nb> public class DefaultInvoiceGenerator implements InvoiceGenerator {
SINGLE
Objects . firstNonNull ( repairedInvoiceItem . getPlanName ( ) , STRING0 ) . equals ( Objects . firstNonNull ( invoiceItem . getPlanName ( ) , STRING0 ) ) &&
Objects . firstNonNull ( repairedInvoiceItem . getPhaseName ( ) , STRING0 ) . equals ( Objects . firstNonNull ( invoiceItem . getPhaseName ( ) , STRING0 ) ) &&
- Objects . firstNonNull ( repairedInvoiceItem . getRate ( ) , STRING0 ) . equals ( Objects . firstNonNull ( invoiceItem . getRate ( ) , STRING0 ) ) ;
+ Objects . firstNonNull ( repairedInvoiceItem . getRate ( ) , BigDecimal . ZERO ) . compareTo ( Objects . firstNonNull ( invoiceItem . getRate ( ) , BigDecimal . ZERO ) ) == NUMBER0 ;
}
|
fix bug in DefaultInvoiceGenerator
|
<nb> public class ImapStore extends Store {
private static final long serialVersionUID = NUMBER0 ;
String mAlertText ;
- public ImapException ( String message , String alertText , Throwable throwable ) {
- super ( message , throwable ) ;
- this . mAlertText = alertText ;
- }
-
public ImapException ( String message , String alertText ) {
- super ( message ) ;
+ super ( message , true ) ;
this . mAlertText = alertText ;
}
|
Change ImapException to always be a permanent error
|
<nb> public class Tech implements Comparable < Tech > {
SINGLE
public static final Tech Db = new Tech ( STRING0 ) ;
+ public static final Tech HypersonicSQL = new Tech ( Db , STRING1 ) ;
public static final Tech Oracle = new Tech ( Db , STRING2 ) ;
+ public static final Tech PostgreSQL = new Tech ( Db , STRING3 ) ;
public static final Tech MsSQL = new Tech ( Db , STRING4 ) ;
public static final Tech MySQL = new Tech ( Db , STRING5 ) ;
<nb> public class Tech implements Comparable < Tech > {
public static final Tech Tomcat = new Tech ( WS , STRING6 ) ;
public static final Tech [ ] builtInTech = {
- Db , Oracle , MsSQL , MySQL ,
+ Db , HypersonicSQL , Oracle , PostgreSQL , MsSQL , MySQL ,
OS , Linux , MacOS , Windows ,
WS , Apache , IIS , Tomcat } ;
|
Added HypersonicSQL and PostgreSQL techs
|
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class ExternalClasspathClassLoader extends URLClassLoader {
+ static {
+ registerAsParallelCapable ( ) ;
+ }
+
private ExternalClasspathClassLoader ( URL [ ] urls ) {
super ( urls , Thread . currentThread ( ) . getContextClassLoader ( ) ) ;
}
|
enable parallel classloading in teamcity tests
|
<nb> public class OZIPCompressionUtil {
zos . closeEntry ( ) ;
}
- if ( iOutput != null )
- iOutput . onMessage ( STRING0 + OIOUtils . getTimeAsString ( System . currentTimeMillis ( ) - begin ) + STRING1 ) ;
+ if ( iOutput != null ) {
+ final long ratio = NUMBER0 - ( ze . getCompressedSize ( ) * NUMBER0 / ze . getSize ( ) ) ;
+
+ iOutput . onMessage ( STRING2 + ze . getSize ( ) + STRING3 + ze . getCompressedSize ( ) + STRING4 + ratio
+ + STRING5 + OIOUtils . getTimeAsString ( System . currentTimeMillis ( ) - begin ) + STRING6 ) ;
+ }
total ++ ;
|
added more information on output
|
<nb> public class AvroVersionedGenericSerializer implements Serializer < Object > {
datumWriter = new GenericDatumWriter < Object > ( typeDef ) ;
datumWriter . write ( object , encoder ) ;
encoder . flush ( ) ;
- } catch ( ArrayIndexOutOfBoundsException aIOBE ) {
+ } catch ( SerializationException sE ) {
+ throw sE ;
+ } catch ( IOException e ) {
+ throw new SerializationException ( e ) ;
+ } catch ( Exception aIOBE ) {
SINGLE
SINGLE
<nb> public class AvroVersionedGenericSerializer implements Serializer < Object > {
Integer writerVersion = getSchemaVersion ( writer ) ;
return toBytes ( object , writer , writerVersion ) ;
- } catch ( IOException e ) {
- throw new SerializationException ( e ) ;
- } catch ( SerializationException sE ) {
- throw sE ;
} finally {
SerializationUtils . close ( output ) ;
}
|
fixed try catch in versioned avro serializer
|
<nb> public class NumberToWord {
public String toWord ( int number ) {
StringBuffer buffer = new StringBuffer ( ) ;
if ( number == NUMBER0 ) {
- return STRING0 ;
+ return toString ( number ) ;
}
if ( number < NUMBER0 ) {
buffer . append ( STRING1 ) ;
|
Updated the program
|
<nb> public final class RecommenderJob extends AbstractJob {
STRING0 ) ;
Option numReccomendationsOpt = AbstractJob . buildOption ( STRING1 , STRING2 ,
STRING3 , STRING4 ) ;
- Option usersFileOpt = AbstractJob . buildOption ( STRING5 , STRING2 , STRING3 ,
+ Option usersFileOpt = AbstractJob . buildOption ( STRING5 , STRING6 , STRING3 ,
null ) ;
Map < String , String > parsedArgs = AbstractJob . parseArguments ( args , recommendClassOpt ,
|
Oops usersFile should use u as short form
|
<nb> public class GoBoolExpressionsInspectionTest extends GoParametrizedTestBase {
{ STRING0 , STRING1 , STRING2 } ,
{ STRING3 , STRING4 , STRING4 } ,
- { STRING3 , STRING5 , STRING6 } ,
- { STRING3 , STRING7 , STRING8 } ,
{ STRING3 , STRING9 , STRING9 } ,
- { STRING3 , STRING10 , STRING11 } ,
- { STRING12 , STRING13 , STRING14 } ,
- { STRING12 , STRING15 , STRING16 } ,
- { STRING12 , STRING17 , STRING11 } ,
- { STRING12 , STRING18 , STRING8 } ,
} ) ;
}
|
Remove failed tests
|
<nb> public class DefaultMetaClassInfo {
if ( mch ) {
disabledStandardMC = true ;
origIntArrayWCH = false ;
- origIntRes = false ;
+ origByteRes = origChar = origBoolean = false ;
+ origShortRes = origIntRes = origLong = false ;
+ origFloat = origDouble = false ;
} else {
disabledStandardMC = categoryUsed ;
- origIntRes = origInt ;
+ origByteRes = origByte ; origCharRes = origChar ;
+ origBooleanRes = origBoolean ; origShortRes = origShort ;
+ origIntRes = origInt ; origLongRes = origLong ;
+ origFloatRes = origFloat ; origDoubleRes = origDouble ;
origIntArrayWCH = origIntArray ;
}
-
}
public static void setPrimitiveMeta ( Class c , boolean orig ) {
|
implement changing of flags
|
<nb> public class ApkMojo extends AbstractAndroidMojo {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
private File [ ] sourceDirectories ;
|
Fixed problem with example builds due to wrong default value
|
<nb> public abstract class TripTimes {
public int getArrivalDelay ( int hop ) {
return getArrivalTime ( hop ) - getScheduledTripTimes ( ) . getArrivalTime ( hop ) ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public boolean isScheduled ( ) {
+ return this . getScheduledTripTimes ( ) == this ;
+ }
COMMENT
public String dumpTimes ( ) {
|
add method to triptimes interface to identify scheduled vs modified tt
|
<nb> public class RouteDataObject {
int k = kt [ i ] ;
if ( region . routeEncodingRules . size ( ) > k ) {
if ( destinationTag . equals ( region . routeEncodingRules . get ( k ) . getTag ( ) ) ) {
- return names . get ( k ) ;
+ return ( transliterate ) ? Junidecode . unidecode ( names . get ( k ) ) : names . get ( k ) ;
}
if ( destinationTagDefault . equals ( region . routeEncodingRules . get ( k ) . getTag ( ) ) ) {
destinationDefault = names . get ( k ) ;
|
fix missing transliterate
|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class LightPlatformTestCase extends UsefulTestCase implements Da
SINGLE
SINGLE
ComplementaryFontsRegistry . resetCaches ( ) ;
-
- System . out . println ( STRING0 + EditorSettingsExternalizable . getInstance ( ) . isUseSoftWraps ( ) ) ; SINGLE
}
} ) ;
}
|
remove temporary test code
|
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public interface Project extends Comparable < Project > {
AntBuilder ant ( Closure configureClosure ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
|
Fixed checkstyle issue
|
<nb> public class TestAnalyticsDao
}
}
- @ afterclass ( alwaysRun = true )
+ @ afterclass ( groups = STRING0 )
public void stopMysql ( )
{
helper . stopMysql ( ) ;
}
- @ beforemethod
+ @ beforemethod ( groups = STRING0 )
public void cleanup ( ) throws Exception
{
helper . cleanupTable ( STRING1 ) ;
|
add missing group in TestAnalyticsDao annotations
|
<nb> import NAMESPACE ;
public class TestEndpointTest extends ContextTestSupport {
public void testMocksAreValid ( ) throws Exception {
- SINGLE
- Thread . sleep ( NUMBER0 ) ;
+ SINGLE
template . sendBody ( STRING0 , STRING1 ) ;
- template . sendBody ( STRING0 , STRING2 ) ;
assertMockEndpointsSatisfied ( ) ;
}
<nb> public class TestEndpointTest extends ContextTestSupport {
return new RouteBuilder ( ) {
@ override
public void configure ( ) throws Exception {
- SINGLE
+ SINGLE
template . sendBody ( STRING0 , STRING1 ) ;
- template . sendBody ( STRING0 , STRING2 ) ;
from ( STRING0 )
. to ( STRING3 ) ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
|
Fixed test on CI server
|
<nb> public abstract class AsyncTask < Params , Progress , Result > {
private static final int CORE_POOL_SIZE = NUMBER0 ;
private static final int MAXIMUM_POOL_SIZE = NUMBER1 ;
- private static final int KEEP_ALIVE = NUMBER2 ;
+ private static final int KEEP_ALIVE = NUMBER3 ;
private static final BlockingQueue < Runnable > sWorkQueue =
new LinkedBlockingQueue < Runnable > ( NUMBER2 ) ;
|
Change the keep alive time for excess idle threads
|
<nb> public abstract class MultiplePsiFilesPerDocumentFileViewProvider extends Single
getManager ( ) . findDirectory ( parent ) ;
}
}
+ if ( target != getBaseLanguage ( ) && ! getLanguages ( ) . contains ( target ) ) {
+ return null ;
+ }
file = createFile ( target ) ;
if ( file == null ) return null ;
if ( myOriginal != null ) {
|
don t create PSI roots for languages not declared by view provider
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.