diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public enum JobStatus {
COMMENT
FAILING ( false ) ,
- COMMENT
+ COMMENT
FAILED ( true ) ,
COMMENT
<nb> public class InputSplitIterator < T extends InputSplit > implements Iterator < T > {
this . nextInputSplit = ( T ) inputSplitProvider . getNextInputSplit ( ) ;
}
- if ( this . nextInputS... | runtime Miscellaneous style cleanups |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused imports |
<nb> class LoaderController {
}
public void onSizeChanged ( ) {
- linearGradient = null ;
startLoading ( ) ;
}
<nb> class LoaderController {
public void startLoading ( ) {
if ( valueAnimator != null && ! loaderView . valueSet ( ) ) {
- valueAnimator . cancel ( ) ;
init ( ) ;
valueAnimator . ... | Fix issue when resized change orientation |
<nb> public class SimpleDialogFragment extends BaseDialogFragment {
return this ;
}
- public SimpleDialogBuilder setHtmlMessage ( int htmlMessageResourceId ) {
- mMessage = mContext . getText ( htmlMessageResourceId ) ;
- return this ;
- }
-
- public SimpleDialogBuilder setHtmlMessage ( String htmlMes... | remove setHtmlMessages methods because setMessage now allow to user spanned string or string resource with HTML markups |
<nb> class FilterDefinition {
}
public void destroy ( ) {
- SINGLE
- filter . get ( ) . destroy ( ) ;
+ SINGLE
+ Filter reference = filter . get ( ) ;
+
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( null == reference ) {
+ return ;
+ }
+ reference . destroy ( ) ;
}
public void doFilter ( Servlet... | Fixed NPE on destroy of invalid Servlet error |
<nb> public abstract class SupportAnimator {
void onAnimationRepeat ( ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ public abstract class SimpleAnimatorListener implements AnimatorListener {
+
+ @ override
+ public void onAnimationStart ( ) {
+
+ }
+
+ @ override
+ public void onAnimationEnd ( ) {... | Provides default implementation for AnimatorListener |
<nb> public class NoteBlock {
public ImageView getImageView ( ) {
if ( mImageView == null ) {
mImageView = new ImageView ( mRootLayout . getContext ( ) ) ;
- int imageSize = DisplayUtils . dpToPx ( mRootLayout . getContext ( ) , NUMBER0 ) ;
+ int imageSize = DisplayUtils . dpToPx ( mRootLayout . getContext ( ... | Made the note block image slightly smaller |
<nb> public class Streams {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static < T > TransformablePublisher < T > flatten ( Publisher < ? extends Publisher < T > > publisher ) {
+ return flatten ( publisher , Action . noop ( ) ) ;
+ } ... | Add docs for Streams flatten |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class Journal {
private String mJournalPath ; | Fix Journal comments |
<nb> public class HumanTimeTest extends TestCase {
I18nManager i18nManager = new DummyI18nManager ( ) ;
Calendar now = Calendar . getInstance ( ) ;
+ now . setTime ( new Date ( NUMBER0 ) ) ;
HumanTime humanTime = new HumanTime ( now . getTime ( ) , i18nManager ) ;
SINGLE | taking a fixed time instead of the current time |
<nb> public class Database
}
putIfAbsent ( databaseProperties , ShellSettings . remote_shell_enabled . name ( ) , GraphDatabaseSetting . TRUE ) ;
- databaseProperties . put ( GraphDatabaseSettings . keep_logical_logs . name ( ) , GraphDatabaseSetting . TRUE ) ;
+ putIfAbsent ( databaseProperties , GraphDataba... | Server now will respect keep_logical_logs false if explicitly set |
<nb>
SINGLE
SINGLE
SINGLE
+ SINGLE
package NAMESPACE ;
<nb> public class HttpSender {
SINGLE
modifyUserAgent ( msg ) ;
method = helper . createRequestMethod ( msg . getRequestHeader ( ) , msg . getRequestBody ( ) ) ;
- method . setFollowRedirects ( isFollowRedirect ) ;
+ if ( ! ( method instan... | Cannot send non standard http methods |
<nb> public class Skin implements Disposable {
Texture texture = optional ( name , Texture . class ) ;
if ( texture == null ) throw new GdxRuntimeException ( STRING0 + name ) ;
region = new TextureRegion ( texture ) ;
- add ( name , region , Texture . class ) ;
+ add ( name , region , TextureRegion . class ) ... | add Texture Region as TextureRegion class |
<nb> abstract class ContextCompatAwareResHandler extends AbstractResHandler {
protected IJExpression getInstanceInvocation ( EComponentHolder holder , JFieldRef idRef , IJAssignmentTarget fieldRef , JBlock targetBlock ) {
if ( hasTargetMethodInContextCompat ( ) ) {
return getClasses ( ) . CONTEXT_COMPAT . staticI... | Remove redundant conditions |
<nb> public class LookupImpl extends LightweightHint implements Lookup , Disposable {
if ( ! model . isEmpty ( ) ) {
myList . setFixedCellWidth ( Math . max ( myLookupTextWidth + myCellRenderer . getIconIndent ( ) , myAdComponent . getPreferredSize ( ) . width ) ) ;
- if ( isFocused ( ) && ( ! isExactPrefixItem... | tab enter in hint mode should choose the first item |
<nb> public final class Main {
private static final String TRAY_SMALL_ICON = STRING0 ;
private static final String TRAY_SMALL_SERVER_ICON = STRING1 ;
private static final String TRAY_TOOLTIP = STRING2 ;
+ private static final String TAG_COLOR = STRING3 ;
private static final int WINDOW_WIDTH = NUMBER0 ;
p... | improve readability of tag output a bit |
<nb>
package NAMESPACE ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
-
SINGLE
SINGLE
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
-
-
SINGLE
import NAMESPACE ;
import NAMESPACE ; | remove unused imports |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ReaderActivityLauncher {
context . startActivity ( intent ) ;
}
- public static void showReaderLogViewer ( Context context ) {
- Intent ... | Removed showReaderLogViewer from ReaderActivityLauncher |
<nb> public class HttpObjectAggregator extends MessageToMessageDecoder < HttpObject > {
CompositeByteBuf content = ( CompositeByteBuf ) currentMessage . data ( ) ;
if ( content . readableBytes ( ) > maxContentLength - chunk . data ( ) . readableBytes ( ) ) {
+ chunk . free ( ) ;
SINGLE
SINGLE
SINGLE
<nb... | Fix a bug where HttpContents are freed too early |
<nb> public class PyActiveSdkConfigurable implements UnnamedConfigurable {
myDetailsCallback = new NullableConsumer < Sdk > ( ) {
@ override
public void consume ( @ nullable Sdk sdk ) {
- final Sdk moduleSdk = getSdk ( ) ;
if ( sdk instanceof PyDetectedSdk ) {
final Sdk addedSdk = SdkConfigurationUtil . cre... | fixed add local from show more dialog |
<nb> public class ATag extends BaseATag {
jspWriter . write ( STRING0 ) ;
jspWriter . write ( STRING1 ) ;
- jspWriter . write ( HtmlUtil . escape ( href ) ) ;
+ jspWriter . write ( HtmlUtil . escapeAttribute ( href ) ) ;
jspWriter . write ( STRING2 ) ;
if ( Validator . isNotNull ( target ) ) { | a uses wrong escape for the href attribute |
<nb> public class SpringBootPluginExtension {
}
public void buildInfo ( Closure < ? > taskConfigurer ) {
- BuildInfo buildInfo = this . project . getTasks ( ) . create ( STRING0 ,
+ BuildInfo bootBuildInfo = this . project . getTasks ( ) . create ( STRING1 ,
BuildInfo . class ) ;
this . project . getTasks... | Rename the default BuildInfo task to bootBuildInfo |
<nb> public class DownloadingOptionsDialog extends DialogWrapper {
private CheckBoxList myFilesList ;
private TextFieldWithBrowseButton myDirectoryField ;
private JCheckBox myDownloadSourcesCheckBox ;
+ private JCheckBox myDownloadJavadocsCheckBox ;
private JLabel myFilesToDownloadLabel ;
private JLabel myC... | hide non working options |
<nb> public class Node {
serializationService = nodeExtension . createSerializationService ( ) ;
securityContext = config . getSecurityConfig ( ) . isEnabled ( ) ? nodeExtension . getSecurityContext ( ) : null ;
+
nodeEngine = new NodeEngineImpl ( this ) ;
+
clientEngine = new ClientEngineImpl ( this ) ; ... | Removed Node getName |
<nb> public class NetworkDispatcher extends SimpleChannelInboundHandler < Packet > imple
@ override
public void close ( ChannelHandlerContext ctx , ChannelPromise promise ) throws Exception
{
+ if ( side == Side . CLIENT )
+ {
+ FMLCommonHandler . instance ( ) . bus ( ) . post ( new FMLNetworkEvent . Client... | Fix network close events never getting called |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public abstract class AbstractValueMatcher implements FuzzyValueMatcher {
List < ValueSimilarity < ? > > sims = similarities . get ( index ) ;
if ( sims == null ) {
- if ( ! actual . equals ( ... | Fixed NPE in pact testing |
<nb> public class GpsLocationProvider implements LocationProviderInterface {
SINGLE
SINGLE
private boolean mInjectNtpTimePending = true ;
- private boolean mDownloadXtraDataPending = false ;
+ private boolean mDownloadXtraDataPending = true ;
SINGLE
private boolean mNavigating ; | Restore XTRA downloading at boot |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SpellCheckingInspection extends LocalInspectionTool {
public static void ensureFactoriesAreLoaded ( ) {
synchronized ( fa... | SpellChecker should noit cache SpellCheckerTokenizer during unit test run with module dependent classpath |
<nb> public class Theme {
mIsCurrent = isCurrent ;
}
+ public boolean isPremium ( ) {
+ return ! mPrice . equals ( STRING0 ) ;
+ }
+
public void save ( ) {
WordPress . wpDB . saveTheme ( this ) ;
}
<nb> public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow
@ override... | Allowing Activate premium theme but don t try activating through API |
<nb> public final class InternalTestCluster extends TestCluster {
builder . put ( RecoverySettings . INDICES_RECOVERY_CONCURRENT_SMALL_FILE_STREAMS , RandomInts . randomIntBetween ( random , NUMBER0 , NUMBER1 ) ) ;
builder . put ( ThrottlingAllocationDecider . CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES ,... | TEST use private randomness in InternalTestCluster |
<nb> public class JettyWebSocketUtil {
if ( b == null ) b = Boolean . FALSE ;
if ( ! webSocketEnabled ) {
- logger . error ( STRING0 , req . getHeader ( STRING1 ) ) ;
return null ;
} else {
if ( webSocketFactory != null && ! b ) { | Do not log an error finally as it polute the log a lot |
<nb> public class BinaryMemcacheEncoderTest {
ByteBuf written = channel . readOutbound ( ) ;
assertThat ( written . readableBytes ( ) , is ( DEFAULT_HEADER_SIZE ) ) ;
+ written . release ( ) ;
+
written = channel . readOutbound ( ) ;
assertThat ( written . readableBytes ( ) , is ( content1 . content ( ) .... | Fix a buffer leak in BinaryMemcacheEncoderTest |
<nb> public class Observable < T > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public Observable < T > firstOrDefault ( T defaultValue ) {
return create ( OperationFirstOrDefault . firstOrDefault ( this , defaultValue ) ) ;
}
-
+
COMMENT
COMMENT
COMMENT
<nb> public class Observab... | Added link urls to the msdn descriptions |
<nb> public class NewThreadWorker extends Scheduler . Worker implements Subscription {
private final RxJavaSchedulersHook schedulersHook ;
volatile boolean isUnsubscribed ;
COMMENT
- private static final String FREQUENCY_KEY = STRING0 ;
+ private static final String FREQUENCY_KEY = STRING1 ;
COMMENT
- pri... | Changed the naming of the NewThreadWorker s system parameters |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix bad import edu emory mathcs backport java util Collections |
<nb> public interface IAtomicLong extends DistributedObject {
void set ( long newValue ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface IAtomicLong extends DistributedObject {
void alter ( Function < Long , Long > function ) ;
COMMENT
- COMMENT
+ COMMENT
COMMEN... | Updated atomiclong javadoc |
<nb> public class OreDictionary
registerOre ( STRING0 , Blocks . stone ) ;
registerOre ( STRING1 , Blocks . cobblestone ) ;
registerOre ( STRING2 , new ItemStack ( Blocks . sandstone , NUMBER0 , WILDCARD_VALUE ) ) ;
+ registerOre ( STRING3 , new ItemStack ( Blocks . sand , NUMBER0 , WILDCARD_VALUE ) ) ;
regis... | Add sand to the OreDictionary |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public interface MultipartFile {
+ public interface MultipartFile extends InputStreamSource {
COMMENT
COMMENT
<nb> public int... | MultipartFile interface extends InputStreamSource |
<nb> public class SimpleCredentialsDialog extends DialogWrapper implements DocumentLi
}
public JComponent getPreferredFocusedComponent ( ) {
- return myUserNameText ;
+ return myUserNameText . isEnabled ( ) ? myUserNameText : myPasswordText ;
}
public boolean shouldCloseOnCross ( ) { | Fixed default focused element for credentials dialog opening password is focused if username is disabled |
<nb> public class AsyncHttpClient {
COMMENT
COMMENT
public void put ( String url , RequestParams params , AsyncHttpResponseHandler responseHandler ) {
- put ( null , params , responseHandler ) ;
+ put ( null , url , params , responseHandler ) ;
}
COMMENT
<nb> public class AsyncHttpClient {
return - ... | resolves infinite loop for put with url params and responseHandler |
<nb> public class OperationSerializationTest extends HazelcastTestSupport {
Constructor constructor = op . getClass ( ) . getConstructor ( ) ;
constructor . setAccessible ( true ) ;
Operation copiedOperation = ( Operation ) constructor . newInstance ( ) ;
- if ( op instanceof DummyOperation )
copiedOperation ... | Fixed OperationSerializationTest some old code removed which was no good |
<nb> public abstract class MultiplePsiFilesPerDocumentFileViewProvider extends Single
}
file = createFile ( target ) ;
if ( file == null ) return null ;
- COMMENT
- if ( myOriginal != null ) {
- ( ( PsiFileImpl ) file ) . myOriginalFile = myOriginal . getPsi ( target ) ;
- }
- COMMENT
+ if ( myOrigina... | always set original file for all psi roots |
<nb> public final class Buffer implements BufferedSource , BufferedSink , Cloneable {
}
}
- @ override public byte [ ] readByteArray ( ) throws IOException {
+ @ override public byte [ ] readByteArray ( ) {
return readByteArray ( size ) ;
} | Remove checked exception from Buffer readByteArray |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TLSStreamHandler {
case NEED_UNWRAP :
if ( rbc . read ( incomingNetBB ) == - NUMBER0 ) {
- tlsEngine . closeInbound ( )... | Ignore the exception indicating an error |
<nb> class EmbeddedChannel extends AbstractChannel {
}
@ override
- protected int doRead ( ChannelBufferHolder < Object > buf ) throws Exception {
+ protected int doRead ( ChannelBuffer buf ) throws Exception {
+ return NUMBER0 ;
+ }
+
+ @ override
+ protected int doRead ( Queue < Object > buf ) thr... | Fix a compilation error |
<nb> public class JmxNotificationEventNotifierTest extends ContextTestSupport {
DefaultManagementNamingStrategy naming = ( DefaultManagementNamingStrategy ) context . getManagementStrategy ( ) . getManagementNamingStrategy ( ) ;
naming . setHostName ( STRING0 ) ;
naming . setDomainName ( STRING1 ) ;
- SINGLE
... | Fixed snippet for docu |
<nb> public class DB2Database extends AbstractJdbcDatabase {
public String getDefaultCatalogName ( ) {
if ( defaultCatalogName != null ) {
- return defaultSchemaName ;
+ return defaultCatalogName ;
}
if ( defaultSchemaName != null ) { | Returning the defaultCatalogName if it is not null |
<nb> public enum Regions {
public String getName ( ) {
return name ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static Regions fromName ( String regionName ) {
+ for ( Regions region : Regions . values ( ) ) {
+ if ( regionName . equals ( region . getName ( ) ) ) ... | Added the ability to lookup regions by name |
<nb> public class OGraphVertex extends OGraphElement implements Cloneable {
return ( RET ) this ;
}
- public Set < OGraphVertex > traverse ( final int iStartLevel , final int iEndLevel ) {
- return null ;
- }
-
@ override
public OGraphVertex clone ( ) {
return new OGraphVertex ( database , document ... | removed OGraphVertex traverse method since it hasn t never implemented |
<nb> public abstract class FMLIndexedMessageToMessageCodec < A > extends MessageToMessag
protected final void decode ( ChannelHandlerContext ctx , FMLProxyPacket msg , List < Object > out ) throws Exception
{
testMessageValidity ( msg ) ;
- ByteBuf payload = msg . payload ( ) ;
+ ByteBuf payload = msg . paylo... | Fixed problem with LAN connections seeing the original ProxyPacket and consuming the first byte |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClientCallFuture < V > implements ICompletableFuture < V > , Callback {
private final int retryCount ;
private final int retryWaitTime ;
-... | Fixed checkstyle issues |
<nb> public class ScoreBuildHistogram extends MRTask < ScoreBuildHistogram > {
SINGLE
SINGLE
SINGLE
- if ( rhbinslen >= binslen ) { SINGLE
+ if ( rhbinslen > binslen ) { SINGLE
bins = new double [ rhbinslen ] ;
sums = new double [ rhbinslen ] ;
ssqs = new double [ rhbinslen ] ; | Remove unnecessary re allocation for GBM DRF |
<nb> public class HomematicBinding extends AbstractBinding < HomematicBindingProvider >
Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( ) {
@ override
public void run ( ) {
- removeCallbackHandler ( cbServer ) ;
+ if ( cbServer != null ) {
+ removeCallbackHandler ( cbServer ) ;
+ }
}
} ) ;
... | fixed NPE during shutdown |
<nb> public class ObserverManager < T extends IActorObserver > implements Serializable
{
final Stream < Task < ? > > stream = observers . stream ( )
. map ( o - >
- ( ( Task < ? > ) o . ping ( ) ) . whenComplete ( ( final Object pr , final Throwable pe ) - >
+ ( ( Task < ? > ) ( ( IAddressable ) o ) . ping ( ... | Fix build error |
<nb> public class UsageViewImpl implements UsageView , UsageModelTracker . UsageModelTra
if ( usage instanceof UsageInFile ) {
UsageInFile usageInFile = ( UsageInFile ) usage ;
VirtualFile file = usageInFile . getFile ( ) ;
- if ( file != null ) result . add ( file ) ;
+ if ( file != null && file . isValid ( ... | exclude invalid files from read only check |
<nb> public class Entry implements Serializable {
content . setValue ( getContent ( ) ) ;
entry . setContents ( Arrays . < SyndContent > asList ( content ) ) ;
- SyndEnclosureImpl enclosure = new SyndEnclosureImpl ( ) ;
- enclosure . setType ( getEnclosureType ( ) ) ;
- enclosure . setUrl ( getEnclosureUrl ... | only add enclosure if there s one |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Robolectric {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static Scheduler getForegroundThreadScheduler ( ) {
+ r... | Add methods to obtain the foreground background schedulers |
<nb> public class CasSecurityContextConfiguration extends WebMvcConfigurerAdapter {
final Config cfg = new Config ( casProperties . getAdminPagesSecurity ( ) . getService ( ) , client ) ;
if ( this . casProperties . getAdminPagesSecurity ( ) . getUsers ( ) == null ) {
- LOGGER . warn ( STRING0
+ LOGGER . warn... | Fixed validation response view to ignore whitespace |
<nb> class ParametricCallable implements CommandCallable {
String name = parameter . getName ( ) ;
throw new InvalidUsageException ( STRING0 + name + STRING1 + e . getMessage ( ) , this ) ;
+ } catch ( InvocationTargetException e ) {
+ if ( e . getCause ( ) instanceof CommandException ) {
+ throw ( CommandE... | Fixed an issue where the ParametricCallable wasn t forwarding InvocationTargetExpections caused by CommandExceptions properly |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class ManifestExtensionListProcessor implements DeploymentUnitProce
final String implementationVersion = mainAttributes . get... | Fix NPE when implementation URL is not given |
<nb> public class TimeTools {
COMMENT
COMMENT
public static Date applyUserOffset ( Context context , long releaseInstant ) {
- DateTime dateTime = new DateTime ( releaseInstant ) ;
- return applyUserOffset ( context , dateTime ) . toDate ( ) ;
+ SINGLE
+ Calendar dateTime = Calendar . getInstance ( ) ;
... | Use Calendar instead of DateTime for user offset application |
<nb> public class IdeaForkJoinWorkerThreadFactory implements ForkJoinPool . ForkJoinWor
public static void setupForkJoinCommonPool ( ) {
System . setProperty ( STRING0 , String . valueOf ( PARALLELISM ) ) ;
System . setProperty ( STRING1 , IdeaForkJoinWorkerThreadFactory . class . getName ( ) ) ;
-
- if ( ! F... | removed check for IDEA thread factory because Upsource uses default ForkJoinPool |
<nb> public interface InputFormat < OT , T extends InputSplit >
COMMENT
COMMENT
COMMENT
- public Class < T > getInputSplitType ( ) ;
+ public Class < ? extends T > getInputSplitType ( ) ;
SINGLE
<nb> public abstract class GenericInputFormat implements InputFormat < PactRecord , Gene
COMMENT
COMMEN... | Fixed compile bug with generic signatures in input format |
<nb> public interface ServerConfig extends ConfigData {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface ServerConfig extends ConfigData {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix doc example |
<nb> public class MRThrow extends TestUtil {
SINGLE
SINGLE
@ test public void testInvokeThrow ( ) {
- File file = find_test_file ( STRING0 ) ;
+ File file = find_test_file ( STRING1 ) ;
assertTrue ( STRING2 , file != null ) ;
SINGLE
NFSFileVec nfs = NFSFileVec . make ( file ) ;
<nb> public class MRThr... | MRThrow finds its test file now |
<nb> public class DriverConnection implements AutoCloseable
this . initialTermId = initialTermId ;
final long initialPosition = computePosition ( activeTermId , initialTermOffset , positionBitsToShift , initialTermId ) ;
- this . lastSmPosition = initialPosition ;
+ this . lastSmPosition = initialPosition - (... | Java Took one branch out of sending SMs path |
<nb> public class NotificationHelper {
PendingIntent savePendingIntent = PendingIntent . getBroadcast ( app , NUMBER0 , saveIntent ,
PendingIntent . FLAG_UPDATE_CURRENT ) ;
- if ( service != null && service . getUsedBy ( ) == NavigationService . USED_BY_GPX ) {
+ if ( service != null && ( service . getUsedBy ... | try fix button appearance of GPX tracking shortcuts |
<nb> public class CachedClass {
}
} ;
- COMMENT
private LazyReference < CachedClass > cachedSuperClass = new LazyReference < CachedClass > ( softBundle ) {
public CachedClass initValue ( ) {
if ( ! isArray ) | remove debug comment |
<nb> public final class Attachments {
COMMENT
COMMENT
public static final AttachmentKey < AttachmentList < AttachableDependency > > NEXT_PHASE_ATTACHABLE_DEPS = AttachmentKey . createList ( AttachableDependency . class ) ;
- COMMENT
- COMMENT
- COMMENT
- public static final AttachmentKey < AttachmentList ... | Remove unused attachments |
<nb> public class CompileUnit {
STRING0 ;
}
} else {
- txt += STRING1 + nodeSource . getName ( ) + STRING2 + storedSource . getName ( ) + STRING3 + node . getName ( ) + STRING4 ;
+ txt += STRING1 + nodeSource . getName ( ) + STRING2 + storedSource . getName ( ) + STRING5 + node . getName ( ) + STRING4 ;
}
... | Revert Improve the grammar of a compiler error message |
<nb> public class CodecTests extends AbstractNodesTests {
}
@ test
- public void testIndexOptionsWithConfiguredPostingsFormat ( ) throws Exception {
+ public void testFieldsWithCustomPostingsFormat ( ) throws Exception {
try {
client . admin ( ) . indices ( ) . prepareDelete ( STRING0 ) . execute ( ) . ac... | changed test method names |
<nb> import NAMESPACE ;
@ entity
public class Show extends BaseEntity {
- public int tvdbId ;
+ private int tvdbId ;
- public boolean isFavorite ;
+ private boolean isFavorite ;
public Show ( ) {
}
<nb> public class Show extends BaseEntity {
this . tvdbId = tvdbId ;
}
+ public void copyP... | Introduce property value copy method to Show |
<nb> public final class APTTypeFactory {
throw new IllegalArgumentException ( STRING0 + t . getKind ( ) ) ;
}
+ @ nullable
private Type handleTypeVariable ( TypeVariable t ) {
String varName = t . toString ( ) ;
if ( t . getUpperBound ( ) != null ) {
<nb> public final class APTTypeFactory {
}
}
... | added Nullable annotations |
<nb> 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 NAMESPACE ;
import NAMESPACE ;
import NAMES... | Kill two more old ConfigurationUtil imports |
<nb> public class AppleDescriptions {
. withoutFlavors ( ImmutableSet . of ( AppleDebuggableBinary . RULE_FLAVOR ) )
. withoutFlavors ( AppleDebugFormat . FLAVOR_DOMAIN . getFlavors ( ) )
. withoutFlavors ( ImmutableSet . of ( AppleBinaryDescription . APP_FLAVOR ) ) ;
- if ( unstrippedTarget . getFlavors ( ) . ... | Remove impossible case in AppleDescriptions createAppleBundle |
<nb> public class OverrideImplementUtil {
registerHandlerForComplementaryAction ( project , editor , aClass , toImplement , chooser ) ;
chooser . setCopyJavadocVisible ( true ) ;
- chooser . selectElements ( isAll ? all : onlyPrimary ) ;
+
+ if ( toImplement ) {
+ chooser . selectElements ( isAll ? all : ... | do not select all methods when overriding |
<nb> public class TvShowsApplication extends Application {
initializeDependencyInjector ( ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ private void initializeUiManager ( ) {
+ COMMENT
+ UiModeManager uiModeManager = ( UiModeManager ) get... | Add commented method to show how to use night mode combined with car mode |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused import |
<nb> public class PrefixExpressionContext {
@ notnull public final TextRange expressionRange ;
public final boolean canBeStatement ;
- public PrefixExpressionContext (
- @ notnull PostfixTemplateContext parentContext , @ notnull PsiElement expression ) {
- assert expression . isValid ( ) : STRING0 ;
+ pub... | Remove useless assertion comments |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | Add license and props |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class MocoRest {
public static RestSetting resource ( final String id , final String name ,
final RestSetting . . ... | added argument check for sub resource for rest |
<nb> public class UIPrefsAccessor extends Prefs
public String getThemeErrorClass ( )
{
- if ( AceThemes . TEXTMATE . equals ( theme ( ) . getValue ( ) ) )
+ if ( ( theme ( ) . getValue ( ) == null ) ||
+ AceThemes . TEXTMATE . equals ( theme ( ) . getValue ( ) ) )
return STRING0 ;
else
return STRING1 ... | ensure correct styling for error output even when the theme is null default |
<nb> import NAMESPACE ;
COMMENT
public class NodeClosedException extends ElasticSearchException {
- private final DiscoveryNode node ;
-
public NodeClosedException ( DiscoveryNode node ) {
super ( STRING0 + node ) ;
- this . node = node ;
- }
-
- public DiscoveryNode node ( ) {
- return node ;
... | make node closed exception serializable |
<nb> public class GroupedDataStream < OUT > extends DataStream < OUT > {
KeySelector < OUT , ? > keySelector ;
- protected GroupedDataStream ( DataStream < OUT > dataStream , KeySelector < OUT , ? > keySelector ) {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Gr... | streaming Made constructor of GroupedDataStream public |
<nb> public class OPartitionedDatabasePool extends OOrientListenerAbstract {
partition = null ;
final OStorage storage = getStorage ( ) ;
+ if ( storage == null )
+ return ;
+
SINGLE
if ( ! storage . isClosed ( ) ) {
super . close ( ) ; | Fixed NPE in OPartitionedDatabasePool |
<nb> public class MigrationManager implements IEndpointStateChangeSubscriber
COMMENT
public static void passiveAnnounce ( UUID version )
{
- assert Gossiper . instance . isEnabled ( ) ;
Gossiper . instance . addLocalApplicationState ( ApplicationState . SCHEMA , StorageService . instance . valueFactory . sche... | Remove assertion that gossip is active in migration manager |
<nb> public abstract class AbstractPlugin implements Plugin , Comparable < Object > {
public abstract String getReference ( ) ;
@ override
- public abstract int getCweId ( ) ;
-
- @ override
- public abstract int getWascId ( ) ;
-
-
- @ override
public void init ( HttpMessage msg , HostProcess par... | Added default unknown getCweId and getWascId methods |
<nb> public class BridgeIInputMethodManager implements IInputMethodManager {
SINGLE
return null ;
}
-
- @ override
- public void setCursorAnchorMonitorMode ( IBinder arg0 , int arg1 ) {
- SINGLE
- }
} | Fix SDK build breakage |
<nb> public class GenerateUtils {
else {
LOG . info ( STRING0 + type + STRING1 ) ;
}
+ System . exit ( NUMBER0 ) ;
}
private static GrailsDomainClass getDomainCallFromApplication ( GrailsApplication application , String domainClassName ) { | added system exit at the end of main call to avoid hanging problem in grails generate all |
<nb> public final class HikariPool implements HikariPoolMBean , IBagStateListener
if ( now > connection . getExpirationTime ( ) || ( now - connection . getLastAccess ( ) > NUMBER0 && ! isConnectionAlive ( connection , timeout ) ) ) {
closeConnection ( connection ) ; SINGLE
- timeout -= elapsedTimeMs ( start ) ;... | Fix timeout calculation when skipping unusable connections from pool |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
public class AfterEvaluateHelper {
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
public static void afterEvaluateOrExecute ( Project project , Act... | Remove unnecessary cast |
<nb> public class ZWaveAlarmSensorCommandClass extends ZWaveCommandClass
COMMENT
COMMENT
COMMENT
- @ xstreamalias ( STRING0 )
+ @ xstreamalias ( STRING1 )
public enum AlarmType {
GENERAL ( NUMBER0 , STRING2 ) ,
SMOKE ( NUMBER1 , STRING3 ) ,
<nb> public class ZWaveBinarySensorCommandClass extends ZWave... | Rename some class alias s to avoid duplication |
<nb> public abstract class Handshake {
COMMENT
protected void performUpgrade ( final ConcreteIoFuture < WebSocketChannel > ioFuture , final HttpServerExchange exchange , final byte [ ] data ) {
exchange . getResponseHeaders ( ) . put ( Headers . CONTENT_LENGTH , STRING0 + data . length ) ;
- exchange . getRespo... | Fix case for Connection and Upgrade header values |
<nb> public class InferenceSession {
for ( PsiType eqBound : eqBounds ) {
if ( eqBound == null ) continue ;
bound = acceptBoundsWithRecursiveDependencies ( typeParameter , eqBound ) ;
+ if ( bound != null ) break ;
}
if ( bound != null ) {
if ( bound instanceof PsiCapturedWildcardType && eqBounds . size (... | take first equals bound |
<nb> public class GrailsViewResolver extends InternalResourceViewResolver implements
}
}
- private View createGrailsView ( String viewName ) throws Exception {
+ protected View createGrailsView ( String viewName ) throws Exception {
SINGLE
GrailsWebRequest webRequest = WebUtils . retrieveGrailsWebReques... | make GrailsViewResolver extendable for scaffolding plugin |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AccentColorController implements IAccentColorController {
return ;
}
}
- throw new RuntimeException ( STRING0 + color ... | Throw runtime exception only on debug |
<nb> public class ModelTest extends DatabaseTestCase {
assertEquals ( STRING0 , clone . getTransitory ( STRING1 ) ) ;
assertEquals ( STRING2 , clone . getTransitory ( STRING3 ) ) ;
assertFalse ( model . hasTransitory ( STRING3 ) ) ;
+
+ SINGLE
+ TestModel empty = new TestModel ( ) ;
+ TestModel emptyClone... | Add test assertions for cloning an empty model |
<nb> public class MllpTcpServerConsumer extends DefaultConsumer {
Socket socket = null ;
try {
socket = serverSocket . accept ( ) ;
- } catch ( SocketTimeoutException timeoutEx ) {
+ } catch ( SocketTimeoutException timeoutEx ) {
SINGLE
- log . debug ( STRING0 ) ;
+ log . debug ( STRING0 ) ;
continue ... | Fix checkstyle issues |
<nb> public class PFont implements PConstants {
COMMENT
protected boolean stream ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ protected boolean subsetting ;
+
COMMENT
protected boolean fontSearched ;
<nb> public class PFont implements PConstants {
COMMENT
COMMENT
public Font g... | add subsetting mode |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HiveConnection implements java . sql . Connection {
private static final String URI_PREFIX = STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ pu... | Expose the HiveConf in HiveConnection API Nicolas Lalevee via Ashutosh Chauhan |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.