diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> abstract class AioCompletionHandler < V , A extends Channel > implements CompletionH COMMENT protected abstract void failed0 ( Throwable exc , A channel ) ; - private static final int MAX_STACK_DEPTH = NUMBER0 ; + private static final int MAX_STACK_DEPTH = Integer . MAX_VALUE ; private static final Thr...
Fix potential NPE Use discardReadBytes instead of clear
<nb> public class EditPost extends Activity implements LocationListener { id = accountIDs [ item ] ; blog = new Blog ( id , EditPost . this ) ; WordPress . currentBlog = blog ; + WordPress . wpDB . updateLastBlogID ( WordPress . currentBlog . getId ( ) ) ; accountName = blogNames [ item ] ; setTitle ( Escap...
set last selected blog from share action
<nb> public abstract class AbstractTask implements TaskInternal , DynamicObjectAware { } public void setEnabled ( boolean enabled ) { + nagIfTaskAlreadyExecuted ( STRING0 ) ; this . enabled = enabled ; }
Add Task setEnabled boolean
<nb> public class AstroCalculator { } private int getTimeZone ( ) { - return calendar . getTimeZone ( ) . getDSTSavings ( ) / NUMBER0 ; + return calendar . getTimeZone ( ) . getRawOffset ( ) / NUMBER0 ; } private boolean isDaylightSavingTime ( ) {
Fixed timezone offset calculation
<nb> import static NAMESPACE ; public class ShardStateActionTests extends ESTestCase { private static ThreadPool THREAD_POOL ; - private AtomicBoolean timeout ; private TestShardStateAction shardStateAction ; private CapturingTransport transport ; private TransportService transportService ; <nb> public ...
Remove dead field in o e c a s ShardStateActionTests
<nb> public class DebugInfoItem { out . indent ( ) ; for ( int i = NUMBER0 ; i < parametersSize ; i ++ ) { int paramaterIndex = reader . readSmallUleb128 ( ) - NUMBER1 ; - out . annotateTo ( reader . getOffset ( ) , + out . annotateTo ( reader . getOffset ( ) , STRING0 , StringIdItem . getOptionalReferenceA...
Fix potential formatting issue with local variable signatures in dump output
<nb> public class BubbleDraggable extends BubbleView implements Draggable { mMode = Mode . BubbleView ; } else { if ( mainController . closeCurrentTab ( action , false ) ) { - doAnimateToBubbleView ( ) ; + if ( mMode == Mode . ContentView && action == Config . BubbleAction . Close ) { + doAnimateToContentVi...
Restore content view when destroying a bubble while in content mode
<nb> public final class Parcel { SINGLE writeInt ( VAL_BUNDLE ) ; writeBundle ( ( Bundle ) v ) ; + } else if ( v instanceof PersistableBundle ) { + writeInt ( VAL_PERSISTABLEBUNDLE ) ; + writePersistableBundle ( ( PersistableBundle ) v ) ; } else if ( v instanceof Parcelable ) { + SINGLE + SINGLE + ...
Fix PersistableBundle handling in Parcel writeValue
<nb> public class AssetBundleHeader implements Struct { private void checkSignature ( ) throws IOException { if ( ! signature . equals ( SIGNATURE_WEB ) && ! signature . equals ( SIGNATURE_RAW ) ) { - throw new IOException ( STRING0 ) ; + throw new IOException ( ) ; } }
Revert Added missing exception text
<nb> public class GenericPrincipal implements TomcatPrincipal { COMMENT COMMENT public boolean hasRole ( String role ) { - if ( STRING0 . equals ( role ) ) { SINGLE return true ; } <nb> public class GenericPrincipal implements TomcatPrincipal { COMMENT COMMENT COMMENT - COMMENT COMMENT @ ove...
Missed some clean up
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class SaveContextOnUpdateOrErrorResponseWrapper extends public String toString ( ) { return getClass ( ) . getName ( ) + STRING0 + delegate . toString ( ) + S...
Fix Spring IO Tests
<nb> public class LruCache < K , E > implements Cache < K , E > } else if ( newMaxSize == NUMBER0 ) { + java . util . Iterator < Map . Entry < K , E > > itr = cache . entrySet ( ) . iterator ( ) ; + while ( itr . hasNext ( ) ) + { + E element = itr . next ( ) . getValue ( ) ; + elementCleaned ( element ...
cache clear does not call removeEldestEntry
<nb> public class DriverPublication implements AutoCloseable public void updatePositionLimitFromStatusMessage ( final long limit ) { - positionLimit . lazySet ( limit ) ; statusMessagesReceivedCount ++ ; + positionLimit . lazySet ( limit ) ; } COMMENT
Fix concurrency issue with StoreStore order not preserved when updating position limit from status message
<nb> import static NAMESPACE ; import 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 ; imp...
Remove unsused imports
<nb> public class FillableLoaderPage extends Fragment implements OnStateChangeListene fillableLoader . setPercentage ( progress ) ; } - public void onStartTrackingTouch ( SeekBar seekBar ) { } + public void onStartTrackingTouch ( SeekBar seekBar ) { } - public void onStopTrackingTouch ( SeekBar seekBar ) ...
Making CI happy with style fix
<nb> public class ShardedJedisPool extends Pool < ShardedJedis > { } public boolean validateObject ( final Object obj ) { - return true ; + try { + ShardedJedis jedis = ( ShardedJedis ) obj ; + for ( Jedis shard : jedis . getAllShards ( ) ) { + if ( ! shard . isConnected ( ) || ! shard . ping ( ) . equa...
reverted back vetify as connection checks could be disabled in pool config
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
remove confusing disabled link label
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class ViewUtils { SINGLE public static View inflate ( final Context pContext , final int pLayoutID ) { - final LayoutInflater inflater = LayoutInflater . from ( pCon...
Added utility method
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - COMMENT - COMMENT - COMMENT - COMMENT public class GrizzlyChunkingTest extends ChunkingTest { @ override
Remove outdated comment
<nb> public interface StreetVertexIndexService { public CandidateEdgeBundle getClosestEdges ( LocationObservation location , TraversalRequirements reqs ) ; - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public CandidateEdgeBundle getClos...
remove getClosestEdges Coordinate from the StreetVertexIndexService interface as it is only used internally
<nb> public class FrequencyIndexCreator { private static final int MIN_YEAR = NUMBER0 ; private static final String NAME_REGEX1 = STRING0 ; private static final String NAME_REGEX2 = STRING1 ; SINGLE - private static final String NAME_REGEX3 = STRING2 ; SINGLE + private static final String NAME_REGEX3 = STRING...
fix file name filtering to not ignore POS tags
<nb> public class InnerQuery extends QueryBase < Object , InnerQuery > { Expr < Object > [ ] orderByExpr = new Expr [ orderBy . size ( ) ] ; boolean [ ] directions = new boolean [ orderBy . size ( ) ] ; for ( int i = NUMBER0 ; i < orderBy . size ( ) ; i ++ ) { - orderByExpr [ i ] = ( Expr < Object > ) orderBy ....
fixed generic signature issue
<nb> public class MyLocationMenuController extends MenuController { return getPointDescription ( ) . getTypeName ( ) ; } - SINGLE - SINGLE - SINGLE - SINGLE + @ override + public String getCommonTypeStr ( ) { + return getMapActivity ( ) . getString ( R . string . shared_string_location ) ; + } ...
back out this takes a different fix
<nb> public final class IpnbConnectionManager implements ProjectComponent { } catch ( IOException e ) { showWarning ( codePanel . getFileEditor ( ) , STRING0 ) ; + LOG . warn ( STRING1 + e . getMessage ( ) ) ; return false ; } return true ;
added debug info
<nb> public class AsyncHttpClientConfig { } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
fixed type in setMaxRequestRetry javadoc
<nb> public final class CachedBluetoothDevice implements Comparable < CachedBluetoothDe SINGLE SINGLE if ( getPhonebookPermissionChoice ( ) == CachedBluetoothDevice . ACCESS_UNKNOWN ) { - setPhonebookPermissionChoice ( CachedBluetoothDevice . ACCESS_ALLOWED ) ; + if ( mDevice . getBluetoothClass ( ) . getDevi...
Don t allow contact sharing by default for device not recognized as carkit
<nb> public class JEditTextArea extends JComponent { public void focusGained ( FocusEvent evt ) { - System . out . println ( STRING0 ) ; + SINGLE setCaretVisible ( true ) ; SINGLE } public void focusLost ( FocusEvent evt ) { - System . out . println ( STRING1 ) ; + SINGLE setCaretVisible ( f...
remove debugging messages oops
<nb> class RecoveryFilesInfoRequest implements Streamable { } size = in . readVInt ( ) ; + phase1ExistingFileSizes = new ArrayList < Long > ( size ) ; for ( int i = NUMBER0 ; i < size ; i ++ ) { phase1ExistingFileSizes . add ( in . readVLong ( ) ) ; }
allocate list when deserializing NPE galore
<nb> public final class Throwables { } COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> public final class Throwables { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT + @ deprecated @ gwtincompatible SINGLE public static < X extends Throwable > vo...
Deprecated Throwables propagateIfInstanceOf and propagateIfPossible
<nb> public class InferenceIncorporationPhase { public void incorporate ( ) { for ( InferenceVariable inferenceVariable : mySession . getInferenceVariables ( ) ) { - if ( inferenceVariable . getInstantiation ( ) != PsiType . NULL ) continue ; + if ( inferenceVariable . getInstantiation ( ) != PsiType . NULL |...
ignore captured variables incorporation phase
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BuildInvocationsAdapterProducer extends AbstractModelProducer { throw Exceptions . unsupportedModel ( type , versionDetails . getVersion ( ) ) ;...
Added type param
<nb> public class ParticleEmitter { public void reset ( ) { emissionDelta = NUMBER0 ; durationTimer = duration ; + boolean [ ] active = this . active ; + for ( int i = NUMBER0 , n = active . length ; i < n ; i ++ ) + active [ i ] = false ; + activeCount = NUMBER0 ; start ( ) ; }
ParticleEmitter now resets the active particles too
<nb> public class Renderer extends JavaScriptObject } - * / ; public native final void addGutterDecoration ( int line , String clazz ) COMMENT - COMMENT + COMMENT COMMENT ; public native final void removeGutterDecoration ( int line , String clazz ) COMMENT - COMMENT + COMMENT COMMENT ; public ...
avoid Ace deprecation warnings
<nb> public final class LiteralInterpreter } if ( object == null ) { - if ( type == UNKNOWN ) { + if ( type . equals ( UNKNOWN ) ) { return new NullLiteral ( ) ; } return new Cast ( new NullLiteral ( ) , type . getTypeSignature ( ) . toString ( ) ) ;
Fix Type comparison using in LiteralInterpreter
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CropImageView extends TransformImageView { COMMENT COMMENT private void calculateImageScaleBounds ( float drawableWidth , float drawableHeig...
Changed calculation for min scale
<nb> public class ActivityApp extends Activity { mSelection = new boolean [ mListInfo . size ( ) ] ; for ( int i = NUMBER0 ; i < mListInfo . size ( ) ; i ++ ) try { - mListApp . add ( String . format ( STRING0 , pm . getApplicationLabel ( mListInfo . get ( i ) ) , - mListInfo . get ( i ) . packageName , mList...
Remove uid from applications to allow
<nb> public class DashboardOnMap { setDashboardVisibility ( false ) ; } } ; - dashboardView . findViewById ( R . id . content ) . setOnClickListener ( listener ) ; + dashboardView . findViewById ( R . id . animateContent ) . setOnClickListener ( listener ) ; dashboardView . setOnClickListener ( listener ) ;...
Configure listener on touch outside area
<nb> public class CacheTests extends ESTestCase { . build ( ) ; for ( int i = NUMBER0 ; i < numberOfEntries ; i ++ ) { + SINGLE keys . add ( i ) ; cache . put ( i , Integer . toString ( i ) ) ; }
Add comment clarifying CacheTests testCacheStats
<nb> public class PreloaderBundleGenerator extends Generator { } String paths = assetPathProperty . getValues ( ) . get ( NUMBER0 ) ; if ( paths == null ) { - return null ; + throw new RuntimeException ( + STRING0 ) ; } else { ArrayList < String > existingPaths = new ArrayList < String > ( ) ; String ...
Throw exception when no valid assetpath is defined
<nb> public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc private void ensureSelectionHandles ( ) { if ( mSelectHandleCenter == null ) { mSelectHandleCenter = mContext . getResources ( ) . getDrawable ( - com . android . internal . R . drawable . text_select_handle_middle ) ; + ...
Get your own cursor Drawables WebViewClassic
<nb> public class FMLCommonHandler } list . add ( channelName ) ; + modChannels . put ( channelName , container ) ; } COMMENT <nb> public class FMLServerHandler implements IFMLSidedHandler packet . field_44005_a = STRING0 ; packet . field_44004_c = FMLCommonHandler . instance ( ) . getPacketRegistry...
Don t send a register unless I have channels
<nb> public class BitmapText extends Node { letters . invalidate ( ) ; } + public float getSize ( ) { + return block . getSize ( ) ; + } + COMMENT COMMENT COMMENT
Added a getter for size since it s the only way
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT public class IvoryTower {
Added comment to eagerly initialized singleton implementation
<nb> static class ThrowExpr extends UntypedExpr { public Object eval ( ) throws Exception { - Object t = excExpr . eval ( ) ; - if ( t instanceof Exception ) - throw ( Exception ) t ; - else - throw ( Error ) t ; + throw new Exception ( STRING0 ) ; } public void emit ( C context , FnExpr fn , Ge...
wrap evals of throw in fn context
<nb> public class TransactionEventsSyncHook < T > implements Synchronization public void beforeCompletion ( ) { - TransactionData data = null ; - data = nodeManager . getTransactionData ( ) ; + this . transactionData = nodeManager . getTransactionData ( ) ; states = new ArrayList < HandlerAndState > ( ) ;...
Fixed a bug where the afterCommit wouldn t get any TransactionData
<nb> public class Route { COMMENT COMMENT private static String convertRawUriToRegex ( String rawUri ) { - return STRING0 + rawUri . replaceAll ( STRING1 , STRING2 ) + STRING3 ; + return rawUri . replaceAll ( STRING1 , STRING4 ) ; } } <nb> public class RouteBuilderImplTest { } + @ test + publi...
Added test for router bug
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ForecastFragment extends Fragment { int id = item . getItemId ( ) ; if ( i...
Get location from shared prefs
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RingCache try { TSocket socket = new TSocket ( seed , port_ ) ; - TBinaryProtocol binaryProtocol = new TBinaryProtocol ( socket ) ; + TB...
Used FramedTransport in RingCache
<nb> public class Antlr4Mojo extends AbstractMojo { processGrammarFiles ( args , sourceDirectory , outputDirectory ) ; } catch ( InclusionScanException ie ) { log . error ( ie ) ; - throw new MojoExecutionException ( STRING0 ) ; + throw new MojoExecutionException ( STRING0 , ie ) ; } log . debug ( STRIN...
Initialize exceptions with better message and set the inner exception
<nb> public class PortGenerator { } if ( StringUtils . isBlank ( maxPortStr ) || ! StringUtils . isNumeric ( maxPortStr ) ) { - logger . warn ( STRING0 , maxPortStr ) ; + logger . warn ( STRING1 , ip , maxPortStr ) ; return new Long ( redisPortHolder . getAndIncrement ( ip ) ) . intValue ( ) ; }
add ip in portgen log
<nb> public class DaemonGradleExecuter extends ForkingGradleExecuter { SINGLE SINGLE List < String > jvmArgs = new ArrayList < String > ( NUMBER0 ) ; - jvmArgs . add ( STRING0 ) ; + jvmArgs . add ( STRING1 ) ; jvmArgs . add ( STRING2 ) ; if ( JavaVersion . current ( ) . isJava5 ( ) ) { jvmArgs . add ( S...
Bumped up MaxPermGenSize for daemon integration tests to avoid running into out of PermGenSize errors too early
<nb> public class LiveUpdatesFragment extends BaseOsmAndFragment implements InAppList protected void onPostExecute ( List < LocalIndexInfo > result ) { SINGLE adapter . sort ( ) ; + adapter . notifyLiveUpdatesChanged ( ) ; adapter . notifyDataSetInvalidated ( ) ; } }
Fix report issue
<nb> public class TtsService extends Service implements OnCompletionListener { private void setDefaultSettings ( ) { - setLanguage ( this . getDefaultLanguage ( ) , getDefaultLanguage ( ) , getDefaultLocVariant ( ) ) ; + setLanguage ( this . getDefaultLanguage ( ) , getDefaultCountry ( ) , getDefaultLocVarian...
Fix bug where the default TTS Service country is initialized to the default language
<nb> public class PhoneWindowManager implements WindowManagerPolicy { } } - SINGLE + SINGLE if ( down && repeatCount == NUMBER0 && keyCode == KeyEvent . KEYCODE_TAB ) { if ( mRecentAppsHeldModifiers == NUMBER0 && ! keyguardOn ) { final int shiftlessModifiers = event . getModifiers ( ) & ~ KeyEvent . MET...
Remove Meta Tab shortcut for Recents
<nb> public final class PsiUtil extends PsiUtilCore { return containingClass1 == null && containingClass2 == null ; } - COMMENT - COMMENT - COMMENT + public static boolean isCompileTimeConstant ( @ notnull final PsiField field ) { + return isCompileTimeConstant ( ( PsiVariable ) field ) ; + } + + ...
restored binary compatibility of PsiUtil
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + @ lucenetestcase.awaitsfix ( bugUrl = STRING0 ) public c...
add awaitFix to SearchWithRandomExceptionsTests
<nb> public class BreakpointItemsTreeController implements BreakpointsCheckboxTree . De } public void rebuildTree ( Collection < BreakpointItem > items ) { - List < BreakpointItem > selectedBreakpoints = getSelectedBreakpoints ( ) ; TreePath path = myTreeView . getSelectionPath ( ) ; buildTree ( items ) ; ...
strage selection jumps in breakpoint tree
<nb> public class GraphView extends View { } return mSecondScale ; } + + public void removeAllSeries ( ) { + mSeries . clear ( ) ; + onDataChanged ( ) ; + } + + public void removeSeries ( Series < ? > series ) { + mSeries . remove ( series ) ; + onDataChanged ( ) ; + } }
remove series method
<nb> public class HttpAuthHandler extends Handler { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public boolean useHttpAuthUsernamePassword ( ) { return false ; <nb> public abstract class WebSettings { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public synchronized void se...
Fix broken more JavaDoc links
<nb> import NAMESPACE ; public class SourceGroupPacketExtension extends AbstractPacketExtension { - COMMENT COMMENT COMMENT <nb> public class SourceGroupPacketExtension public static final String SEMANTICS_SIMULCAST = STRING0 ; COMMENT + COMMENT + COMMENT + public static final String SEMANTI...
Adds a constant for FID
<nb> public class GraphDatabaseConfiguration { private void configureMetricsConsoleReporter ( Configuration conf ) { Long ms = conf . getLong ( METRICS_CONSOLE_INTERVAL_KEY , METRICS_CONSOLE_INTERVAL_DEFAULT ) ; if ( null != ms ) { - System . err . println ( STRING0 ) ; + log . debug ( STRING0 ) ; MetricMan...
Change System err println to log debug
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TextFieldWithHistory extends JPanel { } } ) ; - setB...
Fix ClassCastException with search text field under latest Leopard build
<nb> import NAMESPACE ; public class SlidingMenu extends RelativeLayout { - private static final String TAG = STRING0 ; + private static final String TAG = getClass ( ) . getSimpleName ( ) ; public static final int SLIDING_WINDOW = NUMBER0 ; public static final int SLIDING_CONTENT = NUMBER1 ;
Remove hardcoded string on TAG variable
<nb> public class IndyInterface { } public static Object selectMethod ( MutableCallSite callSite , Class sender , String methodName , Object receiver , Object [ ] arguments ) { - System . err . println ( STRING0 + methodName + STRING0 + callSite . type ( ) ) ; MetaClassImpl mc = null ; if ( receiver instanc...
remove debug system out
<nb> public class ResolverActivity extends AlertActivity implements AdapterView . OnIte public void onItemClick ( AdapterView < ? > parent , View view , int position , long id ) { final int checkedPos = mGrid . getCheckedItemPosition ( ) ; final boolean hasValidSelection = checkedPos != GridView . INVALID_POSITIO...
Fix condition bug in ResolverActivity
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT ...
add note about PriorityAction
<nb> public abstract class ChooseLibrariesDialogBase extends DialogWrapper { myTree . getInputMap ( ) . put ( KeyStroke . getKeyStroke ( KeyEvent . VK_ENTER , NUMBER0 ) , STRING0 ) ; myTree . getActionMap ( ) . put ( STRING0 , getOKAction ( ) ) ; final JScrollPane pane = ScrollPaneFactory . createScrollPane ( myT...
fixed minimum size for library chooser dialog rev by Pegov
<nb> class DictionaryBuilder { freqValuesApplied ++ ; } if ( freq < NUMBER0 || freq > NUMBER1 ) { - throw new RuntimeException ( STRING0 + line ) ; + throw new RuntimeException ( STRING0 + freq + STRING1 + key ) ; } SINGLE String freqChar = Character . toString ( ( char ) ( FIRST_RANGE_CODE + freq * FRE...
improve exception message
<nb> public class ClassReloadingTests extends TestCase { GroovyObject go = ( GroovyObject ) groovyClass . newInstance ( ) ; assertEquals ( STRING0 , go . getProperty ( STRING0 ) ) ; - + + SINGLE + Thread . sleep ( NUMBER0 ) ; SINGLE fw = new FileWriter ( file ) ; fw . write ( STRING1 + <nb> public...
moved sleep before creation of second file to give time for date modified to be different on certain OSes
<nb> public class DynamicClusterTest { final CountDownLatch latch = new CountDownLatch ( NUMBER0 ) ; final String message = STRING0 ; topic . addMessageListener ( new MessageListener < String > ( ) { - public void onMessage ( String msg ) { + public void onMessage ( Message < String > msg ) { if ( msg . equ...
Fixed compilation issue
<nb> public abstract class WPActionBarActivity extends Activity { String [ ] blogNames = getBlogNames ( ) ; if ( blogNames . length >= NUMBER0 ) { setupCurrentBlog ( ) ; + SINGLE + if ( data != null && data . getBooleanExtra ( PreferencesActivity . CURRENT_BLOG_CHANGED , true ) ) { + onBlogChanged ( ) ; +...
Revert Call onBlogChanged if currentBlog is not null
<nb> final class Settings { } final ApplicationInfo ai = pkg . pkg . applicationInfo ; - final String dataPath = ai . dataDir ; + final String dataPath = new File ( ai . dataDir ) . getCanonicalPath ( ) ; final boolean isDebug = ( ai . flags & ApplicationInfo . FLAG_DEBUGGABLE ) != NUMBER0 ; final int [ ]...
Resolve canonical package path before writing it to packages list
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; COMMENT <nb> public class BaseProjectImportErrorHandlerTest { SINGLE RuntimeException realCause = myEr...
add support for use of Messages tool window
<nb> import NAMESPACE ; import static NAMESPACE ; - public class WireMockRule implements MethodRule , TestRule , Stubbing , Verifying { + public class WireMockRule implements MethodRule , TestRule , Stubbing , Verifying , Delaying { private final Options options ; private final WireMock wireMock ; <nb...
handle delaying in WireMockRule
<nb> public class SearchTextField extends JPanel { } } ) ; - if ( isSearchControlUISupported ( ) || UIUtil . isUnderDarcula ( ) || UIUtil . isUnderIntelliJLaF ( ) ) { + if ( isSearchControlUISupported ( ) ) { myTextField . putClientProperty ( STRING0 , STRING1 ) ; myTextField . putClientProperty ( STRING2...
remove duplicated check
<nb> public final class InputMethodManager { } SINGLE SINGLE - checkFocus ( mHasBeenInactive ) ; + if ( mServedView != null && mServedView . hasWindowFocus ( ) ) { + checkFocus ( mHasBeenInactive ) ; + } } } return ; <nb> public final class InputMethodManager { } if ( DEBUG ) Log . v ( TAG , S...
Fix a bug with IME blinking just after leaving the lock screen
<nb> package NAMESPACE ; COMMENT public class MultiArrayDiskTest extends AbstractByteStoreTest { - private final MultiArrayDisk disk = new MultiArrayDisk ( ) ; + COMMENT + COMMENT + COMMENT + private final MultiArrayDisk disk = new MultiArrayDisk ( NUMBER0 , NUMBER1 ) ; @ override protected ByteSt...
Ensure tests for Multi and SingleArrayDisk exercise multiple blocks resizing
<nb> public abstract class TomcatBaseTest { @ override public void start ( ) throws LifecycleException { - SINGLE + SINGLE Server server = getServer ( ) ; for ( Service service : server . findServices ( ) ) { Container e = service . getContainer ( ) ;
Correct a typo
<nb> public abstract class AbstractXMPPConnection implements XMPPConnection { @ override public final boolean isAnonymous ( ) { - return config . getUsername ( ) == null && usedUsername == null ; + return config . getUsername ( ) == null && usedUsername == null + && ! config . allowNullOrEmptyUsername ; }...
Fix SASL EXTERNAL with client cert provided JID
<nb> public class MessageStream public MessageStream ( final int minSize , final int maxSize , final boolean verifiable , final InputStream inputStream ) throws Exception { - if ( this . inputStream == null ) + if ( inputStream == null ) { SINGLE this . inputStream = new RandomInputStream ( ) ;
Fixed bug where a random InputStream was always used instead of possibly a given InputStream
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ObjectWriter } public boolean canSerialize ( Class < ? > type ) { - return _serializerProvider ( _config ) . hasSerializerFor ( type ) ; ...
Fixing a ref to deprecated method
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
remove unresolved import
<nb> public class UserManager { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public String getBadgedLabelForUser ( String label , UserHandle user ) { - return ( String ) getBadgedLabelForUser ( ( CharSequence ) label , user ) ; - } - - COMMENT COMMENT COMMENT COMMENT
Remove String version of getBadgedLabel
<nb> public class WallpaperCropActivity extends Activity { getWindowManager ( ) ) ; SINGLE RectF cropRect = mCropView . getCrop ( ) ; + + SINGLE + SINGLE + cropRect . left = Math . max ( NUMBER0 , cropRect . left ) ; + cropRect . right = Math . min ( mCropView . getWidth ( ) , cropRect . right ) ; + c...
DO NOT MERGE Fixed crash for odd image width height
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class LombokConfiguration { private static final ConfigurationResolver NULL_RESOLVER = new ConfigurationResolver ( ) { - @ override public < T > T res...
lombok disableConfig would cause NPEs here and there because we returned null instead of an empty list for listy keys
<nb> public class HelpActivity extends OsmandActionBarActivity { public static final int DIALOG = NUMBER0 ; final static HelpMenuCategory [ ] categories = HelpMenuCategory . values ( ) ; public static final String OSMAND_POLL_HTML = STRING0 ; - public static final String OSMAND_MAP_LEGEND = STRING1 ; + SINGLE...
remove obsolete constant
<nb> public class MountServiceIdler extends JobService { private static Calendar tomorrowMidnight ( ) { Calendar calendar = Calendar . getInstance ( ) ; calendar . setTimeInMillis ( System . currentTimeMillis ( ) ) ; - calendar . set ( Calendar . HOUR , NUMBER0 ) ; + calendar . set ( Calendar . HOUR_OF_DAY , ...
Midnight should mean midnight
<nb> import NAMESPACE ; import 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 static NAMESPACE ; <...
Removed a sys out
<nb> public class FeatureUsageTrackerImpl extends FeatureUsageTracker implements Pers for ( Object aFeaturesList : featuresList ) { Element featureElement = ( Element ) aFeaturesList ; FeatureDescriptor descriptor = - ( ( ProductivityFeaturesRegistryImpl ) myRegistry ) . getFeatureDescriptorEx ( featureElement ...
FeaturesUsageTrackerImpl loads features from plugins too
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class CdiTaskListener implements TaskListener , Serializable { } protected BusinessProcessEvent createEvent ( DelegateTask task ) { - String processDefinit...
Optimize CdiTaskListener to get ProcessDefinition from cache and not
<nb> public abstract class ConnectionProxy implements IHikariConnectionProxy creationTime = lastAccess = System . currentTimeMillis ( ) ; openStatements = new FastStatementList ( ) ; + isTransactionIsolationDirty = true ; } public final void unregisterStatement ( Object statement )
Conditionally reset the transaction isolation level based on whether the user has altered it or not
<nb> public class ActorApi { if ( request == null ) { throw new RuntimeException ( STRING0 ) ; } + + SINGLE + request . toByteArray ( ) ; + this . apiBroker . send ( new ApiBroker . PerformRequest ( request , callback ) ) ; } <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; impo...
Checking request object return peer object in joinGroupViaLink
<nb> public class LineWidget extends JavaScriptObject public native final int getRow ( ) COMMENT COMMENT COMMENT ; + + public native final String getHtml ( ) COMMENT + COMMENT + COMMENT ; public native final Element getElement ( ) / * - { return this . el ;
add getHtml accessor to LineWidget
<nb> public abstract class SimpleHttpClient { private String responseBody ; private List < String > bodyUriElements = null ; - protected void setPort ( int thePort ) { + public void setPort ( int thePort ) { port = thePort ; }
Make this public to expand how the class can be used for unit tests
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ ignore ( STRING0 ) public class DnsDigEndpointTest extends CamelTestSupport { p...
Ignore the DnsDigEndpointTest as the out side service is broken
<nb> public class NonBlockingHashMap < TypeK , TypeV > SINGLE SINGLE if ( ( int ) len != len ) { - len = ( NUMBER0 < < NUMBER1 ) + NUMBER2 ; - if ( newsz > ( ( len > > NUMBER2 ) + ( len > > NUMBER3 ) ) ) throw new RuntimeException ( STRING0 ) ; + log2 = NUMBER1 ; + len = ( NUMBER0 < < log2 ) + NUMBER2 ; ...
adjust NBHM OOM heuristic again
<nb> public final class MoreObjects { COMMENT public static final class ToStringHelper { private final String className ; - private ValueHolder holderHead = new ValueHolder ( ) ; + private final ValueHolder holderHead = new ValueHolder ( ) ; private ValueHolder holderTail = holderHead ; private boolean om...
Make effectively final fields final
<nb> public class ConnectionTest extends Assert { client . setTimeoutInfinite ( ) ; } + @ test + public void checkCloseable ( ) { + client . setHost ( STRING0 ) ; + client . setPort ( NUMBER0 ) ; + client . connect ( ) ; + client . close ( ) ; + } } <nb> import NAMESPACE ; import NAMESPACE ;...
Add unit tests to Closeable
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class SimpleLanguage extends SimpleLanguageSupport { return ExpressionBuilder . outBodyExpression ( ) ; } else if ( ObjectHelper . equal ( expression , STRING0 ) ) { return ExpressionBuilder . messageIdEx...
Added exchangeId to simple language
<nb> public final class Fixture { } public static boolean serverVersionAtLeast ( final List < Integer > versionArray ) { - return getCluster ( ) . getDescription ( ) . getPrimaries ( ) . get ( NUMBER0 ) . getVersion ( ) . compareTo ( new ServerVersion ( versionArray ) ) >= NUMBER0 ; + return getCluster ( ) . ...
Fixing serverVersionAtLeast to consider any server not just a primary