diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class PanelView extends FrameLayout { private final Runnable mStopAnimator = new Runnable ( ) { public void run ( ) { if ( mTimeAnimator . isStarted ( ) ) { mTimeAnimator . end ( ) ; + mRubberbanding = false ; } } } ;
Fix notification panel bug which prevented proper resizing
<nb> public class MutableMethodImplementation implements MethodImplementation { case SparseSwitchPayload : setInstruction ( location , newBuilderSparseSwitchPayload ( location , codeAddressToIndex , ( SparseSwitchPayload ) instruction ) ) ; + return ; case ArrayPayload : setInstruction ( location , newBuild...
Fix accidental case fall throughs in MutableMethodImplementation
<nb> public class CreateSegmentCommand extends AbstractBaseCommand implements Command } - ExecutorService executor = Executors . newCachedThreadPool ( ) ; + ExecutorService executor = Executors . newFixedThreadPool ( Runtime . getRuntime ( ) . availableProcessors ( ) ) ; int cnt = NUMBER0 ; for ( final ...
Use available number of threads
<nb> public class BikeRentalUpdater implements Runnable { service . addStation ( station ) ; String id = station . id ; stationSet . add ( station ) ; - BikeRentalStationVertex vertex = verticesByStation . get ( id ) ; + BikeRentalStationVertex vertex = verticesByStation . get ( station ) ; if ( vertex == n...
prevent bike rental updater from producing dup vertices
<nb> public class BeaconConfigFragment extends Fragment implements TextView . OnEditorA scanLeDevice ( false ) ; mUriBeaconConfig = new UriBeaconConfig ( getActivity ( ) , new UriBeaconConfigCallback ( ) , filteredUuid ) ; - if ( mUriBeaconConfig != null ) { - mNearestDevice = scanResult . getDevice ( ) ; -...
Remove useless if condition
<nb> public class OHazelcastDistributedDatabase implements ODistributedDatabase { ODistributedRequest req = null ; if ( waitForTaskType == null && ! skippedMessages . isEmpty ( ) ) + SINGLE req = skippedMessages . remove ( NUMBER0 ) ; if ( req == null ) <nb> public class OHazelcastPlugin extends ODistri...
fixed synchronization problems
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; + public class StartupLoggingIT extends ExclusiveServerTestBase { @ test <nb> public class StartupLoggingIT extends Exclusiv...
Fix StartupLoggingIT for Windows
<nb> import NAMESPACE ; COMMENT public abstract class AbstractAuthenticationManager implements AuthenticationManager { - COMMENT - protected static Pair < AuthenticationHandler , Principal > VOID_PRINCIPAL = - new Pair < AuthenticationHandler , Principal > ( null , null ) ; - COMMENT protected final L...
Remove unused variable
<nb> public class CopyFilesOrDirectoriesDialog extends DialogWrapper { PsiFile file = ( PsiFile ) elements [ NUMBER0 ] ; String url = shortenPath ( file . getVirtualFile ( ) ) ; text = RefactoringBundle . message ( doClone ? STRING0 : STRING1 , url ) ; - final String fileName = file . getName ( ) ; + SINGLE ...
forbidden default name
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <nb> import static NAMESPACE ; public class HunspellServiceTests extends AbstractNodesTests { - @ after...
fixed hunspell test to clean up properly this time for realz
<nb> public final class RingBuffer < E > implements Cursored , DataProvider < E > COMMENT COMMENT COMMENT - public E claimAndget ( long sequence ) + public E claimAndGetPreallocated ( long sequence ) { sequencer . claim ( sequence ) ; return get ( sequence ) ;
Fix a broken rename refactoring
<nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; <nb> public final class Strings { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class Strings { COMMENT COMMEN...
Remove import for java util Formatter since it s needed only for the javadoc
<nb> public enum ReflectiveConfigOptionLoader { STRING0 , STRING1 , STRING2 , + STRING3 , STRING4 , STRING5 , STRING6 ,
Add SolrIndex to reflective opt loader fast path
<nb> public class EditPreferences extends TodorooPreferenceActivity { public void addPreferenceListeners ( ) { findPreference ( getString ( R . string . p_theme ) ) . setOnPreferenceChangeListener ( new SetResultOnPreferenceChangeListener ( RESULT_CODE_PERFORMANCE_PREF_CHANGED ) ) ; + findPreference ( getString...
Font size change should trigger a refresh
<nb> public final class BluetoothLeAdvertiser { AdvertiseCallback . ADVERTISE_FAILED_FEATURE_UNSUPPORTED ) ; return ; } - if ( totalBytes ( advertiseData ) > MAX_ADVERTISING_DATA_BYTES || - totalBytes ( scanResponse ) > MAX_ADVERTISING_DATA_BYTES ) { + boolean isConnectable = settings . isConnectable ( ) ; ...
Increasing advertise data size on
<nb> public class RealmResults < E extends RealmObject > extends AbstractList < E > { COMMENT @ override public int indexOf ( Object o ) { - throw new NoSuchMethodError ( ) ; + throw new NoSuchMethodError ( STRING0 ) ; } COMMENT
Adding an error message
<nb> public class ThinkDifferent { static public void setIconImage ( Image image ) { application . setDockIconImage ( image ) ; } + + + SINGLE + SINGLE + SINGLE + SINGLE }
thought we might need this but no
<nb> return width * ( NUMBER0 + ox ) / FLOAT0 ; setFramebuffer ( offscreenFramebuffer ) ; } - drawTexture ( texture , texCrop , NUMBER1 , NUMBER1 , width , height ) ; + drawTexture ( ) ; if ( notCurrent ) { popFramebuffer ( ) ; <nb> return width * ( NUMBER0 + ox ) / FLOAT0 ; if ( notCurrent ) { pu...
using drawTexture method
<nb> public final class Versioned < T > implements Serializable { private static final long serialVersionUID = NUMBER0 ; - private VectorClock version ; + private final VectorClock version ; private volatile T object ; public Versioned ( T object ) {
Make version final
<nb> public class StatusBarManagerService extends IStatusBarService . Stub { COMMENT @ override public void disable2 ( int what , IBinder token , String pkg ) { - disableForUser ( what , token , pkg , mCurrentUserId ) ; + disable2ForUser ( what , token , pkg , mCurrentUserId ) ; } COMMENT
Fix disable2 bug
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class InitBaseProjectTypeHandler implements ProjectInitHandler { NotFoundException { List < String > projects = projectRegistry . getProjects ( proj...
base project initializer should change only detected projects
<nb> public class SubtableTest extends AbstractTest { assertTrue ( phones . isValid ( ) ) ; employees . remove ( NUMBER0 ) ; - assertFalse ( phones . isValid ( ) ) ; + assertFalse ( ! phones . isValid ( ) ) ; } }
Fixed failing test to match new expected functionality in core
<nb> public class OneToOneCallPeerPanel COMMENT private final JLabel photoLabel ; - private boolean localVideoVisible = true ; - private final UIVideoHandler videoHandler ; COMMENT <nb> public class OneToOneCallPeerPanel COMMENT public boolean isLocalVideoVisible ( ) { - return localVideoVisib...
Fixes show hide local video button
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class ImplicitKey extends EmptyRelationType implements SystemRelationType } else { assert this == TIMESTAMP || this == TTL ; Long time = r . getPropertyDirect ( thi...
Fixed compile time issues from merge
<nb> class JDBCHistoryCache implements HistoryCache { SINGLE int changeset = rs . getInt ( NUMBER0 ) ; filePS . setInt ( NUMBER1 , changeset ) ; - ResultSet fileRS = filePS . executeQuery ( ) ; + ResultSet fileRS = filePS . executeQuery ( ) ; SINGLE + SINGLE + SINGLE + SINGLE try { while ( fileRS . ...
Disable broken PMD check in JDBCHistoryCache getHistory
<nb> public class Response < T > releaser . release ( ) ; } } + + public static final Response < Void > EMPTY = new Response < Void > ( null , new StoreId ( - NUMBER0 , - NUMBER0 , - NUMBER0 ) , + TransactionStream . EMPTY , ResourceReleaser . NO_OP ) ; }
Adds an empty Response
<nb> class WindowStateAnimator { SINGLE mTmpSize . left -= scale * attrs . surfaceInsets . left ; mTmpSize . top -= scale * attrs . surfaceInsets . top ; - mTmpSize . right += scale * ( attrs . surfaceInsets . left + attrs . surfaceInsets . right ) ; - mTmpSize . bottom += scale * ( attrs . surfaceInsets . to...
Fix surfaceInset adjustment
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix missing imports
<nb> public class ReaderPostDetailFragment extends Fragment @ override public void onScrollCompleted ( ) { - if ( ! mIsToolbarShowing && ! mScrollView . canScrollDown ( ) ) { + if ( ! mIsToolbarShowing + && ( ! mScrollView . canScrollDown ( ) || ! mScrollView . canScrollUp ( ) ) ) { showToolbar ( true ) ;...
Ensure toolbar re appears when scroll completed and user can t scroll up OR can t scroll down
<nb> class Neg < T > extends AbstractField < T > { SQLDialect family = ctx . configuration ( ) . dialect ( ) . family ( ) ; if ( operator == BIT_NOT && asList ( H2 , HSQLDB ) . contains ( family ) ) { - ctx . sql ( STRING0 ) + ctx . sql ( STRING1 ) . visit ( field ) . sql ( STRING2 ) ; }
Improved formatting of bitnot emulation
<nb> public class Message extends AbstractEntity { ! message . getBody ( ) . startsWith ( ME_COMMAND ) && ! this . getBody ( ) . startsWith ( ME_COMMAND ) && ! this . bodyIsHeart ( ) && - ! message . bodyIsHeart ( ) + ! message . bodyIsHeart ( ) && + this . isTrusted ( ) == message . isTrusted ( ) ) ; }...
Don t merge messages with different trust statuses
<nb> public class LineChart extends View { private float mYMultiplier ; private float mAvailableWidth ; private float mAvailableHeight ; + private boolean mLinesOn = true ; private boolean mInterpolationOn = true ; private boolean mPointsOn = true ; private boolean mPopupsOn = true ; <nb> public class L...
Added option to draw only points
<nb> public interface PConstants { static final int ARGB = NUMBER0 ; SINGLE static final int HSB = NUMBER1 ; SINGLE static final int ALPHA = NUMBER2 ; SINGLE + static final int CMYK = NUMBER3 ; SINGLE SINGLE
adding CMYK constant for future expansion
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class PyBaseDebuggerTask extends PyExecutionFixtureTestTask { XSourcePosition position = currentSession . getCurrentPositi...
some usages of impl methods replace by API calls
<nb> public class XmlHelper { content = content . replace ( STRING0 , STRING1 ) ; content = content . replace ( STRING2 , STRING3 ) ; content = content . replace ( STRING4 , STRING5 ) ; - content = content . replaceAll ( STRING6 , STRING7 ) ; + content = content . replaceAll ( STRING8 , STRING7 ) ; return c...
don t replace n t r
<nb> public class MagicLinkRequestFragment extends Fragment { @ override public void onResponse ( JSONObject response ) { if ( mListener != null ) { + mProgressDialog . cancel ( ) ; AnalyticsTracker . track ( AnalyticsTracker . Stat . LOGIN_MAGIC_LINK_REQUESTED ) ; mListener . onMagicLinkSent ( ) ; }
cancel progress dialog on success
<nb> public abstract class DTask < T extends DTask > extends H2OCountedCompleter impleme COMMENT public boolean logVerbose ( ) { return true ; } - SINGLE - public boolean onExceptionalCompletion ( Throwable ex , CountedCompleter caller ) { - setException ( ex ) ; - return true ; - } + @ override p...
Removed onCompletion from DTask was causing issues with multiple setException invocations
<nb> public class Peer { SINGLE SINGLE SINGLE - Preconditions . checkState ( ! downloadBlockBodies ) ; + Preconditions . checkState ( ! downloadBlockBodies , toString ( ) ) ; try { for ( int i = NUMBER0 ; i < m . getBlockHeaders ( ) . size ( ) ; i ++ ) { <nb> public class Peer { SINGLE SINGLE SI...
Add some debug logging to Peer
<nb> public class Messages { return showDialog ( message , title , new String [ ] { YES_BUTTON , NO_BUTTON } , NUMBER0 , icon ) ; } + public static int showYesNoDialog ( Component parent , String message , String title , int defaultOptionIndex , int focusedOptionIndex , Icon icon ) { + return showDialog ( par...
mac focused option index for YesNo dialog
<nb> public class ActualHttpServerTest extends AbstractMocoHttpTest { } } ) ; } + + @ test + public void should_merge_http_server_without_port_for_second_server ( ) throws Exception { + httpServer = httpServer ( context ( STRING0 ) ) ; + anotherServer = httpServer ( NUMBER0 , context ( STRING1 ) ) ; +...
added test for merge http server when second server has no port
<nb> public class Condition { @ suppresswarnings ( STRING0 ) public Condition concatenateToColumn ( Object value ) { mOperation = String . format ( STRING1 , Operation . EQUALS , mColumn ) ; - if ( value != null ) { + if ( value != null && ! isRaw ) { TypeConverter typeConverter = FlowManager . getTypeConve...
added raw check to preserve raw treatment
<nb> public class InputStreamGraphSource implements GraphSource { if ( preEvict ) { synchronized ( preEvictMutex ) { if ( router != null ) { + LOG . info ( STRING0 , routerId ) ; router . shutdown ( ) ; } COMMENT <nb> public class InputStreamGraphSource implements GraphSource { if ( newRouter != null ...
Add log when evicting graph during reload
<nb> public class ShaderCheck { ShaderKey shaderKey = new ShaderKey ( techDef . getVertexShaderName ( ) , techDef . getFragmentShaderName ( ) , dl , - techDef . getShaderLanguage ( ) ) ; + techDef . getVertexShaderLanguage ( ) , + techDef . getFragmentShaderLanguage ( ) ) ; Shader shader = assetManager . ...
fixed compilation issue due to recent shaderKey change
<nb> public class GuillotineInterpolator implements TimeInterpolator { } private float secondBounce ( float t ) { - return FLOAT0 * t * t - FLOAT1 * t + FLOAT2 ; + return FLOAT0 * t * t - FLOAT3 * t + FLOAT2 ; } }
fixed angle problem
<nb> public final class Intents { public static final String RESULT_BYTE_SEGMENTS_PREFIX = STRING0 ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class CaptureManager { COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMM...
adds missing javadoc
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - - import NAMESPACE ; - public class ExecutorConfig { public final static int DEFAULT_POOL_SIZE = NUMBER0 ;
Removed unused imports
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAME...
fixed minor bug
<nb> public class SearchActivity extends Activity { android . R . interpolator . fast_out_linear_in ) ) . setListener ( null ) . start ( ) ; + if ( searchToolbar . getZ ( ) != FLOAT0 ) { + searchToolbar . animate ( ) + . z ( FLOAT0 ) + . setDuration ( NUMBER0 ) + . setInterpolator ( AnimationUtils . loa...
Reduce elevation when dismissing search
<nb> - 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 + COMMENT + COM...
Fixed CS errors
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
camel netty http Ensure CamelHttpUrl header is always using absolute http url to be consistent and similar with camel jetty
<nb> public class PipeWorldRenderer implements ISimpleBlockRenderingHandler { } private boolean shouldRenderNormalPipeSide ( PipeRenderState state , ForgeDirection direction ) { - return ! state . pipeConnectionMatrix . isConnected ( direction ) && state . facadeMatrix . getFacadeBlockId ( direction ) != NUMBER...
Fixed gate rendering
<nb> public class OHazelcastPlugin extends ODistributedAbstractPlugin try { SINGLE - SINGLE - return requestFullDatabase ( databaseName , backupDatabase , distrDatabase ) ; + return requestDatabaseDelta ( distrDatabase , databaseName ) ; } catch ( ODistributedDatabaseDeltaSyncException e ) { SINGLE ...
Restored backup of delta
<nb> public class ScheduleContract { public static final String DEFAULT_SORT = MapTileColumns . TILE_FLOOR + STRING0 ; - COMMENT + COMMENT public static Uri buildUri ( ) { return CONTENT_URI ; }
Added periods in comments for consistency
<nb> public class DefaultFileLockContentionHandler implements FileLockContentionHandl return new Runnable ( ) { public void run ( ) { try { - LOGGER . info ( STRING0 ) ; + LOGGER . debug ( STRING0 ) ; doRun ( ) ; } catch ( Throwable t ) { SINGLE LOGGER . error ( STRING1 , t ) ; } finally { - LOGGE...
Reduced log level INFO DEBUG in one place
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - - import NAMESPACE ; COMMENT COMMENT COMMENT public class ICUTest { - - public static void main ( String [ ] args ) { - S...
Fixed compilation error in test
<nb> class DrawableCompatApi22 { public static Drawable wrapForTinting ( Drawable drawable ) { SINGLE - return new DrawableWrapperLollipop ( drawable ) ; + if ( ! ( drawable instanceof DrawableWrapperLollipop ) ) { + return new DrawableWrapperLollipop ( drawable ) ; + } + return drawable ; } } <...
Fix NPE in DrawableCompat
<nb> public class IntIntMap { if ( index < lastIndex ) { keyTable [ index ] = keyTable [ lastIndex ] ; valueTable [ index ] = valueTable [ lastIndex ] ; - valueTable [ lastIndex ] = NUMBER0 ; } }
remove test code
<nb> public class CompletionProgressIndicator extends ProgressIndicatorBase implement if ( isAutopopupCompletion ( ) && ! myLookup . isSelectionTouched ( ) && ! myLookup . isCalculating ( ) ) { myLookup . refreshUi ( ) ; final List < LookupElement > items = myLookup . getItems ( ) ; - if ( ! items . isEmpty ( )...
hide autopopup hint on variants like null return true false
<nb> public interface MediaService COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface MediaStream public static final int BIND_RETRIES_DEFAULT_VALUE = NUMBER0 ; COMMENT - COMMENT - COMMENT - COMMENT - public static final String DISABLE_VIDEO_SUPPORT...
Adds a new MediaTarget class to use for directing streams
<nb> import NAMESPACE ; @ documented @ retention ( RetentionPolicy . SOURCE ) @ target ( { ElementType . METHOD , ElementType . TYPE , - ElementType . CONSTRUCTOR , ElementType . FIELD , - ElementType . LOCAL_VARIABLE , ElementType . PACKAGE + ElementType . CONSTRUCTOR } ) @ groovyasttransformationclass...
CompileStatic annotation should not support package target
<nb> public final class MatDefEditorlElement extends JPanel implements MultiViewEleme protected void selectionChanged ( Selectable selectable ) { MatDefNavigatorPanel nav = obj . getLookup ( ) . lookup ( MatDefNavigatorPanel . class ) ; + SINGLE + SINGLE + if ( nav == null ) { + return ; + } try { N...
fixed a NPE in the shader node editor when the navigator panel is collapsed
<nb> public class ScorePhrases < E extends Pattern > { } CandidatePhrase matchedFuzzy = null ; if ( constVars . minLen4FuzzyForPattern > NUMBER0 && ignoreWords != null ) - matchedFuzzy = ConstantsAndVariables . containsFuzzy ( ignoreWords , w . getPhrase ( ) , + matchedFuzzy = ConstantsAndVariables . contains...
fix small bug
<nb> public class WifiService extends IWifiManager . Stub { } int uid = Binder . getCallingUid ( ) ; - Long ident = Binder . clearCallingIdentity ( ) ; + final long ident = Binder . clearCallingIdentity ( ) ; try { mBatteryStats . noteWifiMulticastEnabled ( uid ) ; } catch ( RemoteException e ) { <nb>...
removing ineffective code in WifiService java
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; COMMENT <nb> public final class Varint COMMENT COMMENT COMMENT - static byte [ ] byteArrayList = new byte [ NUMBER0 ] ; - public static byte [ ] writeUnsignedVarInt (...
Make Varint writeUnsignedVarInt int thread safe
<nb> package NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class RNNTestOptions implements Serializable { public int ngramRecordSize = NUMBER0 ;
Add a comment about who wrote it
<nb> public abstract class AbstractInstrumentedFilter implements Filter { super . setStatus ( sc ) ; } + @ override + public void setStatus ( int sc , String sm ) { + httpStatus = sc ; + super . setStatus ( sc , sm ) ; + } + public int getStatus ( ) { return httpStatus ; }
Intercept HttpServletResponseWrapper setStatus int String to fix response status tracking
<nb> public class FontSizeManager @ override protected void onInit ( String value ) { + final Size DEFAULT_SIZE = Size . Pt12 ; try { - size_ = FontSizer . Size . valueOf ( value ) ; + if ( value != null ) + size_ = FontSizer . Size . valueOf ( value ) ; + else + size_ = DEFAULT_SIZE ; } catch...
Squelch error in font size settings
<nb> public class WordPress extends Application { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT private static final String USER_AGENT_APPNAME = STRING0 ; <nb> public class WordPress extends Application { mUserAgent = USER_AGENT_APPNAME + STRING1 + p...
Added Build MODEL to the user agent
<nb> public class Script { cursor = offset ; while ( cursor < offset + length ) { int opcode = readByte ( ) ; - if ( opcode >= NUMBER0 ) { - SINGLE - opcode = ( opcode < < NUMBER1 ) | readByte ( ) ; - } - if ( opcode > NUMBER2 && opcode < OP_PUSHDATA1 ) { SINGLE chunks . add ( new ScriptChunk ( fa...
Remove unused multi byte script support
<nb> public class PlayerGetItem extends RpcCall { for ( String property : properties ) { if ( property . equals ( STRING0 ) ) continue ; + if ( property . equals ( STRING1 ) ) + continue ; String paramProperty = getParamProperty ( property ) ; paramProperties . add ( paramProperty ) ; }
Enable the Player Label property to be used in an Item
<nb> public class OSQLFunctionAverage extends OSQLFunctionMathAbstract { sum = null ; for ( int i = NUMBER0 ; i < iParameters . length ; ++ i ) sum ( ( Number ) iParameters [ i ] ) ; - return getResult ( ) ; } - return null ; + return getResult ( ) ; } protected void sum ( Number value ) { <nb> ...
fixed bug on AVG function against group by
<nb> COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - CO...
Remove wrong copyright
<nb> class ServerControllerImpl extends BasicModelController implements ServerControl @ override public void handleFailed ( final ModelNode failureDescription ) { - if ( rollbackOperation == null ) { + if ( rollbackOperation == null || ! rollbackOperation . isDefined ( ) ) { delegate . handleFailed ( failur...
Don t attempt rollback when compensating op is undefined
<nb> public class StartArgs SINGLE for ( String rawlibref : module . getLibs ( ) ) { + StartLog . debug ( STRING0 + rawlibref ) ; String libref = properties . expand ( rawlibref ) ; + StartLog . debug ( STRING1 + libref ) ; if ( libref . startsWith ( STRING2 ) ) { <nb> public class StartArgs } }...
Adding more start debug for lib resolution steps
<nb> public class TieredBlockStore implements BlockStore { for ( BlockStoreEventListener listener : mBlockStoreEventListeners ) { listener . onCommitBlock ( userId , blockId , tempBlockMeta . getBlockLocation ( ) ) ; } - SINGLE - accessBlock ( userId , blockId ) ; } finally { mEvictionLock . readLock ( ) ...
Add onCommitBlock impl for LRUEvictor to avoid adding accessBlock in commitBlock in TieredBlockStore
<nb> public enum OGlobalConfiguration { SBTREEBONSAI_LINKBAG_CACHE_EVICTION_SIZE ( STRING0 , STRING1 , Integer . class , NUMBER0 ) , - SBTREEBOSAI_FREE_SPACE_REUSE_TRIGGER ( STRING2 , + SBTREEBOSAI_FREE_SPACE_REUSE_TRIGGER ( STRING3 , STRING4 , Float . class , FLOAT0 ) , SINGLE
fixed typo on param name
<nb> public class UploadFileOperation extends SyncOperation { mFile . setStoragePath ( STRING0 ) ; } else { mFile . setStoragePath ( expectedPath ) ; - File fileToMove ; + if ( temporalFile != null ) { SINGLE - fileToMove = temporalFile ; + move ( temporalFile , expectedFile ) ; } else { SINGLE - fi...
Fix deleted file update in media scanner
<nb> public class EditorWindow { doTrimSize ( limit , fileToIgnore , closeNonModifiedFilesFirst ) ; } finally { - setSelectedEditor ( selectedComposite , true ) ; + setSelectedEditor ( selectedComposite , false ) ; } }
shift Enter trimToSize rudminentary focused remaining editor fixed
<nb> public class BidirectionalRemainingWeightHeuristic implements && ! localStreetService . transferrable ( v ) ) { return Double . MAX_VALUE ; } - if ( s . isAlightedLocal ( ) || s . getNumBoardings ( ) > s . getOptions ( ) . getMaxTransfers ( ) ) { + if ( s . isAlightedLocal ( ) || ( ! s . isOnboard ( ) &&...
fix bug in early cutoff still faster
<nb> public abstract class BlockFluidBase extends Block implements IFluidBlock { return state . getValue ( LEVEL ) ; } + @ deprecated + public IBlockState getStateFromMeta ( int meta ) + { + return this . getDefaultState ( ) . withProperty ( LEVEL , meta ) ; + } + public BlockFluidBase setQuantaPerB...
Fix Forge fluids not serializing properly
<nb> public class HibernateQuery extends Query { public abstract org . hibernate . criterion . Criterion toHibernateCriterion ( Criterion criterion ) ; protected Object convertStringValue ( Object o ) { - if ( ( ! ( o instanceof String ) ) && ( o instanceof StreamCharBuffer || o instanceof CharSequence ) ) { ...
removed redundant instance of check
<nb> public class DbTester extends ExternalResource { return select ( selectSql , new NewConnectionSupplier ( ) ) ; } + public List < Map < String , Object > > select ( DbSession dbSession , String selectSql ) { + return select ( selectSql , new DbSessionConnectionSupplier ( dbSession ) ) ; + } + privat...
add DbTest select DbSession String
<nb> public final class DefaultResourcePersister implements ResourcePersister { } private void addToCache ( Resource resource , Snapshot snapshot ) { - if ( snapshot != null ) { + if ( snapshot != null && ! ResourceUtils . isLibrary ( resource ) ) { snapshotsByResource . put ( resource , snapshot ) ; reso...
Fix cache of libraries
<nb> public abstract class Parseable implements ConfigParseable { } } - private final static class ParseableInputStream extends Parseable { - final private InputStream input ; - - ParseableInputStream ( InputStream input , ConfigParseOptions options ) { - this . input = input ; - postConstruct ( optio...
remove ParseableInputStream not used
<nb> class RemoveRedundantEscapeAction implements IntentionAction { final Character v = myChar . getValue ( ) ; assert v != null ; - final ASTNode node = myChar . getNode ( ) ; + final ASTNode node = myChar . getNode ( ) . getFirstChildNode ( ) ; final ASTNode parent = node . getTreeParent ( ) ; parent . ...
fixed inconsistent PSI modification
<nb> public final class ReplaceOneModel < T > extends WriteModel < T > { COMMENT COMMENT COMMENT + COMMENT + public ReplaceOneModel ( final Object filter , final T replacement ) { + this ( filter , replacement , new UpdateOptions ( ) ) ; + } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Added constructor to ReplaceOneModel
<nb> public class FileTemplateImpl implements FileTemplate , Cloneable { public synchronized boolean isInternal ( ) { return myIsInternal ; } + + synchronized void setModified ( boolean modified ) { + myModified = modified ; + } + + synchronized void setReadOnly ( boolean readOnly ) { + myReadOnly =...
f Mhucking file templates
<nb> final class RequestWrapper extends Request { } @ override - public String servletPath ( ) - { + public String servletPath ( ) { return delegate . servletPath ( ) ; } <nb> public class RequestTest { public void shouldBeAbleToGetTheServletPath ( ) { HttpServletRequest servletRequest = new Moc...
fixed formatting stuff
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class MockitoJUnitRunner extends Runner implements Filterable { COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class MockitoJUnitRunner extends Run...
Updated the javadoc a little bit
<nb> public class MySiteFragment extends Fragment } } ) ; + SINGLE + rootView . findViewById ( R . id . row_people ) . setVisibility ( View . GONE ) ; + rootView . findViewById ( R . id . row_settings ) . setOnClickListener ( new View . OnClickListener ( ) { @ override public void onClick ( View v ) {
Removes the People button from my sites until the feature is ready
<nb> public final class XmlReader { } else { component = new RadContainer ( module , componentClass , id ) ; + + String layoutManagerName = lwContainer . getLayoutManager ( ) ; + if ( layoutManagerName == null || layoutManagerName . length ( ) == NUMBER0 ) { + layoutManagerName = UIFormXmlConstants . LAYO...
don t load layout manager for root container
<nb> public class CustomViewAbove extends ViewGroup { } private void pageScrolled ( int xpos ) { - final int widthWithMargin = getChildWidth ( mCurItem ) + mShadowWidth ; + final int widthWithMargin = getWidth ( ) ; final int position = xpos / widthWithMargin ; final int offsetPixels = xpos % widthWithMar...
Fix arithmetic error
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ ignore ( STRING0 ) public class MapListenerTest { private static final AtomicInteger ENTRIES , EXI...
Added missing annotations to MapListenerTest
<nb> public class AssertTest extends TestCase { public void testComparisonErrorMessage ( ) { ComparisonFailure failure = new ComparisonFailure ( STRING0 , STRING1 , STRING2 ) ; - assertEquals ( STRING3 , failure . getMessage ( ) ) ; + assertEquals ( STRING4 , failure . getMessage ( ) ) ; } public void t...
fixed incorrect testComparisonErrorMessage test
<nb> public class Matrix4 implements Serializable { public void getRotation ( Quaternion rotation ) { rotation . setFromMatrix ( this ) ; } + + public void getScale ( Vector3 scale ) { + scale . x = val [ M00 ] ; + scale . y = val [ M11 ] ; + scale . z = val [ M22 ] ; + } COMMENT public Matrix4 ...
Added getScale method
<nb> public class OperationSetContactCapabilitiesJabberImpl { OFFLINE_OPERATION_SETS . add ( OperationSetBasicInstantMessaging . class ) ; OFFLINE_OPERATION_SETS . add ( OperationSetMessageCorrection . class ) ; + OFFLINE_OPERATION_SETS . add ( OperationSetServerStoredContactInfo . class ) ; OPERATION_SETS_...
Shows contacts information if available even if they are offline like telephone numbers and web links
<nb> public abstract class AbstractCommonUpdateAction extends AbstractVcsAction { private void appendGroup ( final StringBuffer text , final FileGroup group ) { final int s = group . getFiles ( ) . size ( ) ; if ( s > NUMBER0 ) { - if ( text . length ( ) > NUMBER0 ) text . append ( STRING0 ) ; + text . append...
show each group on new line
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class ChangedConstantsDependencyProcessor { public void run ( ) throws CacheCorruptedException { final CacheCorruptedException [ ] _ex...
handle dumb mode when searching for changed constants using PSI
<nb> public class BeanDeserializerFactory } } if ( prop == null ) { - throw ctxt . mappingException ( STRING0 + name + STRING1 ) ; + throw ctxt . mappingException ( STRING0 + + name + STRING2 + beanDesc . getBeanClass ( ) . getName ( ) + STRING3 ) ; } builder . addCreatorProperty ( prop ) ; continue ;
improve error message
<nb> public class DriverConductor implements Agent if ( resource . hasReachedEndOfLife ( ) ) { - list . remove ( i ) ; resource . delete ( ) ; + list . remove ( i ) ; } } }
Delete resource before removing from the list