diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class ChangedViewChangeGenerator extends AbstractChangeGenerator implemen
public Change [ ] fixChanged ( DatabaseObject changedObject , ObjectDifferences differences , DiffOutputControl control , Database referenceDatabase , final Database comparisonDatabase , ChangeGeneratorChain chain ) {
View view = ... | Improve createView extensibility |
<nb> public class PushConditionInCallAction extends PsiElementBaseIntentionAction {
if ( element instanceof PsiCompiledElement ) return false ;
if ( ! element . getManager ( ) . isInProject ( element ) ) return false ;
- if ( ! ( element instanceof PsiJavaToken && ( ( PsiJavaToken ) element ) . getTokenType ( )... | enable intention on the whole expr waiting for feedback |
<nb> public class XPrivacy implements IXposedHookLoadPackage , IXposedHookZygoteInit {
SINGLE
if ( listMember . isEmpty ( ) && ! hook . getClassName ( ) . startsWith ( STRING0 ) ) {
message = String . format ( STRING1 , hook ) ;
- mListHookError . add ( message ) ;
+ if ( ! hook . isOptional ( ) )
+ mListHo... | Add only non optional hooks to error list support info |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class MXParser extends org . xmlpull . mxp1 . MXParser {
do {
SINGLE
- if ( eventType == XmlPullParser . END_TAG && ch == STRING0 ) {
+ if ( eventType == XmlPull... | Added line feed as another possible heartbeat character |
<nb> public class ServletContextHandler extends ContextHandler
protected void doStop ( ) throws Exception
{
super . doStop ( ) ;
- _decorators . clear ( ) ;
- _wrapper . setHandler ( null ) ;
+ if ( _decorators != null )
+ _decorators . clear ( ) ;
+ if ( _wrapper != null )
+ _wrapper . setHandler ( n... | Add null protection to ServletContextHandler doStop |
<nb> public class MisusedFormattingLogger extends BugChecker implements MethodInvocat
} else if ( parameters . getType ( ) == FormatType . PRINTF ) {
verifyPrintf ( tree , parameters ) ;
}
- } catch ( FormatterException | IllegalFormatException e ) {
+ } catch ( Exception e ) {
formatException = e ;
}
i... | Handle additional exception types in format strings |
<nb> public class Component {
return JsonUtils . getString ( json , STRING0 ) ;
}
- COMMENT
- COMMENT
- COMMENT
- @ checkfornull
- public String moduleKey ( ) {
- return JsonUtils . getString ( json , STRING1 ) ;
- }
-
} | Remove moduleKey as it s not returned by the WS |
<nb> public abstract class IncrementalJavaSourceCompiler < T extends JavaSourceCompiler
return compiler . getCompileOptions ( ) ;
}
+ public void setCompileOptions ( CompileOptions compileOptions ) {
+ compiler . setCompileOptions ( compileOptions ) ;
+ }
+
public void setSourceCompatibility ( String so... | added JavaSourceCompiler setCompileOptions |
<nb> public class BalancedShardsAllocator extends AbstractComponent implements Shards
}
COMMENT
- COMMENT
- COMMENT
- public float avgPrimariesPerNode ( ) {
- return ( ( float ) metaData . numberOfShards ( ) ) / nodes . size ( ) ;
- }
-
-
- COMMENT
COMMENT
COMMENT
COMMENT | Remove superfluous method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed superfluous import |
<nb> 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 NAMESPACE ;
impo... | Remove unnecessary interface |
<nb> public final class Array {
COMMENT
private static native Object createObjectArray ( Class < ? > componentType , int length )
throws NegativeArraySizeException COMMENT
- COMMENT
+ COMMENT
COMMENT ;
COMMENT | fixed memory leak in Array newInstance |
<nb> public class LayoutManager extends RecyclerView . LayoutManager {
View header = findAttachedHeaderForSectionFromEnd ( sd . firstPosition ) ;
markerLine = updateHeaderForEnd ( header , markerLine ) ;
- markerLine = fillNextSectionToEnd ( leadingEdge , markerLine , state ) ;
+ if ( markerLine <= leadingEdg... | Don t call fill next section unless needed |
<nb> public final class MultipartTypedOutput implements TypedOutput {
length = footer . length ;
}
- public List < byte [ ] > getParts ( ) throws IOException {
+ List < byte [ ] > getParts ( ) throws IOException {
List < byte [ ] > parts = new ArrayList < byte [ ] > ( mimeParts . size ( ) ) ;
for ( MimePa... | using package scope for method |
<nb> public class Performance {
+ STRING0 , sThreads , sFiles / sThreads ,
sFiles , sBlockSizeBytes / NUMBER0 , sBlocksPerFile , sFileBytes / Constants . MB ,
fileBufferBytes / NUMBER0 , sBaseFileNumber ) ;
-
- for ( int k = NUMBER1 ; k < NUMBER2 ; k ++ ) {
- SINGLE
+
+ try {
+ Thread . sleep ( NUMBER... | Change empty body for loop in tachyon examples Performance to sleep |
<nb> public class Collections {
SynchronizedCollection ( Collection < E > collection ) {
c = collection ;
- mutex = this ;
+ SINGLE
+ mutex = new Object ( ) ;
}
SynchronizedCollection ( Collection < E > collection , Object mutex ) {
<nb> public class Collections {
SynchronizedMap ( Map < K , V >... | Don t use this for mutex in synced collections |
<nb> public class MessageCompose extends K9Activity implements OnClickListener , OnFoc
case CONTACT_PICKER_TO :
case CONTACT_PICKER_CC :
case CONTACT_PICKER_BCC :
- ContactItem contact = mContacts . getEmailFromContactPicker ( data ) ;
+ ContactItem contact = mContacts . extractInfoFromContactPickerIntent ( d... | Renamed getEmailFromContactPicker to better reflect what it does |
<nb> public class PipelineLabelTest {
}
@ test
+ public void shouldTruncateMaterialRevision ( ) throws Exception {
+ PipelineLabel label = PipelineLabel . create ( STRING0 ) ;
+ MaterialRevisions materialRevisions = ModificationsMother . oneUserOneFile ( ) ;
+ ScmMaterial material = MaterialsMother . gitM... | adding test covering the material revision truncatation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ threadsafe
public class StateMachine < T >
{
private static final Logger log = Logger . get ( StateMachine . c... | Allow reading of state in StateMachine without acquiring a lock first |
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public class AndroidVisibilityListener {
<nb> public class AndroidVisibilityListener {
application . log ( STRING0 , STRING1 , t ) ;
}
}
- }
+ } | Fix AndroidVisibilityListener s Javadoc |
<nb> public class MovieHistoryAdapter extends SectionedHistoryAdapter {
SINGLE
holder . title . setTextAppearance ( convertView . getContext ( ) ,
R . style . TextAppearance_Subhead ) ;
+ holder . title . setMaxLines ( NUMBER0 ) ;
holder . description . setVisibility ( View . GONE ) ;
convertView . setTag... | Allow second title line on movie history items |
<nb> public abstract class ProjectOpenProcessorBase < T extends ProjectImportBuilder > e
}
boolean shouldOpenExisting = false ;
- boolean importToProject = false ;
+ boolean importToProject = true ;
if ( projectFile . exists ( ) || dotIdeaFile . exists ( ) ) {
if ( ApplicationManager . getApplication ( ) ... | do not skip project import if projectFile does not exist |
<nb> public class PagerSlidingTabStrip extends HorizontalScrollView {
if ( isInEditMode ( ) ) {
return ;
}
+ if ( tabsContainer == null || tabsContainer . getChildCount ( ) == NUMBER0 ) {
+ return ;
+ }
final int height = getHeight ( ) ; | Preventing NPE if tabsContainer is empty |
<nb> public class PercolatorFieldMapper extends FieldMapper {
if ( fieldMapper instanceof PercolatorFieldMapper ) {
PercolatorFieldType fieldType = ( PercolatorFieldType ) fieldMapper . fieldType ( ) ;
if ( context . doc ( ) . getField ( fieldType . getQueryBuilderFieldName ( ) ) != null ) {
+ SINGLE
+ SINGLE... | added comment why we fail here |
<nb> public final class Bitmap implements Parcelable {
COMMENT
COMMENT
public void recycle ( ) {
- if ( ! mRecycled ) {
+ if ( ! mRecycled && mFinalizer . mNativeBitmap != NUMBER0 ) {
if ( nativeRecycle ( mNativeBitmap ) ) {
SINGLE
SINGLE
<nb> public final class Bitmap implements Parcelable {
}
... | Prevent memory corruption from use after free |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class InitialState extends AbstractRemotelyProcessable {
- List < MapState > lsMapStates = new ArrayList ( ) ;
+ List < MapState > lsMapStates = new ArrayList < MapState > ( ) ;
public InitialState ( ) {
} | added type parameter |
<nb> public class DomainControllerOperationHandler extends AbstractManagementOperatio
}
} , ;
- private static final Logger log = Logger . getLogger ( STRING0 ) ;
-
final byte command ;
Operation ( final byte command ) { | Remove unused field |
<nb>
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
package NAMESPACE ; | Fixed typo in javadoc |
<nb> public class TachyonConf {
assertValidPort ( address . getPort ( ) , tachyonConf ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public static void storeToHadoopConfiguration ( TachyonConf source , Configuration target ) {
SINGLE
target . set ( STRING0 , STRING... | Add JavaDoc to helper methods in TachyonConf to store and load from Hadoop Configuration |
<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 NAMESPAC... | DefaultLayoutAnimator resets item alphas when canceled |
<nb> import NAMESPACE
import NAMESPACE ;
- public abstract class ExportPlot
+ public class ExportPlot
{
public void savePlotAsImage ( GlobalDisplay globalDisplay ,
PlotsServerOperations server ,
<nb> public abstract class ExportPlot
}
- public abstract void copyPlotToClipboard (
+ public voi... | make ExportPlot non abstract |
<nb> public final class PackageFactory {
this . ruleFactory = new RuleFactory ( ruleClassProvider ) ;
this . ruleClassProvider = ruleClassProvider ;
globalEnv = newGlobalEnvironment ( ) ;
- threadPool = new ThreadPoolExecutor ( NUMBER0 , NUMBER0 , NUMBER1 , TimeUnit . SECONDS ,
+ threadPool = new ThreadPoolEx... | Improve thread pools where we allow idle threads to be reclaimed by just increasing the thread worker timeout |
<nb> public abstract class InStream extends InputStream {
long originalOffset = bc . offset ;
int compressedBytesConsumed = addOneCompressionBuffer ( bc , ranges , zcr , bufferSize ,
cache , streamBuffer . cacheBuffers , toDecompress , toRelease ) ;
+ if ( compressedBytesConsumed == - NUMBER0 ) {
+ SINGLE
+... | Fix one more issue |
<nb> public class PApplet extends Applet
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public String [ ] loadStrings ( String filename ) {
InputStream is = openStream ( filename ) ;
if ( is != null ) return l... | add notes to loadStrings javadoc |
<nb> public class RollingRestartStressTest {
private Node client ;
private AtomicLong indexCounter = new AtomicLong ( ) ;
+ private AtomicLong idCounter = new AtomicLong ( ) ;
public RollingRestartStressTest numberOfNodes ( int numberOfNodes ) {
<nb> public class RollingRestartStressTest {
json . en... | have rolling restart stress test create incremental ids |
<nb> public class NetworkStatsService extends INetworkStatsService . Stub {
}
SINGLE
- mLastPollUidSnapshot = mLastPollUidSnapshot . withoutUid ( uid ) ;
- mLastPollNetworkXtSnapshot = computeNetworkXtSnapshotFromUid ( mLastPollUidSnapshot ) ;
+ if ( mLastPollUidSnapshot != null ) {
+ mLastPollUidSnapshot... | Avoid NPE when missing network stats |
<nb> public class SignInActivity extends FragmentActivity {
requestWindowFeature ( Window . FEATURE_NO_TITLE ) ;
setContentView ( R . layout . welcome_activity ) ;
- mSignInFragment = getSignInFragment ( ) ;
- FragmentTransaction fragmentTransaction = getSupportFragmentManager ( ) . beginTransaction ( ) ;
-... | Only add fragment the first time when savedInstanceState null |
<nb> public abstract class AbstractTestQueries
super ( queryRunner ) ;
}
+ @ test ( expectedExceptions = RuntimeException . class , expectedExceptionsMessageRegExp = STRING0 )
+ public void testParsingError ( )
+ throws Exception
+ {
+ computeActual ( STRING1 ) ;
+ }
+
@ test
public void selectN... | Add parsing error test to distributed queries |
<nb> public abstract class RestRequest implements ToXContent . Params {
@ override
public Boolean paramAsBooleanOptional ( String key , Boolean defaultValue ) {
- String sValue = param ( key ) ;
- if ( sValue == null ) {
- return defaultValue ;
- }
- return ! ( sValue . equals ( STRING0 ) || sValue . eq... | Accept the same boolean values in RestRequest |
<nb> public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler
switch ( result . getHandshakeStatus ( ) ) {
case FINISHED :
- runDelegatedTasks ( ) ;
setHandshakeSuccess ( channel ) ;
+ runDelegatedTasks ( ) ;
break ;
case NEED_TASK :
runDelegatedTasks ( ) ; | Reverted back wrong fix |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PluginManager {
private final CordovaInterface ctx ;
private final CordovaWebView app ;
+ private final ExecutorSer... | Use a thread pool when executing async plugin operations |
<nb> public class PostsListFragment extends ListFragment {
if ( mProgressFooterView != null ) {
mProgressFooterView . setVisibility ( View . GONE ) ;
}
- return ;
}
getPostListAdapter ( ) . loadPosts ( ) ; | Removing return statement so that the adapter always reloads the posts list after a post fetch |
<nb> public abstract class ByteToMessageCodec < I > extends ChannelDuplexHandler
private final ByteToMessageDecoder decoder ;
protected ByteToMessageCodec ( Class < ? > . . . encodableMessageTypes ) {
- this . encodableMessageTypes = encodableMessageTypes ;
+ this . encodableMessageTypes = ChannelHandlerUtil ... | Fix missing ChannelHandlerUtil acceptedMessageTypes in ByteToMessageCodec constructor |
<nb> public class SipAccountID
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public String getSystemProtocolName ( )
- {
- return ProtocolNames . SIP ;
- }
-
- COMMENT
COMMENT
COMMENT
COMMENT | Removes an unnecessary change |
<nb> public class RealMavenPluginExecutorTest {
public void should_reset_file_system_after_execution ( ) {
RealMavenPluginExecutor executor = new RealMavenPluginExecutor ( null , null ) {
@ override
- public void concreteExecute ( MavenProject pom , String goal ) throws Exception {
+ public void concreteExecu... | Fix test compilation |
<nb> public final class UpgradeService {
if ( from >= V4_6_0 && from < V4_6_3 ) {
newVersionString ( changeLog , STRING0 , new String [ ] {
- STRING1 ,
+ STRING2 ,
+ STRING3 ,
+ STRING4 ,
+ STRING5
} ) ;
} | Updated upgrade message |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class KeywhizService extends Application < KeywhizConfig > {
objectMapper . registerModules ( new Jdk8Module ( ) ) ;
objectMapper . registerModules... | Ignore unknown fields in JSON requests |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
- SINGLE
- public abstract class ClientRequest extends ClientMessage implements SecureReque... | Removing ClientRequest extends ClientMessage |
<nb> public class ReaderPostTable {
SINGLE
numDeleted += db . delete ( STRING0 , STRING1 , null ) ;
- SINGLE
- numDeleted += db . delete ( STRING0 ,
- STRING2 , null ) ;
-
return numDeleted ;
} | Removed delete posts from unfollowed blogs query from purge call |
<nb> public class FileTypeRegistry
register ( STRING0 , RPROJECT , icons . iconRproject ( ) ) ;
register ( STRING1 , DCF , icons . iconText ( ) ) ;
register ( STRING2 , PYTHON , icons . iconPython ( ) ) ;
+ register ( STRING3 , SQL , icons . iconSql ( ) ) ;
register ( STRING4 , SH , icons . iconSh ( ) ) ;
r... | add sql file registration |
<nb> public class GameData {
newId ,
isBlock ? newData . iBlockRegistry . getRaw ( newId ) : newData . iItemRegistry . getRaw ( newId ) ,
newData . blockedIds . contains ( newId ) ,
- isBlock ? getMain ( ) . iBlockRegistry . getRaw ( currId ) : getMain ( ) . iItemRegistry . getRaw ( currId ) ) ) ;
+ isBlock ?... | Fix debug info |
<nb> public final class Version {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static final String TACHYON_JAR = STRING0 + VERSION
+ STRING1 ; | Incorporated PR comment |
<nb> abstract class MapCollections < K , V > {
if ( ! mEntryValid ) {
throw new IllegalStateException ( ) ;
}
+ colRemoveAt ( mIndex ) ;
mIndex -- ;
mEnd -- ;
mEntryValid = false ;
- colRemoveAt ( mIndex ) ;
}
@ override | Fix off by one issue when removing from Iterator |
<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> public class CustomTemplateCallba... | Custom template shouldn t check injected elements on non commited document |
<nb> public class WebView extends AbsoluteLayout
COMMENT
COMMENT
private boolean inEditingMode ( ) {
- return mWebTextView != null && mWebTextView . getParent ( ) != null
- && mWebTextView . hasFocus ( ) ;
+ return mWebTextView != null && mWebTextView . getParent ( ) != null ;
}
COMMENT | Do not check mWebTextView s focus state to determine editing mode |
<nb> public class CoreProjectScopeBuilder extends ProjectScopeBuilder {
@ override
public boolean contains ( @ notnull VirtualFile file ) {
- return myFileIndexFacade . isInContent ( file ) ;
+ return myFileIndexFacade . isInContent ( file ) &&
+ SINGLE
+ ! myFileIndexFacade . isInLibraryClasses ( file ) ... | Whole project scope includes library roots that are located under the project directory |
<nb> public class StepFailedException extends Exception {
private final Step step ;
private final int exitCode ;
- COMMENT
+ COMMENT
@ visiblefortesting
public StepFailedException ( String message , Step step , int exitCode ) {
super ( message ) ; | Fix an Eclipse warning I introduced via a rebase |
<nb> public abstract class AbstractTestQueries
}
@ test
+ public void testLeftJoinWithEmptyInnerTable ( )
+ throws Exception
+ {
+ SINGLE
+ assertQuery ( STRING0 ) ;
+ assertQuery ( STRING1 ) ;
+ assertQuery ( STRING2 ) ;
+ assertQuery ( STRING3 ) ;
+ assertQuery ( STRING4 ) ;
+ }
+
+ @ te... | Add tests for OUTER join with empty INNER table |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HttpSession extends LocalClientSession {
}
public Collection < Packet > getPa... | Fixed NPE that prevents listeners from being triggered |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class S3FileSystem extends FileSystem {
COMMENT
COMMENT
public static final String S3_SCHEME = STRING0 ;
-
+
+ COMM... | Fixed problem with character encoding in URL user info |
<nb> public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo
boolean dispatched = _manager . dispatch ( _handler ) ;
if ( ! dispatched )
{
- _state = STATE_UNDISPATCHED ;
+ _state = STATE_NEEDS_DISPATCH ;
LOG . warn ( STRING0 + this + STRING1 + _manager ) ;
updateKey ( ) ;
}
<... | removed debug println DOH |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PoolProperties implements PoolConfiguration , Cloneable , Serializabl
final String [ ] prefix = new String [ ] { STRING0 , ST... | Use explicit locale in toUpperCase |
<nb> public class ZWaveDeviceClass {
return new CommandClass [ NUMBER0 ] ;
case REMOTE_CONTROLLER :
case STATIC_CONTOLLER :
+ case GARAGE_DOOR :
case REPEATER_SLAVE :
case TOGGLE_SWITCH :
case REMOTE_SWITCH : | Add garage door specific classes |
<nb> public class TableModelFileWriter extends ModelFileWriter < TableModelSpecWrapper >
writer . writeNewline ( ) ;
}
- emitGetIdPropertyMethod ( ) ;
+ emitGetRowIdPropertyMethod ( ) ;
}
private void emitIdPropertyDeclaration ( ) throws IOException {
<nb> public class TableModelFileWriter extends Mod... | Fix getRowIdProperty generated by code generator add a missing Deprecated annotation to legacy setId |
<nb> public class ByteAccumulator
public void addBuffer ( byte buf [ ] , int offset , int length )
{
- if ( buf . length + length > maxSize )
+ if ( this . length + length > maxSize )
{
throw new MessageTooLargeException ( STRING0 ) ;
} | Fixing logic error in max length for ByteAccumulator |
<nb> public class WikipediaQuickCheck {
private JLanguageTool getLanguageTool ( Language lang ) throws IOException {
final JLanguageTool langTool = new MultiThreadedJLanguageTool ( lang ) ;
langTool . activateDefaultPatternRules ( ) ;
+ enableWikipediaRules ( langTool ) ;
for ( String disabledRuleId : disable... | for the WikiCheck enable rules in category Wikipedia |
<nb> class SwipeEvent {
void resultView ( @ direction int direction , AnimatorListenerAdapter onAnimationEnd ) {
PointF f = new PointF ( frame . getX ( ) , frame . getY ( ) ) ;
- frameData . getExitPosition ( f , direction , rotationFactor )
+ float adjustedFactor = rotationFactor ;
+ if ( direction == Dire... | Fix left exit rotation for button events |
<nb> public class LibsRecyclerViewAdapter extends RecyclerView . Adapter < RecyclerView . V
return libs . get ( pos ) ;
}
+ @ override
public long getItemId ( int pos ) {
+ SINGLE
return pos ;
} | add info to getItemId within the Adapter |
<nb> public class AndroidResourcesLineMarkerProvider implements LineMarkerProvider {
else if ( element instanceof XmlAttributeValue ) {
annotateXmlAttributeValue ( ( XmlAttributeValue ) element , result ) ;
}
- else if ( element instanceof PsiReferenceExpression ) {
+ COMMENT
PsiElement targetElement = ( ( ... | do not show markers on resource usages in java code |
<nb> public final class MidiDevice implements Closeable {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public MidiInputPort openInputPort ( int portNumber ) {
try {
<nb> public final class MidiDevice implements Closeable {
... | document that opens can return nulls |
<nb>
COMMENT
COMMENT
COMMENT
+ package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Put TemplateServlet in the right package |
<nb> public class HystrixDefinition extends ProcessorDefinition < HystrixDefinition > {
return hystrixConfigurationRef ;
}
+ COMMENT
+ COMMENT
+ COMMENT
public void setHystrixConfigurationRef ( String hystrixConfigurationRef ) {
this . hystrixConfigurationRef = hystrixConfigurationRef ;
} | Add missing doc |
<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 ; | Remove obsolete imports |
<nb> public class GoReference extends PsiPolyVariantReferenceBase < GoReferenceExpressi
return true ;
}
if ( builtin ( type ) ) {
- GoTypeReferenceExpression expression = type . getTypeReferenceExpression ( ) ;
- PsiElement resolve = expression != null ? expression . resolve ( ) : null ;
- GoType resolveTyp... | Remove redundant check |
<nb> public final class StringUtil {
return null ;
}
- int minDist = Integer . MAX_VALUE ;
+ int minDist = - NUMBER0 ;
for ( Map . Entry < String , T > entry : lookup . entrySet ( ) ) {
final String key = entry . getKey ( ) ;
<nb> public final class StringUtil {
int dist = getLevenshteinDistance (... | Revert a breaking change to fuzzy item block lookup |
<nb> public interface IAdapter < Item extends IItem > {
COMMENT
int getAdapterPosition ( Item item ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ int getGlobalPosition ( int position ) ;
+
COMMENT
COMMENT
COMMENT
<nb> public class ItemAdapter < Item extends IItem > e... | add method to get the global position if only the relative position is known |
<nb> public class SplunkConfiguration {
@ uripath ( description = STRING0 ) @ metadata ( required = STRING1 )
private String name ;
- @ uriparam ( defaultValue = STRING2 )
+ @ uriparam ( defaultValue = STRING3 )
private String scheme = Service . DEFAULT_SCHEME ;
@ uriparam ( defaultValue = STRING4 )
pri... | polished only set TLS when using https |
<nb> public class TestHadoop20SAuthBridge extends TestCase {
return new Server ( ) ;
}
-
-
static class Server extends HadoopThriftAuthBridge20S . Server {
public Server ( ) throws TTransportException {
super ( ) ;
<nb> public class TestHadoop20SAuthBridge extends TestCase {
}
@ override
- pub... | Fix the compiling error in TestHadoop20SAuthBridge Yin Huai via Gunther Hagleitner |
<nb> public interface ODatabase < T > extends OBackupable , Closeable {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
+ @ deprecated
boolean isMVCC ( ) ;
COMMENT
<nb> public interface ODatabase < T > extends OBackupable , Closeable {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
+ @ deprecated
... | deprecated old api |
<nb> public class SampleFragment extends Fragment {
@ nullable
@ override
public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) {
- TextView textView = new TextView ( container . getContext ( ) ) ;
+ TextView textView = new TextView ( getActivity ( ) ) ;
text... | Fix crash for the sample app |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix small bug in PreferenceByKey JavaDoc |
<nb> public class ConsoleDispatcher
if ( relativePath != null )
path = relativePath ;
- code . append ( STRING0 + escapedPath ( path ) + STRING1 ) ;
+ code . append ( STRING2 + escapedPath ( path ) + STRING1 ) ;
}
else
{ | use updated name for sourceCpp |
<nb> public class SqliteAndroidDatabaseType extends BaseSqliteDatabaseType implements
return null ;
}
- @ override
public String getDatabaseName ( ) {
return STRING0 ;
} | Added needed support to exclude certain databases from support for allowGeneratedIdInsert |
<nb> public interface Opcodes {
int DCONST_0 = NUMBER0 ; SINGLE
int BIPUSH = NUMBER1 ; SINGLE
SINGLE
- int LDC = NUMBER2 ; SINGLE
+ SINGLE
SINGLE
SINGLE
int ILOAD = NUMBER3 ; SINGLE
<nb> public interface Opcodes {
int ASTORE = NUMBER4 ; SINGLE
int POP = NUMBER5 ; SINGLE
- int POP2 = NUMBER6 ; ... | remove unused code |
<nb> public class DrawerLayout extends ViewGroup {
switch ( vgrav ) {
default :
case Gravity . TOP : {
- child . layout ( childLeft , lp . topMargin , childLeft + childWidth , childHeight ) ;
+ child . layout ( childLeft , lp . topMargin , childLeft + childWidth ,
+ lp . topMargin + childHeight ) ;
break ... | Fix a bug in DrawerLayout when a child specifies a top margin |
<nb> public class MotionGroup extends AbstractActionGroup
{
int line = EditorHelper . normalizeVisualLine ( editor , EditorHelper . getCurrentVisualLine ( editor ) + cntForward ) ;
- if ( line <= NUMBER0 )
+ if ( line < NUMBER0 )
{
return NUMBER0 ;
} | Fixed last fix |
<nb> public class ComputationService implements ServerComponent {
}
item . dto . succeed ( ) ;
- } catch ( Exception e ) {
+ } catch ( Throwable e ) {
item . dto . fail ( ) ;
throw Throwables . propagate ( e ) ;
-
} finally {
item . dto . setFinishedAt ( system . now ( ) ) ;
saveActivity ( item . ... | catch Throwable instead of Exception in Computation threads |
<nb> public class PSurfaceJOGL implements PSurface {
protected void initAnimator ( ) {
- animator = new FPSAnimator ( window , NUMBER0 , true ) ;
+ animator = new FPSAnimator ( window , NUMBER0 ) ;
drawException = null ;
animator . setUncaughtExceptionHandler ( new GLAnimatorControl . UncaughtExceptionHan... | Turn off fixed rate scheduling in OpenGL |
<nb> public class Switch extends CompoundButton {
@ override
public void setChecked ( boolean checked ) {
super . setChecked ( checked ) ;
- mThumbPosition = checked ? getThumbScrollRange ( ) : NUMBER0 ;
+ mThumbPosition = isChecked ( ) ? getThumbScrollRange ( ) : NUMBER0 ;
invalidate ( ) ;
} | Fix ON OFF option update error |
<nb> public class Wallet extends BaseTaggableObject implements Serializable , BlockCha
} finally {
keychainLock . writeLock ( ) . unlock ( ) ;
}
- queueOnScriptsChanged ( scripts , true ) ;
- saveNow ( ) ;
+ if ( added > NUMBER0 ) {
+ queueOnScriptsChanged ( scripts , true ) ;
+ saveNow ( ) ;
+ }
re... | don t save wallet and invoke event listeners when adding watched scripts if the call was a no op |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public interface PsiFileStub < T extends PsiFile > extends StubElement < T > {
+ public interface PsiFileStub < T extends PsiFile > extends StubElement < T > , UserDataHolder {
IStubFileElementType getType ... | Don t load new stub tree for existing psi |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TaskListFragment extends ListFragment implements OnScrollListener ,
if ( getActiveTagData ( ) != null )
tagName = getActiveTagData ( ) . getVa... | Removed an unused field |
<nb> public class PluginEnvironment {
COMMENT
COMMENT
COMMENT
- public static final String OPTIONS_DISABLE_DEFAULT_CONSTRUCTORS = STRING0 ;
+ public static final String OPTIONS_DISABLE_DEFAULT_CONSTRUCTORS = STRING1 ;
COMMENT
COMMENT | Remove an option prefix we missed during code cleanup |
<nb> public abstract class BaseTestsOutputConsoleView implements ConsoleView , Observa
return AnAction . EMPTY_ARRAY ;
}
- protected ConsoleView getConsole ( ) {
+ public ConsoleView getConsole ( ) {
return myConsole ;
}
<nb> public class TestNGResults extends TestResultsPanel implements TestFramework... | add toolbar with stactrace navigation sotfwraps scroll to end |
<nb> public class NativeLibraryTest extends TestCase {
assertNull ( STRING0 , ref . get ( ) ) ;
}
- public void testAvoidDuplicateLoads ( ) {
+ public void testAvoidDuplicateLoads ( ) throws Exception {
NativeLibrary . disposeAll ( ) ;
+ SINGLE
+ SINGLE
+ Thread . sleep ( NUMBER0 ) ;
TestLibrary l... | fix sporadically failing test on OSX |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HdfsTaskLogsConfig
@ notnull
private String directory ;
+ @ jsoncreator
+ public HdfsTaskLogsConfig ( @ jsonproperty ( STRING0 ) String directory )
+ {
+ this . directory = directo... | Keep HdfsTaskLogsConfig creator |
<nb> import NAMESPACE ;
setState ( ExoPlayer . STATE_ENDED ) ;
stopRenderers ( ) ;
} else if ( state == ExoPlayer . STATE_BUFFERING ) {
- if ( ( enabledRenderers . length > NUMBER0 ? allRenderersReadyOrEnded : isTimelineReady )
- && haveSufficientBuffer ( rebuffering ) ) {
+ if ( ( enabledRenderers . length... | If no renderers enabled we don t need buffer |
<nb> public class AsyncHttpClientConfig {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public int getRequestTimeout ( ) {
return requestTimeout ;
<nb> public class AsyncHttpClientConfig {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
C... | Adjust javadoc for requestTimeout to clarify its meaning |
<nb> public abstract class AbstractModule implements Module {
COMMENT
COMMENT
COMMENT
- protected void put ( String name , Scope scope ) {
+ protected void scope ( String name , Scope scope ) {
builder . scope ( name , scope ) ;
} | Renamed put to scope |
<nb> class Camera1 extends CameraViewImpl {
if ( isCameraOpened ( ) ) {
List < String > modes = mCameraParameters . getSupportedFlashModes ( ) ;
String mode = FLASH_MODES . get ( flash ) ;
- if ( modes . contains ( mode ) ) {
+ if ( modes != null && modes . contains ( mode ) ) {
mCameraParameters . setFlash... | Check if camera has flashModes disable flash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.