diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class OCRUDWorkload extends OBaseWorkload { if ( ! schema . existsClass ( OCRUDWorkload . CLASS_NAME ) ) { final OClass cls = schema . createClass ( OCRUDWorkload . CLASS_NAME ) ; cls . createProperty ( STRING0 , OType . STRING ) ; - SINGLE - SINGLE + cls . createIndex ( INDEX_NAME , OClass . IN...
Restored autoshareded index
<nb> public class StaticLayout extends Layout { chooseHt = getParagraphSpans ( spanned , paraStart , paraEnd , LineHeightSpan . class ) ; - if ( chooseHt . length != NUMBER0 ) { + if ( chooseHt . length == NUMBER0 ) { + chooseHt = null ; SINGLE + } else { if ( chooseHtv == null || chooseHtv . length <...
Fix line height problem with inline images in StaticLayout
<nb> public class ExecHandleBuilder { public ExecHandleBuilder standardOutput ( OutputStream outputStream ) { if ( outputStream == null ) throw new IllegalArgumentException ( STRING0 ) ; - this . standardOutputHandle = new StreamWriterExecOutputHandle ( outputStream ) ; + this . standardOutputHandle = new Str...
made action on error of the stream writer exec output handle configurable
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
added copyright header
<nb> public void testEqualsIgnoreCase ( ) throws Exception { testCase . testEqualsIgnoreCase ( ) ; } - public void testEqualsIgnoreCaseUnicodeEquivalence ( ) throws Exception { - com . google . common . base . AsciiTest testCase = new com . google . common . base . AsciiTest ( ) ; - testCase . testEqualsIgn...
Fix test that will fail in an upcoming patch to GWT
<nb> public class JetRefactoringUtil { Project project = declaration . getProject ( ) ; Map < PsiElement , CallableDescriptor > overriddenElementsToDescriptor = new HashMap < PsiElement , CallableDescriptor > ( ) ; - for ( CallableDescriptor overridenDescriptor : OverrideResolver . getAllOverriddenDescriptors (...
only collect those descriptors which resolve to callables
<nb> public class Package implements Serializable { COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT public void removeTarget ( Target target ) { if ( target . getPackage ( ) == pkg ) { <nb> public class Package implements Serializable { COMMENT COMMENT - COMMENT - COMMENT + COMMENT...
Fully qualify links to PackageFunction in Package
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Replace deprecated class usage
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class SoapJaxbDataFormat extends JaxbDataFormat { COMMENT COMMENT COMMENT + COMMENT COMMENT - public void marshal ( Exchange exchange , Object inputObject , Outpu...
Fixed the build error of camel soap
<nb> public class AQUtility { } - private static final int IO_BUFFER_SIZE = NUMBER0 * NUMBER1 ; + private static final int IO_BUFFER_SIZE = NUMBER1 ; public static void copy ( InputStream in , OutputStream out ) throws IOException { byte [ ] b = new byte [ IO_BUFFER_SIZE ] ;
Reduce buffer size for copy
<nb> public class ExtractMethodProcessor implements MatchProvider { } private void doExtract ( ) throws IncorrectOperationException { - myExpression = myInputVariables . replaceWrappedReferences ( myElements , myExpression ) ; - renameInputVariables ( ) ; PsiMethod newMethod = generateEmptyMethod ( myThro...
prepare method before fix folded usages
<nb> public class SlaveIdGenerator implements IdGenerator if ( this . highestIdInUse > localHighId ) { this . localIdGenerator . setHighId ( this . highestIdInUse ) ; - System . out . println ( STRING0 + localHighId ) ; } } <nb> public class SlaveIdGenerator implements IdGenerator public void setHighI...
Fixed a problem with storing high ID
<nb> public class GLMModel extends Model < GLMModel , GLMModel . GLMParameters , GLMModel . GLM SINGLE body . p ( STRING0 ) . nl ( ) ; if ( _parms . _family == Family . binomial ) { - body . ip ( STRING1 ) . p ( _output . _threshold ) . p ( STRING2 ) . nl ( ) ; + body . ip ( STRING3 ) . p ( _output . _thresho...
fixed parenthesis in GLM POJO generation
<nb> public class HttpRequest { COMMENT COMMENT protected HttpRequest closeOutput ( ) throws IOException { + progress ( null ) ; if ( output == null ) return this ; if ( multipart )
Call progress null in closeOutput
<nb> import static 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 NAMESPACE ; i...
Remove unused imports
<nb> public class NavigateFromSourceTest extends BaseProjectViewTestCase { STRING0 + STRING1 + STRING2 + - STRING3 + + STRING4 + STRING5 + STRING6 + getRootFiles ( ) +
fix test data
<nb> public class RuleMatch implements Comparable < RuleMatch > { this . toPos = toPos ; this . message = message ; SINGLE - Matcher matcher = SUGGESTION_PATTERN . matcher ( message ) ; + final Matcher matcher = SUGGESTION_PATTERN . matcher ( message ) ; int pos = NUMBER0 ; while ( matcher . find ( pos ) ...
fixing deprecate Javadoc comment minor cleanup
<nb> public class GenerateSourcesMojo extends AbstractAndroidMojo { getLog ( ) . warn ( STRING0 + androidManifestFilePre4 + STRING1 - + STRING2 ) ; + + STRING3 ) ; hasNonStandardStructure = true ; } if ( resourceDirectoryPre4 . exists ( ) && ! resourceDirectoryPre4 . equals ( resourceDirectory ) )
Fixing typo in warning message
<nb> public class GeometryBatchFactory { VertexBuffer inBuf = inMesh . getBuffer ( Type . values ( ) [ bufType ] ) ; VertexBuffer outBuf = outMesh . getBuffer ( Type . values ( ) [ bufType ] ) ; - if ( outBuf == null ) { + if ( inBuf == null || outBuf == null ) { continue ; } - + if ( Type . Index ....
improve failsafeness of GeometryBatchFactory
<nb> public class AntlrPlugin implements Plugin < ProjectInternal > { sourceSet . getName ( ) ) ) ; SINGLE - antlrTask . conventionMapping ( STRING0 , new Callable < Object > ( ) { - public Object call ( ) throws Exception { - return antlrDirectoryDelegate . getAntlr ( ) ; - } - } ) ; + antlrTask . se...
replace SourceTask defaultSource usage in AntlrPlugin
<nb> public class MatchState { if ( ! formattedToken . getChunkTags ( ) . isEmpty ( ) ) { anTkRead . setChunkTags ( formattedToken . getChunkTags ( ) ) ; } + if ( formattedToken . isImmunized ( ) ) { + anTkRead . immunize ( ) ; + } return anTkRead ; } <nb> class DisambiguationPatternRuleReplacer ext...
fix a bug when immunization info was lost during disambiguation which caused weird false positives
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ApproximateHistogramGroupByQueryTest { private final QueryRunner < Row > runner ; private GroupByQueryRunnerFactory facto...
remove unused test code
<nb> public class StorageService implements IEndpointStateChangeSubscriber , StorageSe COMMENT public void forceTableRepair ( final String tableName , final String . . . columnFamilies ) throws IOException { - AntiEntropyService . RepairSession sess = AntiEntropyService . instance . getRepairSession ( tableName...
Repair should repair all CFs when no CFs are specified
<nb> public class ContentPacketExtension implements PacketExtension COMMENT COMMENT COMMENT - public List < PacketExtension > getChildExtensions ( ) + public List < PacketExtension > getExtensions ( ) { return childExtensions ; } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Adds more bits to the jingle parsing and packet construction
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IJProjectCleaner { } for ( File file : files ) { + file = file . getAbsoluteFile ( ) ; if ( filesToKeep . contains ( ...
Fix handling of symbolic links in the cleaner
<nb> public class SubclassImplementationTarget extends Implementation . Target . Abstract @ override public String toString ( ) { - return STRING0 + name ( ) ; + return STRING1 + name ( ) ; } } <nb> public class SubclassImplementationTargetTest extends AbstractImplementationTarg } @ test - @ s...
Fixed another toString method
<nb> public class BrowseAnimationFragment extends } Item createRandomItem ( ) { - switch ( sRand . nextInt ( NUMBER0 ) ) { + switch ( sRand . nextInt ( NUMBER1 ) ) { default : case NUMBER2 : return new Item ( STRING0 , new OnItemClickedListener ( ) { <nb> public class BrowseAnimationFragment extends ...
Add test case of ArrayObjectAdapter replace
<nb> class Validator { Node . PageDirective pageDir ) throws JasperException { Node . Root root = pageDir . getRoot ( ) ; - String configEnc = root . getJspConfigPageEncoding ( ) . toUpperCase ( ) ; + String configEnc = root . getJspConfigPageEncoding ( ) ; String pageDirEnc = thePageDirEnc . toUpperCase ( ...
Fix NPE reported on the dev list
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> abstract public class GenericItem implements Item { private void notifyListeners ( DataType oldState , DataType newState ) { } - abstract protected List < Class < ? extends Dat...
extracted Item interface
<nb> public class ClusterState implements ToXContent { return blocks ( blocksBuilder . build ( ) ) ; } - public Builder blocks ( ClusterBlocks block ) { - this . blocks = block ; + public Builder blocks ( ClusterBlocks blocks ) { + this . blocks = blocks ; return this ; }
Renamed ClusterBlocks variable named block to blocks
<nb> public class ContactRssImpl } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT public int hashCode ( ) { - int hash = NUMBER0 ; - return hash ; + return getAddress ( ) . hashCode ( ) ; } COMMENT
removed the previously autogenerated hascode method with a more consistent one
<nb> public class JBossWebCometSupport extends AsynchronousProcessor { SINGLE if ( event == null ) { + logger . error ( STRING0 ) ; throw unableToDetectComet ; }
Add debug statement
<nb> public enum BlockType { COMMENT public static boolean canPassThrough ( int id ) { return id == NUMBER0 SINGLE + || id == NUMBER1 SINGLE + || id == NUMBER2 SINGLE || id == NUMBER3 SINGLE || id == NUMBER4 SINGLE || id == NUMBER5 SINGLE
Changed water to be considered a pass through block
<nb> public class OIndexUnique extends OIndexOneValue { SINGLE if ( ! value . equals ( iSingleValue ) ) throw new ORecordDuplicatedException ( String . format ( - STRING0 , null , - OIndexException . class , iSingleValue . getIdentity ( ) , key , getName ( ) , value . getIdentity ( ) ) , value . getIdentity (...
Fixed Exception message on duplicated record
<nb> public class JetClassInitializer extends JetDeclarationImpl implements JetStatem return body ; } - @ notnull + @ nullable public PsiElement getOpenBraceNode ( ) { - ASTNode openBraceNode = getNode ( ) . findChildByType ( JetTokens . LBRACE ) ; - assert openBraceNode != null ; - return openBraceNo...
Fix brace node extraction from class initializer
<nb> package NAMESPACE ; + import NAMESPACE ; + + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT COMMENT public class TestKeySnapshot extends TestUtil { + @ test public void testGlobalKeySe...
Missing Test annotation fixed
<nb> public class UnusedSymbolUtil { @ notnull GlobalUsageHelper helper ) { if ( helper . isLocallyUsed ( method ) ) return true ; - boolean aPrivate = method . hasModifierProperty ( PsiModifier . PRIVATE ) ; + boolean isPrivate = method . hasModifierProperty ( PsiModifier . PRIVATE ) ; PsiClass containingC...
correct searchscope avoid problems when user changes scope via Find Usages Settngs
<nb> public class DNSUtil { HostAddress result = resolveSRV ( STRING0 + domain ) ; if ( result == null ) { - result = resolveSRV ( STRING1 + domain ) ; + result = resolveSRV ( STRING2 + domain ) ; } + if ( result == null ) { - result = resolveSRV ( STRING2 + domain ) ; + result = resolveSRV ( STRI...
added support for looking up xmpp server and client records from SRV
<nb> public class GotoActionAction extends GotoActionBase implements DumbAware { public void valueChanged ( ListSelectionEvent e ) { Object value = myList . getSelectedValue ( ) ; String text = getText ( value ) ; - if ( text != null ) { + if ( text != null && myDropdownPopup != null ) { myDropdownPopup . s...
prevent one more NPE
<nb> public class ProfileIntroductionLayout extends FriendlyCardView { ButterKnife . bind ( this ) ; } - public void bind ( String description ) { + public void bind ( String introduction ) { + introduction = introduction . trim ( ) ; mTitleText . setOnClickListener ( new OnClickListener ( ) { @ overrid...
Trim introduction Minor fixes
<nb> class ViewFetcher { return filteredViews ; } - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public < T extends View > ArrayList < T > getCurrentViews ( - Class < T > classToFilterBy , View parent , boolean isOnscreen ) { - ArrayList < T > filteredViews...
Removed unused method
<nb> public class ClassStructure implements Structure { this . classStructure = classStructure ; } - @ override public String getId ( ) { return this . classStructure . getName ( ) ; } - @ override public int getFieldSize ( ) { SINGLE return NUMBER0 ; <nb> public class SimpleStructure implemen...
removing Override s as eclipse doesn t get it
<nb> public final class Connections { return ; } + try { + stmt . execute ( STRING0 + + STRING1 + + STRING2 + + STRING3 ) ; + } catch ( SQLException e ) { + SINGLE + } + try { + stmt . execute ( STRING4 + + STRING5 + + STRING2 + + STRING6 ) ; + } catch ( SQLException e ) { + SINGLE ...
Add function declarations
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT - public class BlendedTermQueryTest extends LuceneTestCase { + public ...
Extend ElasticsearchLuceneTestCase rather than LuceneTestCase
<nb> public class ZooClient extends AbstractZooKeeperManager static final String MASTER_NOTIFY_CHILD = STRING0 ; static final String MASTER_REBOUND_CHILD = STRING1 ; - private ZooKeeper zooKeeper ; + private final ZooKeeper zooKeeper ; private final int machineId ; private String sequenceNr ;
Made field final ensure the published object has that field initialized to avoid NPEs
<nb> public class Validator { SINGLE if ( dataAdapter == null ) { + String viewType = viewFieldType . getName ( ) ; String message = String . format ( - STRING0 , + STRING1 , annotationType . getName ( ) , - viewFieldType . getName ( ) , + viewType , ViewDataAdapter . class . getName ( ) , - rul...
Validator Better error message for missing adapters
<nb> public class Notification implements Parcelable n . defaults = mDefaults ; n . flags = mFlags ; n . bigContentView = makeBigContentView ( ) ; - if ( mLedOnMs != NUMBER0 && mLedOffMs != NUMBER0 ) { + if ( mLedOnMs != NUMBER0 || mLedOffMs != NUMBER0 ) { n . flags |= FLAG_SHOW_LIGHTS ; } if ( ( mDefau...
Set FLAG_SHOW_LIGHTS if either on or off is nonzero
<nb> public class TaskLifecycleTest } @ test + public void testNoopTask ( ) throws Exception + { + final Task noopTask = new DefaultObjectMapper ( ) . readValue ( + STRING0 , + Task . class + ) ; + final TaskStatus status = runTask ( noopTask ) ; + + Assert . assertEquals ( STRING1 , TaskStatus ...
Add test for noop task
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RenameDialog extends RefactoringDialog { } if ( myPsiElement instanceof WebDirectoryElement ) { re...
allowing xml identifiers for xmltag and xmlattribute
<nb> public class DatePickerDialog extends AlertDialog implements OnClickListener , mDatePicker . getMonth ( ) , mDatePicker . getDayOfMonth ( ) ) ; } break ; + case BUTTON_NEGATIVE : + cancel ( ) ; + break ; } }
Cancel the date picker dialog when BUTTON_NEGATIVE is clicked
<nb> public class BodyResolver { resolveDelegationSpecifierLists ( c ) ; resolvePropertyDeclarationBodies ( c ) ; - resolveClassAnnotations ( c ) ; + + if ( ! TopDownAnalyzer . LAZY ) { + resolveClassAnnotations ( c ) ; + } resolveAnonymousInitializers ( c ) ; resolvePrimaryConstructorParameters ( c...
Do not process annotations twice in LAZY mode
<nb> public class EmailAddressAdapter extends ResourceCursorAdapter { final String name = mContacts . getName ( cursor ) ; final String address = mContacts . getEmail ( cursor ) ; - return new Address ( address , name ) . toString ( ) ; + return ( address == null ) ? STRING0 : new Address ( address , name ) ....
Fixed rare NullPointerException
<nb> public class ChangesBrowser extends JPanel implements TypeSafeDataProvider { public void calcData ( DataKey key , DataSink sink ) { if ( key == VcsDataKeys . CHANGES ) { - final List < Change > list = myViewer . getSelectedChanges ( ) ; + List < Change > list = myViewer . getSelectedChanges ( ) ; + if ...
return all changes if nothing selected
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class DefaultExecAction extends ExecHandleBuilder implements ExecAction { - public DefaultExecAction ( FileResolver fileResolver ) { + public DefaultExecAction ( PathToFileResolver fileResolver ) { super (...
Use a more general type for constructor parameter
<nb> public class ORole extends ODocumentWrapper { super ( CLASS_NAME ) ; document . field ( STRING0 , iName ) ; parentRole = iParent ; - document . field ( STRING1 , parentRole != null ? parentRole . getName ( ) : null ) ; + document . field ( STRING1 , iParent != null ? iParent . getDocument ( ) : null ) ; ...
fixed problem on inheritedRoles
<nb> public class SASLAuthentication { } StringBuilder sb = new StringBuilder ( NUMBER0 ) ; sb . append ( STRING0 ) ; - if ( session . getConnection ( ) . isSecure ( ) && session instanceof IncomingServerSession ) { + if ( session instanceof IncomingServerSession ) { SINGLE - sb . append ( STRING1 ) ; +...
Do not offer other SASL mechanisms than EXTERNAL to remote servers
<nb> class InProcessGradleExecuter extends AbstractGradleExecuter { DefaultGradleLauncherFactory factory = GLOBAL_SERVICES . get ( DefaultGradleLauncherFactory . class ) ; factory . addListener ( listener ) ; - GradleLauncher gradleLauncher = factory . newInstance ( parameter ) ; - gradleLauncher . addStandar...
Make sure test fixtures clean up GradleLauncher properly
<nb> public abstract class SearchByNameAbstractActivity < T > extends OsmandListActivity return null ; } + @ override + protected void onSaveInstanceState ( Bundle outState ) { + super . onSaveInstanceState ( outState ) ; + outState . putString ( STRING0 , endingText ) ; + outState . putParcelable ( STR...
Fix rotation for Search street city screen
<nb> public final class BluetoothClass implements Parcelable { public static final int PROFILE_OPP = NUMBER0 ; COMMENT public static final int PROFILE_HID = NUMBER1 ; + COMMENT + public static final int PROFILE_PANU = NUMBER2 ; + COMMENT + public static final int PROFILE_NAP = NUMBER3 ; COMMENT COMM...
Add Tethering class bit check
<nb> public class PackageParser { } } - public void setUse32bitAbi ( bool use32bitAbi ) { + public void setUse32bitAbi ( boolean use32bitAbi ) { this . use32bitAbi = use32bitAbi ; if ( childPackages != null ) { final int packageCount = childPackages . size ( ) ;
Fix build break
<nb> public class ZWaveAssociationCommandClass extends ZWaveCommandClass { COMMENT COMMENT public ZWaveAssociationEvent ( int nodeId , int group ) { - super ( nodeId , NUMBER0 ) ; + super ( nodeId ) ; this . group = group ; }
Use default event constructor for association events no endpoint needed
<nb> public class QueryUi implements EntryPoint , HistoryListener { metrics . remove ( i ) ; } updatey2range . onEvent ( null ) ; + + maybeSetTextbox ( qs , STRING0 , ylabel ) ; + maybeSetTextbox ( qs , STRING1 , y2label ) ; + maybeSetTextbox ( qs , STRING2 , yformat ) ; + maybeSetTextbox ( qs , STRING3...
Parse the Axis box from history
<nb> public class MapActivityActions implements DialogProvider { mDrawerList . setAdapter ( listAdapter ) ; if ( getMyApplication ( ) . getSettings ( ) . isLightContentMenu ( ) ) { - mDrawerList . setBackgroundColor ( mapActivity . getResources ( ) . getColor ( R . color . shadow_color ) ) ; + mDrawerList . s...
Fixed drawer bg color for white theme
<nb> public abstract class AbstractStep < T > implements Step < T > { if ( ! stillWorking ( ) && ! isCompleted ( ) ) { - if ( downstream != null ) + synchronized ( this ) { - downstream . endOfUpstream ( ) ; + SINGLE + SINGLE + if ( ! isCompleted ( ) ) + { + if ( downstream != null ) + { + d...
Ensures AbstractStep done is only called once
<nb> final class BroadcastRecord extends Binder { } didSomething = true ; receivers . remove ( i ) ; + if ( i < nextReceiver ) { + nextReceiver -- ; + } } } + nextReceiver = Math . min ( nextReceiver , receivers . size ( ) ) ; return didSomething ; }
Set broadcast nextReceiver correctly when package is disabled
<nb> public class OperatorMerge < T > implements Operator < T , Observable < ? extends T > > { COMMENT COMMENT COMMENT - if ( mergeProducer . requested < NUMBER0 ) { + if ( mergeProducer . requested == Long . MAX_VALUE ) { handleScalarSynchronousObservableWithoutRequestLimits ( t ) ; } else { handleScal...
Fix the unbounded check for merge
<nb> public abstract class JavaPlugin extends PluginBase { public void onEnable ( ) { } public ChunkGenerator getDefaultWorldGenerator ( String worldName , String id ) { - getServer ( ) . getLogger ( ) . severe ( STRING0 + description . getFullName ( ) + STRING1 ) ; return null ; }
Move world generator warning to CraftBukkit
<nb> public class PyCharmEduInitialConfigurator { uiSettings . SHOW_MEMORY_INDICATOR = false ; uiSettings . SHOW_DIRECTORY_FOR_NON_UNIQUE_FILENAMES = true ; uiSettings . SHOW_MAIN_TOOLBAR = false ; + uiSettings . SHOW_NAVIGATION_BAR = false ; codeInsightSettings . REFORMAT_ON_PASTE = CodeInsightSettings . NO_...
do not show navigation bar by default
<nb> public class PactCompiler { SINGLE if ( this . computeEstimates ) { n . computeOutputEstimates ( this . statistics ) ; - n . deriveOutputSchema ( ) ; } }
removed output schema computation
<nb> public class PersistentConn implements Comparable < PersistentConn > { public boolean isTimeout ( long now ) { return timeoutTs < now ; } + + public String toString ( ) { + return addr + STRING0 + ( timeoutTs - System . currentTimeMillis ( ) ) + STRING1 ; + } } <nb> public class PriorityQueue < E...
remove should return removed element
<nb> public interface JobProxy { COMMENT for ( JobApi jobApi : JobApi . values ( ) ) { if ( jobApi . isSupported ( context ) ) { - jobApi . getCachedProxy ( context ) . cancel ( jobId ) ; + try { + jobApi . getCachedProxy ( context ) . cancel ( jobId ) ; + } catch ( Exception ignored ) { + SINGLE + } ...
Fix crash in GCM API while cleaning up orphaned jobs
<nb> final class FragmentManagerImpl extends FragmentManager implements LayoutInflate SINGLE SINGLE fragment . mInLayout = true ; + fragment . mHost = mHost ; SINGLE SINGLE SINGLE
Set host when restoring a fragment
<nb> public class DefaultCamelContext extends ServiceSupport implements CamelContext , return answer ; } - public void addRouteDefinitions ( Collection < RouteDefinition > routeDefinitions ) throws Exception { + public synchronized void addRouteDefinitions ( Collection < RouteDefinition > routeDefinitions ) t...
synchronized when adding or removing route definitions to avoid concurrency issues if doing this from multiple threads
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class VcsLogManager extends AbstractProjectComponent { VcsLogDataHolder . init ( myProject , logProvider , root , new Consumer < Vc...
dispose the VcsLogDataHolder
<nb> public class Person { return personID ; } - public long getLocalTableBlogId ( ) { + public int getLocalTableBlogId ( ) { return localTableBlogId ; }
getLocalTableBlogId should return int instead of long
<nb> public class VariableWidthBlock @ override public String toString ( ) { - StringBuilder sb = new StringBuilder ( STRING0 ) ; + StringBuilder sb = new StringBuilder ( STRING1 ) ; sb . append ( STRING2 ) . append ( getPositionCount ( ) ) ; sb . append ( STRING3 ) . append ( getRawSlice ( ) ) ; sb . a...
Fix VariableWidthBlock toString
<nb> public class PackageManagerService extends IPackageManager . Stub { if ( FileUtils . contains ( Environment . getRootDirectory ( ) , codePath ) ) { codeRoot = Environment . getRootDirectory ( ) ; } else if ( FileUtils . contains ( Environment . getOemDirectory ( ) , codePath ) ) { - codeRoot = Environment ...
Fix OEM native library path bug
<nb> public class OperationSetPresenceSipImpl SINGLE SINGLE + COMMENT + with message : Querying a Online state did not return + as expected expected : Online but was : Unknown + Iterator < Contact > rootContactsIter = getServerStoredContactListRoot ( ) . contacts ( ) ; <nb> public class OperationS...
Fix sip tests
<nb> public class bPermissionsResolver implements PermissionsResolver { public static PermissionsResolver factory ( Server server , YAMLProcessor config ) { try { - Class . forName ( STRING0 ) ; + Class . forName ( STRING1 ) ; } catch ( ClassNotFoundException e ) { return null ; }
fixing search for bPermissions
<nb> public final class ActivityManagerService extends ActivityManagerNative @ override public boolean isUserRunning ( int userId , int flags ) { - if ( checkCallingPermission ( INTERACT_ACROSS_USERS ) - != PackageManager . PERMISSION_GRANTED ) { + if ( userId != UserHandle . getCallingUserId ( ) && checkCa...
Relax isUserRunning when asking about self
<nb> class ReadTransaction else { throw new InvalidRecordException ( STRING0 + nodeId + - STRING1 + firstNode + - STRING2 + secondNode + STRING3 ) ; + STRING4 + firstNode + + STRING5 + secondNode + STRING6 + relRecord . getId ( ) + STRING3 ) ; } } position . setNextRecord ( nextRel ) ; <nb> class ...
Improved an exception message
<nb> final public class AndrolibResources { if ( framework ) { cmd . add ( STRING0 ) ; - cmd . add ( STRING1 ) ; - cmd . add ( STRING2 ) ; + SINGLE + SINGLE } if ( include != null ) {
Always compress resources arsc file
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import static NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unused imports
<nb> public class ContextHandler extends ScopedHandler implements Attributes , Gracefu if ( _contextPath == null ) throw new IllegalStateException ( STRING0 ) ; - if ( _logger != null ) + if ( _logger == null ) _logger = Log . getLogger ( getDisplayName ( ) == null ? getContextPath ( ) : getDisplayName ( ) ...
fixed accidental NPE on Context logger
<nb> public class WallFilter extends FilterAdapter implements WallFilterMBean { provider = new SQLServerProvider ( config ) ; } else { - throw new IllegalStateException ( STRING0 + dbType ) ; + throw new IllegalStateException ( STRING0 + dbType + STRING1 + dataSource . getUrl ( ) ) ; } this . inited = t...
improve error information
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public abstract class SearchResource { COMMENT @ context HttpServletRequest httpServletRequest ; + @ autowired GraphService graphService ; ...
correctly finish construction of TraverseOptions
<nb> public class ChainedTransactionManagerPostProcessor implements BeanDefinitionReg if ( transactionManagerBeanNames == null ) { if ( registry instanceof ListableBeanFactory ) { - transactionManagerBeanNames = ( ( ListableBeanFactory ) registry ) . getBeanNamesForType ( PlatformTransactionManager . class ) ; ...
Don t include non singletons or allow eager init when looking for bean names
<nb> public class Nio2Endpoint extends AbstractEndpoint < Nio2Channel > { if ( useCaches && running && ! paused ) { nioChannels . push ( socket . getSocket ( ) ) ; } - if ( useCaches && running && ! paused && socket != null ) { + if ( useCaches && running && ! paused ) { socketWrapperCache . push ( ( Nio2So...
Drop leftover useless null checks
<nb> public class CarbonPickleServer extends SimpleChannelUpstreamHandler implements if ( dps == null ) continue ; + SINGLE + if ( dps . getTags ( ) . size ( ) == NUMBER0 ) + { + logger . warn ( STRING0 + metric . getPath ( ) + STRING1 ) ; + return ; + } + long time = metric . getTime ( ) ; ti...
Added tag validation to pickle handler
<nb> public final class OperatorTakeUntil < T , E > implements Operator < T , T > { @ override public Subscriber < ? super T > call ( final Subscriber < ? super T > child ) { - final Subscriber < T > parent = new SerializedSubscriber < T > ( child ) { - - @ override - public void onCompleted ( ) { - chi...
Fix Rx serialization bug in takeUntil again
<nb> import static NAMESPACE ; quotedStatusId = ParseUtil . getLong ( STRING0 , json ) ; } - if ( ! json . isNull ( STRING1 ) ) { - quotedStatus = new StatusJSONImpl ( json . getJSONObject ( STRING1 ) ) ; - } - if ( ! json . isNull ( STRING0 ) ) { - quotedStatusId = ParseUtil . getLong ( STRING0 , json ...
Remove seemingly unnecessary double work
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT final class BitSet implements Serializable , Cloneable { <nb> final class BitSet implements Serializable , Cloneable { @ override public BitSet clone ( ) { - return new BitSet ( bits ) ; + return new BitSet ( bits . clone...
Fix BitSet clone and add hashCode equals
<nb> public final class SQLServerGrammar { private SQLServerGrammar ( ) { } - SINGLE + @ deprecated private static final Template DATEDIFF = TemplateFactory . DEFAULT . create ( STRING0 ) ; - SINGLE + @ deprecated private static final Template DATEADD = TemplateFactory . DEFAULT . create ( STRING1 )...
Add more deprecations
<nb> - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; public class StanfordCoreNLPClient extends AnnotationPipeline { COMMENT - private static Redwood . RedwoodChannels log = Redwood . channels ( StanfordCoreNLPClient . class ) ; + pr...
Make logger final
<nb> public class OGLESShaderRenderer implements Renderer { public EnumSet < Caps > getCaps ( ) { return caps ; } - + private int extractVersion ( String prefixStr , String versionStr ) { if ( versionStr != null ) { int spaceIdx = versionStr . indexOf ( STRING0 , prefixStr . length ( ) ) ; <nb> public...
fixed issue where parsing opengl es version was failing on some device and causing a crash
<nb> public class DataTracker public void unsubscribe ( INotificationConsumer consumer ) { - boolean found = subscribers . remove ( consumer ) ; - assert found : consumer + STRING0 ; + subscribers . remove ( consumer ) ; } public static SSTableIntervalTree buildIntervalTree ( Iterable < SSTableReader ...
Remove the assert from DataTracker unsubscribe
<nb> class AppWidgetServiceImpl { com . android . internal . R . styleable . AppWidgetProviderInfo_resizeMode , AppWidgetProviderInfo . RESIZE_NONE ) ; info . widgetCategory = sa . getInt ( - com . android . internal . R . styleable . AppWidgetProviderInfo_resizeMode , + com . android . internal . R . styleab...
Fix bug with getting widget categories
<nb> public class GraphTestSuite extends TestSuite { } public void testSettingProperties ( ) { + Graph graph = graphTest . getGraphInstance ( ) ; if ( ! graphTest . isRDFModel ) { - Graph graph = graphTest . getGraphInstance ( ) ; Vertex a = graph . addVertex ( null ) ; Vertex b = graph . addVertex ( nu...
added test for editing properties while iterating
<nb> public final class MediaCodecInfo { ( int ) ( mAspectRatioRange . getUpper ( ) . doubleValue ( ) * height ) ) ; return range ; } catch ( IllegalArgumentException e ) { - SINGLE - Log . w ( TAG , STRING0 + height , e ) ; + SINGLE + Log . v ( TAG , STRING0 + height ) ; throw new IllegalArgumentExcept...
remove stack trace logspam when querying invalid sizes
<nb> public final class Vector3f implements Savable , Cloneable , java . io . Serializable return this ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public Vector3f project ( Vector3f other ) { float n = this . dot ( other ) ; SINGLE float d = other . lengthSquared ( ) ; SINGLE...
add javadoc for Vector3f project