diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class GCMIntentService extends GCMBaseIntentService { SINGLE Map < String , String > properties = new HashMap < > ( ) ; if ( ! TextUtils . isEmpty ( noteType ) ) { - properties . put ( STRING0 , noteType ) ; + SINGLE + if ( noteType . equals ( STRING1 ) ) { + properties . put ( STRING0 , STRIN...
Rewrite PN type c as comment
<nb> public final class ViewRootImpl implements ViewParent , return false ; } + SINGLE final AttachInfo attachInfo = mAttachInfo ; + bounds . offset ( NUMBER0 , attachInfo . mViewRootImpl . mScrollY ) ; bounds . offset ( - attachInfo . mWindowLeft , - attachInfo . mWindowTop ) ; bounds . intersect ( NUM...
Offset accessibility focus rect for view root s scrollY
<nb> public class TextureRegion { } public void setRegionWidth ( int width ) { - setU2 ( u + width / ( float ) texture . getWidth ( ) ) ; + if ( isFlipX ( ) ) { + setU ( u2 + width / ( float ) texture . getWidth ( ) ) ; + } else { + setU2 ( u + width / ( float ) texture . getWidth ( ) ) ; + } } ...
Fix setting size of flipped TextureRegion
<nb> public class WebSettings { private boolean mDatabaseEnabled = false ; private boolean mDomStorageEnabled = false ; private boolean mWorkersEnabled = false ; SINGLE + private boolean mGeolocationEnabled = false ; SINGLE private long mAppCacheMaxSize = Long . MAX_VALUE ; private String mAppCachePath = ...
Adds Java side of logic to make Geolocation obey Browser Enable Location setting
<nb> public class VersionImpl COMMENT COMMENT COMMENT - public static final String PRE_RELEASE_ID = STRING0 ; + public static final String PRE_RELEASE_ID = STRING1 ; COMMENT COMMENT
Increments alpha version to better reflect progress status and keep consistency with our roadmap
<nb> public class ZenPingService extends AbstractLifecycleComponent < ZenPing > implemen @ override protected void doStart ( ) { for ( ZenPing zenPing : zenPings ) { - logger . info ( STRING0 + zenPing ) ; zenPing . start ( ) ; } }
Remove logging message from testing
<nb> public abstract class JDBCTableManager < OBJECT_TYPE extends JDBCTable , CONTAINER_ protected IDatabasePersistAction [ ] makeObjectDeleteActions ( ObjectDeleteCommand command ) { return new IDatabasePersistAction [ ] { - new AbstractDatabasePersistAction ( CoreMessages . model_jdbc_drop_table , STRING0 + c...
Drop view fix in Generic
<nb> public class FlickrPhotoListAdapter extends DefaultEndlessRecyclerAdapter < Flickr } public static ImageView getImage ( RecyclerView . ViewHolder holder ) { - return ( ( ViewHolder ) holder ) . image ; + if ( holder instanceof ViewHolder ) { + return ( ( ViewHolder ) holder ) . image ; + } else { +...
Fixed rare issue with wrong holder instance
<nb> class KotlinSignatureUtil { PsiModifierListOwner annotationOwner = getAnnotationOwner ( element ) ; PsiAnnotation annotation = findKotlinSignatureAnnotation ( element ) ; assert annotation != null ; - if ( annotation . getContainingFile ( ) != annotationOwner . getContainingFile ( ) ) { + if ( annotation...
Fixed bug in checking for annotation writablity
<nb> public class PivotalTrackerRepository extends BaseRepositoryImpl { @ override protected int getFeatures ( ) { - return super . getFeatures ( ) | BASIC_HTTP_AUTHORIZATION ; + return super . getFeatures ( ) | BASIC_HTTP_AUTHORIZATION | STATE_UPDATING ; } }
Add missing STATE_UPDATING feature in Pivotal repository
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove redundant imports
<nb> public class ExtractGooglecodeAuthorization { if ( debug ) { System . out . println ( STRING0 + url . toString ( ) ) ; System . out . println ( STRING1 + data . toString ( ) ) ; - System . out . ptintln ( STRING2 ) ; + System . out . println ( STRING2 ) ; } SINGLE
arg more compile errors fixed
<nb> public final class LargeMessageIT extends OryxTest { produce . start ( ) ; SINGLE - sleepSeconds ( NUMBER0 ) ; + sleepSeconds ( NUMBER1 ) ; keyMessages = consumeTopic . getKeyMessages ( ) ; } finally {
Increase large message test wait time
<nb> public class Drawer { return this ; } + SINGLE + protected Integer mDrawerGravity = null ; + + public Drawer withDrawerGravity ( int gravity ) { + this . mDrawerGravity = gravity ; + return this ; + } + SINGLE protected boolean mActionBarDrawerToggleEnabled = true ; <nb> public class ...
add option to set the gravity of the drawer
<nb> public class RecoverySystem { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class RecoverySystem { public static void installPackage ( Context context , File packageFile ) throws IOException { String filename ...
recovery just takes a filename as an argument now do not merge
<nb> public class BinRpcRequest { } private void addDouble ( double v ) { - v = Math . abs ( ( ( Double ) v ) . doubleValue ( ) ) ; - double tmp = v ; + double tmp = Math . abs ( v ) ; int exp = NUMBER0 ; while ( tmp >= NUMBER1 ) { tmp = Math . abs ( v / Math . pow ( NUMBER1 , exp ++ ) ) ; } int m...
Fixed BinRpc bug with negative values
<nb> public class TreatKeywordTest extends BaseEntityManagerFunctionalTestCase { em . close ( ) ; } + @ test + public void treatRoot ( ) { + EntityManager em = getOrCreateEntityManager ( ) ; + CriteriaBuilder builder = em . getCriteriaBuilder ( ) ; + CriteriaQuery < Human > criteria = builder . createQu...
Selecting treated root generates invalid HQL test case
<nb> public class LevelAmbiguous extends GraphBuilderAnnotation { final String layerName ; - final long osmNode ; + final long osmWayId ; - public LevelAmbiguous ( String layerName , long osmNode ) { + public LevelAmbiguous ( String layerName , long osmWayId ) { this . layerName = layerName ; - this...
Fixed LevelAmbigous annotaion variable name osmNode osmWayId
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LongClickProcessor implements ElementProcessor { JBlock listenerMethodBody = listenerMethod . body ( ) ; - JInvocation ...
Fixed StackOverflow issue for LongClick
<nb> public class OLogManager { final Object . . . iAdditionalArgs ) { if ( iMessage != null ) { final Logger log = iRequester != null ? Logger . getLogger ( iRequester . getClass ( ) . getName ( ) ) : Logger . getLogger ( DEFAULT_LOG ) ; - if ( log . isLoggable ( iLevel ) ) { + if ( log == null ) { + SINGL...
Fixed problem on shutdown when the logger couldn t be availabe to dump an error
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DataStream < T > { List < StreamTransformation < T > > unionedTransforms = new ArrayList < > ( ) ; unionedTransforms . add ( this . transformation ) ; - Collection < StreamTra...
hotfix streaming Remove unused code fragment from DataStream union function
<nb> public class AsyncHttpClientConfig { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public boolean hasRequestFilters ( ) { - return ! requestFilters . isEmpty ( ) ; - } - - COMMENT COMMENT COMMENT COMMENT COMMENT public List < RequestFilter > getRequestFilters ( ) { - retur...
Don t create immutable wrapper for empty lists
<nb> public final class MonitorConfig { COMMENT @ override public String toString ( ) { - return STRING0 + name + STRING1 + tags + STRING2 + policy + STRING3 ; + return STRING4 + name + STRING1 + tags + STRING2 + policy + STRING3 ; } COMMENT
remove extra single quote from toString
<nb> public class StaticTypesWriterController extends DelegatingController { isInStaticallyCheckedMethod = mn != null && ( StaticCompilationVisitor . isStaticallyCompiled ( node ) - || classNode . getNodeMetaData ( StaticCompilationMetadataKeys . STATIC_COMPILE_NODE ) != null ) ; + || classNode . implementsIn...
Test the static compile property only if on a generated closure
<nb> public class ExtensionRemoveTestCase { throw new IllegalStateException ( STRING0 ) ; } modulePath = jbossHome + File . separatorChar + STRING1 ; + } else { + modulePath = modulePath . split ( File . pathSeparator ) [ NUMBER0 ] ; } File moduleDir = new File ( modulePath ) ; if ( ! moduleDir . exists...
Fix test ExtensionRemoveTestCase testAddAndRemoveExtension so it can handle multiple modules path in module path property
<nb> public class PositionManagerImpl implements PositionManager { return SourcePosition . createFromLine ( psiFile , lineNumber ) ; } - private static int mapLine ( int line , int [ ] mapping ) { - for ( int i = NUMBER0 ; i < mapping . length ; i += NUMBER1 ) { - if ( mapping [ i ] == line ) { - return m...
removed unused method
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class ToggleFullScreenModeAction extends ToggleAction { public void update ( AnActionEvent e ) { super . update ( e ) ; IdeFrame frame = get...
Disable full screen mode action for MacOS since it doesn t work anyway
<nb> public class Mockito extends Matchers { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + SINGLE public class...
Fixed javadoc added TODO
<nb> public class AccessibilityInjectorTest } } ) ; } - mWebView . loadData ( html , STRING0 , STRING1 ) ; + mWebView . loadData ( html , STRING0 , null ) ; } } ) ; synchronized ( sTestLock ) { <nb> public class ListWithMailMessages extends ListActivity { } final String mimeType = STRING0 ; - ...
Fix use of WebView loadData to avoid passing invalid encoding
<nb> public final class Ranker extends NotificationRankerService { mUnbundledNotifications . put ( sbn . getPackageName ( ) , notificationsForPackage ) ; if ( notificationsForPackage . size ( ) >= AUTOBUNDLE_AT_COUNT ) { - SINGLE - int count = NUMBER0 ; for ( String key : notificationsForPackage ) { - if ...
Autobundle all notifications don t leave the most recent one free
<nb> public class ECKey implements Serializable { if ( priv != null ) { b . append ( STRING0 ) . append ( Utils . bytesToHexString ( priv . toByteArray ( ) ) ) ; } + if ( creationTimeSeconds != NUMBER0 ) { + b . append ( STRING1 + creationTimeSeconds ) ; + } return b . toString ( ) ; }
Put the creation timestamp in ECKey toString output
<nb> public class IOSDeviceTarget extends AbstractIOSTarget { List < Object > args = new ArrayList < Object > ( ) ; args . add ( STRING0 ) ; args . add ( STRING1 ) ; + args . add ( STRING2 ) ; if ( ! launchParameters . getArguments ( ) . isEmpty ( ) ) { args . add ( STRING3 ) ;
Added mi command line option when invoking fruitstrap to run iOS apps on a device
<nb> public class DirectChannelBufferFactory extends AbstractChannelBufferFactory { return slice ; } - private synchronized ChannelBuffer allocateLittleEndianBuffer ( int capacity ) { + private ChannelBuffer allocateLittleEndianBuffer ( int capacity ) { ChannelBuffer slice ; synchronized ( littleEndianLoc...
Removed unnecessary lock
<nb> public abstract class HystrixCommand < R > implements HystrixExecutable < R > { return toObservable ( Schedulers . threadPoolForComputation ( ) ) ; } else { SINGLE + SINGLE return toObservable ( Schedulers . immediate ( ) ) ; } }
add a clarifying comment
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput public void info ( ) { if ( currentDatabaseName != null...
Displayed cluster configuration with command info
<nb> public class TfsShellTest { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT private void checkFilePersisted ( TachyonFile file , int size ) throws TachyonException , IOException { Assert . assertTrue ( mTfs . getInfo ( file ) . isIsPersisted ( ) ) ;
SMALLFIX Added documentation about the parameters of the checkFilePersisted method in the TfsShellTest class
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class WifiResultHandler extends ResultHandler { if ( index == NUMBER0 ) { WifiParsedResult wifiResult = ( WifiParsedResult ) getResult ( ) ; WifiManager wifiManager = ( WifiMana...
Avoid Toast that won t go away by posting on UI thread
<nb> public final class GitPusher { } private void saveUpdateSettings ( @ notnull UpdateSettings updateSettings ) { - myPushSettings . setUpdateAllRoots ( updateSettings . shouldUpdateAllRoots ( ) ) ; - myPushSettings . setUpdateMethod ( updateSettings . getUpdateMethod ( ) ) ; + UpdateMethod updateMethod =...
Don t save values from Push Rejected if cancel was pressed
<nb> package NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class App { public static void main ( String [ ] args ) <nb> package NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public abstract class Unit { private Unit...
Added comments for the visitor example
<nb> public class AndroidBidi_Delegate { case NUMBER0 : SINGLE break ; SINGLE case - NUMBER0 : - dir = Bidi . LEVEL_DEFAULT_LTR ; + dir = Bidi . LEVEL_DEFAULT_RTL ; break ; case - NUMBER1 : - dir = Bidi . LEVEL_DEFAULT_RTL ; + dir = Bidi . LEVEL_DEFAULT_LTR ; break ; default : SINGLE
Fix default level flags for bidi
<nb> public class ShadowSimpleCursorAdapter extends ShadowResourceCursorAdapter { findColumns ( from ) ; } + public void __constructor__ ( Context context , int layout , Cursor c , String [ ] from , int [ ] to , int flags ) { + this . __constructor__ ( context , layout , c , from , to ) ; + } + COMMENT ...
Add an additional constructor to ShadowSimpleCursorAdapter
<nb> public class DynamicPluginCommand extends org . bukkit . command . Command implements if ( registeredWith instanceof CommandsManager < ? > ) { try { for ( String permission : permissions ) { - if ( ( ( CommandsManager < ? > ) registeredWith ) . hasPermission ( sender , permission ) ) { + if ( ( ( Command...
Add a f flag to schem l to make it ignore format checks
<nb> public class JobIdTest { assertEquals ( STRING0 , id . toString ( ) ) ; } - @ test ( expected = IllegalArgumentException . class ) - public void testColonInNameNotAllowed ( ) { - JobId . newBuilder ( ) . setName ( STRING0 ) . setVersion ( STRING1 ) . build ( ) ; - } - - @ test ( expected = Illega...
Remove obsolete tests
<nb> public class AddShow extends Activity { case ADD_DIALOG : SearchResult itemAtPosition = ( SearchResult ) resultList . getItemAtPosition ( data . currentPosition ) ; + SINGLE + if ( itemAtPosition == null ) { + break ; + } AlertDialog . Builder addDialogBuilder = new AlertDialog . Builder ( this ) ;...
Fix for market reported crash in AddShow
<nb> public abstract class Preference < T > implements PreferenceAccessor < T > { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
fixed malformed javadoc
<nb> public class DrawHandler extends Handler { } quitFlag = true ; syncTimerIfNeeded ( ) ; + pausedPosition = timer . currMillisecond ; if ( mThread != null ) { notifyRendering ( ) ; quitUpdateThread ( ) ; } - pausedPosition = timer . currMillisecond ; if ( what == QUIT ) { if ( this . drawTask !...
fix a low probability wrong paused position issue
<nb> public class SimpleCursorAdapter extends ResourceCursorAdapter { @ override public Cursor swapCursor ( Cursor c ) { + SINGLE + SINGLE + SINGLE + if ( mFrom == null ) { + findColumns ( mOriginalFrom ) ; + } Cursor res = super . swapCursor ( c ) ; SINGLE findColumns ( mOriginalFrom ) ; <nb>...
Fix crash when using a SimpleCursorAdapter initialized with a null Cursor
<nb> public class BigClassTest extends TestCase { } ) ; byte [ ] classBytes = Proxetta . withAspects ( aspect ) . createProxy ( BigFatJoe . class ) ; - FileUtil . writeBytes ( STRING0 , classBytes ) ; + SINGLE Class clazz = ClassLoaderUtil . defineClass ( classBytes ) ; BigFatJoe bigFatJoe = ( BigFatJoe )...
remove bytes saving
<nb> public class MessageViewInfo { public final Message message ; public final List < MessageViewContainer > containers ; - @ deprecated - public MessageViewInfo ( String text , List < AttachmentViewInfo > attachments , Message message ) { - containers = new ArrayList < MessageViewContainer > ( ) ; - con...
Remove unused constructor
<nb> class IntroduceVariableDialog extends DialogWrapper implements IntroduceVariable } public boolean isDeclareFinal ( ) { - if ( myCbFinal . isEnabled ( ) ) { - return myCbFinalState ; - } else { - return true ; - } + return myCbFinal . isEnabled ( ) && myCbFinalState ; } public boolean isRepl...
do not insert final if final checkbox is disabled
<nb> package NAMESPACE ; COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class Trailing0sinFactorial {
Adding some comments
<nb> public class MessageList COMMENT private String mFolderName ; + COMMENT private String mQueryString ; private MessageListHandler mHandler = new MessageListHandler ( ) ;
Comment an attribute
<nb> public class SnacktoryWebViewRenderer extends WebViewRenderer { } mGetPageAsTextTask = new GetPageAsTextTask ( ) ; - mGetPageAsTextTask . execute ( getUrl ( ) . toString ( ) ) ; + mGetPageAsTextTask . execute ( urlAsString ) ; } @ override
Fix loadUrl for Snacktory
<nb> public class CustomizableActionsPanel { if ( mySelectedSchema != null ) { CustomizationUtil . optimizeSchema ( myActionsTree , mySelectedSchema ) ; } - setCustomizationSchemaForCurrentProjects ( ) ; restorePathsAfterTreeOptimization ( treePaths ) ; CustomActionsSchema . getInstance ( ) . copyFrom ( myS...
update toolbar after customization schema was stored
<nb> public abstract class TvInputService extends Service { COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public abstract static c...
add more documentation on Hardware session
<nb> public class CompileContextImpl extends UserDataHolderBase implements CompileCon } } + public UUID getSessionId ( ) { + return mySessionId ; + } } <nb> public class CompileDriver { if ( compileContext . shouldUpdateProblemsView ( ) ) { final ProblemsView view = ProblemsViewImpl . SERVICE . getI...
Problems tool window shows no error when Rebuild reports errors
<nb> public class KeyguardPasswordView extends KeyguardAbsKeyInputView @ override public boolean onEditorAction ( TextView v , int actionId , KeyEvent event ) { SINGLE - if ( actionId == EditorInfo . IME_NULL || actionId == EditorInfo . IME_ACTION_DONE - || actionId == EditorInfo . IME_ACTION_NEXT ) { + fin...
Fix Wrong password message shown when using BT keyboard
<nb> public final class ActivityStackSupervisor { final ActivityStack lastStack = getLastStack ( ) ; ActivityRecord curTop = lastStack == null ? null : lastStack . topRunningNonDelayedActivityLocked ( notTop ) ; - if ( curTop != null && curTop . task != intentActivity . task ) { + if ( curTop != null && ( cur...
Put next task on top of stack if top is finishing
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LineStatusTracker { } public void release ( ) { - UIUtil . invokeLaterIfNeeded ( ( ) - > { + Runnable runnable = ( ) ...
do not release LST in the middle of rollback
<nb> public class LocalOnlyOkHttpDownloader implements Downloader { return new Response ( connection . getInputStream ( ) , fromCache , contentLength ) ; } + @ override + public void shutdown ( ) { + com . squareup . okhttp . Cache cache = urlFactory . client ( ) . getCache ( ) ; + if ( cache != null ) { ...
Implement shutdown on LocalOnlyOkHttpDownloader
<nb> public class TextField extends Widget implements Disableable { if ( passwordMode && font . containsCharacter ( passwordCharacter ) ) { if ( passwordBuffer == null ) passwordBuffer = new StringBuilder ( newDisplayText . length ( ) ) ; - if ( passwordBuffer . length ( ) > textLength ) SINGLE + if ( passwor...
removed unused comment line
<nb> public class LocalDevToolsAutoConfigurationTests { } @ test - public void restartTriggerdOnClassPathChangeWithRestart ( ) throws Exception { + public void restartTriggeredOnClassPathChangeWithRestart ( ) throws Exception { this . context = initializeAndRun ( Config . class ) ; ClassPathChangedEvent e...
Fix typo in test methods names
<nb> public class ConversationActivity extends XmppActivity xmppConnectionService . getNotificationService ( ) . setOpenConversation ( null ) ; } + @ suppresslint ( STRING0 ) private static List < Uri > extractUriFromIntent ( final Intent intent ) { List < Uri > uris = new ArrayList < > ( ) ; Uri uri = in...
shut up linter
<nb> public class WsSession implements Session { } } } - - SINGLE }
Remove old comment
<nb> public class GraphGutter { addMouseListener ( new MouseAdapter ( ) { @ override public void mousePressed ( MouseEvent e ) { - myJBTable . dispatchEvent ( e ) ; + final MouseEvent mouseEvent = new MouseEvent ( ( Component ) e . getSource ( ) , e . getID ( ) , e . getWhen ( ) , e . getModifiers ( ) , NUMBE...
clicking on edge moves the current view to the different part of the log
<nb> public class Request < T > { SINGLE SINGLE - _uri = RestliUriBuilderUtil . createUriBuilder ( this , AllProtocolVersions . RESTLI_PROTOCOL_1_0_0 . getProtocolVersion ( ) ) . build ( ) ; + _uri = RestliUriBuilderUtil . createUriBuilder ( this ) . build ( ) ; } return _uri ; } <nb> import NAMESPACE...
Undo changes about RestliUriBuilderUtil createUriBuilder Request
<nb> public class CommandMerger { return false ; } - private boolean hasChangesOf ( DocumentReference ref ) { + public boolean hasChangesOf ( DocumentReference ref ) { for ( UndoableAction action : myCurrentActions ) { DocumentReference [ ] refs = action . getAffectedDocuments ( ) ; if ( refs == null ||...
do not write unnecessary actions
<nb> public class WordPressDB { } } - public int getAllBlogsCount ( ) { - return getAllBlogs ( ) . size ( ) ; - } - public List < Map < String , Object > > getAllBlogs ( ) { return getBlogsBy ( null , null ) ; } <nb> public class WPMainActivity extends Activity implements Bucket . Listener < Note ...
Removing inefficient method to use one that already exists
<nb> public class WXSDKEngine { sm . initScriptsFramework ( null ) ; register ( ) ; WXEnvironment . sSDKInitExecuteTime = System . currentTimeMillis ( ) - start ; + WXLogUtils . renderPerformanceLog ( STRING0 , WXEnvironment . sSDKInitInvokeTime ) ; + WXLogUtils . renderPerformanceLog ( STRING1 , WXEnvironmen...
android print sdk init performance
<nb> public class MainActivity extends PreferenceActivity { sCurrentInstance = null ; } + try { + unbindService ( mConnection ) ; + } catch ( Exception e ) { + + } + SINGLE + SINGLE + SINGLE + SINGLE + super . onDestroy ( ) ; } <nb> public class MainActivity extends PreferenceActivity ...
Move unbindService to onDestroy instead of onStop which is not called when explicit finish is called
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; <nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT...
added licence header
<nb> public class InstallPluginCommandTests extends ESTestCase { line = reader . readLine ( ) ; } } - terminal . getOutput ( ) ; } public void testOfficialPluginsIncludesXpack ( ) throws Exception {
Remove unused line in official plugins test
<nb> public class RootbeerCompiler { System . out . println ( STRING0 ) ; System . exit ( NUMBER0 ) ; } - - System . out . println ( STRING1 ) ; - RootbeerClassLoader . v ( ) . applyOptimizations ( ) ; - + Transform2 transform2 = new Transform2 ( ) ; for ( SootMethod kernel_method : kernel_methods )...
removing call to RootbeerClassLoader v
<nb> public class ManagedNamePatternIncludeHostNameTest extends ManagementTestSupport @ override protected CamelContext createCamelContext ( ) throws Exception { CamelContext context = super . createCamelContext ( ) ; + DefaultManagementNamingStrategy naming = ( DefaultManagementNamingStrategy ) context . getMa...
Fixed the failing test
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CentralAuthenticationServiceImplWithMokitoTests { this . cas . delegateTicketGrantingTicket ( STRING0 , TestUtils . getCreden...
Corrected failing test
<nb> import NAMESPACE ; public class DatabasePeerManager extends ChromePeerManager { private static final String [ ] UNINTERESTING_FILENAME_SUFFIXES = new String [ ] { STRING0 , - STRING1 + STRING2 , + STRING1 , + STRING3 } ; private final Context mContext ;
ignore meta data for SQLite using WAL
<nb> public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex SINGLE SINGLE SINGLE + SINGLE if ( JmeSystem . getPlatform ( ) == Platform . Windows32 - || JmeSystem . getPlatform ( ) == Platform . Windows64 ) { + || JmeSystem . getPlatform ( ) == Platform . Windows64 + || JmeSyste...
Fix for x window crash on Display destroy on linux
<nb> public class NioEndpoint extends AbstractEndpoint { sd . length -= written ; attachment . access ( ) ; } else { - SINGLE + SINGLE SINGLE if ( sd . fchannel . size ( ) <= sd . pos ) { throw new IOException ( STRING0 +
Correct a comment
<nb> public class ContactHeaderWidget extends FrameLayout implements View . OnClickList PHONE_LOOKUP_PROJECTION , null , null , null ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void wipeClean ( ) { + setPhoto ( null ) ; + mContactUri = null ; + mExcludeMimes = null ; + } ...
Add a method to clear info about a contact
<nb> public final class CommandParameter < T > implements Parameter { usage . append ( STRING0 ) . append ( getName ( ) ) ; } - if ( required ) { + if ( isArray ( ) ) { + usage . insert ( NUMBER0 , STRING1 ) ; + usage . append ( STRING2 ) ; + } else if ( isRequired ( ) ) { usage . insert ( NUMBER0 , S...
Corrected the usage string for vararg array parameters
<nb> public class KeyedResourcePool < K , V > { long timeRemainingNs = this . timeoutNs - ( System . nanoTime ( ) - startNs ) ; if ( timeRemainingNs < NUMBER0 ) throw new TimeoutException ( STRING0 - + ( this . timeoutNs * Time . NS_PER_MS ) + STRING1 ) ; + + ( this . timeoutNs / Time . NS_PER_MS ) + STRING1 ...
Fix timeout error message to use correct units ms
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT COMMENT <nb> public class HttpBindServlet extends HttpServlet { try { HttpConnection connection = new HttpConnection ( rid , request . isSecure ( ) ) ; - String remoteAddr = request . getRemote...
Rolled back change
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public class ImageDecodeOptions { result = NUMBER0 * result + ( forceOldAnimationCode ? NUMBER1 : NUMBER2 ) ; return result ; } + + @ override + public String toString ( ) { + return String . ...
Add a proper toString method to ImageDecodeOptions
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT class PeepholeMinimizeConditions extends AbstractPeepholeOptimization {
Fix a sentance that was
<nb> public class ClassFileDecompilers { } - public static ExtensionPointName < Decompiler > EP_NAME = ExtensionPointName . create ( STRING0 ) ; + public static final ExtensionPointName < Decompiler > EP_NAME = ExtensionPointName . create ( STRING0 ) ; private ClassFileDecompilers ( ) { }
add final to EP_NAME
<nb> public class ChunkedWriteHandler discard ( null ) ; return ; } - boolean needsFlush ; while ( channel . isWritable ( ) ) { if ( currentWrite == null ) { currentWrite = queue . poll ( ) ; <nb> public class ChunkedWriteHandler if ( currentWrite == null ) { break ; } - needsFlush = true ; fi...
Deleting redundant needsFlush boolean
<nb> public class BlockFlowEvent extends BlockEvent { } public boolean equals ( BlockFlow flow ) { - return flow . flowDirection . equals ( flow ) ; + return flowDirection . equals ( flow . flowDirection ) ; } @ override
Fixed bug with BlockFlow equals
<nb> public class AtmosphereResourceImpl implements AtmosphereResource { @ override public String toString ( ) { return STRING0 + - STRING1 + hashCode ( ) + + STRING2 + uuid + STRING3 + action + - STRING4 + broadcaster . getClass ( ) . getName ( ) + - STRING5 + asyncSupport + - STRING6 + serializer + ...
Fix the toString method no functional change
<nb> public class ExecuteKotlinScriptMojo extends AbstractMojo { KotlinCoreEnvironment environment = KotlinCoreEnvironment . createForProduction ( rootDisposable , configuration , EnvironmentConfigFiles . JVM_CONFIG_FILES ) ; - GenerationState state = KotlinToJVMBytecodeCompiler . INSTANCE . analyzeAndGenerate ...
Fix Maven plugin compilation configuration parameter is not required now in analyzeAndGenerate cherrypick problem
<nb> final AtomicReference < IPersistentMap > aliases = new AtomicReference < IPersistentM final static ConcurrentHashMap < Symbol , Namespace > namespaces = new ConcurrentHashMap < Symbol , Namespace > ( ) ; public String toString ( ) { - return STRING0 + name + STRING1 ; + return name . toString ( ) ; } ...
fixed Namespace toString
<nb> class CollectionSlurper implements Runnable { SINGLE SINGLE SINGLE + logger . error ( STRING0 , definition . getMongoCollection ( ) ) ; MongoDBRiverHelper . setRiverStatus ( esClient , definition . getRiverName ( ) , Status . INITIAL_IMPORT_FAILED ) ; return ;
Log an error when the initial import fails
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Improved Javadoc comment
<nb> class TextBatchMapper extends ReadOnlyBatchIndexMapper < LongWritable , Text > { class TextBatchIndexer extends ReadOnlyBatchIndexer { + @ override public void configure ( JobConf conf ) { conf . set ( STRING0 , STRING1 ) ;
Add missing Override
<nb> public class PostgresDatabase extends AbstractDatabase { public SqlStatement createFindSequencesSQL ( String schema ) throws JDBCException { - return new RawSqlStatement ( STRING0 + convertRequestedSchemaToSchema ( schema ) + STRING1 ) ; + return new RawSqlStatement ( STRING0 + convertRequestedSchemaToSc...
Improved serial detection
<nb> public class RSConnectPublishInput public boolean isStaticDocInput ( ) { - if ( getContentType ( ) == RSConnect . CONTENT_TYPE_PLOT ) + SINGLE + if ( getContentType ( ) == RSConnect . CONTENT_TYPE_PLOT || + getContentType ( ) == RSConnect . CONTENT_TYPE_PRES ) return true ; if ( getContentType ( ...
always treat presentations as static content
<nb> COMMENT package 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 abstract class DummyCachingFileS...
perform onProjectClosed on dispose
<nb> public class ByteBuddyTest { . getLoaded ( ) . newInstance ( ) . toString ( ) , is ( STRING0 ) ) ; - } @ retention ( RetentionPolicy . RUNTIME ) <nb> public class ByteBuddyTest { . getLoaded ( ) . newInstance ( ) . toString ( ) , is ( STRING1 ) ) ; - } @ suppresswarnings ( STRING2 )
Removed empty lines
<nb> import NAMESPACE ; COMMENT public class WifiWatchdogStateMachine extends StateMachine { - COMMENT - private static boolean DBG = false ; + private static final boolean DBG = false ; private static final int BASE = Protocol . BASE_WIFI_WATCHDOG ; <nb> public class WifiWatchdogStateMachine extend...
Remove STOPSHIP in WifiWatchdogStateMachine
<nb> public class MavenIndicesManager { myWaitingIndices . addAll ( toSchedule ) ; } - + if ( toSchedule . isEmpty ( ) ) return ; myUpdatingQueue . run ( new Task . Backgroundable ( projectOrNull , IndicesBundle . message ( STRING0 ) , true ) { public void run ( @ notnull ProgressIndicator indicator ) { ...
MavenIndicesManager getMavenSettings must return cloned settings because there is no read action
<nb> public class OreDictionary { for ( ItemStack target : ore . getValue ( ) ) { - if ( itemMatches ( itemStack , target , false ) ) + if ( itemMatches ( target , itemStack , false ) ) { ids . add ( ore . getKey ( ) ) ; }
Fix getOreIDs not using the wildcard value correctly