diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> final class RealCall implements Call { private final boolean forWebSocket ; private AsyncCall ( Callback responseCallback , boolean forWebSocket ) { - super ( STRING0 , originalRequest . url ( ) . toString ( ) ) ; + super ( STRING0 , redactedUrl ( ) . toString ( ) ) ; this . responseCallback = response...
Redact the full url in AsyncCall thread name
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class OverriderUsageInfo extends UsageInfo { return myOverridingMethod ; } + COMMENT + COMMENT + COMMENT + @ nullable + @ override + public PsiMethod getElement ( ) { + ret...
restored API to fix compatibility with Kotlin plugin
<nb> public class MediaSessionLegacyHelper { metadata . getString ( MediaMetadata . METADATA_KEY_WRITER ) ) ; } if ( metadata . containsKey ( MediaMetadata . METADATA_KEY_YEAR ) ) { - oldMetadata . putString ( String . valueOf ( MediaMetadataRetriever . METADATA_KEY_YEAR ) , - metadata . getString ( MediaMeta...
Fix wrong metadata conversion in MediaSessionLegacyHelper
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
FeedMediaSizeService done right
<nb> public class Solo { } COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT
Clarified javadoc for Solo clearEditText int
<nb> public class TestShellActivity extends Activity implements LayoutTestController settings . setDatabaseEnabled ( true ) ; settings . setDatabasePath ( getDir ( STRING0 , NUMBER0 ) . getAbsolutePath ( ) ) ; settings . setDomStorageEnabled ( true ) ; - settings . setWorkersEnabled ( true ) ; + settings . se...
Disable Worker in DumpRenderTree until the issue with dumpAsText is fixed
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class LRUCache < K , V > implements Map < K , V > { + public class LRUCache < K , V > implements Map < K , V > , Serializable ...
Having a serialVersionUID generates a warning if the class is not
<nb> public class ClientCallFuture < V > implements ICompletableFuture < V > , Callback { } public boolean resend ( ) { - if ( reSendCount . incrementAndGet ( ) > MAX_RESEND_COUNT ) { + if ( handler == null && reSendCount . incrementAndGet ( ) > MAX_RESEND_COUNT ) { return false ; } executionService . e...
if a ClientFuture has handler which means a listener we always resend
<nb> public class Utils { public static long decodeTime ( long tcode ) { return tcode > > NUMBER0 ; } public static int decodePat ( long tcode ) { return ( ( int ) tcode & NUMBER1 ) ; } public static long attemptTimeParse ( ValueString str ) { - long t0 = attemptTimeParse_01 ( str ) ; SINGLE - if ( t0 != Long...
Catch bad time parses bail out
<nb> public class FileInfo return getVirtualFile ( ) != null ? getVirtualFile ( ) . getName ( ) : STRING0 ; } + public String getClassName ( ) + { + if ( file instanceof PsiJavaFile ) + { + return ( ( PsiJavaFile ) file ) . getClasses ( ) [ NUMBER0 ] . getName ( ) ; + } + else + { + return getFi...
restore file className file qualifiedClassName variables
<nb> public enum IsolationLevel throw new AssertionError ( STRING0 + this ) ; } + + @ override + public String toString ( ) + { + return name ( ) . replace ( STRING1 , STRING2 ) ; + } } <nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE...
Add toString method to IsolationLevel
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - COMMENT - COMMENT - COMMENT - COMMENT public class TestChangeAppIcon extends SimpleApplication { private static final Logger log = Logger . getLogger ( TestChangeAppIcon . class . getName ( ) ) ;
Removed incorrect javadoc from TestChangeAppIcon
<nb> public final class Config { public static final boolean FORCE_ORBOT = false ; SINGLE public static final boolean HIDE_MESSAGE_TEXT_IN_NOTIFICATION = false ; public static final boolean SHOW_CONNECTED_ACCOUNTS = false ; SINGLE - public static final boolean SHOW_DISABLE_FOREGROUND = true ; SINGLE + public ...
don t show disable foreground service button
<nb> public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS COMMENT private void updateVoiceButton ( boolean empty ) { int visibility = View . GONE ; - if ( mSearchable . getVoiceSearchEnabled ( ) && empty ) { + if ( ( mAppSearchData == null || ! mAppSearchData . getBoolean ( + Se...
Add an option to hide the Voice Search icon
<nb> public class SettingsFragment extends PreferenceFragment { Resources res = getResources ( ) ; DisplayMetrics dm = res . getDisplayMetrics ( ) ; Configuration conf = res . getConfiguration ( ) ; - conf . locale = new Locale ( localeMap . get ( values [ position ] ) ) ; + String localString = localeMap . g...
Handling Locale s with provided country codes when selecting language
<nb> public class IOConverterTest extends TestCase { byte [ ] data = IOConverter . toBytes ( new FileInputStream ( file ) ) ; assertEquals ( STRING0 , file . length ( ) , data . length ) ; assertEquals ( STRING1 , ( char ) data [ NUMBER0 ] ) ; - assertEquals ( STRING2 , ( char ) data [ data . length - NUMBER1 ]...
Fixed the IOConverterTest error on Windows box
<nb> public class AceEditorNative extends JavaScriptObject { this . setOption ( STRING0 , enabled ) ; } - * / ; + public final native boolean dragEnabled ( ) COMMENT + COMMENT + COMMENT ; + public final native JsMap < Position > getMarks ( ) / * - { var marks = { } ;
add accessor for drag enabled state
<nb> public class JavascriptClientFilter implements PerRequestBroadcastFilter { @ override public BroadcastAction filter ( HttpServletRequest request , HttpServletResponse response , Object message ) { - if ( request . getHeader ( STRING0 ) != null ) { + if ( request . getHeader ( STRING0 ) != null && request...
Only apply the filter when streaming is used
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; COMMENT - COMME...
Add license and Javadoc for OLiveResultListener
<nb> public class SSLCertificateSocketFactory extends SSLSocketFactory { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class SSLCertificateSocketFactory extends SSLSocketFactory { if ( mInsecureFactory == null ) { if ( mSecure ) { Log . w ( TAG , STR...
Remove the warning if the caller gets the insecure variant and add hostname verification SNI
<nb> public abstract class ProcessEngineConfigurationImpl extends ProcessEngineConfig TimerStartEventJobHandler timerStartEvent = new TimerStartEventJobHandler ( ) ; jobHandlers . put ( timerStartEvent . getType ( ) , timerStartEvent ) ; - for ( JobHandler customJobHandler : getCustomJobHandlers ( ) ) { - job...
fixed NPE with custom job handlers
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AndroidInput implements Input , OnKeyListener , OnTouchListener { if ( peripheral == Peripheral . Compass ) return compassAva...
Fix false positive of vibration support
<nb> public abstract class OStorageEmbedded extends OStorageAbstract { final long timer = OProfiler . getInstance ( ) . startChrono ( ) ; - final boolean locked = lock . acquireSharedLock ( ) ; - try { OCluster cluster ; <nb> public abstract class OStorageEmbedded extends OStorageAbstract { OLogMana...
Removed storage lock on query
<nb> public class OGLESShaderRenderer implements Renderer { } protected void updateUniform ( Shader shader , Uniform uniform ) { - int shaderId = shader . getId ( ) ; - assert uniform . getName ( ) != null ; assert shader . getId ( ) > NUMBER0 ; - if ( context . boundShaderProgram != shaderId ) { - ...
Reuse bindProgram in OGLESShaderRenderer
<nb> public class TestZContext ctx . close ( ) ; Assert . assertEquals ( NUMBER0 , ctx . getSockets ( ) . size ( ) ) ; } + + @ test + public void testZContextSocketCloseBeforeContextClose ( ) + { + ZContext ctx = new ZContext ( ) ; + Socket s1 = ctx . createSocket ( ZMQ . PUSH ) ; + Socket s2 = ctx ...
re add removed test it still passes
<nb> public final class HeaderMap implements Iterable < HeaderValues > { size ++ ; return headerValues ; } + return getOrCreateNonEmpty ( headerName , table , length , idx , o ) ; + } + + private HeaderValues getOrCreateNonEmpty ( HttpString headerName , Object [ ] table , int length , int idx , Object o ...
Change header map slightly to allow code to be inlined
<nb> public class EmbeddedConfigGraphBuilderImpl implements GraphBuilder { LOG . info ( STRING0 + propertiesFile . getPath ( ) + STRING1 ) ; Properties props = new Properties ( ) ; props . load ( new FileInputStream ( propertiesFile ) ) ; - graph . setEmbeddedPreferences ( props ) ; + graph . embeddedPreferen...
towards removing lombok
<nb> class MountService extends IMountService . Stub COMMENT @ override public int getPasswordType ( ) { + mContext . enforceCallingOrSelfPermission ( Manifest . permission . STORAGE_INTERNAL , + STRING0 ) ; + waitForReady ( ) ; final NativeDaemonEvent event ; <nb> public class DevicePolicyManagerSe...
Revert Don t enforce this API it s not sensitive
<nb> public final class LocalBlockOutStream extends BufferedBlockOutStream { RandomAccessFile localFile = mCloser . register ( new RandomAccessFile ( blockPath , STRING0 ) ) ; mLocalFileChannel = mCloser . register ( localFile . getChannel ( ) ) ; SINGLE + FileUtils . changeLocalFileToFullPermission ( blockPath...
Allowing worker to move files created by the client
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Liquibase { COMMENT COMMENT public boolean isSafeToRunMigration ( ) throws DatabaseException { - return ! getDatabase (...
Added diff facade method
<nb> public class ProgressBar extends View { Drawable drawable = a . getDrawable ( R . styleable . ProgressBar_progressDrawable ) ; if ( drawable != null ) { drawable = tileify ( drawable , false ) ; - SINGLE + SINGLE + SINGLE setProgressDrawable ( drawable ) ; } <nb> public class ProgressBar extend...
Fix the build
<nb> public class BluetoothService extends IBluetooth . Stub { COMMENT COMMENT - if ( mUuidIntentTracker . contains ( address ) ) { - ParcelUuid [ ] uuid = getUuidFromCache ( address ) ; - Intent intent = new Intent ( BluetoothDevice . ACTION_UUID ) ; - intent . putExtra ( BluetoothDevice . EXTRA_UUID , u...
Send the UUID intent even if apps have not requested for it
<nb> public class SignCode extends Task { } } - if ( ! STRING0 . equals ( signingSetStatus ) ) { + if ( ! signingService . contains ( STRING1 ) && ! STRING0 . equals ( signingSetStatus ) || + signingService . contains ( STRING1 ) && ! STRING2 . equals ( signingSetStatus ) ) { throw new BuildException ( ST...
Enable the build to continue when test signing is used
<nb> public final class ActivityStackSupervisor implements DisplayListener { SINGLE if ( wasResumed ) { stack . mResumedActivity = r ; + SINGLE + SINGLE + SINGLE + stack . moveToFront ( reason ) ; + } else { + SINGLE + SINGLE + mService . setFocusedActivityLocked ( r , reason ) ; } - SINGLE ...
Set focused activity when moving task fullscreen
<nb> public class ConstructorExpression < T > extends ExpressionBase < T > implements Facto } } } - throw new ExpressionException ( STRING0 ) ; + SINGLE + final StringBuilder formattedTypes = new StringBuilder ( ) ; + for ( Class < ? > typ : givenTypes ) { + if ( formattedTypes . length ( ) > NUMBER0 ) ...
Improved exception message in case no valid constructor was found
<nb> public class MacIntelliJTextFieldUI extends TextFieldWithPopupHandlerUI { @ override protected Rectangle getVisibleEditorRect ( ) { Rectangle rect = super . getVisibleEditorRect ( ) ; - if ( rect != null && isSearchField ( myTextField ) ) { - rect . width -= NUMBER0 ; - rect . x += NUMBER1 ; - rect ....
add text offsets to text fields
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Application implements ApplicationEventHandlers SINGLE if ( isQuitSession ( ) ) { - String returnTo = Window . Location...
Revert return to previous session on quit
<nb> public final class ImageLoaderConfiguration { COMMENT COMMENT public Builder memoryCachePercent ( int memoryCachePercent ) { - if ( memoryCacheSize <= NUMBER0 ) throw new IllegalArgumentException ( STRING0 ) ; + if ( memoryCachePercent <= NUMBER0 ) throw new IllegalArgumentException ( STRING0 ) ; if ...
fix a bug
<nb> public final class DependantColor { } public Color getColor ( Color parentColor ) { - if ( customColor == null ) { - return parentColor ; + if ( mode . equals ( Mode . CUSTOM ) && customColor != null ) { + return customColor ; } - return customColor ; + return parentColor ; } }
Fix Dependant color bug
<nb> public class PythonSkeletonsTest extends PyEnvTestCase { } ) ; final SkeletonVersionChecker checker = new SkeletonVersionChecker ( NUMBER0 ) ; - final PySkeletonRefresher refresher = new PySkeletonRefresher ( project , null , sdk , skeletonsPath , null ) ; + final PySkeletonRefresher refresher = new PySk...
Add env tests
<nb> public class DropTableChange extends AbstractChange { private String tableName ; private Boolean cascadeConstraints ; - @ databasechangeproperty ( mustEqualExisting = STRING0 , since = STRING1 ) + @ databasechangeproperty ( mustEqualExisting = STRING2 , since = STRING1 ) public String getCatalogName ( ...
Fixed wrong mustEqualExisting reference
<nb> public class FileCategoryActivity extends Fragment implements IFileInteractionLi @ override public boolean onBack ( ) { - if ( isHomePage ( ) || curViewPage == ViewPage . NoSD ) { + if ( isHomePage ( ) || curViewPage == ViewPage . NoSD || mFileViewInteractionHub == null ) { return false ; }
Fix null point exception
<nb> public class StatementGenerator extends TreeVisitor { for ( CatchClause cc : node . getCatchClauses ( ) ) { if ( cc . getException ( ) . getType ( ) instanceof UnionType ) { - printMultiCatch ( cc , hasResources ) ; + printMultiCatch ( cc ) ; } buffer . append ( STRING0 ) ; cc . getException ( ) . ...
Fixed method call signature
<nb> public abstract class DexWriter < writer . writeInt ( parameterAnnotations . size ( ) ) ; for ( AnnotationSetKey annotationSetKey : parameterAnnotations ) { - writer . writeInt ( annotationSetSection . getItemOffset ( annotationSetKey ) ) ; + if ( annotationSetSection . getAnnotations ( annotationSetKey ...
Fix issue in DexPool with blank parameter annotations
<nb> public class Http2Channel extends AbstractFramedChannel < Http2Channel , AbstractHt if ( ! initialSettingsReceived ) { if ( frameParser . type != FRAME_TYPE_SETTINGS ) { UndertowLogger . REQUEST_IO_LOGGER . remoteEndpointFailedToSendInitialSettings ( frameParser . type ) ; + StringBuilder sb = new StringBu...
dump the buffer on failure
<nb> public class ProtocolProviderServiceIcqImpl COMMENT public void unregister ( ) { - aimConnection . disconnect ( true ) ; + if ( aimConnection != null ) + aimConnection . disconnect ( true ) ; } COMMENT
Fix disconnect if already no connection
<nb> public class SearchView extends LinearLayoutCompat implements CollapsibleActionV mSearchButton . setVisibility ( visCollapsed ) ; updateSubmitButton ( hasText ) ; mSearchEditFrame . setVisibility ( collapsed ? GONE : VISIBLE ) ; - mCollapsedIcon . setVisibility ( mIconifiedByDefault ? GONE : VISIBLE ) ; ...
Hide SearchView icon when no drawable set support edition
<nb> public class TaskFile implements Stateful { COMMENT public void updateLine ( int lineChange , int line , int newEndOffsetInLine , int oldEndOffsetInLine ) { for ( TaskWindow w : taskWindows ) { - if ( ( w . getLine ( ) == line ) && ( w . getStart ( ) >= oldEndOffsetInLine ) ) { + if ( ( w . getLine ( ) =...
change breaks offset listener
<nb> final class ActivityStack { } } if ( updatedConfig ) { - SINGLE + SINGLE SINGLE mStackSupervisor . resumeFocusedStackTopActivityLocked ( ) ; } <nb> final class ActivityStack { return true ; } + SINGLE + SINGLE + SINGLE + if ( mService . isSleepingOrShuttingDownLocked ( ) && r . stat...
Don t re launch stopped activities while the device is sleeping
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class SpannableStringBuilder implements CharSequence , GetChars , Spannable SINGLE if ( flagsStart == POINT && flagsEnd == MARK && start == end ) { - if ( send ) { - throw new Ill...
Removed exception from SpannableStringBuilder
<nb> public class JvmComponentPlugin implements Plugin < Project > { @ componentbinaries public void createBinaries ( ModelMap < JarBinarySpec > binaries , BinaryNamingSchemeBuilder namingSchemeBuilder , - PlatformResolvers platforms , final JvmLibrarySpec jvmLibrary ) { + PlatformResolvers platforms , final ...
Remove casts to JvmLibrarySpecInternal in NativeBinariesTestPlugin
<nb> public class SmsSyncService extends Service { String label = PrefStore . getImapFolder ( this ) ; try { imapStore = new ImapStore ( String . format ( Consts . IMAP_URI , URLEncoder . encode ( username ) , - URLEncoder . encode ( password ) ) ) ; + URLEncoder . encode ( password ) . replace ( STRING0 , ST...
Fix login error for passwords containing spaces
<nb> public class ContainerUtil extends ContainerUtilRt { @ notnull @ contract ( pure = true ) - public static < K , V > Map < K , V > newHashMap ( int initialCapacity ) { - return ContainerUtilRt . newHashMap ( initialCapacity ) ; - } - - @ notnull - @ contract ( pure = true ) public static < K ext...
remove duplicating method
<nb> public enum ExceptionMessage { SINGLE DESTINATION_CANNOT_BE_FILE ( - STRING0 + STRING1 + STRING2 ) , SINGLE
Addressing a review comment
<nb> public class DiffPanelImpl implements DiffPanelEx , ContentChangeListener , TwoSid ActionManager actionManager = ActionManager . getInstance ( ) ; toolbar . addAction ( actionManager . getAction ( STRING0 ) ) ; toolbar . addAction ( actionManager . getAction ( STRING1 ) ) ; - toolbar . addAction ( new Edit...
diff Don t create inner class for customizing action s icon
<nb> public final class Main { return parser ; } - private void watchClient ( NGContext context ) { + private void watchClient ( final NGContext context ) { context . addClientListener ( new NGClientListener ( ) { @ override public void clientDisconnected ( ) { <nb> public final class Main { SINGLE ...
Print client disconnection
<nb> public class XPrivacy implements IXposedHookLoadPackage , IXposedHookZygoteInit { @ override protected void beforeHookedMethod ( MethodHookParam param ) throws Throwable { try { - if ( param . method . getName ( ) . equals ( hook . getMethodName ( ) ) ) - hook . before ( param ) ; + hook . before ( par...
Remove unneeded checks
<nb> public class OkHttpClient implements Cloneable { } COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Enhance Javadocs on OkHttpClient setSocketFactory
<nb> public class Util { STRING0 , STRING1 , STRING2 , + STRING3 , STRING4 , STRING5 , STRING6 ,
Add lightning paid browser to fallback list
<nb> public class Resources { COMMENT COMMENT @ deprecated - @ nullable public Drawable getDrawable ( @ drawableres int id ) throws NotFoundException { final Drawable d = getDrawable ( id , null ) ; if ( d != null && d . canApplyTheme ( ) ) { <nb> public class Resources { COMMENT COMMENT COMMENT ...
Remove Nullable annotation from getDrawable methods
<nb> public class PlayerListener implements Listener { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void onPlayerPickupItem ( PlayerPickupItemEvent event ) { + } + + COMMENT COMMENT COMMENT COMMENT <nb> public final class JavaPluginLoader implements PluginLoader { ( ( Playe...
Exposes recently added PLAYER_PICKUP_ITEM event
<nb> public class Recents extends SystemUI void preloadRecentsInternal ( ) { SINGLE - SINGLE + SINGLE ActivityManager . RunningTaskInfo topTask = mSystemServicesProxy . getTopMostTask ( ) ; MutableBoolean topTaskHome = new MutableBoolean ( true ) ; RecentsTaskLoader loader = RecentsTaskLoader . getInsta...
Skip recents preloading when there is no task to animate to
<nb> public abstract class BaseChart extends ViewGroup { COMMENT public abstract void clearChart ( ) ; + COMMENT + COMMENT + COMMENT + COMMENT + public void update ( ) { + onDataChanged ( ) ; + } + SINGLE SINGLE SINGLE <nb> public class PieChart extends BaseChart { COMMENT COMMENT @ ...
added public update method
<nb> public class EchoMessage extends WebSocketServlet { @ override protected void onBinaryMessage ( ByteBuffer message ) throws IOException { - System . out . write ( message . array ( ) , NUMBER0 , message . limit ( ) ) ; - System . out . print ( STRING0 ) ; + message . position ( message . limit ( ) ) ; ...
Slightly improve example
<nb> public class StringFieldMapper extends AbstractFieldMapper < String > implements In } } - static class FieldWrapper { - public Field field ; - } - private String nullValue ; private Boolean includeInAll ;
remove dead code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class HashBuilderOperator requireNonNull ( layout , STRING0 ) , outer ) ; - Preconditions . checkArgument ( ! hashChannels . isEmpty ( ) || filt...
Allow no hash columns in HashBuilderOperator
<nb> public class UIManagerModule extends ReactContextBaseJavaModule implements private DisplayMetrics getDisplayMetrics ( ) { Context context = getReactApplicationContext ( ) ; - DisplayMetrics displayMetrics = context . getResources ( ) . getDisplayMetrics ( ) ; + DisplayMetrics displayMetrics = new Display...
Use new DisplayMetrics object in getDisplayMetrics as to not overwrite Android global state
<nb> public interface NodeEntry { boolean isChanged ( ) ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Change the description of NodeEntry markDirty to better align with the InMemoryNodeEntry markDirty implementation
<nb> public class DriverPublication implements AutoCloseable COMMENT public boolean heartbeatCheck ( ) { - boolean heartbeatSent = false ; - - if ( statusMessagesSeen > NUMBER0 ) + final long timeout = statusMessagesSeen > NUMBER0 ? HEARTBEAT_TIMEOUT_NS : INITIAL_HEARTBEAT_TIMEOUT_NS ; + if ( ( timerWhe...
simplify heartbeatCheck to ease understanding
<nb> public class ChatRoomConfigurationWindow COMMENT COMMENT COMMENT - private ChatRoomConfigurationForm configForm ; + protected ChatRoomConfigurationForm configForm ; COMMENT COMMENT COMMENT - private JScrollPane generalScrollPane = new JScrollPane ( ) ; + protected JScrollPane generalScrollPan...
Changes the chat room configuration window class visibility modifiers
<nb> public class Notification implements Parcelable COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix MediaStyle API comments
<nb> public class MetricExportAutoConfiguration { private MetricsEndpointMetricReader endpointReader ; @ bean - @ conditionalonmissingbean + @ conditionalonmissingbean ( name = STRING0 ) public SchedulingConfigurer metricWritersMetricExporter ( ) { Map < String , MetricWriter > writers = new HashMap < S...
Tweak conditions on metric export to make it easier to override
<nb> public class CarbonManager { static { Connection . addConnectionCreationListener ( new ConnectionCreationListener ( ) { public void connectionCreated ( Connection connection ) { - new CarbonManager ( connection ) ; + getInstanceFor ( connection ) ; } } ) ; } <nb> public class CarbonManager { CO...
Don t use manager s constructor in connectionCreated
<nb> public class EpisodesFragment extends ListFragment implements LoaderManager . Load getActivity ( ) . getContentResolver ( ) . delete ( Episodes . buildEpisodeUri ( String . valueOf ( info . id ) ) , null , null ) ; getActivity ( ) . getContentResolver ( ) . notifyChange ( - Episodes . buildEpisodesOfSeason...
Notify change of correct uri episode removal
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RequestMappingIntegrationTests extends AbstractHttpHandlerIntegrati } @ test - @ ignore public void streamResult ( ) throws Exception { ...
Remove Ignore on streamResult test
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; ...
tuned up javadoc
<nb> import NAMESPACE ; import NAMESPACE ; public class WebSocketConnectionFactory implements AsyncConnectionFactory { + @ override - public AsyncConnection createConnection ( ConnectionEndpoint endpoint , AsyncConnectionInterface connectionInterface ) { + public AsyncConnection createConnection ( int con...
Fixed compilation error
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ;
Remove unused import
<nb> class DescriptionPattern extends TregexPattern { } private void removeNamedNodes ( ) { - if ( ( myNode . descPattern != null || myNode . isLink ) && + if ( ( myNode . descriptionMode != null || myNode . isLink ) && myNode . name != null ) { namesToNodes . remove ( myNode . name ) ; } <nb> public ...
Fix a bug in tregex where variable nodes were not being correctly reset
<nb> public class Solo { COMMENT COMMENT - public void waitForText ( String text ) { + public boolean waitForText ( String text ) { - robotiumUtils . waitForText ( text ) ; + return robotiumUtils . waitForText ( text ) ; }
Changed void to boolean
<nb> public class MavenPropertyCompletionAndResolutionTest extends MavenDomTestCase { assertNotNull ( ref ) ; PsiElement resolved = ref . resolve ( ) ; - assertEquals ( System . getenv ( STRING0 ) . replaceAll ( STRING1 , STRING2 ) , ( ( IProperty ) resolved ) . getValue ( ) . replaceAll ( STRING1 , STRING2 ) )...
Fix the test MavenPropertyCompletionAndResolutionTest testUpperCaseEnvPropertiesOnWindows
<nb> class HiveSplitSourceProvider } } else { - SINGLE + SINGLE + List < HostAddress > addresses = ImmutableList . of ( ) ; + if ( blockLocations . length > NUMBER0 ) { + addresses = toHostAddress ( blockLocations [ NUMBER0 ] . getHosts ( ) ) ; + } + builder . add ( new HiveSplit ( connectorId , ...
Fix handling of non splittable files without blocks
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LogApplier extends Thread } } } - catch ( IOException e ) + catch ( Exception e ) { System . err . println ( STRING0 + e ) ; e . printStackTrace ( ) ; <nb> public abstract class Job ...
Removed log spam and changed LogApplier to log exceptions and re try again
<nb> public class ServletContextImpl implements ServletContext { @ override public String getServerInfo ( ) { - return null ; + return STRING0 ; SINGLE } @ override
Add server info
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TachyonFileSystemIntegrationTest { COMMENT COMMENT private String createAlter...
Fix build UNDERFS_ADDRESS is a URI not a Path
<nb> public class Main static void usageExit ( Throwable t , int exit ) { - t . printStackTrace ( System . err ) ; + if ( t != null ) + { + t . printStackTrace ( System . err ) ; + } System . err . println ( ) ; System . err . println ( STRING0 ) ; System . err . println ( STRING1 ) ; <nb> publi...
Reducing code duplication
<nb> public abstract class ItemRecyclerViewAdapter < VH extends ItemRecyclerViewAdapter } protected void onItemLoaded ( int position , ItemManager . Item item ) { - notifyItemChanged ( position ) ; + if ( position < getItemCount ( ) ) { + notifyItemChanged ( position ) ; + } } private void highlight...
Ignore loaded item when list is invalidated
<nb> public class SampleFactory implements SampleSource { continue ; for ( StreetEdge e : Iterables . filter ( input . getOutgoing ( ) , StreetEdge . class ) ) { - if ( e . canTraverse ( new TraverseModeSet ( TraverseMode . WALK ) ) ) + if ( e . canTraverse ( new TraverseModeSet ( TraverseMode . WALK ) ) ) { ...
fix stack overflow
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; <nb> COMMENT COMMENT COMMENT - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Move SquidCursorFactory into the adapter package
<nb> public final class CcLinkParams { librariesBuilder . build ( ) , extraLinkTimeLibraries ) ; } - private boolean add ( CcLinkParamsStore store ) { + public boolean add ( CcLinkParamsStore store ) { if ( store != null ) { CcLinkParams args = store . get ( linkingStatically , linkShared ) ; addTransit...
Expose CcLinkParams add CcLinkParamsStore to allow callers to merge several params store into one
<nb> public class Version { } catch ( Throwable t ) { SINGLE - throw new GdxRuntimeException ( STRING0 + VERSION ) ; + throw new GdxRuntimeException ( STRING0 + VERSION , t ) ; } }
Added the root cause to the exception
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix obsolete advice in RelativeLayout s documentation
<nb> public class IceConfigPanel COMMENT protected boolean isUseUPNP ( ) { - return iceBox . isSelected ( ) ; + return upnpBox . isSelected ( ) ; } COMMENT
Fix disable enable upnp option in wizard
<nb> public class TextEditingTarget implements if ( executeChunks ) { - executePreviousChunks ( docDisplay_ . getDocumentEnd ( ) ) ; + executePreviousChunks ( Position . create ( + docDisplay_ . getDocumentEnd ( ) . getRow ( ) + NUMBER0 , + NUMBER1 ) ) ; } else {
ensure final chunk in Rmd doc executed on Run All
<nb> public class OSQLMethodFormat extends OAbstractSQLMethod { final Object v = getParameterValue ( iRecord , iMethodParams [ NUMBER0 ] . toString ( ) ) ; if ( v != null ) { if ( ioResult instanceof Number ) - ioResult = new Date ( ( ( Long ) ioResult ) . longValue ( ) ) ; + ioResult = new Date ( ( ( Number ...
Fixed last patch to support Numbers on format
<nb> public class AggregatorFactories { List < ReducerFactory > orderedReducers , List < ReducerFactory > unmarkedFactories , Set < ReducerFactory > temporarilyMarked , ReducerFactory factory ) { if ( temporarilyMarked . contains ( factory ) ) { - throw new ElasticsearchIllegalStateException ( STRING0 + factory...
Cleaning up NOCOMMITs which are resolved
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ bugpattern ( name = STRING0 , + @ bugpattern ( name = STRING0 , altNames = STRING1 , summary = STRING2 , explanation = STRING3 + STRING4
Add an alt name for GuardedBy
<nb> public class AsyncHttpRequest implements Runnable { public boolean cancel ( boolean mayInterruptIfRunning ) { isCancelled = true ; if ( mayInterruptIfRunning && request != null && ! request . isAborted ( ) ) { - request . abort ( ) ; + new Thread ( new Runnable ( ) { + @ override + public void run ( ...
fix an exception
<nb> final class DefaultPermissionGrantPolicy { && doesPackageSupportRuntimePermissions ( carrierPackage ) ) { grantRuntimePermissionsLPw ( carrierPackage , PHONE_PERMISSIONS , userId ) ; grantRuntimePermissionsLPw ( carrierPackage , LOCATION_PERMISSIONS , userId ) ; + grantRuntimePermissionsLPw ( carrierPackag...
Add SMS permissions for Carrier app
<nb> public final class FileSystemMaster extends AbstractMaster { inode . setPersistenceState ( PersistenceState . LOST ) ; } } catch ( FileDoesNotExistException e ) { - LOG . error ( STRING0 , e . toString ( ) ) ; + SINGLE + SINGLE } } }
Remove noisy logging