diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Add license header
<nb> public class Message { sb . append ( message ) ; } + sb . append ( STRING0 ) ; + final Map < String , Object > filteredFields = Maps . newHashMap ( fields ) ; filteredFields . remove ( FIELD_SOURCE ) ; filteredFields . remove ( FIELD_MESSAGE ) ; Joiner . on ( STRING1 ) . withKeyValueSeparator (...
Fix display of additional fields in Message toString
<nb> public abstract class HazelcastCacheManager implements CacheManager { COMMENT @ override public < T > T unwrap ( Class < T > clazz ) { - if ( clazz . isAssignableFrom ( HazelcastCacheManager . class ) ) { + if ( HazelcastCacheManager . class . isAssignableFrom ( clazz ) ) { return ( T ) this ; } th...
Fixed HazelcastCacheManager unwrap
<nb> public class DefaultDaemonConnection implements DaemonConnection { public void stop ( ) { SINGLE SINGLE - SINGLE + SINGLE SINGLE CompositeStoppable . stoppable ( disconnectQueue , connection , executor , stdinQueue ) . stop ( ) ; } <nb> public class DefaultDaemonConnection implements DaemonConnec...
Fixed case where StdinHandler endOfInput is not called on DefaultDeamonConnection stop
<nb> public class RegExpParsingTest extends ParsingTestCase { @ override protected String getTestDataPath ( ) { - return PathManager . getHomePath ( ) + STRING0 ; + return PathManager . getHomePath ( ) + STRING1 ; } public void testSimple1 ( ) throws IOException { doCodeTest ( STRING2 ) ; }
fix test data path to hopefully fix text
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT COMMENT - COMMENT + COMMENT COMMENT public class GuavaCache implements Cache {
Fixed since tag
<nb> public class ProfilingUtils { getInstance ( ) . dumpToLog ( ) ; } + public static void stop ( ) { + getInstance ( ) . reset ( null ) ; + } + private static ProfilingUtils getInstance ( ) { if ( sInstance == null ) { sInstance = new ProfilingUtils ( ) ; <nb> public class ProfilingUtils { } ...
update ProfilingUtils usage
<nb> public class EntityDamageEvent extends EntityEvent implements Cancellable { COMMENT ENTITY_EXPLOSION , COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + VOID , + COMMENT COMMENT COMMENT COMMENT
Added DamageType VOID
<nb> public final class Settings { public static final String HDMI_SYSTEM_AUDIO_ENABLED = STRING0 ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public static final String HDMI_SYSTEM_AUDIO_OUTPUT = STRING1 ; - - COMMENT COMMENT COMMENT COMM...
Remove system audio output option for HdmiControlService
<nb> public class ClientConfig { COMMENT COMMENT public ClientConfig setMaxTotalConnections ( int maxTotalConnections ) { - if ( maxConnectionsPerNode <= NUMBER0 ) + if ( maxTotalConnections <= NUMBER0 ) throw new IllegalArgumentException ( STRING0 ) ; this . maxTotalConnections = maxTotalConnections ; ...
Fixed obvious copy and paste error
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; impor...
delete some unused code
<nb> public class GatewayService extends AbstractLifecycleComponent < GatewayService > i @ override protected void doStart ( ) throws ElasticsearchException { gateway . start ( ) ; + clusterService . addLast ( this ) ; SINGLE SINGLE if ( discoveryService . initialStateReceived ( ) ) { <nb> public class ...
GatewayService should register cluster state listener before checking for current state
<nb> public class MissingFilterBuilder extends BaseFilterBuilder { } COMMENT - COMMENT + COMMENT COMMENT COMMENT public MissingFilterBuilder existence ( boolean existence ) {
Fixed typo in MissingFilterBuilder
<nb> public class HttpSessionsPanel extends AbstractPanel { this . setSize ( NUMBER0 , NUMBER1 ) ; this . setName ( Constant . messages . getString ( STRING0 ) ) ; this . setIcon ( new ImageIcon ( HttpSessionsPanel . class . getResource ( STRING1 ) ) ) ; - this . add ( getPanelCommand ( ) ) ; + this . add ( g...
Fixed small initialization issue for HttpSessionsPanel
<nb> public class NotificationsListFragment extends ListFragment implements Bucket . Li COMMENT COMMENT private void registerReceiver ( ) { + if ( ! hasActivity ( ) ) + return ; + IntentFilter filter = new IntentFilter ( ) ; filter . addAction ( WordPress . BROADCAST_ACTION_SIMPERIUM_SIGNED_IN ) ; fil...
Adding hasActivity check
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class ClassUtils { Assert . notNull ( clazz , STRING0 ) ; ClassLoader target = clazz . getClassLoader ( ) ; if ( target == null ) { - return false ; + return true ; } ClassLoader cur = classLoader ; if ( cur == t...
Consider a null ClassLoader typically the bootstrap CL as cache safe
<nb> public final class EarClippingTriangulator { private List < Vector2 > vertices ; private int vertexCount ; - private List < Vector2 > triangles ; private int [ ] vertexTypes ; private int concaveVertexCount ; + private List < Vector2 > triangles ; COMMENT COMMENT <nb> public final class EarCl...
Pre allocate the known number of triangles
<nb> public class LayoutManager extends RecyclerView . LayoutManager { isHeader = a . getBoolean ( R . styleable . superslim_LayoutManager_slm_isHeader , false ) ; + SINGLE headerDisplay = a . getInt ( R . styleable . superslim_LayoutManager_slm_headerDisplay , DEFAULT_HEADER_DISPLAY ) ;
Ignore intDef on pull from defaults
<nb> public abstract class HgUtil { COMMENT @ nullable public static VirtualFile getHgRootOrNull ( Project project , FilePath filePath ) { + if ( project == null ) { + return getNearestHgRoot ( VcsUtil . getVirtualFile ( filePath . getPath ( ) ) ) ; + } return getNearestHgRoot ( VcsUtil . getVcsRootFor ( ...
find hg root manually if project is null
<nb> public final class ParallelEvaluator implements Evaluator { this . skyKey = skyKey ; this . directDeps = Collections . unmodifiableSet ( directDeps ) ; this . bubbleErrorInfo = bubbleErrorInfo ; - this . childErrorInfos . addAll ( childErrorInfos ) ; this . visitor = visitor ; }
Delete useless line
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class XmppConnection implements Runnable { SSLSocket sslSocket = ( SSLSocket ) factory . createSocket ( socket , socket . getInet...
Remove support for legacy SSL
<nb> public final class Face { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class Face { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class Face { COMMENT COMMENT COMMENT - COMMENT + COMMENT ...
fix Face class java doc build break
<nb> public class FileReferenceContextUtil { if ( ! range . intersects ( element . getTextRange ( ) ) ) return ; String text = element . getText ( ) ; PsiFileSystemItem item = map . get ( text ) ; - element = bindElement ( element , item ) ; - if ( element != null ) { - element . acceptChildren ( this ) ; ...
decoding file references
<nb> package NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed javadoc link
<nb> class ChildFirstClassLoader extends URLClassLoader { return c ; } + + @ override + public URL getResource ( String name ) { + URL url = findResource ( name ) ; + if ( url != null ) { + return url ; + } + return super . getResource ( name ) ; + } + private boolean loadFromParentOnly ( St...
Make getResource follow child first rules
<nb> public class InnerHitBuilderTests extends ESTestCase { } ) ) ; break ; case NUMBER0 : - copy . setSorts ( randomValueOtherThan ( copy . getSorts ( ) , ( ) - > { - return randomListStuff ( NUMBER1 , - ( ) - > SortBuilders . fieldSort ( randomAsciiOfLengthBetween ( NUMBER2 , NUMBER3 ) ) . order ( randomF...
TEST Make type inference simpler
<nb> public interface RaftMessages { super ( from , Type . APPEND_ENTRIES_REQUEST ) ; Objects . requireNonNull ( entries ) ; - assert ! ( ( prevLogIndex == - NUMBER0 && prevLogTerm != - NUMBER0 ) || ( prevLogTerm == - NUMBER0 && prevLogIndex != - NUMBER0 ) ) ; + assert ! ( ( prevLogIndex == - NUMBER0 && prevL...
Adds diagnostic message to assertion in RaftMessages
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix possible JavaDoc error in QueryStringEncoder
<nb> public class HttpSetting extends BaseSetting < HttpResponseSetting > implements Set @ suppresswarnings ( STRING0 ) public Setting < HttpResponseSetting > apply ( final MocoConfig config ) { RequestMatcher appliedMatcher = configItem ( this . matcher , config ) ; - if ( config . isFor ( STRING1 ) && this . ...
used id constant in http setting
<nb> public class SelectiveReceiveHelper < Message > { continue ; } - System . out . println ( STRING0 + m ) ; - actor . record ( NUMBER0 , STRING1 , STRING2 , STRING3 , this , m ) ; actor . monitorAddMessage ( ) ; try { <nb> public class SelectiveReceiveHelper < Message > { } else { try { if ( ...
removed debug prints
<nb> public class Skin implements Disposable { return region ; } + COMMENT + public Array < TextureRegion > getRegions ( String regionName ) { + Array < TextureRegion > regions = null ; + int i = NUMBER0 ; + TextureRegion region = optional ( regionName + STRING0 + ( i ++ ) , TextureRegion . class ) ; ...
Collect all TextureRegion with indexes for a particular regionName
<nb> public class Term extends Activity implements UpdateCallback { COMMENT COMMENT private boolean keyboardShortcuts ( int keyCode , KeyEvent event ) { - if ( event . getAction ( ) != KeyEvent . ACTION_UP ) { + if ( event . getAction ( ) != KeyEvent . ACTION_DOWN ) { return false ; } if ( ! mUseKeyboar...
Process shortcuts on ACTION_DOWN rather than ACTION_UP
<nb> public class Frame extends Iced { public void remove ( Futures fs ) { if ( _vecs . length > NUMBER0 ) { VectorGroup vg = _vecs [ NUMBER0 ] . group ( ) ; - for ( Vec v : _vecs ) + for ( Vec v : _vecs ) { + System . out . println ( STRING0 + v . _key ) ; UKV . remove ( v . _key , fs ) ; + } DKV . r...
removed dbg print from Frame
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; +...
Re arrange the import order as per code review comments
<nb> class ServerThread extends Thread { reportWtf ( STRING0 , e ) ; } + try { + lockSettings . systemReady ( ) ; + } catch ( Throwable e ) { + reportWtf ( STRING1 , e ) ; + } + if ( devicePolicy != null ) { try { devicePolicy . systemReady ( ) ; <nb> class ServerThread extends Thread { } ca...
Fixing services start order that impacts ICS JB upgrade
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public class DefaultServerFileSystem implements ServerFileSystem { <nb> public class DefaultServerF...
Fix build remove invalid import
<nb> public final class Settings { COMMENT COMMENT COMMENT - public static final String GTALK_PRIVACY_URL = STRING0 ; - - COMMENT - COMMENT - COMMENT - public static final String GTALK_LEGAL_URL = STRING1 ; + public static final String GTALK_TERMS_OF_SERVICE_URL = STRING2 ; COMMENT COMMENT
Update the gservices gtalk setting for the terms and services url
<nb> public class ContentSample extends Activity { items . add ( new Category ( STRING0 ) ) ; items . add ( new Item ( STRING1 , R . drawable . ic_action_refresh_dark ) ) ; items . add ( new Item ( STRING2 , R . drawable . ic_action_select_all_dark ) ) ; + items . add ( new Category ( STRING3 ) ) ; + items . ...
Add more items to sample
<nb> public class ContextConfig implements LifecycleListener { } catch ( IOException e ) { log . debug ( sm . getString ( STRING0 , className ) , e ) ; + } finally { + try { + is . close ( ) ; + } catch ( IOException e ) { + SINGLE + } } } }
Close the stream after using it
<nb> public class DashDownloadMapsFragment extends DashBaseFragment { } } - } ; + } . execute ( ( Void ) null ) ;
Add card to download new map
<nb> public class TestDatastore extends TestBase { @ test ( expected = UpdateException . class ) public void saveNull ( ) { - ds . save ( null ) ; + ds . save ( ( Hotel ) null ) ; } }
update ambiguous method call
<nb> public final class BridgeContext extends Context { defStyleValues = ( StyleResourceValue ) item ; } } else { - Bridge . getLog ( ) . error ( null , + Bridge . getLog ( ) . error ( LayoutLog . TAG_RESOURCES_RESOLVE_THEME_ATTR , String . format ( STRING0 , defStyleName ) , null COMMENT ) ;
Set theme tag in render log when failing to find style
<nb> public class GraphCloner extends ServerPlugin { HashMap < Node , Node > clonedNodes = cloneNodes ( graphDb , nodes ) ; for ( Node oldNode : clonedNodes . keySet ( ) ) { - System . out . println ( STRING0 + oldNode . getProperty ( STRING1 ) ) ; SINGLE Node newStartNode = clonedNodes . get ( oldNode ) ;
Removed errant System out
<nb> public class ProtocolProviderServiceSipImpl COMMENT COMMENT private static final String PREFERRED_SIP_PORT = - STRING0 ; + STRING1 ; COMMENT <nb> public class ProtocolProviderServiceSipImpl SINGLE int preferredSipPort = ListeningPoint . PORT_5060 ; - String proxyPortStr = ( String ) accou...
Fix PREFERRED_SIP_PORT property
<nb> public final class FileContents implements CommentListener COMMENT public boolean lineIsComment ( int aLineNo ) { - return MATCH_SINGLELINE_COMMENT . match ( mLines [ aLineNo ] ) ; + return MATCH_SINGLELINE_COMMENT . match ( mLines [ aLineNo ] ) ; } COMMENT <nb> public final class LocalizedMessag...
fixed indentation problems found after previous fix
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class OnExpressionCondition extends SpringBootCondition { + class OnExpressionCondition extends SpringBootCondition { @ override public ConditionOutcome getMatchOutcome ( ConditionContext context ,
Make OnExpressionCondition package private
<nb> public class CCProjectService implements PersistentStateComponent < CCProjectServi if ( ! lessonDirName . contains ( EduNames . LESSON ) ) { return null ; } + if ( myCourse == null ) { + return null ; + } Lesson lesson = myCourse . getLesson ( lessonDirName ) ; if ( lesson == null ) { return null...
Fix NPE on Add Task File action update when trying to show item in files
<nb> public class ExasolViewCache extends JDBCStructCache < ExasolSchema , ExasolView , E + STRING0 + STRING1 + STRING2 - + STRING3 - + STRING4 + + STRING5 + + STRING6 + STRING7 + STRING8 + STRING9 + STRING10 + STRING11 + STRING12 - + STRING13 + + STRING14 + STRING15 + STRING16 + STR...
Rename Columns in SQL to match ExasolTableBase
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT
Fix Gauge javadocs
<nb> public class CameraView extends ViewGroup implements STRING0 ) ; } + camera . stopPreview ( ) ; camera . unlock ( ) ; try {
stopping the preview before unlocking reportedly helps with video corruption
<nb> public class StorageService implements IEndpointStateChangeSubscriber , StorageSe { if ( list . isEmpty ( ) ) return false ; + for ( int i = NUMBER0 ; i < list . size ( ) - NUMBER1 ; i ++ ) { - KSMetaData ksm1 = Schema . instance . getKSMetaData ( Schema . instance . getNonSystemTables ( ) . get ( i ...
update hasSameReplication to use the List passed to it
<nb> public interface EjbMessages { COMMENT @ message ( id = NUMBER0 , value = STRING0 ) IllegalArgumentException poolNameCannotBeEmptyString ( final String ejbName ) ; + + COMMENT + COMMENT + COMMENT + @ message ( id = NUMBER1 , value = STRING1 ) + IllegalStateException noEjbContextAvailable ( ) ; ...
Throw IllegalStateException if no EJB context availble
<nb> public class TwitterWebSocketRoute extends RouteBuilder { SINGLE wc . setStaticResources ( STRING0 ) ; - SINGLE - TwitterComponent tc = getContext ( ) . getComponent ( STRING1 , TwitterComponent . class ) ; - tc . setAccessToken ( accessToken ) ; - tc . setAccessTokenSecret ( accessTokenSecret ) ; ...
Fix build failure due to changes in the camel twitter component
<nb> public class JsFacade implements Exportable { } SINGLE } + resolve ( jsRes ) ; } @ override <nb> public class JsUser extends JavaScriptObject { boolean isContact , boolean isBot , String presence , boolean isOnline , JsArray < JsPhone > phones , JsArray < JsEmail > emails ) COMMENT COMMENT ...
Fixing isBot flag in user and fixing find groups promice
<nb> public class ChunkOutputWidget extends Composite host_ . onOutputHeightChanged ( NUMBER0 , ensureVisible ) ; } - state_ = presenter_ . hasOutput ( ) ? CHUNK_EMPTY : CHUNK_READY ; + state_ = presenter_ . hasOutput ( ) ? CHUNK_READY : CHUNK_EMPTY ; setOverflowStyle ( ) ; showReadyState ( ) ; unregist...
treat state as empty when presenter doesn t have output
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT
fix example missing break statement in ReplayingDecoder
<nb> public class Global extends GlobalSettings { for ( String uri : uris ) { final NodeSummaryResponse r = new NodeSummaryResponse ( ) ; r . transportAddress = uri ; - initialNodes [ i ++ ] = new Node ( null , r ) ; SINGLE + initialNodes [ i ++ ] = new Node ( null , null , r ) ; SINGLE } List < Module ...
use correct Node constructor during startup
<nb> import NAMESPACE ; COMMENT COMMENT public final class CachedObservable < T > extends Observable < T > { + COMMENT - private CacheState < T > state ; + private final CacheState < T > state ; COMMENT COMMENT <nb> public final class CachedObservable < T > extends Observable < T > { COMMENT r...
Remove unused private method from CachedObservable and make state final
<nb> public class Platform { return super . getMtu ( socket ) ; SINGLE } return ( Integer ) getMtu . invoke ( networkInterface ) ; + } catch ( NullPointerException e ) { + SINGLE + return super . getMtu ( socket ) ; } catch ( SocketException e ) { SINGLE return super . getMtu ( socket ) ;
Fixed Alcatel getByInetAddress bug
<nb> public final class CallCandidateResolutionContext < D extends CallableDescriptor > protected CallCandidateResolutionContext < D > self ( ) { return this ; } + + @ notnull + public CallCandidateResolutionContext < D > replaceResolveMode ( @ notnull ResolveMode newResolveMode ) { + if ( newResolveMode ...
added replaceResolveMode to CallCandidateResolutionContext
<nb> public class BulletPhysicsRenderer implements IGameObject , EventReceiver < BlockCh _logger . log ( Level . WARNING , STRING0 , e ) ; } removeTemporaryBlocks ( ) ; - SINGLE + checkForLootedBlocks ( ) ; } private synchronized void addQueuedBodies ( ) {
Reactivated loot blocks
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + ...
Add javaee api to all external modules
<nb> public class TaskListActivity extends AstridActivity implements MainMenuListener Filter savedFilter = getIntent ( ) . getParcelableExtra ( TaskListFragment . TOKEN_FILTER ) ; if ( getIntent ( ) . getIntExtra ( TaskListFragment . TOKEN_SOURCE , Constants . SOURCE_DEFAULT ) == Constants . SOURCE_NOTIFICATION ) ...
Removed two lines that cause double launching of activity when creating new list
<nb> - COMMENT - COMMENT - COMMENT - COMMENT package NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class FilesToExtract2 extends Files...
Add a TODO to include fix we ve sent to the embedded mongo project
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; COMMENT <nb> import NAMESPACE ; COMMENT public class ContainerMediaChunk extends BaseMediaChunk implements SingleTrackOutput { - private static final String TAG = STRING0 ; - private fin...
Don t print warning if we get a SeekMap when reading DASH chunks
<nb> public class InterpreterFactory implements InterpreterGroupFactory { public Map < String , Object > getEditorSetting ( String user , String noteId , String replName ) { Interpreter intp = getInterpreter ( user , noteId , replName ) ; Map < String , Object > editor = DEFAULT_EDITOR ; - String defaultSetting...
Fix NPE while getting default interpreter setting
<nb> public class MCEditSchematicFormat extends SchematicFormat { blocks [ index ] = ( short ) ( ( ( addBlockIds [ i ] < < NUMBER0 ) & NUMBER1 ) < < NUMBER2 + rawBlocks [ index ++ ] ) ; } } + } else { + for ( int i = NUMBER3 ; i < rawBlocks . length ; ++ i ) { + blocks [ i ] = rawBlocks [ i ] ; + } } ...
Move block ids over even if there isn t an AddBlocks tag in schematics
<nb> public class JournalIntegrationTest { public static final String FULL_CLASS_NAME = STRING0 ; - private HashMap < String , String > mUserGroups = new HashMap < String , String > ( ) ; + private HashMap < String , String > mUserGroups = new HashMap < > ( ) ; public FakeUserGroupsMapping ( ) { mUserGr...
SMALLFIX Removed explicit argument type in JournalIntegrationTest
<nb> public class ExperimentalMode extends JavaMode { Logger . getLogger ( ExperimentalMode . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ; } - SINGLE - Package p = ExperimentalMode . class . getPackage ( ) ; - String titleAndVersion = p . getImplementationTitle ( ) + STRING0 + p . getImpleme...
remove warning and initial startup noise
<nb> public class MessagingController implements Runnable { synchronized ( data ) { MessageReference ref = localMessage . makeMessageReference ( ) ; if ( data . removeMatchingMessage ( context , ref ) ) { - synchronized ( data ) { - SINGLE - SINGLE - Integer childNotification = data . getStackedChildNotif...
Remove double synchronization
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT public class ExceptionUtil { @ nonnls private static final String CLONE_METHOD_NAME = STRING0 ; - pu...
remove unused code
<nb> public class RegisterActions { SINGLE - SINGLE - SINGLE - SINGLE - parser . registerAction ( KeyParser . MAPPING_NORMAL , STRING0 , Command . Type . OTHER_READONLY , new Shortcut [ ] { new Shortcut ( KeyStroke . getKeyStroke ( KeyEvent . VK_I , KeyEvent . CTRL_MASK ) ) , new Shortcut ( KeyStrok...
Removed unused method
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class CookieGenerator { Assert . notNull ( response , STRING0 ) ; Cookie cookie = createCookie ( STRING1 ) ; cookie . setMaxAge ( NUMBER0 ) ; + if ( isCookieSecure ( ) ) { + cookie . setSecure ( true ) ; + } + if ( isCookie...
CookieGenerator explicitly sets secure and httpOnly flags in removeCookie as well
<nb> public @ interface ApiModel { COMMENT COMMENT Class < ? > [ ] subTypes ( ) default { } ; + + COMMENT + COMMENT + COMMENT + + String reference ( ) default STRING0 ; } <nb> public @ interface ApiModelProperty { COMMENT COMMENT boolean readOnly ( ) default false ; + + COMMENT + COMME...
added reference annotation property
<nb> public class TypeSelectorManagerImpl implements TypeSelectorManager { } } + public PsiType [ ] getTypesForAll ( ) { + return myTypesForAll ; + } + private ExpectedTypesProvider . ExpectedClassProvider createOccurrenceClassProvider ( ) { final Set < PsiClass > occurrenceClasses = new HashSet < Psi...
add weaker types suggestions
<nb> public class ViewOverlay { public void clear ( ) { removeAllViews ( ) ; - mDrawables . clear ( ) ; + if ( mDrawables != null ) { + mDrawables . clear ( ) ; + } } boolean isEmpty ( ) {
Add null check in ViewOverlay
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class AccountSetupNamesPage extends AbstractPage { try { onView ( ViewMatchers . withText ( STRING0 ) ) . ...
log ChangeLog click failure
<nb> import NAMESPACE ; COMMENT COMMENT public final class CheckEmptyStatements extends AbstractPostOrderCallback implements CompilerPass { - SINGLE public static final DiagnosticType USELESS_EMPTY_STATEMENT = DiagnosticType . warning ( STRING0 , STRING1 ) ; <nb> public final class ErrorToFixMapper { ...
Add an automatic fix for removing stray semicolons
<nb> public class MaterialDialog extends DialogBase implements this . mediumFont = Typeface . create ( STRING0 , Typeface . NORMAL ) ; else this . mediumFont = Typeface . create ( STRING1 , Typeface . BOLD ) ; - } catch ( Throwable ignored ) { + } catch ( Exception ignored ) { } } if ( this . regularFon...
Don t catch and ignore Throwable
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - - public class PipeManager { - public static TreeMap < Integer , EntityPassiveItem > allEntities = new TreeMap < Integer , EntityPassiveItem > ( ) ; + public static TreeMap < Integer , IPipedItem > allEntities = new TreeMap < Integer...
Unlinking PipeManager java from BC core
<nb> public class EntityExplodeEvent extends EntityEvent implements Cancellable { private boolean cancel ; private Location location ; private List blocks ; + private float yield = FLOAT0 ; public EntityExplodeEvent ( Type type , Entity what , Location location , List < Block > blocks ) { super ( type . E...
added yield to explosions
<nb> import NAMESPACE ; COMMENT COMMENT public class MetricsServletContextListener implements ServletContextListener { - @ suppresswarnings ( STRING0 ) @ override public void contextDestroyed ( ServletContextEvent sce ) { final ServletContext context = sce . getServletContext ( ) ; - final MetricsRegist...
Remove unneeded warning suppression
<nb> public class DexBackedAnnotationEncodedValue implements AnnotationEncodedValue { public DexBackedAnnotationEncodedValue ( @ nonnull DexReader reader ) { this . dexBuf = reader . getDexBuffer ( ) ; - this . type = reader . getString ( reader . readSmallUleb128 ( ) ) ; + this . type = reader . getType ( re...
Use getType to get the annotation type for an annotation encoded value
<nb> public class IndicesController extends AuthenticatedController { return ok ( views . html . system . indices . failures . render ( currentUser ( ) , bc , - clusterService . getIndexerFailures ( NUMBER0 , NUMBER0 ) . total , + clusterService . getIndexerFailures ( NUMBER1 , NUMBER0 ) . total , page ) ...
Don t fetch all indexer errors to get total count
<nb> public class DeploymentManager { undeployed = false ; log . trace ( STRING0 ) ; } else { - log . trace ( STRING1 ) ; + log . trace ( STRING1 , res2 . cause ( ) ) ; broken = true ; doStartRedeployTimer ( ) ; }
Log the deploy redeploy error
<nb> import NAMESPACE ; import NAMESPACE ; public class OfflineProblemDescriptor { - private String myType ; - private String myFQName ; - private String myDescription ; - private List < String > myHints ; - private int myProblemIndex ; - private int myLine ; - private String [ ] myParentType ; - ...
do not scramble fields
<nb> public class ActionBarDrawerToggle implements DrawerLayout . DrawerListener { @ override public void setActionBarUpIndicator ( Drawable themeImage , int contentDescRes ) { - mActivity . getActionBar ( ) . setDisplayShowHomeEnabled ( true ) ; - mSetIndicatorInfo = ActionBarDrawerToggleHoneycomb . setActio...
Fixed NPE for HoneycombDelegate
<nb> public abstract class OCommandExecutorSQLAbstract extends OCommandExecutorAbstra protected String textUpperCase ; public OCommandExecutorSQLAbstract init ( final ODatabaseRecord < ? > iDatabase , final String iText ) { + text = iText ; textUpperCase = iText . toUpperCase ( ) ; return ( OCommandExecutor...
Fixed issue on remote queries
<nb> public class TransportClientNodesService extends AbstractComponent { return ; } - HashSet < DiscoveryNode > newNodes = new HashSet < > ( listedNodes ) ; + HashSet < DiscoveryNode > newNodes = new HashSet < > ( ) ; HashSet < DiscoveryNode > newFilteredNodes = new HashSet < > ( ) ; for ( Map . Entry < ...
don t add listed nodes to connected nodes list in sniff mode
<nb> public class IjSourceRootSimplifier { Path path = folder . getPath ( ) ; while ( path . getNameCount ( ) > limit ) { Path parent = path . getParent ( ) ; - if ( parent != null ) { - tree . addEdge ( parent , path ) ; - } else { + if ( parent == null ) { break ; } + + boolean isParentAndGrandP...
Add early break out to source root simplifier
<nb> public class EmergencyButton extends Button { } else { SINGLE SINGLE - enabled = mLockPatternUtils . isSecure ( ) ; + + SINGLE + enabled = true || mLockPatternUtils . isSecure ( ) ; } } mLockPatternUtils . updateEmergencyCallButtonState ( this , phoneState , enabled ,
Always show emergency button on selector view screen in keyguard
<nb> public class NioEndpoint extends AbstractEndpoint { setComet ( false ) ; timeout = soTimeout ; error = false ; - lastRegistered = NUMBER0 ; sendfileData = null ; if ( readLatch != null ) { try { <nb> public class SocketWrapper < E > { protected volatile long lastAccess = - NUMBER1 ; protected l...
Remove unused code
<nb> public class SessionCacheConfigurationService extends AbstractCacheConfiguration config = new ReplicationConfig ( ) ; this . metaData . setReplicationConfig ( config ) ; } - Boolean useJK = config . getUseJK ( ) ; - if ( useJK == null ) { - config . setUseJK ( Boolean . TRUE ) ; - } ReplicationGran...
Drop reference to unused meta data
<nb> 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 static NAMESPACE ; + i...
fixed import style in actual http server test
<nb> public class AgentResource extends RestResource { final Agent agent = agentService . findById ( agentId ) ; if ( agent != null ) - return Agents . toSummary ( agent ) ; + return agent . toSummary ( ) ; else throw new NotFoundException ( STRING0 + agentId + STRING1 ) ; }
Correcting usage of helper method
<nb> public final class Settings { ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE , ACCESSIBILITY_SCRIPT_INJECTION , ACCESSIBILITY_WEB_CONTENT_KEY_BINDINGS , - BACKUP_AUTO_RESTORE , ENABLED_ACCESSIBILITY_SERVICES , ENABLED_NOTIFICATION_LISTENERS , ENABLED_VR_LISTENERS ,
Don t back up restore the automatically restore app data setting
<nb> public class TargetsCommand extends AbstractCommand { @ option ( name = STRING0 , aliases = { STRING1 } , - usage = STRING2 ) + usage = STRING3 + + STRING4 ) private boolean isShowOutput ; @ option ( name = STRING5 ,
Fix up the help wording for Targets
<nb> public class ProgressBar extends Widget implements Disableable { } public float getVisualPercent ( ) { - return visualInterpolation . apply ( getPercent ( ) ) ; + return visualInterpolation . apply ( ( getVisualValue ( ) - min ) / ( max - min ) ) ; } COMMENT
Fixed progress bar visual interpolation
<nb> public class NeuralNet extends ValidatedJob { @ override protected void queryArgumentValueSet ( Argument arg , java . util . Properties inputArgs ) { super . queryArgumentValueSet ( arg , inputArgs ) ; + if ( arg . _name . equals ( STRING0 ) ) arg . disable ( STRING1 ) ; if ( arg . _name . equals ( STRIN...
Disallow ignored columns in Neural Nets for now since it s not supported
<nb> public class SettingsBackupAgent extends BackupAgentHelper { } private int enableWifi ( boolean enable ) { + if ( mWfm == null ) { + mWfm = ( WifiManager ) getSystemService ( Context . WIFI_SERVICE ) ; + } if ( mWfm != null ) { int state = mWfm . getWifiState ( ) ; mWfm . setWifiEnabled ( enable ...
Fetch WifiManager instance at the time of use