diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class ChangesBrowserManyUnversionedFilesNode extends ChangesBrowserNode { renderer . append ( userObject . toString ( ) , SimpleTextAttributes . REGULAR_ATTRIBUTES ) ; final String s = STRING0 + ( myDirsSize > NUMBER0 ? myDirsSize + STRING1 : STRING2 ) + ( myUnversionedSize - myDirsSize ) + STRING3 ; ...
Remove extra space in the Click to browse link
<nb> public class MeFragment extends Fragment { MultipartRequest multipartRequest = new MultipartRequest ( request , listener , errorListener ) ; multipartRequest . addPart ( STRING0 , file ) ; - multipartRequest . addPart ( STRING1 , STRING2 ) ; + multipartRequest . addPart ( STRING1 , AccountHelper . getDef...
use the correct email for the user
<nb> public class OpenstreetmapRemoteUtil implements OpenstreetmapUtil { for ( String k : n . getTagKeySet ( ) ) { String val = n . getTag ( k ) ; + if ( val . length ( ) == NUMBER0 ) continue ; ser . startTag ( null , STRING0 ) ; SINGLE ser . attribute ( null , STRING1 , k ) ; SINGLE ser . attribute ( nu...
Don t commit empty values case of no name
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CoreModManager { try { FileOutputStream targ = new FileOutputStream ( target ) ; + Files . createParentDirs ( target ) ; ByteStreams . c...
Make the parent dir tree for the dep extractor
<nb> public final class Constants { STRING0 , STRING1 , SINGLE + STRING2 , SINGLE STRING3 , SINGLE STRING4 , SINGLE STRING5 + R . drawable . ic_launcher , SINGLE
Added link of very large image
<nb> public class DevelopmentServer { systemEnvironment . setProperty ( GoConstants . USE_COMPRESSED_JAVASCRIPT , Boolean . toString ( false ) ) ; try { server . startServer ( ) ; + + String hostName = systemEnvironment . getListenHost ( ) ; + if ( hostName == null ) { + hostName = STRING0 ; + } + +...
Adds startup banner to Development Server
<nb> public class AntTypeDefImpl extends AntTaskImpl implements AntTypeDef { clazz = loader . loadClass ( classname ) ; } } - catch ( ClassNotFoundException e ) { + catch ( Exception e ) { clazz = null ; } final String name = getDefinedName ( ) ;
on loading classes catch all exceptions
<nb> public abstract class AbstractViewAssert < S extends AbstractViewAssert < S , A > , A e @ targetapi ( KITKAT ) public S canResolveTextAlignment ( ) { isNotNull ( ) ; - assertThat ( actual . canResolveLayoutDirection ( ) ) SINGLE + assertThat ( actual . canResolveTextAlignment ( ) ) SINGLE . overridingE...
Call correct method for AbstractViewAssert canResolveTextAlignment
<nb> public class Blog { } public boolean isActive ( ) { - return ! password . equals ( STRING0 ) ; + return ! TextUtils . isEmpty ( password ) ; } public boolean isAdmin ( ) { <nb> public class Blog { Map < String , Object > blogOptions = gson . fromJson ( getBlogOptions ( ) , type ) ; StringMap ...
fix other potential npe
<nb> public abstract class AbstractJPATest { } @ test + public void Enum_Eq ( ) { + assertEquals ( NUMBER0 , query ( ) . from ( company ) . where ( company . ratingOrdinal . eq ( Rating . A ) ) . count ( ) ) ; + assertEquals ( NUMBER0 , query ( ) . from ( company ) . where ( company . ratingString . eq ( Ra...
Add test for enum eq
<nb> public class InterProcessReadWriteLock @ override public PredicateResults getsTheLock ( CuratorFramework client , List < String > children , String sequenceNodeName , int maxLeases ) throws Exception { - return readLockPredicate ( client , children , sequenceNodeName ) ; + return readLockPredicate ( chil...
Removed unused argument
<nb> public class FunctionCodegen { Method method = state . getTypeMapper ( ) . mapSignature ( functionDescriptor . getName ( ) , functionDescriptor ) . getAsmMethod ( ) ; Method overriden = state . getTypeMapper ( ) . mapSignature ( overriddenFunction . getName ( ) , overriddenFunction . getOriginal ( ) ) . getAsm...
generate bridge flag for bridge methods
<nb> public class RoutingAlgorithmSpecialAreaTests OneRun or = new OneRun ( FLOAT0 , FLOAT1 , FLOAT2 , FLOAT3 , NUMBER0 , NUMBER1 ) ; testCollector . assertDistance ( prepare , or . getList ( idx , ef ) , or ) ; - or = new OneRun ( FLOAT4 , FLOAT5 , FLOAT6 , FLOAT7 , NUMBER2 , NUMBER3 ) ; + or = new OneRun ( ...
fixed test case
<nb> import NAMESPACE ; COMMENT COMMENT public class WriteCode extends DefaultCode { - private final String text ; + private String text ; public WriteCode ( String text ) { this . text = text ; <nb> public class WriteCode extends DefaultCode { } @ override + public void append ( String text )...
optimize away the append call
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class TransactionAspectSupport implements BeanFactoryAware , Init COMMENT public static TransactionStatus currentTransactionStatus ( ) throws NoTransactionException { TransactionInfo info = currentTransactionInfo ( ) ; -...
TransactionAspectSupport currentTransactionStatus reliably throws NoTransactionException
<nb> public class Imports { imports . add ( STRING0 ) ; imports . add ( STRING1 ) ; imports . add ( STRING2 ) ; + imports . add ( STRING3 ) ; imports . add ( STRING4 ) ; + imports . add ( STRING5 ) ; imports . add ( STRING6 ) ; imports . add ( STRING7 ) ; + imports . add ( STRING8 ) ; imports . add ...
added util packages to Imports java
<nb> public class MessageCompose extends Activity implements OnClickListener , OnFocus if ( signature != null ) { mMessageContentView . setText ( signature ) ; } + addAddress ( mBccView , new Address ( mAccount . getAlwaysBcc ( ) , STRING0 ) ) ; } - addAddress ( mBccView , new Address ( mAccount . getAlwa...
Fixed bug where always BCC address is added again when editing a draft
<nb> public class TelecomManager { public static final String METADATA_IN_CALL_SERVICE_UI = STRING0 ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final String METADATA_IN_CALL_SERVICE_CAR_MODE_UI = + STRING1 ; + + COMMENT COMMENT COMMENT COMMENT
Add metadata for car mode in call
<nb> public class NewShinyWebApplication extends ModalDialog < NewShinyWebApplication . R loadAndPersistClientState ( ) ; container_ = new VerticalPanel ( ) ; + container_ . setWidth ( STRING0 ) ; SINGLE appNameLabel_ = new Label ( STRING1 ) ; <nb> public class NewShinyWebApplication extends ModalDialog...
expand dialog a bit more
<nb> public class DefaultOsgiManifest implements OsgiManifest { setAnalyzerProperties ( analyzer ) ; return analyzer . calcManifest ( ) ; } catch ( IOException e ) { - throw new RuntimeException ( ) ; + throw new RuntimeException ( e ) ; } }
Fixed bug in exception reporting
<nb> public class StanfordCoreNLPServer implements Runnable { try { props . setProperty ( STRING0 , STRING1 ) ; StanfordCoreNLP pipeline = new StanfordCoreNLP ( props ) ; - } catch ( Throwable ignored ) { } + } catch ( Throwable ignored ) { + err ( STRING2 ) ; + } try { props . setProperty ( STRING3 ,...
Still have an error when we can t initialize annotators
<nb> public class ServiceSocketBindIntegrationTest { try { mWorkerClient = BlockStoreContext . INSTANCE . acquireWorkerClient ( STRING0 ) ; Assert . fail ( STRING1 ) ; - } catch ( IOException ie ) { + } catch ( RuntimeException rte ) { SINGLE }
Revert test change
<nb> import NAMESPACE ; public class TaskListFragmentPager extends ViewPager { + private static final int OFFSCREEN_PAGE_LIMIT = NUMBER0 ; + public TaskListFragmentPager ( Context context , AttributeSet attrs ) { super ( context , attrs ) ; + setOffscreenPageLimit ( OFFSCREEN_PAGE_LIMIT ) ; } @ ov...
Preload a few more fragments in the task list pager
<nb> public class JavaGeneratorTest final int templateIdOffset = NUMBER0 ; final short templateId = ( short ) NUMBER1 ; final int actingVersion = NUMBER2 ; - final int blockLength = NUMBER3 ; final String fqClassName = ir . applicableNamespace ( ) + STRING0 + READ_ONLY_MESSAGE_HEADER_TYPE ; when ( mockBuf...
Removed unused variable
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class TestWebRuleSet {
Apply Organize Imports to fix imports order that did not pass checkstyle validation
<nb> COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT package NAMESPACE ;
Fix license header in dbms module
<nb> final class AioServerSocketChannelConfig extends DefaultChannelConfig } @ override + @ suppresswarnings ( STRING0 ) public < T > T getOption ( ChannelOption < T > option ) { if ( option == SO_RCVBUF ) { return ( T ) Integer . valueOf ( getReceiveBufferSize ( ) ) ; <nb> final class AioSocketChannelC...
Suppress unchecked cast warnings for config options
<nb> public interface LivingEntity extends Entity { COMMENT COMMENT public void setMaximumAir ( int ticks ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void damage ( int amount ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void damage (...
Added damage int and damage int Entity for LivingEntity
<nb> public abstract class LocalDuplicatedRemovedScheduler implements Scheduler { @ override public void push ( Request request , Task task ) { - logger . trace ( STRING0 , request . getUrl ( ) ) ; + logger . trace ( STRING1 , request . getUrl ( ) ) ; if ( request . getExtra ( Request . CYCLE_TRIED_TIMES ) ...
change the formatter of log
<nb> public class StorageService extends NotificationBroadcasterSupport implements IE if ( logger . isDebugEnabled ( ) ) logger . debug ( STRING0 ) ; - if ( DatabaseDescriptor . isReplacing ( ) ) + if ( ! DatabaseDescriptor . isReplacing ( ) ) { if ( tokenMetadata . isMember ( FBUtilities . getBroadcastAd...
invert replace condition
<nb> import NAMESPACE ; COMMENT public class YouTubeExtension extends SeriesGuideExtension { - private static final String YOUTUBE_SEARCH = STRING0 ; - public YouTubeExtension ( ) { super ( STRING1 ) ; }
Drop unused constant
<nb> public class ProxyServlet extends AbstractProxyServlet COMMENT COMMENT COMMENT + COMMENT COMMENT + @ deprecated protected String filterResponseHeader ( HttpServletRequest request , String headerName , String headerValue ) { return headerValue ;
Deprecated filterResponseHeader in favour of filterServerResponseHeader
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DownloadService extends Service { media . setFile_url ( request . getDestination ( ) ) ; media . setHasEmbeddedPicture ( nu...
After downloading check downloaded episode for chapters
<nb> final class Settings { } mPendingPackages . clear ( ) ; + COMMENT + COMMENT + COMMENT + COMMENT + final Iterator < PackageSetting > disabledIt = mDisabledSysPackages . values ( ) . iterator ( ) ; + while ( disabledIt . hasNext ( ) ) { + final PackageSetting disabledPs = disabledIt . next ( ) ; ...
Updated system packages retain shared user
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class SSLExternalServerTest extends AbstractHTTPSPDYTest <nb> public class SSLExternalServerTest extends AbstractHTTPSPDYTest } @ test ( timeout = NUMBER0 ) + @ ignore ...
ignore test dependent on external server
<nb> public class SigningInActivity extends Activity { final EditText input = new EditText ( this ) ; - SINGLE input . setInputType ( InputType . TYPE_TEXT_VARIATION_PASSWORD ) ; input . setTransformationMethod ( new PasswordTransformationMethod ( ) ) ; <nb> import NAMESPACE ; import NAMESPACE ; imp...
turn off auto complete suggestions for the account ID field
<nb> public class StorageEnginePerformanceTest { STRING0 ) . withRequiredArg ( ) . describedAs ( STRING1 ) ; - parser . accepts ( STRING2 , STRING3 ) ; + parser . accepts ( STRING2 , STRING3 ) + . withRequiredArg ( ) + . describedAs ( STRING4 ) ; parser . accepts ( STRING5 , STRING6 ) . withRequiredAr...
Perf test doesn t pick up props file from cmdline
<nb> public final class HttpsURLConnectionImpl extends HttpsURLConnection { @ override public SSLSocketFactory getSSLSocketFactory ( ) { return delegate . client . getSslSocketFactory ( ) ; } + + @ override public void setFixedLengthStreamingMode ( long contentLength ) { + delegate . setFixedLengthStreaming...
Fix a bug where HTTPS POSTS were always buffered
<nb> public class JarDiscoverer implements ITypeDiscoverer { jar = new JarFile ( candidate . getModContainer ( ) ) ; - if ( jar . getManifest ( ) != null && ( jar . getManifest ( ) . getMainAttributes ( ) . get ( STRING0 ) != null || jar . getManifest ( ) . getMainAttributes ( ) . get ( STRING1 ) != null ) ) ...
Remove dead code in JarDiscoverer
<nb> public class HiveInputFormat < K extends WritableComparable , V extends Writable > LOG . info ( STRING0 + inputFormat ) ; @ suppresswarnings ( STRING1 ) LlapIo < VectorizedRowBatch > llapIo = LlapIoProxy . getIo ( ) ; + if ( llapIo == null ) { + LOG . info ( STRING2 ) ; + return inputFormat ; + } r...
Fix split generation NPE
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BytecodeAnalysisIndex extends FileBasedIndexExtension < Long , IdEquat private static final SmartLongKeyDescriptor KEY_DESCRIPTOR = new Sma...
disable bytecode analysis index as it leads to OOM during indexing teamcity as Yann says
<nb> public final class LoadedApk { final boolean isBundledApp = mApplicationInfo . isSystemApp ( ) && ! mApplicationInfo . isUpdatedSystemApp ( ) ; - SINGLE - SINGLE - SINGLE - SINGLE - String libraryPermittedPath = STRING0 ; + String libraryPermittedPath = mDataDir ; if ( isBundledApp ) { SINGLE...
Simplify permitted path construction
<nb> public abstract class CommonsFileUploadSupport { if ( encoding != null && ! encoding . equals ( fileUpload . getHeaderEncoding ( ) ) ) { actualFileUpload = newFileUpload ( getFileItemFactory ( ) ) ; actualFileUpload . setSizeMax ( fileUpload . getSizeMax ( ) ) ; + actualFileUpload . setFileSizeMax ( fileUp...
CommonsFileUploadSupport applies maxUploadSizePerFile to FileUpload copy as well
<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 ; public class JetTypesCompletionHelper { private JetTy...
Inlined method which was used only once and in different subsystem
<nb> abstract class TestGJChronology extends AbstractChronology { throw new UnsupportedOperationException ( ) ; } - public long getTimeOnlyMillis ( long millis ) { + long getTimeOnlyMillis ( long millis ) { return mod ( millis , MILLIS_PER_DAY ) ; } - public long getDateOnlyMillis ( long millis ) { ...
Made getDateOnlyMillis and getTimeOnlyMillis hidden
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc mSendScrollEvent = true ; int functor = NUMBER0 ; ...
Fix crash in setNewPicture
<nb> class ProjectStoreImpl extends BaseFileConfigurableStoreImpl implements IProject } private Module [ ] getPersistentModules ( ) { - return ( ( ModuleManagerImpl ) ModuleManager . getInstance ( myProject ) ) . getPersistentModules ( ) ; + final ModuleManager moduleManager = ModuleManager . getInstance ( my...
fixing ProjectStoreImplTest testProjectSave
<nb> public class DragTopLayout extends FrameLayout { if ( action == MotionEvent . ACTION_UP || action == MotionEvent . ACTION_CANCEL ) { resetDispatchingContentView ( ) ; + dispatchTouchEvent ( event ) ; } return true ;
dispatch up event to fix fling
<nb> public class CompileServerManager implements ApplicationComponent { SINGLE cmdLine . addParameter ( STRING0 ) ; - cmdLine . addParameter ( STRING1 ) ; + SINGLE if ( Registry . is ( STRING2 ) ) { cmdLine . addParameter ( STRING3 + Server . USE_MEMORY_TEMP_CACHE_OPTION + STRING4 ) ; }
switch off debug
<nb> public class ServiceContainerEndpointRegistry implements EndpointRegistry { return false ; } - @ override public void register ( Endpoint endpoint ) { SINGLE } - @ override public void unregister ( Endpoint endpoint ) { SINGLE }
Removing Override annotation from interface methods to be pruned soon
<nb> public class IconModel { private String getLocalDrawableIconPath ( String fileName , String size ) { StringBuilder sb = new StringBuilder ( ) ; - sb . append ( File . separator ) ; + sb . append ( STRING0 ) ; String [ ] fileString = iconName . split ( STRING0 ) ; sb . append ( fileString [ NUMBER0 ] ...
Restored the original separators in the local drawable icon path
<nb> public class BalancedRandomRoutingTableBuilder implements RoutingTableBuilder { Map < String , String > instanceToStateMap = externalView . getStateMap ( segment ) ; for ( String instance : instanceToStateMap . keySet ( ) . toArray ( new String [ NUMBER0 ] ) ) { if ( ! instanceToStateMap . get ( instance ) ....
Fixing return value in original RB
<nb> public class HystrixMetricsPollerTest { int v2 = metricsCount . get ( ) ; SINGLE + System . out . println ( STRING0 + v1 + STRING1 + v2 ) ; assertTrue ( v2 == v1 ) ; poller . start ( ) ;
Added println to MetricsPoller unit test
<nb> public class CppCompletionManager implements CompletionManager CppCompletionPopupMenu popup = getCompletionPopup ( ) ; if ( ( popup == null ) || ! popup . isVisible ( ) ) return false ; - - SINGLE - docDisplay_ . setPopupVisible ( true ) ; - + SINGLE if ( keyCode == KeyCodes . KEY_BACKSPACE ) ...
prevent diagnostics while c completion popup is showing
<nb> public class FileReference implements FileReferenceOwner , PsiPolyVariantReferenc public boolean execute ( PsiFileSystemItem element ) { result . add ( new PsiElementResolveResult ( getOriginalFile ( element ) ) ) ; - return false ; + return true ; } } ) ; }
partially implemented CompoundInitializers
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import static NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMM...
Added missing header
<nb> public class PrimaryKeyVisitor extends SymbolVisitor < PrimaryKeyVisitor . Context , @ override - public Void visitReference ( Reference symbol , Context context ) { - return super . visitReference ( symbol , context ) ; - } - - @ override public Void visitFunction ( Function symbol , Context con...
removed unused func
<nb> public class VersionRange return new VersionRange ( recommendedVersion , copiedRestrictions ) ; } - + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static VersionRange newRange ( ArtifactVersion version , List < Restriction > restrictions ) + { + return new Versio...
Add a custom version range factory method
<nb> public final class SQLiteDatabase extends SQLiteClosable { File dir = file . getParentFile ( ) ; if ( dir != null ) { final String prefix = file . getName ( ) + STRING0 ; - final FileFilter filter = new FileFilter ( ) { + File [ ] files = dir . listFiles ( new FileFilter ( ) { @ override public boole...
Fix NPE in deleteDatabase
<nb> public class UndertowDeploymentService implements Service < UndertowDeploymentServ return ; } File [ ] files = file . listFiles ( ) ; - if ( files == null ) { - return ; - } - for ( File f : files ) { - recursiveDelete ( f ) ; + if ( files != null ) { + for ( File f : files ) { + recursiveDel...
Fix issue with removing temporary files
<nb> public class ActionBarSherlockCompat extends ActionBarSherlock { SINGLE KeyCharacterMap kmap = KeyCharacterMap . load ( KeyCharacterMap . VIRTUAL_KEYBOARD ) ; mMenu . setQwertyMode ( kmap . getKeyboardType ( ) != KeyCharacterMap . NUMERIC ) ; - mMenu . startDispatchingItemsChanged ( ) ; if ( DEBUG ) Lo...
Set menu on action bar before dispatching changes
<nb> public class TestName extends TestWatchman { private String fName ; @ override - public void starting ( FrameworkMethod method ) throws Exception { + public void starting ( FrameworkMethod method ) { fName = method . getName ( ) ; } <nb> public class TestWatchman implements StatementInterceptor {...
Remove throws from TestWatchman starting
<nb> package NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import NAMESPACE ;
Taking hasItem from CoreMatchers API instead of from hamcrest core
<nb> public class RosterItemProvider { rs . close ( ) ; SINGLE pstmt . close ( ) ; + pstmt = null ; } } catch ( SQLException e ) {
Fixed error where a statement was closed twice
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class StandardPageCacheStressIT { @ test <nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT ...
documenting stress tests
<nb> public class TemplateState implements Disposable { if ( selStart >= NUMBER0 && selEnd >= NUMBER0 ) { myEditor . getSelectionModel ( ) . setSelection ( mySegments . getSegmentStart ( selStart ) , mySegments . getSegmentStart ( selEnd ) ) ; } - fireBeforeTemplateFinished ( ) ; final Editor editor = myEdito...
stop dumb mode when template was canceled by dialog peter
<nb> public class DefaultContainerService extends IntentService { final int availSdMb ; if ( Environment . MEDIA_MOUNTED . equals ( Environment . getExternalStorageState ( ) ) ) { - StatFs sdStats = new StatFs ( Environment . getExternalStorageDirectory ( ) . getPath ( ) ) ; - long availSdSize = ( long ) ( sd...
Fix external size calculations
<nb> public abstract class HttpObjectDecoder extends ReplayingDecoder < HttpObjectDecod private HttpContent invalidChunk ( Exception cause ) { checkpoint ( State . BAD_MESSAGE ) ; - HttpContent chunk = new DefaultHttpContent ( Unpooled . EMPTY_BUFFER ) ; + HttpContent chunk = new DefaultLastHttpContent ( Unpo...
HttpObjectDecoder invalidChunk should return LastHttpChunk
<nb> public class LogCallbackAppender extends UnsynchronizedAppenderBase < ILoggingEven case Level . INFO_INT : return LogListener . Level . INFO ; case Level . DEBUG_INT : + default : return LogListener . Level . DEBUG ; case Level . TRACE_INT : return LogListener . Level . TRACE ; - default : - retu...
Fix quality flaws
<nb> public abstract class HystrixCollapserProperties { COMMENT COMMENT public static class Setter { - private Boolean collapsingEnabled = null ; + @ deprecated private Boolean collapsingEnabled = null ; private Integer maxRequestsInBatch = null ; private Integer timerDelayInMilliseconds = null ; privat...
Deprecate getter and setter for unused collapsingEnabled property in Collapser Setter
<nb> public class MediaType extends MimeType implements Serializable { public final static String APPLICATION_OCTET_STREAM_VALUE = STRING0 ; COMMENT + COMMENT + COMMENT + public final static MediaType APPLICATION_PDF ; + + COMMENT + COMMENT + COMMENT + public final static String APPLICATION_PDF_VA...
Add MediaType constants for application pdf
<nb> public class TableTripPattern implements TripPattern , Serializable { return timetable . getTripTimes ( tripIndex ) ; } + COMMENT + + SINGLE + SINGLE + COMMENT public int getRunningTime ( int stopIndex , int trip ) { return scheduledTimetable . getRunningTime ( stopIndex , trip ) ;
remove Delegate scheduledTimetable replace some wrapper methods
<nb> public class PyChangeSignatureDialog extends ChangeSignatureDialogBase < PyParamet boolean hadParamsAfterSingleStar = false ; LanguageLevel languageLevel = LanguageLevel . forElement ( myMethod . getMethod ( ) ) ; + int parametersLength = parameters . size ( ) ; + for ( PyParameterTableModelItem info :...
do not allow removing last argument after star when refactoring function with keyword only arguments
<nb> public abstract class AbstractAlterOperation extends AtomicReferenceBackupAwareO @ override protected void writeInternal ( ObjectDataOutput out ) throws IOException { super . writeInternal ( out ) ; - out . writeObject ( function ) ; + out . writeData ( function ) ; } @ override protected void re...
Fixed serialization writeObject writeData
<nb> import NAMESPACE ; public class InstanceofCheckerGeneratorImpl extends InstanceofCheckerGenerator { private final ConcurrentFactoryMap < Class , Condition < Object > > myCache = new ConcurrentFactoryMap < Class , Condition < Object > > ( ) { @ override - protected Condition < Object > create ( Class key ) ...
can t do instanceof anonymous or private class
<nb> import NAMESPACE ; public class PyCommaSelectionHandler implements ExtendWordSelectionHandler { public boolean canSelect ( final PsiElement e ) { return e instanceof PyReferenceExpression || e instanceof PyKeyValueExpression || e instanceof PyKeywordArgument - || e instanceof PyNumericLiteralExpression || ...
fixed comma selection handler to select comma in function definition and function call
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ConfigProjectComponent implements ProjectComponent { public void projectOpen...
dispose CodeStyleManager with project
<nb> public abstract class AbstractTypeAwareCheck extends Check { } COMMENT + @ suppresswarnings ( STRING0 ) private static final class RegularClass extends AbstractClassInfo { COMMENT private final String surroundingClass ;
Add SuppressWarnings for known deprecation
<nb> public class AndroidSensorJoyInput implements JoyInput , SensorEventListener { private InputManager inputManager = null ; private SensorManager sensorManager = null ; private Vibrator vibrator = null ; + private boolean vibratorActive = false ; private long maxRumbleTime = NUMBER0 ; SINGLE private RawI...
Fix issue with onPause trying to cancel vibration when user has not defined Vibration Service permission in manifest
<nb> public class NavigationBarGestureHelper extends GestureDetector . SimpleOnGestureL ? ( int ) event . getRawY ( ) : ( int ) event . getRawX ( ) , ! mIsVertical - ? mVelocityTracker . getXVelocity ( ) - : mVelocityTracker . getYVelocity ( ) ) ; + ? mVelocityTracker . getYVelocity ( ) + : mVelocityTrack...
Fix velocity when dragging up from nav bar
<nb> public class ShadowPreferenceActivity extends ShadowActivity { private PreferenceScreen preferenceScreen ; @ implementation - public void onCreate ( Bundle savedInstanceState ) { - realActivity . setContentView ( android . R . layout . list_content ) ; - } - - @ implementation public void addPref...
Don t implement onCreate in ShadowPreferenceActivity
<nb> public class JStackTest extends TestUtil { for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { String traces [ ] = new water . util . JStackCollectorTask ( ) . doAllNodes ( ) . _traces ; Assert . assertEquals ( traces . length , H2O . CLOUD . size ( ) ) ; + for ( int j = NUMBER0 ; j < traces . length ; ++ j ) {...
Add more testing to JStackTest
<nb> public abstract class TransactionalMapProxySupport extends AbstractDistributedOb public Object getForUpdateInternal ( Data key ) { VersionedValue versionedValue = lockAndGet ( key , tx . getTimeoutMillis ( ) ) ; - if ( versionedValue == null ) { - throw new TransactionException ( STRING0 + getService ( )...
Removed unneeded nullcheck
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AuthUI { public Intent build ( ) { Context context = mApp . getApplicationContext ( ) ; + return build ( context ) ; + } + + @ visib...
Add context overload
<nb> public class ReferenceProvidersRegistry implements ElementManipulatorsRegistry { registerXmlAttributeValueReferenceProvider ( attributeNames , elementFilter , true , provider ) ; } - public @ notnull PsiReferenceProvider getProviderByType ( @ notnull ReferenceProviderType type ) { + public @ nullable Psi...
get provider by type made nullable
<nb> public class ReaderPostPagerActivity extends FragmentActivity @ override protected void onSaveInstanceState ( Bundle outState ) { - super . onSaveInstanceState ( outState ) ; outState . putString ( ARG_TITLE , ( String ) this . getTitle ( ) ) ; if ( mViewPager != null ) { outState . putInt ( ARG_POSI...
Fixed ReaderPostPagerActivity onSaveInstanceState
<nb> public final class HttpRemoteTask } @ override - public void addSplits ( Multimap < PlanNodeId , Split > splitsBySource ) + public synchronized void addSplits ( Multimap < PlanNodeId , Split > splitsBySource ) { try ( SetThreadName ignored = new SetThreadName ( STRING0 , taskId ) ) { requireNonNull...
Add missing synchronization for HttpRemoteTask addSplits
<nb> public class ShouldIAnswerService extends Service { SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( mContext ) ; if ( msg . what == NUMBER0 ) { - prefs . edit ( ) . putBoolean ( SettingsFragment . SHOULD_I_ANSWER , true ) . commit ( ) ; + boolean enabled = msg . getData ( ) . ...
Added option to disable filtering
<nb> public class FileContentStorage { @ nullable public synchronized byte [ ] remove ( VirtualFile file ) { - final int fileId = FileBasedIndex . getFileId ( file ) ; + final int fileId = Math . abs ( FileBasedIndex . getFileId ( file ) ) ; synchronized ( myLock ) { try { return myFileIds . contains ( ...
ensure correct ID
<nb> public class PyStringFormatInspection extends PyInspection { final PyCallExpression . PyMarkedCallee markedFunction = ( ( PyCallExpression ) rightExpression ) . resolveCallee ( myTypeEvalContext ) ; if ( markedFunction != null && ! markedFunction . isImplicitlyResolved ( ) ) { final Callable callable = marke...
don t look inside function if not allowed
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class ExprTest { + public class ExpressionTest { @ suppresswarnings ( STRING0 ) @ test
renamed ExprTest to ExpressionTest
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GraphiteReporter implements Runnable { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT - public G...
Simplify GraphiteReporter constructor
<nb> public class RestSearchAction extends BaseRestHandler { if ( delimiter != - NUMBER0 ) { String sortField = sort . substring ( NUMBER1 , delimiter ) ; String reverse = sort . substring ( delimiter + NUMBER0 ) ; - searchSourceBuilder . sort ( sortField , reverse . equals ( STRING0 ) ) ; + if ( STRING1 . eq...
add desc asc to querystring sort option
<nb> import NAMESPACE ; COMMENT public abstract class AbstractLoader extends DefaultHandler { + COMMENT + private static final String LOAD_EXTERNAL_DTD = + STRING0 ; + COMMENT + private static final String EXTERNAL_GENERAL_ENTITIES = + STRING1 ; COMMENT private final Map < String , String > public...
enable certain SAXParserFactory features
<nb> public abstract class LocalDuplicatedRemovedScheduler implements Scheduler { @ override public void push ( Request request , Task task ) { - logger . debug ( STRING0 + request . getUrl ( ) ) ; + logger . trace ( STRING1 + request . getUrl ( ) ) ; if ( request . getExtra ( Request . CYCLE_TRIED_TIMES ) ...
Modify the log levels of LocalDuplicatedRemovedScheduler java
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - @ seed ( STRING0 ) public class VersionUtilsTests extends ElasticsearchTestCase { public void testAllVersionsSorted ( ) {
remove fixed seed for version util tests
<nb> public class GithubHttpAuthDataProvider implements GitHttpAuthDataProvider { return null ; } - GithubAuthData auth = GithubSettings . getInstance ( ) . getAuthData ( ) ; + GithubSettings settings = GithubSettings . getInstance ( ) ; + + String host1 = GithubUrlUtil . getHostFromUrl ( settings . getHo...
do not provide Git AuthData for wrong host
<nb> public class DebugEditor extends JavaEditor implements ActionListener { debugMenu . add ( toggleVariableInspectorMenuItem ) ; debugMenu . addSeparator ( ) ; + SINGLE + enableTweakCB = new JCheckBoxMenuItem ( STRING0 ) ; + enableTweakCB . setSelected ( ExperimentalMode . enableTweak ) ; + enableTweakC...
add Tweak Enabled toggle
<nb> public class Http11NioProtocol extends AbstractHttp11JsseProtocol { state = processor . asyncPostProcess ( ) ; } if ( state != SocketState . LONG && state != SocketState . ASYNC_END ) { - connections . remove ( socket ) ; - recycledProcessors . offer ( processor ) ; + release ( socket ) ; if ( state ...
Improve recycling of processors in Http11NioProtocol
<nb> public class EditSession { COMMENT COMMENT COMMENT - protected boolean rawSetBlock ( Vector pt , BaseBlock block ) { + public boolean rawSetBlock ( Vector pt , BaseBlock block ) { int y = pt . getBlockY ( ) ; int type = block . getType ( ) ;
Made EditSession rawSetBlock public