diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class StubBasedPsiElementBase < T extends StubElement > extends ASTDelegateP
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
protected final PsiElement getParentByStub ( ) {
<nb> public class StubBasedPsiElementBase < T extends Stub... | update StubBasedPsiElementBase javadocs to the new reality |
<nb> public interface UserDetails extends Serializable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
String getPassword ( ) ; | Remove incorrect javadoc from UserDetails getPassword |
<nb> public final class HttpServerExchange extends AbstractAttachable {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Long getRequestContentLength ( ) {
+ String contentLengthString = requestHeaders . getFirst ( Headers . CONTENT_LENGTH ) ;
+ if ( contentLengthString == null ) {
+ return null ;
... | Add get Request Response ContentLength |
<nb> public class ZWaveNodeStageAdvancer implements ZWaveEventListener {
SINGLE
List < ZWaveDbConfigurationParameter > configList = database . getProductConfigParameters ( ) ;
- if ( configList . size ( ) == NUMBER0 ) {
+ if ( configList == null || configList . size ( ) == NUMBER0 ) {
break ;
} | Fix bug in node advancer if no configuration information available |
<nb> public class TwoDimTableBase < I extends TwoDimTable , S extends TwoDimTableBase > e
columns = new ColumnSpecsBase [ cols ] ;
columns [ NUMBER0 ] = new ColumnSpecsBase ( ) ;
columns [ NUMBER0 ] . name = pythonify ( t . getColHeaderForRowHeaders ( ) ) ;
- columns [ NUMBER0 ] . type = STRING0 ; SINGLE
+ co... | Don t pythonify null |
<nb> public class Fragment implements ComponentCallbacks , OnCreateContextMenuListener
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public Fragment ( ) {
} | Clarify Fragment construtor javadoc |
<nb> import NAMESPACE ;
COMMENT
public interface IdeaProject extends HierarchicalElement , Element {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
String getJdkName ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
String getLanguageLevel (... | ToolingAPI for IDEA Added missing javadocs and a TODO |
<nb> public abstract class HttpBase < T > {
String formEncoding = resolveFormEncoding ( ) ;
- String utf8Stirng = StringUtil . convertCharset (
+ String utf8String = StringUtil . convertCharset (
string , formEncoding , StringPool . ISO_8859_1 ) ;
- buffer . append ( utf8Stirng ) ;
+ buffer . append (... | Decode file name correctly for uploadable multiparts |
<nb> public class SvnCheckinEnvironment17 implements CheckinEnvironment {
}
public List < VcsException > commit ( List < Change > changes , String preparedComment ) {
- return commit ( changes , preparedComment , FunctionUtil . < Object , Object > nullConstant ( ) , sdfdsf ) ;
+ return commit ( changes , prep... | Revision number of Subversion commit no longer shows in after commit popup |
<nb> public class SmsHelper {
return messages ;
}
- public static List < Message > deleteFailedMessages ( Context context , long threadID ) {
+ public static List < Message > deleteFailedMessages ( Context context , long threadId ) {
Log . d ( TAG , STRING0 ) ;
<nb> public class SmsHelper {
}
fo... | Changed threadID to threadId |
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RestAssuredMockMvc {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class RestAssuredMockMvc... | Widen the standaloneSetup builder method to accept the AbstractMockMvcBuilder builder type |
<nb> public class WindowManagerService extends IWindowManager . Stub
SINGLE
if ( win . isDragResizeChanged ( ) ) {
win . setDragResizing ( ) ;
- if ( win . mHasSurface ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( win . mHasSurface && win . mAttachedWindow == null ) {
winAnimator . preserveSurfaceL... | Prevent SurfaceView flash while resizing |
<nb> public interface TypeDescription extends TypeDefinition , TypeVariableSource {
return isValid ( typeDescription ) && ( ! typeDescription . isArray ( ) || typeDescription . getComponentType ( ) . accept ( this ) ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
private boolean is... | Added missing documentation |
<nb> public final class RingBuffer < E > implements Cursored , DataProvider < E >
}
COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
+ public E getPreallocated ( long sequence )
+ {
+ return get ( sequence ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
+ public E getPublished ( long se... | Actually reintroduce deprecated methods |
<nb> public abstract class AbstractHadoopJob extends AbstractJob {
}
HadoopUtils . setPropsInJob ( conf , getProps ( ) ) ;
+
+ SINGLE
+
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( System . getenv ( STRING0 ) != null ) {
+ conf . set ( STRING1 ,
+ System . getenv ( STRING0 ) ) ;
+ }
return c... | Set the map reduce tokens so that they can be delegated |
<nb> import NAMESPACE ;
public interface CheckpointCoordinatorGateway extends RpcGateway {
void acknowledgeCheckpoint (
- JobID jobID ,
- ExecutionAttemptID executionAttemptID ,
- CheckpointMetaData checkpointInfo ,
- SubtaskState checkpointStateHandles ) ;
+ final JobID jobID ,
+ final ExecutionAttem... | Rebasing fixes on latest master |
<nb> public class InputMethodUtils {
return InputMethodSubtype . sort ( context , NUMBER0 , imi , enabledSubtypes ) ;
}
- private List < InputMethodSubtype > getEnabledInputMethodSubtypeListLocked (
+ public List < InputMethodSubtype > getEnabledInputMethodSubtypeListLocked (
InputMethodInfo imi ) {
List ... | Open an internal utility of InputMethodUtils |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
public class FingerprintView extends TypefaceTextView implements Subscriber < Fingerprint > , UpdateListener {
public static final String TAG = FingerprintView . class . getName ( ) ;
<nb> public class FingerprintView... | Use the display id from the otr client instead of the raw id |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Deleting unused imports |
<nb> public class WordsToSentencesAnnotatorTest extends TestCase {
return true ;
}
+
+
+ public void testSentenceSplitting ( ) {
+ String text = STRING0 ;
+ SINGLE
+ Properties props = new Properties ( ) ;
+ props . setProperty ( STRING1 , STRING2 ) ;
+ props . setProperty ( STRING3 , STRING4 ) ; ... | Add test for eol sentence splitting |
<nb> public class ConnectionParam extends AbstractParam {
String host = sub . getString ( AUTH_HOST_NAME_KEY , STRING0 ) ;
if ( STRING0 . equals ( host ) ) {
- break ;
+ continue ;
}
HostAuthentication auth = new HostAuthentication ( | Changed ConnectionParam to keep trying loading other authentication credentials even if one is wrong |
<nb> public class localContextRoot implements Context
{
throw e ;
}
- catch ( Exception e )
+ catch ( final Exception e )
{
- __log . warn ( STRING0 , e ) ;
- throw new NamingException ( e . getMessage ( ) ) ;
+ throw new NamingException ( e . getMessage ( ) )
+ {
+ { initCause ( e ) ; }
+ } ;
... | Add exception cause to NamingException |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class WizardContext extends UserDataHolderBase {
- private static final Icon NEW_PROJECT_ICON = null ;
- private static final Icon NEW_MODULE_ICON = null ;
COMMENT
COMMENT
COMMENT
<nb> public class WizardContext extends UserDataHolderBase {
}
pub... | remove null icons |
<nb> public class Node implements Writable {
return this . name ;
}
- public String namespace ( ) {
- return this . namespaceURI ;
- }
-
public String namespaceURI ( ) {
return this . namespaceURI ;
}
<nb> public class Node implements Writable {
private static String getTagFor ( final Object nam... | Remove redundant method |
<nb> public class TestBikeRental extends TestCase {
tree = aStar . getShortestPathTree ( options ) ;
path = tree . getPath ( v3 , false ) ;
- assertNotNull ( path ) ;
- assertFalse ( path . states . getLast ( ) . isFinal ( ) ) ;
+ SINGLE
+ assertNull ( path ) ;
BikeRentalStationVertex station2 = new B... | getPath now returns null when state is not final |
<nb> final class TreeRpc implements HttpRpc {
}
} else {
final String delete_all = query . getQueryStringParam ( STRING0 ) ;
- if ( delete_all . toLowerCase ( ) . equals ( STRING1 ) ) {
+ if ( delete_all != null && delete_all . toLowerCase ( ) . equals ( STRING1 ) ) {
delete_definition = true ;
}
}
<n... | Fix bug in TreeRpc where the delete_all field may be null |
<nb> final class SerializationContextImpl implements SerializationContext {
}
static long combineToLong ( int x , int y ) {
- return ( ( long ) x < < NUMBER0 ) | ( ( long ) y & NUMBER1 ) ;
+ return ( ( long ) x < < NUMBER0 ) | ( ( long ) y & NUMBER2 ) ;
}
static int extractInt ( long value , boolean low... | Fixed ByteUtil combineToLong |
<nb> public class JettyTest
SINGLE
SINGLE
@ test
+ @ ignore
public void testChunkNotFinalized ( ) throws Exception
{
ListenableFuture < InputStream > go = client . get ( | ignore jetty exception test for now |
<nb> import NAMESPACE ;
public class JerseyContainerHolder {
private Servlet container ;
- public JerseyContainerHolder ( ServletContainer container ) {
+ public JerseyContainerHolder ( Servlet container ) {
this . container = container ;
}
public ServletContainer getContainer ( ) {
- if ( container... | change JerseyContainerHolder param to Servlet |
<nb> public abstract class ORecordSerializerCSVAbstract extends ORecordSerializerStri
( ( OLazyIterator < OIdentifiable > ) it ) . update ( newRid ) ;
}
- if ( ! coll . convertRecords2Links ( ) )
- throw new OSerializationException ( STRING0 ) ;
+ coll . convertRecords2Links ( ) ;
+ SINGLE
+ SINGLE
... | Fixed bug on resultset management from JS function wrappers |
<nb> public class Intent implements Parcelable , Cloneable {
int j = uri . indexOf ( STRING0 , i ) ;
while ( i < j ) {
int sep = uri . indexOf ( STRING1 , i ) ;
- if ( sep < NUMBER0 ) sep = j ;
+ if ( sep < NUMBER0 || sep > j ) sep = j ;
if ( i < sep ) {
intent . addCategory ( uri . substring ( i , sep ) ... | Fix parsing of old style intent URIs |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClassLoaderSafeConnectorMetadata
return delegate . metadataDelete ( session , tableHandle , tableLayoutHandle ) ;
}
}
+
+ @ override
+... | Add missing classloader delegate for grantTablePrivileges |
<nb> public class InternalClusterService extends AbstractLifecycleComponent < ClusterSe
synchronized ( updateTasksPerExecutor ) {
List < UpdateTask > pending = updateTasksPerExecutor . remove ( executor ) ;
if ( pending != null ) {
- for ( Iterator < UpdateTask > iter = pending . iterator ( ) ; iter . hasNext (... | Simplify loop in InternalClusterService runTasksForExecutor |
<nb> public class Jvm implements JavaInfo {
COMMENT
COMMENT
@ override
- public File getJavaHome ( ) {
- return super . getJavaHome ( ) ;
- }
-
- COMMENT
- COMMENT
- COMMENT
- @ override
public File getRuntimeJar ( ) {
File javaHome = super . getJavaHome ( ) ;
File runtimeJar = new File ( ja... | Removed empty method implementation |
<nb> public class GoFile extends PsiFileBase {
PsiElement packageIdentifier = packageClause . getIdentifier ( ) ;
if ( packageIdentifier != null ) {
String name = packageIdentifier . getText ( ) . trim ( ) ;
- if ( GoTestFinder . isTestFile ( this ) ) {
- name = StringUtil . trimEnd ( name , GoConstants . TES... | Simplify return statement in GoFile GetPackageName |
<nb> public class Console
}
}
catch ( RuntimeException e ) {
- System . out . println ( STRING0 + e . getMessage ( ) ) ;
+ System . err . println ( STRING0 + e . getMessage ( ) ) ;
if ( queryRunner . getSession ( ) . isDebug ( ) ) {
e . printStackTrace ( ) ;
} | Print CLI error to stderr |
<nb> public class EBeanHolder {
JCodeModel codeModel = eBean . owner ( ) ;
try {
refClass = codeModel . ref ( fullyQualifiedClassName ) ;
- } catch ( Throwable t ) {
+ } catch ( NoClassDefFoundError ignored ) {
refClass = codeModel . directClass ( fullyQualifiedClassName ) ;
}
loadedClasses . put ( full... | Replacing Throwable with NoClassDefFoundError more specific |
<nb> package NAMESPACE ;
public final class AppConfig {
COMMENT
public final static boolean DEBUG = true ;
+ COMMENT
+ public final static String USER_AGENT = STRING0 ;
}
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESP... | Set user agent header when making http requests |
<nb> public abstract class OverwritablePojo < T extends OverwritablePojo > {
@ override
public boolean equals ( Object o ) {
- if ( ! getTypeParameterClass ( ) . isInstance ( o ) ) {
- return false ;
- }
-
- return true ;
+ return getTypeParameterClass ( ) . isInstance ( o ) ;
}
} | Simplify the equals method |
<nb> public abstract class EJBComponent extends BasicComponent implements org . jboss . e
} else if ( name . startsWith ( STRING0 ) ) {
jndiContext = namespaceContextSelector . getContext ( STRING1 ) ;
namespaceStrippedJndiName = name . substring ( STRING0 . length ( ) ) ;
- } else if ( name . startsWith ( STRI... | Fix EJBComponent lookup method |
<nb> public class GELFDispatcher extends SimpleChannelHandler {
@ override
public void exceptionCaught ( ChannelHandlerContext ctx , ExceptionEvent e ) throws Exception {
- LOG . warn ( STRING0 , e . getCause ( ) ) ;
- throw ( Exception ) e . getCause ( ) ;
+ LOG . debug ( STRING0 , e . getCause ( ) ) ;
}... | change message dispatcher loglevels to DEBUG because everything else might fill your disks quite fast |
<nb> public class AsyncContextImpl implements AsyncContext , AsyncContextCallback {
SINGLE
try {
request . getResponse ( ) . finishResponse ( ) ;
- } catch ( IOException ioe ) {
+ } catch ( Throwable t ) {
+ ExceptionUtils . handleThrowable ( t ) ;
SINGLE
SINGLE
SINGLE
- log . debug ( sm . getString... | Make exception handling more robust review by remm |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AdminApplicationHazelcastTest {
}
@ test
+ @ ignore ( STRING0 )
public void test ( ) {
Application app = new Application ( STRING1 , S... | Ignore testcase for Hazelcast |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class ZooKeeperConfigurationSource implements WatchedConfigurat... | updated javadocs to be more clear on how to use and configure the |
<nb> public class FtpComponent extends RemoteFileComponent < FTPFile > {
FtpEndpoint < FTPFile > answer = new FtpEndpoint < FTPFile > ( uri , this , config ) ;
extractAndSetFtpClientConfigParameters ( parameters , answer ) ;
extractAndSetFtpClientParameters ( parameters , answer ) ;
- config . setDirectory ( re... | Fixed ftp component after little mistake committed recently |
<nb> public abstract class ManagerBase extends LifecycleMBeanBase
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void setSecureRandomClass ( String secureRandomClass ) { | Fix Javadoc warning |
<nb> public class StateMachine {
@ override
public final void handleMessage ( Message msg ) {
if ( ! mHasQuit ) {
- if ( mSm != null ) {
+ if ( mSm != null && msg . what != SM_INIT_CMD && msg . what != SM_QUIT_CMD ) {
mSm . onPreHandleMessage ( msg ) ;
}
<nb> public class StateMachine {
SINGLE
if ... | Don t call pre and post handlers for state machine initialization |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class MacIntelliJTextBorder extends DarculaTextBorder {
return ;
}
Graphics2D g = ( Graphics2D ) g2d ;
+ SINGLE
+ if ( c . getParent ( ) instanceof JComboBox ) return ;
i... | do not paint border around text field in combobox |
<nb> public class CodeGenProcessor extends AbstractAnnotationProcessor {
logger . info ( STRING0 + elements . size ( ) + STRING1 ) ;
URI uri = filer . getResource ( StandardLocation . SOURCE_OUTPUT , STRING2 , STRING3 ) . toUri ( ) ;
+ if ( uri . toString ( ) . equals ( STRING3 ) ) {
+ throw new RuntimeExcept... | Added check for a valid Java sources path configuration |
<nb> public class DisruptorRemoveRouteThenAddAgainTest extends CamelTestSupport {
SINGLE
context . stopRoute ( STRING0 ) ;
context . removeRoute ( STRING0 ) ;
-
+
SINGLE
context . addRoutes ( createRouteBuilder ( ) ) ;
+
+ SINGLE
+ template . stop ( ) ;
SINGLE
out = getMockEndpoint ( STRING1 )... | Fixed the test error of DisruptorRemoveRouteThenAddAgainTest |
<nb> public class TestOnBoardRouting extends TestCase {
nhop ++ ;
}
}
- System . out . println ( STRING0 + tripTimes . getTrip ( ) + STRING1
+ System . out . println ( STRING0 + tripTimes . trip + STRING1
+ nextV . getStop ( ) + STRING2 + stopIndex + STRING3
+ new Date ( newStart * NUMBER0 ) ) ; | don t use getter |
<nb> public class RawTableMaster extends MasterBase {
public void processJournalEntry ( JournalEntry entry ) throws IOException {
if ( entry instanceof RawTableEntry ) {
RawTableEntry tableEntry = ( RawTableEntry ) entry ;
- mRawTables . add ( tableEntry . mId , tableEntry . mColumns , tableEntry . mMetadata ) ... | Fixing compilation errors |
<nb> public class LoadController
{
builder . put ( mc , mc . getMod ( ) ) ;
}
- if ( mc . getMod ( ) == null )
+ if ( mc . getMod ( ) == null && ! mc . isImmutable ( ) )
{
FMLLog . severe ( STRING0 , mc . getModId ( ) ) ;
if ( state != LoaderState . CONSTRUCTING ) | Fix critical bug in FML load controller that complains about injected mod containers |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class BaseActivity extends Activity
COMMENT
COMMENT
void setViewMode ( @ viewmode int mode ) {
- che... | Don t read raw root from State use getCurrentRoot |
<nb> public abstract class TomcatBaseTest extends TestCase {
STRING0 +
STRING1 +
STRING2 +
- STRING3 +
+ STRING4 +
STRING5 +
STRING6 +
STRING7 + | Add missing comma |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPA... | Optimize imports on InputsResource |
<nb> public class DeepLearningCheckpointReporting extends TestUtil {
try { Thread . sleep ( NUMBER0 ) ; } catch ( InterruptedException ex ) { } SINGLE
DeepLearningModel model = new DeepLearning ( p ) . trainModel ( ) . get ( ) ;
- long sleepTime = NUMBER1 ; SINGLE
+ long sleepTime = NUMBER2 ; SINGLE
try { T... | Increase the sleep time to let Jenkins load affect the test less |
<nb> public class JUnitTestClassProcessor implements TestClassProcessor {
}
public void processTestClass ( TestClassRunInfo testClass ) {
- LOGGER . debug ( STRING0 , testClass . getTestClassName ( ) ) ;
+ LOGGER . debug ( STRING1 , testClass . getTestClassName ( ) ) ;
executer . execute ( testClass . getTe... | clarified debug output |
<nb> public class ThemeBrowserFragment extends Fragment implements RecyclerListener ,
public void onActivityCreated ( Bundle savedInstanceState ) {
ThemeBrowserActivity themeBrowserActivity = ( ThemeBrowserActivity ) getActivity ( ) ;
super . onActivityCreated ( savedInstanceState ) ;
- if ( this instanceof The... | Fixing warning of if else statement |
<nb> public class CarrierConfigManager {
public static final String
KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL = STRING0 ;
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class CarrierConfigManager {
COMMENT
public static final String KEY_CSP_ENABLED_BOOL = STRING1 ;
+ COMMENT
+ COMMENT
... | Adding config to allow disallow user to add APNs |
<nb> public class DebuggerManagerThreadImpl extends InvokeAndWaitThread < DebuggerComma
private static final Logger LOG = Logger . getInstance ( STRING0 ) ;
public static final int COMMAND_TIMEOUT = NUMBER0 ;
private static final int RESTART_TIMEOUT = NUMBER1 ;
+ private volatile boolean myDisposed ;
Debugg... | assert debug thread not disposed |
<nb> public class StartupService {
SINGLE
final int finalLatestVersion = latestSetVersion ;
+
+ initializeABTesting ( latestSetVersion == NUMBER0 ) ;
+
new Thread ( new Runnable ( ) {
public void run ( ) {
SINGLE
<nb> public class StartupService {
SINGLE
featureFlipper . updateFeatures ( ) ;
... | Reorder stuff for better performance |
<nb> public class Linter {
options . setIdeMode ( fix ) ;
options . setCodingConvention ( new GoogleCodingConvention ( ) ) ;
+
+ SINGLE
+ SINGLE
+ options . setWarningLevel ( DiagnosticGroups . CHECK_TYPES , CheckLevel . WARNING ) ;
+
options . setWarningLevel ( DiagnosticGroups . MISSING_REQUIRE , Ch... | Make sure warnings such as Bad type annotation |
<nb> public class TestCollectionOperations {
STRING0 ,
Object . class ) ;
- ( ( Optional ) result ) . get ( ) ;
+ Assert . assertEquals ( Long . valueOf ( NUMBER0 ) , result ) ;
}
<nb> public class TestCollectionOperations {
STRING1 ,
Object . class ) ;
- ( ( Optional ) result ) . get ( ) ;
... | Fix tests still expected to fail until the parser is fixed |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixed a warning about an unused import |
<nb> public class TwoWayView extends AdapterView < ListAdapter > implements
SINGLE
SINGLE
if ( mDataChanged ) {
- this . onLayout ( false , getLeft ( ) , getTop ( ) , getRight ( ) , getBottom ( ) ) ;
+ onLayout ( false , getLeft ( ) , getTop ( ) , getRight ( ) , getBottom ( ) ) ;
}
} else {
if ( mEmptyV... | library Remove unnecessary use of this in method call |
<nb> public class ApiClient {
}
requestBuilder . addHeader ( STRING0 , STRING1 ) ;
requestBuilder . setBody ( body . toJson ( ) ) ;
+ } else if ( method == Method . POST ) {
+ log . warn ( STRING2 , new IllegalStateException ( ) ) ;
}
SINGLE
if ( ! responseClass . equals ( String . class ) ) {
<nb> pu... | fix missing POST body for creating extractors |
<nb> final class ProxyControllerRegistration extends AbstractNodeRegistration impleme
@ override
ModelNodeRegistration getNodeRegistration ( Iterator < PathElement > iterator ) {
- if ( ! iterator . hasNext ( ) ) {
- return this ;
- }
- throw new IllegalArgumentException ( STRING0 ) ;
+ SINGLE
+ SINGL... | Registrations for proxy controllers should return self for child addresses |
<nb> public class ComponentDescription {
COMMENT
public boolean addClassInterceptor ( InterceptorDescription description ) {
String name = description . getInterceptorClassName ( ) ;
+ SINGLE
+ this . moduleDescription . getOrAddClassByName ( name ) ;
if ( classInterceptorsSet . contains ( name ) ) {
retu... | Add the interceptor classes to the EEModuleDescription as a EE module class |
<nb> public class TestAll extends TestCase {
suite . addTest ( TestDateTimeZone . suite ( ) ) ;
suite . addTest ( TestPeriodType . suite ( ) ) ;
SINGLE
-
+
+ suite . addTest ( TestSerialization . suite ( ) ) ;
suite . addTest ( TestIllegalFieldValueException . suite ( ) ) ;
-
return suite ;
} | Reinstate serialisation test |
<nb> public class UISettings implements PersistentStateComponent < UISettings > , Exporta
private void tweakPlatformDefaults ( ) {
SINGLE
if ( PlatformUtils . isCidr ( ) ) {
- HIDE_TOOL_STRIPES = true ;
+ SINGLE
SHOW_MAIN_TOOLBAR = false ;
SHOW_ICONS_IN_MENUS = false ;
} | ac enable toolwindow stripes by default |
<nb> public class QuorumGatewayIT extends ESIntegTestCase {
logger . info ( STRING0 ) ;
SINGLE
internalCluster ( ) . startNodesAsync ( NUMBER0 ,
- Settings . builder ( ) . put ( ElectMasterService . DISCOVERY_ZEN_MINIMUM_MASTER_NODES , NUMBER1 ) . build ( ) ) . get ( ) ;
+ Settings . builder ( ) . put ( Elect... | TEST use new settings infra |
<nb> public class FileTrustStoreSslSocketFactoryTests {
final SimpleHttpClient client = new SimpleHttpClient ( factory ) ;
assertTrue ( client . isValidEndPoint ( STRING0 ) ) ;
}
+ @ test
+ public void testTrustStoreLoadingSuccessfullyWihInsecureEndpoint ( ) throws Exception {
+ final ClassPathResource reso... | added test case for http |
<nb> public final class CompactionSetCreator
shards . add ( shard ) ;
}
return shards . build ( ) ;
- } sh
+ }
} | Fix spurious change |
<nb> public class MapConfig {
return hotRestartEnabled ;
}
- public void setHotRestartEnabled ( boolean hotRestartEnabled ) {
+ public MapConfig setHotRestartEnabled ( boolean hotRestartEnabled ) {
this . hotRestartEnabled = hotRestartEnabled ;
+ return this ;
}
COMMENT
<nb> public class MapConfig... | added MapConfig as returnValue to setHotRestartEnabled method |
<nb> public class TextRankSentence
}
resultList = permutation ( resultList , sentenceList ) ;
- resultList = pick_sentences ( resultList , max_length ) ;
- String summary = String . join ( STRING0 , resultList ) ;
- return summary ;
+ SINGLE
+ return null ;
+ SINGLE
+ SINGLE
+ SINGLE
}
publi... | furaoing Missing functions in com hankcs hanlp summary TextRankSentence |
<nb> public final class CommonUtils {
for ( int k = NUMBER0 ; k < NUMBER1 ; k ++ ) {
}
}
+
COMMENT
COMMENT
COMMENT | adding one line for separate from the javadoc of next function |
<nb> public class PreferencesFrame {
. addComponent ( cancelButton ) )
. addGap ( BORDER )
) ;
- dialog . getRootPane ( ) . setDefaultButton ( okButton ) ;
if ( Base . isWindows ( ) ) {
autoAssociateBox . setVisible ( true ) ; | Removed a redundant call to setDefaultButton |
<nb> public class ListenerTest extends HazelcastTestSupport {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ test
public void replaceFiresUpdatedEvent ( ) throws InterruptedException { | Added proper comment |
<nb> public class VariableInplaceRenamer extends InplaceRefactoring {
protected boolean performRefactoring ( ) {
boolean bind = false ;
if ( myInsertedName != null ) {
- CommandProcessor . getInstance ( ) . setCurrentCommandName ( getCommandName ( ) ) ;
+
+ if ( getVariable ( ) != null ) {
+ CommandProces... | leave old command name when no variable exist fix XmlSchemaPrefixTest |
<nb> public class SignInFragment extends AbstractFragment implements TextWatcher {
protected WPTextView mJetpackAuthLabel ;
protected ImageView mInfoButton ;
protected ImageView mInfoButtonSecondary ;
-
+
@ override
public void onCreate ( Bundle savedInstanceState ) {
super . onCreate ( savedInstanceSta... | Fix a rare NPE when the retrievd credential callback is called before onCreateView |
<nb> public abstract class AbstractBlackBoxCodegenTest extends CodegenTestCase {
}
public void doTestWithJava ( @ notnull String filename ) {
- createEnvironmentWithMockJdkAndIdeaAnnotations ( ConfigurationKind . JDK_ONLY ) ;
blackBoxFileWithJavaByFullPath ( filename ) ;
}
<nb> public abstract class Abs... | Added Kotlin external annotations to codegen tests with Java |
<nb> public class RemoteImageLoaderJob implements Runnable {
SINGLE
int fileSize = connection . getContentLength ( ) ;
+ Log . d ( LOG_TAG , STRING0 + imageUrl + STRING1 + ( filesize <= NUMBER0 ? STRING2 : Integer . toString ( fileSize ) + STRING3 ) ;
+
BufferedInputStream istream = new BufferedInputStream ... | always Log d the file being fetched not just if we know the size |
<nb> public enum Platform {
COMMENT
COMMENT
COMMENT
- Android_X86 ;
+ Android_X86 ,
+
+ iOS_X86 ,
+
+ iOS_ARM ;
} | add iOS to platforms list |
<nb> public class DaemonMain extends EntryPoint {
protected void daemonStarted ( Long pid , File daemonLog ) {
SINGLE
+ SINGLE
new DaemonStartupCommunication ( ) . printDaemonStarted ( originalOut , pid , daemonLog ) ;
originalOut . close ( ) ;
originalErr . close ( ) ; | Added a TODO |
<nb> public class StartConversationActivity extends XmppActivity {
String conferenceJid = jid . getText ( ) . toString ( ) ;
Account account = xmppConnectionService
. findAccountByJid ( accountJid ) ;
+ if ( account == null ) {
+ dialog . dismiss ( ) ;
+ return ;
+ }
if ( bookmarkCheckBox . isChecked ( ... | fixed rare npe |
<nb> public abstract class Event {
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- TIMER_EXPIRED ( Category . SERVER ) ,
-
- COMMENT
- COMMENT
- COMMENT
- TIMER_UNREGISTERED ( Category . SERVER ) ,
-
COMMENT
COMMENT
COMMENT | EggThrow remove extra stuff |
<nb> public final class DiskLruCache implements Closeable {
}
}
+ public File getFile ( String key , int index ) {
+ return new Entry ( key ) . getCleanFile ( index ) ;
+ }
+
COMMENT
COMMENT
COMMENT | Add getFile for DiskLruCache |
<nb> public class ExternalDocumentValidator {
XmlTag . class ,
XmlProcessingInstruction . class ,
XmlElementDecl . class ,
- XmlMarkupDecl . class
+ XmlMarkupDecl . class ,
+ XmlDoctype . class
} ;
private XmlElement getNodeForMessage ( final PsiElement currentElement ) { | fixed problem when Xerces message is bound to doctype |
<nb> public class ConsoleViewImpl extends JPanel implements ConsoleView , ObservableCo
final int dirtyRegionStart = document . getLineStartOffset ( startLine ) ;
final int diretyRegionEnd = document . getLineEndOffset ( endLine ) ;
for ( FoldRegion region : myEditor . getFoldingModel ( ) . getAllFoldRegions ( ) )... | remove only those folded regions that intersect with the updated console area |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LogListenerTest {
}
@ test
+ @ ignore ( STRING0 )
public void testNoFormattedMsgs ( ) throws IOException {
File src... | Temporarily disable a test of LogListenerTest |
<nb> public class DebugAttachDetector {
if ( ! ApplicationManagerEx . getApplicationEx ( ) . isInternal ( ) || STRING0 . equals ( System . getProperty ( STRING1 ) ) ) return ;
for ( String argument : ManagementFactory . getRuntimeMXBean ( ) . getInputArguments ( ) ) {
- if ( argument . startsWith ( STRING2 ) ) ... | fixed exception in attach detector with shmem transport |
<nb> public final class ActivityManagerService extends ActivityManagerNative
for ( int j = NUMBER0 ; j < activitiesSize ; j ++ ) {
final ActivityRecord r = app . activities . get ( j ) ;
if ( r . app != app ) {
- Log . wtf ( TAG , STRING0 + r + STRING1 + r . app
+ Log . e ( TAG , STRING0 + r + STRING1 + r . a... | Replace Log wtf by Log e |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class AsyncHttpRequest implements Runnable {
try {
makeRequest ( ) ;
return ;
- } catch ( UnknownHostException e ) {
- if ( responseHandler != null ) {
- responseHan... | AsyncHttpRequest handle SocketException |
<nb> public @ interface Builder {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | correcting javadoc for Builder Constructor |
<nb> import NAMESPACE ;
public class TwitterApi extends DefaultApi10a
{
private static final String AUTHORIZE_URL = STRING0 ;
+ private static final String REQUEST_TOKEN_RESOURCE = STRING1 ;
+ private static final String ACCESS_TOKEN_RESOURCE = STRING2 ;
@ override
public String getAccessTokenEndpoint (... | added Twitter SSL support |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class Deodexerant {
private final String host ;
private final int port ; | Added comment for Deodexerant class |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CoreProjectLoader {
moduleManager . loadModules ( ) ;
project . projectOpened ( ) ;
- SINGLE
+... | restore directory index initialization in CoreProjectLoader |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PartialVectorMergeReducer extends MapReduceBase implements
if ( sequentialAccess ) {
vector = new SequentialAccessSparseVec... | Creates NamedVectors when writing out merged vectors |
<nb> public class SslSelectChannelEndPoint extends SelectChannelEndPoint
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
@ override | Fixing javadoc can t reference from jetty io to jetty http as theres no dependency in that direction |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.