diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import s...
Fix checkstyle issues
<nb> public final class JavaWriter implements Closeable { out . write ( STRING0 ) ; emitType ( extendsType ) ; } - if ( ( implementsTypes != null ) && ( implementsTypes . length > NUMBER0 ) ) { + if ( implementsTypes . length > NUMBER0 ) { out . write ( STRING1 ) ; indent ( ) ; out . write ( STRING2 ) ;
Remove an extra null check
<nb> public class EditPreferences extends TodorooPreferenceActivity { preference . setEnabled ( false ) ; preference . setSummary ( R . string . EPr_theme_desc_unsupported ) ; } else { - int index = NUMBER0 ; + int index = NUMBER1 ; if ( value != null ) index = AndroidUtilities . indexOf ( r . getStringAr...
Fixed a bug where before a theme was selected it would say the red one was the default
<nb> public class JsonWriter { this . writer = writer ; } + @ suppresswarnings ( STRING0 ) public void write ( Object o ) { try {
Fix newly introduced warnings in JsonWriter
<nb> public class ReactRootView extends SizeMonitoringFrameLayout implements RootView if ( widthMode == MeasureSpec . UNSPECIFIED || heightMode == MeasureSpec . UNSPECIFIED ) { throw new IllegalStateException ( STRING0 + - STRING1 ) ; + STRING2 + + STRING3 + widthMode + STRING4 + heightMode ) ; } setM...
Improve ReactRootView s onMeasure error message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class DiskCache < O extends Serializable > { public D...
improve significantly memore consumption while using a disk cache
<nb> public class Templates { add ( Ops . MATCHES , STRING0 ) ; add ( Ops . STARTS_WITH , STRING1 ) ; add ( Ops . STARTS_WITH_IC , STRING2 ) ; - add ( Ops . ENDS_WITH , STRING3 ) ; + add ( Ops . ENDS_WITH , STRING4 ) ; add ( Ops . ENDS_WITH_IC , STRING5 ) ; add ( Ops . STRING_CONTAINS , STRING6 ) ; add ...
fixed endsWith template
<nb> public class DiscreteSeekBar extends View { bounds . inset ( - mAddedTouchBounds , - mAddedTouchBounds ) ; mIsDragging = ( bounds . contains ( ( int ) ev . getX ( ) , ( int ) ev . getY ( ) ) ) ; if ( ! mIsDragging && mAllowTrackClick && ! ignoreTrackIfInScrollContainer ) { - if ( mPublicChangeListener != n...
Fix onStartTrackingTouch listener call
<nb> public class ActivityCursorAdapter extends TimeLineCursorAdapter { @ override public void onClick ( View view ) { Intent viewProfile = new Intent ( context , ProfilePager . class ) ; - if ( screenname . contains ( STRING0 ) ) { + if ( screenname == null ) { + String [ ] userArray = users . split ( STRI...
Fix NPE on activity adapter
<nb> public class MethodDefinition { @ nonnull public final ImmutableList < Instruction > instructions ; public RegisterFormatter registerFormatter ; - @ nonnull private final String methodString ; - @ nonnull private final LabelCache labelCache = new LabelCache ( ) ; @ nonnull private final SparseIntAr...
Don t precompute the full method string in MethodDefinition
<nb> abstract public class ModelBuilder < M extends Model < M , P , O > , P extends Model . Param final Frame [ ] cvTrain = new Frame [ N ] ; final Frame [ ] cvValid = new Frame [ N ] ; final String [ ] identifier = new String [ N ] ; - final String weightName = STRING0 ; + final String weightName = STRING1 ;...
Fix NPE due to name collision of user given and internally created column called weights
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix documentation typo
<nb> public class StreamCharBuffer extends GroovyObjectSupport implements Writable , C public StreamCharBuffer encodeToBuffer ( Encoder encoder ) { StreamCharBuffer coded = new StreamCharBuffer ( Math . min ( Math . max ( totalChunkSize , chunkSize ) * NUMBER0 / NUMBER1 , maxChunkSize ) ) ; + coded . setNotifyP...
don t expect buffer returned from encodeAs method to be modified after appending to some buffer
<nb> public class TestBatchInsert assertEquals ( NUMBER0 , props . size ( ) ) ; assertEquals ( STRING0 , props . get ( STRING1 ) ) ; assertEquals ( STRING2 , props . get ( STRING3 ) ) ; + inserter . shutdown ( ) ; } @ test <nb> public class TestBatchInsert assertEquals ( NUMBER0 , props . size ( ) ) ;...
Fixed test forgot to shutdown the batch inserter
<nb> public class GELFHttpHandler extends SimpleChannelHandler { final HttpResponse response = new DefaultFullHttpResponse ( httpRequestVersion , status ) ; + response . setHeader ( HttpHeaders . Names . CONTENT_LENGTH , NUMBER0 ) ; + if ( keepAlive ) { response . setHeader ( HttpHeaders . Names . CONNECT...
Set content length header
<nb> public class EnronMailMapper for ( int i = NUMBER0 ; i < recips . length ; i ++ ) { String recip = recips [ i ] . trim ( ) ; if ( recip . length ( ) > NUMBER0 ) { - context . write ( new MailPair ( from , to ) , new IntWritable ( NUMBER1 ) ) ; + context . write ( new MailPair ( from , recip ) , new IntWr...
use correct var in output val clean up logging in example
<nb> public class SettingsGeneralActivity extends SettingsBaseActivity implements OnR STRING0 , STRING1 , STRING2 , + STRING3 , STRING4 , STRING5 , STRING6 , <nb> public class SettingsGeneralActivity extends SettingsBaseActivity implements OnR getString ( R . string . lang_hr ) + incompleteSuffix , ...
add Icelandic display language
<nb> public class UIUtil { private static final Color INACTIVE_HEADER_COLOR = Gray . _128 ; private static final Color BORDER_COLOR = Color . LIGHT_GRAY ; - public static final Color CONTRAST_BORDER_COLOR = new JBColor ( NUMBER0 , NUMBER1 ) ; + public static final Color CONTRAST_BORDER_COLOR = new JBColor ( n...
Make UIUtil CONTRAST_BORDER_COLOR a function
<nb> package NAMESPACE ; public interface EncoderAware { public boolean isEncoderAware ( ) ; - public void setEncoder ( Encoder encoder ) ; public Encoder getEncoder ( ) ; } <nb> public class GroovyPageTagWriter extends FastStringWriter implements EncoderAwar setOut ( streamBuffer . getWriterForEncoder ...
remove encoder setter from EncoderAware interface
<nb> public class ServiceCacheImpl < T > implements ServiceCache < T > , PathChildrenCacheLi synchronized ( this ) { + SINGLE + SINGLE + SINGLE + cache . start ( true ) ; for ( ChildData childData : cache . getCurrentData ( ) ) {
added a comment
<nb> public class AzureStorageServiceImpl extends AbstractLifecycleComponent < AzureSto int timeout = ( int ) azureStorageSettings . getTimeout ( ) . getMillis ( ) ; client . getDefaultRequestOptions ( ) . setTimeoutIntervalInMs ( timeout ) ; } catch ( ClassCastException e ) { - throw new IllegalArgumentExcepti...
Change exception message for wrong timeout in azure repository settings
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Add license header
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Satellite return params_ ; } - public native void focusMainWindow ( ) COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + CO...
correctly re activate main window from satellite in desktop mode
<nb> public class TextEditingTargetWidget menu . addItem ( commands_ . reindent ( ) . createMenuItem ( false ) ) ; menu . addItem ( commands_ . reflowComment ( ) . createMenuItem ( false ) ) ; menu . addItem ( commands_ . commentUncomment ( ) . createMenuItem ( false ) ) ; + menu . addItem ( commands_ . alignAs...
add menu item for editing target widget
<nb> public class TileFiller extends TileBuildCraft implements IInventory , IPowerRece @ override public void readGuiData ( DataInputStream data , EntityPlayer player ) throws IOException { - IFillerPattern prev = currentPattern ; - currentPattern = FillerManager . registry . getPattern ( data . readUTF ( ) )...
Fix derpy Filler Pattern selection
<nb> public class ColumnExtractingLineExpression extends LineCollectorExpression < Obje @ override public Object value ( ) { Object value = context . get ( columnIdent ) ; - if ( ! columnIdent . equals ( DocSysColumns . RAW ) && value != null && value instanceof String ) { + if ( ! columnIdent . equals ( DocS...
remove unnecessary npe check
<nb> public class IQRosterHandler extends IQHandler implements ServerFeaturesProvider catch ( UserNotFoundException e ) { } } - else { SINGLE - - Packet removePacket = createRemoveForward ( sender , recipient ) ; - router . route ( removePacket ) ; + else { + SINGLE + String serverDomain = localServ...
Fixed exception when removing a roster item whose JID belongs to a foreign server
<nb> public class GremlinPipeline < S , E > implements Pipe < S , E > , MetaPipe { for ( final Pipe subPipe : metaPipe . getPipes ( ) ) { if ( subPipe instanceof AsPipe ) { asPipes . add ( ( AsPipe ) subPipe ) ; - } else if ( subPipe instanceof MetaPipe ) { + } + if ( subPipe instanceof MetaPipe ) { asPip...
fixed recurssion problem in GremlinPipeline getAsPipes
<nb> public class Roster { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public boolean isSubscribedToMyPresence ( String jid ) { + RosterEntry entry = getEntry ( jid ) ; + if ( entry == null ) { + return fal...
Add Roster isSubscribedToMyPresence String
<nb> public class DRFTest extends TestUtil { parms . source = tfr ; parms . validation = test ; SINGLE - parms . ignored_cols_by_name = new int [ ] { NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 } ; + parms . ignored_cols_by_name = new int [ ] { NUMBER6 , NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , N...
Ignore the first column as well just leave Dest around
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; COMMENT <nb> public abstract class PsiRecursiveElementVisitor extends PsiElementVisitor { myRefExprsInVisit . pop ( ) ; } } + + public void visitJspFile ( JspFile file ) { + super . visitJspFile ( file ) ; + visit...
file based inspections to work in jsp
<nb> public class DefaultPromise < V > extends AbstractFuture < V > implements Promise < V > { COMMENT COMMENT COMMENT - private Object listeners ; + private volatile Object listeners ; COMMENT COMMENT COMMENT <nb> public class DefaultPromise < V > extends AbstractFuture < V > implements Promise < V >...
Fix improper synchronization in DefaultPromise
<nb> public abstract class JspContextManager { public abstract JspFile [ ] getSuitableContextFiles ( @ notnull PsiFile file ) ; - public abstract void setContextFile ( @ notnull PsiFile file , @ notnull JspFile contextFile ) ; + public abstract void setContextFile ( @ notnull PsiFile file , @ nullable JspFile...
allow to set context file for jsp even if jsp isn t included in context file
<nb> public class AsyncHttpClient { } if ( contentType != null ) { - uriRequest . setHeader ( HEADER_CONTENT_TYPE , contentType ) ; + if ( uriRequest instanceof HttpEntityEnclosingRequestBase && ( ( HttpEntityEnclosingRequestBase ) uriRequest ) . getEntity ( ) != null ) { + Log . w ( LOG_TAG , STRING0 ) ; ...
Not setting Content Type if HttpEntity was set as it breaks eg
<nb> public interface OtrConstants { public static final String QueryMessage_V12 = STRING0 ; public static final String QueryMessage_V14x = STRING1 ; public static final String QueryMessage_V124x = STRING2 ; - public static final String QueryMessage_CommonRequest = STRING3 ; + public static final String Query...
show ChatSecure in the otr plaintext message
<nb> public class ServletOutputStreamImpl extends ServletOutputStream implements Buff this . written += len ; if ( contentLength != - NUMBER0 && this . written >= contentLength ) { state |= FLAG_CLOSED ; - if ( flushBufferAsync ( ) ) { + SINGLE + SINGLE + if ( buffersToWrite == null ) { channel . shutdo...
Fix up issue with ServletOutputStream
<nb> class BitmapHunter implements Runnable { return result ; } - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT private static boolean shouldResize ( boolean onlyScaleDown , int inWidth , int inHeight , - int targetWidth , int targetHeight ) { - return ! onlyScaleDown || ( onlyScaleD...
Simplify if condition and remove internal javadoc
<nb> public class LdapActivator implements BundleActivator COMMENT COMMENT COMMENT - public void start ( BundleContext bundleContext ) throws Exception + public void start ( BundleContext bundleContext ) + throws Exception { LdapActivator . bundleContext = bundleContext ; <nb> public class LdapActiv...
Adding license and code formatting
<nb> public class Ctags { do { String tagLine = ctagsOut . readLine ( ) ; SINGLE + if ( tagLine . length ( ) == NUMBER0 ) { + SINGLE + return ; + } int p = tagLine . indexOf ( STRING0 ) ; if ( p <= NUMBER0 ) { - SINGLE - return ; + SINGLE + continue ; } String def = tagLine . substring ( N...
changed readTags to read until empty line skipping line with unexpected format
<nb> public abstract class NettyTransport implements Transport { private static final Logger log = LoggerFactory . getLogger ( NettyTransport . class ) ; - public static final int DEFAULT_RECV_BUFFER_SIZE = NUMBER0 * NUMBER0 ; protected final MetricRegistry localRegistry ; private final InetSocketAddress ...
remove unused constant
<nb> public class AddTask extends SherlockActivity { } int currentLine = getCurrentCursorLine ( textInputField ) ; if ( currentLine != - NUMBER0 ) { + SINGLE + SINGLE + SINGLE + SINGLE + if ( lines . size ( ) == NUMBER0 ) { + currentLine = NUMBER1 ; + } Task t = new Task ( NUMBER1 , lines . get ( ...
Avoid java lang IndexOutOfBoundsException while prioritizing tasks
<nb> public class DeployToServerRunConfiguration < S extends ServerConfiguration , D ext throw new WriteExternalException ( STRING0 + myDeploymentSource ) ; } if ( myDeploymentConfiguration != null ) { - itemState . setSettings ( XmlSerializer . serialize ( myDeploymentConfiguration . getSerializer ( ) . getSta...
fixed persisting deploy run configuration
<nb> public class XmppConnectionService extends Service implements OnPhoneContactsLoa } } for ( final Message msg : messages ) { + msg . setTime ( System . currentTimeMillis ( ) ) ; markMessage ( msg , Message . STATUS_WAITING ) ; - this . resendMessage ( msg , true ) ; + this . resendMessage ( msg , fals...
set time on resend to current time
<nb> public class SwingHelper { textPane . setContentType ( UIUtil . HTML_MIME ) ; textPane . setEditable ( false ) ; if ( background != null ) { - textPane . setBackground ( background ) ; SINGLE + textPane . setBackground ( background ) ; } else { textPane . setOpaque ( false ) ; - if ( UIUtil . isU...
don t check deprecated Nimbus L F
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; - class VisibilityAwareImageButton extends AppCompatImageButton { + class VisibilityAwareImageButton extends ImageButton { ...
Fix crash in FAB background tint
<nb> public class ManifestUpdateMojo extends AbstractAndroidMojo COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Modified the documentation for the verion code generation property
<nb> public class LogBufferDescriptor COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class LogInspector final UnsafeBuffer logMetaDataBuffer = atomicBuffers [ LOG_META_DATA_SECTION_INDEX ] ; + out . format ( STRING0 , new Date ( timeOfLastStatusMessage ( logMet...
Java Add time of last SM to LogInspector
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ;
Addressing a review comment
<nb> public class ShadowWrangler implements ClassHandler { throw new NullPointerException ( STRING0 ) ; } return method ( AsmInstrumentingClassLoader . GET_ROBO_DATA_METHOD_NAME ) . withReturnType ( Object . class ) . in ( instance ) . invoke ( ) ; - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE...
Remove commented out code
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public class Form { ...
Added check for missing field type for multi list in data forms
<nb> public class ErrorCheckerService implements Runnable { protected void updateSketchCodeListeners ( ) { for ( final SketchCode sc : editor . getSketch ( ) . getCode ( ) ) { boolean flag = false ; + if ( sc . getDocument ( ) == null + || ( ( SyntaxDocument ) sc . getDocument ( ) ) . getDocumentListeners ( )...
avoid NPE while running Tweak
<nb> public class ManagerServlet addServiced ( path ) ; try { if ( config != null ) { + configBase . mkdirs ( ) ; copy ( new File ( config ) , new File ( configBase , getConfigFile ( path ) + STRING0 ) ) ; }
create configBase since it is no longer created elsewhere
<nb> public abstract class ScriptingIndexableSetContributor extends IndexableSetContr LibraryTable libTable = ScriptingLibraryManager . getLibraryTable ( project , ScriptingLibraryManager . LibraryLevel . GLOBAL ) ; if ( libTable != null ) { for ( Library lib : libTable . getLibraries ( ) ) { - if ( lib instanc...
fix NPE most libraries do not have type
<nb> public final class CameraManager { USE_CALLING_UID , holder ) ; cameraUser = ICameraDeviceUser . Stub . asInterface ( holder . getBinder ( ) ) ; } catch ( CameraRuntimeException e ) { - if ( e . getReason ( ) == CameraAccessException . CAMERA_DEPRECATED_HAL ) { - SINGLE - Log . i ( TAG , STRING0 ) ; ...
Disallow shim usage for preview
<nb> public class CloudSetupFragment extends SherlockFragment { } SINGLE - mTextViewDescription . setText ( R . string . hexagon_signed_in ) ; + mTextViewDescription . setText ( R . string . hexagon_setup_incomplete ) ; mButtonAction . setText ( R . string . hexagon_setup_complete ) ; mButtonAction . setO...
Display correct incomplete setup text
<nb> public class Mongo { COMMENT COMMENT @ deprecated - public static final int MINOR_VERSION = NUMBER0 ; + public static final int MINOR_VERSION = NUMBER1 ; - private static final String FULL_VERSION = STRING0 ; + private static final String FULL_VERSION = STRING1 ; static int cleanerIntervalMS ; ...
Updated Mongo java statics to new version
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GwtTestWrapper extends GdxTest { public GdxTest instance ( ) { return new TiledMapAtlasAssetManagerTest ( ) ; } + } , n...
add TimeUtils test instance to GWT
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class NamedArgumentDescriptor { UNLIKELY } - private static class StringTypeConditionWithPriority extends StringTypeCondition { + public static class StringTypeConditionWithPriority extends StringTypeCondition { private fin...
g render Map named arguments completion
<nb> import NAMESPACE ; public class Gradient { private class ColorInterval { - public int color1 ; - public int color2 ; + private final int color1 ; + private final int color2 ; COMMENT COMMENT COMMENT COMMENT - public float duration ; + private final float duration ; public ColorInter...
made things private final in colorInterval
<nb> public class ShardRecoveryManager } catch ( PrestoException e ) { stats . incrementShardRecoveryFailure ( ) ; + stagingFile . delete ( ) ; throw e ; } <nb> public class ShardRecoveryManager stats . incrementShardRecoveryFailure ( ) ; throw new PrestoException ( RAPTOR_RECOVERY_ERROR , STRING0 +...
Delete staging file when shard recovery fails
<nb> public class OCommandExecutorScript extends OCommandExecutorAbstract implements try { Thread . sleep ( Integer . parseInt ( sleepTimeInMs ) ) ; } catch ( InterruptedException e ) { - OLogManager . instance ( ) . error ( this , STRING0 , e ) ; + OLogManager . instance ( ) . debug ( this , STRING1 ) ; } ...
Changed log on script sleep
<nb> public class IpConfigStore { } } catch ( EOFException ignore ) { } catch ( IOException e ) { - loge ( STRING0 + e ) ; + loge ( STRING1 + e ) ; } finally { if ( in != null ) { try {
Fix a typo in IpConfigStore
<nb> COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT package NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; CO...
Replace br tags
<nb> public class H2ONode extends Iced implements Comparable { SINGLE DTask dt = rpc . _dt ; SINGLE if ( dt != null && RPC . RPCCall . CAS_DT . compareAndSet ( rpc , dt , null ) ) { - assert rpc . _computed : STRING0 + task + STRING1 + rpc . _dt . getClass ( ) + STRING2 + rpc . _client ; + assert rpc . _compu...
Fix possible NPE should only trigger if assert is triggering
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MainApp extends Application { } if ( BuildConfig . DEBUG ) { - String logpath = Environment . getExternalStorageDirec...
Set the log folder path before starting logging
<nb> public class CoverageJavaRunConfigurationExtension extends RunConfigurationExten } @ override - public boolean isListenerDisabled ( RunConfigurationBase configuration , Object listener ) { + public boolean isListenerDisabled ( RunConfigurationBase configuration , Object listener , RunnerSettings runnerSe...
disable listeners when no coverage enabled
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GCInspector SINGLE logger . info ( String . format ( STRING0 , STRING1 , STRING2 , CompactionManager . instance . getPendingTasks ( ) ) ) ; ...
add MessagingService summary to GCInspector stats
<nb> public class ChangesBrowserNode < T > extends DefaultMutableTreeNode { } public int getSortWeight ( ) { - return NUMBER0 ; + return NUMBER1 ; } public int compareUserObjects ( final Object o2 ) { <nb> public class ChangesBrowserUnversionedFilesNode extends ChangesBrowserNode { public boolean is...
Display Unversioned Files node right after change list nodes
<nb> public final class Terasology { COMMENT COMMENT COMMENT - private void processKeyboardInput ( ) { + @ suppresswarnings ( STRING0 ) + private void processKeyboardInput ( ) { boolean debugEnabled = ( Boolean ) ConfigurationManager . getInstance ( ) . getConfig ( ) . get ( STRING1 ) ; while ( Keyboa...
Suppress parameterization warnings where it looks like theres no alternative
<nb> public abstract class CameraMetadata { public static final int STATISTICS_FACE_DETECT_MODE_FULL = NUMBER0 ; SINGLE + SINGLE + SINGLE + + COMMENT + COMMENT + COMMENT + public static final int STATISTICS_LENS_SHADING_MAP_MODE_OFF = NUMBER1 ; + + COMMENT + COMMENT + COMMENT + public stat...
Add a missing key for controlling shading map mode
<nb> public class IndentingPrintWriter extends PrintWriter { mCurrent = mBuilder . toString ( ) ; } + public void printPair ( String key , Object value ) { + print ( key + STRING0 + String . valueOf ( value ) + STRING1 ) ; + } + @ override public void println ( ) { super . println ( ) ;
Add simple method to dump key value pairs
<nb> public class QueryStatistics implements org . neo4j . graphdb . QueryStatistics return inner . nodesCreated ( ) ; } + COMMENT + COMMENT + COMMENT + COMMENT @ override public int getNodesDeleted ( ) { <nb> public class QueryStatistics implements org . neo4j . graphdb . QueryStatistics return...
Remove unused code
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class DeviceFeaturesCollector { + final class DeviceFeaturesCollector { public static String getFeatures ( Context ctx ) { <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class ReflectionCollector { + final class ReflectionCol...
Hiding classes that have no need to be visible outside of ACRA by making them package private
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public class AntiEntropyService <nb> public class AntiEntropyService COMMENT COMMENT COMMENT - COMME...
update comments to reflect new Stage ANTIENTROPY name
<nb> public class VoicemailContract { COMMENT COMMENT COMMENT - public static final String SOURCE_DATA = STRING0 ; + public static final String SOURCE_DATA = STRING1 ; COMMENT COMMENT COMMENT
Modified Voicemail SOURCE_DATA value to match with the constant name
<nb> public class WPRestClient { COMMENT COMMENT public void getStatsClicks ( String siteId , String date , Listener listener , ErrorListener errorListener ) { - String path = String . format ( STRING0 , siteId , date ) ; + String path = String . format ( STRING1 , siteId , date ) ; get ( path , listener , ...
FredrichO fixed rest call
<nb> public class CommentUserNoteBlock extends UserNoteBlock { noteBlockHolder . avatarImageView . setOnTouchListener ( null ) ; } } else { - noteBlockHolder . avatarImageView . setImageResource ( R . drawable . gravatar_placeholder ) ; + noteBlockHolder . avatarImageView . showDefaultGravatarImage ( ) ; no...
Show rounded gravatar for CommentUserNoteBlock UserNoteBlock
<nb> public class OptionsAlertPanel extends AbstractParamPanel { @ override public String getHelpIndex ( ) { - return STRING0 ; + return STRING1 ; } }
Corrected alert options help index
<nb> class WatchServiceRegistrar implements FileWatcherListener { } private void watchDir ( Path dir ) throws IOException { - dir . register ( watchService , WATCH_KINDS , WATCH_MODIFIERS ) ; + try { + dir . register ( watchService , WATCH_KINDS , WATCH_MODIFIERS ) ; + } catch ( NoSuchFileException ignore...
Allow directories under watch to be deleted before they are registered with the watch service
<nb> public class RunManagerImpl extends RunManagerEx implements JDOMExternalizable , final Map < Key < ? extends BeforeRunTask > , BeforeRunTask > _tasks = new HashMap < Key < ? extends BeforeRunTask > , BeforeRunTask > ( ) ; for ( BeforeRunTaskProvider < ? extends BeforeRunTask > provider : Extensions . getExte...
orerriding default before run task s settings in configuration type
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public abstract class BaseEntityRef extends EntityRef { public String toFullDescription ( ) { EntitySerializer serializer = new EntitySerializer ( ( EngineEntityM...
Allow EntityRef toFullDescription to run in modules
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; @ target ( { ElementType . TYPE , ElementType . METHOD } ) @ retention ( RetentionPolicy . RUNTIME ) ...
Make this an inherited annotation
<nb> public class DefaultDependencyResolver implements ArtifactDependencyResolver { metaDataResolvers . add ( new ClientModuleResolver ( resolverProvider . getComponentResolver ( ) , dependencyDescriptorFactory ) ) ; LocalComponentFactoryChain localComponentFactory = new LocalComponentFactoryChain ( localComponen...
Rename CompositeMetaDataResolver to ComponentMetaDataResolverChain for consistency
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class GraphServiceImplTest extends TestCase { + public class GraphServiceTest extends TestCase { File basePath ;
remove impl suffix
<nb> public class ActivityLauncher { } public static void addSelfHostedSiteForResult ( Activity activity ) { - Intent intent = new Intent ( activity , MagicLinkSignInActivity . class ) ; + Intent intent = new Intent ( activity , SignInActivity . class ) ; intent . putExtra ( SignInActivity . EXTRA_START_FRA...
Reverting addSelfHostedSiteForResult back to open SigninActivity
<nb> public class DeterministicKey extends ECKey { COMMENT @ override public boolean hasPrivKey ( ) { - return findOrDerivePrivateKey ( ) != null ; + return findParentWithPrivKey ( ) != null ; } @ nullable <nb> public class DeterministicKey extends ECKey { return derivePrivateKeyDownwards ( cursor ,...
Don t derive private keys just to check if they exist
<nb> import NAMESPACE ; COMMENT COMMENT public interface Filter { + + Filter [ ] EMPTY_ARRAY = new Filter [ NUMBER0 ] ; + class Result { public final int highlightStartOffset ; public final int highlightEndOffset ;
Add Grails Console Filter only for Grails projects
<nb> package NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public interface SharedService { - }
Improved JavaDoc of SharedService interface
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + public class MessagingTransfo...
remove runtime resource from transformers
<nb> abstract class BoundedLocalCache < K , V > extends BLCHeader . DrainStatusRef < K , V > COMMENT void scheduleDrainBuffers ( ) { if ( evictionLock . tryLock ( ) ) { + if ( drainStatus ( ) == PROCESSING ) { + return ; + } try { lazySetDrainStatus ( PROCESSING ) ; executor ( ) . execute ( drainBuffe...
Avoid excessive scheduling of the maintenace task
<nb> public class BaseSetting extends Setting implements ConfigApplier < BaseSetting > { super ( matcher ) ; } - public boolean match ( HttpRequest request ) { + public boolean match ( Request request ) { return this . matcher . match ( request ) && this . handler != null ; }
applied request to base setting
<nb> public class ARSCDecoder { while ( type == Header . TYPE_TYPE ) { readTableType ( ) ; + + SINGLE + if ( mCountIn . getCount ( ) < mHeader . endPosition ) { + mCountIn . skip ( mHeader . endPosition - mCountIn . getCount ( ) ) ; + } + type = nextChunk ( ) . type ; addMissingResSpecs ( ) ;
Skip additional payload data of TYPE chunk
<nb> public class MvcEndpointCorsIntegrationTests { STRING0 ) ; createMockMvc ( ) . perform ( options ( STRING1 ) . header ( HttpHeaders . ORIGIN , STRING2 ) - . header ( HttpHeaders . ACCESS_CONTROL_REQUEST_METHOD , STRING3 ) ) + . header ( HttpHeaders . ACCESS_CONTROL_REQUEST_METHOD , STRING4 ) ) . andExp...
Switch disallowedMethods test to use PATCH
<nb> public class HttpClientHelper implements Closeable { } @ override - public void close ( ) throws IOException { + public synchronized void close ( ) throws IOException { if ( client != null ) { client . close ( ) ; }
Synchronize calls to close as well
<nb> public class PullUpProcessor extends BaseRefactoringProcessor implements PullUpD } private void processMethodsDuplicates ( ) { - if ( ! myTargetSuperClass . isValid ( ) ) return ; ProgressManager . getInstance ( ) . runProcessWithProgressSynchronously ( new Runnable ( ) { @ override public void run (...
validity check under read action
<nb> public class HttpConfigurable implements PersistentStateComponent < HttpConfigurab } } } ; - WaitForProgressToShow . runOrInvokeAndWaitAboveProgress ( runnable , ModalityState . any ( ) ) ; + runAboveAll ( runnable ) ; return value [ NUMBER0 ] ; } <nb> public class HttpConfigurable implements Per...
for generic authentication also show authentication dialog above all possible dialogs
<nb> PropertyValue pv = ( PropertyValue ) itr . next ( ) ; System . out . println ( InvokerHelper . toString ( value ) ) ; } - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public static void printf ( Object self , String format , Object [ ] values ) { - if ( System . getProperty ( STRING0 ) . c...
Reverted a change that should never have been committed
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixing javadocs for StreamingTemplateEngine
<nb> public class JsrBasicRemote extends AbstractJsrRemote implements RemoteEndpoint . @ override public void sendText ( String text ) throws IOException { - LOG . info ( STRING0 , TextUtil . hint ( text ) ) ; assertMessageNotNull ( text ) ; if ( LOG . isDebugEnabled ( ) ) {
Removing JsrBasicRemote sendText info message
<nb> package 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 ; import NAMESPA...
Added printing of traffic commented out