diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
public class GridSchemaV99 extends SchemaV3 < Grid , GridSchemaV99 > {
SINGLE
<nb> public class Schema < I extends Iced , S extends Schema < I , S > > extends Iced {
String [ ] packages = new String [ ] { STRING0... | Add SchemaV3 to the list of classes that need extra help when discovering all schemas |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class FreeMarkerConfigurationFactory {
COMMENT
COMMENT
COMMENT
- protected void postProcessTemplateLoaders ( List templateLoaders ) {
+ protected void postProcessTemplateLoaders ( List < TemplateLoader > templateLoaders ) {
}... | Velocity FreeMarker TilesViewResolver only return a view if the target resource exists now |
<nb> public class NetworkRequest implements Parcelable {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Builder clearCapabilities ( ) {
+ mNetworkCapabilities . clearAll ( ) ;
+ return this ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Add a hidden method to clear the capabilities of a NetworkRequest |
<nb> public class HiveMetaStoreClient implements IMetaStoreClient {
throw new MetaException ( STRING0 +
STRING1 ) ;
} else {
+ close ( ) ;
SINGLE
SINGLE
SINGLE
<nb> public class HiveMetaStoreClient implements IMetaStoreClient {
client . shutdown ( ) ;
}
} catch ( TException e ) {
- LOG . error (... | HiveMetaStoreClient should close existing thrift connection before its reconnect Chaoyu Tang via Szehon |
<nb> public class VirtualMachineMetrics {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT | Hide our shame from the Javadocs |
<nb> public class HostConfig
Long . valueOf ( warDocBase . lastModified ( ) ) ) ;
} else {
SINGLE
- deployedApp . reloadResources . put (
+ deployedApp . redeployResources . put (
warDocBase . getAbsolutePath ( ) ,
Long . valueOf ( NUMBER0 ) ) ;
} | In order to unpack a WAR remove the directory before reload a WAR |
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener
SINGLE
setMovementMethod ( selectable ? ArrowKeyMovementMethod . getInstance ( ) : null ) ;
- setText ( getText ( ) , selectable ? BufferType . SPANNABLE : BufferType . NORMAL ) ;
+ setText ( mText , selectable ? BufferTyp... | Fixed cast exception with selectable text |
<nb> public class TLSStreamHandler {
}
catch ( UnsupportedEncodingException e ) { }
catch ( IOException e ) { }
-
+ catch ( Exception e ) {
+ Log . error ( STRING0 , e ) ;
+ }
}
SINGLE
if ( Log . isDebugEnabled ( ) ) { | Added extra catch |
<nb> public abstract class Node {
SINGLE
return null ;
}
+
+ public String toString ( ) {
+ return getNodeName ( ) ;
+ }
}
<nb> public class Parser {
Tag tag = Tag . valueOf ( token . getTagName ( ) ) ;
StartTag startTag = new StartTag ( tag , attributes ) ;
+ SINGLE
+ if ( doc . getTag ( ) ... | Ignore tag html in parse tree as created by doc |
<nb> public class Utils {
return episodeAirtime ;
} catch ( ParseException e ) {
- e . printStackTrace ( ) ;
+ SINGLE
+ return - NUMBER0 ;
}
-
- return - NUMBER0 ;
}
COMMENT | Remove unnecessary log output |
<nb> public class StaticListableBeanFactory implements ListableBeanFactory {
return ( T ) bean ;
}
- @ suppresswarnings ( STRING0 )
- public Object getBean ( String name , Object [ ] args ) throws BeansException {
+ public Object getBean ( String name , Object . . . args ) throws BeansException {
if ( arg... | consistently use varargs signature |
<nb> public abstract class WallpaperService extends Service {
if ( ! mDestroyed ) {
if ( DEBUG ) Log . v ( TAG , STRING0
+ desiredWidth + STRING1 + desiredHeight + STRING2 + this ) ;
+ mIWallpaperEngine . mReqWidth = desiredWidth ;
+ mIWallpaperEngine . mReqHeight = desiredHeight ;
onDesiredSizeChanged ( de... | Report the new size to wallpapers when the requested size changed |
<nb> public class RuleEngine implements EventHandler , ItemRegistryChangeListener , Sta
COMMENT
COMMENT
COMMENT
- public void stateChanged ( Item item , State oldState , State newState ) {
-
- SINGLE
- stateUpdated ( item , newState ) ;
-
- SINGLE
+ public void stateChanged ( Item item , State oldSt... | fixed problem with update rules being executed twice |
<nb> public class WeldDeploymentBinding implements AppLifeCycle . Binding
{
WebAppContext webapp = ( WebAppContext ) handler ;
+ SINGLE
+ SINGLE
+ SINGLE
webapp . setInitParameter ( STRING0 ,
STRING1 ) ; | Adding notes about weld and container discovery |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public class IrcStack implements IrcConnectionListener | Added marker for minor clean up issue |
<nb> class HTMLTextPainter {
if ( marker != null && marker . startOffset <= hEnd ) {
Color color = marker . separatorColor ;
writer . write ( STRING0 + mySeparatorStyles . get ( color ) + STRING1 ) ;
- myCurrentMethodSeparator ++ ;
+ do {
+ myCurrentMethodSeparator ++ ;
+ }
+ while ( myCurrentMethodSepa... | render only one method separator if there are several of them for the same offset |
<nb> public final class SuspendableHelper {
|| className . startsWith ( STRING0 )
|| className . startsWith ( STRING1 )
|| className . contains ( STRING2 )
- || ( className . equals ( STRING3 ) && methodName . equals ( STRING4 ) ) )
+ || ( className . equals ( STRING3 ) && methodName . equals ( STRING4 ) )
... | Don t warn about uninstrumented Var set as it doesn t block for real |
<nb> public class NaturalLogicAnnotator extends SentenceAnnotator {
int min = root . index ( ) ;
int max = root . index ( ) ;
Queue < IndexedWord > fringe = new LinkedList < > ( ) ;
- for ( SemanticGraphEdge edge : tree . getOutEdgesSorted ( root ) ) {
+ for ( SemanticGraphEdge edge : tree . outgoingEdgeItera... | Remove a sort on edge list |
<nb> public abstract class AndroidLiveWallpaperService extends WallpaperService {
app . initialize ( listener , config ) ;
- if ( config . getTouchEventsForLiveWallpaper && Integer . parseInt ( android . os . Build . VERSION . SDK ) < NUMBER0 )
+ if ( config . getTouchEventsForLiveWallpaper && Integer . parse... | Fixed Live Wallpaper touch events on older API |
<nb> public class ChangesViewManager implements ChangesViewI , JDOMExternalizable , Pro
private class ToggleDetailsAction extends ToggleAction implements DumbAware {
private ToggleDetailsAction ( ) {
- super ( STRING0 , STRING0 , detailsIcon ) ;
+ super ( STRING1 , STRING1 , detailsIcon ) ;
}
@ override | Change Details action name |
<nb> public final class BatchEntryConsumer < T extends Entry >
if ( noProgressTracker )
{
- sequence = i ;
+ sequence = entry . getSequence ( ) ;
}
}
<nb> public final class BatchEntryConsumer < T extends Entry >
exceptionHandler . handle ( ex , entry ) ;
if ( noProgressTracker )
{
- sequence ... | Set BatchEntryConsumer sequence for advancement directly from the Entry to prevent getting out of step |
<nb> public class DependencyManager implements InstallShinyEvent . Handler
STRING0 , SINGLE
STRING1 ) ; SINGLE
deps . add ( Dependency . cranPackage ( STRING2 , STRING3 , true ) ) ;
+ deps . add ( Dependency . cranPackage ( STRING4 , STRING5 , true ) ) ;
withDependencies (
STRING6 , | add rstudioapi to shiny gadget dependencies |
<nb> public class UnshareOperation extends SyncOperation {
getStorageManager ( ) . saveFile ( file ) ;
getStorageManager ( ) . removeShare ( share ) ;
-
- } else if ( ! existsFile ( client , file . getRemotePath ( ) ) ) {
+
+ } else if ( ! existsFile ( client , file . getRemotePath ( ) ) && result . getCo... | Fix bug Unsharing in maintenance mode removes the file |
<nb> public class FileMetadata {
}
private static void read ( Reader reader , CharHandler . . . handlers ) throws IOException {
- char c = ( char ) NUMBER0 ;
+ char c ;
int i = reader . read ( ) ;
boolean afterCR = false ;
while ( i != - NUMBER1 ) {
<nb> public class FileMetadata {
} else if ( c == ... | Fix some quality flaws |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class TvView extends ViewGroup {
private static final String TAG = STRING0 ; | Add explanation for TvView |
<nb> public class EsTester extends ExternalResource {
node . start ( ) ;
assertThat ( DiscoveryNode . localNode ( node . settings ( ) ) ) . isTrue ( ) ;
+ SINGLE
+ node . client ( ) . admin ( ) . cluster ( ) . prepareHealth ( )
+ . setWaitForGreenStatus ( )
+ . get ( ) ;
+
SINGLE
DeleteIndexResponse... | Stabilize startup of ES in tests |
<nb> public class RunTests {
private static Log log = LogFactory . getLog ( RunTests . class ) ;
public static void main ( String [ ] args ) {
- try {
+ try {
+ log . info ( STRING0 ) ;
ConfigurableApplicationContext appCtx = ( ConfigurableApplicationContext ) GrailsUtil . bootstrapGrailsFromClassPath ( )... | log test run errors to logger |
<nb> public class GithubConnection {
. setSocketTimeout ( timeout ) ;
final HttpConfigurable proxySettings = HttpConfigurable . getInstance ( ) ;
- boolean useProxy = auth . isUseProxy ( ) && proxySettings . USE_HTTP_PROXY && ! StringUtil . isEmptyOrSpaces ( proxySettings . PROXY_HOST ) ;
+ boolean useProxy =... | remove check for consistency |
<nb> public class ExternalExtensionsDialog extends JDialog {
if ( column == NUMBER0 ) {
ExternalExtension extension = ( ( ExtensionTableModel ) table . getModel ( ) ) . getExtension ( row ) ;
Dependency dep = extension . generateDependency ( ) ;
- boolean selected = ( boolean ) table . getModel ( ) . getValueAt... | Fixed compilation error in ExternalExtensionsDialog |
<nb> public class TachyonFile implements Comparable < TachyonFile > {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- String getUfsPath ( ) throws IOException {
- return TFS . getUfsPath ( FID ) ;
- }
-
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class TachyonFile imple... | Fixing merge issue |
<nb> public class EditTextPreferenceWithValidation extends EditTextPreference {
WPPrefUtils . layoutAsFlatButton ( positiveButton ) ;
}
if ( negativeButton != null ) WPPrefUtils . layoutAsFlatButton ( negativeButton ) ;
+
+ CharSequence summary = getSummary ( ) ;
+ if ( TextUtils . isEmpty ( summary ) ) {
... | Set initial text for EditTextPreferenceWithValidation dialog |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- @ runwith ( Runner . class )
@ ebean
@ xmltype
@ testtargetclass ( String . class ) | Remove RunWith from HasOtherAnnotations |
<nb> public class PatternSet implements AntBuilderAware , PatternFilterable {
private static PatternSpecFactory createPatternSpecFactory ( ) {
try {
SINGLE
+ SINGLE
Class clazz = PatternSet . class . getClassLoader ( ) . loadClass ( new StringBuilder ( STRING0 ) . append ( STRING1 ) . toString ( ) ) ;
retur... | add comment about why StringBuilder is used here |
<nb> public class FirstWizardPage
private JLabel nick
= new JLabel ( Resources . getString ( STRING0 ) ) ;
- private JLabel passLabel
- = new JLabel ( Resources . getString ( STRING1 ) ) ;
+ private JLabel passLabel = new JLabel (
+ Resources . getString ( STRING1 ) + STRING2 ) ;
private JLabel server... | Fix bad resource label |
<nb> public class PrivacyService {
else {
restriction . restrictionName = hook . getReplacedRestriction ( ) ;
restriction . methodName = hook . getReplacedMethod ( ) ;
+ Util . log ( null , Log . WARN , STRING0 + restriction + STRING1 + hook ) ;
}
}
} | Log replaced methods |
<nb> public class OperatorOnBackpressureBuffer < T > implements Operator < T , T > {
@ override
public Object poll ( ) {
Object value = queue . poll ( ) ;
- if ( capacity != null ) {
+ if ( capacity != null && value != null ) {
capacity . incrementAndGet ( ) ;
}
return value ; | Added value null check |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class ProjectViewDropTarget implements DnDNativeTarget {
else if ( sourceNodes == null && ! FileCopyPasteUtil . isFileListFlavorSupported ... | prevent Drag n drop nodes to themselves |
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- private static void captureViewInfo ( String subTag , View v ) {
- if ( v == null || SystemProperties . getInt ( ViewDebug . SYSTEM_PROPERTY_CAPTURE_VIEW , NU... | Remove useless code |
<nb> public class LocationManagerService extends ILocationManager . Stub implements Run
public void removeTestProvider ( String provider ) {
checkMockPermissionsSafe ( ) ;
synchronized ( mLock ) {
- MockProvider mockProvider = mMockProviders . get ( provider ) ;
+ MockProvider mockProvider = mMockProviders . ... | Fix Wrong parameter in HashMap remove |
<nb> public class DrawHandler extends Handler {
}
private void initRenderingConfigs ( ) {
- DanmakuTimer timer = new DanmakuTimer ( ) ;
- timer . update ( System . nanoTime ( ) ) ;
- int frameCount = NUMBER0 ;
- for ( int i = NUMBER1 ; i < frameCount ; i ++ ) {
- mDanmakuView . clear ( ) ;
- }
- lon... | Cancel inaccurate fps performance pre measure |
<nb> public class VersionOneProtocolChannelReceiver implements Channel . Receiver , Depl
COMMENT
private void cleanupOnChannelDown ( ) {
SINGLE
- for ( final ClusterTopologyUpdateListener clusterTopologyUpdateListener : this . clusterTopologyUpdateListeners ) {
- clusterTopologyUpdateListener . unregisterList... | Obtain a lock while iterating over the synchronized set |
<nb> public class JavadocHighlightingTest extends LightDaemonAnalyzerTestCase {
@ notnull
@ override
protected LocalInspectionTool [ ] configureLocalInspectionTools ( ) {
+ JavaDocLocalInspection localInspection = new JavaDocLocalInspection ( ) ;
+ localInspection . setIgnoreDuplicatedThrows ( false ) ;
ret... | restore old defaults in tests |
<nb> public class SystemLogRecord implements Comparable , DataSerializable {
message = in . readUTF ( ) ;
type = in . readUTF ( ) ;
}
+
+ @ override
+ public String toString ( ) {
+ return STRING0 +
+ STRING1 + date +
+ STRING2 + node + STRING3 +
+ STRING4 + message + STRING3 +
+ STRING5 + type + ... | Added toString to SystemLogRecord |
<nb> public class PersistentCookieStore implements CookieStore {
public void addCookie ( Cookie cookie ) {
String name = cookie . getName ( ) ;
+ SINGLE
+ if ( ! cookie . isExpired ( new Date ( ) ) ) {
+ cookies . put ( name , cookie ) ;
+ } else {
+ cookies . remove ( name ) ;
+ }
+
SINGLE
cook... | Remove expired cookies thanks neromancer |
<nb> public class PlanPrinter
print ( indent , STRING0 , node . getTable ( ) , node . getOriginalConstraint ( ) , formatOutputs ( node . getOutputSymbols ( ) ) ) ;
for ( Map . Entry < Symbol , ColumnHandle > entry : node . getAssignments ( ) . entrySet ( ) ) {
boolean isOutputSymbol = node . getOutputSymbols ( ) ... | Fix NPE in PlanPrinter |
<nb> public class ShadowView {
private View . OnTouchListener onTouchListener ;
protected AttributeSet attributeSet ;
private boolean drawingCacheEnabled ;
+ private boolean didRequestLayout ;
public void __constructor__ ( Context context ) {
__constructor__ ( context , null ) ;
<nb> public class Shadow... | added ShadowView requestLayout |
<nb> public class NameToSymbolRewriter
@ override
public Node rewriteQualifiedNameReference ( QualifiedNameReference node , Void context , TreeRewriter < Void > treeRewriter )
{
- SINGLE
- List < Field > fields = descriptor . resolve ( node . getName ( ) ) ;
-
- if ( fields . isEmpty ( ) && symbols . cont... | Fix issue with symbols vs attribute name disambiguation |
<nb> public class Frame
}
@ override
- protected Object decode ( ChannelHandlerContext ctx , Channel channel , ChannelBuffer buffer )
+ protected Object decode ( ChannelHandlerContext ctx , Channel channel , ChannelBuffer buffer )
throws Exception
{
ChannelBuffer frame = ( ChannelBuffer ) super . decode... | Fix bug in binary protocol |
<nb> public class SourceFormatter {
private static Pattern _jspIncludeFilePattern = Pattern . compile (
STRING0 ) ;
private static Pattern _languageKeyPattern = Pattern . compile (
- STRING1 ) ;
+ STRING2 ) ;
private static Properties _lineLengthExclusionsProperties ;
private static Properties _portalLang... | sourceformatter add LanguageUtil format |
<nb> public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
}
public double sample ( long timePeriod ) {
- int received = inMessages . getAndSet ( NUMBER0 ) ;
- return received / timePeriod ;
+ return inMessages . getAndSet ( NUMBER0 ) ;
}
} ;
StatisticsManager . getInstance ... | Modified RATE statistics to just return number not a rate |
<nb> public class OtrAndroidKeyManagerImpl extends IOtrKeyManager . Stub implements Otr
public static void setKeyStorePassword ( String keyStorePassword )
{
mKeyStorePassword = keyStorePassword ;
+
+ if ( _instance != null )
+ {
+ _instance = null ;
+
+ }
}
public static synchronized OtrAndroidK... | if new OTR password set remove the existing instance |
<nb> public abstract class BarLineChartBase extends Chart {
}
}
+ if ( mDataNotSet ) {
+ Log . i ( LOG_TAG , STRING0 ) ;
+ return null ;
+ }
+
ArrayList < SelInfo > valsAtIndex = getYValsAtIndex ( xIndex ) ;
dataSetIndex = getClosestDataSetIndex ( valsAtIndex , ( float ) yTouchVal ) ;
<nb> publi... | fix a couple of npe caused by user tapping on a chart which has no data |
<nb> final class RemoteConnectionService {
@ override
public void setVideoProvider ( String callId , IVideoProvider videoProvider ) {
+ RemoteConnection . VideoProvider remoteVideoProvider = null ;
+ if ( videoProvider != null ) {
+ remoteVideoProvider = new RemoteConnection . VideoProvider ( videoProvider ... | Fix crash when making emergency calls |
<nb> public class MongoOptions {
public int connectTimeout ;
COMMENT
- The socket timeout ; this value is passed to { @ link java . net . Socket . setSoTimeout } . NUMBER0 is default and infinite
+ The socket timeout ; this value is passed to { @ link java . net . Socket # setSoTimeout ( int ) } . NUMBER0 is ... | fixed javadoc comment link |
<nb> public class TaskManager implements TaskOperationProtocol , PluginCommunicationPr
if ( task == null ) {
final TaskSubmissionResult result = new TaskSubmissionResult ( id ,
AbstractTaskResult . ReturnCode . TASK_NOT_FOUND ) ;
- result . setDescription ( STRING0 + id + STRING1 ) ;
+ result . setDescription... | Fixed bug in Task Manager |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
return null ;
} else if ( remoteAddress ( ) != null ) {
return new Runna... | Make test suite mostly pass by avoiding ClosedChannelException |
<nb> public class IndexUploader {
throw new OneFileException ( STRING0 + fileName ) ;
}
- String regionName = fileName . substring ( NUMBER0 , fileName . lastIndexOf ( STRING1 , fileName . indexOf ( STRING2 ) ) ) ;
+ int last = fileName . lastIndexOf ( STRING1 , fileName . indexOf ( STRING2 ) ) ;
+ if ( las... | Fix small issues |
<nb> public class CubeImageView extends ImageView {
SINGLE
final Drawable previousDrawable = getDrawable ( ) ;
- SINGLE
+
super . setImageDrawable ( drawable ) ;
+ SINGLE
+ if ( drawable == null ) {
+ mImageLoader . getImageLoadHandler ( ) . onLoadError ( mImageTask , this , NUMBER0 ) ;
+ } else {
... | fix CubeImageView display last viewholders image when imageurl is null |
<nb> class ProcessHyperlinkAction extends FBAndroidAction {
}
toast . setText ( snippet . getText ( ) ) ;
toast . setDuration ( SuperToast . Duration . LONG ) ;
+ SuperActivityToast . cancelAllSuperActivityToasts ( ) ;
toast . show ( ) ;
} else {
Reader . tryOpenFootnote ( hyperlink . Id ) ;
<nb> public... | hide old toast immediately if a ne one is requested |
<nb> public class Execution {
}
}
if ( ! good ) {
- System . exit ( NUMBER0 ) ;
+ throw new RuntimeException ( STRING0 ) ;
+ SINGLE
}
return canFill ;
<nb> public class Execution {
}
endTracksTo ( STRING1 ) ; SINGLE
if ( exit ) {
- System . exit ( exitCode ) ;
+ throw new RuntimeException ... | changed system exit to runtimeexception |
<nb> public class PageCacheRecycler extends AbstractComponent {
public static Type parse ( String type ) {
if ( Strings . isNullOrEmpty ( type ) ) {
- return SOFT_CONCURRENT ;
+ return CONCURRENT ;
}
try {
return Type . valueOf ( type . toUpperCase ( Locale . ROOT ) ) ; | change the default type of the page recycler to CONCURRENT instead of SOFT_CONCURRENT |
<nb> public abstract class AbstractRoutine < T > extends AbstractQueryPart implements Ro
registerOutParameters ( configuration , ( CallableStatement ) ctx . statement ( ) ) ;
listener . bindEnd ( ctx ) ;
- SINGLE
- SINGLE
- boolean autoCommit = connection . getAutoCommit ( ) ;
- if ( autoCommit && configu... | Remove tweaking of auto commit in AbstractRoutine |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Added TODO for future work w r t presence of chat room members |
<nb> public class WifiStateMachine extends StateMachine {
}
case CMD_RECONNECT :
case CMD_REASSOCIATE :
- SINGLE
- SINGLE
- if ( mTemporarilyDisconnectWifi ) ret = NOT_HANDLED ;
+ if ( mTemporarilyDisconnectWifi ) {
+ SINGLE
+ SINGLE
+ break ;
+ } else {
+ SINGLE
+ ret = NOT_HANDLED ;
+ }
... | Fix reconnect reassociate handling |
<nb> public abstract class ORecordAbstract < T > implements ORecord < T > , ORecordInternal <
}
public String toJSON ( ) {
- return toJSON ( STRING0 ) ;
+ return toJSON ( STRING1 ) ;
}
public String toJSON ( final String iFormat ) {
<nb> public class JSONTest {
firstLevelDoc . field ( STRING2 , seco... | Fixed bug on Record toJSON |
<nb> public class TestRequest extends TestCase {
}
public void testFirstAndLastLeg ( ) throws Exception {
- TestPlanner planner = new TestPlanner ( STRING0 , STRING1 , STRING2 ) ;
-
- Response response = planner . getFirstTrip ( ) ;
- Itinerary itinerary = response . getPlan ( ) . itinerary . get ( NUMBER... | Remove testFirstAndLastLeg method |
<nb> public class ActivityChooserModel extends DataSetObservable {
}
}
- COMMENT
- COMMENT
- COMMENT
private void readHistoricalDataImpl ( ) {
FileInputStream fis = null ;
try { | Remove an obsolete code comment |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb>
package NAMESPACE ;
- import N... | Removed unused imports |
<nb> public class PShape3D extends PShape {
if ( tex != null ) {
shader . setTexCoordAttribute ( root . glFillTexCoordBufferID , NUMBER0 , PGL . GL_FLOAT , NUMBER1 , NUMBER0 * first * PGL . SIZEOF_FLOAT ) ;
+ shader . setTexture ( tex ) ;
}
pgl . glBindBuffer ( PGL . GL_ELEMENT_ARRAY_BUFFER , root . glFil... | added shader setTexture call in PShape3D renderFill |
<nb> public class StandardIDPool implements IDPool {
}
long id = nextID ;
nextID ++ ;
- log . debug ( STRING0 , partitionID , id ) ;
+ log . trace ( STRING0 , partitionID , id ) ;
return id ;
} | Updated log from debug to trace due to excessive output |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class DefaultIdeaContentRoot implements IdeaContentRoot {
+ public class DefaultIdeaContentRoot implements IdeaContentRoot , Serializable {
File rootDirectory ; | ToolingAPI for IDEA Added missing Serializable aspect problem exposed thanks to the samples test |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ProjectLevelVcsManagerImpl extends ProjectLevelVcsManagerEx impleme
return FileUtil . getRelativePath ( toRevision . getFile ( ) . getIOFile ( ) , fromRevision . getFile ( )... | delete some unused stuff |
<nb> public class ClusterMemoryManager
maxMemory = bytesUsed ;
}
}
- for ( QueryExecution queryExecution : queries ) {
- if ( queryExecution . getQueryId ( ) . equals ( biggestQuery . getQueryId ( ) ) ) {
- queryExecution . setMemoryPool ( new VersionedMemoryPoolId ( RESERVED_POOL , version ) ) ;
- }
+ ... | Simplify updateAssignments in ClusterMemoryManager |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ; | eliminate eclipse warnings |
<nb> public class TitlePageIndicator extends View implements PageIndicator {
SINGLE
ArrayList < RectF > bounds = calculateAllBounds ( mPaintText ) ;
+ SINGLE
+ if ( mCurrentPage >= bounds . size ( ) )
+ setCurrentItem ( bounds . size ( ) - NUMBER0 ) ;
+
final int count = mViewPager . getAdapter ( ) . ge... | Handle missing fragment crash |
<nb> public class BatteryListener extends Plugin {
}
COMMENT
+ COMMENT
+ COMMENT
+ public void onReset ( ) {
+ removeBatteryListener ( ) ;
+ }
+
+ COMMENT
COMMENT
COMMENT
private void removeBatteryListener ( ) { | Add onReset to BatteryListener |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DatabaseEditorInputFactory implements IElementFactory
if ( result == null && errorStatus != null ) {
result = new ErrorEditorInput ( errorStat... | Handle editor reopening errors |
<nb> public class SweetAlertDialog extends Dialog implements View . OnClickListener {
playAnimation ( ) ;
}
- public void dismiss ( ) {
+ COMMENT
+ COMMENT
+ COMMENT
+ public void dismissWithAnimation ( ) {
mConfirmButton . startAnimation ( mOverlayOutAnim ) ;
mDialogView . startAnimation ( mModalOu... | Rename the dismiss to dismissWithAnimation |
<nb> public class CropOverlayView extends View {
drawBorders ( canvas ) ;
- if ( mCropShape == CropImageView . CropShape . RECTANGLE ) {
- drawCorners ( canvas ) ;
- }
+ drawCorners ( canvas ) ;
}
COMMENT | Added corners to circular crop window |
<nb> public abstract class AbstractJPATest {
for ( Group entry : result . values ( ) ) {
assertNotNull ( entry . getOne ( cat . id ) ) ;
assertNotNull ( entry . getOne ( cat . name ) ) ;
- assertNotNull ( entry . getList ( k ) ) ;
+ assertFalse ( entry . getList ( k ) . isEmpty ( ) ) ;
}
} | Make assertions stronger |
<nb> public class TileAutoWorkbench extends TileEntity implements ISpecialInventory {
}
+ public IRecipe getCurrentRecipe ( ) {
+
+ return currentRecipe ;
+ }
+
@ override
public int getSizeInventory ( ) { | add a method to get the recipe |
<nb> public class IndexShard extends AbstractIndexShardComponent implements IndexSett
COMMENT
private void markLastWrite ( Engine . Operation op ) {
lastWriteNS = op . startTime ( ) ;
+ active . set ( true ) ;
}
private void ensureWriteAllowed ( Engine . Operation op ) throws IllegalIndexShardStateExcepti... | set active to true on indexing ops |
<nb> package NAMESPACE ;
COMMENT
abstract public class RemoteSshProcess extends Process {
COMMENT
- COMMENT
+ COMMENT
COMMENT
public abstract void addRemoteTunnel ( int remotePort , String host , int localPort ) throws RemoteInterpreterException ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
public abs... | corrected javadoc for RemoteSshProcess add Remote Local Tunnel |
<nb> public class ShadowMessage {
m . obj = obj ;
return m ;
}
+
+ @ implementation
+ public void sendToTarget ( ) {
+ target . sendMessage ( message ) ;
+ }
}
<nb> public class MessageTest {
assertThat ( m . arg2 , equalTo ( arg2 ) ) ;
assertThat ( m . obj , equalTo ( obj ) ) ;
}
+
+ @ te... | Added Message sendToTarget |
<nb> public class ApacheAsyncHttpProvider implements AsyncHttpProvider {
} else if ( config . getUserAgent ( ) != null ) {
method . setRequestHeader ( STRING0 , config . getUserAgent ( ) ) ;
} else {
- method . setRequestHeader ( STRING0 , AsyncHttpProviderUtils . constructUserAgent ( NettyAsyncHttpProvider . c... | Fix cut paste typo |
<nb> public class HttpUtil {
return responseBody ;
}
catch ( HttpException he ) {
- logger . error ( STRING0 , he . getMessage ( ) ) ;
+ logger . error ( STRING1 , he . toString ( ) ) ;
}
catch ( IOException ioe ) {
- logger . error ( STRING2 , ioe . getMessage ( ) ) ;
+ logger . error ( STRING2 , ioe... | improved logging statements |
<nb> public class RedissonLockEntry {
public RedissonLockEntry ( Promise < Boolean > promise ) {
super ( ) ;
- this . latch = new Semaphore ( NUMBER0 ) ;
+ this . latch = new Semaphore ( NUMBER1 ) ;
this . promise = promise ;
} | Fix RLock s entries |
<nb> public class NodeEngineImpl implements NodeEngine {
node , logger , operationService , eventService , wanReplicationService , executionService ) ;
}
- public PacketTransceiver getPacketTransceiver ( ) {
+ public PacketTransceiver getPacketTransceiver ( ) {
return packetTransceiver ;
}
<nb> packag... | Resolved some checkstyle issues |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
im... | fixed time conversion issue with expiration policies |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
int result ;
boolean isWakeKey = ( policyFlags & WindowManagerPolicy . FLAG_WAKE ) != NUMBER0
|| event . isWakeKey ( ) ;
- if ( interactive
- || ( isInjected && ! isWakeKey )
- || ( ! interactive && shouldDispatchInputWhenNonInteractive (... | Allow wake keys to wake dozing device |
<nb> import NAMESPACE ;
public class FtpConsumerIdempotentKeyChangedIssueTest extends FtpServerTestSupport {
+ private Endpoint endpoint ;
+
private String getFtpUrl ( ) {
return STRING0 + getPort ( ) + STRING1
+ STRING2 ;
}
- private Endpoint endpoint ;
-
@ test
public void testIdempotent (... | fixed CS error |
<nb> public class Config extends HashMap < String , Object > {
public static final String TOPOLOGY_MESSAGE_TIMEOUT_SECS = STRING0 ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | change kryo link from google code to github |
<nb> public class OStorageLocal extends OStorageAbstract {
SINGLE
continue ;
+ iRecord . reset ( ) ;
iRecord . setIdentity ( iClusterId , positionInPhyCluster ) ;
iRecord . fromStream ( recordBuffer . buffer ) ;
if ( ! iListener . foreach ( iRecord ) ) | Fixed bug on reload of document in query |
<nb> public class StreamError extends AbstractError implements PlainStreamElement {
public XmlStringBuilder toXML ( ) {
XmlStringBuilder xml = new XmlStringBuilder ( ) ;
xml . openElement ( ELEMENT ) ;
- xml . rightAngleBracket ( ) . append ( condition . toString ( ) ) . xmlnsAttribute ( NAMESPACE ) . closeEmpt... | Switch right bracket to left bracket on condition start tag |
<nb> public abstract class AbstractProcessingFilter implements Filter , InitializingBe
sendRedirect ( request , response , failureUrl ) ;
}
+
+ public AuthenticationDetailsSource getAuthenticationDetailsSource ( ) {
+ SINGLE
+ return authenticationDetailsSource ;
+ }
} | Add AbstractProcessingFilter getAuthenticationDetailsSource |
<nb> public class AndroidPreprocessor extends PdePreprocessor {
public String [ ] getCoreImports ( ) {
return new String [ ] {
STRING0 ,
- STRING1
+ STRING1 ,
+ STRING2
} ;
} | Added processing opengl |
<nb> public class CassandraStorage extends LoadFunc implements StoreFuncInterface , Lo
public final static String PIG_INITIAL_ADDRESS = STRING0 ;
public final static String PIG_PARTITIONER = STRING1 ;
- private static String UDFCONTEXT_SCHEMA_KEY = STRING2 ;
+ private static String UDFCONTEXT_SCHEMA_KEY = STR... | Namepsace the udf context key to avoid accidental overwrites in the future |
<nb> public class OClass extends ODocumentWrapperNoClass {
@ override
public void fromStream ( ) {
name = document . field ( STRING0 ) ;
- id = document . field ( STRING1 ) ;
- defaultClusterId = document . field ( STRING2 ) ;
+ id = ( Integer ) document . field ( STRING1 ) ;
+ defaultClusterId = ( Intege... | Fixed compilation problem with generics |
<nb> public class StorageLoadBalancer implements IEndpointStateChangeSubscriber
}
}
- class MoveMessage
- {
- private final Token targetToken_ ;
-
- MoveMessage ( Token targetToken )
- {
- targetToken_ = targetToken ;
- }
-
- Token getTargetToken ( )
- {
- return targetToken_ ;
- }
- } | remove unused code from SLB |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class ImmutableList < E > extends ArrayList < E > {
<nb> class StreamProcessor {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static int readPackedInt ( InputStream is , int numBytes , boolean isLitt... | Two fixed typos in Java source files |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.