diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class NeoStore extends AbstractStore } setRecord ( NUMBER0 , txId ) ; SINGLE + SINGLE + SINGLE + SINGLE + SINGLE if ( isStarted && lastCommittedTxIdSetter != null && txId != lastCommittedTx ) { - lastCommittedTxIdSetter . setLastCommittedTxId ( txId ) ; + try + { + lastCommittedTxI...
Fixed problem with failing tx in ha when zookeeper is down
<nb> public interface GenericTypeDescription extends NamedElement { @ override public Sort getSort ( ) { SINGLE - return getComponentType ( ) . getSort ( ) . isNonGeneric ( ) + return componentType . getSort ( ) . isNonGeneric ( ) ? Sort . NON_GENERIC : Sort . GENERIC_ARRAY ; }
Avoided nested call which yielded same result as direct call
<nb> public abstract class AbstractTestHiveClient pageSourceProvider . createPageSource ( split , ImmutableList . of ( invalidColumnHandle ) ) ; } - @ test ( expectedExceptions = PrestoException . class , expectedExceptionsMessageRegExp = STRING0 ) + @ test ( expectedExceptions = PrestoException . class , exp...
Fix test for partition schema mismatch
<nb> public class CamelNamespaceHandler implements NamespaceHandler { public void afterDestroy ( Object bean , String beanName ) { } + @ override + protected boolean isSingleton ( Object bean , String beanName ) { + ComponentMetadata meta = blueprintContainer . getComponentMetadata ( beanName ) ; + if ( m...
camel blueprint add check for bean scope using blueprint metadata
<nb> public class PluginInfoTest { assertThat ( pluginInfo . getOrganizationName ( ) ) . isEqualTo ( STRING0 ) ; assertThat ( pluginInfo . getOrganizationUrl ( ) ) . isEqualTo ( STRING1 ) ; assertThat ( pluginInfo . getMinimalSqVersion ( ) . getName ( ) ) . isEqualTo ( STRING2 ) ; - assertThat ( pluginInfo . ge...
Fix stability of PluginInfoTest
<nb> public class MainTabbedPane extends SIPCommTabbedPane { this . addTab ( Messages . getString ( STRING0 ) , contactListPanel ) ; this . addTab ( Messages . getString ( STRING1 ) , new JPanel ( ) ) ; - SINGLE + this . addTab ( Messages . getString ( STRING2 ) , dialPanel ) ; + + SINGLE + this . setEn...
disable calllist and dial tab panel until this functionality is implemented
<nb> public final class UrlImageViewHelper { return url . hashCode ( ) + STRING0 ; } - private static void cleanup ( final Context context ) { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static void cleanup ( final Context context , long age ) { if ( mHasCleaned ) { re...
expose the cleanup method
<nb> public class Peer { COMMENT COMMENT public Future < Block > getBlock ( Sha256Hash blockHash ) throws IOException { - InventoryMessage getdata = new InventoryMessage ( params ) ; + GetDataMessage getdata = new GetDataMessage ( params ) ; InventoryItem inventoryItem = new InventoryItem ( InventoryItem . ...
Fix the getBlock method to use the correct message type
<nb> public class JavaSourceProcessor extends BaseSourceProcessor { javaTerms . add ( javaTerm ) ; } - SINGLE + newContent = sortJavaTerms ( fileName , content , javaTerms ) ; newContent = fixTabsAndIncorrectEmptyLines ( newContent , javaTerms ) ; }
Revert Temp disable SFormatter for java terms since it breaks registry api
<nb> public class FacetUtil { return FacetManagerImpl . createFacet ( type , module , type . getDefaultFacetName ( ) , type . createDefaultConfiguration ( ) , underlying ) ; } + public static < F extends Facet > F addFacet ( FacetType < F , ? > type , Module module , final Facet underlying ) { + final Modifia...
adding facet facility
<nb> public class DefaultGitHubDownloadsRepository implements GitHubDownloadsReposito applyCredentialsTo ( repository . getCredentials ( ) ) ; ArtifactRepositoryInternal repositoryInternal = toArtifactRepositoryInternal ( repository ) ; + SINGLE + SINGLE MavenResolver resolver = toMavenResolver ( repository...
Added a TODO in the Github repo implementation we should avoid making plugins depend on the core impl
<nb> final class ConfiguredTargetFunction implements SkyFunction { boolean ok = ! env . valuesMissing ( ) ; String message = null ; Iterable < SkyKey > depKeys = Iterables . transform ( deps , TO_KEYS ) ; - SINGLE - SINGLE Map < SkyKey , ValueOrException2 < NoSuchTargetException , NoSuchPackageException >...
Remove stale comment
<nb> public abstract class PyElementGenerator { COMMENT COMMENT COMMENT - @ nullable public abstract PyExpression createExpressionFromText ( String text ) ; - @ nullable public abstract PyExpression createExpressionFromText ( final LanguageLevel languageLevel , String text ) ; public abstract PsiEle...
remove unhelpful Nullable annotation
<nb> public class GitCommandResult { @ notnull public String getErrorOutputAsHtmlString ( ) { - return StringUtil . join ( cleanup ( myErrorOutput ) , STRING0 ) ; + SINGLE + List < String > outputToDisplay = myErrorOutput . isEmpty ( ) && ! success ( ) ? myOutput : myErrorOutput ; + return StringUtil . jo...
git if error output is empty display the stdout to avoid displaying empty message to the user
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MergeDialogCustomizer { } } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public @ notnull String getMultipleFileDialogTit...
customize window title
<nb> public abstract class AbstractColorsScheme implements EditorColorsScheme { attr . setErrorStripeColor ( defaultColor ) ; } } - private static final Map < String , Color > DEFAULT_ERROR_STRIPE_COLOR = new THashMap < String , Color > ( ) ; + public static final Map < String , Color > DEFAULT_ERROR_STRIPE_C...
make public for Upsource
<nb> public class OHazelcastDistributedDatabase implements ODistributedDatabase { try { iCallback . call ( ) ; } catch ( Exception e ) { - new ODistributedException ( e ) ; + throw new ODistributedException ( e ) ; } setOnline ( ) ; <nb> public class ODistributedResponseManager { SINGLE if ( gro...
Fixed bugs found by FindBugs tool
<nb> public class UserNoteBlock extends NoteBlock { if ( event . getActionMasked ( ) == MotionEvent . ACTION_UP && mGravatarClickedListener != null ) { SINGLE SINGLE - long siteId = Long . valueOf ( JSONUtil . queryJSON ( getNoteData ( ) , STRING0 , STRING1 ) ) ; - long userId = Long . valueOf ( JSONUtil . qu...
Corrected JSON query to be a long when retrieving blogId sideId
<nb> public class EpisodeDetailsFragment extends SherlockListFragment implements case R . id . menu_manage_lists : { ListsDialogFragment . showListsDialog ( String . valueOf ( getEpisodeId ( ) ) , NUMBER0 , getFragmentManager ( ) ) ; - fireTrackerEvent ( STRING0 ) ; return true ; } } <nb> public class S...
Remove useless tracking dialogs handle that themselves
<nb> public class RequestProcessor { } public void removeSpiceServiceListener ( final SpiceServiceServiceListener spiceServiceServiceListener ) { - this . spiceServiceListenerSet . add ( spiceServiceServiceListener ) ; + this . spiceServiceListenerSet . remove ( spiceServiceServiceListener ) ; } protect...
Fix RequestProcessor removeSpiceServiceListener to actually remove listener rather than adding it again
<nb> public class LockSettingsService extends ILockSettings . Stub { private static final String [ ] READ_PASSWORD_PROTECTED_SETTINGS = new String [ ] { LockPatternUtils . LOCK_PASSWORD_SALT_KEY , LockPatternUtils . PASSWORD_HISTORY_KEY , + LockPatternUtils . PASSWORD_TYPE_KEY , } ; private static final S...
Prevent non platform apps from reading password type
<nb> public class StringUtil { @ notnull private static String toTitleCase ( @ notnull String s , @ notnull String [ ] prepositions ) { - StringBuffer buffer = null ; + StringBuilder buffer = null ; for ( int i = NUMBER0 ; i < s . length ( ) ; i ++ ) { char prevChar = i == NUMBER0 ? STRING0 : s . charAt (...
string buffer no more
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class StartupInfoLogger { message . append ( getApplicationName ( ) ) ; message . append ( STRING0 ) ; message . append ( stopWatch . getTotalTimeSeconds ( ) ) ; - messa...
Add JVM uptime to startup info log output
<nb> COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed package documentation to not reference Factory
<nb> public class DownloadService extends Service { if ( bigText != null ) { notificationCompatBuilder . setStyle ( new NotificationCompat . BigTextStyle ( ) . bigText ( bigText . toString ( ) ) ) ; } - notificationCompatBuilder . setColor ( NUMBER0 ) ; return notificationCompatBuilder . build ( ) ; } ret...
Removed notificationCompatBuilder setColor as it s not necessary and shouldn t have been committed
<nb> public abstract class ProcessorDefinition < Type extends ProcessorDefinition > exte SINGLE SINGLE SINGLE - if ( this instanceof TryDefinition ) { + ProcessorDefinition defn = ( ProcessorDefinition ) this ; + if ( defn instanceof TryDefinition ) { popBlock ( ) ; } <nb> public abstract class Proc...
Add back some weird syntax that may actually be required for AIX
<nb> class DisplayContent { COMMENT COMMENT + task . getDimBounds ( mTmpRect ) ; + if ( task == focusedTask ) { addBackFocusedTask = true ; mTmpRect2 . set ( mTmpRect ) ; <nb> class DisplayContent { final boolean isFreeformed = task . inFreeformWorkspace ( ) ; if ( task != focusedTask || isFreef...
Fixed logic error when calculating window touch exclude region
<nb> public class StackScrollAlgorithm { View child = algorithmState . visibleChildren . get ( i ) ; StackScrollState . ViewState childViewState = resultState . getViewStateForView ( child ) ; childViewState . dimmed = dimmed ; - childViewState . scale = ! dimmed || activatedChild == child + boolean isActivat...
Added card elevation when card is clicked on the lockscreen
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT public class Label extends Widget {
Fix Label docs
<nb> public class MavenDomProjectProcessorUtils { final Set < MavenDomDependency > usages = new HashSet < MavenDomDependency > ( ) ; Processor < MavenDomProjectModel > collectProcessor = new Processor < MavenDomProjectModel > ( ) { public boolean process ( MavenDomProjectModel mavenDomProjectModel ) { - if ( ! ...
IDEA does not recognize managed dependencies usage in current pom xml
<nb> public class DataImportDataActiveColumn extends JavaScriptObject } - * / ; public final native String getName ( ) COMMENT - COMMENT + COMMENT COMMENT ; }
enable getName in data import column to handle cases where the serializer returns a single element array
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MergeFromTheirsResolver { @ notnull private static FilePath rebasePath ( @ notnull FilePath oldBase , @ notnull FilePath ...
svn Explicitly assert not null
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class ToolWindowManagerImpl extends ToolWindowManagerEx implements existing . hide ( ) ; } - if ( NotificationsManagerI...
display toolwindow popups independently of log visibility for now
<nb> public class TitlePageIndicator extends View implements PageIndicator { ArrayList < RectF > bounds = calculateAllBounds ( mPaintText ) ; SINGLE - if ( mCurrentPage >= bounds . size ( ) ) { + if ( mCurrentPage > bounds . size ( ) ) { setCurrentItem ( bounds . size ( ) - NUMBER0 ) ; }
Removed the equal sign which caused a FC when mCurrentPage was equal to bounds size
<nb> public class AUC extends Request2 { STRING0 + STRING1 + STRING2 + - STRING3 + - STRING4 + + STRING5 + _fprs . length + STRING6 + + STRING7 + _fprs . length + STRING8 + STRING9 + STRING10 + STRING11 +
Fix mouseover for AUC plot
<nb> public class MismatchedCollectionQueryUpdateInspection InspectionGadgetsBundle . message ( STRING0 ) ) ) ; final JScrollPane scrollPane1 = ScrollPaneFactory . createScrollPane ( table1 ) ; + UiUtils . setScrollPaneSize ( scrollPane1 , NUMBER0 , NUMBER1 ) ; final ActionToolbar toolbar1 = UiUtils . createA...
set scrollpane size
<nb> public class ObjectArrayTypeInfo < T , C > extends TypeInformation < T > { return new ObjectArrayTypeInfo < T , C > ( type , genericArray . getGenericComponentType ( ) , componentInfo ) ; } SINGLE - else if ( type instanceof Class < ? > && ( ( Class < ? > ) type ) . isArray ( ) && Tuple . class . isAssigna...
Change ObjectArrayTypeInfo getInfoFor to use componentInfo isTupleType
<nb> public class LFWDataSetIterator extends BaseDatasetIterator { } public LFWDataSetIterator ( int batch , int numExamples , int imageHeight , int imageWidth ) { - super ( batch , numExamples , new LFWDataFetcher ( imageHeight , imageWidth ) ) ; + super ( batch , numExamples , new LFWDataFetcher ( imageWidt...
fixed a wrong params order
<nb> public class HikariPool implements HikariPoolMBean , IBagStateListener COMMENT COMMENT COMMENT - private void abortActiveConnections ( final ExecutorService assassinExecutor ) throws InterruptedException + private void abortActiveConnections ( final ExecutorService assassinExecutor ) { for ( PoolBagE...
Remove dead code
<nb> public class AssetFileNode extends LazyLoadingTreeNode implements StructNode { header = asset . getHeader ( ) ; - addTypes ( asset ) ; + if ( ! asset . isStandalone ( ) ) { + addTypes ( asset ) ; + } addObjects ( asset ) ; addReferences ( asset ) ; } catch ( IOException ex ) {
Only add type nodes if it s not a standalone asset
<nb> public class TestMethodExpressionImpl extends TestCase { assertEquals ( STRING0 , me2 . invoke ( context , null ) ) ; assertEquals ( STRING0 , me2 . invoke ( context , new Object [ ] { STRING1 } ) ) ; assertEquals ( STRING2 , me3 . invoke ( context , new Object [ ] { STRING1 } ) ) ; + assertEquals ( STRING...
Add some checks that nulls are handled correctly
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ModuleServiceManager { } public static < T > T getService ( @ notnull Module module , @ notnull Class < T > serviceClass ) { - return ( T ) module . getPicoContainer ( ) . getComponentInstance ( serviceClass . getName ( ) )...
allow com intellij openapi roots impl ModuleRootManagerImpl getFileIndex to work in upsource
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT COMMENT <nb> public interface DaemonConnector { public DaemonConnection connect ( ) ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public DaemonRegistry getDaemonRegistry ( ) ; - - COMMENT COMMENT COMM...
Don t expose the registry
<nb> public class CdiComponentProvider implements ComponentProvider , Extension { @ override public void done ( ) { - bindHk2ClassAnalyzer ( ) ; - bindWaeRestoringExceptionMapper ( ) ; + if ( beanManager != null ) { + bindHk2ClassAnalyzer ( ) ; + bindWaeRestoringExceptionMapper ( ) ; + } } priva...
avoid CDI factory bindings when CDI bean manager is not available
<nb> public class SpecialFiles { filesCompiledWithoutStdLib . add ( STRING0 ) ; SINGLE filesCompiledWithoutStdLib . add ( STRING1 ) ; SINGLE filesCompiledWithoutStdLib . add ( STRING2 ) ; SINGLE + filesCompiledWithoutStdLib . add ( STRING3 ) ; SINGLE filesCompiledWithoutStdLib . add ( STRING4 ) ; SINGLE }
Fix tests on android
<nb> public class FunctionType extends PrototypeObjectType { COMMENT COMMENT public void setSource ( Node source ) { - if ( null == source ) { - prototypeSlot = null ; + if ( prototypeSlot != null ) { + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + if ( source == null || prototypeSlot . getNode (...
fixed error in dropping prototypeSlot
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <nb> final class SharedPreferencesCollector { sharedPrefs . put ( STRING0 , PreferenceManager . getDefaultSharedPreferences ( context ) ) ; SINGLE - final Set < String ...
remove redundant local variable
<nb> public class SentimentModel implements Serializable { this . wordVectors = Generics . newTreeMap ( ) ; for ( String word : words ) { SINGLE - SimpleMatrix vector = SimpleMatrix . random ( numHid , NUMBER0 , - FLOAT0 / Math . sqrt ( ( double ) numHid ) , FLOAT0 / Math . sqrt ( ( double ) numHid ) , rand ) ;...
Fix a bug in the word vector initialization
<nb> public class JpsKotlinCompilerSettings extends JpsElementBase < JpsKotlinCompilerS static final JpsElementChildRole < JpsKotlinCompilerSettings > ROLE = JpsElementChildRoleBase . create ( STRING0 ) ; @ notnull - public CommonCompilerArguments commonCompilerSettings = new CommonCompilerArguments . DummyImpl...
Make private all fields in JpsKotlinCompilerSettings
<nb> import NAMESPACE ; public class RatpackWebContext implements WebContext { private final Context context ; private String responseContent = STRING0 ; - private String redirectLocation ; private Form form ; COMMENT <nb> public class RatpackWebContext implements WebContext { } public void sendRe...
Remove unused field from RatpackWebContext
<nb> public class PostgresFullPrunedBlockStore implements FullPrunedBlockStore { private synchronized void maybeConnect ( ) throws BlockStoreException { try { - if ( conn . get ( ) != null ) + if ( conn . get ( ) != null && ! conn . get ( ) . isClosed ( ) ) return ; Properties props = new Properties ( )...
Added check to determine if the DB connection has been closed
<nb> public class TestLexerAttributes extends BaseTest { int start = output . indexOf ( STRING0 ) ; int end = output . lastIndexOf ( STRING0 ) ; String snippet = output . substring ( start + NUMBER0 , end ) ; - assertEquals ( STRING1 , snippet ) ; + assertEquals ( STRING2 , snippet ) ; } }
Fix unit test
<nb> public class LeftCurlyCheck COMMENT public static final String MSG_KEY_LINE_BREAK_AFTER = STRING0 ; - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - private static final int DEFAULT_MAX_LINE_LENGTH = NUMBER0 ; - - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - @ supp...
Remove unused field
<nb> public abstract class EditorGutterComponentEx extends JComponent implements Edit public abstract void setLineNumberConvertor ( @ notnull TIntFunction lineNumberConvertor ) ; - public abstract void setLineNumberConvertor ( @ notnull TIntFunction lineNumberConvertor1 , @ notnull TIntFunction lineNumberConver...
simplify editor gutter API
<nb> import NAMESPACE ; public class RelaunchClassLoader extends URLClassLoader { - SINGLE - private static String [ ] excludedPackages = new String [ NUMBER0 ] ; - SINGLE - private static String [ ] transformerExclusions = new String [ NUMBER0 ] ; - private List < URL > sources ; private ClassLoade...
Remove old NEI CCC compatibility code and other classloading tweaks
<nb> class BluetoothEventLoop { mBluetoothService . cancelPairingUserInput ( address ) ; return null ; } - SINGLE - SINGLE - mBluetoothService . getBondState ( ) . setBondState ( address , BluetoothDevice . BOND_BONDING ) ; + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + if ( mBluetoothService . ...
Set BondState to Bonding only if it not Bonded already
<nb> public class Fluid } COMMENT + COMMENT + COMMENT + public String getUnlocalizedName ( FluidStack stack ) + { + return this . getUnlocalizedName ( ) ; + } + + COMMENT COMMENT COMMENT public String getUnlocalizedName ( ) <nb> public class FluidStack return FluidRegistry . getFluid ( f...
Adds getLocalizedName and getUnlocalizedName to FluidStack
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ;
Add missing license header for DefaultApplicationLike
<nb> public class TieredBlockStore implements BlockStore { } try { moveBlockNoLock ( blockId , newLocation ) ; + blockMeta = mMetaManager . getBlockMeta ( blockId ) ; + BlockStoreLocation actualNewLocation = blockMeta . getBlockLocation ( ) ; for ( BlockMetaEventListener listener : mMetaEventListeners ) { ...
postMove will know the actual location
<nb> public class ArrayListTypeFieldDeserializer extends FieldDeserializer { final JSONLexer lexer = parser . getLexer ( ) ; if ( lexer . token ( ) != JSONToken . LBRACKET ) { - throw new JSONException ( STRING0 + JSONToken . name ( lexer . token ( ) ) ) ; + String errorMessage = STRING0 + JSONToken . name ( ...
improve error info
<nb> public class DeltaManager extends ClusterManagerBase { sendSessions ( sender , currentSessions , findSessionTimestamp ) ; } else { SINGLE + int remain = currentSessions . length ; for ( int i = NUMBER0 ; i < currentSessions . length ; i += getSendAllSessionsSize ( ) ) { int len = i + getSendAllSessions...
Remove unnecessary sleep when sending session blocks on session sync phase
<nb> public abstract class MixinEntity implements Entity , IMixinEntity { @ inject ( method = STRING0 , at = @ at ( STRING1 ) , cancellable = true ) public void onMoveEntity ( double x , double y , double z , CallbackInfo ci ) { - if ( ! this . worldObj . isRemote && SpongeHooks . checkEntitySpeed ( ( ( net . m...
Fix derp in checkEntitySpeed hook
<nb> public class CacheStoreAdapter extends BaseKeyColumnValueAdapter { @ override public void acquireLock ( StaticBuffer key , StaticBuffer column , StaticBuffer expectedValue , StoreTransaction txh ) throws StorageException { - Preconditions . checkState ( manager . getFeatures ( ) . supportsTransactions ( ) ...
reverted change but added explicit comment
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public final class ImmutableDocument implements Map < String , Object > , Serializable , Bson { + public final class...
Fix compiler warning by removing Serializable interface implementation from ImmutableDocument test class
<nb> public abstract class Spatial implements Savable , Cloneable , Collidable , Cloneab userData = new HashMap < String , Savable > ( ) ; } - if ( data instanceof Savable ) { + if ( data == null ) { + userData . remove ( key ) ; + } else if ( data instanceof Savable ) { userData . put ( key , ( Savable...
setUserData someKey null now properly removes the user data from the map
<nb> public class ConnectionsPresenter extends BasePresenter public void onExploreConnection ( ExploreConnectionEvent event ) { exploreConnection ( event . getConnection ( ) ) ; - SINGLE } } ) ; <nb> public class ConnectionsPresenter extends BasePresenter { exploredConnection_ = null ; display_ . ...
don t ensure height for explored connections
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static...
Fix test that needed to be generalized to work with Windows
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove unused class import
<nb> public class SIPAccountRegistrationWizard } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public boolean isWebSignupSupported ( ) + { + String webSignupLinkName = getWebSignupLinkName ( ) ; + + return webSignupLinkName != null && webSignupLinkName . length ( ) > NUMBER0 ; ...
Overrides a method indicating if a web signup is supported
<nb> public class GrChangeSignatureDialog extends RefactoringDialog { if ( psiClass . isInterface ( ) ) { myDelegatePanel . setVisible ( false ) ; } + + if ( myMethod . hasModifierProperty ( GrModifier . PRIVATE ) ) { + myPrivateRadioButton . setSelected ( true ) ; + } else if ( myMethod . hasModifierProp...
set visibilty radiobuttons to corret state in ChangeSignature dialog
<nb> public class MediaStreamImpl ArrayList < TransformEngine > engineChain = new ArrayList < TransformEngine > ( NUMBER0 ) ; - SINGLE - engineChain . add ( zrtpControl . getZrtpEngine ( ) ) ; + SINGLE + csrcEngine = new CsrcTransformEngine ( this ) ; + engineChain . add ( csrcEngine ) ; - SINGLE ...
Fix order of transformers in order to make zrtp work again
<nb> public final class UrlImageViewHelper { } private static void setUrlDrawable ( final Context context , final ImageView imageView , final String url , final Drawable defaultDrawable , long cacheDurationMs ) { + SINGLE + mPendingViews . remove ( imageView ) ; + if ( isNullOrEmpty ( url ) ) { if ( ima...
Disassociate imageview from any pending downloads on set
<nb> public class MainActivity extends ActionBarActivity implements FeedAdapter . OnFee } private void setupFeed ( ) { - LinearLayoutManager linearLayoutManager = new LinearLayoutManager ( this ) ; + LinearLayoutManager linearLayoutManager = new LinearLayoutManager ( this ) { + @ override + protected int ...
Fixed feed scroll stuttering after first start of app by laying out extra space in LayoutManager
<nb> import NAMESPACE ; COMMENT final class AmbientLightManager implements SensorEventListener { - private static final float TOO_DARK_LUX = FLOAT0 ; - private static final float BRIGHT_ENOUGH_LUX = FLOAT1 ; + private static final float TOO_DARK_LUX = FLOAT2 ; + private static final float BRIGHT_ENOUGH_LU...
Make light thresholds less sensitive to avoid rapid on off on some devices
<nb> public abstract class BitmapDecodeWorkerTask extends Thread { if ( AppConfig . DEBUG ) Log . d ( TAG , STRING0 ) ; } else { + if ( fileUrl == null ) { + Log . w ( TAG , STRING1 ) ; + } else { + Log . w ( TAG , STRING2 ) ; + } onInvalidFileUrl ( ) ; } endBackgroundTask ( ) ;
Added logging statements
<nb> public class ExponentiallyDecayingSample implements Sample { this . startTime = tick ( ) ; nextScaleTime . set ( System . nanoTime ( ) + RESCALE_THRESHOLD ) ; } finally { - lockForRescale ( ) ; + unlockForRescale ( ) ; } }
Fix the locking for ExponentiallyDecayingSample
<nb> public class ConstantsAndVariables < E > implements Serializable { public Set < String > getLabels ( ) { return labels ; } + + public void addLearnedWords ( String trainLabel , Counter < CandidatePhrase > identifiedWords ) { + if ( ! learnedWords . containsKey ( trainLabel ) ) + learnedWords . put ( ...
add learned words in already identified words
<nb> public class ActionToolbarImpl extends JPanel implements ActionToolbar { private void updateActions ( boolean now , final boolean transparentOnly , final boolean forced ) { final IdRunnable updateRunnable = new IdRunnable ( this ) { public void run ( ) { + if ( ! isVisible ( ) ) { + return ; + } + ...
don t update actions on an already hidden toolbar
<nb> public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { COMMENT COMMENT COMMENT + COMMENT COMMENT public static < K , V > Map < K , V > withDefault ( Map < K , V > self , Closure init ) { return MapWithDefault . newInstance ( self , init ) ;
add missing since
<nb> class StatusPanel extends JPanel { JButton removeButton ; public StatusPanel ( ) { + label = new JLabel ( STRING0 ) ; installButton = new JButton ( STRING1 ) ; installProgressBar = new JProgressBar ( ) ; - upadteLabel = new JLabel ( STRING2 ) ; + upadteLabel = new JLabel ( STRING3 ) ; upadteBut...
added update label to linksize
<nb> public class Main extends SimpleApplication { public void simpleInitApp ( ) { Box b = new Box ( Vector3f . ZERO , NUMBER0 , NUMBER0 , NUMBER0 ) ; Geometry geom = new Geometry ( STRING0 , b ) ; - geom . updateModelBound ( ) ; Material mat = new Material ( assetManager , STRING1 ) ; mat . setColor ( ST...
remove updateModelBounds call from BasicGame template
<nb> public class PythonPsiManager extends AbstractProjectComponent implements PsiTre } public void treeChanged ( PsiTreeChangeEventImpl event ) { + if ( ! ( event . getFile ( ) instanceof PyFile ) ) return ; boolean changedInsideCodeBlock = false ; switch ( event . getCode ( ) ) { <nb> public class Pyt...
send non physical change event track invalidation of elements in JavaResolveCache
<nb> public final class IndexService extends AbstractIndexComponent implements IndexC this . listeners [ NUMBER0 ] = slowLog ; System . arraycopy ( listenersIn , NUMBER0 , this . listeners , NUMBER1 , listenersIn . length ) ; SINGLE - this . fsyncTask = indexSettings . getTranslogDurability ( ) == Translog . Du...
apply feedback from mikemccand
<nb> public abstract class TileBuildCraft extends TileEntity implements IEnergyHandle if ( worldObj != null ) return ; CrashReport crash = new CrashReport ( STRING0 , new NullPointerException ( STRING1 ) ) ; - CrashReportCategory cat = crash . makeCategory ( STRING2 ) ; - cat . addCrashSection ( STRING3 , get...
Improve the crash report
<nb> public abstract class Chart < T extends ChartData < ? extends IDataSet < ? extends Ent mInfoPaint . setTextAlign ( Align . CENTER ) ; mInfoPaint . setTextSize ( Utils . convertDpToPixel ( NUMBER0 f ) ) ; - mDrawPaint = new Paint ( Paint . DITHER_FLAG ) ; - if ( mLogEnabled ) Log . i ( STRING0 , STRIN...
Remove unused mDrawPaint instance
<nb> public class MiniAapt implements Step { String rawRType = resourceName . substring ( NUMBER0 , slashPosition ) ; String name = resourceName . substring ( slashPosition + NUMBER0 ) ; - if ( name . startsWith ( STRING0 ) ) { + String nodeName = nodesUsingIds . item ( i ) . getNodeName ( ) ; + if ( name ....
Skip parsing android tools attributes in layout
<nb> import NAMESPACE ; COMMENT public abstract class AbstractModelRootElement < E extends AbstractModelRootElement < E > > extends AbstractModelElement < E > { + private static final long serialVersionUID = NUMBER0 ; + private final QName elementName ; COMMENT
Add missing serialVersionUID
<nb> public class StackFrameProxyImpl extends JdiProxy implements StackFrameProxy { checkValid ( ) ; if ( myIsObsolete == null ) { try { - boolean isObsolete = ( getVirtualMachine ( ) . versionHigher ( STRING0 ) && location ( ) . method ( ) . isObsolete ( ) ) ; + boolean isObsolete = ( getVirtualMachine ( ) ....
fixing improper usage of optional debug API isObsolete
<nb> public class StanfordCoreNLP extends AnnotationPipeline { COMMENT COMMENT public static boolean usesBinaryTrees ( Properties props ) { - Set < String > annoNames = Generics . newHashSet ( Arrays . asList ( getRequiredProperty ( props , STRING0 ) . split ( STRING1 ) ) ) ; + Set < String > annoNames = Gene...
set usesBinaryTrees to default false
<nb> public class CompilationTestHelper { COMMENT COMMENT COMMENT - public void assertCompileSucceedsWithMessages ( File source ) { - assertCompileSucceeds ( ImmutableList . of ( source ) ) ; + public void assertCompileSucceedsWithMessages ( File source ) throws IOException { + assertCompileSucceedsWithMe...
Fix bug in CompilationTestHelper
<nb> public class Skin implements Disposable { if ( tiled != null ) return tiled ; Drawable drawable = optional ( name , Drawable . class ) ; - if ( tiled != null ) { + if ( drawable != null ) { if ( ! ( drawable instanceof TiledDrawable ) ) { throw new GdxRuntimeException ( STRING0 + name + STRING1 + d...
Fixed Skin getTiledDrawable
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class AddAutoIncrementChange extends AbstractChange { } return result ; - } catch ( Throwable e ) { - SINGLE - throw new RuntimeException ( e ) ; ...
Throw exception to debug build issue
<nb> public final class Rule { } public Rule setUniqueKey ( String repositoryKey , String key ) { - return setRepositoryKey ( repositoryKey ) . setKey ( key ) ; + return setRepositoryKey ( repositoryKey ) . setKey ( key ) . setConfigKey ( key ) ; } public Cardinality getCardinality ( ) {
the rule setUniqueKey String repositoryKey String key also feed the mandatory configKey property with the value of the key
<nb> import NAMESPACE ; COMMENT @ runwith ( RobolectricTestRunner . class ) public abstract class AbstractTimePickerAttributeTest { - private TimePicker view ; + protected TimePicker view ; protected MockTimePickerListeners viewListeners ; @ before <nb> package NAMESPACE ; - import NAMESPACE ; i...
Fixed getView to return the correct type on timeChangedEvent
<nb> public class HttpReceiverOverHTTP extends HttpReceiver implements HttpParser . Res public void earlyEOF ( ) { HttpExchange exchange = getHttpExchange ( ) ; + HttpConnectionOverHTTP connection = getHttpConnection ( ) ; if ( exchange == null ) - getHttpConnection ( ) . close ( ) ; + connection . close ...
Improved exception reporting
<nb> public class Preloader { for ( int i = NUMBER0 ; i < assets . size ; i ++ ) { final Asset asset = assets . get ( i ) ; - if ( contains ( asset . url ) ) continue ; + if ( contains ( asset . url ) ) { + asset . loaded = asset . size ; + asset . succeed = true ; + continue ; + } loader . load (...
Set succeed when skipping already preloaded asset
<nb> public class SettingsDialog { false ) ; boolean extra = PrivacyManager . getSettingBool ( null , context , uid , PrivacyManager . cSettingExtraUsage , false , false ) ; - final boolean expert = dangerous || usage || extra ; + final boolean expert = ( dangerous || usage || extra ) ; boolean log = Privac...
I like parentheses
<nb> public class IgnitedLastKnownLocationAsyncTask extends AsyncTask < Boolean , Void , } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public IgnitedLastKnownLocationAsyncTask ( Context context ) { + this ( context , IgnitedLocationConstants . LOCATION_UPDATES_DISTANCE_DI...
Added simpler constructor that uses default location updates distance diff and interval
<nb> public class PostUploadService extends Service { private void setUploadPostErrorMessage ( Exception e ) { mErrorMessage = String . format ( mContext . getResources ( ) . getText ( R . string . error_upload ) . toString ( ) , mPost . isPage ( ) ? mContext . getResources ( ) . getText ( R . string . page ) . t...
added hyphen for error readabiltiy
<nb> public class CamelCaseFunctionNameSanitizer implements FunctionNameSanitizer { } private String capitalize ( String line ) { - return Character . toUpperCase ( line . charAt ( NUMBER0 ) ) + line . substring ( NUMBER1 ) ; + return line . length ( ) > NUMBER0 ? Character . toUpperCase ( line . charAt ( NUM...
Fix exception in snippet generator