diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> package NAMESPACE ; import NAMESPACE ; public class SubVersionMatcher implements VersionMatcher { - public String getName ( ) { - return STRING0 ; - } - public boolean isDynamic ( String version ) { return version . endsWith ( STRING1 ) ; }
removed obsolete method
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WsTester { throw new IllegalStateException ( STRING0 + path ) ; } String json = outputAsString ( ) ; - System . out . println ( STRING1 + json ) ; JSONAsse...
fix quality flaw System out
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SpringConfig { Bean localSessionFactoryBean = SpringConfigUtils . createSingletonBean ( ConfigurableLocalsSessionFactoryBean . class ) ; localSessionFactoryBean . setPro...
added check for hibernate cfg xml for configuring hibernate mapped java classes
<nb> public abstract class TypeComparator < T > { public abstract int getNormalizeKeyLen ( ) ; COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public abstract boolean isNormalizedKeyPrefixOnly ( int keyBytes ) ; <nb> public fina...
Fixes a bug when using Double types as sorting key
<nb> class AlarmManagerService extends SystemService { if ( mAlarmBatches . size ( ) > NUMBER0 ) { final Batch firstWakeup = findFirstWakeupBatchLocked ( ) ; final Batch firstBatch = mAlarmBatches . get ( NUMBER0 ) ; - if ( firstWakeup != null && mNextWakeup != firstWakeup . start ) { + SINGLE + if ( firstW...
Always re establish kernel alarms when considering new alarm set
<nb> public final class JsonJournalFormatter implements JournalFormatter { entry . getByteBuffer ( STRING0 ) ) ; } default : - throw new IOException ( ExceptionMessage . UNKNOWN_ENTRY_TYPE . getMessage ( entry . mType ) ) ; + throw new IOException ( STRING1 + entry . mType ) ; } } <nb> public class Ra...
Made UNKNOWN_ENTRY_TYPE message more specific
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AntBuildModelImpl implements AntBuildModelBase { public String getDefaultTargetName ( ) { final AntDomProject antDomProject = getAntProject ( ...
do not build ant DOM in swing thread
<nb> public class Env extends Iced { _ary [ _sp ] = global . subRef ( _ary [ _sp ] , _key [ _sp ] ) ; assert _sp == NUMBER0 || _ary [ NUMBER0 ] == null || check_refcnt ( _ary [ NUMBER0 ] . anyVec ( ) ) ; } + public void popUncheck ( ) { + _sp -- ; + _fcn [ _sp ] = subRef ( _fcn [ _sp ] ) ; + _ary [ _sp ] ...
env remove uses unchecked pop
<nb> public class UpdateHighlightersUtil { } for ( HighlightInfo info : highlightsToRemove ) { - HighlightInfo previous = infosToRemove . put ( info , info ) ; - assert previous == null : STRING0 + previous + STRING1 + previous . highlighter + STRING2 + info + STRING1 + info . highlighter ; + infosToRemove ...
small fix removed assertion
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ExopackageInstaller { } } } finally { - device . removeForward ( agentPort , agentPort ) ; + try { + device . removeForward ( agentPort , agentPort ) ; + } catch ( AdbCo...
Give a nice warning if removeForward fails in exopackage installation
<nb> public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal mPrivateFlags |= FORCE_LAYOUT ; mPrivateFlags |= INVALIDATED ; - if ( mParent != null ) { - if ( mLayoutParams != null ) { - mLayoutParams . onResolveLayoutDirection ( getResolvedLayoutDirection ( ) ) ; - } - i...
Fix layout params resolution
<nb> public class AdditionalAnswers { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed javadoc for AdditionalAnswers
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; public class AuditedInvoiceDao implements InvoiceDao { <nb> public class AuditedInvoiceDao implements InvoiceDao { SINGLE BigDecimal positiveCBAAdjItemAmount = BigDecimal . ZERO ;...
fix bug in deleteCBA method
<nb> public class SubqueryTest extends FlowTestCase { assertEquals ( STRING0 , query . trim ( ) ) ; + + query = new Select ( ) + . from ( BoxedModel . class ) + . where ( Condition . column ( BoxedModel$Table . INTEGERFIELD ) + . operation ( Condition . Operation . GREATER_THAN ) + . subQuery ( + ne...
added much more complicated query
<nb> public class IOSApplication implements Application { File libraryPath = new File ( System . getenv ( STRING0 ) , STRING1 ) ; File finalPath = new File ( libraryPath , name + STRING2 ) ; - @ suppresswarnings ( STRING3 ) NSMutableDictionary < NSString , NSObject > nsDictionary = ( NSMutableDictionary < NSStr...
Fix Inline annotation ew
<nb> package NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import NAMESPACE ; <nb> public class ResourceTests { catch ( FileNotFoundException ex ) { assertTrue ( ex . getMessage ( ) . indexOf ( name ) != - NUMBER0 ) ; } - try { - resource . getFilename ( ) ; - fail ( STRI...
Fix false negative test failure in ResourceTests
<nb> public class BridgePackageManager extends PackageManager { } @ override + public Drawable getUserBadgeForDensityNoBackground ( UserHandle user , int density ) { + return null ; + } + + @ override public CharSequence getUserBadgedLabel ( CharSequence label , UserHandle user ) { return null ; }
Fix build by adding missing method
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class XFramesView implements XDebugView { SINGLE myThreadComboBox . setRenderer ( new ThreadComboBoxRenderer ( myThreadComboBox )...
added debugger execution stacks threads combo speedsearch
<nb> public class FirebirdTemplates extends SQLTemplates { add ( Ops . DateTimeOps . DIFF_MINUTES , STRING0 ) ; add ( Ops . DateTimeOps . DIFF_SECONDS , STRING1 ) ; + addTypeNameToCode ( STRING2 , Types . BOOLEAN , true ) ; addTypeNameToCode ( STRING2 , Types . BIT , true ) ; addTypeNameToCode ( STRING2 , T...
Fix Boolean mapping
<nb> public class SingleByteStreamSourceConduit extends AbstractStreamSourceConduit < S @ override public int read ( ByteBuffer dst ) throws IOException { - if ( state > singleByteReads ) { + if ( state > singleByteReads || dst . remaining ( ) == NUMBER0 ) { + SINGLE return next . read ( dst ) ; }
Fix issue with renegotiation when running single byte tests
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Add License Header
<nb> public final class RegisteredServiceSimpleFormController extends SimpleFormContr final IPersonAttributeDao attributeRepository ) { this . servicesManager = servicesManager ; this . personAttributeDao = attributeRepository ; + this . setCommandClass ( RegisteredServiceImpl . class ) ; } COMMENT <nb>...
Utilize the underlying createCommand method
<nb> public class DeterministicKey extends ECKey { COMMENT COMMENT COMMENT - private DeterministicKey ( ImmutableList < ChildNumber > childNumberPath , + public DeterministicKey ( ImmutableList < ChildNumber > childNumberPath , byte [ ] chainCode , LazyECPoint publicAsPoint , @ nullable DeterministicKey...
Expose the DeterministicKey ctors used by serialisation
<nb> public abstract class Parseable implements ConfigParseable { } else { trace ( STRING0 + origin . description ( ) + STRING1 + e . getClass ( ) . getName ( ) + STRING1 + e . getMessage ( ) ) ; - throw new ConfigException . IO ( origin , e . getMessage ( ) , e ) ; + throw new ConfigException . IO ( origin ,...
on throwing ConfigException IO include class name of the original exception
<nb> public class LwjglGraphics extends BaseLwjglSubsystem { try { - switch ( config . getDisplayModeSetting ( ) ) { - case FULLSCREEN : - lwjglDisplay . setDisplayModeSetting ( DisplayModeSetting . FULLSCREEN , false ) ; - break ; - case WINDOWED_FULLSCREEN : - lwjglDisplay . setDisplayModeSetting ( ...
Added javadoc for DisplayModeSetting enum
<nb> public class ShadowTransformer implements ViewPager . OnPageChangeListener , ViewPa CardView nextCard = mAdapter . getCardViewAt ( nextPosition ) ; SINGLE - SINGLE + SINGLE if ( nextCard != null ) { nextCard . setCardElevation ( ( baseElevation + baseElevation COMMENT
Add explanation for null check
<nb> public abstract class DefaultAppCore { jtxAnnotations = new Class [ ] { Transaction . class , ReadWriteTransaction . class } ; } - if ( jtxContextPattern == null ) { - jtxContextPattern = STRING0 ; + if ( jtxScopePattern == null ) { + jtxScopePattern = STRING0 ; } if ( appDir == null ) { <nb>...
renamed jtx context to jtx scope
<nb> public abstract class KeyInputQueue { SINGLE SINGLE SINGLE + int num = ms . mNextNumPointers ; + if ( num > InputDevice . MAX_POINTERS ) { + num = InputDevice . MAX_POINTERS ; + } System . arraycopy ( ms . mNextData , NUMBER0 , ms . mLastData , NUMBER0 , - ms . mNextNumPointers - COMMENT - ...
Cannot unlock the device by swiping
<nb> public class Tag implements Parcelable { case TagTechnology . NFC_V : { return new NfcV ( adapter , this , extras ) ; } + case TagTechnology . MIFARE_CLASSIC_NDEF : case TagTechnology . TYPE_1 : case TagTechnology . TYPE_2 : case TagTechnology . TYPE_3 :
Added missing ndef technology to getTech
<nb> public final class Settings { SCREEN_BRIGHTNESS_MODE , SCREEN_AUTO_BRIGHTNESS_ADJ , VIBRATE_INPUT_DEVICES , - MODE_RINGER , SINGLE MODE_RINGER_STREAMS_AFFECTED , - MUTE_STREAMS_AFFECTED , VOLUME_VOICE , VOLUME_SYSTEM , VOLUME_RING , <nb> public final class Settings { public static final Strin...
Don t backup restore ringer mode
<nb> public class GroovyClassLoader extends SecureClassLoader { COMMENT COMMENT public Class defineClass ( String name , byte [ ] b ) { - return super . defineClass ( name , b , NUMBER0 , b . length ) ; + Class c = super . defineClass ( name , b , NUMBER0 , b . length ) ; + synchronized ( cache ) { + cach...
enables a former not defined class to be found now
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; public class BaseAuthenticatedController extends AuthenticatedController { - private static final Logger log = LoggerFactory . getLogger ( BaseAuthenticatedController . class ) ; - private ApiCli...
remove log statement
<nb> public class TokenBasedRememberMeServices extends AbstractRememberMeServices { SINGLE SINGLE - if ( ! StringUtils . hasLength ( username ) || ! StringUtils . hasLength ( password ) ) { + if ( ! StringUtils . hasLength ( username ) ) { + logger . debug ( STRING0 ) ; return ; } + if ( ! StringUti...
Change TokenBasedRememberMeServices to obtain password from UserDetailsService if necessary
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class WebInterfaceGeneralServlet extends HttpServlet { private static final long serialVersionUID = NUMBER0 ; private final transient Alluxi...
Fix general servlet
<nb> public class MockOperationSetBasicTelephony { Call newCall = createCall ( toAddress ) ; fireCallEvent ( CallEvent . CALL_INITIATED , newCall ) ; + + SINGLE + MockCallParticipant callPArt = + ( MockCallParticipant ) newCall . getCallParticipants ( ) . next ( ) ; + + callPArt . setState ( CallParti...
Setting states or participants when placing mock call
<nb> public class CommentActionResult { public long getCommentID ( ) { return mCommentID ; } public String getMessage ( ) { return mMessage ; } public boolean isSuccess ( ) { return mCommentID != COMMENT_ID_ON_ERRORS ; } - } + }
Add new line at the end of file
<nb> public class LockSettingsService extends ILockSettings . Stub { showEncryptionNotification ( userHandle ) ; } else { UserInfo parent = mUserManager . getProfileParent ( user . id ) ; - if ( parent != null && mUserManager . isUserUnlocked ( parent . getUserHandle ( ) ) ) { + if ( parent != null && + mUs...
Don t show the unlock notification when Work mode is off
<nb> public final class TrelloRepository extends BaseRepositoryImpl { else { throw new IllegalStateException ( STRING0 ) ; } - String allCardsUrl = baseUrl + STRING1 ; + String allCardsUrl = baseUrl + STRING2 ; List < TrelloCard > cards = makeRequestAndDeserializeJsonResponse ( allCardsUrl , TrelloUtil . LI...
Exclude comment actions from query to reduce size of responses in Trello
<nb> public class PopupWindow { @ override public boolean dispatchKeyEvent ( KeyEvent event ) { if ( event . getKeyCode ( ) == KeyEvent . KEYCODE_BACK ) { + if ( getKeyDispatcherState ( ) == null ) { + return super . dispatchKeyEvent ( event ) ; + } + if ( event . getAction ( ) == KeyEvent . ACTION_DOWN...
Added null check on return value for getKeyDispatcherState
<nb> public class Material implements Asset , Cloneable , Savable , Comparable < Material > return m . getSortId ( ) - getSortId ( ) ; } + @ override + public boolean equals ( Object obj ) { + if ( obj instanceof Material ) { + return ( ( Material ) obj ) . compareTo ( this ) == NUMBER0 ; + } + return...
remove unneeded instanceof and casting in Material
<nb> public class RedissonMapCacheReactiveTest extends BaseReactiveTest { @ test public void testEmptyRemove ( ) { RMapCacheReactive < Integer , Integer > map = redisson . getMapCache ( STRING0 ) ; - assertThat ( sync ( map . remove ( NUMBER0 , NUMBER1 ) ) ) . isEqualTo ( NUMBER2 ) ; + assertThat ( sync ( map...
fixed a test bug
<nb> public enum JingleAction COMMENT COMMENT COMMENT - REMOVESOURCE ( STRING0 ) ; + REMOVESOURCE ( STRING0 ) , + + COMMENT + COMMENT + COMMENT + SOURCEADD ( STRING1 ) , + + COMMENT + COMMENT + COMMENT + SOURCEREMOVE ( STRING2 ) ; COMMENT COMMENT
Adds the new jingle actions from Jitsi Meet
<nb> public class ExecOutputHandleRunner implements Runnable { LOGGER . error ( String . format ( STRING0 , displayName ) , t ) ; } } + + @ override + public String toString ( ) { + return displayName ; + } }
Added toString to help debugging
<nb> public class ShardedDistributedMessageQueue implements MessageQueue { } @ override - public Map < String , MessageQueueShardStats > getShardStats ( ) { + public Map < String , MessageQueueShardStats > getShardStats ( ) { return shardReaderPolicy . getShardStats ( ) ; } + + public ShardReaderPolic...
Expose the shard reader policy
<nb> public class State implements Scored { result . append ( STRING0 + ( ( finished ) ? STRING1 : STRING2 ) + STRING3 ) ; return result . toString ( ) ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public boolean areTransitionsEqual ( State other ) { + return tr...
Add a method to check whether transition sequences are equal
<nb> public class MapRenderRepositories { Bitmap reuse = prevBmp ; this . prevBmp = this . bmp ; this . prevBmpLocation = this . bmpLocation ; - this . checkedRenderedState = renderedState ; - this . checkedBox = this . bmpLocation ; if ( reuse != null && reuse . getWidth ( ) == currentRenderingContext . wi...
Download layer fix button download
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class GoEventsConverterTestCase extends GoCodeInsightFixtureTest ( GoTestEventsConverterBase ) consoleProperties . createTestEventsConverter ...
Load expected file in UTF
<nb> public class TagVLiteralOrFilter extends TagVFilter { COMMENT public static String description ( ) { return STRING0 - + STRING1 + + STRING2 + STRING3 + STRING4 ; } <nb> public class TagVLiteralOrFilter extends TagVFilter { COMMENT public static String description ( ) { return STRING0 - + ...
Fixed typos in api config filters
<nb> public class AboutWindow STRING0 ) ; private JTextArea logoArea - = new JTextArea ( STRING1 ) ; + = new JTextArea ( STRING2 ) ; private JEditorPane rightsArea = new JEditorPane ( ) ;
Change slogan to title case
<nb> public class ExecutionCacheManager implements ExecutionCacheFlushObserver public Task < Void > flush ( Actor actor ) { ActorReference actorReference = ( ActorReference ) actor ; + Class interfaceClass = ActorReference . getInterfaceClass ( actorReference ) ; - masterCache . asMap ( ) . values ( ) . str...
Added cache flushing optimization
<nb> public class ReaderPostListFragment extends Fragment @ override protected ReaderTagList doInBackground ( Void . . . voids ) { ReaderTagList tagList = ReaderTagTable . getDefaultTags ( ) ; + tagList . addAll ( ReaderTagTable . getCustomListTags ( ) ) ; tagList . addAll ( ReaderTagTable . getFollowedTags (...
Add custom lists to the reader tag menu
<nb> public class BrandingActivator else welcomeWindow = null ; - SINGLE - SINGLE - SINGLE - SINGLE + if ( getResources ( ) . getSettingsString ( + STRING0 ) . equals ( STRING1 ) ) + new JitsiWarningWindow ( null ) . setVisible ( true ) ; bundleContext . addBundleListener ( new BundleListener ( ...
Activate warning window before application rename
<nb> public class RubberIndicator extends RelativeLayout { protected void onLayout ( boolean changed , int l , int t , int r , int b ) { super . onLayout ( changed , l , t , r , b ) ; - mOuterCircle . setCenter ( mLargeCircle . getCenter ( ) ) ; + SINGLE + if ( mLargeCircle != null ) { + mOuterCircle . se...
Prevent crash if no LargeCicle onLayout
<nb> public class DhcpClient extends StateMachine { mInterfaceBroadcastAddr = new PacketSocketAddress ( mIface . getIndex ( ) , DhcpPacket . ETHER_BROADCAST ) ; return true ; - } catch ( SocketException e ) { - Log . wtf ( TAG , STRING0 + mIfaceName ) ; + } catch ( SocketException | NullPointerException e )...
catch some errors and better logging
<nb> public interface SubscriptionListener COMMENT public void subscriptionResolved ( SubscriptionEvent evt ) ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void contactModified ( ContactPropertyChangeEvent evt ) ; }
Added a contactModified method in order to give contacts the possibility to notify listeners when changing state
<nb> public final class BluetoothDeviceProfileState extends HierarchicalStateMachine newState == BluetoothA2dp . STATE_DISCONNECTED ) { sendMessage ( TRANSITION_TO_STABLE ) ; } - } else if ( action . equals ( BluetoothDevice . ACTION_ACL_CONNECTED ) ) { - Message msg = new Message ( ) ; - msg . what = AUTO_...
Remove auto connection on ACL connection
<nb> public enum OGlobalConfiguration { FILE_DELETE_RETRY ( STRING0 , STRING1 , Integer . class , NUMBER0 ) , - JNA_DISABLE_USE_SYSTEM_LIBRARY ( STRING2 , - STRING3 , - boolean . class , true ) , - SINGLE SECURITY_USER_PASSWORD_SALT_ITERATIONS ( STRING4 , STRING5 , <nb> public enum OGlobalConfigur...
Deprecated JNA setting
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class ConvertBodyTest extends ContextTestSupport { <nb> public class ConvertBodyTes...
Fixed unit test
<nb> public final class QuasarInstrumentor { } public byte [ ] instrumentClass ( String className , byte [ ] data ) { + className = className . replace ( STRING0 , STRING1 ) ; return shouldInstrument ( className ) ? instrumentClass ( className , new ClassReader ( data ) ) : data ; }
Fix instrumentor bug
<nb> public final class MediaBrowserCompat { COMMENT COMMENT COMMENT - public static class SubscriptionCallbackApi21 extends SubscriptionCallback { + static class SubscriptionCallbackApi21 extends SubscriptionCallback { SubscriptionCallback mSubscriptionCallback ; private final Object mSubscriptionCallbac...
Make an internal class package private cherry pick to master to unblock all
<nb> public class BacklogDebugger extends ServiceSupport implements InterceptStrategy return new LinkedHashSet < String > ( suspendedBreakpoints . keySet ( ) ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public Exchange getSuspendedExchange ( String id ) { + SuspendedExchange...
provide access to suspended exchanges in BacklogDebugger
<nb> public class BeanInvocationThrowsExceptionTest extends ContextTestSupport { } } } - SINGLE + SINGLE }
Adding sample code to FAQ for how to retrive a thrown exception send from CamelTemplate
<nb> public class JavaWriter implements Closeable { return isCompressingTypes ; } - public void setIndent ( int indent ) { - this . indent = new String ( new char [ indent ] ) . replace ( STRING0 , STRING1 ) ; + public void setIndent ( String indent ) { + this . indent = indent ; } - public int getI...
Changed indent to take a String instead of an int
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class SourcesOrderRootTypeUIFactory implements OrderRootTypeUIFactory { @ override - public SdkPathEditor...
find java source roots in new source path only for java sdk
<nb> public final class ActivityStackSupervisor implements DisplayListener { private int getComponentRestrictionForCallingPackage ( ActivityInfo activityInfo , String callingPackage , int callingPid , int callingUid , boolean ignoreTargetSecurity ) { - if ( activityInfo . permission == null ) { - return ACTIV...
Check component permissions like exported before assigned permissions
<nb> public class RowsDnDSupport { @ override public boolean update ( DnDEvent event ) { final Object o = event . getAttachedObject ( ) ; - event . setDropPossible ( o instanceof RowDragInfo && ( ( RowDragInfo ) o ) . component == component ) ; + if ( ! ( o instanceof RowDragInfo ) || ( ( RowDragInfo ) o ) . ...
Drag and Drop preview shows that it is possible to drop lists to actions and vice versa
<nb> public class DefaultGroovyMethods { public static ClassLoader getRootLoader ( ClassLoader self ) { while ( true ) { if ( self == null ) return null ; - if ( self . getClass ( ) . getName ( ) . equals ( RootLoader . class . getName ( ) ) ) return self ; + if ( isRootLoaderClassOrSubClass ( self ) ) return...
commited fix for NoClassDefFoundError looks up rootloader even if subclasses
<nb> public class GraphPath { editor . setFromState ( orig ) ; editor . incrementTimeInSeconds ( orig . getAbsTimeDeltaSec ( ) ) ; editor . incrementWeight ( orig . getWeightDelta ( ) ) ; + if ( orig . isBikeRenting ( ) != orig . getBackState ( ) . isBikeRenting ( ) ) + editor . setBikeRenting ( ! orig . isBi...
Properly handle path reverse
<nb> public class EditSession implements Extent { if ( world != null ) { Extent extent ; - SINGLE + SINGLE extent = fastModeExtent = new FastModeExtent ( world , false ) ; extent = survivalExtent = new SurvivalModeExtent ( extent , world ) ; extent = quirkExtent = new BlockQuirkExtent ( extent , world )...
Fix a typo in EditSession java
<nb> public class PluginXmlDomFileDescription extends DomFileDescription < IdeaPlugin > @ override public int getStubVersion ( ) { - return NUMBER0 ; + return NUMBER1 ; } } <nb> public abstract class DomExtender < T extends DomElement > { COMMENT COMMENT COMMENT + COMMENT COMMENT public bool...
exclude some dom extenders from stub building
<nb> 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 ; import NAMESPACE ;
fix up CS error
<nb> public class AzureBlobContainer extends AbstractBlobContainer { logger . trace ( STRING0 , blobName ) ; if ( ! blobExists ( blobName ) ) { - throw new IOException ( STRING1 + blobName + STRING2 ) ; + throw new NoSuchFileException ( STRING1 + blobName + STRING2 ) ; } try {
AzureBlobContainer s deleteBlob method now throws a NoSuchFileException
<nb> public class EnumUtils { String unifName = name . toUpperCase ( ) . replaceAll ( STRING0 , STRING1 ) ; value = map . get ( unifName ) ; SINGLE - map . put ( name , value ) ; + if ( value != null ) + map . put ( name , value ) ; } if ( value == null )
If retrieving a bad constant from Enum throw IllegalArgumentException instead of NullPointerException
<nb> class TerminalEmulator { if ( ( b & NUMBER0 ) == NUMBER0 && ( b & NUMBER1 ) <= NUMBER2 ) { COMMENT COMMENT - startEscapeSequence ( ESC ) ; + process ( ( byte ) NUMBER3 , false ) ; process ( ( byte ) ( ( b & NUMBER1 ) + NUMBER4 ) , false ) ; return ; } <nb> class TerminalEmulator { break ; c...
Fix terminal emulation bugs affecting window title setting
<nb> public class TestViewFsFileStatusHdfs { long len = FileSystemTestHelper . createFile ( fHdfs , testfilename ) ; - Configuration conf = ViewFileSystemTestSetup . configWithViewfsScheme ( ) ; + Configuration conf = ViewFileSystemTestSetup . createConfig ( ) ; ConfigUtil . addLink ( conf , STRING0 , new U...
Fix TestViewFsFileStatusHdfs per previous commit
<nb> public final class ImageLoader { } boolean isConsistent ( ) { - Log . i ( TAG , STRING0 + url . equals ( imageView . getTag ( Constants . TAG_KEY ) ) ) ; return url . equals ( imageView . getTag ( Constants . TAG_KEY ) ) ; } }
Removed unnecessary logging
<nb> import NAMESPACE ; public abstract class AbstractBounds implements Serializable { + private static final long serialVersionUID = NUMBER0 ; private static AbstractBoundsSerializer serializer = new AbstractBoundsSerializer ( ) ; public static ICompactSerializer2 < AbstractBounds > serializer ( )
assign a serialVersionUID
<nb> public class RouterActor extends ModuleActor { Message head = conversation ( peer ) . getHeadValue ( ) ; - return getDialogsRouter ( ) . onMessageDeleted ( peer , head . getMessageState ( ) == MessageState . PENDING ? null : head ) ; + if ( head != null && head . getMessageState ( ) == MessageState . PEN...
Fixing actor crashing on last message deletion
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class Exec extends Request { <nb> public class Exec extends Request { Response r = new Inspect ( k ) . serveValueArray ( va ) ; if ( _safe . value (...
Do not log other kinds of Exec typo s
<nb> public final class LineageMaster extends MasterBase { COMMENT COMMENT COMMENT - public synchronized LineageStoreView getLineageStoreView ( ) { + public LineageStoreView getLineageStoreView ( ) { return new LineageStoreView ( mLineageStore ) ; } <nb> public final class LineageMaster extends Master...
Addressing review comments
<nb> public abstract class MediaCodecTrackRenderer extends TrackRenderer { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT protected void configureCodec ( MediaCodec codec , String codecName , android . media . MediaFormat format , MediaCrypto crypto ) {
Add JavaDoc to remove lint warning about unused variable
<nb> public class SecretDAO { public void deleteSecretsByName ( String name ) { checkArgument ( ! name . isEmpty ( ) ) ; - dslContext . transaction ( configuration - > { - SecretSeriesDAO secretSeriesDAO = secretSeriesDAOFactory . using ( configuration ) ; - secretSeriesDAO . deleteSecretSeriesByName ( name...
Remove useless transaction
<nb> public abstract class MasterDetailsComponent implements Configurable , JDOMExtern public void run ( ) { MyNode node = ( MyNode ) myTree . getSelectionPath ( ) . getLastPathComponent ( ) ; if ( node != null ) { + myLastEditedConfigurable = node . getDisplayName ( ) ; SINGLE ( ( DefaultTreeModel ) myTree ....
do not loose selection after apply
<nb> public class UserSearchBean implements InitializingBean { } SearchResult searchResult = ( SearchResult ) enm . next ( ) ; UserSearchResults userSearchResults = new UserSearchResults ( searchResult ) ; + userSearchResults . setUserSearchBean ( this ) ; String userDN = searchResult . getName ( ) ; if (...
Call setUserSearchBean this so that returned UserSearchResults have reference to the search information used to construct them
<nb> public class HdfsFileInputStream extends InputStream implements Seekable , Positi if ( mStatistics != null ) { mStatistics . incrementBytesRead ( NUMBER0 ) ; } + mCurrentPosition ++ ; return BufferUtils . byteToInt ( mBuffer [ mBufferPosition ++ ] ) ; } LOG . error ( STRING0 ) ; <nb> public class H...
Keep track of mCurrentPosition
<nb> public class TwoWayView extends AdapterView < ListAdapter > { lp = generateLayoutParams ( lp ) ; } - lp . position = position ; lp . id = mAdapter . getItemId ( position ) ; lp . viewType = mAdapter . getItemViewType ( position ) ; <nb> public class TwoWayView extends AdapterView < ListAdapter > { ...
library Remove unnecessary position attribute from LayoutParams
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PyReferenceImpl implements PsiReferenceEx , PsiPolyVariantReference definers = processor . getDefiners ( ) ; } } - else...
Removed unnecessary Cython check
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Utils { . connectString ( zkStr ) . connectionTimeoutMs ( Utils . getInt ( conf . get ( Config . STO...
use exponential backoff retry policy
<nb> import NAMESPACE ; import NAMESPACE ; @ suppresswarnings ( STRING0 ) - public final class SecurityExpressionRootPropertyAccessor implements PropertyAccessor { + final class SecurityExpressionRootPropertyAccessor implements PropertyAccessor { public final Class [ ] CLASSES = { SecurityExpressionRoot . c...
Made SecurityExpressionRootPropertyAccessor a package private class as it is no longer referenced from multiple packages
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IndexShardGatewayService extends AbstractIndexShardComponent implem logger . debug ( sb . toString ( ) ) ; } } - } catc...
ignore failed snapshot on a non started index
<nb> public final class ZipUtils { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT @ deprecated public static File unzipToTempDir ( File zip ) throws IOException {
Fix comment in ZipUtils
<nb> public class SerializerPojo extends SerializerBase implements Serializable { static protected Object sunReflFac = null ; static protected Method androidConstructor = null ; static private Method androidConstructorGinger = null ; - static private int constructorId ; + static private Object constructorId ;...
fixed serializer for newer android versions
<nb> public class IOSApplication extends UIApplicationDelegate implements Application return new IOSPreferences ( nsDictionary , finalPath ) ; } - private String stringByAppendingPathComponent ( String path ) { - SINGLE - SINGLE - SINGLE - String pathSeparator = STRING0 ; - if ( path . endsWith ( path...
removed unused method from IOSApplication
<nb> public class FancyButton extends LinearLayout { private int mDefaultTextColor = Color . WHITE ; private int mDefaultIconColor = Color . WHITE ; private int mTextPosition = NUMBER0 ; - private int mDefaultTextSize = Utils . DptoPx ( getContext ( ) , NUMBER1 ) ; + private int mDefaultTextSize = Utils . DpT...
rename DptoPx to DpToPx
<nb> public class StopTransfer implements Serializable { COMMENT COMMENT COMMENT + @ deprecated public int getUnspecificTransferTime ( ) { SINGLE int transferTime = UNKNOWN_TRANSFER ; <nb> public class TransferTable implements Serializable { COMMENT COMMENT COMMENT + @ deprecated public static...
Make functions that were created to be backwards compatible with some
<nb> public class AddTask extends SherlockActivity { textInputField . setSelection ( textInputField . getText ( ) . toString ( ) . length ( ) ) ; + textInputField . requestFocus ( ) ; } private void showProjectMenu ( ) {
Give focus to text input in AddTask activity
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CollectionElementConversionTest extends BaseNonConfigCoreFunctional @ id private Integer id ; @ elementcollection +...
Fix more DB reserved words used by tests
<nb> public final class ThriftKeyspaceImpl implements Keyspace { if ( dc != null && ! ed . getDatacenter ( ) . equals ( dc ) ) { continue ; } - else if ( rack != null && ! ed . getRack ( ) . equals ( dc ) ) { + else if ( rack != null && ! ed . getRack ( ) . equals ( rack ) ) { continue ; } else {
Fixed rack equality check in describeRing
<nb> class FrameLoader { return false ; } mNetwork = Network . getInstance ( mListener . getContext ( ) ) ; - WebViewWorker . getHandler ( ) . obtainMessage ( - WebViewWorker . MSG_ADD_HTTPLOADER , this ) . sendToTarget ( ) ; + if ( mListener . isSynchronous ( ) ) { + handleHTTPLoad ( ) ; + } else { +...
Start the synchronous load in the WebCore thread
<nb> public class GoReference extends PsiPolyVariantReferenceBase < GoReferenceExpressi if ( target instanceof GoTypeOwner ) { GoType type = typeOrParameterType ( ( GoTypeOwner ) target , createContext ( ) ) ; if ( type != null && ! processGoType ( type , processor , state ) ) return false ; - PsiElement parent...
remove unused code