diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class ClientMapReduceProxy
event = collator . collate ( ( ( Map ) event ) . entrySet ( ) ) ;
}
completableFuture . setResult ( event ) ;
+ trackableJobs . remove ( getJobId ( ) ) ;
}
} ) ;
<nb> public class ClientMapReduceProxy
@ override
public String getName ( ) {
- return getName ... | Fixed exception notification on client |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class HazelcastExpiryPolicy implements ExpiryPolicy , IdentifiedDataSerializable {
+ public class HazelcastE... | Fixed HazelcastExpiryPolicy to implement java io Serializable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class TestTreeView extends Tree implements DataProvider , CopyPro
final int leftOffset = NUMBER0 ;
g . fillRect ( x - le... | make color dimmer |
<nb> public final class DParseTask extends MRTask {
_skipFirstLine = other . _skipFirstLine ;
_myrows = other . _myrows ; SINGLE
_job = other . _job ;
- _colTypes = other . _colTypes ;
- _nrows = other . _nrows ;
_numRows = other . _numRows ;
_sep = other . _sep ;
_decSep = other . _decSep ; | Remove double assign |
<nb>
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- package NAMESPACE ;
+ package NAMESPACE ; | Corrected spelling for CompoundButton onCheckedChange event |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
<nb> class VariablesHighlightingVisitor extends AfterAnalysisHighlightingVisitor {
public void visitExpression ( @ notnull JetExpression expression ) {
JetType autoCast = b... | Made proper tooltips for autocasted values and wrapped in a ref values |
<nb> public class ViewListener implements TypeListener {
final int id = injectView . value ( ) ;
if ( id >= NUMBER0 )
- view = fragUtils != null && fragUtils . getClass ( ) . isInstance ( activityOrFragment ) ? ( fragUtils . getView ( activityOrFragment ) ) . findViewById ( id ) : ( ( Activity ) activityOrFragm... | Fixed silly error when injecting views |
<nb> class WindowStateAnimator {
mContext = mService . mContext ;
mAttrFlags = win . mAttrs . flags ;
mAttrType = win . mAttrs . type ;
+ mAnimDw = service . mAppDisplayWidth ;
+ mAnimDh = service . mAppDisplayHeight ;
}
public void setAnimation ( Animation anim ) {
<nb> class WindowStateAnimator {
... | Fix wallpaper glitch and moving window animation |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ systemapi
public class TvStreamConfig implements Parcelable {
static final String TAG = TvStreamConfig . class . getSimpleName ( ) ; | Add SystemApi to TvStreamConfig |
<nb> public class TestHiveStorageFormats
String createTableAsSelect = format (
STRING0 +
STRING1 +
- STRING2 +
- STRING3 +
+ STRING4 +
STRING5 ,
tableName ,
storageFormat . getName ( ) ,
<nb> public class TestHiveStorageFormats
String createTableAsSelect = format (
STRING6 +
STRING1 +
- STRI... | Do not use VARCHAR x in Kerberized Hive CTAS tests |
<nb> public class QueueFile {
if ( endOfLastElement <= first . position ) {
FileChannel channel = raf . getChannel ( ) ;
channel . position ( fileLength ) ; SINGLE
- int count = endOfLastElement - Element . HEADER_LENGTH ;
+ int count = endOfLastElement - HEADER_LENGTH ;
if ( channel . transferTo ( HEADER_L... | fixed the count of bytes to transfer to the EOF on file expansion |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class HttpMethodBase implements HttpMethod {
LOG . trace ( STRING0
+ STRING1 ) ;
- addUserAgentRequestHeader ( state , conn ) ;
addHostRequestHeader ( state , conn ) ;
addCookieRequestHeade... | Do not add a User Agent header by default |
<nb> public class GitblitManager extends JFrame implements RegistrationsDialog . Regist
public void windowClosing ( WindowEvent event ) {
saveSizeAndPosition ( ) ;
}
+
+ @ override
+ public void windowOpened ( WindowEvent event ) {
+ manageRegistrations ( ) ;
+ }
} ) ;
setSizeAndPosition ( ) ; | Show manage dialog on startup of Manager |
<nb> public class Config {
return ( int ) TypedValue . applyDimension ( TypedValue . COMPLEX_UNIT_DIP , dp , mDm ) ;
}
- public static final String SET_DEFAULT_BROWSER_URL = STRING0 ;
+ public static final String SET_DEFAULT_BROWSER_URL = STRING1 ;
public static final String YOUTUBE_WATCH_PREFIX = STRING2... | Removed some of linkbubble links |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Main extends WeakBase implements XJobExecutor ,
langTool = new JLanguageTool ( docLanguage , config . getMotherTongue ( ) ) ;
langTool . activ... | disable hunspell rule in LibreOffice OO fixes exception with at least Russian |
<nb> public class TextEditingTarget implements
if ( isIncrementalSearchCommand ( data ) )
{
String message = getIncrementalSearchMessage ( ) ;
- if ( ! StringUtil . isNullOrEmpty ( message ) )
+ if ( StringUtil . isNullOrEmpty ( message ) )
+ {
+ view_ . getStatusBar ( ) . hideMessage ( ) ;
+ }
+ else... | hide status message when iSearch ends |
<nb> public class ReaderPostPagerActivity extends AppCompatActivity
return ;
}
- SINGLE
+ SINGLE
ReaderBlogIdPostId ids = getAdapterBlogIdPostIdAtPosition ( position ) ;
if ( ids != null ) {
- String title = ReaderPostTable . getPostBlogName ( ids . getBlogId ( ) , ids . getPostId ( ) ) ;
+ String tit... | Set the detail title to the post title not the blog name |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NumberPicker extends LinearLayout implements Button . OnClickListener
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
public NumberPickerErrorTextView getErrorView ( ) { | Removing unused import |
<nb> public abstract class AbstractAtomicLongOperation extends AbstractOperation
}
@ override
- public String getServiceName ( ) {
+ public final String getServiceName ( ) {
return AtomicLongService . SERVICE_NAME ;
}
@ override
- public int getFactoryId ( ) {
+ public final int getFactoryId ( ) {... | Made some AbstractAtomicLongOperation methods final |
<nb> public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler impleme
}
connectionsPool . removeAll ( ctx . getChannel ( ) ) ;
-
- Exception exception = null ;
try {
super . channelClosed ( ctx , e ) ;
} catch ( Exception ex ) {
- exception = ex ;
+ log . trace ( STRING0 , ex ) ;
}... | Only trace the exception |
<nb> public class FibHeap implements AbstractDirectoryPriorityQueue {
this . consolidate ( ) ;
this . n = this . n - NUMBER0 ;
-
+ this . directory . remove ( z . payload ) ;
+
return z . payload ;
} | remove nodes from hashtable on extractMin |
<nb> final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ HdmiDeviceInfo getSafeDeviceInfoByPath ( int path ) {
+ synchronized ( mLock ) {
+ for ( HdmiDeviceInfo info : mSafeAllDeviceInfos ) {
+ if ( i... | Fix a regression bug |
<nb> public class RestSpringValidatorHelper extends ValidatorHelper {
return ;
}
- Set < String > variableNames = restAnnotationHelper . extractUrlVariableNames ( element ) ;
- if ( variableNames . size ( ) != numberOfNotAnnotatedElementParameter ( element ) + numberOfPathAnnotatedParameter ( element ) + numb... | Renamed local variable name to avoid confusion |
<nb> public class MavenResourceCompiler implements ClassPostProcessingCompiler {
}
private static long calculateHashCode ( MavenProject project , Properties properties ) {
- Set < String > sorted = new TreeSet < String > ( ) ;
+ Map < String , String > sorted = new TreeMap < String , String > ( ) ;
for ( Ma... | Optimize calculation of properties hashCode |
<nb> public enum JavaVersion {
return javaVersion ;
}
}
- throw new IllegalArgumentException ( String . format ( STRING0 , name ) ) ;
+ throw new IllegalArgumentException ( String . format ( STRING1 , name ) ) ;
}
} | Adjust error message |
<nb> public class ReceiverActionHandler extends BaseAnnotationHandler < EReceiverHolder
paramName = annotation . value ( ) ;
}
- String extraParamName = paramName + STRING0 ;
+ String extraParamName = paramName . replaceAll ( STRING1 , STRING2 ) + STRING3 ;
JFieldVar paramVar = getStaticExtraField ( holder ... | fix generated variables for extras containing dots |
<nb> public class GoMultiplePackagesQuickFix extends LocalQuickFixAndIntentionActionO
return label ;
}
} ) ;
- JBPopupFactory . getInstance ( ) . createListPopupBuilder ( list ) . setItemChoosenCallback ( new Runnable ( ) {
+
+ JBPopupFactory . getInstance ( ) . createListPopupBuilder ( list ) . setTitle ( ... | add popup title |
<nb> class AlarmManagerService extends SystemService {
}
}
- SINGLE
- SINGLE
- if ( directReceiver != null ) {
- if ( type != RTC_WAKEUP && type != ELAPSED_REALTIME_WAKEUP ) {
- throw new IllegalArgumentException ( STRING0 ) ;
- }
- }
-
if ( workSource != null ) {
getContext ( ) . enforcePermi... | Allow direct callback alarms for non wakeup alarms |
<nb> public class DefaultClusterRenderer < T extends ClusterItem > implements ClusterRen
SINGLE
return ;
}
+ Projection projection = mMap . getProjection ( ) ;
+ if ( projection == null ) {
+ SINGLE
+ return ;
+ }
RenderTask renderTask ;
synchronized ( this ) {
<nb> public class DefaultClusterRe... | Prevent crash on null Map Projection |
<nb> public class JsrBrowserConfigurator extends ServerEndpointConfig . Configurator
private String getHeaderValue ( HandshakeRequest request , String key )
{
- List < String > value = request . getHeaders ( ) . get ( STRING0 ) ;
+ List < String > value = request . getHeaders ( ) . get ( key ) ;
return Quot... | Fixing websocket browser test utility header lookup |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | remove unused imports |
<nb> import NAMESPACE ;
COMMENT
@ threadsafe
public final class LocalFirstPolicy implements FileWriteLocationPolicy {
- private String mLocalHostName = null ;
+ private String mLocalHostName ;
COMMENT
COMMENT | Remove redundant initialization in LocalFirstPolicy java |
<nb> public class HiveConf extends Configuration {
STRING0 ) ,
TEZ_DYNAMIC_PARTITION_PRUNING_MAX_EVENT_SIZE ( STRING1 , NUMBER0 * NUMBER1 * NUMBER2 ,
STRING2 ) ,
- TEZ_DYNAMIC_PARTITION_PRUNING_MAX_DATA_SIZE ( STRING3 , NUMBER3 * NUMBER1 * NUMBER2 ,
+ TEZ_DYNAMIC_PARTITION_PRUNING_MAX_DATA_SIZE ( STRING4 , NU... | Fix typo in config var name for dynamic partition pruning Gunther Hagleitner reviewed by Lefty Leverenz and Lars Francke |
<nb> public class SimpleTemplateEngine extends TemplateEngine {
int c ;
while ( ( c = reader . read ( ) ) != - NUMBER0 ) {
if ( c == STRING0 ) {
+ reader . mark ( NUMBER0 ) ;
c = reader . read ( ) ;
if ( c != STRING1 ) {
sw . write ( STRING0 ) ;
+ reader . reset ( ) ;
+ continue ;
} else {
reader ... | Fixes a bug that would cause some characters to be lost while parsing template text |
<nb> public class NettyCometSupport extends AsynchronousProcessor {
COMMENT
COMMENT
COMMENT
+ @ override
public AtmosphereServlet . Action service ( HttpServletRequest req , HttpServletResponse res )
throws IOException , ServletException {
<nb> public class NettyCometSupport extends AsynchronousProcesso... | Tell Atmosphere we support WebSocket |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class ChangesTreeList < T > extends JPanel implements TypeSafeDataP
ContentRevision afterRevision = change . getAfterRevis... | consider the whole path when highlighting |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ; ... | push failing junit so that row slice fails on array size error |
<nb> public class TrackingSlicedMap extends SlicedMapImpl {
super . forEach ( new Function3 < WritableSlice , Object , Object , Void > ( ) {
@ override
public Void invoke ( WritableSlice slice , Object key , Object value ) {
- f . invoke ( slice , key , ( ( TrackableValue < ? > ) value ) . value ) ;
+ f . inv... | Fix forEach method in TrackingSlicedMap |
<nb> public class NetworkController extends BroadcastReceiver {
if ( mDataConnected ) {
mobileLabel = mNetworkName ;
- } else if ( mConnected ) {
- if ( hasService ( ) ) {
+ } else if ( mConnected || mServiceState . isEmergencyOnly ( ) ) {
+ if ( hasService ( ) || mServiceState . isEmergencyOnly ( ) ) {
... | Emergency calls only in notification shade |
<nb> abstract class AbstractTFS extends FileSystem {
public TachyonFS getTachyonFS ( ) {
return mTFS ;
}
+
public URI getUri ( ) {
return mUri ;
} | Make checkstyle happy |
<nb> public class TupleDescriptor
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public Set < QualifiedName > getRelationAliases ( )
{ | Remove duplicate word in comment of TupleDescriptor |
<nb> public class TreeContactList
UIGroup parentGroup = group . getParentGroup ( ) ;
+ SINGLE
+ SINGLE
+ if ( parentGroup == null )
+ return ;
+
GroupNode parentGroupNode
= parentGroup . getGroupNode ( ) ; | Fix NPE when removing group |
<nb> public class ReaderGapMarkerView extends RelativeLayout {
private void showProgress ( ) {
mText . setVisibility ( View . INVISIBLE ) ;
- mImage . setVisibility ( View . INVISIBLE ) ;
mProgress . setVisibility ( View . VISIBLE ) ;
}
private void hideProgress ( ) {
mText . setVisibility ( View . VI... | Don t hide tear image when showing progress |
<nb> class IconicsFactory {
return ;
}
- TextView tv = ( TextView ) view ;
- tv . setText ( new Iconics . IconicsBuilder ( ) . ctx ( context ) . on ( tv . getText ( ) ) . build ( ) ) ;
+ SINGLE
+ Iconics . on ( ( TextView ) view ) ;
}
}
} | use the new short method syntax inside the IconicsFactory |
<nb> public interface WindowManager extends ViewManager {
name = STRING0 ) ,
@ viewdebug.flagtostring ( mask = FLAG_DITHER , equals = FLAG_DITHER ,
name = STRING1 ) ,
+ @ viewdebug.flagtostring ( mask = FLAG_TURN_SCREEN_ON , equals = FLAG_TURN_SCREEN_ON ,
+ name = STRING2 ) ,
@ viewdebug.flagtostring ( mask... | Add more WindowManager flags to ViewDebug |
<nb> public class ApklibMojo extends AbstractAndroidMojo
generateIntermediateApk ( ) ;
- CommandExecutor executor = CommandExecutor . Factory . createDefaultCommmandExecutor ( ) ;
- executor . setLogger ( this . getLog ( ) ) ;
-
File outputFile = createApkLibraryFile ( ) ;
if ( classifier == null ) | removing unused executor from ApklibMojo |
<nb> public class SecondaryIndexManager
for ( Cell cell : indexedColumnsInRow )
{
SINGLE
- baseCfs . metadata . getColumnDefinition ( cell . name ( ) ) ;
- SecondaryIndex index = indexesByColumn . get ( cDef . name ) ;
+ ColumnDefinition cDef = baseCfs . metadata . getColumnDefinition ( cell . name ( ) ) ; ... | Fix bad merge |
<nb> public class TransportStopsLayer extends OsmandMapLayer implements ContextMenuLa
data . queryNewData ( tb ) ;
if ( route != null ) {
attrs . updatePaints ( view , settings , tb ) ;
- canvas . rotate ( - tb . getRotate ( ) , tb . getCenterPixelX ( ) , tb . getCenterPixelY ( ) ) ;
try {
path . reset ( ) ... | Fix transport route rotation |
<nb> public class NotificationPanelView extends PanelView implements
}
private boolean isInQsArea ( float x , float y ) {
- return mStatusBarState != StatusBarState . SHADE
- || y <= mNotificationStackScroller . getBottomMostNotificationBottom ( )
- || y <= mQsContainer . getY ( ) + mQsContainer . getHeight... | Fix QS interception on tablets |
<nb> public class EntityMention extends ExtractionObject {
SINGLE
SINGLE
SINGLE
- if ( sentence == otherEnt . sentence && textEquals ( otherEnt ) && labelEquals ( otherEnt , useSubType ) ) {
+ if ( ( sentence == otherEnt . sentence || sentence . equals ( otherEnt . sentence ) ) && textEquals ( otherEnt ) && l... | Fix entity mention equality to be robust to deserialization |
<nb> final static class HashCollisionNode implements INode {
return new HashCollisionNode ( edit , hash , count + NUMBER0 , newArray ) ;
}
SINGLE
- return new BitmapIndexedNode ( null , bitpos ( this . hash , shift ) , new Object [ ] { this } )
+ return new BitmapIndexedNode ( null , bitpos ( this . hash , sh... | fixed assoc on collision |
<nb> public final class Realm implements Closeable {
}
private static Realm create ( File writableFolder , String filename , byte [ ] key ) {
- assertValidRealmPath ( writableFolder , filename ) ;
+ checkValidRealmPath ( writableFolder , filename ) ;
String absolutePath = new File ( writableFolder , filenam... | Renamed assert method |
<nb> import static NAMESPACE ;
@ incubating
class AcrossJVMSerializationFeature implements Serializable {
private static final long serialVersionUID = NUMBER0 ;
- private static final String MOCKITO_PROXY_MARKER = STRING0 ;
+ private static final String MOCKITO_PROXY_MARKER = STRING1 ;
private boolean insta... | Alters serialization marker to include the mockmaker engine |
<nb> package NAMESPACE ;
COMMENT
COMMENT
public class MongoInterruptedException extends MongoException {
+ private static final long serialVersionUID = - NUMBER0 ;
+
public MongoInterruptedException ( final InterruptedException e ) {
super ( STRING0 , e ) ;
} | Added serialVersionUID to MongoInterruptedException |
<nb> public class KMeans extends ClusteringModelBuilder < KMeansModel , KMeansModel . KMean
}
static public TwoDimTable createCenterTable ( KMeansModel . KMeansOutput output , boolean standardized ) {
- String [ ] rowHeaders = new String [ output . _avg_centroids_chg . length ] ;
+ String [ ] rowHeaders = new... | Fix K means centroid table AIIOOBE |
<nb> public abstract class GenericFileEndpoint < T > extends ScheduledPollEndpoint imple
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void setReadLock ( String readLock ) {
this . readLock = readLock ; | Improved doc about file readLock in clustered mode |
<nb> public class SpringLocaleResolver extends DefaultLocaleResolver {
@ override
public Locale resolveLocale ( TilesRequestContext context ) {
- if ( context instanceof ServletTilesRequestContext ) {
- return RequestContextUtils . getLocale ( ( ( ServletTilesRequestContext ) context ) . getRequest ( ) ) ;
... | only call LocaleResolver when encountering an actual HttpServletRequest |
<nb> public class DBObjectCodec implements Codec < DBObject > {
@ override
public DBObject decode ( final BSONReader reader ) {
- final List < String > path = new ArrayList < > ( NUMBER0 ) ;
+ final List < String > path = new ArrayList < String > ( NUMBER0 ) ;
final DBObject document = typeMapping . getNewI... | Removed diamond operator |
<nb> public class WarWatcher {
COMMENT
private static final Log log = LogFactory . getLog ( WarWatcher . class ) ;
- private static final StringManager sm =
- StringManager . getManager ( Constants . Package ) ;
+ private static final StringManager sm = StringManager . getManager ( WarWatcher . class ) ;
... | Fix compilation error |
<nb> public class BasicQueryCassandra {
class KeyValue implements Serializable {
public String key ;
public Integer value ;
+
+ public KeyValue ( ) {
+ }
+
public KeyValue ( String key_ , Integer value_ ) {
key = key_ ;
value = value_ ; | add empty constructor |
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+
public class CardLayoutTest {
<nb> import NAMESPACE ;
import static NAMESPACE ... | Removed wildcard imports |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TransportNodesRestartAction extends TransportNodesOperationAction < N
disabled = componentSettings . getAsBoolean ( STRING0 , false ) ;
}
... | disable restart API |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class EduStepicConnector {
info . addAuthor ( author ) ;
}
+ String name = info . getName ( ) . replaceAll ( STRIN... | remove all non alphanumeric symbols from course name |
<nb> public class AttributeRangeBuilder implements CategoryBuilder {
}
public boolean init ( Graph graph ) {
- HierarchicalGraph hg = graph . getGraphModel ( ) . getHierarchicalGraphVisible ( ) ;
+ HierarchicalGraph hg = ( HierarchicalGraph ) graph ;
if ( AttributeUtils . getDefault ( ) . isNodeColumn ( col... | Debug AttributeRangeFilter init |
<nb> public class GifDrawable extends Drawable implements Animatable , MediaPlayerCont
if ( colors != null )
canvas . drawBitmap ( colors , NUMBER0 , mMetaData [ NUMBER0 ] , FLOAT0 , FLOAT0 , mMetaData [ NUMBER0 ] , mMetaData [ NUMBER1 ] , true , mPaint ) ;
- if ( mMetaData [ NUMBER2 ] >= NUMBER0 && mMetaData [... | fix invalidate schedule issue avoid draw before next frame |
<nb> public class UriComponent {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT | Fixed minor typo in UriComponent javadoc |
<nb> public class HomeActivity extends Activity {
}
- boolean mExpanded = true ;
-
@ override
public void onResume ( ) {
super . onResume ( ) ; | Remove unused variable |
<nb> public class JoinChannelDialog
try
{
chatRoom . join ( ) ;
+
+ mainFrame . getChatRoomsListPanel ( ) . getChatRoomsList ( )
+ . addChatRoom ( chatRoom ) ;
}
catch ( OperationFailedException ex )
{ | add the joined chat room to the list |
<nb> public class WaterFilter extends Filter {
private Texture2D foamTexture ;
private Texture2D causticsTexture ;
private Texture2D heightTexture ;
- private Plane plane ;
private Camera reflectionCam ;
protected Ray ray = new Ray ( ) ;
private Vector3f targetLocation = new Vector3f ( ) ;
<nb> public c... | Fixed a broken water height initialization issue that I |
<nb> public class RouteBuilderWithContextNameTest {
return ShrinkWrap . create ( JavaArchive . class )
SINGLE
. addPackage ( CdiCamelExtension . class . getPackage ( ) )
- SINGLE
+ SINGLE
. addClasses (
FirstCamelContextEndpointInjectRoute . class ,
SecondCamelContextEndpointInjectRoute . class ) | Fix comment discrepancy |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
dcf . bottom = mSystemBottom ;
final boolean inheritTranslucentDecor = ( attrs . privateFlags
& WindowManager . LayoutParams . PRIVATE_FLAG_INHERIT_TRANSLUCENT_DECOR ) != NUMBER0 ;
- if ( attrs . type >= WindowManager . LayoutParams . FIRST_A... | Don t crop top most windows at rest |
<nb> public class SlowClientWithPipelinedRequestTest
}
}
- SINGLE
@ test
- @ ignore
public void testSlowClientWithPipelinedRequest ( ) throws Exception
{
final int contentLength = NUMBER0 * NUMBER1 ; | enabling pipeline tests |
<nb> public class BaseObject3D implements IObject3D , Comparable < BaseObject3D > , ITrans
public boolean isDoubleSided ( ) {
return mDoubleSided ;
}
+
+ public boolean isVisible ( ) {
+ return mIsVisible ;
+ }
public void setDoubleSided ( boolean doubleSided ) {
this . mDoubleSided = doubleSided ; | Added missing method to check if a BaseObject3D java is visible |
<nb> import NAMESPACE ;
public class GroovycTask
extends CompileTaskSupport
{
- private boolean force ;
+ protected boolean force ;
public void setForce ( final boolean flag ) {
this . force = flag ; | Make force protected for sub class access |
<nb> public class ClearspaceManager extends BasicModule implements ExternalComponentM
COMMENT
COMMENT
COMMENT
- private List < String > clearspaces = new ArrayList < String > ( ) ;
+ private final List < String > clearspaces = new ArrayList < String > ( ) ;
COMMENT
COMMENT
<nb> public class Clearspace... | Implemented rotation of CS components |
<nb> public final class ActivityThread {
SINGLE
SINGLE
ViewRootImpl impl = decor . getViewRootImpl ( ) ;
- impl . notifyChildRebuilt ( ) ;
+ if ( impl != null ) {
+ impl . notifyChildRebuilt ( ) ;
+ }
}
if ( a . mVisibleFromClient && ! a . mWindowAdded ) {
a . mWindowAdded = true ; | Fix crash when docking |
<nb> public class CleanupOperationTest {
CleanupOperationOptions options = new CleanupOperationOptions ( ) ;
options . setRemoveOldVersions ( false ) ;
+ options . setRemoveVersionsByInterval ( false ) ;
options . setMinSecondsBetweenCleanups ( NUMBER0 ) ;
SINGLE | Disabling all version removal for test |
<nb>
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
package NAMESPACE ;
- SINGLE
+ SINGLE | Added LZMA compression handler to the TODO list |
<nb> public class ZMsg implements Iterable < ZFrame > , Deque < ZFrame > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static ZMsg recvMsg ( Socket socket ) {
return recvMsg ( socket , NUMBER0 ) ;
<nb> public class ZMsg implements Iterable < ZFrame > , Deque < ZFrame > {
C... | Corrected ZMsg documentation |
<nb> public class TWFragment extends Fragment {
mRecyclerView . addItemDecoration ( new SimpleDecoration ( getActivity ( ) ) ) ;
mRecyclerView . setAdapter ( new SimpleAdapter ( activity , mRecyclerView , mLayoutId ) ) ;
-
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
}
private void up... | sample Remove commented out debugging code from TWFragment |
<nb> public interface Project extends Comparable < Project > {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
... | Added some examples to the docs around declaring artifacts |
<nb> public class Utils {
}
}
+ COMMENT
+ COMMENT
+ COMMENT
public static boolean isReadableFile ( String fileName ) {
- File f = new File ( fileName ) ;
+ return isReadableFile ( new File ( fileName ) ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ public static boolean isReadableFile ( File f ... | Add javadoc to more utils methods and make file tests take File as well as String |
<nb> public class HtmlSelectioner extends AbstractWordSelectioner {
static boolean canSelectElement ( final PsiElement e ) {
if ( e instanceof XmlToken ) {
- Language language = e . getLanguage ( ) ;
return HtmlUtil . hasHtml ( e . getContainingFile ( ) ) ||
( ourStyleSelectioner != null && ourStyleSelectio... | Remove dead code |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb>
package NAMESPACE ;
- import NAM... | Fixing import order |
<nb> public class NewBSONDecoder implements BSONDecoder {
@ override
public BSONObject readObject ( final byte [ ] pData ) {
+ _length = pData . length ;
final BasicBSONCallback c = new BasicBSONCallback ( ) ;
decode ( pData , c ) ;
return ( BSONObject ) c . get ( ) ;
<nb> public class NewBSONDecoder im... | set the length when needed |
<nb> import NAMESPACE ;
class UnionTypeBuilder implements Serializable {
private static final long serialVersionUID = NUMBER0 ;
- SINGLE
+ SINGLE
SINGLE
- private static final int DEFAULT_MAX_UNION_SIZE = NUMBER1 ;
+ private static final int DEFAULT_MAX_UNION_SIZE = NUMBER2 ;
private final JSTypeReg... | Bump up the number of types allowed in a union to allow for some complex type selections we are seeing |
<nb> public abstract class FieldSpec {
if ( defaultNullValue != null ) {
return defaultNullValue ;
}
- switch ( getFieldType ( ) ) {
+ switch ( fieldType ) {
case METRIC :
switch ( dataType ) {
case INT :
<nb> public abstract class FieldSpec {
case DOUBLE_ARRAY :
return DEFAULT_METRIC_NULL_VALUE_O... | Clarified error messages when obtaining a default null value fixed metric fields falling through to the dimension types |
<nb> public class NotificationsActivity extends WPActionBarActivity
ReaderPostDetailFragment readerFragment = ReaderPostDetailFragment . newInstance ( remoteBlogId , postId ) ;
String tagForFragment = getString ( R . string . fragment_tag_reader_post_detail ) ;
FragmentTransaction ft = getSupportFragmentManager (... | Comment post detail fragments now replace existing fragment rather than being added |
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- public class MemoryPoolId
+ public final class MemoryPoolId
{
private final String id ; | Make MemoryPoolId final |
<nb> public class IonImageViewRequestBuilder extends IonBitmapRequestBuilder implemen
return imageViewFuture ;
}
+ IonDrawable drawable = setIonDrawable ( imageView , null , NUMBER0 ) ;
+ doAnimation ( imageView , loadAnimation , loadAnimationResource ) ;
+ IonDrawable . ImageViewFutureImpl imageViewFuture ... | Execute or defer the bitmap action after the imageview unregisters |
<nb> public class Serial implements SerialPortEventListener {
public void debug ( ) {
float secs = ( System . nanoTime ( ) - firstEvent ) / FLOAT0 ;
- System . out . println ( STRING0 ) ;
+ System . out . println ( STRING1 ) ;
System . out . println ( port . getPortName ( ) + STRING2 + baudRate + STRING3 ) ... | Only read a single character at a time to emulate RXTX behavior |
<nb> public final class Ints {
COMMENT
@ beta
@ checkfornull
- @ gwtincompatible ( STRING0 ) SINGLE
+ @ gwtincompatible ( STRING1 )
public static Integer tryParse ( String string ) {
return AndroidInteger . tryParse ( string , NUMBER0 ) ;
}
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT... | Retract tryParse overload that accepts a radix from Guava |
<nb> public class HostConfig
context . setDocBase ( resource . getAbsolutePath ( ) ) ;
}
reload ( app ) ;
+ SINGLE
+ app . redeployResources . put ( resources [ i ] ,
+ Long . valueOf ( resource . lastModified ( ) ) ) ;
+ app . timestamp = System . currentTimeMillis ( ) ;
return ;
} else {
SINGLE | Update last modified time in redeploy resource to avoid infinite reload of webapplication |
<nb> public class InitialContext extends InitialDirContext {
final Class < ? > factoryClass = Class . forName ( factoryClassName , true , classLoader ) ;
defaultInitCtx = ( ( javax . naming . spi . InitialContextFactory ) factoryClass . newInstance ( ) ) . getInitialContext ( myProps ) ;
} catch ( Exception e ) {... | Expose underlying cause during InitialContextFactory instantiation |
<nb> public abstract class AbstractSuppressByNoInspectionCommentFix extends SuppressI
public static boolean isSuppressionComment ( PsiElement comment ) {
final String lineCommentPrefix = getLineCommentPrefix ( comment ) ;
- assert lineCommentPrefix != null ;
- return comment . getText ( ) . startsWith ( lineC... | remove assertion in AbstractSuppressByNoInspectionCommentFix isSuppressionComment |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ComputeEngineContainerImpl implements ComputeEngineContainer {
QProfileLookup . class ,
QProfileProjectOperations . class ,... | Remove unused QProfileComparison from Compute Engine |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class DefaultPlayPlatformAwareComponentSpec extends BaseComponentSpec imple... | Fixed registration of PlayApplicationSpec |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NA... | Add version method to XmlDocument |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT | Removed outdated javadoc OperationResponseHandler |
<nb> public class DataImportDialog extends ModalDialog < String >
public DataImportDialog ( String caption , OperationWithInput < String > operation )
{
super ( caption , operation ) ;
+ super . setOkButtonCaption ( STRING0 ) ;
}
@ override | change data import dialog button caption to import |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.