diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class AggregationOptions { COMMENT INLINE { @ override - public org . mongodb . AggregationOptions . OutputMode toNew ( ) { + org . mongodb . AggregationOptions . OutputMode toNew ( ) { return org . mongodb . AggregationOptions . OutputMode . INLINE ; } } , <nb> public class AggregationOpt...
Made AggregationOptions OutputMode toNew package private
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PagesServlet extends HttpServlet { byte [ ] content = null ; if ( StringUtils . isEmpty ( resource ) ) { SINGLE - ...
Improve index page strategy in PagesServlet
<nb> public class ThunderbirdConfigForm pnl . add ( lblPrefix ) ; txtPrefix = new JTextField ( ) ; + txtPrefix . getDocument ( ) . addDocumentListener ( this ) ; pnl . add ( txtPrefix ) ; List < ThunderbirdContactSourceService > activeServices <nb> public class ThunderbirdConfigForm COMMENT COMMENT ...
Bind phone prefix change events
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public interface IdCache extends IndexComponent , CloseableComponent , Iterable < IdReaderCache > { + public interface IdCache extends IndexComponent , CloseableComponent { SINGLE void setIndexService ( IndexService indexService ) ; <nb> public class S...
IdCache shouldn t implement Iterable
<nb> public class SmaliPositionManager implements PositionManager { @ override public ClassPrepareRequest createPrepareRequest ( @ notnull final ClassPrepareRequestor requestor , @ notnull final SourcePosition position ) throws NoDataException { - if ( ! ( position . getElementAt ( ) . getContainingFile ( ) ins...
Fix an unprotected read access in SmaliPositionManager createPrepareRequest
<nb> public class DeodexUtil { List < Instruction > instructions = new ArrayList < Instruction > ( insns . size ( ) ) ; for ( insn i : insns ) { if ( i . instruction . opcode . odexOnly ) { - SINGLE assert i . fixedInstruction != null ; instructions . add ( i . fixedInstruction ) ; } else {
removed todo comment
<nb> public class EnglishGrammaticalRelations { COMMENT COMMENT public static GrammaticalRelation valueOf ( String s ) { - return GrammaticalRelation . valueOf ( s , values ) ; + synchronized ( values ) { + return GrammaticalRelation . valueOf ( s , values ) ; + } SINGLE SINGLE <nb> public class C...
Synchronize fields in GrammaticalRelation
<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 ; <nb> import NAM...
Unroll import statements in AttachmentView java
<nb> public interface UndertowLogger extends BasicLogger { @ message ( id = NUMBER0 , value = STRING0 ) void potentialCrossTalking ( InetAddress group , String s , String localizedMessage ) ; - @ logmessage ( level = WARN ) - @ message ( id = NUMBER1 , value = STRING1 ) - void warnRequestDumpingHandler ( ) ...
Remove log message when request dumping handler is enabled
<nb> public class EndpointMBeanExportProperties { COMMENT private boolean enabled = true ; + COMMENT + COMMENT + COMMENT private Properties staticNames = new Properties ( ) ; public boolean isEnabled ( ) {
Add missing description
<nb> public class DlvApi { SINGLE public int line ; SINGLE - Location currentLoc ; + public Location currentLoc ; SINGLE - Location userCurrentLoc ; + public Location userCurrentLoc ; SINGLE - Location goStatementLoc ; + public Location goStatementLoc ; } SINGLE
add public modifiers
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BasicConformityMonkeyContext extends BasicSimianArmyContext impleme ruleEngine ( ) . addRule ( new SameZonesInElbAndAsg ( ) )...
Added VPC check into the SimianArmy Context
<nb> class NioServerSocketPipelineSink extends AbstractChannelSink { try { if ( selector . select ( NUMBER0 ) > NUMBER1 ) { selector . selectedKeys ( ) . clear ( ) ; - for ( ; ; ) { - SocketChannel acceptedSocket = channel . socket . accept ( ) ; - if ( acceptedSocket != null ) { - registerAcceptedChannel...
Fixed indefinite blocking
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ;
SMALLFIX added licence in header
<nb> public class CompilerOptions implements Serializable , Cloneable { COMMENT public boolean checkSuspiciousCode ; - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - public boolean checkControlStructures ; - COMMENT public boolean checkTypes ; <nb> public class CompilerOptions implem...
Remove unused code in CompilerOptions
<nb> public class ConcurrentBag < T extends IConcurrentBagEntry > implements AutoCloseab for ( int i = list . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) { final T bagEntry = ( T ) ( weakThreadLocals ? ( ( WeakReference ) list . remove ( i ) ) . get ( ) : list . remove ( i ) ) ; - if ( bagEntry != null & bagEntr...
Fix boolean operator
<nb> public class PackageManagerService extends IPackageManager . Stub { mInstaller . getAppSize ( ps . volumeUuid , packageName , userId , StorageManager . FLAG_STORAGE_DE | StorageManager . FLAG_STORAGE_CE , ps . getCeDataInode ( userId ) , ps . codePathString , stats ) ; - return true ; } catch ( Installer...
Don t count system partition code against size
<nb> public final class Code extends Attribute { Code ( int name_index , int length , DataInputStream file , ConstantPool constant_pool ) throws IOException { SINGLE - this ( name_index , length , ( byte [ ] ) null , ( CodeException [ ] ) null , - ( Attribute [ ] ) null , constant_pool ) ; + this ( name_ind...
Restore incorrectly removed reads when parsing
<nb> public abstract class BaseLayer implements Layer { @ override public INDArray activate ( ) { - return activate ( ) ; + return activate ( false ) ; }
Fix missing activate boolean
<nb> public class KMeansV2 extends ModelBuilderSchema < KMeans , KMeansV2 , KMeansV2 . KMeans @ api ( help = STRING0 , values = { STRING1 , STRING2 , STRING3 , STRING4 } ) SINGLE public KMeans . Initialization init ; - - @ override public KMeansParametersV2 fillFromImpl ( KMeansParameters parms ) { - super ...
Fix a bug in kmeans schema where init was always set to Furthest
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
removed unused imports
<nb> public class IcsSpinner extends IcsAbsSpinner implements OnClickListener { private Rect mTempRect = new Rect ( ) ; + public IcsSpinner ( Context context , AttributeSet attrs ) { + this ( context , attrs , R . attr . actionDropDownStyle ) ; + } + COMMENT COMMENT COMMENT
Add layout inflatable constructor for IcsSpinner
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class EventServiceImpl implements InternalEventService { if ( ! nodeEngine . getNode ( ) . getConnectionManager ( ) . transmit ( packet , subscriber...
improved the log when event packet couldn t be sent to address
<nb> public class MavenPackagingCompletionTest extends MavenDomTestCase { STRING0 ) ; - assertCompletionVariants ( myProjectPom , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 ) ; + assertCompletionVariants ( myProjectPom , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRI...
Fix maven test
<nb> public final class OperatorTake < T > implements Operator < T , T > { @ override public void onNext ( T i ) { if ( ! isUnsubscribed ( ) ) { - child . onNext ( i ) ; if ( ++ count >= limit ) { completed = true ; - child . onCompleted ( ) ; + SINGLE + SINGLE unsubscribe ( ) ; } + child . onNe...
Take Unsubscribes Before OnNext
<nb> public abstract class GraphAlgoFactory COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class GraphAlgoFactory COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class GraphAlgoFactory COMMENT COMMENT COMMENT + COMMEN...
Added see tags to the algo methods
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fixed missing import in last merge
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class DriverDownloadAutoPage extends DriverDownloadPage { try { runnableContext . run ( true , true , new LibraryDownloader ( ) ) ; ...
Save drivers registry after download
<nb> public class TransactionTest { Collection r1 = txnMap . remove ( STRING0 ) ; assertTrue ( r1 . contains ( STRING1 ) ) ; assertTrue ( r1 . contains ( STRING2 ) ) ; - assertNull ( txnMap . get ( STRING0 ) ) ; + assertEquals ( NUMBER0 , txnMap . get ( STRING0 ) . size ( ) ) ; Collection r2 = txnMap . remo...
Fix multimap tx test multimap get returns empty collection instead of null
<nb> public class WorkerProcessClassPathProvider implements ClassPathProvider { if ( name . equals ( STRING0 ) ) { SINGLE Set < File > classpath = new LinkedHashSet < File > ( ) ; + classpath . addAll ( moduleRegistry . getModule ( STRING1 ) . getImplementationClasspath ( ) ) ; classpath . addAll ( moduleRegi...
Fixed problem starting worker processes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PgpInlineDialog extends HighlightDialogFragment { public static final String ARG_FIRST_TIME = STRING0 ; - public static PgpInlineDialog ne...
Remove unnecessary complexity
<nb> public class ZookeeperProfilerClusterManager implements ServerStateChangeEventHa } public void initZookeeperClusterData ( ) { - profileCluster . clear ( ) ; + worker . clear ( ) ; synchronized ( lock ) { List clusterPointList = profileCluster . getClusterPointList ( ) ;
Redesign Collector s ZookeeperCluster logic
<nb> public class ShadowWrangler implements ClassHandler { } @ override - synchronized public Plan methodInvoked ( String signature , boolean isStatic , Class < ? > theClass ) { + public Plan methodInvoked ( String signature , boolean isStatic , Class < ? > theClass ) { if ( debug ) System . out . println (...
Remove un necessary synchronization in ShadowWrangler
<nb> public class PanelView extends FrameLayout { } } ; + private final Runnable mStopAnimator = new Runnable ( ) { public void run ( ) { + if ( mTimeAnimator . isStarted ( ) ) { + mTimeAnimator . end ( ) ; } + } } ; + private float mVel , mAccel ; private int mFullHeight = NUMBER0 ; private Strin...
Fix crash in SystemUI
<nb> public class MethodAnalyzer { SINGLE SINGLE if ( ! MethodUtil . isStatic ( method ) ) { - nonParameterRegisters -- ; int thisRegister = totalRegisters - parameterRegisters ; SINGLE
Fix the calculation of method parameter register in MethodAnalyzer
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT COMMENT - public class TwitterComponent extends DefaultComponent { + public class TwitterComponent extends UriEndpointComponent { private String consumerKey ; private Strin...
Added UriParams for camel twitter
<nb> public interface Lock COMMENT COMMENT void release ( ) ; - - Lock NO_LOCK = new Lock ( ) - { - @ override - public void release ( ) - { - } - } ; } <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import N...
Remove unused code
<nb> public class XmppConnection extends ImConnection implements CallbackHandler { requestPresenceRefresh ( participant . getAddress ( ) . getAddress ( ) ) ; ChatSession session = super . createChatSession ( participant , isNewSession ) ; + + requestPresenceRefresh ( participant . getAddress ( ) . getAddress ...
refresh presence when new session is created
<nb> public class LdcOptimizeAdapter extends MethodVisitor implements Opcodes { } public static ClassVisitor wrap ( ClassVisitor cv ) { - return cv == null ? null : new ClassVisitor ( Opcodes . ASM5 , cv ) { + return cv == null ? null : new ClassVisitor ( Opcodes . ASM4 , cv ) { @ override public MethodVi...
fix compile error
<nb> public class BinaryMapPoiReaderAdapter { } if ( subTypes . size ( ) > tl ) { PoiSubType st = subTypes . get ( tl ) ; - if ( ! st . text && st . possibleValues != null && st . possibleValues . size ( ) > sl ) { + if ( st . text ) { + return st ; + } else if ( st . possibleValues != null && st . possib...
Fix text types
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMM...
s Set Optional and fix grammar
<nb> package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT + @ incubating public interface PluginSwitch { COMMENT COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT boolean isEnabled ( String pluginClassName ) ; }
Added javadoc annotations
<nb> public class Context implements IContext { } synchronized void removeClient ( String host , int port ) { - connections . remove ( key ( host , port ) ) ; + if ( connections != null ) { + connections . remove ( key ( host , port ) ) ; + } } COMMENT
adds null check before trying to remove connections
<nb> import NAMESPACE ; public class InstrumentedResourceMethodDispatchAdapter implements ResourceMethodDispatchAdapter { SINGLE - private MetricRegistry registry ; + private final MetricRegistry registry ; COMMENT COMMENT
Make field final
<nb> public final class MediaBrowserItem implements Parcelable { } } + @ override + public String toString ( ) { + final StringBuilder sb = new StringBuilder ( STRING0 ) ; + sb . append ( STRING1 ) . append ( mUri ) ; + sb . append ( STRING2 ) . append ( mFlags ) ; + sb . append ( STRING3 ) . append (...
Adds toString in MediaBrowserItem
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te void addScrapView ( View scrap , int position ) { final AbsListView . LayoutParams lp = ( AbsListView . LayoutParams ) scrap . getLayoutParams ( ) ; if ( lp == null ) { - SINGLE - getSkippedScrap ( ) . add ( scrap ) ; +...
Never fully detach header or footer views in AbsListView
<nb> public class CertificateManager { SINGLE KeyPair keyPair = generateKeyPair ( STRING0 , NUMBER0 ) ; SINGLE - X509Certificate cert = createX509V3Certificate ( keyPair , NUMBER1 , issuerDN , subjectDN , domain , STRING1 ) ; + X509Certificate cert = createX509V3Certificate ( keyPair , NUMBER1 , issuerDN , su...
Use stronger RSA algorithm
<nb> public class StorageProxy implements StorageProxyMBean { public static final String MBEAN_NAME = STRING0 ; private static final Logger logger = LoggerFactory . getLogger ( StorageProxy . class ) ; - static final boolean OPTIMIZE_LOCAL_REQUESTS = true ; SINGLE public static final String UNREACHABLE = ST...
remove StorageProxy OPTIMIZE_LOCAL_REQUESTS
<nb> public class BytesRestResponse extends RestResponse { if ( channel . request ( ) . paramAsBoolean ( STRING0 , ! ElasticsearchException . REST_EXCEPTION_SKIP_STACK_TRACE_DEFAULT ) ) { params = new ToXContent . DelegatingMapParams ( Collections . singletonMap ( ElasticsearchException . REST_EXCEPTION_SKIP_STACK_...
Log suppressed stack traces under DEBUG
<nb> public class GBM extends SharedTree < GBMModel , GBMModel . GBMParameters , GBMModel . GBM ? ( gp . _rss [ k ] [ i ] == NUMBER0 ? NUMBER0 : NUMBER1 ) SINGLE : _parms . _learn_rate * m1class * gp . _rss [ k ] [ i ] / gp . _gss [ k ] [ i ] ; assert ! Double . isNaN ( g ) ; + assert ! Double . isInfinite ( g ...
Add assertion check for Infinity
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; COMMENT
Adds a missing license header
<nb> public class ViewStats extends Activity { postMethod . addHeader ( STRING0 , STRING1 ) ; SINGLE - postMethod . addHeader ( STRING2 , STRING3 ) ; + postMethod . addHeader ( STRING2 , STRING4 ) ; httpParams = postMethod . getParams ( ) ; HttpProtocolParams . setUseExpectContinue ( httpParams , false ...
updating user agent for beta
<nb> public class SimpleDateType extends AbstractType < Integer > } @ override - public boolean isCompatibleWith ( AbstractType < ? > previous ) - { - return super . isCompatibleWith ( previous ) ; - } - - @ override public boolean isValueCompatibleWithInternal ( AbstractType < ? > otherType ) { ...
Remove unecessary override
<nb> public class ChangeSet { return false ; SINGLE } + public Preconditions getPrecondition ( ) { + return rootPrecondition ; + } + public void setPreconditions ( Preconditions preconditions ) { this . rootPrecondition = preconditions ; }
Expose Preconditions with getPreconditions
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> COMMENT COMMENT - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ;
moved ImpsErrorInfo to
<nb> public abstract class ChooseItemAction extends EditorAction { if ( customLiveTemplate instanceof CustomLiveTemplateBase ) { final int offset = editor . getCaretModel ( ) . getOffset ( ) ; if ( customLiveTemplate . getShortcut ( ) == shortcutChar + && TemplateManagerImpl . isApplicable ( customLiveTemplate ...
Check custom template availability in ChooseItem
<nb> public class ResultSetViewer extends Viewer implements IDataSourceProvider , ISpr if ( gridMode == GridMode . GRID ) { spreadsheet . setCursor ( new GridPos ( curColNum , curRowNum ) , false ) ; } else { + if ( ResultSetViewer . this . curRowNum < NUMBER0 && model . getRowCount ( ) > NUMBER0 ) { + Result...
Record mode row selection fix
<nb> public abstract class PathMacroMap { String newText = ( recursively || ( filter != null && filter . recursePathMacros ( t ) ) ) ? substituteRecursively ( oldText , caseSensitive ) : substitute ( oldText , caseSensitive ) ; - if ( oldText != newText ) { SINGLE + if ( oldText != newText ) { + SINGLE t ...
add clarifying comments about by reference string comparison
<nb> public class HttpDownloader extends Downloader { if ( request . getFeedfileType ( ) == FeedMedia . FEEDFILETYPE_FEEDMEDIA ) { String contentType = response . header ( STRING0 ) ; - if ( ! contentType . startsWith ( STRING1 ) && ! contentType . startsWith ( STRING2 ) ) { + Log . d ( TAG , STRING3 + conten...
Accept media content type application octet stream
<nb> public class DefaultUnitOfWork implements TraceableUnitOfWork , Service { } public synchronized ProcessorType getLastInterceptedNode ( ) { - if ( routeList == null ) { + if ( routeList == null || routeList . isEmpty ( ) ) { return null ; } return routeList . get ( routeList . size ( ) - NUMBER0 ) ;
Fixed failing unit tests
<nb> public class PowerManagerService extends IPowerManager . Stub final boolean stateChanged = mPowerState != newState ; if ( stateChanged && reason == WindowManagerPolicy . OFF_BECAUSE_OF_TIMEOUT ) { - if ( mPolicy . isScreenSaverEnabled ( ) ) { + if ( mPolicy != null && mPolicy . isScreenSaverEnabled ( ) )...
Fix PowerMgr NPE on emulator
<nb> public class Solo { } COMMENT - COMMENT + COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT <nb> class ViewFetcher { COMMENT - COMMENT + COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT
Clarified javadoc for getTopParent in Solo and ViewFetcher
<nb> public class AudioService extends IAudioService . Stub { SINGLE SINGLE - SINGLE - SINGLE + SINGLE + SINGLE SINGLE private class MyDisplayStatusCallback implements HdmiPlaybackClient . DisplayStatusCallback {
Fix typo grammar in comment
<nb> public final class FileSystemMaster extends AbstractMaster { throws IOException , InvalidPathException , AccessControlException , FileDoesNotExistException { if ( mInodeTree . inodePathExists ( path ) ) { Inode inode = mInodeTree . getInodeByPath ( path ) ; - if ( inode . isPersisted ( ) ) { + if ( inode...
Fix a bug in FileSystemMaster
<nb> public class MediaScanner mMimeType = mimeType ; mFileType = NUMBER0 ; mFileSize = fileSize ; + mIsDrm = false ; if ( ! isDirectory ) { if ( ! noMedia && isNoMediaFile ( path ) ) { <nb> public class MediaScanner mLastModified = lastModified ; mWriter = null ; mCompilation = NUMBER0 ; - mIsD...
Set isdrm info in Mediastore
<nb> public class JavaStackFrame extends XStackFrame { @ notnull private final StackFrameDescriptorImpl myDescriptor ; private static final JavaFramesListRenderer FRAME_RENDERER = new JavaFramesListRenderer ( ) ; private JavaDebuggerEvaluator myEvaluator = null ; + private final String myEqualityObject ; pu...
allow to gc virtual machine on debug session stop
<nb> public class JavaEditor extends Editor { { SINGLE errorCheckerService = new ErrorCheckerService ( this ) ; - Document currentDocument = currentDocument ( ) ; - if ( currentDocument != null ) { - errorCheckerService . addListener ( currentDocument ) ; + for ( SketchCode code : getSketch ( ) . getCode ...
Add error checker document listeners to all tabs
<nb> public class StoreMigratorTest DatabaseContentVerifier verifier = new DatabaseContentVerifier ( database ) ; verifier . verifyNodes ( ) ; verifier . verifyRelationships ( ) ; - verifier . verifyNodeIdsReused ( ) ; - verifier . verifyRelationshipIdsReused ( ) ; + SINGLE + SINGLE database . shutdow...
Removed assertions from test which isn t valid anymore
<nb> public class CompletionPanel { if ( w == maxWidth ) horizontalScrollBarVisible = true ; w += editor . dmode . classIcon . getIconWidth ( ) ; SINGLE - w += fm . stringWidth ( STRING0 ) ; SINGLE + w += fm . stringWidth ( STRING1 ) ; SINGLE SINGLE return w ; SINGLE }
Fix unneeded horizontal scroll bar
<nb> public class GestureRecorder { mDownTime = ev . getDownTime ( ) ; } else { if ( mDownTime != ev . getDownTime ( ) ) { - SINGLE - throw new RuntimeException ( STRING0 + Slog . w ( TAG , STRING0 + ev . getDownTime ( ) + STRING1 + mDownTime + STRING2 ) ; } }
Turn off an assert
<nb> public abstract class AbstractJob < KeyIn , ValueIn > if ( AbstractJob . this . combinerFactory != null ) { throw new IllegalStateException ( STRING0 ) ; } - AbstractJob . this . combinerFactory = AbstractJob . this . combinerFactory ; return new ReducingJobImpl < EntryKey , Key , ValueOut > ( ) ; }
Avoid idempotent operations like assigning a variable to itself
<nb> public class ECKey implements EncryptableItem , Serializable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT - public boolean verify ( byte [ ] data , byte [ ] signature ) { - return ECKey . verify ( data , signature , getPubKey ( ) ) ; + public boolean verify ( byte [ ] hash , by...
clarify name of parameter
<nb> public abstract class VirtualFile implements UserDataHolder , ModificationTracker COMMENT COMMENT public void delete ( Object requestor ) throws IOException { - LOG . assertTrue ( isValid ( ) ) ; + LOG . assertTrue ( isValid ( ) , STRING0 ) ; getFileSystem ( ) . deleteFile ( requestor , this ) ; }
Added log message
<nb> public class SslHandler private static final Pattern IGNORABLE_CLASS_IN_STACK = Pattern . compile ( STRING0 ) ; private static final Pattern IGNORABLE_ERROR_MESSAGE = Pattern . compile ( - STRING1 , - Pattern . CASE_INSENSITIVE ) ; + STRING2 , Pattern . CASE_INSENSITIVE ) ; private static final SSL...
Add another safe to ignore socket error message for SslHandler
<nb> public abstract class AdapterStreamInput extends StreamInput { } @ override - public String readOptionalUTF ( ) throws IOException { - return in . readOptionalUTF ( ) ; - } - - @ override public String readUTF ( ) throws IOException { return in . readUTF ( ) ; } <nb> public class AdapterStr...
adapter should not delegate optionalUTF
<nb> public class AnnotationValues < A extends Annotation > { public void setError ( String message , int valueIdx ) { node . addError ( message ) ; } + + @ override public String toString ( ) { + return STRING0 + raws + STRING1 + valueGuesses ; + } } public AnnotationValues ( Class < A > type , Map...
TRIVIAL Added a toString to AnnotationValue used to debug something but useful enough to leave in there
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMES...
vcs log remove words Filter in front of text filter window
<nb> public class ImageLoaderDemoActivityTest extends ActivityInstrumentationTestCase solo = new Solo ( getInstrumentation ( ) , getActivity ( ) ) ; list = getActivity ( ) . getListView ( ) ; - for ( int i = NUMBER0 ; i < list . getCount ( ) ; i ++ ) { + for ( int i = NUMBER0 ; i < Math . max ( NUMBER1 , list...
reduce size of long list test prevent jenkins from crashing
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; SINGLE <nb> public class SharedImplUtil { return SourceTreeToPsiMap . treeElementToPsi ( transformed ) ; } + @ nullable public static PsiElement getLastChild ( ASTNode element ) { final Tree...
Fixed NPE on a zero size file in getLastChild
<nb> public class ByteBufs { throw new IllegalArgumentException ( STRING0 ) ; } + + private ByteBufs ( ) { } } <nb> public class Idles { throw new RuntimeException ( e ) ; } } + + private Idles ( ) { } }
added private constructor for util classes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class VorbisTest implements RenderListener {
fixed some warnings
<nb> public class Linkify { return NUMBER0 ; } - - public final boolean equals ( Object o ) { - return false ; - } } ; Collections . sort ( links , c ) ;
Removing wrong equals method in comparator
<nb> public class SunMiscUTF8Encoder implements UTF8Encoder } char [ ] rawChars = ( char [ ] ) getCharArray . invoke ( input ) ; - int len = ( int ) arrayEncode . invoke ( charsetEncoder , rawChars , NUMBER0 , rawChars . length , out ) ; + int len = ( int ) arrayEncode . invoke ( charsetEncoder , rawChars , N...
Fix utf failure on ibm jdk
<nb> public class MonitorRegistryMetricPollerTest { assertEquals ( metric . getConfig ( ) , expected ) ; } - @ test + @ test ( enabled = false ) public void testShutdown ( ) throws Exception { MonitorRegistry registry = new BasicMonitorRegistry ( ) ; registry . register ( Monitors . newCounter ( STRING0...
disable flaky testShutdown thread
<nb> public class ServiceState implements Parcelable { || radioTechnology == RIL_RADIO_TECHNOLOGY_EVDO_B || radioTechnology == RIL_RADIO_TECHNOLOGY_EHRPD ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static ServiceState mergeServiceStates ( ServiceState baseSs , ServiceState voice...
Added mechanism to merge voice baseline ServiceState objects
<nb> public class CaseBasedBicycleSafetyFeatureConverter implements SimpleFeatureConv if ( safetyFeature == null ) return oneone ; - String directionKey = ( String ) feature . getAttribute ( directionAttributeName ) ; int directionFeature = NUMBER0 ; SINGLE SINGLE - if ( directionKey != null ) { - direc...
handle cases where bike lanes are assumed to match road direction and where they are MultiLineStings
<nb> public class DescriptorRendererImpl implements DescriptorRenderer { builder . append ( lt ( ) ) ; } + if ( verbose ) { + builder . append ( STRING0 ) . append ( typeParameter . getIndex ( ) ) . append ( STRING1 ) ; + } + if ( typeParameter . isReified ( ) ) { builder . append ( renderKeyword ( ST...
Render parameter indices
<nb> public abstract class TWLayoutManager extends LayoutManager { FORWARD } - private static final int INVALID_OFFSET = Integer . MIN_VALUE ; - private int mFirstPosition ; private boolean mIsVertical ;
library Remove unused constant from TWLayoutManager
<nb> public class PetResource { @ post @ path ( STRING0 ) @ consumes ( { MediaType . MULTIPART_FORM_DATA } ) - @ apioperation ( value = STRING1 ) + @ produces ( { MediaType . APPLICATION_JSON } ) + @ apioperation ( value = STRING1 , + response = com . wordnik . swagger . sample . model . ApiResponse . cla...
added produces petId to path
<nb> public class CxfEndpointBeanTest extends AbstractSpringBeanTestSupport { CamelContext context = ctx . getBean ( STRING0 , CamelContext . class ) ; SINGLE CxfEndpoint myLocalCxfEndpoint = ( CxfEndpoint ) context . getEndpoint ( STRING1 - + port1 + STRING2 ) ; + + port1 + STRING2 ) ; assertEquals ( STRIN...
Fixed the CS error of CxfEndpointBeanTest java
<nb> public abstract class LanguageLevelCombo extends ComboBox { } else if ( ! ( getItemAt ( NUMBER0 ) instanceof String ) ) { addDefaultItem ( ) ; + setSelectedIndex ( NUMBER0 ) ; } repaint ( ) ; }
restore default level when new jdk was created from project page
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public class JSONSerializer extends SerializeFilterable { && javaBeanDeser . writeDirect ; } - public FieldInfo getFieldInfo ( ) { - return null ; - } - public Object processValue ( Se...
removed unused code
<nb> import NAMESPACE ; import NAMESPACE ; public class Person { - public enum PersonType { USER , FOLLOWER , EMAIL_FOLLOWER } + public enum PersonType { USER , FOLLOWER , EMAIL_FOLLOWER , VIEWER } private long personID ; private int localTableBlogId ; <nb> public class Person { person . setUsername...
Add VIEWER person type
<nb> public class PhoneWindow extends Window implements MenuBuilder . Callback { final Callback cb = getCallback ( ) ; if ( ! mActionBar . isOverflowMenuShowing ( ) || ! toggleMenuMode ) { if ( cb != null && ! isDestroyed ( ) && mActionBar . getVisibility ( ) == View . VISIBLE ) { + SINGLE + if ( mInvalidateP...
Fix an action bar menu order of operations bug
<nb> public class OrderByColumnSpec final byte [ ] dimensionBytes = dimension . getBytes ( ) ; final byte [ ] directionBytes = direction . name ( ) . getBytes ( ) ; - return ByteBuffer . allocate ( dimensionBytes . length + dimensionBytes . length ) + return ByteBuffer . allocate ( dimensionBytes . length + d...
Fix OrderByColumnSpec cacheKey
<nb> public class BitmapTextureAtlas extends TextureAtlas < IBitmapTextureAtlasSource > final ArrayList < IBitmapTextureAtlasSource > textureSources = this . mTextureAtlasSources ; final int textureSourceCount = textureSources . size ( ) ; + SINGLE + final ITextureAtlasStateListener < IBitmapTextureAtlasSou...
Added TODO in BitmapTextureAtlas
<nb> public class Monitor extends Thread new LineNumberReader ( new InputStreamReader ( socket . getInputStream ( ) ) ) ; String key = lin . readLine ( ) ; if ( ! _key . equals ( key ) ) + { + System . err . println ( STRING0 ) ; continue ; + } String cmd = lin . readLine ( ) ; Config . debug ( STRI...
Print log warning when stop attempt made with incorrect STOP KEY
<nb> import NAMESPACE ; public final class AwsServiceClients { private AwsServiceClients ( ) { - SINGLE } COMMENT <nb> import NAMESPACE ; COMMENT public final class DataSourceTypeToAwsUnit { private DataSourceTypeToAwsUnit ( ) { - SINGLE } + public static String getUnit ( DataSourceType da...
remove useless comments
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class SqlUtils { db . endTransaction ( ) ; } } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + private st...
delete big comments and truncate new inserted comments
<nb> public abstract class OStringSerializerHelper { int i = NUMBER0 ; for ( ; i < buffer . length ; ++ i ) { final char c = buffer [ i ] ; - if ( ! isCharPresent ( c , iSeparator ) ) + if ( ! isCharPresent ( c , iJumpChars ) ) break ; }
Fixed bug on parsing CSV text