diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public interface Player extends HumanEntity , Conversable , CommandSender , Offline public void sendBlockChange ( Location loc , int material , byte data ) ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT...
Add method to send fake sign updates to players
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ApnsConnectionImpl implements ApnsConnection { if ( socket == null || socket . isClosed ( ) ) { try { - if ( underlyingSocket == null ) + if ( underlyingSocket == null ) { ...
Connect proxy socket
<nb> public class HttpRequest { COMMENT COMMENT public HttpRequest trustAllHosts ( ) { - if ( ! ( connection instanceof HttpsURLConnection ) ) - return this ; - - ( ( HttpsURLConnection ) connection ) - . setHostnameVerifier ( new HostnameVerifier ( ) { - - public boolean verify ( String hostname , ...
Use single return in trustAllHosts
<nb> public class RxPermissions { . beginTransaction ( ) . add ( rxPermissionsFragment , TAG ) . commit ( ) ; - } - if ( sSingleton == null ) { sSingleton = new RxPermissions ( rxPermissionsFragment ) ; } return sSingleton ;
Initialize singleton along with fragment to update reference by activity
<nb> public class LayoutControllerImpl implements LayoutController { model = null ; } } ) ; + + ProjectController projectController = Lookup . getDefault ( ) . lookup ( ProjectController . class ) ; + if ( projectController . getCurrentWorkspace ( ) != null ) { + model = projectController . getCurrentWork...
Fix LayoutController lazy init
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class QueryCacheToListenerMapper { public String addListene...
Added the CheckStyle rule for UUID randomUUID
<nb> public class MainActivity extends Activity { } ) ; } - private void simulateErrorProgress ( final CircularProgressButton button ) { + private void simulateSuccessProgress ( final CircularProgressButton button ) { ValueAnimator widthAnimation = ValueAnimator . ofInt ( NUMBER0 , NUMBER1 ) ; widthAnimat...
Fixed wrong named methods
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unused import that required a new library
<nb> public class GreedyPVRTexturePixelBufferStrategy implements IPVRTexturePixelBuff SINGLE SINGLE - public class GreedyPVRTexturePixelBufferStrategyBufferManager implements IPVRTexturePixelBufferStrategyBufferManager { + public static class GreedyPVRTexturePixelBufferStrategyBufferManager implements IPVRTex...
Made GreedyPVRTexturePixelBufferStrategyBufferManager a static inner class
<nb> public final class GF256 { for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { log_table [ exp_table [ i ] ] = i ; } - SINGLE + SINGLE zero = new GF256Poly ( this , new int [ ] { NUMBER0 } ) ; one = new GF256Poly ( this , new int [ ] { NUMBER2 } ) ; }
Fixing a comment
<nb> public class StreetSegment { @ jsonserialize ( using = ToStringSerializer . class ) SINGLE public QualifiedMode mode ; public int time ; - public EncodedPolylineBean geometry ; - public List < WalkStep > walkSteps = Lists . newArrayList ( ) ; public List < StreetEdgeInfo > streetEdges = Lists . newArra...
Remove walkSteps and geometry from profile response replaced by streetEdges
<nb> package NAMESPACE ; - public class Pair < A , B > { + import NAMESPACE ; + + public class Pair < A , B > implements Serializable { public final A a ; public final B b ;
added Serializable interface to Pair class
<nb> public class PredicateTemplate extends TemplateExpressionImpl < Boolean > implement @ nullable private Predicate not ; + public PredicateTemplate ( String template , Expression < ? > . . . args ) { + super ( Boolean . class , TemplateFactory . DEFAULT . create ( template ) , args ) ; + } + public P...
added new PredicateTemplate constructor
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public abstract class GString extends GroovyObjectSupport implements Comparable { + public abstract class GString extends GroovyObjectSupport implements Comparable , CharSequence { private Object [ ] values ; COMMENT <nb> public abstract class GString ...
GString now implements CharSequence
<nb> public @ interface Parcel { COMMENT COMMENT COMMENT - Class < ? extends ParcelConverter > converter ( ) default ParcelConverter . EmptyConverter . class ; + Class < ? extends TypeRangeParcelConverter > converter ( ) default ParcelConverter . EmptyConverter . class ; enum Serialization { COMMENT
Matched converter to parcelpropertyconverter
<nb> public class PubSubOptions STRING0 + NL + NL + STRING1 + NL + - STRING2 + NL + + STRING3 + NL + STRING4 + NL + STRING5 + NL + STRING6 ; <nb> public class PubSubOptions STRING7 + NL + SINGLE STRING8 + NL + STRING9 + NL + - STRING10 + NL + + STRING11 + NL + STRING12 + NL + STRING13 + ...
Corrected some errors in the PubSubOptions usage guide
<nb> public class Grape { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Grape { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT COMMENT COMMENT public static boolean getEnableAutoDownload ( ) { ...
added proper javadoc formatting
<nb> COMMENT - Copyright ( c ) NUMBER0 - NUMBER1 CommonsWare , LLC + Copyright ( c ) NUMBER2 - NUMBER3 CommonsWare , LLC Licensed under the Apache License , Version FLOAT0 ( the STRING0 ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at http : SINGL...
fixed copyright notice typo
<nb> public enum ItemType { CAULDRON_ITEM ( ItemID . CAULDRON , STRING0 , STRING1 ) , EYE_OF_ENDER ( ItemID . EYE_OF_ENDER , STRING2 , STRING3 , STRING4 ) , GLISTERING_MELON ( ItemID . GLISTERING_MELON , STRING5 , STRING6 , STRING7 ) , + SPAWN_EGG ( ItemID . SPAWN_EGG , STRING8 , STRING9 , STRING10 , STRING11 )...
Moved the spawn egg entry in ItemType further up
<nb> public abstract class AbstractLanguageConcurrencyTest { @ test public void testSpellCheckerFailure ( ) throws Exception { - System . setProperty ( - STRING0 , - STRING1 ) ; - final String txt = createSampleText ( ) ; final Language language = createLanguage ( ) ; <nb> public abstract class Ab...
removing the setProperty call which does not seem to be needed
<nb> public class BlockFluidClassic extends BlockFluidBase public boolean isSourceBlock ( IBlockAccess world , BlockPos pos ) { - return world . getBlockState ( pos ) == this && ( ( Integer ) world . getBlockState ( pos ) . getValue ( LEVEL ) ) . intValue ( ) == NUMBER0 ; + return world . getBlockState ( pos ...
Fix source block check for BlockFluidClassic
<nb> public class PicassoProvider { mmr . setDataSource ( uri . getPath ( ) ) ; byte [ ] data = mmr . getEmbeddedPicture ( ) ; mmr . release ( ) ; - return new Response ( new ByteArrayInputStream ( data ) , true , data . length ) ; + if ( data != null ) { + return new Response ( new ByteArrayInputStream ( d...
Fixed NullPointerException in PicassoProvider
<nb> public class ConditionProviders extends ManagedServices { setZenModeCondition ( condition , STRING0 ) ; } SINGLE - if ( ! inDowntime && mode == Global . ZEN_MODE_IMPORTANT_INTERRUPTIONS - && mDowntime . isDowntimeCondition ( mExitCondition ) ) { + if ( ! inDowntime && mDowntime . isDowntimeCondition ( ...
Allow downtime to exit from no interruptions
<nb> public abstract class BaseTypeConverterRegistry extends ServiceSupport implement } if ( value == null ) { - SINGLE - if ( boolean . class . isAssignableFrom ( type ) ) { - return Boolean . FALSE ; - } SINGLE if ( statistics . isStatisticsEnabled ( ) ) { noopCounter . incrementAndGet ( ) ; } ...
Added noop stats to type converter registry to capture attempts that didnt need a conversion
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class MvcModuleStructureSynchronizer extends AbstractProjectComponent { @ testonly public static void forceUpdateProject ( Project project ) { MvcModuleStructureSynchronizer instance = project . getComponent ( MvcModuleStructureSyn...
grails force recomputation of caches in tests
<nb> public class ListItemAdapter extends ArrayAdapter < ListItem > { . getSystemService ( Context . LAYOUT_INFLATER_SERVICE ) ; ListItem item = getItem ( position ) ; if ( view == null ) { - view = ( View ) inflater . inflate ( R . layout . contact , parent ) ; + view = ( View ) inflater . inflate ( R . layo...
add false argument to inflate
<nb> public class StatsDetailsActivity extends WPActionBarActivity { private void parseViewAndVisitorsResponse ( final JSONObject response ) { mVisitorsCount = NUMBER0 ; - mViewsPerVisitor = NUMBER0 ; + mViewsCount = NUMBER0 ; mViewsPerVisitor = FLOAT0 ; if ( ! response . has ( mViewAndVisitorsPath ) ) { ...
Use the correct variable name mViewsPerVisitor again
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class ActionMenuView extends LinearLayout implements MenuBuilder . ItemInvoker , MenuView { + SINGLE + SINGLE + public cla...
Use NineLinearLayout until we can fix IcsLinearLayout
<nb> public final class HikariPool implements HikariPoolMBean , IBagStateListener public void shutdown ( ) { - isShutdown = true ; - houseKeepingTimer . cancel ( ) ; - addConnectionExecutor . shutdown ( ) ; - - LOGGER . info ( STRING0 , configuration . getPoolName ( ) ) ; - logPoolState ( STRING1 ) ; ...
Eliminate double execution of shutdown code
<nb> public enum VarType { TextureBuffer ( false , true ) , Texture2D ( false , true ) , + Texture2DArray ( false , true ) , Texture3D ( false , true ) , + Texture3DArray ( false , true ) , TextureArray ( false , true ) , TextureCubeMap ( false , true ) , Int ; <nb> public enum VarType { public bo...
Added Texture2DArray and Texture3DArray
<nb> public class XOAuthConsumer extends CommonsHttpOAuthConsumer { } public String generateXOAuthString ( final String username ) { + if ( username == null ) throw new IllegalArgumentException ( STRING0 ) ; try { final URI uri = new URI ( String . format ( STRING1 ,
Add null check
<nb> public class FolderList extends K9ListActivity implements OnNavigationListener { @ override public boolean onQueryTextSubmit ( String query ) { folderMenuItem . collapseActionView ( ) ; + mActionBarTitle . setText ( getString ( R . string . filter_folders_action ) ) ; return true ; } <nb> public cl...
Use a more appropriate title when diplaying folder search results
<nb> public class RequestServer extends NanoHTTPD { SINGLE if ( H2O . OPT_ARGS . beta == null ) { - registerRequest ( new QuantilesPage ( ) ) ; registerRequest ( new hex . LR2 ( ) ) ; registerRequest ( new ReBalance ( ) ) ; } else {
Remove extraneous Quantiles from RequestServer
<nb> public class ActualHttpServerTest extends AbstractMocoHttpTest { } ) ; } + @ test + public void should_merge_http_server_without_port_for_first_server ( ) throws Exception { + httpServer = httpServer ( NUMBER0 , context ( STRING0 ) ) ; + anotherServer = httpServer ( context ( STRING1 ) ) ; + final ...
added test for merge http server when first server has no port
<nb> public class ShiftReduceParserQuery implements ParserQuery { COMMENT @ override public boolean parseAndReport ( List < ? extends HasWord > sentence , PrintWriter pwErr ) { - return parse ( sentence ) ; + boolean success = parse ( sentence ) ; + SINGLE + SINGLE + return success ; } public Tree...
Commented out debugging output
<nb> public class AndroidManifest extends AbstractBuildRule { return builder ; } - public SourcePath getSkeletonFile ( ) { - return skeletonFile ; - } - @ override public ImmutableList < Step > getBuildSteps ( BuildContext context , <nb> public class PrebuiltJar extends AbstractBuildRule return ...
Remove some unused methods
<nb> public class TestChatClient extends JFrame { client . addMessageListener ( new ChatHandler ( ) , ChatMessage . class ) ; client . addClientStateListener ( new ChatClientStateListener ( ) ) ; client . start ( ) ; + + System . out . println ( STRING0 + client ) ; } @ override <nb> public class Test...
Modified the client state messages to include the chat
<nb> public class StickyListHeadersListView extends ListView implements OnScrollListe } } } - if ( oldHeaderId != ( ( StickyListHeadersAdapter ) getAdapter ( ) ) . getHeaderId ( firstVisibleItem ) ) { + long currentHeaderId = ( ( StickyListHeadersAdapter ) getAdapter ( ) ) . getHeaderId ( firstVisibleItem ) ;...
remove unnecesary call to getHeaderId
<nb> public class FileContentsHolder return new int [ NUMBER0 ] ; } - COMMENT + COMMENT public void beginTree ( DetailAST aRootAST ) { FILE_CONTENTS . set ( getFileContents ( ) ) ; } - COMMENT + COMMENT public void finishTree ( DetailAST aRootAST ) { SINGLE
fixing javadoc warnings
<nb> public class AppStateManager { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void attachAll ( AppState . . . states ) { + attachAll ( Arrays . asList ( states ) ) ; + } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Added some methods for bulk attaching a bunch
<nb> public class TerminalPane extends WorkbenchPane { terminalSessionsPanel_ . add ( event . getTerminalWidget ( ) ) ; terminalSessionsPanel_ . showWidget ( event . getTerminalWidget ( ) ) ; - terminalSessionsPanel_ . forceLayout ( ) ; SINGLE }
remove change to forceLayout when terminal starts causing issues
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> final class DeploymentUnitPhaseService < T > implements Service < T > { } public synchronized void stop ( final StopContext context ) { - context . as...
remove asynchronous from DeploymentUnitPhaseService stop
<nb> public class PackageManagerBackupAgent extends BackupAgent { SINGLE for ( PackageInfo pkg : mAllPackages ) { String packName = pkg . packageName ; - if ( ! existing . contains ( packName ) ) { + if ( packName . equals ( GLOBAL_METADATA_KEY ) ) { + SINGLE + continue ; + } else if ( ! existing . cont...
Don t issue a deletion for the global metadata backup
<nb> public class VcsLogRefresherImpl implements VcsLogRefresher { return commits ; } catch ( IllegalStateException e ) { - LOG . error ( e ) ; + LOG . info ( e ) ; return null ; } }
log LOG info the ISE Joiner failure not LOG error
<nb> public class ProjectCommand extends BuildCommand { Optional < IjModuleGraph . AggregationMode > aggregationMode = buckConfig . getValue ( STRING0 , STRING1 ) . transform ( IjModuleGraph . AggregationMode . fromStringFunction ( ) ) ; - return aggregationMode . or ( IjModuleGraph . AggregationMode . AUTO ) ;...
Switch IntelliJ aggregation mode default to OFF
<nb> public class BuildCompat { public static boolean isAtLeastN ( ) { return VERSION . SDK_INT >= NUMBER0 ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static boolean isAtLeastNMR1 ( ) { + return ! STRING0 . equals ( VERSION . CODENAME ) + && STRING1 . compareTo ( VERSION . C...
Add BuildCompat isAtLeastNMR1
<nb> public class ServerStoredContactListMsnImpl for ( int i = NUMBER0 ; i < contacts . length ; i ++ ) { logger . trace ( STRING0 + contacts [ i ] ) ; - msnProvider . getMessenger ( ) . removeFriend ( contacts [ i ] . getEmail ( ) , false ) ; + + msnProvider . getMessenger ( ) . removeFriend ( contacts [ i...
Return tha failing tests and fix them a problem removing user from group
<nb> public class StaticTypesStatementWriter extends StatementWriter { } - private int foo ( String [ ] arr ) { - int counter = NUMBER0 ; - for ( String s : arr ) { - SINGLE - System . out . println ( s ) ; - continue ; - } - return counter ; - } - private void loadFromArray ( MethodVisitor ...
Remove debugging code
<nb> public class TestUpdateOps extends TestBase { @ test public void testSetOnInsertWhenUpdating ( ) throws Exception { + checkServerVersion ( FLOAT0 ) ; ObjectId id = new ObjectId ( ) ; UpdateResults < Circle > res = getDs ( ) . updateFirst ( getDs ( ) . createQuery ( Circle . class ) . field ( STRING0 ...
check the server version
<nb> public class OPropertyIndexManager extends ODocumentHookAbstract { if ( dirtyFields . contains ( propEntry . getKey ( ) . getName ( ) ) ) { SINGLE originalValue = iRecord . getOriginalValue ( propEntry . getKey ( ) . getName ( ) ) ; - if ( originalValue != null ) - originalValue = originalValue . toStrin...
Fixed issue reported by Curtis in ML about a stupid toString in key serialization
<nb> public class MessageAdapter extends ArrayAdapter < Message > { } final Spannable span = new SpannableString ( privateMarker + STRING0 + formattedBody ) ; - span . setSpan ( new ForegroundColorSpan ( activity - . getSecondaryTextColor ( ) ) , NUMBER0 , privateMarker + span . setSpan ( new ForegroundColo...
changed color of whispered prefix
<nb> public class SwaggerSampleApplication extends Application < SwaggerSampleConfigur BeanConfig config = new BeanConfig ( ) ; config . setTitle ( STRING0 ) ; config . setVersion ( STRING1 ) ; - config . setResourcePackage ( STRING2 ) ; + config . setResourcePackage ( STRING3 ) ; config . setScan ( true ) ...
Fixed dropwizard sample
<nb> public abstract class AbstractFramedStreamSourceChannel < C extends AbstractFramed COMMENT COMMENT COMMENT - void dataReady ( FrameHeaderData headerData , Pooled < ByteBuffer > frameData ) { + protected void dataReady ( FrameHeaderData headerData , Pooled < ByteBuffer > frameData ) { if ( anyAreSet ( s...
Allow code to hook into the data ready handling in the framed channel
<nb> public final class NioEventLoop extends SingleThreadEventLoop { logger . debug ( STRING0 + EPOLL_BUG_WORKAROUND ) ; } } + COMMENT COMMENT COMMENT
Add an empty line
<nb> public class SelectTemplateStep extends ModuleWizardStep implements SettingsStep continue ; } } - sorted . put ( entry . getKey ( ) , templates ) ; + sorted . putValues ( entry . getKey ( ) , templates ) ; } SimpleTreeStructure . Impl structure = new SimpleTreeStructure . Impl ( new SimpleNode ( ) ...
do not lose templates already added
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ContentResolverTest { } @ test - @ ignore ( STRING0 ) public void applyBatchForUnregisteredProvider ( ) throws Remote...
Unignore fixed test
<nb> public class TokenMetadata COMMENT public void clearUnsafe ( ) { - bootstrapTokens . clear ( ) ; - tokenToEndpointMap . clear ( ) ; - topology . clear ( ) ; - leavingEndpoints . clear ( ) ; - pendingRanges . clear ( ) ; - endpointToHostIdMap . clear ( ) ; - invalidateCaches ( ) ; + lock . wri...
Fix potential ConcurrentModificationException in tests
<nb> class ExitTransitionCoordinator extends ActivityTransitionCoordinator { } ) ; setGhostVisibility ( View . INVISIBLE ) ; scheduleGhostVisibilityChange ( View . INVISIBLE ) ; + mListener . setSharedElementEnd ( mSharedElementNames , mSharedElements , sharedElementSnapshots ) ; TransitionManager . beginDela...
Call SharedElementListener setSharedElementEnd on back
<nb> class ActivityUtils { private final Sleeper sleeper ; private LinkedHashSet < Activity > activityList ; private final String LOG_TAG = STRING0 ; + private final int MINISLEEP = NUMBER0 ; COMMENT COMMENT <nb> class ActivityUtils { ArrayList < Activity > activitiesOpened = getAllOpenedActivities ( ...
Modified finishOpenedActivities and added an additional back press
<nb> public class JournalIntegrationTest { public void loadMetadataTest ( ) throws Exception { String ufsRoot = PathUtils . concatPath ( Configuration . get ( Constants . UNDERFS_ADDRESS ) ) ; UnderFileSystem ufs = UnderFileSystem . get ( ufsRoot ) ; - ufs . create ( ufsRoot + STRING0 ) ; + ufs . create ( ufs...
Fix loadmetadata test
<nb> public class AddContactWizard new ErrorDialog ( mainFrame , GuiActivator . getResources ( ) . getI18NString ( - STRING0 ) , + STRING1 ) , GuiActivator . getResources ( ) . getI18NString ( STRING2 , new String [ ] { newContact . getUin ( ) } ) ,
Fixed missing resource
<nb> public class IdeErrorMessages { STRING0 + STRING1 , TO_STRING , RENDER_TYPE , RENDER_TYPE ) ; + MAP . put ( OVERLOAD_RESOLUTION_AMBIGUITY , STRING2 , HTML_AMBIGUOUS_CALLS ) ; + MAP . put ( NONE_APPLICABLE , STRING3 , HTML_AMBIGUOUS_CALLS ) ; + MAP . setImmutable ( ) ; }
Added IDE error messages for OVERLOAD_RESOLUTION_AMBIGUITY and NONE_APPLICABLE
<nb> public final class ParseDataset2 extends Job { return this ; } @ override public FVecDataOut close ( Futures fs ) { + if ( _nvs == null ) return this ; SINGLE for ( NewChunk nv : _nvs ) nv . close ( _cidx , fs ) ; _nvs = null ; SINGLE return this ;
Needed null check
<nb> public class ExternalJavaDocAction extends AnAction { if ( editor != null ) { presentation . setEnabled ( enabled ) ; if ( event . getPlace ( ) . equals ( ActionPlaces . MAIN_MENU ) ) { - presentation . setVisible ( true ) ; + presentation . setEnabled ( true ) ; } else { - presentation . setVisibl...
disable external javadoc action instead of hide from menu
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class UUIDBroadcasterCacheTest { } event . getResource ( ) . resume ( ) ; } - } , BroadcasterFactory . getDefault ( ) . get (...
Fix the build
<nb> public abstract class AbstractFlushingEventListener implements Serializable { session . getActionQueue ( ) . prepareActions ( ) ; session . getActionQueue ( ) . executeActions ( ) ; } - catch ( HibernateException he ) { - LOG . unableToSynchronizeDatabaseStateWithSession ( he ) ; - throw he ; - } f...
Don t log and rethrow exception in AbstractFlushingEventListener
<nb> public class ARSCDecoder { ResValue value = new ResBoolValue ( false ) ; ResResource res = new ResResource ( - mPkg . getConfig ( new ResConfigFlags ( ) ) , spec , value ) ; + mPkg . getOrCreateConfig ( new ResConfigFlags ( ) ) , spec , value ) ; mPkg . addResource ( res ) ; mConfig . addResource ( r...
Fixed an error when there are missing resources in type which does not have default config
<nb> public class ToFileStoreWriter implements StoreWriter { temporaryBuffer . clear ( ) ; File file = new File ( basePath , path ) ; + file . getParentFile ( ) . mkdirs ( ) ; String filename = file . getName ( ) ; final Optional < StoreType > storeType = isStoreType ( filename ) ; <nb> public class ToF...
Create store copy directory even if writing through page cache
<nb> public class DebugUtils { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Remove references to android util Config
<nb> public enum CallState { COMMENT COMMENT COMMENT - DISCONNECTED ; + DISCONNECTED , + + COMMENT + COMMENT + COMMENT + COMMENT + ABORTED ; }
Adding the aborted call state
<nb> import NAMESPACE ; COMMENT public class ListHeaders { public static final String LIST_POST_HEADER = STRING0 ; - private static final Pattern MAILTO_CONTAINER_PATTERN = Pattern . compile ( STRING1 ) ; + private static final Pattern MAILTO_CONTAINER_PATTERN = Pattern . compile ( STRING2 ) ; public st...
Avoid ParseException by only passing mailto URIs to MailTo parse
<nb> public class WordPress extends Application { registerForCloudMessaging ( this ) ; SINGLE - SINGLE + AppLockManager . getInstance ( ) . enableDefaultAppLockIfAvailable ( this ) ; loadNotifications ( this ) ; super . onCreate ( ) ;
unhide the feature for beta testing
<nb> public class FavouritesDbHelper { name = STRING0 ; } SINGLE - if ( STRING0 . equals ( categoryName . trim ( ) ) && ( c = p . name . lastIndexOf ( STRING1 ) ) != - NUMBER0 ) { - categoryName = p . name . substring ( c + NUMBER0 ) ; - name = p . name . substring ( NUMBER1 , c ) ; + if ( STRING0 . equal...
Fix Wpt issue
<nb> public class Daemon implements Stoppable { } } - COMMENT - COMMENT - COMMENT public void stopOnExpiration ( DaemonExpirationStrategy expirationStrategy , int checkIntervalMills ) { LOGGER . debug ( STRING0 ) ; scheduleExpirationChecks ( expirationStrategy , checkIntervalMills ) ;
Remove unnecessary comment
<nb> package NAMESPACE ; public class AlphaNumericValidator extends RegexpValidator { public AlphaNumericValidator ( String message ) { - super ( message , STRING0 ) ; + super ( message , STRING1 ) ; } - + } <nb> package NAMESPACE ; public class AlphaValidator extends RegexpValidator { public ...
Added unicode support
<nb> public final class PackageFactory { this . globCache = globCache ; } - private class Token extends Globber . Token { + private static class Token extends Globber . Token { public final List < String > includes ; public final List < String > excludes ; public final boolean excludeDirs ; <nb> publi...
errorprone info suggested fixes for PackageFactory
<nb> import static NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import static NAMESPACE ; @ retention ( CLASS ) @ target ( { TYPE } ) public @ interface RxLogSubscriber { - Scope value ( ) default Scope . EVERYTHING ; - - COMMENT - COMMENT - ...
Remove logging scope from RxSubscriber
<nb> public class BoardRobotDelivery extends RedstoneBoardRobot { startDelegateAI ( new AIRobotDisposeItems ( robot ) ) ; return ; } - SINGLE - SINGLE if ( currentRequest == null ) { startDelegateAI ( new AIRobotSearchStackRequest ( robot , ActionRobotFilter . getGateFilter ( robot
remove debug code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; final class SuperNotCalledException extends AndroidRuntimeException { <nb> public final class ActivityThread { public static final void main ( String [ ] args ) { SamplingProfilerIntegration . start...
Disable CloseGuard early
<nb> public class NetworkModHolder @ override public boolean check ( Map < String , String > remoteVersions , Side side ) { - return remoteVersions . containsKey ( container . getModId ( ) ) ? acceptVersion ( remoteVersions . get ( container . getModId ( ) ) ) : false ; + return remoteVersions . containsKey (...
Fixed default network mod checking to allow client side mods without the server side
<nb> public abstract class Chunk extends Iced implements Cloneable { return true ; } - COMMENT public void close ( int cidx , Futures fs ) { + boolean alwaysPutToDKV = false ; + close ( cidx , fs , alwaysPutToDKV ) ; + } + + COMMENT + public void close ( int cidx , Futures fs , boolean alwaysPut...
Added alwaysPutToDKV argument to close
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AuthenticateUser extends AdHocCommand { protected Action getExecuteAction ( SessionData data ) { return AdHocCommand . Acti...
allow calls by components
<nb> public class NumpyDocStringTypeProvider extends PyTypeProviderBase { final PyType returnType = StringUtil . isNotEmpty ( memberTypeName ) ? parseNumpyDocType ( function , memberTypeName ) : null ; final boolean isOptional = StringUtil . isNotEmpty ( memberTypeName ) && memberTypeName . contains ( STRING0 ) ; ...
put the proper type to the union in case of optional numpy type
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JavaChangeSignatureUsageProcessor implements ChangeSignatureUsagePr if ( ! StdLanguages . JAVA . equals ( changeInfo . getLan...
Do not process non Java methods in JavaChangeSignatureUsageProcessor
<nb> + SINGLE + package NAMESPACE ; COMMENT <nb> + SINGLE + package NAMESPACE ; import NAMESPACE ; <nb> + SINGLE + package NAMESPACE ; import NAMESPACE ; <nb> + SINGLE + package NAMESPACE ; @ heroname ( <nb> + SINGLE + package NAMESPACE ; public @ interface Hero...
Added missing copyright
<nb> public class DatabaseTest { @ before public void setup ( ) throws Exception { databaseDirectory = ServerTestUtils . createTempDir ( ) ; - System . out . println ( databaseDirectory . getAbsolutePath ( ) ) ; theDatabase = new Database ( DatabaseMode . STANDALONE , databaseDirectory . getAbsolutePath ( ) )...
Removed an errant System out println
<nb> public class Pixmap implements Disposable { COMMENT COMMENT public void setColor ( int color ) { - a = ( ( color > > > NUMBER0 ) & NUMBER1 ) / NUMBER2 f ; - r = ( color > > > NUMBER3 ) & NUMBER1 ; - g = ( color > > > NUMBER4 ) & NUMBER1 ; - b = ( color & NUMBER1 ) ; + r = ( color > > > NUMBER0 ) & ...
Fixed setColor of Pixmap GWT emulation
<nb> package NAMESPACE ; COMMENT public class NotSupportedException extends RuntimeException { + private static final long serialVersionUID = NUMBER0 ; + COMMENT COMMENT COMMENT
Add serialVersionUID to NotSupportedException
<nb> public interface SourceSet { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
fixing grammar in sourceset output doc
<nb> public class ODataLocal extends OMultiFileSegment { final OFile file = files [ ( int ) pos [ NUMBER0 ] ] ; - if ( pos [ NUMBER0 ] >= file . getFilledUpTo ( ) ) + if ( pos [ NUMBER1 ] >= file . getFilledUpTo ( ) ) SINGLE break ; <nb> public class ODataLocal extends OMultiFileSegment { } COMM...
Fixed bug on defrag algorithm
<nb> public class RedmineRepositoryEditor extends BaseRepositoryEditor < RedmineReposit protected void afterTestConnection ( boolean connectionSuccessful ) { if ( connectionSuccessful ) { new FetchProjectsTask ( ) . queue ( ) ; + } else { + myProjectCombo . removeAllItems ( ) ; } }
Remove project from combo when test connection is failed
<nb> public class HttpSnoopServerInitializer extends ChannelInitializer < SocketChannel p . addLast ( STRING0 , new HttpRequestDecoder ( ) ) ; SINGLE - SINGLE + SINGLE p . addLast ( STRING1 , new HttpResponseEncoder ( ) ) ; SINGLE SINGLE
Fix variable name
<nb> public class Transaction extends ChildMessage { public String toString ( @ nullable AbstractBlockChain chain ) { StringBuilder s = new StringBuilder ( ) ; s . append ( STRING0 ) . append ( getHashAsString ( ) ) . append ( STRING1 ) ; - if ( hasConfidence ( ) ) - s . append ( STRING2 ) . append ( getConfi...
Remove confidence and Context requirement from Transaction toString
<nb> public class ComputationSteps { FeedPeriodsStep . class , SINGLE + NewCoverageMeasuresStep . class , CoverageMeasuresStep . class , CommentMeasuresStep . class , CustomMeasuresCopyStep . class , <nb> public class ComputationSteps { SINGLE SqaleMeasuresStep . class , - NewCoverageMeasuresSte...
Fix computation of new coverage
<nb> public class DruidPooledConnection extends PoolableWrapper implements javax . sql . stmt . setClosed ( true ) ; SINGLE } else { - stmt . closeInternal ( ) ; - holder . getDataSource ( ) . incrementClosedPreparedStatementCount ( ) ; + try { + SINGLE + SINGLE + stmt . closeInternal ( ) ; + } catc...
Add exception handling when closing statement
<nb> public class TextEditingTarget implements SINGLE Scope [ ] previousScopes = scopeHelper_ . getSweaveChunks ( position , which ) ; - SINGLE + SINGLE String jobDesc = STRING0 ; if ( previousScopes . length > NUMBER0 ) { <nb> public class TextEditingTarget implements else if ( which == TextEditing...
don t submit empty notebook execution queue to server
<nb> public class ORawBuffer extends OBuffer { public void writeExternal ( final ObjectOutput iOutput ) throws IOException { super . writeExternal ( iOutput ) ; - iOutput . write ( version ) ; - iOutput . write ( recordType ) ; + iOutput . writeInt ( version ) ; + iOutput . writeByte ( recordType ) ; } ...
Fixed serialisation problem with ORawBuffer
<nb> public class SegmentLoaderConfig private int dropSegmentDelayMillis = NUMBER0 * NUMBER1 ; SINGLE @ jsonproperty ( STRING0 ) - private int announceIntervalMillis = NUMBER2 * NUMBER1 ; SINGLE + private int announceIntervalMillis = NUMBER3 ; SINGLE @ jsonproperty ( STRING1 ) private int numLoadingThre...
keep default behavior
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DefaultInstanceManager implements InstanceManager { annotation . name ( ) ) ) ; } } + if ( annotations . size ( ) == NU...
Reduce cache memory usage for classes with no annotations
<nb> public class RouteResultPreparation { if ( t != null && lanes != null ) { t . setLanes ( lanes ) ; - attachTurnLanesData ( leftSide , prevSegm , t ) ; + t = attachTurnLanesData ( leftSide , prevSegm , t ) ; } return t ; }
Assign new turn in attachKeepLeftInfoAndLanes