diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class WordPress extends Application { if ( WordPress . hasValidWPComCredentials ( mContext ) == false ) return false ; - if ( background == false ) + if ( background == false ) return false ; - if ( lastPingDate == null ) + background = false ; + + if ( lastPingDate == null ) return ...
Fix some style issues and reset the background variable in mustPingPushNotificationsBackend
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PsiFieldImpl extends JavaStubPsiElement < PsiFieldStub > implements Ps public PsiClass getContainingClass ( ) { PsiElemen...
decouple PsiFieldImpl from JspClass
<nb> public class MediaRouteChooserDialog extends Dialog { return mSpeakerIcon ; } String description = route . getDescription ( ) ; - if ( ! TextUtils . isEmpty ( description ) && description . contains ( STRING0 ) ) { + if ( ! TextUtils . isEmpty ( description ) && description . toLowerCase ( ) . contains (...
Ignore case when checking description for audio routes
<nb> public abstract class PGL { public static int SRC_ALPHA_SATURATE ; public static int SCISSOR_TEST ; + public static int STENCIL_TEST ; public static int DEPTH_TEST ; public static int DEPTH_WRITEMASK ; public static int ALPHA_TEST ; <nb> public class PJOGL extends PGL { SRC_ALPHA_SATURATE = GL . ...
Added STENCIL_TEST GL STENCIL_TEST field to PGL PJOGL
<nb> public class BuildCraftCore extends BuildCraftMod { SINGLE SINGLE SINGLE - if ( true ) { + if ( NEXTGEN_PREALPHA ) { return ; } <nb> public final class InterModComms { } ItemStack is = ItemStack . loadItemStackFromNBT ( recipe . getCompoundTag ( STRING0 ) ) ; if ( is != null && ! input . is...
fixed last java warnings
<nb> public class UnaliasSymbolReferences checkNotNull ( symbolAllocator , STRING0 ) ; checkNotNull ( idAllocator , STRING1 ) ; - return PlanRewriter . rewriteWith ( new Rewriter ( new HashMap < Symbol , Symbol > ( ) ) , plan ) ; + return PlanRewriter . rewriteWith ( new Rewriter ( ) , plan ) ; } privat...
Fix warnings in UnaliasSymbolReferences
<nb> public class GroupingProjector implements Projector , RowDownstreamHandle { SINGLE ramAccountingContext . addBytes ( NUMBER0 ) ; Object [ ] states = result . get ( key ) ; + ramAccountingContext . addBytes ( - NUMBER0 ) ; if ( states == null ) { states = new Object [ aggregators . length ] ; for ( in...
remove freed bytes accounted through
<nb> public enum Timestamps implements TimestampProvider { TimeUnit unit = getUnit ( ) ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + if ( unit . equals ( TimeUnit . MILLISECONDS ) ) + futureTime = futureTime ...
Add hack for millisecond sleepPast method
<nb> public final class ReportExecutor { COMMENT private void startSendingReports ( boolean onlySendSilentReports , boolean approveReportsFirst ) { if ( enabled ) { - ACRA . log . v ( LOG_TAG , STRING0 ) ; final SenderServiceStarter starter = new SenderServiceStarter ( context , config ) ; starter . startSe...
Removing extraneous log message
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DefaultTestLifecycleTest { assertTrue ( receivers . get ( NUMBER0 ) . intentFilter . matchAction ( STRING0 ) ) ; } ...
Suppress super flaky test
<nb> public class RaftInstance < MEMBER > implements LeaderLocator < MEMBER > , Inbound . Mess return currentRole ; } + public MEMBER identity ( ) + { + return myself ; + } + @ override public String toString ( ) {
Add identity to raft instance
<nb> public class JavaBuild { } ) ; for ( File sub : files ) { String relativePath = sub . getAbsolutePath ( ) . substring ( rootPath . length ( ) ) ; - System . out . println ( STRING0 + relativePath ) ; + SINGLE if ( sub . isDirectory ( ) ) { addClasses ( zos , sub , rootPath ) ; } else if ( sub ....
removing debug msgs
<nb> public class EventManager { Ln . w ( STRING0 , method . getName ( ) ) ; } } catch ( InvocationTargetException e ) { - Ln . e ( e ) ; + throw new RuntimeException ( e ) ; } catch ( IllegalAccessException e ) { throw new RuntimeException ( e ) ; }
Don t swallow invocationaccessexception
<nb> public class CompilerConfig this . interpreterEnabled = interpreterEnabled ; return this ; } - - public boolean isUseNewByteCodeGenerator ( ) - { - return useNewByteCodeGenerator ; - } - - @ config ( STRING0 ) - public CompilerConfig setUseNewByteCodeGenerator ( boolean useNewByteCodeGenerato...
Remove unused compiler new bytecode generator enabled config option
<nb> public class SettingsFragment extends PreferenceFragment implements OnPreference if ( newValue == null ) return false ; if ( preference == mEmailPreference ) { - mEmailPreference . setSummary ( newValue . toString ( ) ) ; + updateEmail ( newValue . toString ( ) ) ; } return true ; <nb> public cla...
Updating email from settings updates the server
<nb> public abstract class ZlibTest { protected abstract ZlibDecoder createDecoder ( ZlibWrapper wrapper ) ; @ test - public void testGZ ( ) throws Exception { + public void testGZIP2 ( ) throws Exception { byte [ ] bytes = STRING0 . getBytes ( CharsetUtil . UTF_8 ) ; ByteBuf data = Unpooled . wrappedBuff...
Revert bad renaming in ZlibTest
<nb> public class UnresolvedDependenciesLogger { public void log ( Collection < UnresolvedIdeRepoFileDependency > deps ) { for ( UnresolvedIdeRepoFileDependency dep : deps ) { logger . warn ( STRING0 + dep . getDisplayName ( ) ) ; + logger . debug ( STRING0 + dep . getDisplayName ( ) , dep . getProblem ( ) ) ; ...
Changed IDE plugins to log resolution failure at debug level rather than throwing it away
<nb> public class MetaContactChatPanel getChatSendPanel ( ) . getSendPanel ( ) . add ( contactSelectorBox , NUMBER0 ) ; getChatSendPanel ( ) . getSendPanel ( ) . add ( sendViaLabel , NUMBER0 ) ; - SINGLE - SINGLE - if ( protocolContact . getProtocolProvider ( ) - . getOperationSet ( OperationSetSmsMessagi...
Enable sms check box for all contacts when available
<nb> public class StoreDirect extends Store { } } + + SINGLE + freeSize . set ( - NUMBER0 ) ; } finally { structuralLock . unlock ( ) ; } <nb> public class StoreWAL extends StoreCached { walC . putLong ( NUMBER1 , NUMBER1 ) ; SINGLE walC . putLong ( NUMBER2 , NUMBER1 ) ; + SINGLE + freeSiz...
compaction resets free size
<nb> public class OConsoleDatabaseAppTest { builder . append ( STRING0 ) ; builder . append ( STRING1 ) ; - builder . append ( STRING2 ) ; + builder . append ( STRING3 ) ; builder . append ( STRING4 ) ; builder . append ( STRING5 ) ;
fixed test case on console
<nb> public class CurrentPositionHelper { if ( loc == null || loc . getAccuracy ( ) > NUMBER0 ) { return null ; } - if ( last != null && last . distanceTo ( loc ) < NUMBER1 ) { + if ( last != null && last . distanceTo ( loc ) < NUMBER2 ) { return r ; } if ( r == null ) { <nb> public class CurrentPosit...
Reduce timeout for current position
<nb> public class InteractiveShell { COMMENT COMMENT private void displayBinding ( ) { - out . println ( STRING0 ) ; + out . println ( STRING1 ) ; Binding context = shell . getContext ( ) ; Map variables = context . getVariables ( ) ; Set set = variables . keySet ( ) ;
Fix typo in output from display command
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; public class MultiGpuApp {
fixing invalid class name in MultiGpuApp example
<nb> public class Notification implements Parcelable @ deprecated public void setLatestEventInfo ( Context context , CharSequence contentTitle , CharSequence contentText , PendingIntent contentIntent ) { + SINGLE RemoteViews contentView = new RemoteViews ( context . getPackageName ( ) , R . layout . notific...
Fix crash in legacy notification construction path
<nb> public interface CommonClassNames { @ nonnls String JAVA_LANG_CLONEABLE = STRING0 ; + @ nonnls String JAVA_LANG_COMPARABLE = STRING1 ; @ nonnls String CLASS_FILE_EXTENSION = STRING2 ; @ nonnls String JAVA_LANG_STRING_SHORT = STRING3 ;
between works only with numbers should also support dates
<nb> public class TravelingSalesmanPathService implements PathService { @ autowired public GraphService graphService ; - SINGLE @ autowired - public SPTService tspSptService ; - private PathService chainedPathService ; @ override <nb> public class TravelingSalesmanPathService implements PathServic...
remove unused tspSptService autowire chained path service
<nb> public abstract class CacheChangeProcessor extends DiffRequestProcessor { public void run ( ) { refresh ( ) ; SINGLE } - } , InvokeAfterUpdateMode . BACKGROUND_CANCELLABLE , STRING0 , ModalityState . current ( ) ) ; + } , InvokeAfterUpdateMode . SILENT , STRING0 , ModalityState . current ( ) ) ; return...
do not show backgroundable for minor refresh
<nb> public class ZWaveConfigurationCommandClass extends ZWaveCommandClass { COMMENT COMMENT public ZWaveConfigurationParameterEvent ( int nodeId , ConfigurationParameter parameter ) { - super ( nodeId , NUMBER0 ) ; + super ( nodeId ) ; this . parameter = parameter ; }
Use default event constructor no endpoint required
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class RtspResponseDecoder extends RtspMessageDecoder { @ override protected HttpMessage createMess...
Fixed a bug where RtspResponseDecoder generates a request object instead of a response object
<nb> public class QueryOperators { public static final String SIZE = STRING0 ; public static final String EXISTS = STRING1 ; public static final String WHERE = STRING2 ; + public static final String NEAR = STRING3 ; }
Add NEAR QueryOperator
<nb> public class GitRepositoryReaderTest extends GitPlatformTest { } ) ; } - @ suppresswarnings ( { STRING0 , STRING1 } ) + @ suppresswarnings ( { STRING1 } ) public GitRepositoryReaderTest ( @ notnull String name , @ notnull File testDir ) { myTestCaseDir = testDir ; }
git test remove unneeded suppression
<nb> public final class PrefixList { COMMENT public PrefixList ( List < String > prefixList ) { if ( prefixList == null ) { - mInnerList = new ArrayList < String > ( NUMBER0 ) ; + mInnerList = new ArrayList < > ( NUMBER0 ) ; } else { mInnerList = prefixList ; } <nb> public final class PrefixList { C...
SMALLFIX Removed explicit parameter types in PrefixList
<nb> public class LogStatementGuardedByLogConditionInspection extends BaseInspection } final PsiStatement firstStatement = logStatements . get ( NUMBER0 ) ; final PsiElement parent = firstStatement . getParent ( ) ; + final JavaCodeStyleManager codeStyleManager = JavaCodeStyleManager . getInstance ( project ) ;...
shorten class references
<nb> public class MatParam implements Savable , Cloneable { @ override public String toString ( ) { - return type . name ( ) + STRING0 + name ; + return type . name ( ) + STRING0 + name + STRING1 + getValueAsString ( ) ; } public void apply ( Renderer r , Technique technique ) { <nb> public class Rend...
Fixed bug in RenderImageJme Texture constructor that would not take into account width height
<nb> public class AsyncWriteEngine extends EngineWrapper implements Engine { public < A > long put ( A value , Serializer < A > serializer ) { commitLock . readLock ( ) . lock ( ) ; try { - try { - Long recid = newRecids . take ( ) ; SINGLE - update ( recid , value , serializer ) ; - return recid ; - } ...
Improve AsyncWriteEngine if Prealloc Queue is empty allocate recid directly
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> final class TransactionImpl implements Transaction , TransactionSupport { for ( TransactionLog txLog : txLogs ) { futures . add ( txLog . commit ( nodeEngi...
use different exception handler if transaction type is local
<nb> public final class FrameworkSampleSource implements SampleSource { int downstreamRendererCount ) { Assertions . checkState ( Util . SDK_INT >= NUMBER0 ) ; - this . fileDescriptor = fileDescriptor ; - this . fdOffset = offset ; - this . fdLength = length ; + this . fileDescriptor = fileDescriptor ; ...
Replaced tabs with spaces
<nb> public abstract class Context { WIFI_PASSPOINT_SERVICE , WIFI_P2P_SERVICE , WIFI_SCANNING_SERVICE , + SINGLE NSD_SERVICE , AUDIO_SERVICE , MEDIA_ROUTER_SERVICE , <nb> public abstract class Context { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT <n...
Fix Ethernet documentation
<nb> public class EmailUtil { COMMENT COMMENT COMMENT - public static ReceivedEmail parseEML ( String emlContent ) throws MessagingException { + public static ReceivedEmail parseEML ( String emlContent , String charset ) throws MessagingException { Properties props = System . getProperties ( ) ; Session s...
Specify charset for the parseEml String
<nb> public class PySkeletonRefresher { private PySkeletonGenerator mySkeletonsGenerator ; - public static void refreshSkeletonsOfSdk ( @ notnull Project project , @ notnull Sdk sdk ) throws InvalidSdkException { - refreshSkeletonsOfSdk ( project , null , PythonSdkType . findSkeletonsPath ( sdk ) , new Ref < ...
Removed unused method
<nb> public abstract class Call < RequestT , ResponseT > { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT - public abstract boolean isReady ( ) ; + public boolean isReady ( ) { + return true ; + } } <nb> public abstract class ServerCall < ResponseT > { COMMENT COMMENT COMMENT + COMM...
Adding default implementation of onReady in Call and ServerCall
<nb> public class MakefileHelperTest result . addAll ( Arrays . asList ( toSplit . toString ( ) . split ( File . separator ) ) ) ; SINGLE SINGLE - if ( result . get ( NUMBER0 ) . length ( ) == NUMBER0 ) + if ( ( result . size ( ) > NUMBER0 ) + && ( result . get ( NUMBER0 ) . length ( ) == NUMBER0 ) ) { ...
Fix IndexOutOfBoundsException caused by last commit
<nb> public final class SymbolExtractor subPlanNode . accept ( this , context ) ; } + builder . addAll ( node . getOutputSymbols ( ) ) ; return null ; }
Fix SymbolExtractor implementation for UnionNode
<nb> public class PrivacyService { } } - public void setSettingInternal ( PSetting setting ) throws RemoteException { + private void setSettingInternal ( PSetting setting ) throws RemoteException { try { SQLiteDatabase db = getDatabase ( ) ;
Make method private
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix copy pasted javadoc error
<nb> public class StopTime extends Entity implements Serializable { writeStringField ( st . stop_headsign ) ; writeIntField ( st . pickup_type ) ; writeIntField ( st . drop_off_type ) ; - writeIntField ( st . timepoint ) ; writeDoubleField ( st . shape_dist_traveled ) ; + writeIntField ( st . timepoint ) ; ...
don t reverse timepoint and shape_dist_traveled
<nb> public class DataLoadProviderRegistry { COMMENT @ suppresswarnings ( STRING0 ) public < T , Z > DataLoadProvider < T , Z > get ( Class < T > dataClass , Class < Z > resourceClass ) { - GET_KEY . set ( dataClass , resourceClass ) ; - DataLoadProvider < ? , ? > result = providers . get ( GET_KEY ) ; + Da...
Fix a concurrency bug in DataLoadProviderRegistry
<nb> public class VelocityVariables { vc . put ( STRING0 , themeDisplay . getLayoutTypePortlet ( ) ) ; vc . put ( STRING1 , new Long ( themeDisplay . getPortletGroupId ( ) ) ) ; + vc . put ( STRING2 , themeDisplay . getPermissionChecker ( ) ) ; vc . put ( STRING3 , themeDisplay . getLocale ( ) ) ; vc . put ...
permissionChecker was missing in VM context
<nb> public class ICU_Delegate { return STRING0 ; } + @ layoutlibdelegate + COMMENT + return STRING0 ; + } @ layoutlibdelegate COMMENT <nb> public class BridgeXmlBlockParserTest extends TestCase { public void testXmlBlockParser ( ) throws Exception { XmlPullParser parser = ParserFactory . cr...
Add missing delegate to the layoutlib
<nb> public class TextEditingTargetNotebook private void ensureSetupChunkExecuted ( ) { SINGLE - if ( ! validateSetupChunk_ && setupCrc32_ . length ( ) > NUMBER0 ) + if ( ! validateSetupChunk_ && ! StringUtil . isNullOrEmpty ( setupCrc32_ ) ) return ; validateSetupChunk_ = false ;
allow for missing setup chunk with Run All
<nb> public class OsmandMapTileView implements IMapDownloaderCallback { for ( int i = layers . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) { layers . get ( i ) . onTouchEvent ( event , getCurrentRotatedTileBox ( ) ) ; } - final boolean wasMultiTouchinZoomMode = multiTouchSupport . isInZoomMode ( ) ; final bool...
leave out wasMultiTouchinZoomMode again for now
<nb> public class SchemaIndexDocIT extends AbstractRestFunctionalTestBase COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT @ documented @ test
Remove erroneous documentation about index status
<nb> public class FlyweightStyleExample massQuote . resetForDecode ( buffer ) ; - if ( ! massQuote . isValid ( ) ) SINGLE - { - throw new IllegalStateException ( STRING0 ) ; - } - String quoteId = massQuote . getQuoteId ( ) ; CtiCode ctiCode = massQuote . getCtiCode ( ) ; <nb> public class MassQ...
Updated samples for flyweight pattern
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Glide { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public Request < T > setPlaceholderDrawable ( Drawable drawable ) { + buil...
Add methods to set placeholders in Glide load
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class TextEditingTarget implements EditingTarget else if ( hasPackagePendingBreakpoints ) { message = STRING0 + - STRING1 + pendingPackageName + STRING2 ; + STRING1 + pendingPackageName + STRING2 ; } else {
fix some comments and alignment
<nb> public abstract class _HoloFragment extends android . support . v4 . app . Fragment impl @ override public LayoutInflater getLayoutInflater ( ) { - return getLayoutInflater ( null ) ; + return mActivity . getLayoutInflater ( ) ; } @ override
Fix StackOverflow when calling getLayoutInflater in DialogFragment
<nb> public class EntitySerializer implements Serializer { protected void initEntityFields ( CodeWriter writer , SerializerConfig config , EntityType model ) throws IOException { Supertype superType = model . getSuperType ( ) ; - if ( superType != null && superType . getEntityType ( ) != null && superType . get...
Break up the if into two ifs
<nb> public class Column implements DatabaseObject , Comparable < Column > { List < Integer > oneParam = Arrays . asList ( Types . CHAR , Types . VARCHAR , - Types . VARBINARY + Types . VARBINARY , + Types . DOUBLE , + Types . FLOAT ) ; List < Integer > twoParams = Arrays . asList ( Types . DECIMA...
floats just take one parameter
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class JedisShardInfo extends ShardInfo < Jedis > { - protected Logger log = Logger . getLogger ( getClass ( ) . getName ( ) ) ; - public String toString ( ) {...
removing unused log
<nb> public abstract class BaseLiquibaseTask extends Task { executeWithLiquibaseClassloader ( ) ; } finally { loader . resetThreadContextLoader ( ) ; + loader . cleanup ( ) ; } }
Cleaning up the ant class loader once the task is complete
<nb> public final class MediaStore { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final boolean moveItem ( ContentResolver res , + long playlistId , int from , int to ) { + Uri uri = MediaStore . Audio . Playlists . Members . getCo...
Add convenience function to MediaStore to move a playlist item
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JsonSchemaRefactoringListenerProvider implements RefactoringElement return null ; } VirtualFile fileAtElement = PsiUtilBase . asVirtualFile ( elem...
json schema check file type in json schema file rename listener
<nb> public class EftarFileTest { COMMENT @ test public void searchEftarFile ( ) throws Exception { - System . out . println ( STRING0 ) ; EftarFileReader er = new EftarFileReader ( eftar . getAbsolutePath ( ) ) ; StringBuilder sb = new StringBuilder ( ) ; StringBuilder match = new StringBuilder ( ) ;
Remove debug output
<nb> public class ControlFlowBuilder extends GroovyRecursiveElementVisitor { } } ) ; - PsiField [ ] fields = typeDefinition . getAllFields ( ) ; - for ( PsiField field : fields ) { - vars . remove ( field . getName ( ) ) ; - } - for ( String var : vars ) { addNodeAndCheckPending ( new ReadWriteVaria...
parse string errors in name elements
<nb> public class URLResource extends Resource path = URIUtil . canonicalPath ( path ) ; - return newResource ( URIUtil . addPaths ( _url . toExternalForm ( ) , path ) ) ; + return newResource ( URIUtil . addPaths ( _url . toExternalForm ( ) , path ) , _useCaches ) ; } COMMENT
URLResource addPath should use _useCaches setting to create new Resource
<nb> final class SendWorker extends Thread { SINGLE } catch ( ReportSenderException e ) { Log . e ( ACRA . LOG_TAG , STRING0 + curFileName , e ) ; - break ; SINGLE - SINGLE + SINGLE + SINGLE + SINGLE } reportsSentCount ++ ; }
when a ReportSender fails to send ONE report it was blocking all other reports from being sent
<nb> import NAMESPACE ; public class Registration { private static final String INSERT_REGISTRATION = - STRING0 + + STRING1 + STRING2 ; private static final String LOAD_REGISTRATION = STRING3 +
Fixed database statement
<nb> public class GateVanilla extends Gate { SINGLE if ( nbttagcompound . hasKey ( STRING0 ) ) { NBTTagCompound nbttagcompoundP = nbttagcompound . getCompoundTag ( STRING0 ) ; - pulser = new EnergyPulser ( ( IPowerReceptor ) pipe ) ; + addEnergyPulser ( pipe ) ; pulser . readFromNBT ( nbttagcompoundP ) ; ...
Fixed chunk reset related to autarchic gates
<nb> public class KNXConnection implements ManagedService { RXTXVersion . getVersion ( ) ; return new KNXNetworkLinkFT12 ( serialPort , new TPSettings ( true ) ) ; } catch ( NoClassDefFoundError e ) { - throw new KNXException ( STRING0 ) ; + throw new KNXException ( STRING1 ) ; } catch ( KNXException knxe )...
removed message that KNX binding depends on serial binding
<nb> public class Evaluation { } COMMENT - COMMENT + COMMENT COMMENT COMMENT public double negative ( ) { - return trueNegatives ( ) + falseNegatives . totalCount ( ) ; - + return trueNegatives ( ) + falsePositive ( ) ; } COMMENT <nb> public class Evaluation { COMMENT COMMENT - COM...
Fixed definition of negative
<nb> public class DriverPublication implements AutoCloseable private void sendHeartbeat ( final long now , final long senderPosition ) { - if ( senderPosition > NUMBER0 ) + if ( NUMBER0 == senderPosition ) + { + shouldSendSetupFrame = true ; + } + else { final int length = lastSendLength ; final...
Simplify cold path to reduce startup pause
<nb> public class ConfigurationDialog implements ActionListener { cons . anchor = GridBagConstraints . WEST ; contentPane . add ( portPanel , cons ) ; + cons . fill = GridBagConstraints . HORIZONTAL ; + cons . anchor = GridBagConstraints . WEST ; for ( JPanel extra : extraPanels ) { cons . gridy ++ ; - ...
make the panel wide enough to fill its display area horizontally
<nb> public class SQLiteDatabase extends SQLiteClosable { close ( ) ; } finally { Log . e ( TAG , STRING0 + mPath ) ; + EventLog . writeEvent ( EVENT_DB_CORRUPT , mPath ) ; SINGLE SINGLE new File ( mPath ) . delete ( ) ;
add eventlog message whenever sqlite reports db corruption error
<nb> public class PropertyValuesHolder implements Cloneable { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class PropertyValuesHolder implements Cloneable { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMM...
Remove broken doc link to removed method
<nb> public class DexFile { case ValueType . ANNOTATION : AnnotationEncodedValue annotationEncodedValue = ( AnnotationEncodedValue ) encodedValue ; Collection < ? extends AnnotationElement > annotationElements = annotationEncodedValue . getElements ( ) ; + writer . writeEncodedValueHeader ( valueType , NUMBER0 ...
Write the header for annotation and array encoded values
<nb> public class IrcStack if ( isMe ( kickedUser ) ) { IrcStack . this . irc . deleteListener ( this ) ; - IrcStack . this . joined . remove ( this . chatroom ) ; + IrcStack . this . joined . remove ( this . chatroom . getIdentifier ( ) ) ; IrcStack . this . provider . getMUC ( ) . fireLocalUserPresenceEve...
Fix chat room leave behavior
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE COMMENT COMMENT COMMENT - public class SSTableReader extends SSTable implements Closeable + public class SSTableReader extends SSTable { pr...
Remove Closable from SSTableReader
<nb> public final class FrameworkSampleSource implements SampleSource { @ override public void release ( ) { Assertions . checkState ( remainingReleaseCount > NUMBER0 ) ; - if ( -- remainingReleaseCount == NUMBER0 ) { + if ( -- remainingReleaseCount == NUMBER0 && extractor != null ) { extractor . release ( ...
Fix NPE if source is released having never been prepared
<nb> public class QueueFile { newLength = previousLength < < NUMBER0 ; previousLength = newLength ; } while ( remainingBytes < elementLength ) ; + + SINGLE raf . setLength ( newLength ) ; + FileChannel channel = raf . getChannel ( ) ; + channel . force ( true ) ; SINGLE int endOfLastElement = wrap...
Cleaned up code
<nb> public class LocalTachyonClusterMultiMaster extends AbstractLocalTachyonCluster mLineageWorker . stop ( ) ; } for ( int k = NUMBER0 ; k < mNumOfMasters ; k ++ ) { - mMasters . get ( k ) . stop ( ) ; + SINGLE + mMasters . get ( k ) . kill ( ) ; } LOG . info ( STRING0 , mCuratorServer . getConnectStr...
Kill masters in multi master mode instead of stop
<nb> package NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import NAMESPACE ; import NAMESPACE ;
Removed unnecessary static imports as they are pulled in through
<nb> public static class RSeq extends ASeq implements IndexedSeq , Counted { } } - static class SubVector extends APersistentVector implements IObj { + public static class SubVector extends APersistentVector implements IObj { public final IPersistentVector v ; public final int start ; public final int e...
make APersistentVector SubVector public
<nb> public class TachyonConf { } public String get ( String key , final String defaultValue ) { - if ( mProperties . containsKey ( key ) ) { - String raw = mProperties . getProperty ( key ) ; - String updated = lookup ( raw ) ; - LOG . debug ( STRING0 , key , updated , defaultValue ) ; - return updated...
Addressing review comments
<nb> - SINGLE - package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAME...
removed Google copyright
<nb> public class EditAccountActivity extends XmppActivity implements OnAccountUpdate getMenuInflater ( ) . inflate ( R . menu . editaccount , menu ) ; final MenuItem showQrCode = menu . findItem ( R . id . action_show_qr_code ) ; final MenuItem showBlocklist = menu . findItem ( R . id . action_show_block_list ) ...
Don t show menu on create account screen
<nb> public class MasterPasswordInputDialog { password = new String ( - ( ( JPasswordField ) currentPasswdField ) . getPassword ( ) ) ; + currentPasswdField . getPassword ( ) ) ; } SINGLE dialog . setVisible ( false ) ;
removed redundant cast
<nb> public class GrpcServerImpl extends RPCServer { } @ override - public void cancel ( CancelRequest request , StreamObserver < CancelResponse > streamObserver ) { + public void cancel ( + final CancelRequest request , final StreamObserver < CancelResponse > streamObserver ) { log . info ( STRING0 + req...
Move request cancellation off the dispatching thread
<nb> public class SystemServicesProxy { SINGLE if ( sRecentsBlacklist . contains ( t . realActivity . getClassName ( ) ) ) { iter . remove ( ) ; + continue ; } SINGLE <nb> public class SystemServicesProxy { isExcluded |= quietProfileIds . contains ( t . userId ) ; if ( isExcluded && ( ! isFirstValid...
Fix NPE when onboarding is shown
<nb> public class PersistitKeyValueStore implements KeyValueStore { name = n ; storeManager = mgr ; persistit = db ; + try { + db . getExchange ( VOLUME_NAME , name , true ) . getTree ( ) ; + } catch ( PersistitException e ) { + throw new PermanentStorageException ( e ) ; + } } @ override
creating tree on kv store instantiation instead of on first use
<nb> public abstract class FinderRecursivePanel < T > extends JBSplitter implements Data return null ; } + protected boolean isEditable ( ) { + return getSelectedValue ( ) != null ; + } + @ nullable protected JComponent createRightComponent ( T t ) { return new JPanel ( ) ; <nb> public abstract cl...
add FinderRecursivePanel isEditable
<nb> public class TripTimes implements Serializable , Comparable < TripTimes > , Cloneable SINGLE public TripTimes ( TripTimes object ) { this . trip = object . trip ; - SINGLE + this . serviceCode = object . serviceCode ; this . timeShift = object . timeShift ; this . headsigns = object . headsigns ; t...
Copy serviceCode in copy constructor
<nb> public abstract class AbstractModel implements Cloneable { COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT public boolean containsNonNullValue ( Property < ? > property ) { if ( valuesContainsKey ( setValues , property ) ) {
Clarify the documentation of containsNonNullValue
<nb> public class MapStoreConfig { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public void setWriteCoalescing ( boolean writeCoalescing ) { this . writeCoalescing = writeCoalescing ;
Fixed wrong package name in JavaDoc of MapStoreConfig
<nb> public interface FieldMapper < T > { private final String sourcePath ; - private final Term indexNameTermFactory ; - public Names ( String name ) { this ( name , name , name , name ) ; } <nb> public interface FieldMapper < T > { this . indexNameClean = indexNameClean . intern ( ) ; this . ful...
remove unused code
<nb> public class AioEventLoop extends MultithreadEventLoop { AbstractAioChannel ch = null ; try { ch = findChannel ( command ) ; - } catch ( Exception e ) { + } catch ( Throwable t ) { SINGLE }
Replace catch of Exception with Throwable as Field get
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Deleting obsolete import of nonexistent class
<nb> public class SdkUtil { public static class ProcessCallInfo { private List < String > myStdoutLines ; private List < String > myStderrLines ; - private int exit_code ; + private int myExitCode ; protected ProcessCallInfo ( List < String > stdout_lines , List < String > stderr_lines , int exit_code ) {...
Fixes a stupid exit value bug
<nb> public class DomModelTreeView extends Wrapper implements DataProvider , Disposabl public void dispose ( ) { myBuilder . dispose ( ) ; - Disposer . dispose ( this ) ; } public SimpleTree getTree ( ) {
DomModelTreeView disposing fixed
<nb> public final class FBReaderApp extends ZLApplication { gotoBookmark ( bookmark ) ; } Library . addBookToRecentList ( book ) ; + ZLMainWindowUtil . Instance ( ) . setTitle ( book . getTitle ( ) ) ; } } getViewWidget ( ) . repaint ( ) ; <nb> public class ZLAndroidMainWindowUtil extends ZLMainWindowUt...
fixed setTitle method setTitle is now used
<nb> public class TaskListActivity extends ListFragment implements OnScrollListener , overrideFinishAnim = false ; } String intentAction = intent . getAction ( ) ; - SINGLE if ( Intent . ACTION_SEARCH . equals ( intentAction ) ) { String query = intent . getStringExtra ( SearchManager . QUERY ) . trim ( ) ;...
Fixed search function crashes Astrid