diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class ClientCallFuture < V > implements ICompletableFuture < V > , Callback { private final int retryCount ; private final int retryWaitTime ; - private volatile Object response ; + private Object response ; private final ClientRequest request ;
revert unintended volatile change
<nb> public class FloatingActionButton extends ImageButton { return mShadow ; } + public void setType ( int type ) { + if ( type != mType ) { + mType = type ; + updateBackground ( ) ; + } + } + + public int getType ( ) { + return mType ; + } + public void attachToListView ( AbsListView lis...
Add setter and getter for the type
<nb> final class GsmServiceStateTracker extends ServiceStateTracker { return ; } - if ( err != CommandException . Error . OP_NOT_ALLOWED_BEFORE_REG_NW && - err != CommandException . Error . OP_NOT_ALLOWED_BEFORE_REG_NW ) { + if ( err != CommandException . Error . OP_NOT_ALLOWED_BEFORE_REG_NW ) { Log . e (...
Removing repetitive conditional it simply does nothing except slowing down things
<nb> public class TestUtil extends Iced { @ override public Statement apply ( Statement base , Description description ) { String testName = description . getClassName ( ) + STRING0 + description . getMethodName ( ) ; - if ( Arrays . asList ( ignoreTestsNames ) . contains ( testName ) ) { + if ( ignoreTestsNa...
Fix NPE in JUnit framework
<nb> public abstract class AAdvancedMaterial extends AMaterial { public static final String M_FOG_VERTEX_DENSITY = STRING0 + STRING1 + - STRING2 + STRING3 + - STRING4 + - STRING5 + - STRING6 + - STRING7 + - STRING8 + - STRING9 + - STRING10 + + STRING11 + + STRING12 + STRING13 + STRING14 ...
Replace if statements with clamp in fog shader
<nb> public class RouteProvider { complexCtx = router . buildRoutingContext ( cf , params . ctx . getInternalAPI ( ) . getNativeLibrary ( ) , files , RouteCalculationMode . COMPLEX ) ; complexCtx . calculationProgress = params . calculationProgress ; + complexCtx . leftSideNavigation = params . leftSide ; } ...
Fix left side turn issue
<nb> public class FailedJobListener implements TransactionListener { } public void execute ( CommandContext commandContext ) { + CommandConfig commandConfig = commandExecutor . getDefaultConfig ( ) . transactionRequiresNew ( ) ; FailedJobCommandFactory failedJobCommandFactory = commandContext . getFailedJobCo...
Fix faulty transaction requires new change
<nb> public class TaskInfoFetcher { TaskStatus taskStatus = getTaskInfo ( ) . getTaskStatus ( ) ; - SINGLE - if ( ! running || isDone ( getTaskInfo ( ) ) ) { + if ( ! running ) { + return ; + } + + SINGLE + if ( isDone ( getTaskInfo ( ) ) ) { + stop ( ) ; return ; }
Fix leak during task cleanup
<nb> import NAMESPACE ; public @ interface Module { COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix checkstyle by removing trailing spaces
<nb> COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT package NAMESPACE ;
Removed utility package from the dependency diagram
<nb> public class BatchlogManager implements BatchlogManagerMBean if ( ttl <= NUMBER0 ) return ; SINGLE + List < InetAddress > liveEndpoints = new ArrayList < > ( ) ; + List < InetAddress > hintEndpoints = new ArrayList < > ( ) ; + for ( RowMutation mutation : mutations ) { - List < InetAddress > live...
reduce garbage in BatchlogManager replayMutations
<nb> public class PyUnresolvedReferencesInspection extends PyInspection { } } + @ override + public void visitPyClass ( PyClass node ) { + PyExpression [ ] supers = node . getSuperClassExpressions ( ) ; + for ( PyExpression cl : supers ) { + if ( cl . getText ( ) . equals ( node . getName ( ) ) ) { + ...
added unresolved reference inspection for class inherited from itself
<nb> public class ChecksumAggregation public FunctionInfo specialize ( Map < String , Type > types , int arity , TypeManager typeManager , FunctionRegistry functionRegistry ) { Type valueType = types . get ( STRING0 ) ; - Signature signature = new Signature ( NAME , valueType . getTypeSignature ( ) , valueType ...
Fix null pointer exception caused by checksum
<nb> public class ProfileRouter { private static final List < TraverseMode > EGRESS_MODES = Lists . newArrayList ( TraverseMode . WALK ) ; - COMMENT - private static final Stop fakeTargetStop = new Stop ( ) ; - static { - fakeTargetStop . setId ( new AgencyAndId ( STRING0 , STRING1 ) ) ; - } - priva...
remove unused fake target stop
<nb> public class JettyHttpProducer extends DefaultAsyncProducer implements AsyncProc } } - System . out . println ( STRING0 ) ; if ( getEndpoint ( ) . isConnectionClose ( ) ) { - System . out . println ( STRING1 ) ; httpExchange . addRequestHeader ( STRING2 , STRING3 ) ; }
Removed unuseful system out
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT COMMENT <nb> public class AllocationModule ex...
remove unused variable
<nb> public class ModClassLoader extends URLClassLoader STRING0 , STRING1 , STRING2 , - STRING3 , + STRING4 , STRING5 , STRING6 , STRING7 ,
Fix typo in guava
<nb> public class CropImageView extends ImageView { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Removed unnecessary comment
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + public class BSONFileSplit extends FileSplit { SINGLE <nb> public class BSONFileSplit extends FileSplit { public void setKeyField ( final Str...
Override readFields and write methods in BSONFileSplit
<nb> public class Http11NioProtocol extends AbstractHttp11JsseProtocol < NioChannel > { } public int getPollerThreadPriority ( ) { - return ( ( NioEndpoint ) getEndpoint ( ) ) . getThreadPriority ( ) ; + return ( ( NioEndpoint ) getEndpoint ( ) ) . getPollerThreadPriority ( ) ; }
Fix copy paste error
<nb> public final class AnnotatedField @ override public < A extends Annotation > A getAnnotation ( Class < A > acls ) { - return _annotations . get ( acls ) ; + return ( _annotations == null ) ? null : _annotations . get ( acls ) ; } @ override
add a null check for AnnotatedField
<nb> public class OMMapManager { p = ( position + NUMBER0 ) * - NUMBER1 ; if ( p < NUMBER2 ) p = NUMBER2 ; + + if ( fileEntries == null ) { + SINGLE + fileEntries = new ArrayList < OMMapBufferEntry > ( ) ; + bufferPoolPerFile . put ( iFile , fileEntries ) ; + } + fileEntries . add ( p , entry ) ; ...
Fixed bug on mmap recycling
<nb> public class TileGenericPipe extends TileEntity implements IPowerReceptor , ILiqu super . invalidate ( ) ; - if ( BlockGenericPipe . isValid ( pipe ) ) - BlockGenericPipe . removePipe ( pipe ) ; + SINGLE + SINGLE } @ override
Invalidating a TE should not cause the pipe to drop
<nb> public class ViewFlow extends AdapterView < Adapter > { mAdapter . registerDataSetObserver ( mDataSetObserver ) ; } - if ( mAdapter . getCount ( ) == NUMBER0 ) + if ( mAdapter == null || mAdapter . getCount ( ) == NUMBER0 ) return ; for ( int i = NUMBER0 ; i < Math . min ( mAdapter . getCount ( ) ,...
Fixing possible NPE
<nb> public class MethodCall implements Implementation { public StackManipulation invoke ( MethodDescription methodDescription , Target implementationTarget ) { if ( implementationTarget . getTypeDescription ( ) . getSuperType ( ) == null ) { throw new IllegalStateException ( STRING0 + implementationTarget . getT...
Used origin type instead of super type to allow the usage of the MethodCall instrumentation also for redefinitions and rebasements
<nb> public class FilePatternPackageSet extends PatternBasedPackageSet { private boolean fileMatcher ( VirtualFile virtualFile , ProjectFileIndex fileIndex , VirtualFile projectBaseDir ) { final String relativePath = getRelativePath ( virtualFile , fileIndex , true , projectBaseDir ) ; - if ( relativePath != nu...
avoid unconditional trace properly
<nb> class FileInfo { } public void handle ( ) { + final VirtualFile file = getFile ( ) ; if ( getUseVersionControl ( ) ) { - myEditFileProvider . editFiles ( new VirtualFile [ ] { getFile ( ) } ) ; - getFile ( ) . refresh ( false , false ) ; - } else { + myEditFileProvider . editFiles ( new VirtualFi...
fixed write access allowed on clearing RO attribute
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class VariableSpeedDialog { new DialogInterface . OnClickListener ( ) { @ override public void onClick ( DialogInterface dialog , int which ) { ...
Catch ActivityNotFoundException in VariableSpeedDialog
<nb> public abstract class RenderAction < T extends RenderParams > extends FrameworkReso mContext . getRenderResources ( ) . setLogger ( null ) ; } - mContext = null ; } public static BridgeContext getCurrentContext ( ) {
Fix NPE in layoutlib
<nb> public class PropertiesLauncher extends Launcher { if ( url . toString ( ) . endsWith ( STRING0 ) || url . toString ( ) . endsWith ( STRING1 ) ) { lib . add ( NUMBER0 , new JarFileArchive ( new File ( url . toURI ( ) ) ) ) ; } + else if ( url . toString ( ) . endsWith ( STRING2 ) ) { + String name = url ...
Fix PropertiesLauncher for wildcard entries in parent classpath
<nb> public class SerializationHeader stats . updateTimestamp ( sstable . getMinTimestamp ( ) ) ; stats . updateLocalDeletionTime ( sstable . getMinLocalDeletionTime ( ) ) ; stats . updateTTL ( sstable . getMinTTL ( ) ) ; - stats . updateColumnSetPerRow ( sstable . getTotalColumnsSet ( ) , sstable . getTotalRow...
Fix Coverity Defects
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public class DecoderConfig {
Fixed a minor javadoc typo
<nb> public class GLM extends SupervisedModelBuilder < GLMModel , GLMModel . GLMParameters , } doCleanup ( ) ; new RemoveCall ( null , _dest ) . invokeTask ( ) ; + failed ( ex ) ; return true ; } return false ;
Fix GLM job fail path to call Job fail
<nb> public class InnerHitBuilderTests extends ESTestCase { } } + @ awaitsfix ( bugUrl = STRING0 ) public void testFromAndToXContent ( ) throws Exception { for ( int runs = NUMBER0 ; runs < NUMBER_OF_TESTBUILDERS ; runs ++ ) { InnerHitBuilder innerHit = randomInnerHits ( true , false ) ;
Mark IHBT testFromAndToXContent as awaits fix
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class PluginClassLoader parent , hiddenClasses , parentFirstClasses , - Iterables . transform ( hiddenClasses , classNameToResource ( ) ) , - Iterables . transform ( parentFirstC...
Remove transformer functions from PluginClassloader
<nb> public interface FindIterable < T > extends MongoIterable < T > { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class FindOptions { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT - COM...
Fixed Javadoc errors
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class TvView extends SurfaceView { if ( dispatchUnhandledInputEvent ( event ) ) { return ; } - getViewRootImpl ( ) . dispatchUnhandledInputEvent ( event ) ; + ViewR...
Fix NPE while dispatching input event
<nb> public class TextMergeTool implements MergeTool { @ override public void dispose ( ) { - if ( ! isConflictResolved ( ) ) myMergeRequest . applyResult ( MergeResult . CANCEL ) ; Disposer . dispose ( myViewer ) ; LOG . assertTrue ( myBulkChangeUpdateDepth == NUMBER0 ) ; + if ( ! isConflictResolved ( ) ...
destroy changes before applying request
<nb> public class TimeOnTimeResponseParser { for ( int i = NUMBER0 ; i < metrics . size ( ) ; i ++ ) { Metric metric = metrics . get ( i ) ; - System . out . println ( i + STRING0 + metric . getBaselineValue ( ) + STRING0 + metric . getCurrentValue ( ) ) ; + double baselineSum = NUMBER0 ; if ( baselineMet...
Adding fix for handling time buckets
<nb> public class RequestResponseBodyMethodProcessor extends AbstractMessageConverter Object arg = readWithMessageConverters ( inputMessage , methodParam , paramType ) ; if ( arg == null ) { if ( methodParam . getParameterAnnotation ( RequestBody . class ) . required ( ) ) { - throw new HttpMessageNotReadableEx...
Improve error message for missing request body
<nb> public class NetworkControllerImpl extends BroadcastReceiver switch ( mServiceState . getVoiceRegState ( ) ) { case ServiceState . STATE_POWER_OFF : retVal = false ; + break ; case ServiceState . STATE_OUT_OF_SERVICE : case ServiceState . STATE_EMERGENCY_ONLY : retVal = mServiceState . getDataRegStat...
Fix hasService and use it in updateTelephonySignalStrength
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class CopyableLabel extends JTextArea ...
update ellipsis LaF
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT + SINGLE public final class EvictorUtils { COMMENT
Add a TODO for refactoring EvictorUtils
<nb> public class InputMethodManagerService extends IInputMethodManager . Stub unbindCurrentMethodLocked ( false , false ) ; return ; } + SINGLE + SINGLE + mCaller . removeMessages ( MSG_SHOW_SOFT_INPUT ) ; + mCaller . removeMessages ( MSG_HIDE_SOFT_INPUT ) ; if ( DEBUG ) Slog . v ( TAG , STRING0 + mCur...
Remove old show hide messages on new ime DO NOT MERGE
<nb> public abstract class ConnectionPoolTest extends AbstractBasicTest { for ( i = NUMBER0 ; i < NUMBER1 ; i ++ ) { try { log . info ( STRING0 , i , url ) ; - client . prepareGet ( url ) . execute ( ) ; + + if ( i < NUMBER2 ) { + client . prepareGet ( url ) . execute ( ) . get ( ) ; + } else { + clie...
Change the test to make Hudson happy
<nb> public class AndroidApplication extends Activity implements Application { super . onWindowFocusChanged ( hasFocus ) ; useImmersiveMode ( this . useImmersiveMode ) ; hideStatusBar ( this . hideStatusBar ) ; - SINGLE if ( hasFocus ) { this . wasFocusChanged = NUMBER0 ; if ( this . isWaitingForAudio ) {...
Remove comments on issue number
<nb> public class FtpOperations implements RemoteFileOperations < FTPFile > { Object next = it . next ( ) ; String command = endpoint . getCamelContext ( ) . getTypeConverter ( ) . convertTo ( String . class , next ) ; if ( log . isTraceEnabled ( ) ) { - log . trace ( STRING0 + command ) ; + log . trace ( STR...
Added support for sending site commands after succesful login
<nb> public class JoglInput implements Input , MouseMotionListener , MouseListener , Mou touchEvents . add ( event ) ; touchX = event . x ; - touchY = event . y ; + touchY = event . y ; pressedButtons . remove ( event . button ) ; + if ( pressedButtons . size ( ) == NUMBER0 ) + touchDown = false ; } ...
fixed JoglInput isTouched returned bogus values
<nb> public class ArrayFunctions extends FunctionsContainer { } ) ; } + public static Memory array_diff_key ( Environment env , TraceInfo trace , Memory array1 , Memory array , Memory . . . arrays ) throws Throwable { + return _array_diff_impl ( env , trace , array1 , array , arrays , new ArrayDiffCallback ( ...
Implement array_diff_key function
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class SystemTestBase { private Range < Integer > dockerPortRange ; private final List < Service...
remove unused executor
<nb> public class NewChatActivity extends SherlockFragmentActivity implements View . On mChatPagerTitleStrip . setBackgroundResource ( R . color . background_dark ) ; + updateChatList ( ) ; } }
make sure chat list updates after paging
<nb> public interface AttributeMap { Label getLabel ( ) ; COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT + @ nullable < T > T get ( String attributeName , Type < T > type ) ; COMMENT
More precisely document AttributeMap get particularly the possibility
<nb> public class HttpGetter { HttpParams params = client . getParams ( ) ; HttpClientParams . setCookiePolicy ( params , CookiePolicy . IGNORE_COOKIES ) ; HttpProtocolParams . setContentCharset ( params , STRING0 ) ; - HttpConnectionParams . setConnectionTimeout ( params , NUMBER0 ) ; - HttpConnectionParams ...
increased http timeout
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class KotlinCacheManager { @ notnull public KotlinDeclarationsCache getDeclarationsFromProject ( @ notnull Project project ) { + SINGLE + ApplicationManager . g...
Only allow access to declarations from under a read action to prevent dead locks
<nb> public class CommandsManager { COMMENT private String getUsage ( String command , Command cmd ) { return command - + ( cmd . flags ( ) . length ( ) > NUMBER0 ? STRING0 + cmd . flags ( ) + STRING1 : STRING2 ) + + ( cmd . flags ( ) . length ( ) > NUMBER0 ? STRING0 + cmd . flags ( ) + STRING3 : STRING2 ) ...
Fixed issue in CommandsManager printing usage incorrectly
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SnackBar { private final Runnable mHideRunnable = new Runnable ( ) { @ override public void run ( ) { - mContainer . startAnimation ( mOut...
Fix weird animation when SnackBar has been cleared programmatically
<nb> public class XMLLogger printer . println ( STRING0 ) ; printer . println ( STRING1 ) ; printer . flush ( ) ; - this . writer . println ( encode ( stringWriter . toString ( ) ) ) ; + writer . println ( encode ( stringWriter . toString ( ) ) ) ; } COMMENT
Fix PMD violations for ShortVariable rule resolving Teamcity violation
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class PsiReferenceRegistrar { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public void registerReferenceProvider ( @ notnull ElementPa...
remove imports existing only for the sake of javadoc
<nb> public class DCFareCalculator { SINGLE private void calcFare ( ) { RideType prevType = ( prev == null ) ? null : prev . type ; + if ( type == null ) + return ; switch ( type ) { case METRO_RAIL : fare = METRORAIL . lookup ( from , to ) ;
Fix NPE in DCFareCalculator
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class UIUtil { } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class UIUtil { } COMMEN...
add javadoc about what to do with transaction assertions from invoke IfNeeded
<nb> public class FormHandler { nameAttribute = currentElement . getAttribute ( STRING0 ) ; valueAttribute = currentElement . getAttribute ( STRING1 ) ; } - } + } if ( STRING2 . equals ( currentElement . getTagName ( ) ) ) { nameAttribute = currentElement . getAttribute ( STRING1 ) ; valueAttribute = cu...
Added support for textareas in FormHandler
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Improved Javadoc of OneToOneDecoder
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class ContentRequestExtractor implements RequestExtractor { @ override public String extract ( HttpRequest request ) { - return requestCont...
used netty content reader
<nb> public class SettingsDrawerActivity extends Activity { mCategoryListeners . remove ( listener ) ; } + public void setIsDrawerPresent ( boolean isPresent ) { + if ( isVisible ) { + mDrawerLayout = ( DrawerLayout ) findViewById ( R . id . drawer_layout ) ; + updateDrawer ( ) ; + } else { + mDrawerL...
Allow the drawer to not be shown
<nb> public class Mention implements CoreAnnotation < Mention > , Serializable { private void setHeadString ( ) { this . headString = headWord . get ( CoreAnnotations . TextAnnotation . class ) . toLowerCase ( ) ; - if ( headWord . has ( CoreAnnotations . NamedEntityTagAnnotation . class ) ) { + String ner = ...
When a suffix to drop is detected set the headWord headIndex appropriately
<nb> public class MUCServiceImpl ChatRoom chatRoom = invitation . getTargetChatRoom ( ) ; byte [ ] password = invitation . getChatRoomPassword ( ) ; - String nickName - = chatRoom . getParentProvider ( ) . getAccountID ( ) . getUserID ( ) ; + String nickName = + ConfigurationUtils . getChatRoomProperty ( ...
Uses display name when accepted invitation to join a chat room
<nb> public abstract class ONetworkProtocolHttpAbstract extends ONetworkProtocol { data . commandDetail = null ; try { + data . lastCommandReceived = - NUMBER0 ; + char c = ( char ) channel . inStream . read ( ) ; if ( channel . inStream . available ( ) == NUMBER1 ) {
Fixed a minor bug on measurement of timing in execution of the Service method
<nb> class WindowStateAnimator { if ( mHasClipRect ) { SINGLE - int offsetTop = w . mSystemDecorRect . top ; + SINGLE + SINGLE + SINGLE + int offsetTop = Math . max ( w . mSystemDecorRect . top , w . mContentInsets . top ) ; mTmpClipRect . set ( w . mSystemDecorRect ) ; mTmpClipRect . offset ( NUMBE...
Adding workaround for the status bar not reporting the correct system decor rect
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT ...
Changed links from https to http
<nb> public class PointQuadTree < T extends QuadTree . Item > implements QuadTree < T > { if ( mItems . size ( ) > MAX_ELEMENTS && mDepth < MAX_DEPTH ) { split ( ) ; } - return ; } COMMENT
fixed some warnings
<nb> public final class ZLTTFInfo { } else { SubfamilyName = subfamily ; } - System . err . println ( this ) ; } @ override
removed debug printing
<nb> public abstract class AbstractAndroidMojo extends AbstractMojo { COMMENT protected String configurations ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + protected String [ ] aaptExtraArgs ; COMMENT COMMENT <nb> public class ApkMojo extends AbstractAndroidMojo { commands . add ( ST...
Added support for aaptExtraArgs in the configuration
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MCEditSchematicFormat extends SchematicFormat { super ( STRING0 , STRING1 , STRING2 ) ; } - @ override - public Cuboi...
Allow use of InputStream this allows schematics to be loaded e g as a resource
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class TestPersistentInterval extends HibernateTestCase { - + public class TestPersistentInterval extends HibernateTestCase + { private SessionFactory factory ; private Session session ; private DateTime beginDateTime ;
Changed class curly brace placement
<nb> public final class Collections2 { COMMENT COMMENT COMMENT - static boolean safeContains ( Collection < ? > collection , Object object ) { + static boolean safeContains ( + Collection < ? > collection , @ nullable Object object ) { checkNotNull ( collection ) ; try { return collection . contains (...
Annotate safeContains and safeRemove parameter as Nullable
<nb> public class AUC extends Iced { SINGLE private static class AUCTask extends MRTask < AUCTask > { - COMMENT + COMMENT private ConfusionMatrix2 [ ] _cms ; double nullDev ; double resDev ; <nb> public class AUC extends Iced { ymu = mu ; } - static final double y_log_y ( double y , double mu ...
Fix ideaj warnings
<nb> import NAMESPACE ; COMMENT COMMENT public interface RowVisitor { - public void start ( Project project ) ; SINGLE + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void start ( Project project ) ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public bo...
Move documentation to Javadoc where it s visible
<nb> public class ShadowCanvas { } @ implementation + public void setBitmap ( Bitmap bitmap ) { + targetBitmap = bitmap ; + } + + @ implementation public void drawText ( String text , float x , float y , Paint paint ) { drawnTextEventHistory . add ( new TextHistoryEvent ( x , y , paint , text ) ) ; ...
Add ShadowCanvas setBitmap
<nb> public class CodeCompletionHandlerBase implements CodeInsightActionHandler { protected void run ( Result result ) throws Throwable { String uniqueText = _uniqueText ; - if ( item . getObject ( ) instanceof DeferredUserLookupValue && item instanceof LookupItem ) { - if ( ! ( ( DeferredUserLookupValue ) it...
we should invoke handleUserSelection for decorators
<nb> public class RestClientUtils { } String realPath = getSanitizedPath ( path ) ; - if ( ! TextUtils . isEmpty ( realPath ) ) { + if ( TextUtils . isEmpty ( realPath ) ) { realPath = path ; } paramsWithLocale . putAll ( getSanitizedParameters ( path ) ) ; <nb> public class RestClientUtils { } ...
fixed negative check on string emptiness
<nb> public class TemplateModuleBuilder extends ModuleBuilder { } } } ) ) ; - } , ModalityState . any ( ) ) ; + } , ModalityState . defaultModalityState ( ) ) ; return projectRef . get ( ) ; }
Fix exception on new project creation from template
<nb> public class ViewPostFragment extends Fragment { viewPostButton . setVisibility ( View . GONE ) ; addCommentButton . setVisibility ( View . GONE ) ; - tv . setText ( WPHtml . fromHtml ( postContent . replaceAll ( STRING0 , STRING1 ) , getActivity ( ) . getBaseContext ( ) , post ) ) ; + tv . setText ( WPH...
Send the activity context so WPHtml has the proper context reference
<nb> public class Reader { SINGLE String tag = api . value ( ) . replace ( STRING0 , STRING1 ) ; String description = api . description ( ) ; - String basePath = api . basePath ( ) ; int position = api . position ( ) ; String produces = api . produces ( ) ; String consumes = api . consumes ( ) ;
removed unused var
<nb> public class Queries { if ( minimumShouldMatch == null ) { return query ; } + SINGLE + SINGLE + SINGLE if ( query . isCoordDisabled ( ) ) { return query ; }
Add explanation about minimum should match and coordination factor
<nb> public class JavaTest extends DefaultJavaLibrary implements TestRule , HasRuntime . addAll ( getBootClasspathEntries ( executionContext ) ) . build ( ) ; + ImmutableList < String > properVmArgs = amendVmArgs ( + this . vmArgs , + executionContext . getTargetDeviceOptional ( ) ) ; + junit = new JUni...
Use a variable for updated VM args in JavaTest
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT @ suppresswarnings ( STRING0 ) class BaseXnioChannel extends AbstractChannel implements XnioChannel {
Set svn properties
<nb> public final class ActivityManagerService extends ActivityManagerNative intent . setComponent ( mTopComponent ) ; if ( mFactoryTest != SystemServer . FACTORY_TEST_LOW_LEVEL ) { intent . addCategory ( Intent . CATEGORY_HOME ) ; - intent . addCategory ( Intent . CATEGORY_DEFAULT ) ; } ActivityInfo aInfo ...
Revert The default home intent needs CATEGORY_DEFAULT
<nb> package NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix two zygote imports
<nb> public class ReaderDatabase extends SQLiteOpenHelper { @ targetapi ( Build . VERSION_CODES . HONEYCOMB ) @ override public void onDowngrade ( SQLiteDatabase db , int oldVersion , int newVersion ) { - super . onDowngrade ( db , oldVersion , newVersion ) ; - ReaderLog . i ( STRING0 + oldVersion + STRING1 +...
Fixed crash when reader database is downgraded
<nb> public final class Configuration { String rawValue = PROPERTIES . get ( key . toString ( ) ) ; if ( rawValue == null ) { SINGLE - throw new RuntimeException ( ExceptionMessage . INVALID_CONFIGURATION_KEY . getMessage ( key ) ) ; + throw new RuntimeException ( ExceptionMessage . UNDEFINED_CONFIGURATION_KE...
Improve error message when a key is undefined
<nb> public class DroidGap extends Activity { COMMENT appView . setWebChromeClient ( new GapClient ( this ) ) ; + appView . setInitialScale ( NUMBER0 ) ; WebSettings settings = appView . getSettings ( ) ; settings . setJavaScriptEnabled ( true ) ; settings . setJavaScriptCanOpenWindowsAutomatically ( true...
Fixing up the Contacts allowing support for multiple resolutions
<nb> public class WebRTCRuntimeProvider implements WebRTCRuntime { @ notnull @ override - public Promise < WebRTCMediaStream > getUserAudio ( ) { + public Promise < WebRTCMediaStream > getUserMedia ( boolean inVideoEnabled ) { return null ; }
update clc WebRTCRuntimeProvider
<nb> public class NEDGraphBuilderImpl implements GraphBuilder { if ( state . backEdge != null ) { System . out . println ( STRING0 ) ; } - while ( state != null ) { + while ( true ) { double elevation = ( bestElevation * state . distance + state . initialElevation COMMENT / totalDistance ; elevation...
remove redundant null check
<nb> public abstract class LogEntry this . startPosition = position ; } - long getTimeWritten ( ) + public long getTimeWritten ( ) { return timeWritten ; }
Made getTimeWritten public
<nb> public class DateTimeComparator implements Comparator , Serializable { public boolean equals ( Object object ) { if ( object instanceof DateTimeComparator ) { DateTimeComparator other = ( DateTimeComparator ) object ; - if ( getLowerLimit ( ) == null ) { - } return ( iLowerLimit == other . getLowerLimi...
Remove dead code
<nb> public class BasicBeanDescription extends BeanDescription @ override public JsonFormat . Value findExpectedFormat ( JsonFormat . Value defValue ) { + SINGLE + SINGLE if ( _annotationIntrospector != null ) { JsonFormat . Value v = _annotationIntrospector . findFormat ( _classInfo ) ; if ( v != null ...
add per type lookup to findExpectedFormat as well
<nb> public class WindowManagerService extends IWindowManager . Stub return ; } - if ( transferStartingWindow ( transferFrom , wtoken ) ) { - return ; - } - - SINGLE - SINGLE - if ( ! createIfNeeded ) { - return ; - } - SINGLE SINGLE SINGLE <nb> public class WindowManagerService extend...
Do not transfer starting window to translucent activity
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DaemonForkOptions { } private int getHeapSizeMb ( String heapSize ) { + if ( heapSize == null ) { + return - NUMBER0 ; SINGLE + } +...
handle null elements in daemon fork options
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface ThreadsafeProcessor < I , O > { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT - public O process ( I input ) ; - + O process ( I input ) ; + ...
Don t need public in interface
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DumpLookupElementWeights extends AnAction implements DumbAware { } public static void dumpLookupElementWeights ( final Lo...
dump more info in addition to lookup element weights