diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class FontAwesome {
COMMENT
public static final String UNDO = STRING0 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String CHECK = STRING1 ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String EXCLAMATION_TRIANGLE = STRING2 ;
+
} | add new font awesome icons |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed unused imports |
<nb> class FakeFile {
private int index ;
FakeFile ( String . . . lines ) {
- this . lines = lines ;
+ this . lines = lines != null ? lines : new String [ NUMBER0 ] ;
}
String getLine ( ) { | Improve FakeFile implementation |
<nb> public abstract class Check extends AutomaticBean
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public abstract int [ ] getDefaultTokens ( ) ;
<nb> public abstract class Check extends AutomaticBean
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public int [ ] getAcceptableTokens ( )
{
<nb> p... | Added patch from Peter Dobratz to improve documentation |
<nb> class DataSourceInitializer implements ApplicationListener < DataSourceInitialized
@ autowired
private ConfigurableApplicationContext applicationContext ;
- @ autowired ( required = false )
private DataSource dataSource ;
@ autowired
<nb> class DataSourceInitializer implements ApplicationListener <... | Delay instantiation of DataSource as late as possible |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | fixed build break |
<nb> public class TokenValue {
case INTERPOLATION : return STRING0 + Joiner . on ( STRING1 ) . join ( interpolationValue ) + STRING2 ;
}
SINGLE
- return null ;
+ throw new IllegalStateException ( STRING3 ) ;
}
SINGLE
<nb> public class TokenValue {
return interpolation ( newValue ) ;
}
SINGLE
-... | toString should never return null throw instead for invalid state |
<nb> class HTMLFormatter implements Formatter , Reporter {
put ( STRING0 , STRING1 ) ;
put ( STRING2 , STRING3 ) ;
put ( STRING4 , STRING5 ) ;
+ put ( STRING6 , STRING7 ) ;
put ( STRING8 , STRING9 ) ;
}
} ; | Added support for SVG images in HTML output |
<nb> import NAMESPACE ;
public class KotlinRuntimeLibraryCoreUtil {
private static final ImmutableList < String > CANDIDATE_CLASSES = ImmutableList . of (
- STRING0 ,
+ STRING1 ,
SINGLE
STRING2 | Use a built in marker class for Configure Kotlin action |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TransactionCommittingResponseUnpacker implements ResponseUnpacker ,
{
obligationFulfiller . fulfill ( txId ) ;
}
+ catch ( IllegalStateException e )
+ {
... | Handle IllegalStateException from UpdatePuller and convert into a ComException |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- public class MocoJsonSocketHttpRunner {
+ public class MocoJsonSocketRunnerTest {
private MocoSocketHelper helper ;
@ before | corrected json socket runner test name |
<nb> public class OServerCommandGetDatabase extends OServerCommandGetConnect {
json . beginCollection ( STRING0 ) ;
OCluster cluster ;
for ( String clusterName : db . getClusterNames ( ) ) {
- cluster = db . getStorage ( ) . getClusterById ( db . getClusterIdByName ( clusterName ) ) ;
+ try {
+ cluster = db... | bypassed problem let db to be open |
<nb> public final class ExecutionList {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void run ( ) {
SINGLE
SINGLE
synchronized ( runnables ) {
+ if ( executed ) {
+ return ;
+ }
executed = true ;
} | Fix race condition when run is called concurrently annotating the idempotence |
<nb> class ServerComponents {
pico . addSingleton ( ChangesOnMyIssueNotificationDispatcher . newMetadata ( ) ) ;
pico . addSingleton ( NewIssuesNotificationDispatcher . class ) ;
pico . addSingleton ( NewIssuesNotificationDispatcher . newMetadata ( ) ) ;
- pico . addSingleton ( NewFalsePositiveNotificationDispa... | Fix previous merge |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JCVideoPlayer extends FrameLayout implements View . OnClickListener ,
}
}
if ( skin . seekDrawable... | Fix the big seekbar setProgressDrawable bug |
<nb> public final class WebInterfaceWorkerMetricsServlet extends WebInterfaceAbstract
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
- private String removeHostNameFromWorkerMetricsName ( String metricsName ) throws IOException {
+ private String removeHostNameFromWorkerMetricsName ( String metricsName ) {
S... | Throw IllegalArugmentException instead of IOException |
<nb> public abstract class DebuggerTestCase extends ExecutionWithDebuggerToolsTestCas
protected void printLocation ( SuspendContextImpl suspendContext ) {
try {
Location location = suspendContext . getFrameProxy ( ) . location ( ) ;
- String message = STRING0 + location . sourcePath ( ) + STRING1 + location . l... | fixed nashorn test |
<nb> public class AESCrypto
try
{
decryptCipher . init ( Cipher . DECRYPT_MODE , key ) ;
- return new String ( decryptCipher . doFinal ( Base64 . decode ( ciphertext ) ) ) ;
+ return new String ( decryptCipher . doFinal ( Base64 . decode ( ciphertext ) ) ,
+ STRING0 ) ;
}
catch ( BadPaddingException e )... | Fix bug with password storage where some characters would lead to |
<nb> public class RequestServer extends NanoHTTPD {
SINGLE
SINGLE
private NanoHTTPD . Response getResource ( String uri ) {
- byte [ ] bytes = null ; SINGLE
+ byte [ ] bytes = _cache . get ( uri ) ;
if ( bytes == null ) {
InputStream resource = Boot . _init . getResource2 ( uri ) ;
if ( resource != null... | Revert change in http resource cache |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public interface CometProcessor {
+ public interface CometProcessor extends Servlet
+ {
COMMENT
COMMENT | CometProcessor should extend servlet as they have the regular servlet lifecycle |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TestXa extends AbstractNeo4jTestCase
}
@ test
+ @ ignore ( STRING0 )
public void testDynamicRecordsInLog ( ) throws E... | Disabled a failing test with a comment to investigate why |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class AnnotationParameterInfoHandler implements ParameterInfoHandler < PsiA
public void updateParameterInfo ( @ notnull final PsiAnnotationParameterList o , final UpdateParameterInfoContext context ) {
CharSequence chars = context . ... | annotation parameter info should select a current attribute if the caret if between it and a right parenth |
<nb> public class ActivityController < T extends Activity > {
public void run ( ) {
if ( ! attached ) attach ( ) ;
- activity . getWindow ( ) . requestFeature ( Window . FEATURE_ACTION_BAR ) ;
method ( STRING0 ) . withParameterTypes ( Bundle . class ) . in ( activity ) . invoke ( bundle ) ;
}
} ) ; | Remove requestFeature from ActivityController |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CommentsListFragment extends Fragment {
SINGLE
if ( mActionMode == null ) {
if ( getActivity ( ) i... | Fixed Comments CAB by switching to AppCompat version of ActionMode |
<nb> public class Material implements Asset , Cloneable , Savable , Comparable < Material >
}
}
}
- if ( guessRenderStateApply ) {
+ if ( guessRenderStateApply && additionalState != null ) {
SINGLE
SINGLE
additionalState . applyPolyOffset = additionalState . offsetEnabled ; | Null checked additionalRenderState when loading a material |
<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
case MotionEvent . ACTION_CANCEL :
setPressed ( false ) ;
removeTapCallback ( ) ;
+ removeLongPressCallback ( ) ;
break ;
case MotionEvent . ACTION_MOVE : | Remove View s long press callbacks when ACTION_CANCEL is received |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RestrictedLockUtils {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static EnforcedAdm... | RestrictedLockUtils introduce check for suspended apps |
<nb> import NAMESPACE ;
public abstract class AbstractTestTag extends TomcatBaseTest {
+ @ override
@ before
- public void setup ( ) throws Exception {
+ public void setUp ( ) throws Exception {
super . setUp ( ) ;
Tomcat tomcat = getTomcatInstance ( ) ; | Really fix the Findbugs issue this time |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | removed validateSchema from Deployment |
<nb> public class StubGenerator implements ClassItemGenerator {
private static String getVariableInitializer ( GrVariable variable , PsiType declaredType ) {
if ( declaredType instanceof PsiPrimitiveType ) {
Object eval = GroovyConstantExpressionEvaluator . evaluate ( variable . getInitializerGroovy ( ) ) ;
+ i... | psf fields with primitive types should have correct value |
<nb> public interface World {
Region getWorldData ( Region3i region ) ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
int getSeaLevel ( ) ; | Added javadoc in World |
<nb> public abstract class MenuTitleController {
if ( Algorithms . isEmpty ( streetName ) ) {
streetName = STRING0 ;
}
- if ( Algorithms . isEmpty ( ref ) ) {
+ if ( ! Algorithms . isEmpty ( ref ) ) {
streetName += STRING1 + ref ;
}
streetStr = streetName ; | Fix null ref |
<nb> class ViewFetcher {
COMMENT
COMMENT
- @ suppresswarnings ( STRING0 )
public float getScrollListWindowHeight ( View view ) {
final int [ ] xyParent = new int [ NUMBER0 ] ;
View parent = getScrollOrListParent ( view ) ; | Removed SupressWarnings in ViewFetcher java |
<nb> public class FullyExecutableJarTests {
private List < String > readLines ( File file ) throws IOException {
BufferedReader reader = new BufferedReader ( new FileReader ( file ) ) ;
- String line ;
List < String > lines = new ArrayList < String > ( ) ;
try {
- while ( ( line = reader . readLine ( ) ) ... | Fix problem reported by Checkstyle |
<nb> ZWaveCommandClassDynamicState {
logger . debug ( STRING0 , this . getNode ( ) . getNodeId ( ) ) ;
int command = serialMessage . getMessagePayloadByte ( offset ) ;
switch ( command ) {
- case THERMOSTAT_MODE_SET :
case THERMOSTAT_MODE_GET :
case THERMOSTAT_MODE_SUPPORTED_GET :
logger . warn ( STRING1 ... | Treat thermostat mode SET as a REPORT |
<nb> public class ParcelableGenerator {
getWrappedMethod . body ( ) . _return ( wrapped ) ;
SINGLE
- JDefinedClass creatorClass = parcelableClass . _class ( JMod . PRIVATE | JMod . STATIC | JMod . FINAL , classNamer . numberedClassName ( new ASTStringType ( STRING0 ) ) . build ( ) . getClassName ( ) ) ;
+ JDe... | Made Creator inner class public to accomodate testing |
<nb> public class IOSMethodBinding implements IMethodBinding {
@ override
public boolean overrides ( IMethodBinding method ) {
- return delegate . overrides ( method ) ;
+ return delegate . equals ( method ) || delegate . overrides ( method ) ;
}
public IMethodBinding getDelegate ( ) { | Changed IOSMethodBinding overrides to returns true if the given method equals the internal delegate method |
<nb> public abstract class GroovyCompilerBase implements TranslatingCompiler {
patchers . addAll ( extension . getCompilationUnitPatchers ( chunk ) ) ;
}
- if ( STRING0 . equals ( System . getProperty ( STRING1 ) ) ) {
+ final boolean profileGroovyc = STRING0 . equals ( System . getProperty ( STRING1 ) ) ;
... | don t add the dump heap on out of memory to groovyc unless asked |
<nb> public final class ActivityManagerService extends ActivityManagerNative
task = mStackSupervisor . anyTaskForIdLocked ( task . taskId ) ;
if ( task != null ) {
if ( ! isSystemInitiated
- && ( ( mFocusedActivity == null ) || ( task != mFocusedActivity . task ) ) ) {
+ && ( ( mStackSupervisor . getFocusedSt... | Make lock task check if focused better |
<nb>
package NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
public class PlistSerializerTest {
@ test
<nb> public class PlistSerializerTest {
a... | Add test for PlistSerializerTest serializeToString |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class FileWritingTest {
@ rule public final TemporaryFolder tmp = new TemporaryFolder ( ) ;
SINGLE
- private final FileSystem fs = Jimfs . newFileSystem ( ) ;
+ priv... | Force fake filesystem to behave like Unix |
<nb> public final class CameraProperties extends CameraMetadata {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static final Key < android . hardware . camera2 . Size [ ] > SCALER_AVAILABLE_PROCESSED_SIZES =
new Key < a... | Add docs for availableProcessedSizes |
<nb> public class RESTDocsGenerator extends AsciiDocGenerator
Writer fw = null ;
try
{
- fw = getFW ( STRING0 + File . separator + STRING1 + File . separator + section , data . title ) ;
+ fw = AsciiDocGenerator . getFW ( STRING0 + File . separator + STRING1 + File . separator + section , data . title ) ;
S... | adjusting method call |
<nb> public enum HivePrivilege
return ImmutableSet . of ( UPDATE ) ;
case STRING0 :
return ImmutableSet . of ( DELETE ) ;
+ case STRING1 :
+ return ImmutableSet . of ( OWNERSHIP ) ;
}
return ImmutableSet . of ( ) ;
} | Add missing OWNERSHIP entry in HivePrivilege parsePrivilege |
<nb> public final class SerDeUtils
}
}
- public static String formatTimestamp ( DateTimeZone sessionTimeZone , Object object , TimestampObjectInspector objectInspector )
+ private static String formatTimestamp ( DateTimeZone sessionTimeZone , Object object , TimestampObjectInspector objectInspector )
{
Ti... | Make formatTimestamp methods private |
<nb> public class DarculaLaf extends BasicLookAndFeel {
STRING0 , STRING1 ,
STRING2 , STRING3 ,
STRING4 , STRING3 ,
- SINGLE
+ STRING5 , STRING6 ,
STRING7 , STRING8
} ) ) ;
} | add escape handler to Darcula tables |
<nb> public class JobUtil {
try {
job . scheduleAndWaitForResults ( ) ;
}
- catch ( ProcessCanceledException e ) {
+ catch ( RuntimeException e ) {
throw e ;
}
catch ( Throwable throwable ) { | do not log runtimeexception |
<nb> public class MetricsSettings
public static Setting < Long > graphiteInterval = setting ( STRING0 , Settings . DURATION , STRING1 ) ;
SINGLE
+ @ deprecated
+ @ obsoleted ( STRING2 )
@ description ( STRING3 )
public static Setting < Boolean > gangliaEnabled = setting ( STRING4 , Settings . BOOLEAN , Se... | Deprecate support for Ganglia output from metrics |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ODatabaseScriptManager {
}
public void releaseEngine ( final ScriptEngine iEngine ) {
+ iEngine . getBindings ( ScriptContext . ENGINE_SCOPE ) . clear ( ) ; ... | Fixed memory cleaning of global variables |
<nb> public class HttpRequestHeader extends HttpHeader {
}
if ( mMalformedHeader ) {
+ if ( log . isDebugEnabled ( ) ) {
+ log . debug ( STRING0 + data ) ;
+ }
throw new HttpMalformedHeaderException ( ) ;
} | added small log debug output |
<nb> public final class ExpressionUtils {
try {
return ( ( Boolean ) expr . getValue ( ctx , Boolean . class ) ) . booleanValue ( ) ;
} catch ( EvaluationException e ) {
- throw new IllegalArgumentException ( STRING0 , e ) ;
+ throw new IllegalArgumentException ( STRING1 + expr . getExpressionString ( ) + STR... | Add expression string to failed expression evaluation exception message to help clarify the context |
<nb> public class ContentStreamingRequestAction extends RequestActionSupport < Streamed
if ( received == null ) {
received = new ArrayList < > ( ) ;
}
- received . add ( httpContent ) ;
+ received . add ( httpContent . touch ( ) ) ;
if ( httpObject instanceof LastHttpContent ) {
dispose ( ctx . pipeline (... | Add some more debug trace |
<nb> class EditorGutterComponentImpl extends EditorGutterComponentEx implements Mouse
}
}
- final int lineNumberAreaWidth = calculator . execute ( maxLineNumber ) ;
+ final int lineNumberAreaWidth = calculator . execute ( maxLineNumber ) + NUMBER0 ;
if ( myLineNumberAreaWidth != lineNumberAreaWidth ) {
my... | added a small gap in front of line numbers |
<nb> public class ORecordBytes extends ORecordAbstract < byte [ ] > {
setup ( ) ;
}
+ public ORecordBytes ( final ODatabaseRecord iDatabase ) {
+ ODatabaseRecordThreadLocal . INSTANCE . set ( iDatabase ) ;
+ }
+
public ORecordBytes ( final ODatabaseRecord iDatabase , byte [ ] iSource ) {
this ( iSourc... | removed places where db instance was not required |
<nb> final class GraphAnalysisInjectBinding extends Binding < Object > {
List < ? extends VariableElement > parameters = constructor . getParameters ( ) ;
if ( hasAtInject ( enclosed ) ) {
if ( hasAtSingleton ( enclosed ) ) {
- throw new IllegalArgumentException ( STRING0 +
- STRING1 +
- type . getQualified... | Fix checkstyle violation |
<nb> public class Config
public Boolean auto_bootstrap = true ;
public Boolean hinted_handoff_enabled = true ;
- public Integer max_hint_window_in_ms = Integer . MAX_VALUE ;
+ public Integer max_hint_window_in_ms = NUMBER0 * NUMBER1 ; SINGLE
public SeedProviderDef seed_provider ;
public DiskAccessMode d... | Fix inconsistencies between yaml and code defaults |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
COMMENT
public class VpTreeNodeTest {
- private static final Logge... | Fix the failing VpTreeNodeTest |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
<nb> public class ConfigurationSubsystem im... | Only add the CoreGameplay module if the mod selection is empty |
<nb> public class SecureRandomSessionIdGenerator implements SessionIdGenerator {
@ override
public String createSessionId ( ) {
- final byte [ ] bytes = new byte [ NUMBER0 ] ;
+ final byte [ ] bytes = new byte [ length ] ;
random . nextBytes ( bytes ) ;
return new String ( encode ( bytes ) ) ;
} | SecureRandomSessionIdGenerator allows configuration of the session id length but doesn t actually use the configured value |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class BasicDBObject extends BasicBSONObject implements DBObject {
COMMENT
public BasicDBObject ( ) {
}
+
+ public BasicDBObject ( int size ... | Add constructor with size |
<nb> public class ChunkedStreamSinkConduit extends AbstractStreamSinkConduit < StreamSi
@ override
public int writeFinal ( ByteBuffer src ) throws IOException {
SINGLE
+ if ( ! src . hasRemaining ( ) ) {
+ terminateWrites ( ) ;
+ return NUMBER0 ;
+ }
if ( lastChunkBuffer == null ) {
createLastChunk ( ... | Fix chunking issue when write is called with empty buffer |
<nb> public class SherpafyCustomization extends OsmAndAppCustomization {
@ override
public void prepareOptionsMenu ( final MapActivity mapActivity , ContextMenuAdapter adapter ) {
- filter ( adapter , R . string . exit_Button , R . string . menu_layers ,
+ filter ( adapter , R . string . menu_layers ,
R . s... | Removed exit button from sherpafy |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JobMaster extends RpcEndpoint < JobMasterGateway > {
COMMENT
private final Configuration configuration ;
- private fina... | hotfix Remove RecoveryMode from JobMaster |
<nb> public final class Utils
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class Utils
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public static int lengthExpandedTabs ( String aString , | fixed typo in javadoc |
<nb> public class PackageManagerService extends IPackageManager . Stub {
SINGLE
SINGLE
SINGLE
- if ( ( READ_EXTERNAL_STORAGE . equals ( name )
- || WRITE_EXTERNAL_STORAGE . equals ( name ) )
- && sUserManager . isInitialized ( userId ) ) {
+ if ( READ_EXTERNAL_STORAGE . equals ( name )
+ || WRITE_EXTERN... | Check user state after clearing identity |
<nb> public class FileProjectManager extends ProjectManager {
STRING0 + name ) ;
} else {
logger . warn ( STRING1 + name ) ;
+
+ file . renameTo ( new File ( file . getParentFile ( ) , name + STRING2 ) ) ;
}
}
} | For unrecoverable projects rename them with a suffix so the next time we won t try to recover them again |
<nb> public class Grammar extends Factory {
COMMENT
COMMENT
COMMENT
- public static EBoolean like ( Expr < String > left , String right ) {
+ public static EBoolean like ( Expr < String > left , String right ) {
return createBoolean ( Ops . LIKE , left , createConstant ( right ) ) ;
} | added optimization for like usage |
<nb> import NAMESPACE ;
public class EyeemActivity extends Activity {
- private static final ArrayList < String > YOLO_SUGGESTIONS = new ArrayList < String > ( ) { {
+ private static final ArrayList < String > TAG_SUGGESTIONS = new ArrayList < String > ( ) { {
add ( STRING0 ) ;
add ( STRING1 ) ;
add ( S... | Renames YOLO suggestions because they re not YOLO |
<nb> public class Source implements InsertSourceHandler ,
public void onShowContent ( ShowContentEvent event )
{
+ SINGLE
+ if ( ! SourceWindowManager . isMainSourceWindow ( ) )
+ return ;
+
ensureVisible ( true ) ;
ContentItem content = event . getContent ( ) ;
server_ . newDocument ( | ignore show content events in source satellites |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
-
public class MessageBarUtils {
private static final long DELAY_MILLIS = NUMBER0 ;
public static enum MessageBarType { INFO , ALERT } | Cleaned up MessageBarUtils |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SnakeAnnotation {
SnakeTimer . broadcast ( String . f... | Handle error when user closes browser while playing snake game |
<nb> public final class GatedStreamSinkChannel implements StreamSinkChannel {
private void exit ( int oldVal , int enterFlag , final int setFlags ) {
int newVal = oldVal & ~ enterFlag | setFlags ;
- while ( ! stateUpdater . compareAndSet ( this , oldVal , newVal ) ) {
- oldVal = state ;
- newVal = oldVal & ... | Don t CAS on exit |
<nb> public class SpdySessionHandler
spdySession . closeLocalSide ( streamID ) ;
}
if ( closeSessionFuture != null && spdySession . noActiveStreams ( ) ) {
- closeSessionFuture . setSuccess ( ) ;
+ closeSessionFuture . trySuccess ( ) ;
}
}
<nb> public class SpdySessionHandler
}
if ( closeSession... | allow multiple notification of closeSessionFuture |
<nb> public class IrcStack
{
return ;
}
-
- SINGLE
- SINGLE
this . chatroom . updateSubject ( msg . getTopic ( ) . getValue ( ) ) ;
} | Removed obsolete FIXME since now the ChatConversationPanel refactorings have been merged |
<nb> public class SearchChatRoomPanel
if ( namePanel . getChatRoomName ( ) . length ( ) > NUMBER0 )
{
Vector < String > newCRL = new Vector < String > ( ) ;
- for ( String s : serverRooms )
- if ( s . startsWith ( namePanel . getChatRoomName ( ) ) ) newCRL . add ( s ) ;
+
+ if ( serverRooms != null )
+ ... | Fix a NPE when searching for rooms in the SearchChatRoomPanel |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StaticS3FirehoseFactory implements FirehoseFactory < StringInputRowPa
. getDataInputStream ( ) ;
final InputStream outerI... | Fix concatenated gzip files in StaticS3FirehoseFactory |
<nb> public class ServiceDiscoveryResult {
}
public Identity ( final JSONObject o ) {
+
this (
o . optString ( STRING0 , null ) ,
o . optString ( STRING1 , null ) ,
<nb> public class ServiceDiscoveryResult {
this . hash = hash ;
this . ver = ver ;
- JSONArray identities = o . optJSONArray ( STRI... | use the same typo in both saving disco and reading disco |
<nb> public abstract class AbstractTransportTest {
ServiceAccountCredentials . class . cast ( GoogleCredentials . fromStream ( credentialsStream ) ) ;
credentials = credentials . createScoped ( Arrays . < String > asList ( authScope ) ) ;
TestServiceGrpc . TestServiceBlockingStub stub = blockingStub
- . withInt... | Fix serviceAccountCreds test and computeEngineCreds test |
<nb> public class DependencyManager implements InstallShinyEvent . Handler
userPrompt ,
new Dependency [ ] {
Dependency . cranPackage ( STRING0 , STRING1 ) ,
- Dependency . cranPackage ( STRING2 , STRING3 ) ,
Dependency . cranPackage ( STRING4 , STRING5 ) ,
Dependency . cranPackage ( STRING6 , STRING7 ) ,
... | remove caTools dependency for shiny |
<nb> public class WifiStateMachine extends StateMachine {
replyToMessage ( message , message . what , FAILURE ) ;
break ;
case CMD_GET_CONFIGURED_NETWORKS :
- replyToMessage ( message , message . what ,
- mWifiConfigStore . getConfiguredNetworks ( ) ) ;
+ replyToMessage ( message , message . what , ( List <... | Fix getConfiguredNetworks when wifi is disabled |
<nb> public class ClusteredEventBusTest extends EventBusTestBase {
} ) . completionHandler ( onSuccess ( v2 - > {
regLatch . countDown ( ) ;
} ) ) ;
- regLatch . countDown ( ) ;
} ) ) ;
awaitLatch ( regLatch ) ; | Removed extra latch countdown that can caused non deterministic test failures |
<nb> public class ExasolSchema extends ExasolGlobalObject implements DBSSchema , DBPRe
}
@ override
- public Class < ? extends DBSObject > getChildType ( DBRProgressMonitor monitor ) throws DBException {
- SINGLE
- return null ;
+ public Class < ExasolTableBase > getChildType ( DBRProgressMonitor monitor ... | Implemented missing getChildType Method |
<nb> public class ExtensibleQueryFactory < Result , Parameters > extends QueryFactory < Res
@ override
@ notnull
- public List < QueryExecutor < Result , Parameters > > getExecutors ( ) {
+ protected List < QueryExecutor < Result , Parameters > > getExecutors ( ) {
return myPoint . getValue ( ) . getExtensi... | remove debug output |
<nb> final class BackStackRecord extends FragmentTransaction implements
private static void setNameOverride ( ArrayMap < String , String > overrides ,
String source , String target ) {
- if ( source != null && target != null && ! source . equals ( target ) ) {
+ if ( source != null && target != null ) {
for... | Fix bug in Fragment Transitions where shared elements use same name |
<nb> public class TransferEnvelopeSerializerTest {
COMMENT
private void readAndCheckNotificationList ( FileInputStream fileInputStream ) throws IOException {
- byte [ ] temp = new byte [ SIZE_OF_INTEGER ] ;
- fileInputStream . read ( temp ) ;
- final int sizeOfDataBlock = bufferToInteger ( temp ) ;
+ if (... | Adapted junit test to new serialization format |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class AnnotationMapper implements Mapper < Object > {
columnToPath . put ( column . getMetadata ( ) . getExpression ( ) . toString ( ) , column ) ;
}
Map < Path < ? > ,... | fixed AnnotationMapper as well |
<nb> public class ChangedUniqueConstraintChangeGenerator implements ChangedObjectCha
Index backingIndex = uniqueConstraint . getBackingIndex ( ) ;
if ( comparisonDatabase instanceof OracleDatabase ) {
if ( backingIndex != null && backingIndex . getName ( ) != null ) {
- returnList . addAll ( Arrays . asList ( C... | Handle NPE when no changes in backing index but a changed unique constraint |
<nb> public class OStorageDistributedHazelcast extends OStorageDistributed {
}
OLogManager . instance ( ) . debug ( this , STRING0 , ( Object [ ] ) addresses ) ;
- client = HazelcastClient . newHazelcastClient ( CLUSTER_NAME , CLUSTER_PASSWORD , true , addresses ) ;
+ client = HazelcastClient . newHazelcastCl... | Removed shuffle on selection of the nodes to open |
<nb> public class PipelineRepositoryTest {
private PipelineRepository pipelineRepository ;
private SystemEnvironment systemEnvironment ;
private DatabaseStrategy databaseStrategy ;
- private QueryExtensions queryExtensions ;
@ before
public void setup ( ) {
<nb> public class PipelineRepositoryTest {
g... | Removing unused mocking in the test setup |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public final class PreviewSettingsTopComponent extends TopComponent {
+ final class PreviewSettingsTopComponent extends TopComponent {
private static PreviewSettingsTopComponent instance ;
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
... | Set visibility of top components to package |
<nb>
COMMENT
package NAMESPACE ;
- SINGLE
COMMENT
COMMENT
COMMENT | removed fixed TODO task |
<nb> public class InformationSchemaServiceTest extends AbstractZenNodesTests {
private void serviceSetup ( ) {
node = startNode ( ) ;
+ parseService = node . injector ( ) . getInstance ( SQLParseService . class ) ;
+ informationSchemaService = node . injector ( ) . getInstance ( InformationSchemaService . cla... | fix broken InformationSchemaServiceTest setup |
<nb> public class TaskViewServiceTest {
public void shouldStoreDefaultValuesGivenForPropertiesInAPluginWhenInitializingANewTaskPlugin ( ) throws Exception {
String plugin = STRING0 ;
when ( pluginManager . getPluginDescriptorFor ( plugin ) ) . thenReturn ( new GoPluginDescriptor ( plugin , STRING1 , null , null ,... | fixing failing test |
<nb> public enum AndroidExcludedRefs {
}
} ,
+ CONNECTIVITY_MANAGER__SINSTANCE ( SDK_INT <= M ) {
+ @ override void add ( ExcludedRefs . Builder excluded ) {
+ excluded . instanceField ( STRING0 , STRING1 )
+ . reason ( STRING2
+ + STRING3
+ + STRING4
+ + STRING5
+ + STRING6
+ + STRING7
+ + ST... | Ignore ConnectivityManager leak |
<nb> class SingleChannelMongoClient extends AbstractMongoClient {
}
}
+ public ServerAddress getServerAddress ( ) {
+ return channel . getAddress ( ) ;
+ }
+
@ override
public void close ( ) {
if ( channel != null ) { | Added getServerAddress to SingleChannelMongoClient |
<nb> public class ContactListSearchKeyDispatcher
|| e . getKeyCode ( ) == KeyEvent . VK_DELETE
|| e . getKeyCode ( ) == KeyEvent . VK_BACK_SPACE
|| e . getKeyCode ( ) == KeyEvent . VK_TAB
+ || e . getKeyChar ( ) == STRING0
|| e . getKeyCode ( ) == KeyEvent . VK_SPACE
|| ( selectedGroup != null
&& ( e . ge... | Ignore tab character in contact list search Patch by Markus Kilas |
<nb> public final class Iconics {
SINGLE
}
+ SINGLE
+ public static void on ( TextView view ) {
+ SINGLE
+ new Iconics . IconicsBuilder ( ) . ctx ( view . getContext ( ) ) . on ( view ) . build ( ) ;
+ }
+
+ public static void update ( TextView view , String text ) {
+ view . setText ( text ) ;
... | add some new useful short methods inside the Iconcis class |
<nb> public class PyBuiltinCache {
COMMENT
COMMENT
@ notnull private final Map < String , PyClassTypeImpl > myTypeCache = new HashMap < String , PyClassTypeImpl > ( ) ;
- @ nullable private PyType STRING_TYPE_PY2 = null ;
@ nullable private PyFile myBuiltinsFile ;
@ nullable private PyFile myExceptionsFil... | Fixed PIEAE in referencing obsolete cached PSI elements for built in str unicode type |
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
if ( adapter != null && mItemCount > NUMBER0 &&
motionPosition != INVALID_POSITION &&
motionPosition < adapter . getCount ( ) && sameWindow ( ) ) {
- performItemClick ( getChildAt ( motionPosition - mFirstPosition ) , motio... | Don t pass a null View to OnListItemClickListener |
<nb> public class DTree extends Iced {
void init_tree ( ) { for ( int j = NUMBER0 ; j < _len ; j ++ ) _ns [ j ] . _tree = this ; }
SINGLE
- public final Node node ( int i ) {
- if ( i >= _len )
- throw new ArrayIndexOutOfBoundsException ( i ) ;
- return _ns [ i ] ;
- }
+ public final Node node ( int i... | Remove unnecessary exception handling |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.