diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ SINGLE
final class Closer implements Closeable {
COMMENT | Put that coffee down |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
- import NAMESPACE ;
- import NAMESPACE ;
public enum StreamRuleType {
EXACT ( NUMBER0 , STRING0 , STRING0 ) ,
<nb> public enum StreamRuleType {
return value ;
}
- public static Str... | Remove unnecessary imports annotation |
<nb> public class XTSSubsystemTestCase extends AbstractSubsystemBaseTest {
protected String getSubsystemXml ( ) throws IOException {
return readResource ( STRING0 ) ;
}
+
+ @ override
+ protected String getSubsystemXsdPath ( ) throws Exception {
+ return STRING1 ;
+ }
+
+ @ override
+ protected St... | add XML validation for xts subsystem |
<nb> public class TraktTools {
SINGLE
if ( ! syncSeasons . isEmpty ( ) ) {
+ Timber . d ( STRING0 + syncSeasons . size ( ) + STRING1 ) ;
SyncItems syncItems = new SyncItems ( ) . shows (
new SyncShow ( ) . id ( ShowIds . tvdb ( showTvdbId ) ) . seasons ( syncSeasons ) ) ;
try { | Add log message for trakt diff flag upload |
<nb> public class PipeTransportPower extends PipeTransport {
if ( totalPowerConsumed > NUMBER0 ) {
for ( int in = NUMBER0 ; in < NUMBER1 ; ++ in ) {
- int powerConsumed = internalPower [ in ] * totalPowerConsumed / totalPowerContained ;
+ int powerConsumed = ( int ) ( ( double ) internalPower [ in ] * ( doubl... | fixed potential integer overflow |
<nb> public class PackageInstallerService extends IPackageInstaller . Stub {
mContext . enforceCallingOrSelfPermission ( android . Manifest . permission . INSTALL_PACKAGES , TAG ) ;
synchronized ( mSessions ) {
- mSessions . get ( sessionId ) . setPermissionsResult ( accepted ) ;
+ PackageInstallerSession ses... | Fix a NPE in PackageInstallerService |
<nb> public abstract class Language {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public static Language [ ] getRealLanguages ( ) {
List < Language > result = new ArrayList < > ( ) ; | add since annotation |
<nb> public abstract class StateTrackingTestResultProcessor implements TestResultProc
protected void completed ( TestState state ) {
}
-
- protected TestState getTestStateFor ( Object testId ) {
- return executing . get ( testId ) ;
- }
} | Removed dead code |
<nb> public class StandardSession implements HttpSession , Session , Serializable {
if ( Constants . excludedAttributeNames . contains ( name ) ) {
return true ;
}
+
+ SINGLE
+ Manager manager = getManager ( ) ;
+ if ( manager == null ) {
+ SINGLE
+ SINGLE
+ return false ;
+ }
+
SINGLE
- ret... | Fix potential NPE when clustering |
<nb> public class Parser
catch ( Throwable x )
{
LOG . debug ( x ) ;
- notifyConnectionFailure ( ErrorCode . PROTOCOL_ERROR , STRING0 ) ;
+ notifyConnectionFailure ( ErrorCode . PROTOCOL_ERROR , STRING1 + x ) ;
return false ;
}
}
<nb> public class Parser
@ override
public void onConnectionFailure ... | fixed refactor uri issue |
<nb> public class XFramesView extends XDebugViewBase {
private StackFramesListBuilder ( final XExecutionStack executionStack ) {
myExecutionStack = executionStack ;
myStackFrames = new ArrayList < XStackFrame > ( ) ;
- myStackFrames . add ( executionStack . getTopFrame ( ) ) ;
+ XStackFrame topFrame = executi... | fixed pause action |
<nb> public class NettyRatpackService extends AbstractIdleService implements RatpackS
}
}
- @ suppresswarnings ( STRING0 )
@ override
protected void shutDown ( ) throws Exception {
- bootstrap . shutdown ( ) ;
- SINGLE
- SINGLE
- SINGLE
+ channel . close ( ) . sync ( ) ;
+ bossGroup . shutdownGr... | Fix the shutdown process |
<nb> public class ExceptionUtils {
COMMENT
COMMENT
COMMENT
- public static RuntimeException rethrow ( Exception e ) {
+ public static RuntimeException rethrow ( Throwable e ) {
if ( e instanceof RuntimeException ) {
throw ( RuntimeException ) e ;
}
+ else if ( e instanceof Error ) {
+ throw ( Error ... | ExceptionUtils rethrow accepts Throwable |
<nb> public class Bootstrap extends HttpServlet {
bc . setHost ( STRING0 ) ;
bc . setBasePath ( STRING1 ) ;
+ bc . setVersion ( STRING2 ) ;
bc . setTitle ( STRING3 ) ;
bc . setDescription ( STRING4 ) ;
bc . setTermsOfServiceUrl ( STRING5 ) ; | added api version |
<nb> public class EditorDelegate implements EditorEx {
}
public int logicalPositionToOffset ( final LogicalPosition pos ) {
- LogicalPosition windowPosition = myDelegate . offsetToLogicalPosition ( myDocument . getTextRange ( ) . getStartOffset ( ) ) ;
- LogicalPosition newPosition = new LogicalPosition ( pos... | duplicate line in injected |
<nb> public class TitleFlowIndicator extends TextView implements FlowIndicator {
footerLineHeight = a . getDimension ( R . styleable . TitleFlowIndicator_footerLineHeight , FOOTER_LINE_HEIGHT ) ;
footerTriangleHeight = a . getDimension ( R . styleable . TitleFlowIndicator_footerTriangleHeight , FOOTER_TRIANGLE_HEIG... | Fixed reading of selectedBold attribute |
<nb> public class DarculaSpinnerUI extends BasicSpinnerUI {
return b ;
}
- static class LayoutManagerDelegate implements LayoutManager {
+ protected static class LayoutManagerDelegate implements LayoutManager {
protected final LayoutManager myDelegate ;
- LayoutManagerDelegate ( LayoutManager delegate )... | make LayoutManagerDelegate class public |
<nb> public class IDPoolTest {
}
}
} ) ;
- threads [ i ] . run ( ) ;
+ threads [ i ] . start ( ) ;
}
for ( int i = NUMBER0 ; i < numThreads ; i ++ ) threads [ i ] . join ( ) ;
for ( int i = NUMBER0 ; i < idPools . length ; i ++ ) idPools [ i ] . close ( ) ; | Make IDPoolTest parallel |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class TemplatesService {
public abstract void setTemplateFileTypes ( List <... | install related template packages when selecting template language |
<nb> public final class Key extends Iced implements Comparable {
int chk = NUMBER0 ; SINGLE
if ( kb . length >= NUMBER1 && kb [ NUMBER0 ] == ARRAYLET_CHUNK && kb [ NUMBER2 ] == NUMBER0 ) {
long off = UDP . get8 ( kb , NUMBER3 ) ;
- if ( ( off > > NUMBER4 ) >= NUMBER5 ) { SINGLE
- i += NUMBER3 + NUMBER6 ; SING... | Fix Key distro for small files |
<nb> public class EstimateLinearAllocStep implements Step , Supplier < Integer > {
public int getEstimate ( FileLike fileLike ) throws IOException ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
private static LinearAllocEstimator DEFAULT_LINEAR_ALLOC_ESTIMATOR = new LinearAllocEstim... | Use a cheaper estimator for EstimateLinearAllocStep |
<nb> public class DashAudioVideoNotesFragment extends DashBaseFragment {
public void setupNotes ( ) {
View mainView = getView ( ) ;
+ if ( mainView == null ) {
+ return ;
+ }
+
if ( plugin == null ) {
( mainView . findViewById ( R . id . main_notes ) ) . setVisibility ( View . GONE ) ;
return ; | Fixed NPE in DashAudioVideo |
<nb> public abstract class SourceFile {
}
}
+ @ override
+ public String toString ( ) {
+ return fileName ;
+ }
+
public static SourceFile fromFile ( String fileName , Charset c ) {
return fromFile ( new File ( fileName ) , c ) ;
} | Add a toString method for SourceFile to help with debugging |
<nb> public final class Aeron
public Builder ( )
{
errorHandler = new DummyErrorHandler ( ) ;
- SINGLE
adminBuffers = new MappingAdminBufferStrategy ( CommonConfiguration . ADMIN_DIR ) ;
producerControl = DefaultProducerControlStrategy : : new ;
} | remove old todo |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed typo and added link to the RuleChain class |
<nb> public class LexerTest
Token . LOGICAL_OR ) ;
}
- public void testPipe_UnexpectedCharacter ( )
+ public void testPipe ( )
throws Exception
{
- newLexer ( STRING0 ) ;
-
- char [ ] expected = assertUnexpectedCharacter ( STRING1 ,
- NUMBER0 ,
- NUMBER1 ) ;
-
- assertLength ( NUMBER0 ,
- ... | Fixing test of and lexing |
<nb> public class Roster {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Updates the comment of createEntry |
<nb> public abstract class ConfigurationNode {
return o ;
}
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ suppresswarnings ( STRING0 )
+ public List < String > getKeys ( String path ) {
+ Object o = getProperty ( path ) ;
+ if ( o == null ) {
+ return null... | Added Configuration getKeys |
<nb> public class ParserConfig {
try {
return ASMDeserializerFactory . getInstance ( ) . createJavaBeanDeserializer ( this , clazz , type ) ;
+ } catch ( NoSuchMethodException error ) {
+ return new JavaBeanDeserializer ( this , clazz , type ) ;
} catch ( ASMException asmError ) {
return new JavaBeanDeser... | bug fixed asm |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class HttpGetTest extends ContextTestSupport {
- protected String expectedText = STRING0 ;
+ protected String expectedText = STRING1 ;
public void testHttpGet ( ) throws Exception {
MockEndpoint mockEndpoint = resolveMandatoryEndpoint ( STRING2 , MockEndpoi... | Fixed the unit test error of HttpGetTest |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
public class ActionMenuItem extends JMenuItem {
- private static final Icon ourCheckedIcon = n... | use the check icon |
<nb> public class RecoverySourceHandler {
}
}
- logger . trace ( STRING0 , translogView . totalOperations ( ) ) ;
+ logger . trace ( STRING1 , shard . shardId ( ) , translogView . totalOperations ( ) ) ;
try {
phase2 ( translogView . snapshot ( ) ) ;
} catch ( Throwable e ) { | Log shard after translog snapshot during recovery |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MockApplicationContext extends GroovyObjectSupport implements Appli
for ( Iterator i = resources . iterator ( ) ; i . hasNext... | DescriptiveResource caused problems because the getFilename method was not supported |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public interface ChangeListManagerGate {
void editComment ( final String name , final String comment ) ;
void editName ( final String oldName , final String newName ) ;
- SINGLE
... | deprecate unused ChangeListManagerGate moveChanges |
<nb> public class StreamTest extends AbstractSeqTest {
assertThat ( stream . toString ( ) ) . isEqualTo ( STRING0 ) ;
}
+ @ test
+ public void shouldGroupByAndMapProperly ( ) {
+ assertThat ( Stream . of ( NUMBER0 )
+ . groupBy ( n - > n )
+ . map ( longStreamEntry - > longStreamEntry . key )
+ . toLi... | Add a failing test for Stream groupBy map |
<nb> public class GeoIntentActivity extends OsmandListActivity {
{
Thread . sleep ( NUMBER0 ) ;
}
- String scheme = intent . getScheme ( ) ;
- Uri data = intent . getData ( ) ;
return extract ( intent . getScheme ( ) , intent . getData ( ) ) . execute ( ) ;
}
catch ( Exception e ) | removed unused files |
<nb> public class StanfordCoreNLPSlowITest extends TestCase {
props . setProperty ( STRING0 , dir . getPath ( ) ) ;
props . setProperty ( STRING1 ,
STRING2 ) ;
- props . setProperty ( STRING3 , STRING4 ) ;
+ props . setProperty ( STRING5 , STRING6 ) ;
return new StanfordCoreNLP ( props ) ;
} | add serializer property to StanfordCoreNLPSlowITest |
<nb> class EmbeddedChannel extends AbstractChannel {
int byteBufLen = byteBuf . readableBytes ( ) ;
if ( byteBufLen > NUMBER0 ) {
productQueue . add ( byteBuf . readBytes ( byteBufLen ) ) ;
- writeCounter += byteBufLen ;
byteBuf . clear ( ) ;
}
Queue < Object > msgBuf = buf . messageBuffer ( ) ;
if ( ! ... | Fix compilation error caused by recent changes in AbstractChannel |
<nb> public abstract class ClientAbstractIOSelector extends Thread implements IOSelec
private static final int SHUTDOWN_TIMEOUT_SECONDS = NUMBER0 ;
private static final int SELECT_WAIT_TIME_MILLIS = NUMBER1 ;
+ public static final int SELECT_FAILURE_PAUSE_MILLIS = NUMBER2 ;
protected final ILogger logger ; ... | Removed a magic number |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class CamelConduitTest extends CamelTestSupport {
+ public class CamelConduitTest extends CamelTransportTestSupport {
protected RouteBuilder createRouteBuilder ( ) {
return new RouteBuilder ( ) {
<nb> import NAMESPACE ;
import NA... | Renamed the CamelTestSupport to CamelTransportTestSupport |
<nb> public final class JsDescriptorUtils {
declarationDescriptor = ( ( ThisReceiver ) receiverParameter ) . getDeclarationDescriptor ( ) ;
}
else {
- throw new UnsupportedOperationException ( STRING0 + receiverParameter ) ;
+ throw new UnsupportedOperationException ( STRING0 + receiverParameter . getClass ( ... | improve exception message |
<nb> public class ReflectiveInterceptor {
COMMENT
private static Field asSetableField ( Field field , Object target , Class < ? > valueType , Object value ,
boolean makeAccessibleCopy )
- throws IllegalAccessException {
+ throws IllegalAccessException {
SINGLE
SINGLE
<nb> public class ReflectiveInterc... | remove printStackTrace from catch block |
<nb> public abstract class ConnectionConfiguration {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class ConnectionConfiguration {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- enabled ,
+ ifpossible ,
C... | Rename SecurityMode enabled to ifpossible |
<nb> public final class OperationMerge {
@ override
public void unsubscribe ( ) {
- System . out . println ( STRING0 ) ;
unsubscribed = true ;
} | Removing println from OperationMerge |
<nb> public class Mailing {
}
public boolean hasRecipients ( ) {
- return toAddresses . size ( ) > NUMBER0 ;
+ return ( toAddresses . size ( ) + ccAddresses . size ( ) ) > NUMBER0 ;
}
public void setRecipients ( String . . . addrs ) { | Fix ticket mail dropping bug when author does not have an address |
<nb> public final class ELResolverImpl extends ELResolver {
}
return elResolver . getCommonPropertyType ( context , base ) ;
}
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- public static ELResolver getDefaultResolver ( ) {
- return ELContextImpl . getDefaultResolver ( ) ;
- }
} | Remove deprecated code |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- public class OSharedResourceIterator < T > implements Iterator < T > {
+ public class OSharedResourceIterator < T > implements Iterator < T > , OResettable {
protected final O... | Fixed multiple iteration against linked properties |
<nb> public class SubItemUtil {
COMMENT
COMMENT
COMMENT
- public static int countItems ( final ItemAdapter adapter , IPredicate predicate ) {
+ public static int countItems ( final IItemAdapter adapter , IPredicate predicate ) {
return countItems ( adapter . getAdapterItems ( ) , true , false , predicate ) ... | use the interface of the IItemAdapter instead of the implementation |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class ViewFetcher {
public ArrayList < ListView > getCurrentListViews ( ) {
ArrayList < ListView > listViews = new ArrayList < ListView > ( ) ;
+ ArrayList < View > ... | Fixed a bug in getCurrentListViews |
<nb> public class GoBuildingRunner extends AsyncGenericProgramRunner {
final AsyncPromise < RunProfileStarter > promise = new AsyncPromise < RunProfileStarter > ( ) ;
FileDocumentManager . getInstance ( ) . saveAllDocuments ( ) ;
- ( ( GoApplicationRunningState ) state ) . createCommonExecutor ( ) . withParamet... | Add main file while building |
<nb> public class From implements Sqlable {
sql += STRING0 + mOffset + STRING1 ;
}
- return sql ;
+ return sql . trim ( ) ;
}
public < T extends Model > List < T > execute ( ) { | Trim sql statements |
<nb> public class ReadSentimentDataset {
TregexPattern . compile ( STRING0 ) ,
TregexPattern . compile ( STRING1 ) ,
TregexPattern . compile ( STRING2 ) ,
- TregexPattern . compile ( STRING3 ) ,
+ TregexPattern . compile ( STRING4 ) ,
TregexPattern . compile ( STRING5 ) ,
TregexPattern . compile ( STRING6... | Fix a particular sentiment tree |
<nb> public class JsonResponseHandler extends AbstractContentResponseHandler {
}
@ override
- protected MediaType getContentType ( HttpRequest request ) {
+ protected MediaType getContentType ( final HttpRequest request ) {
return MediaType . create ( STRING0 , STRING1 ) . withCharset ( content . getCharset... | added missing final to json response handler |
<nb> public class GoPsiImplUtil {
return type ;
}
+ COMMENT
+ COMMENT
+ COMMENT
@ nullable
private static GoType processRangeClause ( @ notnull GoVarDefinition o , @ notnull GoRangeClause parent , @ nullable ResolveState context ) {
GoExpression rangeExpression = parent . getRangeExpression ( ) ; | Add link to doc |
<nb> public class Cloner {
}
SINGLE
- CloneFunction < T > f = getCloneFunction ( type ) ; SINGLE
+ CloneFunction < T > f = getCloneFunction ( type ) ;
if ( f != null ) {
T result = f . cloneObject ( this , object ) ; | Removed a bit of commented out dead code |
<nb> public class ClientEngineImpl implements ClientEngine , CoreService ,
return new ClientServiceProxy ( this ) ;
}
- public Collection < Client > getEndpoints ( ) {
- return new HashSet < Client > ( endpoints . values ( ) ) ;
- }
-
public Collection < Client > getClients ( ) {
final HashSet < Clien... | Removed unused getEndpoints method |
<nb> public final class Iterables {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class Iterables {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- ... | Fix incorrect reference to in javadoc |
<nb> public class CreateMethodFromUsageFix extends CreateFromUsageFixBase {
JetTypeReference returnTypeRef = func . getReturnTypeRef ( ) ;
if ( returnTypeRef != null ) {
+ assert returnTypeExpression != null ;
JetType [ ] returnTypeOptions = returnTypeExpression . getOptions ( ) ;
String [ ] returnTypeOptio... | Fixed a warning |
<nb> public class DeltaManager extends ClusterManagerBase {
COMMENT
protected void deserializeSessions ( byte [ ] data ) throws ClassNotFoundException , IOException {
- SINGLE
- SINGLE
SINGLE
- ClassLoader originalLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ;
ObjectInputStream ois = ... | Remove unused code |
<nb> public final class HttpHeaders {
public static final String EXPECT = STRING0 ;
COMMENT
public static final String FROM = STRING1 ;
+
COMMENT
COMMENT
COMMENT
<nb> public final class HttpHeaders {
public static final String RANGE = STRING2 ;
COMMENT
public static final String REFERER = STRING3 ... | Add Service Worker |
<nb> import NAMESPACE ;
COMMENT
public interface FileHandlerSpec {
- default FileHandlerSpec files ( String path ) {
- return path ( path ) . dir ( path ) ;
- }
-
COMMENT
COMMENT
COMMENT
<nb> public interface FileHandlerSpec {
FileHandlerSpec dir ( String dir ) ;
COMMENT
+ COMMENT
+ COMM... | Add Javadoc for new FileHandlerSpec files convenience method |
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMEN... | Add Content URI ref doc |
<nb> public class GrizzlyAsyncHttpProvider implements AsyncHttpProvider {
requestPacket . setHeader ( Header . ProxyConnection , STRING0 ) ;
}
- if ( proxy . getPrincipal ( ) != null ) {
+ if ( proxy . getPrincipal ( ) != null && proxy . isBasic ( ) ) {
requestPacket . setHeader ( Header . ProxyAuthorizatio... | sending basic only if proxy is of basic auth |
<nb> public class SeekBarPreference extends DialogPreference implements
public void onProgressChanged ( final SeekBar seek , final int value ,
final boolean fromTouch ) {
final String t = String . valueOf ( value ) ;
- valueTextView . setText ( valueText == null ? t : t . concat ( valueText ) ) ;
+ valueTextV... | Replace concat call with |
<nb> public final class TieredBlockStoreTests {
mBlockStore . commitBlock ( USER_ID1 , TEMP_BLOCK_ID ) ;
mBlockStore . abortBlock ( USER_ID1 , TEMP_BLOCK_ID ) ;
}
+
+ @ test
+ public void removeTempBlockTest ( ) throws Exception {
+ mThrown . expect ( InvalidStateException . class ) ;
+ mThrown . expect... | Add test case for removeBlock |
<nb> public class Ctx {
SINGLE
SINGLE
- private volatile boolean starting ;
+ private boolean starting ;
SINGLE
private boolean terminating ; | Remove volatile memory barrier from starting |
<nb> public class TomcatServer {
tomcat . stop ( ) ;
tomcat . destroy ( ) ;
+ tomcat . getServer ( ) . await ( ) ;
isRunning = false ;
}
<nb> public class TomcatServer {
tomcat . stop ( ) ;
tomcat . destroy ( ) ;
+ tomcat . getServer ( ) . await ( ) ;
isRunning = false ;
} | Tomcat stop process fixed |
<nb> import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
COMMENT
COMMENT | Moved GZIPHelper to camel core |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+
COMMENT
COMMENT | Fixed the cs error of camel facebook |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class CULActivator implements BundleActivator {
private static final Logger logger = LoggerFactory . getLogger ( CULActivator . class ) ; | Added missing Javadoc comment to CUL transport |
<nb> public class AtmosphereRequest extends HttpServletRequestWrapper {
@ override
public String getRequestURI ( ) {
- return b . requestURI != null ? b . requestURI : ( isNotNoOps ( ) ? b . request . getRequestURI ( ) : null ) ;
+ return b . requestURI != null ? b . requestURI : ( isNotNoOps ( ) ? b . reques... | Never return null |
<nb> public class ClientOptions
@ option ( name = STRING0 , title = STRING1 , description = STRING2 )
public String krb5Principal ;
+ @ option ( name = STRING3 , title = STRING4 , description = STRING5 )
+ public boolean krb5DisableRemoteServiceHostnameCanonicalization ;
+
@ option ( name = STRING6 , titl... | Allow reverse dns lookup disabling for kerberized CLI |
<nb> import NAMESPACE ;
public class SyncStorageEngine extends Handler {
private static final String TAG = STRING0 ;
- private static final boolean DEBUG = true ;
+ private static final boolean DEBUG = false ;
private static final String TAG_FILE = STRING1 ;
private static final String XML_ATTR_NEXT_AUT... | Turn off debugging in SyncManager |
<nb> public class Body {
jniDestroyFixture ( addr , fixture . addr ) ;
this . world . fixtures . remove ( fixture . addr ) ;
this . fixtures . remove ( fixture ) ;
+ this . world . freeFixtures . free ( fixture ) ;
}
private native void jniDestroyFixture ( long addr , long fixtureAddr ) ; | fixed Body destroyFixture puts fixture back in pool as well |
<nb> public class UimaSentenceIterator extends BaseSentenceIterator {
}
+ public UimaSentenceIterator ( SentencePreProcessor preProcessor , CollectionReader cr , UimaResource resource ) {
+ super ( preProcessor ) ;
+ this . reader = cr ;
+ this . resource = resource ;
+ }
+
+
public UimaSentenceIt... | Added extra constructor to UimaSentenceIterator to allow the use of CollectionReaders |
<nb> public class MainActivity extends AppCompatActivity implements View . OnClickListe
@ override
public void onClick ( View v ) {
- JCVideoPlayer . releaseAllVideos ( ) ;
switch ( v . getId ( ) ) {
case R . id . to_list_activity :
startActivity ( new Intent ( MainActivity . this , ListActivity . class )... | do not neet release videos before click button |
<nb> public class DefaultCamelContext extends ServiceSupport implements ModelCamelCon
addService ( shutdownStrategy ) ;
addService ( packageScanClassResolver ) ;
addService ( restRegistry ) ;
+ addService ( messageHistoryFactory ) ;
if ( runtimeEndpointRegistry != null ) {
if ( runtimeEndpointRegistry ins... | Introduce a MessageHistoryFactory |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ; ... | Allow VARCHAR of any length in RedisLoader |
<nb> public class WifiService extends IWifiManager . Stub {
COMMENT
COMMENT
public Messenger getWifiServiceMessenger ( ) {
- COMMENT
- TODO: when we consider exposing the asynchronous API , think about
- how to provide both access and change permissions seperately
- COMMENT
- enforceAccessPermission ( )... | Fix permission issues for apps |
<nb> public class ProxyDataTracker extends BaseNetworkStateTracker {
SINGLE
private static final String DNS1 = STRING0 ;
private static final String DNS2 = STRING1 ;
+ private static final String INTERFACE_NAME = STRING2 ;
private static final String REASON_ENABLED = STRING3 ;
private static final String RE... | Add interface name for proxy network type |
<nb> public class LiferayWindowState extends WindowState {
SINGLE
- if ( oldWindowState . equals ( LiferayWindowState . POP_UP ) ) ) {
+ if ( oldWindowState . equals ( LiferayWindowState . POP_UP ) ) {
return false ;
}
else { | fixed syntax error |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JacksonMessageBodyProvider implements MessageBodyReader < Object > ,
OutputStream entityStream ) throws IOException , WebApplicationException {... | Don t log EofExceptions when writing JSON |
<nb> public class MultiLayerNetwork implements Serializable , Classifier , Layer {
throw new IllegalArgumentException ( STRING0 ) ;
this . input = input ;
- if ( input != null )
- setInputMiniBatchSize ( input . size ( NUMBER0 ) ) ;
+ setInputMiniBatchSize ( input . size ( NUMBER0 ) ) ;
if ( ! initCalle... | Remove redundant null check |
<nb> public abstract class AsyncHttpResponseHandler implements ResponseHandlerInterfa
boolean missingLooper = null == Looper . myLooper ( ) ;
if ( runnable != null ) {
if ( missingLooper ) {
- SINGLE
- runnable . run ( ) ;
- } else {
- SINGLE
+ SINGLE
handler . post ( runnable ) ;
+ } else {
+ SIN... | Fixed threading race condition |
<nb> public class NodeBuilder {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public NodeBuilder local ( boolean local ) {
+ settings . put ( STRING0 , true ) ;
+ return this ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class SimpleAttachmentInteg... | add local node to node builder |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
@ retention ( RetentionPolicy . RUNTIME )
@ target ( ElementType . TYPE )
+ @ deprecated
public @ interface RequiredMeasures {
COMMENT | Deprecate the annotation RequiredMeasures |
<nb> public class JDOTest extends AbstractTest {
}
@ test
- public void test ( ) throws SecurityException , NoSuchFieldException {
+ public void test ( ) throws IllegalAccessException , NoSuchFieldException {
start ( QJDOTest_JDOEntity . class , QJDOTest_JDOEntity . jDOEntity ) ;
match ( StringPath . clas... | Adjust JDOTest to use the new AbstractTest |
<nb> public abstract class StatementProxy implements Statement
protected final IHikariConnectionProxy connection ;
- protected boolean isClosed ;
-
protected final Statement delegate ;
+ private boolean isClosed ;
+
static
{
PROXY_FACTORY = JavassistProxyFactoryFactory . getProxyFactory ( ) ; | Make the things we can private and final |
<nb> public final class Simple1P1CPerfTest
System . out . println ( STRING0 + disruptorOpsPerSecond ) ;
System . out . println ( STRING1 + blockingQueueOpsPerSecond ) ;
- Assert . assertTrue ( STRING2 , disruptorOpsPerSecond > blockingQueueOpsPerSecond ) ;
+ Assert . assertTrue ( STRING3 , disruptorOpsPerSeco... | assert message needed reversal |
<nb> public class AgreementRule extends GermanRule {
STRING0 ,
STRING1 ,
STRING2 ,
+ STRING3 ,
STRING4 ,
STRING5 ,
STRING6 ,
<nb> public class CaseRule extends GermanRule {
private static final Set < String > exceptions = new HashSet < String > ( ) ;
static {
+ exceptions . add ( STRING7 ) ;
e... | de avoid two false alarms |
<nb> public class MainActivity extends AppCompatActivity {
new GuillotineAnimation . GuillotineBuilder ( guillotineMenu , guillotineMenu . findViewById ( R . id . guillotine_hamburger ) , contentHamburger )
. setStartDelay ( RIPPLE_DURATION )
. setActionBarViewForAnimation ( toolbar )
+ . setClosedOnStart ( tru... | fixed isClosedOnStart issue |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class OSQLFunctionGremlin extends OSQLFunctionAbstract {
new OGremlinHelper . OGremlinCallback (... | Fixed compilation problem in gephi http command |
<nb> public class PreloaderBundleGenerator extends Generator {
for ( Entry < String , ArrayList < Asset > > bundle : bundles . entrySet ( ) ) {
StringBuffer buffer = new StringBuffer ( ) ;
for ( Asset asset : bundle . getValue ( ) ) {
- String path = asset . file . path ( ) . replace ( STRING0 , STRING1 ) . rep... | Don t remove assets from file names |
<nb> public class AndroidUtils {
handler . startNotify ( ) ;
try {
if ( timeout != null ) {
- handler . waitFor ( timeout ) ;
+ if ( timeout > NUMBER0 ) {
+ handler . waitFor ( timeout ) ;
+ }
}
else {
handler . waitFor ( ) ; | do not invoke waitFor if timeout is zero |
<nb> public class ListView extends AbsListView {
if ( mChoiceMode == CHOICE_MODE_MULTIPLE ) {
mCheckStates . put ( position , value ) ;
} else {
- SINGLE
- SINGLE
- mCheckStates . clear ( ) ;
- SINGLE
+ SINGLE
+ SINGLE
+ if ( value || isItemChecked ( position ) ) {
+ mCheckStates . clear ( ) ;
+... | ListView setItemChecked p false always clears all items |
<nb> final class AggregationIterator implements SeekableView , DataPoint ,
SeekableView it = iterators [ i ] ;
it . seek ( start_time ) ;
final DataPoint dp ;
- try {
- dp = it . next ( ) ;
- } catch ( NoSuchElementException e ) {
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ if ( ! it . hasNext ( ) ) {
... | Improve query performance in the AggregationIterator by calling |
<nb> public class VCardTest extends SmackTestCase {
super ( arg0 ) ;
}
- public void testBigFunctional ( ) {
+ public void testBigFunctional ( ) throws XMPPException {
VCard origVCard = new VCard ( ) ;
origVCard . setFirstName ( STRING0 ) ; | Added throws XMPPException to testBigFunctional |
<nb> public final class KeyChain {
public static final String ACCOUNT_TYPE = STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ private static final String KEYCHAIN_PACKAGE = STRING0 ;
+
+ COMMENT
COMMENT
COMMENT
private static final String ACTION_CHOOSER = STRING1 ;
<nb> public final class KeyChain {
th... | Use the correct package name for CHOOSER |
<nb> public class Downloader {
logger . log ( Level . FINE , STRING0 + multiChunkId + STRING1 ) ;
localDecryptedMultiChunkFile . delete ( ) ;
+
+ throw e ;
}
finally {
logger . log ( Level . FINE , STRING2 + multiChunkId + STRING1 ) ; | Delete multichunk from cache if decryption failed |
<nb> public final class SecurityClassLoad {
loadJavaxPackage ( loader ) ;
loadCoyotePackage ( loader ) ;
loadHttp11Package ( loader ) ;
+ loadTomcatPackage ( loader ) ;
}
<nb> public final class SecurityClassLoad {
STRING0 ) ;
}
+ private final static void loadTomcatPackage ( ClassLoader loader ... | Pre load a class required for apps to obtain the SSL key size when running under a security manager |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.