diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public final class BlockMaster extends AbstractMaster implements ContainerIdGene for ( long removedBlockId : removedBlockIds ) { MasterBlockInfo block = mBlocks . get ( removedBlockId ) ; if ( block == null ) { - LOG . warn ( STRING0 + LOG . warn ( STRING1 + STRING2 , workerInfo . getId ( ) , removedBl...
Fix grammar wording
<nb> public class PartitionManager { if ( currentOffset - _committedTo > spoutConfig . maxOffsetBehind || _committedTo <= NUMBER0 ) { LOG . info ( STRING0 + _committedTo ) ; + Long lastCommittedOffset = _committedTo ; _committedTo = currentOffset ; - LOG . info ( STRING1 + _committedTo + STRING2 + - spout...
update PartitionManager java
<nb> public class DB implements Closeable { ( long [ ] ) catGet ( name + STRING0 , null ) , ( long [ ] ) catGet ( name + STRING1 , null ) , valueCreator , - null , + catGet ( name + STRING2 , Hasher . BASIC ) , false ) ;
set correct hasher when open exist hash tree map
<nb> public abstract class AbstractTestQueries STRING0 ) ; } + @ test + public void testSameInputToAggregates ( ) + throws Exception + { + assertQuery ( STRING1 ) ; + } + @ suppresswarnings ( STRING2 ) @ test public void testWindowFunctionsExpressions ( )
Add test for issue with multiple aggregates with common inputs
<nb> public class Utils { dump . append ( STRING0 ) ; dump . append ( threadInfo . getThreadName ( ) ) ; dump . append ( STRING1 ) ; + dump . append ( STRING2 ) ; + dump . append ( threadInfo . getLockName ( ) ) ; + dump . append ( STRING3 ) ; + dump . append ( threadInfo . getLockOwnerName ( ) ) ; fina...
add lock info in thread dump
<nb> public class BreakpointManager implements JDOMExternalizable { public MethodBreakpoint addMethodBreakpoint ( Document document , int lineIndex ) { ApplicationManager . getApplication ( ) . assertIsDispatchThread ( ) ; - ToolWindowManager . getInstance ( myProject ) . notifyByBalloon ( - ToolWindowId . DE...
do not display method breakpoint warning if the breakpoint was not created
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Add excludes to EqualsAndHashCode improve doco
<nb> public final class UndertowSession implements Session { @ override public String getNegotiatedSubprotocol ( ) { - return null ; + return STRING0 ; } @ override
Return the empty string
<nb> public class SavingTrackHelper extends SQLiteOpenHelper { SINGLE long locationTime = System . currentTimeMillis ( ) ; OsmandSettings settings = ctx . getSettings ( ) ; - SINGLE + record = false ; if ( OsmAndLocationProvider . isPointAccurateForRouting ( location ) && OsmAndLocationProvider . isNotSim...
fix small bug
<nb> public class Spinner extends AbsSpinner implements OnClickListener { } public void show ( int textDirection , int textAlignment ) { + if ( mListAdapter == null ) { + return ; + } AlertDialog . Builder builder = new AlertDialog . Builder ( getContext ( ) ) ; if ( mPrompt != null ) { builder . setT...
Don t show spinner popup if adapter is null
<nb> public class RuleBasedCorefMentionFinder implements CorefMentionFinder { SINGLE SINGLE SieveCoreferenceSystem . logger . warning ( STRING0 + - STRING1 + root + STRING2 + + STRING1 + root + STRING2 + STRING3 + token + STRING4 + index + STRING5 + approximateness ) ; for ( Tree leaf : leaves ) { - Cor...
Delete left over code that I added that does nothing any more
<nb> public abstract class IntentionManager { public abstract void registerIntentionAndMetaData ( IntentionAction action , String [ ] category , String descriptionDirectoryName ) ; public abstract void registerIntentionAndMetaData ( IntentionAction action , String [ ] category , String descriptionDirectoryName , ...
integrate string to symbol intention add test
<nb> public enum OConfiguration { DB_USE_CACHE ( STRING0 , false ) , - TREEMAP_LAZY_UPDATES ( STRING1 , NUMBER0 ) , TREEMAP_NODE_PAGE_SIZE ( STRING2 , NUMBER1 ) , TREEMAP_LOAD_FACTOR ( + TREEMAP_LAZY_UPDATES ( STRING1 , NUMBER2 ) , TREEMAP_NODE_PAGE_SIZE ( STRING2 , NUMBER1 ) , TREEMAP_LOAD_FACTOR ( STRING3...
Tuned some configuration parameters
<nb> final class WindowState implements WindowManagerPolicy . WindowState { return mAppToken . shouldSaveSurface ( ) ; } + static final Region sEmptyRegion = new Region ( ) ; + void destroyOrSaveSurface ( ) { mSurfaceSaved = shouldSaveSurface ( ) ; if ( mSurfaceSaved ) { if ( DEBUG_APP_TRANSITIONS || ...
Reset transparent region when saving a surface
<nb> public class PyActiveSdkConfigurable implements UnnamedConfigurable { } } ) ; newSdk = SdkConfigurationUtil . createAndAddSDK ( sdkHome . getPath ( ) , PythonSdkType . getInstance ( ) ) ; + PythonSdkUpdater . getInstance ( ) . markAlreadyUpdated ( sdkHome . getPath ( ) ) ; if ( newSdk != null ) { myPro...
do not run skeleton generation twice for detected sdks
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT public class PlanConfiguration extends Configuration { ...
Added Stratosphere Header to PlanConfiguration
<nb> class BSONObjectEncoder implements Encoder < BSONObject > { encodeArray ( bsonWriter , value ) ; } else if ( value instanceof Symbol ) { bsonWriter . writeSymbol ( ( ( Symbol ) initialValue ) . getSymbol ( ) ) ; + } else if ( value instanceof Character ) { + bsonWriter . writeString ( Character . toStrin...
add rule for encoding Character and final modifier in BSONObjectEncoder
<nb> public class StreamingTexture extends ATexture { private Camera mCamera ; private ISurfaceListener mSurfaceListener ; private SurfaceTexture mSurfaceTexture ; + private Surface mSurface ; SurfaceTexture . OnFrameAvailableListener mOnFrameAvailableListener ; public StreamingTexture ( String textureNam...
Added a method to StreamingTexture that allows you to swap the media player
<nb> public class BasicAuthTest extends AbstractBasicTest { root . addAppender ( new ConsoleAppender ( new PatternLayout ( PatternLayout . TTCC_CONVERSION_PATTERN ) ) ) ; - port1 = NUMBER0 ; + port1 = findFreePort ( ) ; Connector listener = new SelectChannelConnector ( ) ; listener . setHost ( STRING0 )...
Removed hardcoded port
<nb> public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler static { SimpMessageHeaderAccessor headers = SimpMessageHeaderAccessor . create ( SimpMessageType . HEARTBEAT ) ; HEARTBEAT_MESSAGE = MessageBuilder . withPayload ( new byte [ ] { STRING0 } ) . setHeaders ( headers ) . build ( )...
Fix minor issue in STOMP broker relay
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class FileSystemMasterTest { COMMENT @ beforeclass public static void beforeClass ( ) { + MasterContext . reset ( new T...
reset conf at MasterContext
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DefaultJavaCoverageRunner extends Defau...
provide separate ids
<nb> public class SelectBranchPopup { public Component getListCellRendererComponent ( JList list , Object value , int index , boolean isSelected , boolean cellHasFocus ) { if ( isSelected || cellHasFocus ) { setBackground ( UIUtil . getListSelectionBackground ( ) ) ; + final Color selectedForegroundColor = UIUt...
change foreground for RefreshBranches message
<nb> public class ORecordSerializerBinaryV0 implements ODocumentSerializer { @ override public void deserialize ( final ODocument document , final BytesContainer bytes ) { - SINGLE final String className = readString ( bytes ) ; if ( className . length ( ) != NUMBER0 ) <nb> public class ORecordSerialize...
removed reverence to mvrbtree add check that will not used anymore
<nb> final class ObjectSerializer { this . kryo . writeObject ( this . output , object ) ; this . lengthBuf . putInt ( this . output . total ( ) ) ; + this . lengthBuf . flip ( ) ; } void clear ( ) {
Fixed bug in new ObjectSerializer
<nb> public class AtmosphereFramework implements ServletContextProvider { protected void initInterceptors ( ) { for ( AtmosphereInterceptor i : interceptors ) { i . configure ( config ) ; + InjectorProvider . getInjector ( ) . inject ( i ) ; } for ( AtmosphereHandlerWrapper w : atmosphereHandlers . values...
Publish Interceptor to the Injector
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT + @ suppress @ mediumtest public class LocationManagerProxi...
Temporarily suppress flaky test LocationManagerProximityTest until test harness support can be rolled out
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
eliminate eclipse warnings
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - class Entities { + public class Entities { public enum EscapeMode { base , extended }
Restored public access for Entities EscapeMode
<nb> COMMENT COMMENT - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
move LuceneQueryBuilder to lucene package
<nb> public class NanoHTTPD sendResponse ( HTTP_OK , MIME_JSON , null , new ByteArrayInputStream ( responsePayload . getBytes ( StandardCharsets . UTF_8 ) ) ) ; return true ; } - else { + boolean uploadFile = Pattern . matches ( STRING0 , uri ) || Pattern . matches ( STRING1 , uri ) ; + if ( uploadFile ) { ...
Do some error checking around PostFile
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT COMMENT
Remove unused import
<nb> public final class ReedSolomonDecoderQRCodeTestCase extends AbstractReedSolomonT COMMENT private static final int [ ] QR_CODE_TEST = { NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 , NUMBER6 , - NUMBER7 , NUMBER6 , NUMBER7 , NUMBER6 , NUMBER7 , NUMBER6 , NUMBER7 , NUMBER8 } ...
Fix apparently inconsequential typo in QR code encoder test case
<nb> public class JobExecutionContext implements KeepAliveListener { @ override public String toString ( ) { return STRING0 + - STRING1 + jobId + - STRING2 + numSubContexts . get ( ) + + STRING3 + jobId + + STRING4 + subContexts . values ( ) + STRING5 + closed + STRING6 ; } <nb> import NAMESPACE ;...
include subContexts values in JobExecutionContext toString
<nb> public class TestCassandraDistributed } @ override + public void testCompatibleTypeChangeForView2 ( ) + throws Exception + { + SINGLE + } + + @ override public void testViewMetadata ( ) throws Exception { <nb> public class TestKafkaDistributed } @ override + public void testComp...
Exclude test from incompatible connectors
<nb> public class HttpParser implements Parser parseNext ( ) ; SINGLE - while ( _endp . isOpen ( ) && _contentView . length ( ) == NUMBER0 && ! isState ( HttpParser . STATE_END ) ) + while ( _contentView . length ( ) == NUMBER0 && ! isState ( HttpParser . STATE_END ) && _endp . isOpen ( ) ) { SINGLE par...
Check endp isOpen when blocking read
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FeedRemover extends AsyncTask < Void , Void , Void > { dialog . show ( ) ; } + @ suppresslint ( STRING0 ) public void executeAsync ( ) ...
suppressed lint warning in FeedRemover
<nb> public class LinearLayout extends ViewGroup { } LinearLayout . LayoutParams lp = ( LinearLayout . LayoutParams ) child . getLayoutParams ( ) ; - lp . onResolveLayoutDirection ( layoutDirection ) ; + lp . resolveLayoutDirection ( layoutDirection ) ; totalWeight += lp . weight ; <nb> public class L...
Fix the build
<nb> public class ApplicationImpl extends ComponentManagerImpl implements Application } private boolean disposeSelf ( ) { + myDisposeInProgress = true ; Project [ ] openProjects = ProjectManagerEx . getInstanceEx ( ) . getOpenProjects ( ) ; final boolean [ ] canClose = { true } ; for ( final Project proje...
do not perform unnecessary tasks on exiting
<nb> public class IvyMDArtifact { for ( Artifact existing : allArtifacts ) { if ( artifactsEqual ( existing , newArtifact ) ) { if ( ! ( existing instanceof MDArtifact ) ) { - throw new IllegalArgumentException ( STRING0 + target ) ; + throw new IllegalArgumentException ( STRING1 + existing + STRING2 + target...
Updated the exception message
<nb> public class AbstractPopup implements JBPopup , Disposable { return myCaption ; } - public void setHeaderComponent ( JComponent c ) { + private void setHeaderComponent ( JComponent c ) { boolean doRevalidate = false ; if ( myHeaderComponent != null ) { myHeaderPanel . remove ( myHeaderComponent ) ;...
Fix SpeadSearch s UI glitch when appears on small popups
<nb> public class AfterExtrasActivityTest { public void afterExtraCalledActivityAfterSetIntent ( ) { activityController . create ( ) ; assertThat ( activity . extraDataSet ) . isFalse ( ) ; - assertThat ( activity . afterExtrasCalled ) . isFalse ( ) ; + assertThat ( activity . afterExtrasCalled ) . isTrue ( )...
update AfterExtras test to reflect the new behaviour
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SQLModule extends AbstractModule { bind ( DDLStatementDispatcher . class ) . asEagerSingleton ( ) ; bind ( FulltextAnalyzerResolver . class ) . asEagerSingleton...
Change SQLOperations to be an eager singleton
<nb> public abstract class MediaAwareCallPeer COMMENT COMMENT COMMENT + COMMENT COMMENT public void addConferenceMembersSoundLevelListener ( - ConferenceMembersSoundLevelListener listener ) + ConferenceMembersSoundLevelListener listener ) { + COMMENT + COMMENT + COMMENT + COMMENT + if ( list...
Fixes a NullPointerException in MediaAwareCallPeer related to ConferenceMembersSoundLevelListener
<nb> public abstract class GroovyPage extends Script { @ suppresswarnings ( STRING0 ) public static final class ConstantClosure extends Closure { private static final long serialVersionUID = NUMBER0 ; + private static final Class [ ] EMPTY_CLASS_ARR = new Class [ NUMBER1 ] ; final Object retval ; public C...
Fix problem when GroovyPage ConstantClosure is added to a GString
<nb> import NAMESPACE ; COMMENT public class DomUIFactory { private static final Logger LOG ; - private static Method GET_VALUE_METHOD = null ; - private static Method SET_VALUE_METHOD = null ; - private static Method GET_STRING_METHOD = null ; - private static Method SET_STRING_METHOD = null ; + public...
no display names and descriptions editing in UI
<nb> public class LoadDataChange extends AbstractChange implements ChangeWithColumns List < SqlStatement > statements = new ArrayList < SqlStatement > ( ) ; String [ ] line = null ; while ( ( line = reader . readNext ( ) ) != null ) { + if ( line . length == NUMBER0 || ( line . length == NUMBER1 && StringUtils ...
Skip empty lines
<nb> public class BazelPythonSemantics implements PythonSemantics { } importPaths . add ( path ) ; } - SINGLE + SINGLE ruleContext . registerAction ( new TemplateExpansionAction ( ruleContext . getActionOwner ( ) , <nb> public class BazelPythonSemantics implements PythonSemantics { ruleContext . reg...
Get rid of python exectuable zip file header
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; @ runwith ( Arquillian . class ) @ runasclient + @ ignore ( STRING0 ) public class CoarseSessionPassivationTestCase extends SessionPassivationTestCase { @ deployment ( name = ...
Ignore Frequent intermittent failures in coarse fine web session passivation tests
<nb> public class XmlSchemaParser public static MessageSchema parse ( final InputStream in ) throws Exception { - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT Document document = DocumentBuilderFactory . newInstance ( ) . newDocumentBuilder ( ) . parse ( in ) ; XPath xPath = XPathFact...
Removed unnecessary comment
<nb> public abstract class BeanDeserializerBase public boolean isCachable ( ) { return true ; } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix a typo in javadoc
<nb> public class SelectorKernel extends AbstractKernel protected void removeEndpoint ( NioEndpoint p , SocketChannel c ) { - System . out . println ( STRING0 + p + STRING1 + c + STRING2 ) ; endpoints . remove ( p . getId ( ) ) ; SINGLE
Removing an errant println
<nb> public class CompressedObjectStrategy < T extends Buffer > implements ObjectStrateg @ override public byte [ ] compress ( byte [ ] bytes ) { - LZFChunk chunk = null ; + try ( final ResourceHolder < ChunkEncoder > encoder = CompressedPools . getChunkEncoder ( ) ) { - chunk = encoder . get ( ) . encode...
Changed branching logic for LZFCompressor to return null only on error and avoid checking in most circumstances
<nb> public final class Crouton { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public String getLicenseText ( ) { + return STRING0 + + STRING1 + + STRING2 + + STRING3 + + STRING4 + + STRING5 + + STRING6 + + STRING3 + + STRING7 + + STRING3 + + STRING8 + + STRING9 + + STRI...
adds getLicense method
<nb> import NAMESPACE ; COMMENT public class Cli { private static final String COMMAND_NAME_ATTR = STRING0 ; + private static final String [ ] HELP = { STRING1 } ; private final SortedMap < String , Command > commands ; private final Bootstrap < ? > bootstrap ; <nb> public class Cli { public void run ...
Simplify Cli a little
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public final class HeaderSet { private Long [ ] mIntegerUserDefined ; SINGLE - private final Random mRandom ; + private final SecureRandom mRandom ...
Modified random variable to use java security SecureRandom for authentication challenge genration
<nb> public class ActionBarImpl extends ActionBar { SINGLE if ( ( features & ( NUMBER0 < < Window . FEATURE_ACTION_BAR_OVERLAY ) ) == NUMBER1 ) { mContentView = decor . findViewById ( android . R . id . content ) ; + mContentWrap = AnimatorProxy . wrap ( mContentView ) ; } } <nb> public class ActionBarI...
Move content wrapping to appropriate place and wrap correct object
<nb> public class DefaultChannelFuture implements ChannelFuture { private static final Throwable CANCELLED = new Throwable ( ) ; private static volatile boolean useDeadLockChecker = true ; + private static boolean disabledDeadLockCheckerOnce ; COMMENT COMMENT <nb> public class DefaultChannelFuture imple...
Log the warning only once
<nb> public abstract class TileAbstractBuilder extends TileBuildCraft implements ITil public void writeToNBT ( NBTTagCompound nbttagcompound ) { super . writeToNBT ( nbttagcompound ) ; - mjStored = nbttagcompound . getDouble ( STRING0 ) ; + nbttagcompound . setDouble ( STRING0 , mjStored ) ; } @ overrid...
Fix read write nbt in builders
<nb> public class IdValidatorHelper extends ValidatorHelper { public void annotationValuePositiveAndInAShort ( Element element , IsValid valid , int value ) { if ( value < NUMBER0 || value > NUMBER1 ) { - annotationHelper . printAnnotationError ( element , STRING0 ) ; + annotationHelper . printAnnotationError...
Modified an error message
<nb> public abstract class BaseTest { logger . error ( STRING0 , e ) ; fail ( e . getMessage ( ) ) ; } finally { + BroadcasterFactory . getDefault ( ) . lookup ( DefaultBroadcaster . class , STRING1 ) . destroy ( ) ; c . close ( ) ; } }
Kill the broadcaster to avoid the test going in limbo
<nb> public class PsiManagerImpl extends PsiManagerEx { @ override public boolean isInProject ( @ notnull PsiElement element ) { PsiFile file = element . getContainingFile ( ) ; + if ( file == null && ! element . isPhysical ( ) ) return element . getProject ( ) == myProject ; if ( file != null && file . isPhy...
drop fake containingFile
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DocumentImpl extends UserDataHolderBase implements DocumentEx { this ( chars , false ) ; } + COMMENT + COMMENT + CO...
Do not log PCE in forUseInNonAWTThread mode document
<nb> public class RageCommand extends AbstractCommand { extraInfoCollector ) ; } DefectSubmitResult defectSubmitResult = report . collectAndSubmitResult ( ) ; + String uploadPrefix = + ( defectSubmitResult . getReportSubmitLocation ( ) . startsWith ( STRING0 ) ) ? + ( STRING1 ) : + ( STRING2 ) ; - std...
improve the message when rage uploads to an remote endpoint
<nb> public final class EditorHistoryManager implements ProjectComponent , JDOMExterna } public void selectionChanged ( final FileEditorManagerEvent event ) { - updateHistoryEntry ( event . getOldFile ( ) , true ) ; + updateHistoryEntry ( event . getNewFile ( ) , true ) ; } }
corrected editor tab closing behaviour
<nb> public class FormField { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public void addValues ( List newValues ) { synchronized ( values ) { <nb> public class DataForm implements PacketExtension { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public void addItem ( Item it...
Fixes javadoc warnings
<nb> public abstract class ConnectionService extends Service { connection . getDisconnectCause ( ) , createIdList ( connection . getConferenceables ( ) ) , connection . getExtras ( ) ) ) ; + if ( isUnknown ) { + triggerConferenceRecalculate ( ) ; + } } private void abort ( String callId ) { <nb> pub...
Added support for mid call enabled SRVCC conference call
<nb> public class ScrollPane extends WidgetGroup { return style . vScrollKnob == null || ! scrollY ? NUMBER0 : style . vScrollKnob . getMinWidth ( ) ; } + COMMENT + public float getScrollWidth ( ) { + return areaHeight ; + } + + COMMENT + public float getScrollHeight ( ) { + return areaHeight ; ...
Added methods to get scrolled area size
<nb> package NAMESPACE ; + import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public final class Files { return ( pos >= a . length ) || ( a [ pos ] == STRING0 ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static String g...
Add a method to Files that returns the file extension from a given file name
<nb> import NAMESPACE ; @ retention ( RetentionPolicy . RUNTIME ) @ target ( ElementType . TYPE ) public @ interface Table { - String name ( ) default STRING0 ; + String name ( ) ; } <nb> public class SharedUtil { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT publ...
Table name annotation should not have a default value
<nb> public class Publication implements AutoCloseable COMMENT public static final long BACK_PRESSURED = - NUMBER0 ; + COMMENT + COMMENT + COMMENT + public static final long ADMIN_ACTION = - NUMBER1 ; + private final long registrationId ; private final int streamId ; private final int sessionId ; ...
Added the return of ADMIN_ACTION to a publication offer when rotation is occurs so the publisher knows to retry
<nb> public class Series { this . runtime = runtime ; } + COMMENT + COMMENT + COMMENT + COMMENT public int getStatus ( ) { return status ; } + COMMENT + COMMENT + COMMENT + COMMENT public void setStatus ( int status ) { this . status = status ; }
Add description to status getter and setter in Series
<nb> public class CameraView extends ViewGroup implements AutoFocusCallback { } removeView ( previewStrategy . getWidget ( ) ) ; - onOrientationChange . disable ( ) ; - lastPictureOrientation = - NUMBER0 ; }
removed extraneous whitespace from pull request
<nb> public class RapidsTest extends TestUtil { checkSaneFrame ( ) ; exec_str ( STRING0 , ses ) ; - exec_str ( STRING1 , ses ) ; + exec_str ( STRING2 , ses ) ; exec_str ( STRING3 , ses ) ;
Fixing a malformed string in RapidsTest
<nb> public class NewChatActivity extends FragmentActivity implements View . OnCreateCo } + private Intent mLastIntent = null ; - COMMENT @ override protected void onResume ( ) { super . onResume ( ) ; + if ( mLastIntent == null ) + mLastIntent = getIntent ( ) ; + + resolveIntent ( mLastInte...
finally sorted out onResume Intent vs onNewIntent
<nb> public class ActionMenuItemView extends FrameLayout setEnabled ( itemData . isEnabled ( ) ) ; } + @ override + public void setEnabled ( boolean enabled ) { + super . setEnabled ( enabled ) ; + mImageButton . setEnabled ( enabled ) ; + mTextButton . setEnabled ( enabled ) ; + } + public void o...
Handle disabled state for action menu items
<nb> public class ReaderTag { COMMENT COMMENT COMMENT - public String getTagStringId ( ) { + public String getStringIdFromEndpoint ( ) { if ( tagType != ReaderTagType . DEFAULT ) { return STRING0 ; } <nb> public class ReaderPostListFragment extends Fragment implements AbsListView . OnSc setEmptyView...
rename getTagStringId method
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
fix compile error
<nb> public class CommitHelper { } processor . doBeforeRefresh ( ) ; - - AbstractVcsHelper . getInstance ( myProject ) . showErrors ( processor . getVcsExceptions ( ) , myActionName ) ; } catch ( ProcessCanceledException pce ) { throw pce ;
don t open Messages toolwindow to show commit message error
<nb> enum TokeniserState { case STRING0 : t . emit ( c ) ; t . transition ( ScriptData ) ; + break ; case nullChar : t . error ( this ) ; t . emit ( replacementChar ) ; <nb> class TreeBuilder { while ( true ) { if ( ! skip ) SINGLE entry = formattingElements . get ( ++ pos ) ; + Validate . notNu...
Fix an incorrect case fall through and add some not null validations to prevent warnings
<nb> public class Page { } public void undo ( ) { - if ( annotations . isEmpty ( ) ) { + if ( ! annotations . isEmpty ( ) ) { annotations . remove ( annotations . size ( ) - NUMBER0 ) ; } }
fix undo logic
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class RosieFragment extends Fragment implements RosiePresenter . V COMMENT COMMENT COMMENT - @ override public void onAttach ( Activit...
Remove the usage of a deprecated method and fix the dependency injection flow error generated due to this change
<nb> public final class IndexingSlowLog implements IndexingOperationListener { } , true , Setting . Scope . INDEX ) ; IndexingSlowLog ( IndexSettings indexSettings ) { - this ( indexSettings , Loggers . getLogger ( INDEX_INDEXING_SLOWLOG_PREFIX + STRING0 , indexSettings . getSettings ( ) ) ) ; - } - - COM...
Remove unused test only constructor from IndexingSlowLog
<nb> public class GroovyTestCase extends TestCase { return ; if ( expected != null && DefaultTypeTransformation . compareEqual ( expected , actual ) ) return ; - failNotEquals ( message , expected , actual ) ; + TestCase . assertEquals ( message , expected , actual ) ; } public static void assertEquals ...
use public Assert API
<nb> import NAMESPACE ; public class KMeansV2 extends ModelBuilderSchema < KMeans , KMeansV2 , KMeansV2 . KMeansParametersV2 > { public static final class KMeansParametersV2 extends ModelParametersSchema < KMeansParameters , KMeansParametersV2 > { - public String [ ] fields ( ) { - return new String [ ] { -...
Fix KMeansV2 for New World Order
<nb> import NAMESPACE ; public class DeskShareApplet extends Applet implements IScreenCaptureListener , ChangedBlocksListener { private static final long serialVersionUID = NUMBER0 ; + private static final String LICENSE_HEADER = STRING0 + + STRING1 + + STRING2 + + STRING3 + + STRING4 + + STRING5 + ...
modify license header
<nb> public class RemoteViewsAdapter extends BaseAdapter { int mem = NUMBER0 ; for ( Integer i : mIndexRemoteViews . keySet ( ) ) { final RemoteViews v = mIndexRemoteViews . get ( i ) ; - mem += v . estimateBitmapMemoryUsage ( ) ; + if ( v != null ) { + mem += v . estimateBitmapMemoryUsage ( ) ; + } } ...
Adding NPE check when calculating remote views memory usage
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <...
reduce default color icon size
<nb> public class BindyCsvFactory extends BindyAbstractFactory implements BindyFactor } quoting = record . quoting ( ) ; - LOG . debug ( STRING0 , messageOrdered ) ; + LOG . debug ( STRING0 , quoting ) ; autospanLine = record . autospanLine ( ) ; LOG . debug ( STRING1 , autospanLine ) ;
CSV log message should log the quoting property
<nb> public class QueryResource @ post @ produces ( { MediaType . APPLICATION_JSON , SmileMediaTypes . APPLICATION_JACKSON_SMILE } ) - @ consumes ( { MediaType . APPLICATION_JSON , SmileMediaTypes . APPLICATION_JACKSON_SMILE } ) + @ consumes ( { MediaType . APPLICATION_JSON , SmileMediaTypes . APPLICATION_JAC...
Add deprecated smile media type for backwards compatability during upgrades
<nb> public class ServerStoredContactListIcqImpl { ContactIcqImpl contact = ( ContactIcqImpl ) iter . next ( ) ; - String oldNickname = contact . getDisplayName ( ) ; + String oldNickname = contact . getUIN ( ) ; String nickName = null ; <nb> public class ServerStoredContactListIcqImpl { SINGLE ...
Retreiving nickname avoid infinite loop in case of an exception and also avoid double call for one contact
<nb> public class Dashboard extends Activity { if ( featuredImageHash != null ) { boolean featuredImageCapable = Boolean . parseBoolean ( featuredImageHash . get ( STRING0 ) . toString ( ) ) ; blog . setFeaturedImageCapable ( featuredImageCapable ) ; + } else { + blog . setFeaturedImageCapable ( false ) ; }...
Set featuredImageCapable to false if the blog doesn t return the value older WP version
<nb> class TaskItemProvider implements ChooseByNameItemProvider , Disposable { oldFeature . cancel ( true ) ; } - myAlarm . addRequest ( future , DELAY_PERIOD ) ; + if ( ! myAlarm . isDisposed ( ) ) { + myAlarm . addRequest ( future , DELAY_PERIOD ) ; + return false ; + } try { List < Task > tasks...
Cancel future if alarm was disposed in TaskItemProvider to prevent deadlocks
<nb> public class SUTime { } } ; - TimexType timexType ; + final TimexType timexType ; TimeUnit unit = TimeUnit . UNKNOWN ; Duration period = SUTime . DURATION_NONE ; <nb> public class SUTime { } COMMENT - COMMENT + COMMENT COMMENT public static class DurationWithMillis extends Duration ...
Make a couple of things private final
<nb> public class PShapeOpenGL extends PShape { public int [ ] getVertexCodes ( ) { if ( family == GROUP ) return null ; else { + if ( family == PRIMITIVE || family == PATH ) { + SINGLE + SINGLE + updateTessellation ( ) ; + } if ( inGeo . codes == null ) return null ; return inGeo . codes ; } <n...
update PShape tessellation when requesting vertex codes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OServerConfigurationLoaderXml { public OServerConfiguration load ( ) throws IOException { try { String path = file . getAbsolutePath ( ) ; - String current =...
Created alternative orientdb server config xml file in test to test JMX
<nb> public final class Window extends JavaScriptObject { public native void close ( ) COMMENT COMMENT COMMENT ; + + public native Window parent ( ) COMMENT + COMMENT + COMMENT ; + public native Window opener ( ) COMMENT + COMMENT + COMMENT ; + public native void set ( String name , boolean fl...
Extend window API
<nb> public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow @ override public void onActivateSelected ( String themeId ) { - Theme selectedTheme = WordPress . wpDB . getTheme ( getBlogId ( ) , themeId ) ; - if ( selectedTheme . isPremium ( ) ) { - - } else { - activateTheme ( t...
Removing useless if else
<nb> public abstract class ImageViewTouchBase extends ImageView implements IDisposabl public float getScale ( ) { return getScale ( mSuppMatrix ) ; } + + public float getBaseScale ( ) { + return getScale ( mBaseMatrix ) ; + } protected void center ( boolean horizontal , boolean vertical ) { final Dr...
added getBaseScale method
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unused import which indicated a package cycle