diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class IDManager {
COMMENT
COMMENT
COMMENT
- private static final long MAX_PARTITION_BITS = NUMBER0 ;
+ private static final long MAX_PARTITION_BITS = NUMBER1 ;
COMMENT
COMMENT
COMMENT | undo change to IDManager |
<nb> public class MapStoreWriteProcessor implements ScheduledEntryProcessor < Data , Obj
SINGLE
for ( ScheduledEntry duplicateKey : duplicateKeys ) {
Object key = duplicateKey . getKey ( ) ;
- if ( map . containsKey ( key ) ) {
- final Exception ex = tryStore ( scheduler , new AbstractMap . SimpleEntry ( key ... | minor fix map remove |
<nb> public class AsyncHttpResponseHandler {
onProgress ( ( ( Integer ) response [ NUMBER0 ] ) . intValue ( ) , ( ( Integer ) response [ NUMBER1 ] ) . intValue ( ) ) ;
break ;
case RETRY_MESSAGE :
- onRetry ( ) ;
+ handleRetryMessage ( ) ;
break ;
}
} | change retry handler to call appropriate method |
<nb> public abstract class ProcessorDefinition < Type extends ProcessorDefinition > exte
}
addInterceptStrategies ( routeContext , channel , this . getInterceptStrategies ( ) ) ;
- SINGLE
+ SINGLE
ProcessorDefinition defn = ( ProcessorDefinition ) this ;
SINGLE
<nb> public abstract class ProcessorDefi... | add note about the compiler specific syntax |
<nb> public class JCVideoPlayerStandard extends JCVideoPlayer {
}
private void changeUiToClearUiPlaying ( ) {
- changeUiToClearUi ( ) ;
+ SINGLE
+ topContainer . setVisibility ( View . INVISIBLE ) ;
+ bottomContainer . setVisibility ( View . INVISIBLE ) ;
+ startButton . setVisibility ( View . INVISIBLE... | playing loading status |
<nb> public class SystemPropertiesConfiguration
{
GraphDatabaseSetting setting = ( GraphDatabaseSetting ) field . get ( null ) ;
if ( setting . name ( ) . equals ( key ) )
+ {
+ setting . validate ( ( String ) prop . getValue ( ) ) ;
systemProperties . put ( key , ( String ) prop . getValue ( ) ) ;
+ }
... | Validate settings in system properties |
<nb> public abstract class AbstractLocker < S extends LockStatus > implements Locker {
public void writeLock ( KeyColumn lockID , StoreTransaction tx ) throws TemporaryLockingException , PermanentLockingException {
if ( lockState . has ( tx , lockID ) ) {
- log . warn ( STRING0 , tx , lockID ) ;
+ log . debug... | Reduced loglevel on a benign locking condition |
<nb> public class LegendRenderer extends Renderer {
case PIECHART_CENTER :
posX = mViewPortHandler . getChartWidth ( ) / FLOAT0 + ( direction == Legend . LegendDirection . LEFT_TO_RIGHT ? - mLegend . mTextWidthMax / FLOAT0 : mLegend . mTextWidthMax / FLOAT0 ) ;
- posY = mViewPortHandler . getChartHeight ( ) / F... | Consider yOffsest when rendering pie chart legend |
<nb> public class GlyphLayout implements Poolable {
if ( i < start + NUMBER0 || i > start + NUMBER1 ) break ; SINGLE
Color color = colorPool . obtain ( ) ;
colorStack . add ( color ) ;
- Color . rgb888ToColor ( color , colorInt ) ;
+ Color . rgba8888ToColor ( color , colorInt ) ;
if ( i <= start + NUMBER2 )... | Fixed color tag alpha |
<nb> public class DisambiguationPatternRule extends Rule {
}
}
thisMatched |= elem . match ( matchToken ) ;
- exceptionMatched |= elem . exceptionMatch ( matchToken ) ;
+ exceptionMatched |= ( elem . exceptionMatch ( matchToken )
+ || elem . andGroupExceptionMatch ( matchToken ) ) ;
SINGLE
if ( ! thisMa... | add and as a cherry on a cake |
<nb> public class CoinChanging {
int total = NUMBER0 ;
int coins [ ] = { NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 } ;
System . out . println ( cc . numberOfSolutions ( total , coins ) ) ;
-
+ System . out . println ( cc . numberOfSolutionsOnSpace ( total , coins ) ) ;
+ cc . printCoinChangingSolution... | Coin Changin use the N space solution and print changes |
<nb> public class ExistingTemplatesComponent {
tree . setShowsRootHandles ( true ) ;
tree . setDragEnabled ( false ) ;
tree . setEditable ( false ) ;
- tree . getSelectionModel ( ) . setSelectionMode ( TreeSelectionModel . DISCONTIGUOUS_TREE_SELECTION ) ;
+ tree . getSelectionModel ( ) . setSelectionMode ( Tr... | only allow single selection in Existing Templates dialog |
<nb> package NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public class App { | Improve Chain Javadoc |
<nb> public interface PConstants {
public static final int BILINEAR = NUMBER0 ;
COMMENT
public static final int TRILINEAR = NUMBER1 ;
+
COMMENT
public static final int CLAMP = NUMBER2 ;
COMMENT
<nb> public class PGraphicsOpenGL extends PGraphics {
PTexture . Parameters params = ( PTexture . Parameters... | using texture wrap setting |
<nb> public class DistributedRequestContextManager {
} catch ( IOException e ) {
ctx . addFailure ( e ) ;
logger . error ( STRING0 , e ) ;
+ return ;
}
assert rows != null ;
ctx . add ( rows ) ; | added missing return |
<nb> public class TestStorageManagerConfig
. setCompactionEnabled ( true )
. setMaxShardRows ( NUMBER0 )
. setMaxShardSize ( new DataSize ( NUMBER1 , MEGABYTE ) )
- . setMaxBufferSize ( new DataSize ( NUMBER1 , MEGABYTE ) ) ) ;
+ . setMaxBufferSize ( new DataSize ( NUMBER1 , MEGABYTE ) )
+ . setOneSplitPerB... | Fix tests for raptor storage manager |
<nb> public class UpdateService extends Service {
SINGLE
if ( dangerous && restricted && hook . isDangerous ( ) ) {
- PRestriction restriction = new PRestriction ( uid , hook . getRestrictionName ( ) , hook . getName ( ) , true ) ;
+ PRestriction restriction = new PRestriction ( uid , hook . getRestrictionNam... | Fixed update dangerous functions |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class CounterToRateMetricTransform implements MetricObserver {
COMMENT
COMMENT
COMMENT
- @ visiblefortesting
@ edu.umd.cs.findbugs.annotations.suppresswarnings (
v... | Reduce visibility for constructor used for testing |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAM... | ca removed unused imports |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public abstract class ListFragment < E extends AbsListView > extends Fragment {
<nb> public abstract class ListFragment < E extends AbsListView > extends Fragment {
FrameLayout lframe = new FrameLayou... | Change the font on the error empty state |
<nb> public class GetGlueObjectLoader extends GenericListLoader < GetGlueObject > {
@ override
public List < GetGlueObject > loadInBackground ( ) {
+ SINGLE
+ mQuery = mQuery . replace ( STRING0 , STRING1 ) ;
+
String url = GetGlue . GETGLUE_APIPATH_V2 + GetGlue . GETGLUE_FIND_OBJECTS + mQuery ;
SINGL... | Encode white spaces |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StorageNotification extends SystemUI {
public void onDiskScanned ( DiskInfo disk , int volumeCount ) {
onDiskScannedInternal ( disk , volumeCount ) ;
}
+
+ @ override
+ pu... | If a Disk goes away remove the notifications that asks the user to format it |
<nb> public class CallBusActor extends EventBusActor {
ApiOffer offer = ( ApiOffer ) signal ;
peerCall . onAdvertised ( senderDeviceId , new PeerSettings ( offer . getOwnPeerSettings ( ) ) ) ;
peerCall . onOffer ( senderDeviceId , offer . getSdp ( ) ) ;
- SINGLE
+ peerCall . onTheirStarted ( senderDeviceId ) ... | Fixing their start |
<nb> public class JBTerminalSystemSettingsProvider extends DefaultTabbedSettingsProvi
}
@ override
+ public KeyStroke [ ] getFindKeyStrokes ( ) {
+ return getKeyStrokesByActionId ( STRING0 ) ;
+ }
+
+ @ override
public ColorPalette getTerminalColorPalette ( ) {
return new JBTerminalSchemeColorPalett... | Take colors and keys for find in terminal from settings |
<nb> public class IndexingMemoryController extends AbstractLifecycleComponent < Indexin
class ShardsIndicesStatusChecker implements Runnable {
@ override
public synchronized void run ( ) {
- calcAndSetShardBuffers ( ) ;
- }
-
- private void calcAndSetShardBuffers ( ) {
List < IndexShard > availableShard... | Absorb core ShardsIndicesStatusChecker logic into body of run |
<nb> public class XContentGenerator {
}
public XContentBuilder getXContentBuilder ( ) throws StandardException {
- try {
- jsonBuilder = jsonBuilder . endObject ( ) ;
- } catch ( IOException ex ) {
- throw new StandardException ( ex ) ;
- }
return jsonBuilder ;
} | no object to end here just return the jsonBuilder |
<nb> public abstract class AbstractOneDReader implements OneDReader {
throw new ReaderException ( STRING0 ) ;
}
- static void recordPattern ( BitArray row , int start , int [ ] counters ) throws ReaderException {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+... | Make two methods public for easier reuse by third party implementaitons |
<nb> public class SentenceSourceIndexer extends DefaultHandler implements AutoCloseab
public static void main ( String . . . args ) throws Exception {
if ( args . length != NUMBER0 ) {
System . out . println ( STRING0 + SentenceSourceIndexer . class . getSimpleName ( ) + STRING1 ) ;
- System . out . println ( S... | improve javadoc and usage |
<nb> public class GitUpdateProcess {
return false ;
}
- if ( myUpdaters . isEmpty ( ) ) return false ;
+ if ( myUpdaters . isEmpty ( ) ) return true ;
SINGLE
for ( Map . Entry < VirtualFile , GitUpdater > entry : myUpdaters . entrySet ( ) ) {
VirtualFile root = entry . getKey ( ) ; | correctly say all files up to date when there s no remote changes |
<nb> public class ServerContainerImpl extends ClientContainerImpl implements
public void publishServer ( Class < ? extends Endpoint > clazz )
throws DeploymentException {
+ if ( servletContext == null ) {
+ throw new IllegalArgumentException (
+ sm . getString ( STRING0 ) ) ;
+ }
+
Endpoint ep = null ... | Fix a bunch of failing unit tests |
<nb> public class ColumnSnapshotGenerator extends JdbcSnapshotGenerator {
if ( columnMetadataResultSet . get ( STRING0 ) == null ) {
columnMetadataResultSet . set ( STRING0 , columnMetadataResultSet . get ( STRING1 ) ) ;
+ if ( columnMetadataResultSet . get ( STRING0 ) != null && ( ( String ) columnMetadataResu... | GenerateChangeLog of a table with DEFAULT VALUE NULL creates defaultValueComputed NULL |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
COMMENT
COMMENT
+ @ ignore
public class ThreeClientsRecordDeleteWithTransactionsOnMultipleServersScenarioTest extends Abstr... | Ignored test case |
<nb> public class Linter {
options . setWarningLevel ( DiagnosticGroups . LINT_CHECKS , CheckLevel . WARNING ) ;
options . setWarningLevel ( DiagnosticGroups . MISSING_REQUIRE , CheckLevel . WARNING ) ;
options . setWarningLevel ( DiagnosticGroups . EXTRA_REQUIRE , CheckLevel . WARNING ) ;
+ options . setWarnin... | Add the goog base check to the linter |
<nb> public class IntentCompat {
STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String EXTRA_HTML_TEXT = STRING1 ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Add constant for EXTRA_HTML_TEXT to IntentCompat |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class WebEditorOptions implements PersistentStateComponent < WebEditorOptio
return ServiceManager . getService ( WebEditorOptions . class ) ;
}
... | turn off html tree highlighting in tests |
<nb> package NAMESPACE ;
COMMENT
COMMENT
@ suppresswarnings ( STRING0 )
- public class NegativeCases {
+ public class NegativeCases extends ToBeExtended {
@ suppresswarnings ( STRING0 )
public void suppressedMethod1a ( ) { }
<nb> public class NegativeCases {
@ suppresswarnings ( { STRING1 , STRING... | Added test case for fallthrough suppression with a non SuppressWarnings |
<nb> public class EclipseCompilerDriver implements IEclipseCompilerDriver {
true ,
outputDir ,
relativePath ,
- classFile ) ;
+ classFile . getBytes ( ) ) ;
}
catch ( IOException e ) {
LOG . error ( e ) ; | revert eclipse jar since it is not supported by our version of jasper |
<nb> public class AlertController {
View titleTemplate = mWindow . findViewById ( R . id . title_template ) ;
titleTemplate . setVisibility ( View . GONE ) ;
mIconView . setVisibility ( View . GONE ) ;
+ topPanel . setVisibility ( View . GONE ) ;
hasTitle = false ;
}
} | Remove top panel in alert dialog if empty |
<nb> public class TrainNewsGroups {
traceDictionary . clear ( ) ;
Vector v = encodeFeatureVector ( file , actual , leakType ) ;
md . update ( v , traceDictionary , learningAlgorithm . getBest ( ) . getPayload ( ) . getLearner ( ) ) ;
- if ( k % NUMBER0 == NUMBER1 ) {
+ if ( k % NUMBER2 == NUMBER1 ) {
System... | Fixed progress display in dissection |
<nb> public class DefaultTestHttpClient implements TestHttpClient {
response = client . request ( uri , Duration . ofMinutes ( NUMBER0 ) , requestSpec - > {
final RequestSpec decorated = new CookieHandlingRequestSpec ( requestSpec ) ;
+ decorated . method ( STRING0 ) ;
defaultRequestConfig . execute ( decorat... | Ensure that request defaults to GET method if not specified |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Main {
JTextPane textPane = new JTextPane ( ) ;
textPane . setEditable ( false ) ;
textPane . setText ( message . replaceAll ( STRING0 , STR... | startup error dialog UI tuned a little bit use UIUtil to get panel color |
<nb> public class InspectionResultsView extends JPanel implements Disposable , Occuren
@ nullable private InspectionProfile myInspectionProfile ;
private AnalysisScope myScope ;
@ nonnls
- public static final String HELP_ID = STRING0 ;
+ public static final String HELP_ID = STRING1 ;
public final Map < High... | inspection results window |
<nb> public final class HostAndPort implements Serializable {
COMMENT
COMMENT
public static HostAndPort fromParts ( String host , int port ) {
- checkArgument ( isValidPort ( port ) ) ;
+ checkArgument ( isValidPort ( port ) , STRING0 , port ) ;
HostAndPort parsedHost = fromString ( host ) ;
- checkArgume... | Improve exception messages for HostAndPort fromParts |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HanziToPinyinTest extends TestCase {
@ smalltest
public void testGetToken ( ) throws Exception {
+ if ( ! Arrays . asList ( Collator . getAvailableLocales ( ) ) . contains ( L... | Disable the HanziToPinyinTest when there is no Chinese collator |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class GuiceFactory implements ObjectFactory {
classes . add ( clazz ) ;
}
- public void addInstance ( Object instance ) {
+ public void addStepMother ( StepMother m... | Rename method to inject step mother |
<nb> public class VideoplayerActivity extends MediaplayerActivity {
@ override
protected void onCreate ( Bundle savedInstanceState ) {
getWindow ( ) . addFlags ( WindowManager . LayoutParams . FLAG_KEEP_SCREEN_ON ) ;
+ supportRequestWindowFeature ( WindowCompat . FEATURE_ACTION_BAR_OVERLAY ) ; SINGLE
super . ... | Call supportRequestWindowFeature before setting layout content |
<nb> public class EnglishGrammaticalRelations {
SINGLE
SINGLE
- SINGLE
+ SINGLE
SINGLE
STRING0 ,
<nb> public class EnglishGrammaticalRelations {
SINGLE
SINGLE
SINGLE
+ SINGLE
STRING1 ,
SINGLE | Improve doc examples a little |
<nb> public class Constants {
System . getProperty ( STRING0 , STRING1 ) ;
COMMENT
- COMMENT
- COMMENT
- public static final String SERVLET_CONTENT_TYPE = STRING2 ;
-
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Constants {
public static final String CATALINA_HOME_PROP = STRING3 ;
C... | Remove unused constants |
<nb> public class TriView extends Stage
{
if ( ! ignoreComboChanged )
{
- TriView . this . setMember ( newVal ) ;
+ if ( newVal != null )
+ {
+ TriView . this . setMember ( newVal ) ;
+ }
}
}
} ) ; | Fixed NPE when changing class in TriView |
<nb> public class TestWsWebSocketContainer extends TomcatBaseTest {
WebSocketContainer wsContainer = ContainerProvider . getClientContainer ( ) ;
+ SINGLE
+ SINGLE
+
+ wsContainer . setMaxBinaryMessageBufferSize ( NUMBER0 ) ;
+ wsContainer . setMaxTextMessageBufferSize ( NUMBER0 ) ;
+
if ( isServerB... | Fix one cause of WebSocket unit test failures |
<nb> public abstract class AbstractFeatureTest {
vmOption ( STRING0 ) ,
- KarafDistributionOption . keepRuntimeFolder ( ) ,
+ SINGLE
SINGLE
SINGLE
KarafDistributionOption . replaceConfigurationFile ( STRING1 , new File ( STRING2 ) ) ,
<nb> public class OSGiIntegrationTestSupport extends CamelTestSuppo... | Don t keep the runtime folders to avoid the target dirs from blowing up in sized |
<nb> public class AnalyticsTrackerMixpanel implements AnalyticsTracker . Tracker {
mixpanelInstructionsForEventName ( STRING0 ) ;
instructions . setSuperPropertyAndPeoplePropertyToIncrement ( STRING1 ) ;
instructions . setCurrentDateForPeopleProperty ( STRING2 ) ;
+ break ;
case STATS_PERIOD_DAYS_ACCESSED :
... | Add missing break statements |
<nb> public class ReaderPostPagerActivity extends Activity
@ override
public void restoreState ( Parcelable state , ClassLoader loader ) {
- AppLog . d ( AppLog . T . READER , STRING0 ) ;
- super . restoreState ( state , loader ) ;
+ try {
+ AppLog . d ( AppLog . T . READER , STRING0 ) ;
+ super . resto... | Added IllegalStateException catch in adapter s restoreState |
<nb> public class StubBasedPsiElementBase < T extends StubElement > extends ASTDelegateP
myElementType = node . getElementType ( ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public StubBasedPsiElementBase ( T stub , IElementType nodeType , ASTNode node ) {
+ if ( stub != null ) {
+ LO... | added generalized constructor to StubBasedPsiElementBase to allow inheriting from it in poor languages which doesn t support multiple constructors |
<nb> public class ResolveVisitor extends ClassCodeExpressionTransformer {
if ( ! isClass ) {
SINGLE
SINGLE
- SINGLE
+ SINGLE
SINGLE
if ( Character . isLowerCase ( name . charAt ( NUMBER0 ) ) ) {
t = new LowerCaseClass ( name ) ; | Fix typo in comment |
<nb> public class PaymentMethodProcessor extends ProcessorBase {
final PaymentMethodModelDao currentDefaultPaymentMethod = paymentDao . getPaymentMethod ( account . getPaymentMethodId ( ) , context ) ;
shouldUpdateDefaultPaymentMethod = pluginName . equals ( currentDefaultPaymentMethod . getPluginName ( ) ) ;
}
... | Fix refactoring mistake in refresh payment gateway |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public abstract class AbstractStore extends AbstractIndexShardComponent implemen
SINGLE
this . digest = null ;
} else {
- this . digest = n... | add adler to checksum faster and is good enough with length check for our use case |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ScriptEngineImpl implements ScriptEngine {
final int MAX_TRIES = NUMBER0 ;
for ( int i = NUMBER1 ; i < MAX_TRIES ; i ++ ) {
SINGLE
- URI s... | overlooked dependency cycle removed dep to model script actions again |
<nb> public class AstridWrapperActivity extends FragmentActivity
public void onTaskListItemClicked ( long taskId ) {
Intent intent = new Intent ( this , TaskEditWrapperActivity . class ) ;
intent . putExtra ( TaskEditActivity . TOKEN_ID , taskId ) ;
+ getIntent ( ) . putExtra ( TaskEditActivity . TOKEN_ID , tas... | Fixed a bug where blank tasks would be created when adding TEA |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ C... | Adding standard license doc to PropertyViewAttributeSpy |
<nb> public class ConfusionMatrix < T extends Comparable < ? super T > > implements Seriali
this . classes = classes ;
}
+ public ConfusionMatrix ( ) { }
+
COMMENT
COMMENT
COMMENT
<nb> public class RNTNEval {
public String stats ( ) {
StringBuilder builder = new StringBuilder ( )
. append ( STRI... | fixed evaluation and tests |
<nb> public class JSR356WebSocket extends WebSocket {
@ override
public void onResult ( SendResult result ) {
semaphore . release ( ) ;
- if ( ! result . isOK ( ) || result . getException ( ) != null && r != null ) {
+ if ( ! result . isOK ( ) || result . getException ( ) != null ) {
logger . trace ( STRING... | Fix possible NPE |
<nb> public class Util {
public static URL url ( String path ) throws MalformedURLException {
SINGLE
- if ( path . startsWith ( STRING0 ) )
- {
- path = path . replace ( STRING1 , STRING2 ) ;
+ if ( path . startsWith ( STRING0 ) ) {
+ path = path . replace ( STRING1 , STRING2 ) ;
}
return new URL ( ... | Fix styling to match project standards |
<nb> public class InitManagementResponse extends ManagementResponse {
public static final int OK = NUMBER0 ;
public static final int NOK_OPERATION_FAILED = NUMBER1 ;
public static final int NOK_FAILED_TEST = NUMBER2 ;
- public static final int NOK_FAILED_UNKNOWN = NUMBER2 ;
+ public static final int NOK_FAILE... | Add correct error code |
<nb>
COMMENT
COMMENT
- package NAMESPACE ;
+ package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | fixed new ObjLoader had wrong package name |
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener
attrs , com . android . internal . R . styleable . View , defStyleAttr , defStyleRes ) ;
boolean focusable = mMovement != null || getKeyListener ( ) != null ;
- boolean clickable = focusable ;
- boolean longClickable = foc... | Fix TextView clickable state when using onClick attribute |
<nb> public class TestDateTimeFormatterBuilder extends TestCase {
assertEquals ( dt , f . parseDateTime ( STRING0 ) ) ;
}
+ public void test_printParseZoneGMT ( ) {
+ DateTimeFormatterBuilder bld = new DateTimeFormatterBuilder ( )
+ . appendPattern ( STRING1 ) ;
+ DateTimeFormatter f = bld . toFormatter (... | Ensure GMT parses |
<nb> public interface Player extends HumanEntity , CommandSender {
COMMENT
COMMENT
public void playNote ( Location loc , byte instrument , byte note ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void sendBlockChange ( Location loc , Material mat... | Added method to fake a block change request for a player |
<nb> public class SSTableExport
{
Config . setClientMode ( true ) ;
- Option optKey = new Option ( KEY_OPTION , true , STRING0 ) ;
+ Option optKey = new Option ( KEY_OPTION , true , STRING1 ) ;
SINGLE
optKey . setArgs ( NUMBER0 ) ;
options . addOption ( optKey ) ;
- Option excludeKey = new Option ( ... | fixed help text in sstabledump |
<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
COMMENT
public class ActiveWizardDialog ext... | Save wizards bounds |
<nb> public final class JPAProvider {
addMapping ( STRING0 , EclipseLinkTemplates . DEFAULT ) ;
addMapping ( STRING1 , OpenJPATemplates . DEFAULT ) ;
addMapping ( STRING2 , DataNucleusTemplates . DEFAULT ) ;
- addMapping ( STRING3 , DataNucleusTemplates . DEFAULT ) ;
+ addMapping ( STRING4 , DataNucleusTempla... | improved DataNucleus detection |
<nb> public interface ViewParent {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Expand documentation around ViewParent childHasTransientStateChanged |
<nb> public class JavaPlugin implements Plugin {
test . getOptions ( ) . setFork ( true ) ;
test . getOptions ( ) . getForkOptions ( ) . setForkMode ( ForkMode . PER_TEST ) ;
test . getOptions ( ) . getForkOptions ( ) . setDir ( project . getProjectDir ( ) ) ;
- test . include ( STRING0 , STRING1 , STRING2 ) ; ... | Fixed wrong default include exclude patterns for unit tests |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class FunctionCodegen {
public void gen ( @ notnull KtNamedFunction function ) {
SimpleFunctionDescriptor functionDescriptor = bindingContext . get ( BindingContext . FUNCTION , function ) ;
- assert functionDescriptor != null : ... | add additional logging on missing function descriptor |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT | we are not using TestNG |
<nb> public class Response
String contextPath = getContext ( ) . getPath ( ) ;
if ( contextPath != null ) {
String file = url . getFile ( ) ;
- if ( ( file == null ) || ! file . startsWith ( contextPath ) ) {
+ if ( ! file . startsWith ( contextPath ) ) {
return false ;
}
String tok = STRING0 +
<nb> p... | The variable cannot be null but empty string |
<nb> public class PdeRuntime implements PdeMessageConsumer {
public void message ( String s ) {
- System . err . println ( STRING0 + s . length ( ) + STRING1 + s ) ;
+ SINGLE
SINGLE
SINGLE
if ( s . indexOf ( PApplet . EXTERNAL_QUIT ) == NUMBER0 ) { | removing debug stuff |
<nb> public interface BitmapPool {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix a typo in BitmapPool put comment |
<nb> public class Capsule implements Runnable {
int i = NUMBER0 ;
for ( Map . Entry < Object , String > e : depsAndRename . entrySet ( ) ) {
final Path lib = resolved . get ( i ) ;
- final String rename = emptyToNull ( sanitize ( e . getValue ( ) ) ) ;
+ final String rename = emptyToNull ( e . getValue ( ) ) ... | remove redundant sanitize |
<nb> public class AddColumnGeneratorSQLite extends AddColumnGenerator {
}
@ override
+ public boolean generateStatementsIsVolatile ( Database database ) {
+ return true ;
+ }
+
+ @ override
public Sql [ ] generateSql ( final AddColumnStatement statement , Database database , SqlGeneratorChain sqlGener... | SQLIte generator accesses database |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
+ i... | tidied up the imports |
<nb> public class StatFilterContext {
}
public void executeBefore ( String sql , boolean inTransaction ) {
-
+ for ( int i = NUMBER0 ; i < listeners . size ( ) ; ++ i ) {
+ StatFilterContextListener listener = listeners . get ( i ) ;
+ listener . executeBefore ( sql , inTransaction ) ;
+ }
}
publi... | add webStat support |
<nb> public class EmailDeviceInfoLens extends EmailLens {
Map < String , String > info = new LinkedHashMap < > ( ) ;
info . put ( STRING0 , version ) ;
- info . put ( STRING1 , versionCode ) ;
+ info . put ( STRING2 , versionCode ) ;
info . put ( STRING3 , Build . MANUFACTURER ) ;
info . put ( STRING4 , B... | Fix version code label |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SocketReadThread extends Thread {
catch ( EOFException eof ) {
SINGLE
}
+ catch ( SocketException se ) {
+ SINGLE... | Stop the thread and do nothing else if the socket is closed |
<nb> public class Commander implements RunnerListener {
embedJava = false ;
} else if ( arg . startsWith ( platformArg ) ) {
- complainAndQuit ( STRING0 , false ) ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ SINGLE
+ String platformStr = arg . substring ( platformArg . length ( ) ) ... | allow exports to other platforms again |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class KeymapImpl implements Keymap , ExternalizableScheme {
KeyStroke firstKeyStroke ;
String firstKeyStrokeStr = shortcutEleme... | Don t load keystrokes with INSERT key in them on Macs |
<nb> public abstract class PipeTransportSolids extends PipeTransport {
if ( APIProxy . isServerSide ( ) )
if ( item . synchroTracker . markTimeIfDelay ( worldObj , NUMBER0 * BuildCraftCore . updateFactor ) )
- CoreProxy . sendToPlayers ( createItemPacket ( item , orientation ) ,
- xCoord , yCoord , zCoord , N... | Fixed compile error |
<nb> public class MessageListFragment extends Fragment implements OnItemClickListener
}
if ( holder . from != null ) {
- holder . from . setTypeface ( null , maybeBoldTypeface ) ;
+ holder . from . setTypeface ( Typeface . create ( holder . from . getTypeface ( ) , maybeBoldTypeface ) ) ;
if ( mSenderAboveS... | Make sure to keep font meta info on view recycling |
<nb> public class FPSCounter implements IEntity , TimeConstants {
@ override
public void onUpdate ( final float pSecondsElapsed ) {
this . mFramesInThisSecond ++ ;
- final long now = System . currentTimeMillis ( ) ;
+ final long now = System . nanoTime ( ) ;
final long diff = now - this . mTimestampLastLogg... | FPSCounter now using System nanotime instead of System currentTimeMillis |
<nb> public class AjpServerRequestConduit extends AbstractStreamSourceConduit < StreamS
if ( headerRead != HEADER_LENGTH ) {
int read = next . read ( headerBuffer ) ;
if ( read == - NUMBER0 ) {
+ this . state = STATE_FINISHED ;
+ if ( finishListener != null ) {
+ finishListener . handleEvent ( this ) ;
+ ... | Fix issue in AJP request conduit |
<nb> public class GestureImageView extends ImageView {
protected boolean isRecycled ( ) {
if ( drawable != null && drawable instanceof BitmapDrawable ) {
- return ( ( BitmapDrawable ) drawable ) . getBitmap ( ) . isRecycled ( ) ;
+ Bitmap bitmap = ( ( BitmapDrawable ) drawable ) . getBitmap ( ) ;
+ if ( bit... | Added null check to recycle methods |
<nb> class Slurper implements Runnable {
} else {
logger . debug ( STRING0 , startTimestamp ) ;
lastId = addInsertToStream ( startTimestamp , applyFieldFilter ( object ) , collection . getName ( ) ) ;
- inProgress = false ;
}
}
+ inProgress = false ;
logger . info ( STRING1 , count ) ;
} else {
SING... | Fix miss placed inProgress |
<nb> public class DropIndexOperation extends BaseOperation < CommandResult > {
SINGLE
private CommandResult ignoreNamespaceNotFoundExceptions ( final MongoCommandFailureException e ) {
- if ( ! e . getCommandResult ( ) . getErrorMessage ( ) . equals ( STRING0 ) ) {
+ if ( ! e . getCommandResult ( ) . getError... | Relaxed check for ns not found for drop index command to just ensure that the error message contains the string |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PlayerRespawnEvent extends PlayerEvent {
COMMENT
COMMENT
public void setRespawnLocation ( Location respawnLocation ) {
+ Validate . notNull ( respawnLocation , STRING0 ) ;
+ V... | Don t allow nulls in PlayerRespawnEvent |
<nb> public abstract class MemoryManager {
SINGLE
Boot . TIME_AT_LAST_GC = System . currentTimeMillis ( ) ;
Boot . HEAP_USED_AT_LAST_GC = _allMemBean . getHeapMemoryUsage ( ) . getUsed ( ) ;
+ if ( Boot . HEAP_USED_AT_LAST_GC > ( MEM_MAX - ( MEM_MAX > > NUMBER0 ) ) ) SINGLE
+ setMemLow ( ) ;
Boot . kick_sto... | Updated MemoryManager to not to wait for Cleaner to finish when low on memory |
<nb> public class BinaryGrailsPlugin extends DefaultGrailsPlugin {
try {
final Class < ? > viewClass = application . getClassLoader ( ) . loadClass ( viewClassName ) ;
precompiledViewMap . put ( viewName , viewClass ) ;
- } catch ( ClassNotFoundException e ) {
- LOG . error ( STRING0 + this + STRING1 + e . ge... | Improve error message |
<nb> public class MarketService {
String update = dia . optString ( STRING0 , STRING1 ) ;
String skip = dia . optString ( STRING2 , STRING3 ) ;
String rate = dia . optString ( STRING4 , STRING5 ) ;
- String message = dia . optString ( STRING6 , STRING7 ) ;
+ SINGLE
String body = dia . optString ( STRING8 , ... | Remove unused fields |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StatisticsService {
if ( localyticsSession != null ) {
localyticsSession . open ( ) ; SINGLE
- return ;
+ } else {
+ localyticsSession = new LocalyticsSession ( context . ... | Added screen tagging to all currently instrumented activities |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove useless import |
<nb> public class CircleImageView extends ImageView {
@ override
public void setScaleType ( ScaleType scaleType ) {
if ( scaleType != SCALE_TYPE ) {
- throw new RuntimeException ( ) ; SINGLE
+ throw new IllegalArgumentException ( String . format ( STRING0 , scaleType ) ) ;
}
} | Throw proper exception in case of unsupported ScaleType |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.