diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> class CompoundRendererConfigurable extends JPanel { private void updateContext ( final String qName ) { ApplicationManager . getApplication ( ) . runReadAction ( ( ) - > { - final Project project = myProject ; - final PsiClass psiClass = project != null ? DebuggerUtils . findClass ( qName , project , Glo...
prefer sources not cls
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo in View java javadocs
<nb> public class LeveledManifest int thisLevel = remove ( sstable ) ; minLevel = Math . min ( minLevel , thisLevel ) ; } + lastCompactedKeys [ minLevel ] = SSTableReader . sstableOrdering . max ( added ) . last ; SINGLE if ( added . isEmpty ( ) ) <nb> public class LeveledManifest for ( SSTableReade...
move setting lastCompactedKey to before the return if nothing added
<nb> public class GraphHopper implements GraphHopperAPI private boolean allowWrites = true ; private boolean turnCosts = false ; private boolean enableInstructions = true ; - private boolean fullyLoaded = false ; + private boolean fullyLoaded = false ; SINGLE private boolean simplifyRequest = true ; SIN...
add log info to preparation process
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BitmapCreationBenchmark extends AbstractBenchmark ImmutableBitmap baseImmutableBitmap ; MutableBitmap baseMutableBitmap ; byte [ ] baseBytes...
Add deserialization benchmark to BitmapCreationBenchmark
<nb> public class QuickSearchBarActivity extends BaseActivity implements OnClickListe if ( savedInstanceState == null ) { final Intent intent = getIntent ( ) ; final UserKey accountKey = intent . getParcelableExtra ( EXTRA_ACCOUNT_KEY ) ; - final int index = accountsSpinnerAdapter . findPositionByKey ( accountK...
fixed crash performing search when account key not present
<nb> public class GroovyTestCase extends TestCase { final Method testMethod = findRunningJUnitTestMethod ( caller . getClass ( ) ) ; try { log . info ( STRING0 + testMethod . getName ( ) + STRING1 ) ; - testMethod . invoke ( caller , new Class [ ] { } ) ; + testMethod . invoke ( caller , ( Object [ ] ) new Cl...
remove compilation warning
<nb> package NAMESPACE ; - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class ...
Reformat dangling comments
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public interface CoreMessageLogger extends BasicLogger { @ message ( value = STRING0 , id = NUMBER0 ) void cleaningUpConnection...
change some connection related log messages from INFO to DEBUG
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GELFHttpInput extends GELFInputBase { return STRING0 ; } + @ override + public ConfigurationRe...
Adding configuration field to enable disable CORS for GELF HTTP input
<nb> public class LegacyEditorFragment extends EditorFragmentAbstract implements Text private WPEditImageSpan createWPEditImageSpanLocal ( Context context , MediaFile mediaFile ) { Uri imageUri = Uri . parse ( mediaFile . getFilePath ( ) ) ; Bitmap thumbnailBitmap ; - if ( imageUri . toString ( ) . contains ( S...
Using isVideo to determine if a file is a video
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class HttpOutput extends ServletOutputStream implements Runnable } continue ; } - + switch ( _state . get ( ) ) { - case READY : case CLOSED : SINGLE ...
Fixed HttpOutput spin
<nb> public class CacheLoadAllOperation @ override public final int getSyncBackupCount ( ) { - return cache != null ? cache . getConfig ( ) . getBackupCount ( ) : NUMBER0 ; + return cache . getConfig ( ) . getBackupCount ( ) ; } @ override public final int getAsyncBackupCount ( ) { - return cache !=...
Removed unnecessary cache null check in CacheLoadAllOperation
<nb> public class PullToRefreshLayout extends FrameLayout { if ( attacher != null ) { if ( DEBUG ) Log . d ( LOG_TAG , STRING0 + view ) ; - attacher . addRefreshableView ( view , null , refreshListener , false ) ; + attacher . addRefreshableView ( view , null , refreshListener ) ; } }
Fix last commit
<nb> public class AudioService extends IAudioService . Stub { SINGLE newRingerMode = vibeInSilent ? RINGER_MODE_VIBRATE : RINGER_MODE_SILENT ; } - if ( uiIndex == NUMBER0 || ( mPrevVolDirection == AudioManager . ADJUST_LOWER && - mVoiceCapable && streamType == AudioSystem . STREAM_RING ) ) { + if ( uiIndex ...
Fix volume indication in vibrate mode
<nb> public final class CalendarContract { COMMENT protected interface CalendarColumns { COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public static final String CALENDAR_COLOR = STRING0 ; <nb> public final class CalendarContract { COMMENT COMMENT COMMENT - COMMENT COMM...
Add a warning to changing colors in the docs
<nb> public class NotificationCompat { COMMENT public static final int SIZE_LARGE = NUMBER0 ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final int SIZE_FULL_SCREEN = NUMBER1 ; + COMMENT private static final String EXTRA_WEARABLE_EXTENSIONS = STRING0 ;
Add full screen size preset to NotificationCompat WearableExtender
<nb> public final class Intersector { if ( ua >= NUMBER0 && ua <= NUMBER1 ) { return true ; } - x3 = x4 ; - y3 = y4 ; } + x3 = x4 ; + y3 = y4 ; } return false ; } <nb> public final class Intersector { return true ; } } - x3 = x4 ; - y3 = y4 ; } + x3 = x4 ; + y3 = y4 ; } retur...
Fix bug in polygon intersections
<nb> public interface TransactionalGraph extends Graph { public void stopTransaction ( Conclusion conclusion ) ; COMMENT - COMMENT - COMMENT - public void shutdown ( ) ; - - COMMENT COMMENT COMMENT public void commit ( ) ;
Remove repeated shutdown method from TransactionalGraph
<nb> public class JaxrsCdiIntegrationProcessor implements DeploymentUnitProcessor { try { module . getClassLoader ( ) . loadClass ( CDI_INJECTOR_FACTORY_CLASS ) ; SINGLE - if ( WeldDeploymentMarker . isPartOfWeldDeployment ( deploymentUnit ) ) { + if ( WeldDeploymentMarker . isWeldDeployment ( deploymentUnit ...
Only install CDI injector factory in CDI enabled deployment units
<nb> public class ProfileRequest extends Request { @ getter PlayerProfile profile = new PlayerProfile ( ) ; public Communication . Method getRpcId ( ) { - return Communication . Method . GET_PLAYER_PROFILE ; + return Communication . Method . GET_PLAYER ; } public void handleResponse ( Payload payload )
Fix RPC ID for ProfileRequest
<nb> public class Block extends Message { SINGLE SINGLE SINGLE - Preconditions . checkState ( ! transactions . isEmpty ( ) ) ; + if ( transactions . isEmpty ( ) ) + throw new VerificationException ( STRING0 ) ; maybeParseTransactions ( ) ; checkTransactions ( ) ; checkMerkleRoot ( ) ;
Make a block with no txn a VerificationException not Precondition
<nb> public class NativeLibrary { private static final Map libraries = new HashMap ( ) ; private static final Map searchPaths = Collections . synchronizedMap ( new HashMap ( ) ) ; private static final List librarySearchPath = new LinkedList ( ) ; - private static final List userSearchPath = new LinkedList ( ) ;...
Re evaluate jna library path on each library load instead of caching the value
<nb> public class AsyncContextImpl implements AsyncContext { @ override public void run ( ) { synchronized ( AsyncContextImpl . this ) { - if ( ! dispatched ) { + if ( ! dispatched && ! complete ) { addAsyncTask ( new Runnable ( ) { @ override public void run ( ) {
Fix issue with async timeout
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; public class FileDownloadITest extends WithJetty { <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import ...
Using non core hamcrest matchers
<nb> public class LossHandlerTest processTimersUntil ( ( ) - > wheel . now ( ) >= TimeUnit . MILLISECONDS . toNanos ( NUMBER0 ) ) ; verify ( sendNakHandler ) . onSendNak ( NUMBER1 , MESSAGE_LENGTH ) ; - verifyNoMoreInteractions ( sendNakHandler ) ; } @ test <nb> public class LossHandlerTest handler . ...
make tests a little more forgiving of timing
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; @ runwith ( HazelcastSerialClassRunner . class ) @ category ( SlowTest . class ) - @ ignore SINGLE publi...
More testing tweaks
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PatternDetail extends PatternShort { public String routeId ; public Collection < StopShort > stops = Lists . newArrayList ( ) ; + public Collection < TripShort > trips = Lists...
modify detailed pattern model to include trips
<nb> import static NAMESPACE ; public class MappingBufferUsageStrategyTest { - private static String LOCATION = IoUtil . tmpDirName ( ) + STRING0 ; - private static String OTHER_LOCATION = LOCATION + STRING1 ; + private static final String LOCATION = IoUtil . tmpDirName ( ) + STRING0 ; + private static fi...
Fix checkstyle warnings
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT
Fix doc error in Palette
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ channelpipelinecoverage ( ChannelPipelineCoverage . ONE ) public class MemcachedDecoder extends FrameD...
add annotation documentation for memcached handlers
<nb> public abstract class MyFileSystem { try { link = generateUniqueTempFileName ( ) ; int returnCode = PosixUtil . current ( ) . symlink ( file . getPath ( ) , link . getPath ( ) ) ; - return returnCode != NUMBER0 && hasContent ( link , content ) ; + return returnCode == NUMBER0 && hasContent ( link , conte...
fixed wrong comparison that led to failing tests
<nb> public class UserService { user . setLastLogin ( now ) ; saveUser = true ; } - if ( user . getLastFullRefresh ( ) == null || user . getLastFullRefresh ( ) . before ( DateUtils . addMinutes ( now , - NUMBER0 ) ) ) { + if ( applicationSettingsService . get ( ) . isHeavyLoad ( ) + && ( user . getLastFullR...
force full refreshes only when under heavy load
<nb> public class Reader { for ( AuthorizationScope scope : scopes ) { if ( scope . scope ( ) != null && ! STRING0 . equals ( scope . scope ( ) ) ) { security . addScope ( scope . scope ( ) ) ; - swagger . addSecurityDefinition ( auth . value ( ) , - new SecurityDefinition ( auth . type ( ) ) - . scope ( sc...
updated auth model
<nb> public class JPA11SubsystemTestCase extends AbstractSubsystemBaseTest { return readResource ( STRING0 ) ; } + @ override + protected String getSubsystemXsdPath ( ) throws Exception { + return STRING1 ; + } + + @ override + protected String [ ] getSubsystemTemplatePaths ( ) throws IOException { ...
add XML validation for jpa subsystem
<nb> public class DeepWater extends ModelBuilder < DeepWaterModel , DeepWaterParameters , D model . unlock ( _job ) ; if ( model . actual_best_model_key != null ) { assert ( model . actual_best_model_key != model . _key ) ; - DKV . remove ( model . actual_best_model_key ) ; + ( ( DeepWaterModel ) model . actu...
Remove call to MXNotifyShutdown wouldn t work with JUnits
<nb> public class NeoStore extends AbstractStore } if ( version . equals ( STRING0 ) ) { - ByteBuffer buffer = ByteBuffer . wrap ( new byte [ NUMBER0 * RECORD_SIZE ] ) ; + ByteBuffer buffer = ByteBuffer . wrap ( new byte [ NUMBER1 * RECORD_SIZE ] ) ; long time = System . currentTimeMillis ( ) ; long rando...
Fixed store upgrade bug
<nb> public abstract class CodeInsightTestCase extends PsiTestCase { LightPlatformCodeInsightTestCase . executeAction ( IdeActions . ACTION_EDITOR_MOVE_CARET_RIGHT , editor , getProject ( ) ) ; } protected void caretUp ( ) { - LightPlatformCodeInsightTestCase . caretUp ( myEditor ) ; + LightPlatformCodeInsigh...
provide project for non light tests
<nb> public class WireMockConfiguration implements Options { private boolean preserveHostHeader ; private String proxyHostHeader ; + private int jettyAcceptors ; + private int jettyAcceptQueueSize ; public static WireMockConfiguration wireMockConfig ( ) { return new WireMockConfiguration ( ) ; <nb> pu...
adding jetty settings to wiremock config
<nb> public final class CoinFormat { } } - SINGLE + SINGLE if ( zeroDigit != STRING0 ) { int offset = zeroDigit - STRING0 ; - System . out . println ( offset ) ; for ( int d = NUMBER0 ; d < str . length ( ) ; d ++ ) { char c = str . charAt ( d ) ; if ( Character . isDigit ( c ) ) <nb> public fin...
Remove debug output that slipped in with the last commit
<nb> public class StateEditor { SINGLE if ( routeId != null ) { AgencyAndId [ ] oldRouteSequence = child . stateData . routeSequence ; - LOG . debug ( STRING0 , Arrays . asList ( oldRouteSequence ) ) ; + SINGLE int oldLength = oldRouteSequence . length ; child . stateData . routeSequence = Arrays . copyOf...
turn off hyper detailed logging
<nb> public class SimulatedDeprecationMessageLogger { } public static DeprecatedFeatureUsage nagUserWith ( String message ) { - return new DeprecatedFeatureUsage ( message , SimulatedDeprecationMessageLogger . class ) ; + return new DeprecatedFeatureUsage ( message , SimulatedDeprecationMessageLogger . class ...
Fix unit test for DeprecationLogger
<nb> public class UkrainianWordRepeatRule extends WordRepeatRule { } @ override + public String getId ( ) { + return STRING0 ; + } + + @ override public boolean ignore ( AnalyzedTokenReadings [ ] tokens , int position ) { AnalyzedTokenReadings analyzedTokenReadings = tokens [ position ] ; String t...
uk Give the rule unique id
<nb> public class GradleVersion implements Comparable < GradleVersion > { } } - private String revision ; - public static GradleVersion current ( ) { return CURRENT ; } <nb> public class GradleVersion implements Comparable < GradleVersion > { } public String getRevision ( ) { - return revision...
Fixed broken property on GradleVersion
<nb> public class AeronTest } } - private void sendNewBufferNotification ( final int msgTypeId , - final long sessionId , - final long termId ) + private void sendNewBufferNotification ( final int msgTypeId , final long sessionId , final long termId ) { newBufferMessage . channelId ( CHANNEL_ID_1 ) ...
Simplified tests to help with debugging
<nb> public class BlockPathMarker extends BlockMarker { @ sideonly ( Side . CLIENT ) public void registerBlockIcons ( IIconRegister par1IconRegister ) { blockIcon = par1IconRegister . registerIcon ( STRING0 ) ; + activeMarker = par1IconRegister . registerIcon ( STRING1 ) ; } }
fixed error in previous change
<nb> public class TabOutline { return w ; } - private int estimateFrameHeight ( ) { - SINGLE - int t = Math . max ( NUMBER0 , editor . getSketch ( ) . getCodeCount ( ) + NUMBER1 ) ; - return Math . min ( NUMBER2 * t , frmOutlineView . getHeight ( ) ) ; + private int estimateFrameHeight ( ) { + int tex...
tab outline height estimation
<nb> public class SubstringMap < V > { } return ret ; } + + @ override + public void remove ( ) { + throw new IllegalStateException ( ) ; + } } ; } } ;
Add missing method
<nb> public class DefaultCursorManager implements ToroCursorManager { id , queryCriteria , projection , - NUMBER0 + maxResults ) ; try { query . get ( ) ;
Fixed a bug on limited cursors
<nb> public class HMPlayer extends LocalPlayer { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT public int getItemInHand ( ) { return player . getItemInHand ( ) ; } <nb> public class HMPlayer extends LocalPlayer { COMMENT COMMENT COMMENT - COMMENT - COMMENT ...
Fixed repeated comments in HMPlayer java
<nb> public class OsmandMapTileView implements IMapDownloaderCallback { for ( int i = layers . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) { layers . get ( i ) . onTouchEvent ( event , getCurrentRotatedTileBox ( ) ) ; } - gestureDetector . onTouchEvent ( event ) ; } + gestureDetector . onTouchEvent ( event )...
pass all MotionEvents also to gestureDetector
<nb> public class WhitespaceRuleTest extends TestCase { assertEquals ( NUMBER0 , matches [ NUMBER1 ] . getToPos ( ) ) ; assertEquals ( NUMBER2 , matches [ NUMBER3 ] . getFromPos ( ) ) ; assertEquals ( NUMBER4 , matches [ NUMBER3 ] . getToPos ( ) ) ; + + langTool = new JLanguageTool ( Language . POLISH ) ; +...
add one test more
<nb> public class ETC1 { COMMENT public final int dataOffset ; - ETC1Data ( int width , int height , ByteBuffer compressedData , int dataOffset ) { + public ETC1Data ( int width , int height , ByteBuffer compressedData , int dataOffset ) { this . width = width ; this . height = height ; this . compresse...
Made ETC1Data constructor public
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TransactionalProcessor implements ElementProcessor { JTryBlock tryBlock = body . _try ( ) ; - JInvocation superCall = J...
Fixed bad generated code when a method s invoked using Background and Transactional
<nb> import NAMESPACE ; public class WaterMeterCpuTicks extends Iced { SINGLE - int nodeidx ; + public int nodeidx ; SINGLE public long [ ] [ ] cpu_ticks ;
Make nodeidx public
<nb> import NAMESPACE ; public class SystemPanel extends LinearLayout { private static final String TAG = STRING0 ; private static final boolean DEBUG = TabletStatusBarService . DEBUG ; - private static final boolean DEBUG_SIGNAL = true ; + private static final boolean DEBUG_SIGNAL = false ; private stati...
Turn off spammy RSSI logs
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class BrowserFrame extends Handler { if ( sJavaBridge == null ) { sJavaBridge = new JWebCoreJavaBridge ( context ) ; SINGLE - sJavaBridge . setCacheSize ( NUMBER0 * NUMBER1 * NUMBER1 ) ; ...
Setting WebCore cache limit depending on the memory class
<nb> public class ConfirmationDialogFragment extends SherlockDialogFragment { return new AlertDialog . Builder ( getActivity ( ) ) . setIcon ( android . R . drawable . ic_dialog_alert ) - . setMessage ( String . format ( getString ( R . string . confirmation_alert_prefix ) , confirmationTarget ) ) + . setMess...
Fixing bad reference to string
<nb> public class BTreeMap < K , V > extends AbstractMap < K , V > protected long nextDir ( DirNode d , Object key ) { int pos = findChildren ( key , d . keys ) - NUMBER0 ; if ( pos < NUMBER1 ) pos = NUMBER1 ; - if ( d . child [ pos ] == NUMBER1 ) - System . out . println ( STRING0 ) ; return d . child [ po...
remove debug statement
<nb> public class NonBlockingCoordinator extends ChannelInterceptorBase { waitForCoordMsgTimeout , waitForCoordMsgTimeout , getOptionFlag ( ) ) ; } - protected static boolean memberAlive ( Member mbr , byte [ ] msgData , + protected boolean memberAlive ( Member mbr , byte [ ] msgData , boolean sendTest , bo...
Change a static method to an instance method
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class GitCheckoutHiEventDetector implements HiEventDetector < GitBranchChec private static final String HEAD_FILE = STRING...
Fix refs patern in GitCheckoutHiEventDetector
<nb> limitations under the License . COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ClassPathHacker { addURL ( f . toURI ( ) . toURL ( ) ) ; } catch ( final MalformedURLException e ) { SINGLE - assert false : STRING...
Fix logik implement TODO
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class QueryStateMachine } return FluentIterable . from ( getAllStages ( rootStage ) ) . transform ( StageInfo : : getState ) ...
Remove predicate function from QueryStateMachine
<nb> public class TileTank extends TileBuildCraft implements ITankContainer public void writeToNBT ( NBTTagCompound data ) { super . writeToNBT ( data ) ; - data . setTag ( STRING0 , tank . getLiquid ( ) . writeToNBT ( new NBTTagCompound ( ) ) ) ; + if ( tank . getLiquid ( ) != null ) + data . setTag ( STRI...
Fixed potential NPE in TileTank
<nb> public final class ActivityManagerService extends ActivityManagerNative COMMENT private static final boolean shouldShowDialogs ( Configuration config ) { return ! ( config . keyboard == Configuration . KEYBOARD_NOKEYS - && config . touchscreen == Configuration . TOUCHSCREEN_NOTOUCH ) ; + && config . touc...
Check NAVIGATION_NONAV in ActivityManagerService
<nb> public abstract class NodeDescriptor < E > { return myName ; } + COMMENT + Use # getIcon ( ) instead + COMMENT + @ deprecated + public final Icon getOpenIcon ( ) { + return getIcon ( ) ; + } + + COMMENT + Use # getIcon ( ) instead + COMMENT + @ deprecated + public final Icon getClos...
Bring back deprecated API for TeamCity plugin compatibility
<nb> public class TestNGUtil { public void run ( ) { final ProgressIndicator indicator = ProgressManager . getInstance ( ) . getProgressIndicator ( ) ; - final Collection < PsiClass > set = new HashSet < PsiClass > ( ) ; + final Collection < PsiClass > set = new LinkedHashSet < PsiClass > ( ) ; PsiManager m...
preserve order in which tests are found
<nb> public interface TypePool { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static TypePool of ( ClassLoader classLoader ) { + return of ( ClassFileLocator . ForClassLoader . of ( classLoader ) ) ; + } + + COMMENT COMMENT COMMENT COMMENT
Added convenience factory for a default class pool from a class loader
<nb> public class PipeTransportPower extends PipeTransport { if ( entity instanceof TileGenericPipe ) { TileGenericPipe nearbyTile = ( TileGenericPipe ) entity ; + if ( nearbyTile . pipe == null ) + continue ; + PipeTransportPower nearbyTransport = ( PipeTransportPower ) nearbyTile . pipe . transport ; ...
Fixed an NPE when a power pipe tries to give power to a ghost pipe
<nb> public class ProfileResource { throws Exception { QueryParameter . checkRangeInclusive ( limit , NUMBER0 , Integer . MAX_VALUE ) ; - QueryParameter . checkRangeInclusive ( walkSpeed , NUMBER1 , NUMBER2 ) ; + QueryParameter . checkRangeInclusive ( walkSpeed , FLOAT0 , NUMBER2 ) ; QueryParameter . checkR...
Expand valid walkSpeed range in ProfileResource
<nb> public class QueryStateMachine failureCause . compareAndSet ( null , toFailure ( throwable ) ) ; boolean failed = queryState . setIf ( FAILED , currentState - > ! currentState . isDone ( ) ) ; if ( failed ) { - log . error ( throwable , STRING0 , queryId ) ; + log . debug ( throwable , STRING0 , queryId ...
Log query failures at debug level
<nb> public class DefaultDnsRecordEncoder implements DnsRecordEncoder { return ; } - final String [ ] labels = StringUtil . split ( name , STRING0 ) ; + final String [ ] labels = name . split ( STRING1 ) ; for ( String label : labels ) { final int labelLen = label . length ( ) ; if ( labelLen == NUMBER0...
Removed custom split method as it is not effective anymore
<nb> OnSslUntrustedCertListener , EditNameDialogListener { } else { if ( operation . transferWasRequested ( ) ) { - COMMENT - COMMENT - COMMENT onTransferStateChanged ( syncedFile , true , true ) ; } else {
remove some commented code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class HttpServerPipelineFactory extends ServerPipelineFactory { pipeline . addLast ( STRING0 , new HttpContentCompressor ( ) ) ; ...
camel netty http Should use orderedThreadPoolExecutor
<nb> public class JBTabsImpl extends JComponent imgG2d . dispose ( ) ; } - g2d . drawImage ( img , x , y , width , height , null ) ; + UIUtil . drawImage ( g2d , img , x , y , width , height , null ) ; label . setInactiveStateImage ( img ) ; }
Draw tabs image via UIUtil drawImage to meet HiDPI Retina
<nb> public class UsbDebuggingManager { } try { listenToSocket ( ) ; - } catch ( IOException e ) { + } catch ( Exception e ) { COMMENT SystemClock . sleep ( NUMBER0 ) ; }
Fix a regression in UsbDebuggingManager
<nb> public class Config extends HashMap < String , Object > { COMMENT COMMENT @ isinteger - @ ispositivenumber + @ ispositivenumber ( includeZero = true ) public static final String TOPOLOGY_EVENTLOGGER_EXECUTORS = STRING0 ; COMMENT
Fixed disable of event logger
<nb> public class MediaFormat { public static MediaFormat createId3Format ( ) { return new MediaFormat ( MimeTypes . APPLICATION_ID3 , NO_VALUE , NO_VALUE , NO_VALUE , NO_VALUE , - NO_VALUE , NO_VALUE , null ) ; + NO_VALUE , NO_VALUE , NO_VALUE , null ) ; } @ targetapi ( NUMBER0 )
Fix the build
<nb> public class CleanupServiceTest } @ test - public void shouldRescheduleCleanupTaskAfterRunning ( ) throws Throwable - { - SINGLE - CleanupService service = new ReferenceQueueBasedCleanupService ( scheduler , mock ( Logging . class ) , referenceQueue ) ; - service . start ( ) ; - Runnable task = a...
Fix broken test
<nb> public class JsrEndpointEventDriver extends AbstractJsrEventDriver @ override public void onError ( Throwable cause ) { - LOG . warn ( cause ) ; try { endpoint . onError ( jsrsession , cause ) ; <nb> public class JsrEndpointEventDriver extends AbstractJsrEventDriver { COMMENT } - + @ ov...
Removed redundant logging statement
<nb> public class NotificationMessage private final String messageText ; COMMENT + COMMENT + COMMENT + private final Object source ; + + COMMENT COMMENT COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - public NotificationMessage ( String fromCon...
Adds a notification source to the NotificationMessage used in OperationSetMessageWaiting
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
fixed checkstyle issue
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SelectionCommands { } else if ( typeName . equalsIgnoreCase ( STRING0 ) ) { selector = new CylinderRegionSelector ( oldSele...
Added the polyhedral selector to sel
<nb> public class SwingSpyPanel extends JPanel { } else { str . append ( STRING0 ) ; } + field . setAccessible ( true ) ; str . append ( field . getName ( ) ) . append ( STRING1 ) ;
make field accessible
<nb> public abstract class AbstractStoreClientFactory implements StoreClientFactory { JmxUtils . registerMbean ( new StoreClientFactoryStatsJmx ( clientFactoryStats ) , JmxUtils . createObjectName ( STRING0 , - JmxUtils . getJmxId ( jmxId ) ) ) ; + STRING1 + + JmxUtils . getJmxId ( jmxId ) ) ) ; } } ...
Fixing name for store client factory mbean
<nb> class C { throw new E2 ( ) ; } catch ( E1 | E2 e ) { - e = new E ( ) ; throw e ; } }
Fix test data
<nb> public class LocationManagerService extends ILocationManager . Stub implements Run synchronized ( mLock ) { for ( int i = mProviders . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) { LocationProviderInterface provider = mProviders . get ( i ) ; - if ( provider . isEnabled ( ) && provider . requiresNetwork ( )...
Call updateNetworkState on providers that are disabled
<nb> public class ColumnFamilyStore implements ColumnFamilyStoreMBean COMMENT ColumnFamily filterColumnFamily ( ColumnFamily cached , QueryFilter filter ) { + if ( cached == null ) + return null ; + ColumnFamily cf = cached . cloneMeShallow ( ArrayBackedSortedColumns . factory , filter . filter . isRevers...
Fix potential NPE
<nb> public class ThreadActivityTest { @ test public void propagateExceptionToGlobalExceptionHandler ( ) { - + COMMENT + BackgroundExecutor . setExecutor ( Executors . newFixedThreadPool ( NUMBER0 ) ) ; + SINGLE SINGLE final Object LOCK = new Object ( ) ;
Use a new Executor in propagateExceptionToGlobalExceptionHandler
<nb> public class Observable < T > { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
add space to a comment to force ci rebuild to see if suspected non deterministic test fails again
<nb> public class WildcardQueryBuilder extends AbstractQueryBuilder < WildcardQueryBuil } } } else { + if ( fieldName != null ) { + throw new ParsingException ( parser . getTokenLocation ( ) , STRING0 + + fieldName + STRING1 + parser . currentName ( ) + STRING2 ) ; + } fieldName = parser . currentName (...
Throw parsing error if wildcard query contains multiple fields in its short version
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove changes dialog import from shows activity
<nb> public class FileResourceManager implements ResourceManager { private final boolean followLinks ; COMMENT - COMMENT + COMMENT + COMMENT COMMENT private final TreeSet < String > safePaths = new TreeSet < String > ( ) ; <nb> public class FileResourceManager implements ResourceManager { try { ...
Don t perform symlink check if we follow all symlinks
<nb> public class JUnitProcessHandler extends OSProcessHandler { myStream . close ( ) ; } + public boolean ready ( ) throws IOException { + return myStream . available ( ) > NUMBER0 ; + } + public int read ( final char [ ] cbuf , final int off , final int len ) throws IOException { for ( int i = NUMBE...
correctly implement ready method for JUnit custom Reader
<nb> public class BeaconParser { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
improve instructions on how to set up a matcher
<nb> package NAMESPACE ; - COMMENT + SINGLE import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; COMMENT - SINGLE + COMMENT import NAMESPACE ; import NAMESPACE ; <nb> static class FnExpr implements Expr { SINGLE ClassWriter cw = new ClassWriter ( ClassWriter . COMPUTE_MAXS ) ; ...
swapped ASM to local
<nb> public class PdeInputHandler extends DefaultInputHandler { SINGLE if ( ! Base . isMacOS ( ) ) { if ( ( event . getModifiers ( ) & InputEvent . ALT_MASK ) != NUMBER0 && + ( event . getModifiers ( ) & InputEvent . CTRL_MASK ) == NUMBER0 && event . getKeyChar ( ) != KeyEvent . VK_UNDEFINED ) { SINGLE SI...
Do not filter Ctrl Alt
<nb> public class BpmnDeployer implements Deployer { processDefinition . setId ( persistedProcessDefinition . getId ( ) ) ; processDefinition . setVersion ( persistedProcessDefinition . getVersion ( ) ) ; processDefinition . setSuspensionState ( persistedProcessDefinition . getSuspensionState ( ) ) ; - - addA...
if deployment is not new don t add start authorizations
<nb> public class OConsoleDatabaseImport { } } finally { listener . onMessage ( STRING0 + importedRecordsClass + STRING1 - + ( System . currentTimeMillis ( ) - beginChronoClass ) + STRING2 + notImportedRecordsClass + STRING3 ) ; + + ( System . currentTimeMillis ( ) - beginChronoClass ) + STRING2 + notImported...
Changed message to console
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ;
missing license comment in class