diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - SINGLE - SINGLE - public class ParticleEmitter { static private final int UPDATE_SCALE = NUMBER0 < < NUMBER1 ; static private final int UPDATE_ANGLE = NUMBER0 < < NUMBER0 ;
Removed BOZO comments
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; public class CachedHttpRequest implements BetterHttpRequest { <nb> public class CachedHttpRequest implements BetterHttpRequest { return new CachedHttpResponse ( url ) ; } - public Bette...
remove left over dependency to signpost
<nb> public class BuildRuleResolver { } } + COMMENT + COMMENT + COMMENT + COMMENT + @ visiblefortesting + public < T extends BuildRule > T addToIndex ( T buildRule ) { + addToIndex ( buildRule . getBuildTarget ( ) , buildRule ) ; + return buildRule ; + } + public < T extends BuildRule > T bu...
Add a helper method to add an existing rule to the index
<nb> public class CordovaActivity extends Activity implements CordovaInterface { COMMENT COMMENT public void setIntegerProperty ( String name , int value ) { - Log . d ( TAG , STRING0 ) ; + Log . d ( TAG , STRING1 ) ; this . getIntent ( ) . putExtra ( name , value ) ; }
Fixed bad comment it s all dying at the same time
<nb> 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 NAMESPACE ; import NAMESPACE ; - import NAM...
Deprecate some relics
<nb> public class DeskshareMain implements ClientListener , LifeLineListener { try { ExitCode reason = dsMain . exitReasonQ . take ( ) ; - SINGLE client . stop ( ) ; + lifeline . disconnect ( ) ; System . exit ( reason . getExitCode ( ) ) ; } catch ( InterruptedException e ) { SINGLE
disconnect lifeline when stopping client normally
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; @ threadleakscope ( ThreadLeakScope . Scope . NONE ) @ timeoutsuite ( millis = NUMBER0 * TimeUnits . MINUTE ) SINGLE ...
TEST Add SuppressSysoutChecks to DistributorDirectoryTest
<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 ; COMMEN...
persist order cleanup
<nb> class BluetoothManagerService extends IBluetoothManager . Stub { sysUiUid = mContext . getPackageManager ( ) . getPackageUid ( STRING0 , UserHandle . USER_OWNER ) ; } catch ( PackageManager . NameNotFoundException e ) { - Log . wtf ( TAG , STRING1 , e ) ; + SINGLE + Log . w ( TAG , STRING1 , e ) ; } ...
Do not wtf when the systemui is not present
<nb> public final class Settings { public static final String ANR_BUGREPORT_RECIPIENT = STRING0 ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final String USE_LOCATION_FOR_SERVICES = STRING1 ; + + COMMENT COMMENT COMMENT COMMENT
Add a Gservices setting to have a use location for better search
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CustomAnnotatorIT { return true ; } + @ override + public void additionalPropertiesField ( JFieldVar field , ...
added new additional properties annotator method to existing integration tests
<nb> public class DownloadActivity extends SherlockFragmentActivity { } } - String tab = intent . getExtras ( ) . get ( TAB_TO_OPEN ) . toString ( ) ; + String tab = intent . getExtras ( ) . getString ( TAB_TO_OPEN ) ; if ( tab != null ) { if ( tab . equals ( DOWNLOAD_TAB ) ) { tabHost . setCurrentTab (...
Fixed null pointer in DownloadActivity with extras
<nb> public class CordovaWebView extends WebView { public CordovaWebView ( Context context , AttributeSet attrs ) { super ( context , attrs ) ; mCtx = context ; + preferences = new PreferenceSet ( ) ; + loadConfiguration ( ) ; setup ( ) ; } public CordovaWebView ( Context context , AttributeSet attrs ...
Added loadConfiguration to the standalone WebView
<nb> public enum AndroidExcludedRefs { } } , - INPUT_METHOD_MANAGER__SERVED_VIEW ( SDK_INT >= JELLY_BEAN && SDK_INT <= LOLLIPOP_MR1 ) { + INPUT_METHOD_MANAGER__SERVED_VIEW ( SDK_INT >= ICE_CREAM_SANDWICH_MR1 && SDK_INT <= LOLLIPOP_MR1 ) { @ override void add ( ExcludedRefs . Builder excluded ) { SINGLE ...
update AndroidExcludedRefs INPUT_METHOD_MANAGER__SERVED_VIEW
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SnmpEndpoint extends DefaultPollingEndpoint { public void setProtocol ( String protocol ) { this . protocol = protocol ; } + + @ override + public String toString ( ) { ...
only output address info in toString for snmp endpoint to avoid showing credentails or other details
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class MtpDatabase { mMediaStoragePath = storagePath ; mObjectsUri = Files . getMtpObjectsUri ( volumeName ) ; mMediaScanner = new MediaScanner ( context ) ; + + SINGLE + Locale loca...
Prime K Fix gabage character issue
<nb> public class XMLTokenizeWrapLanguageTest extends ContextTestSupport { assertMockEndpointsSatisfied ( ) ; } + public void testSendParentMessagesWithDifferentAttributesToTokenize ( ) throws Exception { + getMockEndpoint ( STRING0 ) . expectedBodiesReceived ( + STRING1 + + STRING2 , + STRING3 + + ST...
adding another xml tokenizer test
<nb> public class SslConduit implements StreamSourceConduit , StreamSinkConduit { if ( userBuffers == null ) { return NUMBER0 ; } else { - return original - Buffers . remaining ( userBuffers ) ; + long res = original - Buffers . remaining ( userBuffers ) ; + if ( res > NUMBER0 ) { + SINGLE + readListene...
Improve SSL read loop detection
<nb> public final class BridgeWindow implements IWindow { } @ override + public void moved ( int arg0 , int arg1 ) throws RemoteException { + SINGLE + } + + @ override public void dispatchScreenState ( boolean on ) throws RemoteException { SINGLE }
Add missing interface method
<nb> public class InfluxDbWriter extends OutputWriterAdapter { for ( Result result : results ) { HashMap < String , Object > filteredValues = new HashMap ( Maps . filterValues ( result . getValues ( ) , isNotNaN ) ) ; - filteredValues . put ( STRING0 , Integer . parseInt ( server . getPort ( ) ) ) ; SINGLE ...
Using isEmpty on filteredValues for clarity
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ConfigFileFactoryImpl extends ConfigFileFactory { else { childData = existingFile ; } - FileContentUtil . setFileText (...
deprecate and unuse FileContentUtil setFileText
<nb> public abstract class PomTreeStructure extends SimpleTreeStructure { pomPluginNodes . add ( new PluginNode ( this , pluginDocument ) ) ; } } + SINGLE + addAdditionalPlugin ( STRING0 , STRING1 , null ) ; + } + } + + private void addAdditionalPlugin ( String groupId , String artifactId , String ver...
Adding maven site plugin to every node in Maven tree
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ListPopupImpl extends WizardPopup implements ListPopup { @ override public Dimension getPreferredScrollableViewportSize (...
add additional space for possible scroll bar
<nb> public class XBinder extends XHook { STRING0 , SINGLE STRING1 , SINGLE STRING2 , SINGLE + STRING3 , SINGLE STRING4 , SINGLE STRING5 , SINGLE STRING6 , SINGLE <nb> public class XBinder extends XHook { STRING7 , STRING8 , STRING9 , SINGLE + STRING10 , SINGLE + STRING11 , SINGLE STRING12 ,...
Updated IPC exceptions support info
<nb> public class EditingPreferencesPane extends PreferencesPane final VerticalPanel alwaysCompletePanel = new VerticalPanel ( ) ; alwaysCompletePanel . addStyleName ( res . styles ( ) . alwaysCompletePanel ( ) ) ; alwaysCompletePanel . add ( indent ( alwaysCompleteChars_ = - numericPref ( STRING0 , + numeric...
revise language for auto completion prefs
<nb> public class StorageImporter { { throw new StorageImportExportException ( activity . getString ( R . string . settings_unknown_version , version ) ) ; } - if ( providedEncryptionKey != null || storageImporter . needsKey ( ) == false ) { - Log . i ( K9 . LOG_TAG , STRING0 + version + STRING1 ) ; - finis...
Clarify logic for when an importer needs a password prompt
<nb> public abstract class UsefulTestCase extends TestCase { FileUtil . resetCanonicalTempPathCache ( ORIGINAL_TEMP_DIR ) ; if ( hasTmpFilesToKeep ( ) ) { File [ ] files = new File ( myTempDir ) . listFiles ( ) ; - if ( files != null ) { + if ( files != null && files . length > NUMBER0 ) { for ( File file :...
delete temp folder if there are no files to keep
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ;
Removed unused imports from RelocateAction
<nb> public class ServletTestExecutionListener implements TestExecutionListener { RequestContextHolder . setRequestAttributes ( servletWebRequest ) ; if ( wac instanceof ConfigurableApplicationContext ) { + @ suppresswarnings ( STRING0 ) ConfigurableApplicationContext configurableApplicationContext = ( Config...
Suppress warnings for java io Closeable resources
<nb> public final class UniqueId implements UniqueIdInterface { final LinkedList < String > suggestions = new LinkedList < String > ( ) ; try { ArrayList < ArrayList < KeyValue > > rows ; - while ( ( rows = scanner . nextRows ( ) . joinUninterruptibly ( ) ) != null ) { + while ( ( short ) suggestions . size (...
Fetch the correct number of suggestions from HBase
<nb> public class PrivateDataManager extends Manager { StringBuilder buf = new StringBuilder ( ) ; buf . append ( STRING0 ) ; if ( privateData != null ) { - privateData . toXML ( ) ; + buf . append ( privateData . toXML ( ) ) ; } buf . append ( STRING1 ) ; return buf . toString ( ) ;
Fix PrivateDataResult getChildElementXML
<nb> class Slurper implements Runnable { options = options | Bytes . QUERYOPTION_OPLOGREPLAY ; } DBCursor cursor = oplogCollection . find ( indexFilter ) . setOptions ( options ) ; + + SINGLE + if ( indexFilter . containsField ( MongoDBRiver . MONGODB_ID_FIELD ) ) { + cursor = cursor . hint ( STRING0 ) ; ...
Add hint to oplog cursor on TokuMX
<nb> public class Post { && ( post . blog . isFullSizeImage ( ) || post . blog . isScaledImage ( ) ) ) { content = content - + STRING0 + + STRING1 + finalImageUrl + STRING2 + mf . getTitle ( ) + STRING3
Remove alt tag from image link
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + @ ignore ( STRING0 ) @ contextconfiguration public clas...
Ignore test due bug in AMQ
<nb> public class MethodDatabase implements Log { ClassReader r = new ClassReader ( is ) ; CheckInstrumentationVisitor civ = new CheckInstrumentationVisitor ( this ) ; - r . accept ( civ , ClassReader . SKIP_DEBUG | ClassReader . SKIP_FRAMES | ClassReader . SKIP_CODE ) ; + r . accept ( civ , ClassReader . SKI...
CheckInstrumentationVisitor doesn t skip anymore source debug info so classifiers can use it AOT too
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class PennTreeReader implements TreeReader { HasWord hw = ( HasWord ) leaf . label ( ) ; hw . setWord ( leaf . label ( ) . value ( ) ) ; } + if ( leaf . label ( ) instanceof ...
When reading trees via PennTreeReader add tags to the leaves if possible
<nb> public abstract class Editor extends JFrame implements RunnerListener { fileMenu . add ( base . getSketchbookMenu ( ) ) ; - JMenuItem sbMenu = new JMenuItem ( STRING0 ) ; + JMenuItem sbMenu = Toolkit . newJMenuItemShift ( STRING0 , STRING1 ) ; sbMenu . addActionListener ( new ActionListener ( ) { @ o...
added sketchbook shortcut
<nb> public class ComparisonFailure extends AssertionFailedError { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed small comments
<nb> public abstract class CallResolutionContext < Context extends CallResolutionContex this . dataFlowInfoForArguments = new DataFlowInfoForArgumentsImpl ( call ) ; } else { - this . dataFlowInfoForArguments = MutableDataFlowInfoForArguments . WITHOUT_ARGUMENTS_CHECK ; + this . dataFlowInfoForArguments = new...
Fixed memory leak
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DualCamelContextEndpointOutsideTest extends SpringTestSupport { MockEndpoint mockB = camelB . getEndpoint ( STRING0 ...
Properly stop the services we create on our own
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT COMMENT public class StackAwareMethodVisitor extends MethodVisitor {
Added missing documentation
<nb> package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> package NAMESPACE ; COMMENT COMMENT public enum WebSocketVersion { + COMMENT COMMENT COMMENT <nb> public enum WebSocketVersion { SINGLE throw new IllegalStateException ( STRING0 + this ) ; } + + + ...
Attach the web sockets version to the exchange
<nb> public interface BSONObject { COMMENT COMMENT COMMENT + @ deprecated public boolean containsKey ( String s ) ; COMMENT
added Deprecated annotation to deprecated methods
<nb> public class ServiceContainerEndpointRegistry implements EndpointRegistry { Set < ObjectName > endpoints = new CopyOnWriteArraySet < ObjectName > ( ) ; for ( ServiceName sname : WSServices . getContainerRegistry ( ) . getServiceNames ( ) ) { if ( sname . getCanonicalName ( ) . startsWith ( endpointPrefix ) )...
Fix the contextPath and objectName
<nb> public class SettingsActivity extends PreferenceActivity implements OnPreference public EditTextPreference createEditTextPreference ( OsmandPreference < String > b , int title , int summary ) { EditTextPreference p = new EditTextPreference ( this ) ; p . setTitle ( title ) ; - p . setKey ( b . get ( ) ) ; ...
Fix edit text preference
<nb> public class VersionMessage extends Message { COMMENT public static final String BITCOINJ_VERSION = STRING0 ; COMMENT - public static final String LIBRARY_SUBVER = STRING1 + BITCOINJ_VERSION + STRING2 ; + public static final String LIBRARY_SUBVER = STRING3 + BITCOINJ_VERSION + STRING2 ; public Versio...
Fix version message
<nb> public class KernelHealthTest SINGLE logProvider . assertAtLeastOnce ( inLog ( KernelHealth . class ) . error ( - is ( STRING0 ) , + is ( STRING1 ) , sameInstance ( exception ) ) ) ;
Fix typo in error message
<nb> public class TestParameters { names = p . getParameterNames ( ) ; assertTrue ( names . hasMoreElements ( ) ) ; - assertEquals ( STRING0 , names . nextElement ( ) ) ; assertEquals ( STRING1 , names . nextElement ( ) ) ; + assertEquals ( STRING0 , names . nextElement ( ) ) ; assertFalse ( names . hasMo...
Fix unit test now that parameters are returned in the order they are received
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Well hopefully fixed transforming code fragments chameleons
<nb> public class ConnectionPageNetwork extends ActiveWizardPage < ConnectionWizard > { configuration = new DBWHandlerConfiguration ( descriptor , driver ) ; } HandlerBlock handlerBlock = configurations . get ( descriptor ) ; - handlerBlock . useHandlerCheck . setSelection ( configuration . isEnabled ( ) ) ; ...
Network handlers config UI fixed
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT
Remove accidental unused import in StyleChart
<nb> 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> public class Account implements BaseAccount } lo...
Removed unused variables and imports
<nb> public interface OSGIConfig extends KillbillConfig { SINGLE @ config ( STRING0 ) - @ default ( STRING1 ) + @ default ( STRING2 ) public String getJrubyBundlePath ( ) ; }
use a more sensible name for the JRuby bundle
<nb> public class EmbeddedNeo Object name = initialProperties . get ( STRING0 ) ; this . shellServer . makeRemotelyAvailable ( port != null ? ( Integer ) port : NUMBER0 , - name != null ? ( String ) name : STRING1 ) ; + name != null ? ( String ) name : STRING2 ) ; return true ; } else
Added default RMI name of the shell to reflect the default name of the shell
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; public class BaseDocTest
Added license headers
<nb> public class NotificationCompat { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public static final int SIZE_DEFAULT = NUMBER0 ;
Fix doc typo for default wearable notification size
<nb> public class ChatConversationPanel int startMatchPosition = plainTextInHtmlMatcher . start ( NUMBER0 ) ; int endMatchPosition = plainTextInHtmlMatcher . end ( NUMBER0 ) ; - SINGLE - SINGLE - SINGLE + SINGLE + SINGLE + SINGLE SINGLE SINGLE <nb> public class ChatConversationPanel } CO...
Fix outdated comments
<nb> public class CallManager Call createdCall ; try { createdCall = telephony . createCall ( - phoneNumberCombo . getSelectedItem ( ) . toString ( ) ) ; + phoneNumberCombo . getEditor ( ) . getItem ( ) . toString ( ) ) ; CallPanel callPanel = new CallPanel ( this , createdCall , CallPanel . OUTGOING_CA...
get the editor item instead of the selected item when calling
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ImageRequest extends Request < Bitmap > { Bitmap tempBitmap = BitmapFactory . decodeByteArray ( data , NUMBER0 , data . length , decodeOptions...
Do not upscale images in Volley library
<nb> public class JBList extends JList implements ComponentWithEmptyText , ComponentWi comp . setBackground ( list . getBackground ( ) ) ; comp . setForeground ( list . getForeground ( ) ) ; } + for ( JLabel label : UIUtil . findComponentsOfType ( comp , JLabel . class ) ) { + label . setForeground ( UIUtil ....
changing contexts performance in TeamCity
<nb> public class DefaultLayoutAnimator extends LayoutAnimator { } ) ; anim . setInterpolator ( new DecelerateInterpolator ( FLOAT0 ) ) ; - return anim ; - - } - - @ override - public void start ( ) { } public void setDuration ( int duration ) { <nb> public abstract class LayoutAnimator { ...
Removed unused start method
<nb> public final class BuildFirstHashMatchIterator implements MatchTaskIterator SINGLE public BuildFirstHashMatchIterator ( MutableObjectIterator < PactRecord > firstInput , MutableObjectIterator < PactRecord > secondInput , - int [ ] buildSideKeyFields , int [ ] probeSideKeyFields , Class < ? extends Key > [ ...
Fixed incorrectly passes key positions
<nb> public class MetaDataDeleteIndexService extends AbstractComponent { } final DeleteIndexListener listener = new DeleteIndexListener ( mdLock , request , userListener ) ; - clusterService . submitStateUpdateTask ( STRING0 + request . index + STRING1 , new ClusterStateUpdateTask ( ) { + clusterService . sub...
Changed the priority of delete index action to URGENT
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> final class SettingsTreeView extends JComponent implements Disposable , OptionsEd myTree . setShowsRootHandles ( false ) ; myScroller ...
remove scrollbar bg
<nb> public class JabberAccountID } COMMENT + COMMENT + COMMENT + public JabberAccountID ( ) + { + this ( null , new HashMap < String , String > ( ) ) ; + } + + COMMENT COMMENT COMMENT COMMENT
Adds default constructor to JabberAccountID in order to fix serialization error of JabberAccountRegistration
<nb> public class ASTNode { public void removeNodeMetaData ( Object key ) { if ( key == null ) throw new GroovyBugError ( STRING0 + this + STRING1 ) ; metaDataMap . remove ( key ) ; - if ( metaDataMap . size ( ) == NUMBER0 ) metaDataMap = null ; } }
Remove metadata should not nullify metadata
<nb> public class StringToEnumFactory implements ConverterFactory < String , Enum > { } public T convert ( String source ) throws Exception { - return Enum . valueOf ( enumType , source ) ; + return ( T ) Enum . valueOf ( enumType , source ) ; } }
added additional cast for javac
<nb> public class NUIManagerInternal extends BaseComponentSystem implements NUIManage SINGLE SINGLE SINGLE - context . get ( ModuleAwareAssetTypeManager . class ) . disposeAll ( UIElement . class ) ; + ModuleAwareAssetTypeManager maaTypeManager = context . get ( ModuleAwareAssetTypeManager . class ) ; + maa...
Use existing methods to dispose obsolete NUI elements
<nb> public class MaskedClassLoader extends ClassLoader { @ override protected Class < ? > findClass ( String name ) throws ClassNotFoundException { - int idx = name . lastIndexOf ( STRING0 ) ; - if ( idx == - NUMBER0 ) { + if ( name . startsWith ( STRING1 ) + || name . startsWith ( STRING2 ) ) { + retu...
Fix class loading issue with error prone plugins
<nb> public abstract class Parser extends Recognizer < Token , ParserATNSimulator > { return _parseListeners . contains ( TrimToSizeListener . INSTANCE ) ; } - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - public List < ParseTreeListener > getParseListeners ( ) { return _parse...
Remove unused commented out code
<nb> public final class Address implements IdentifiedDataSerializable { @ override public int hashCode ( ) { - return hash ( host . getBytes ( ) ) * NUMBER0 + port ; - } - - private int hash ( byte [ ] bytes ) { - int hash = NUMBER1 ; - for ( byte b : bytes ) { - hash = ( hash * NUMBER0 ) + b ; - ...
Changing the way Address creates it s hashcode
<nb> public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto Map < String , Object > results = new LinkedHashMap < String , Object > ( ) ; for ( String beanName : getBeanDefinitionNames ( ) ) { BeanDefinition beanDefinition = getBeanDefinition ( beanName ) ; - if ( ! beanDefinition . is...
Avoid re retrieval of singleton bean instances
<nb> public class TimeUtils { COMMENT public static TimeZone getTimeZone ( int offset , boolean dst , long when , String country ) { TimeZone best = null ; - - Resources r = Resources . getSystem ( ) ; - XmlResourceParser parser = r . getXml ( com . android . internal . R . xml . time_zones_by_country ) ; ...
Remove some pointless code
<nb> public class GCalEventDownloader extends AbstractActiveService implements Manage COMMENT COMMENT private static final Pattern EXTRACT_START_END_COMMANDS = - Pattern . compile ( STRING0 , Pattern . DOTALL ) ; + Pattern . compile ( STRING1 , Pattern . DOTALL ) ; @ override <nb> public class GCalEve...
n at the end of commands prevents event being parsed correctly enhances regexp to match these events too
<nb> import static NAMESPACE ; public class Configuration { - private static String FILE_NAME = STRING0 ; + private static String FILE_NAME = STRING1 ; private static final String EXT_DICT = STRING2 ; private static final String EXT_STOP = STRING3 ; private static ESLogger logger = null ;
wrong cased name fixed
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
allow passing pre configured servlet instance when creating GrizzlyWebContainer
<nb> public class CompilerOptions implements Serializable , Cloneable { COMMENT public boolean checkSymbols ; - public CheckLevel checkShadowVars ; - - COMMENT - COMMENT - COMMENT - COMMENT - public void setCheckShadowVars ( CheckLevel level ) { - this . checkShadowVars = level ; - } - publi...
Remove unused compiler option
<nb> public class PImage implements PConstants , Cloneable { loadPixels ( ) ; try { - OutputStream output = parent . createOutput ( path ) ; + OutputStream output = + new BufferedOutputStream ( parent . createOutput ( path ) , NUMBER0 * NUMBER1 ) ; String lower = path . toLowerCase ( ) ; String extens...
drastically improve TIFF image I O
<nb> public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer { } else { return mTts . getLanguage ( ) + STRING0 ; } - } } ) ; mTts . setOnUtteranceCompletedListener ( new OnUtteranceCompletedListener ( ) {
remove blank line
<nb> import NAMESPACE ; public class ExtensionAutoUpdate extends ExtensionAdaptor { SINGLE - SINGLE - SINGLE - SINGLE - private static final String ZAP_VERSIONS_XML_SHORT = STRING0 ; - private static final String ZAP_VERSIONS_XML_FULL = STRING0 ; + private static final String ZAP_VERSIONS_XML_SHORT = ...
Removed temp test code
<nb> public class Region3iTypeHandler extends SimpleTypeHandler < Region3i > { @ override public Region3i deserialize ( PersistedData data , DeserializationContext context ) { - if ( data . isValueMap ( ) ) { + if ( ! data . isNull ( ) && data . isValueMap ( ) ) { PersistedDataMap map = data . getAsValueMap...
Fix a NullPointerException when deserializing a null Region3i field
<nb> public class AtmosphereResourceStateRecoveryTest { r . close ( ) ; AtmosphereResourceImpl r2 = ( AtmosphereResourceImpl ) AtmosphereResourceFactory . getDefault ( ) . create ( config , STRING0 ) ; + SINGLE r2 . setBroadcaster ( config . getBroadcasterFactory ( ) . lookup ( STRING1 , true ) ) ; config...
Add a comments
<nb> public class CliClient else { Column column = cosc . column ; - css_ . out . printf ( STRING0 , new String ( column . name , STRING1 ) , + css_ . out . printf ( STRING2 , new String ( column . name , STRING1 ) , new String ( column . value , STRING1 ) , column . timestamp ) ; } }
really fix minor styling issue really
<nb> public class NamedAnalyzer extends CustomAnalyzerWrapper { } public NamedAnalyzer ( String name , AnalyzerScope scope , Analyzer analyzer , int positionOffsetGap ) { - SINGLE super ( analyzer . getReuseStrategy ( ) ) ; this . name = name ; this . scope = scope ;
remove irrelevant comment now that we pass the reuse strategy
<nb> class SMTestSender extends RunListener { } public synchronized void testIgnored ( Description description ) throws Exception { + testStarted ( description ) ; prepareIgnoreMessage ( description , true ) ; + testFinished ( description ) ; } private static void prepareIgnoreMessage ( Description de...
process ignored tests inside start end event sequence
<nb> public abstract class HazelcastTestSupport { private TestHazelcastInstanceFactory factory ; - public static void assertSizeEventually ( int expectedSize , Collection c ) { - assertSizeEventually ( expectedSize , c , ASSERT_TRUE_EVENTUALLY_TIMEOUT ) ; - } - - public static void assertSizeEventually ...
Resolved merged conflict
<nb> public class TransportIndexAction extends TransportShardReplicationOperationActi return ; } documentMapper . refreshSource ( ) ; - + logger . debug ( STRING0 , request . index ( ) , request . type ( ) ) ; mappingUpdatedAction . execute ( new MappingUpdatedAction . MappingUpdatedRequest ( request . inde...
Added a debug log when sending an mapping updated request to master
<nb> public class PhoneWindowManager implements WindowManagerPolicy { if ( denyTransientStatus || denyTransientNav ) { SINGLE clearClearableFlagsLw ( ) ; + vis &= ~ View . SYSTEM_UI_CLEARABLE_FLAGS ; } vis = mStatusBarController . updateVisibilityLw ( transientStatusBarAllowed , oldVis , vis ) ;
Prevent wrong system ui visibility callback after the user swipe
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BackupService extends Service { FilenameFilter filter = new FilenameFilter ( ) { @ override public boolean accept ( File file , String s ) {...
Removed extra logging added when testing bug
<nb> public abstract class PullToRefreshBase < T extends View > extends LinearLayout imp public final void setShowViewWhileRefreshing ( boolean showView ) { mShowViewWhileRefreshing = showView ; } - + COMMENT COMMENT COMMENT <nb> public abstract class PullToRefreshBase < T extends View > extends Linea...
Always reset the LoadingLayouts
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public final class InputDevice implements Parcelable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public static final int SOURCE_CLASS_BUTTON = NUMBER0 ;
Fix doc link in InputDevice
<nb> - package NAMESPACE ; COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT + package NAMESPACE ; COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT
Fixed rogue import
<nb> public abstract class ConnectionProxy implements IHikariConnectionProxy } } - if ( ! getAutoCommit ( ) ) - { - rollback ( ) ; - } - } - catch ( SQLException e ) - { - checkException ( e ) ; - throw e ; + SINGLE + SINGLE + SINGLE + SINGLE } + SINGLE + SINGLE + SINGLE + SING...
Remove automatic rollback
<nb> public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public interface EGLWindowSurfaceFactory { EGLSurface createWindowSurface ( EGL10 egl , EGLDisplay display , EGLConfig config ,
Fix broken Javadoc link for GLSurfaceView EGLWindowSurfaceFactory
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed syntax error in Javadoc example
<nb> public class CombinedChartActivity extends DemoBase { break ; } case R . id . actionToggleBarValues : { - SINGLE - SINGLE - SINGLE - SINGLE - - CombinedData data = new CombinedData ( mMonths ) ; - - data . setData ( generateLineData ( ) ) ; - - mChart . setData ( data ) ; + for ( DataSe...
Undo testing changes
<nb> public class TestSunriseSunset { public static void printSunriseSunset ( String date , float lat , float lon , TimeZone tz ) throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat ( STRING0 ) ; - SimpleDateFormat prt = new SimpleDateFormat ( STRING1 ) ; + SimpleDateFormat prt = new SimpleDat...
found bug in sunrise sunset debug display
<nb> public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl if ( entry != null ) { relativeInfo . item = entry . getValue ( ) . getAdapterItem ( position - entry . getKey ( ) ) ; relativeInfo . adapter = entry . getValue ( ) ; + relativeInfo . position = position ; } return ...
add position to the RelativeInfo in the FastAdapter
<nb> public class MuzeiWatchFace extends CanvasWatchFaceService { Paint . Align textAlign = mIsRound ? Paint . Align . CENTER : Paint . Align . RIGHT ; mClockPaint . setTextAlign ( textAlign ) ; mClockAmbientShadowPaint . setTextAlign ( textAlign ) ; + mDateAmbientShadowPaint . setTextAlign ( textAlign ) ; mD...
Fix date shadow alignment for round devices
<nb> public interface ArtifactRepositoryContainer extends NamedDomainObjectList < Artif String DEFAULT_MAVEN_CENTRAL_REPO_NAME = STRING0 ; String DEFAULT_MAVEN_LOCAL_REPO_NAME = STRING1 ; String MAVEN_CENTRAL_URL = STRING2 ; - @ deprecated - String MAVEN_REPO_PATTERN = STRING3 ; - @ deprecated - String DE...
Removed deprecated constants from ArtifactRepositoryContainer