diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class GroovyClassLoader extends SecureClassLoader {
additionalPaths . add ( path ) ;
searchPaths = null ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Class [ ] getLoadedClasses ( ) {
+ return ( Class [ ] ) this . cache . values ( ) . toArray ( new Class [ ] { } ) ;
... | Added a getLoadedClasses to know which classes are loaded by the class loader |
<nb> public final class WebSocket {
httpUrl = STRING0 + url . substring ( NUMBER0 ) ;
} else if ( url . startsWith ( STRING1 ) ) {
httpUrl = STRING2 + url . substring ( NUMBER1 ) ;
+ } else if ( url . startsWith ( STRING0 ) || url . startsWith ( STRING2 ) ) {
+ httpUrl = url ;
} else {
- throw new Illegal... | Allow http and https URLs for convenience |
<nb> public class CommonTokenStream extends BufferedTokenStream < Token > {
this . channel = channel ;
}
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
@ override
public void consume ( ) {
super . consume ( ) ; | Updated doc comment |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SimpleRequestHandler implements RequestHandler {
private static final Logger LOGGER = LoggerFactory . getLogger ( SimpleRequestHandler . class ) ;
private Serv... | fixing the query increment decrement refrerence counters |
<nb> public class RequestContext {
SINGLE
this . defaultHtmlEscape = WebUtils . getDefaultHtmlEscape ( this . webApplicationContext . getServletContext ( ) ) ;
+ SINGLE
+ SINGLE
this . responseEncodedHtmlEscape = WebUtils . getResponseEncodedHtmlEscape ( this . webApplicationContext . getServletContext ( ) ... | Switch responseEncodedHtmlEscape default to true |
<nb> public enum AndroidExcludedRefs {
SINGLE
SINGLE
SINGLE
- excluded . instanceField ( STRING0 ,
+ excluded . instanceField ( STRING1 ,
STRING2 ) ;
}
} ; | Actually ignore ref |
<nb> public class StubTreeLoaderImpl extends StubTreeLoader {
fc . putUserData ( IndexingDataKeys . PROJECT , project ) ;
if ( psiFile != null ) {
fc . putUserData ( IndexingDataKeys . PSI_FILE , psiFile ) ;
- fc . putUserData ( IndexingDataKeys . FILE_TEXT_CONTENT_KEY , psiFile . getViewProvider ( ) . getConte... | don t store text content for binary files fixes SOE |
<nb> public final class TrackSelection {
COMMENT
COMMENT
public int getTrack ( int index ) {
- return getTracks ( ) [ index ] ;
+ return tracks [ index ] ;
}
COMMENT | Remove unnecessary cloning |
<nb> public class Vpn {
COMMENT
public synchronized boolean prepare ( String oldPackage , String newPackage ) {
SINGLE
- if ( oldPackage != null && ! oldPackage . equals ( mPackage ) ) {
+ if ( oldPackage != null && getAppUid ( oldPackage , mUserHandle ) != mOwnerUID ) {
SINGLE
SINGLE
if ( ! oldPackage ... | Check UID instead of package name when preparing VPN |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AudioplayerActivity extends MediaplayerActivity implements ItemDesc
TypedArray typedArray = obtainStyledAttributes ( new in... | Fixed NPE in AudioplayerActivity |
<nb> public class ScrollPane extends WidgetGroup {
resetTransform ( batch ) ;
}
- SINGLE
- public void flick ( float flingTime , float velocityX , float velocityY ) {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void fling ( float flingTime , float velocityX , float velocityY ) {
t... | Added fling gesture to scrollpane |
<nb> import NAMESPACE ;
public class LocalAsyncContextTest
{
- protected Server _server = new Server ( ) ;
- protected SuspendHandler _handler = new SuspendHandler ( ) ;
+ protected Server _server ;
+ protected SuspendHandler _handler ;
protected Connector _connector ;
@ before
public void init ( ... | improved test isolation |
<nb> public class ChineseGrammaticalRelations {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING3
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ STRING4
} ) ;
public static class RelativeClauseModifierGRAnnotation
extends GrammaticalRelationAnnotation { } | Fix an error in the Chinese dependencies |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DiscoveryWithNetworkFailuresTests extends ElasticsearchIntegrationT
}
@ test
- SINGLE
+ @ lucenetestcase.awaitsfix ( bugUrl = STRING0 )
@ testlogging ( ... | Tests Disabling testAckedIndexing |
<nb> public class ErrorReporter implements Thread . UncaughtExceptionHandler {
commentedCrashReport . load ( input ) ;
input . close ( ) ;
commentedCrashReport . put ( USER_COMMENT , userComment ) ;
- commentedCrashReport . put ( USER_EMAIL , userEmail ) ;
+ commentedCrashReport . put ( USER_EMAIL , userEmail... | sending reports by mail with NOTIFICATION mode |
<nb> public class BeanBuilder extends GroovyObjectSupport {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed typo in comment |
<nb> public class AdvancedValidationITest extends WithJetty {
statusCode ( allOf ( greaterThanOrEqualTo ( NUMBER0 ) , lessThanOrEqualTo ( NUMBER1 ) ) ) .
root ( STRING0 ) .
body ( STRING1 , hasItems ( STRING2 , STRING3 ) ) .
+ body ( STRING4 , equalTo ( FLOAT0 ) ) .
+ body ( STRING5 , equalTo ( FLOAT1 ) ) .
... | Added more tests |
<nb> public class RaftTestNetwork < T >
{
MessageContext first = msgQueue . first ( ) ;
long waitTime = first . atMillis - System . currentTimeMillis ( ) ;
- wait ( waitTime ) ;
+ if ( waitTime > NUMBER0 )
+ {
+ wait ( waitTime ) ;
+ }
}
catch ( NoSuchElementException e )
{ | Fix raft test network exception on wait |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FastItemAdapter < Item extends IItem > extends FastAdapter < Item > {
COMMENT
COMMENT
COMMENT
- public ItemAdapter . ItemFilter getItemFilter ( ) {
+ public Filter getItem... | return the Interface for the ItemFilter inside the FastAdapter |
<nb> public class DebugErrorHandler implements ServerErrorHandler , ClientErrorHandler
public void error ( Context context , Exception exception ) {
Writer writer = new StringWriter ( ) ;
exception . printStackTrace ( new PrintWriter ( writer ) ) ;
- context . getResponse ( ) . status ( NUMBER0 ) . send ( write... | Print the stacktrace to stderr |
<nb> public abstract class Visibility extends Transition {
private static final String [ ] sTransitionProperties = {
PROPNAME_VISIBILITY ,
+ PROPNAME_PARENT ,
} ;
private static class VisibilityInfo { | Fix Visibility transitions canceling when nothing has changed |
<nb> public class SelectAnalyzerTest extends BaseAnalyzerTest {
analyze ( STRING0 ) ;
}
+ @ test ( expected = UnsupportedOperationException . class )
+ public void testWhereSysExpressionWithoutGroupBy ( ) throws Exception {
+ analyze ( STRING1 ) ;
+ }
+
+ @ test ( expected = UnsupportedOperationExcept... | added tests to validate forbidden SysExpressions in functions |
<nb> public abstract class ChannelInboundMessageHandlerAdapter < I >
try {
if ( ! isSupported ( msg ) ) {
if ( out == null ) {
- out = ctx . nextOutboundMessageBuffer ( ) ;
+ out = ctx . nextInboundMessageBuffer ( ) ;
}
out . add ( msg ) ;
unsupportedFound = true ; | Fix a regression in ChannelInboundMessageHandlerAdapter |
<nb> public class ConversationFragment extends Fragment implements EditMessage . Keyboa
this . keychainUnlock = KEYCHAIN_UNLOCK_NOT_REQUIRED ;
this . conversation = conversation ;
- if ( this . conversation . getMode ( ) == Conversation . MODE_MULTI ) {
- this . conversation . setNextCounterpart ( null ) ;
... | don t reset whisper on reInit |
<nb> public class DraggableView extends RelativeLayout {
boolean isSecondViewHit = isViewHit ( secondView , ( int ) ev . getX ( ) , ( int ) ev . getY ( ) ) ;
if ( isMaximized ( ) ) {
dragView . dispatchTouchEvent ( ev ) ;
+ } else {
+ dragView . dispatchTouchEvent ( cloneMotionEventWithAction ( ev , MotionEve... | Fixed incorrect state in drag view s children during drag |
<nb> public class EditAccountActivity extends XmppActivity implements OnAccountUpdate
@ override
protected void onBackendConnected ( ) {
+ boolean init = true ;
if ( mSavedInstanceAccount != null ) {
try {
this . mAccount = xmppConnectionService . findAccountByJid ( Jid . fromString ( mSavedInstanceAccoun... | don t overwrite edited information in editaccount on rotate |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class MoverWrapper {
TextRange range = new TextRange ( start , end ) ;
TextRange range2 = new TextRange ( start2 , end2 ) ;
if ( range . intersectsStrict ( range2 ) && ! r... | move potentially long information from exception message to an attachment |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add a small bit of doc |
<nb> public class WXSDKEngine {
public static void addCustomOptions ( String key , String value ) {
WXEnvironment . addCustomOptions ( key , value ) ;
}
+
+ public IWXUserTrackAdapter getIWXUserTrackAdapter ( ) {
+ return WXSDKManager . getInstance ( ) . getIWXUserTrackAdapter ( ) ;
+ }
+
+ public voi... | android update WXSDKEngine add set adapter method |
<nb> public class MiniDrawerActivity extends AppCompatActivity {
@ override
public void onBackPressed ( ) {
SINGLE
- if ( result != null && result . isDrawerOpen ( ) ) {
- result . closeDrawer ( ) ;
+ if ( crossFader != null && crossFader . isCrossFaded ( ) ) {
+ crossFader . crossFade ( ) ;
} else {
... | improve behavior of the sample app |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAM... | Removed unused imports |
<nb> public class GalleryArtSource extends MuzeiArtSource {
= STRING0 ;
public static final String ACTION_PUBLISH_NEXT_GALLERY_ITEM
= STRING1 ;
- public static final String ACTION_SCHEDULE_NEXT
- = STRING2 ;
public static final String EXTRA_FORCE_URI
= STRING3 ;
<nb> public class GalleryArtSource exte... | Remove unused ACTION_SCHEDULE_NEXT |
<nb> public class MoreExecutors {
COMMENT
COMMENT
public static ExecutorService newMultiThreadExecutor ( final String threadName , int threadCount ) {
- return Executors . newFixedThreadPool ( threadCount , new NamedThreadFactory ( threadName ) ) ;
+ return new ThreadPoolExecutor (
+ COMMENT
+ COMMENT
+... | Stifle rejection exceptions from ThreadPoolExecutor |
<nb> public abstract class GoReferenceBase extends PsiReferenceBase < PsiElement > {
if ( type instanceof GoPointerType ) type = ( ( GoPointerType ) type ) . getType ( ) ;
- GoTypeReferenceExpression refExpr = type . getTypeReferenceExpression ( ) ;
+ GoTypeReferenceExpression refExpr = type != null ? type . ... | fix potential NPE |
<nb> class BackupManagerService extends IBackupManager . Stub {
public void run ( ) {
long startRealtime = SystemClock . elapsedRealtime ( ) ;
if ( DEBUG ) Log . v ( TAG , STRING0 + mTransport
- + STRING1 + mObserver + STRING2 + mToken ) ;
+ + STRING1 + mObserver + STRING2 + Long . toHexString ( mToken ) ) ; ... | Print restore tokens in hex |
<nb> public class BerkeleyJEStoreManager extends LocalStoreManager implements Ordered
if ( ! stores . isEmpty ( ) )
throw new IllegalStateException ( STRING0 ) ;
try {
+ SINGLE
+ Thread . sleep ( NUMBER0 ) ;
+ } catch ( InterruptedException e ) {
+ SINGLE
+ }
+ try {
environment . close ( ) ;
} ca... | Wait just a little bit before closing the BDB environment so that thread independent transactions can close |
<nb> package NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import ... | Delete unused imports in spring test |
<nb> public final class ParallelEvaluator implements Evaluator {
GroupedListHelper < SkyKey > newDirectDeps = env . newlyRequestedDeps ;
if ( value != null ) {
- Preconditions . checkState ( ! env . valuesMissing ( ) ,
- STRING0 , skyKey , newDirectDeps , state ) ;
+ Preconditions . checkState ( ! env . val... | Clarify the message of the exception thrown when a |
<nb> public class CloudSetupActivity extends BaseTopActivity {
if ( savedInstanceState == null ) {
CloudSetupFragment f = new CloudSetupFragment ( ) ;
- getSupportFragmentManager ( ) . beginTransaction ( ) . add ( android . R . id . content , f ) . commit ( ) ;
+ getSupportFragmentManager ( ) . beginTransacti... | Add cloud setup fragment into correct layout |
<nb> public class TestServlet extends HttpServlet {
out . println ( STRING0 + jo + STRING1 ) ;
jo . start ( STRING2 , new Properties ( ) ) ;
out . println ( STRING3 ) ;
+ out . println ( STRING4 ) ;
out . println ( STRING5 ) ;
out . println ( STRING6 ) ;
} catch ( JobStartException ex ) { | Adding a statement to check server log |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAM... | Removed superfluous imports |
<nb> public class ApplicationTempTests {
}
@ test
- public void getSubFolder ( ) throws Exception {
+ public void getSubDir ( ) throws Exception {
ApplicationTemp temp = new ApplicationTemp ( ) ;
assertThat ( temp . getDir ( STRING0 ) , equalTo ( new File ( temp . getDir ( ) , STRING0 ) ) ) ;
} | Rename a test method to use dir instead folder |
<nb> public class BluetoothDeviceService extends IBluetoothDevice . Stub {
SystemService . start ( STRING0 ) ;
SystemService . start ( STRING1 ) ;
SystemService . start ( STRING2 ) ;
+ SystemService . start ( STRING3 ) ;
}
break ;
case MESSAGE_FINISH_DISABLE : | Add PBAP service start |
<nb> public class Request implements HttpServletRequest {
return ;
}
- SINGLE
- byte buffer [ ] = new byte [ NUMBER0 ] ;
- buffer [ NUMBER1 ] = ( byte ) STRING0 ;
-
SINGLE
B2CConverter . getCharset ( enc ) ; | Remove unused code |
<nb> public class MuzeiProvider extends ContentProvider {
COMMENT
private final HashMap < String , String > allSourcesColumnProjectionMap =
MuzeiProvider . buildAllSourcesColumnProjectionMap ( ) ;
+ private Handler openFileHandler ;
COMMENT
COMMENT
COMMENT
<nb> public class MuzeiProvider extends Content... | Create a single Handler for openFile usage |
<nb> public class ConfigurableWrapper implements SearchableConfigurable , Weighted {
if ( configurable != null ) {
String id = configurable . getId ( ) ;
if ( ! loaded ) {
- LOG . warn ( STRING0 + configurable . getClass ( ) ) ;
+ LOG . debug ( STRING0 + configurable . getClass ( ) ) ;
}
return id ;
} | Suppress warnings for RubyMine s configurables |
<nb> public abstract class AbstractEntityTuplizer implements EntityTuplizer {
instantiator = buildInstantiator ( mappingInfo ) ;
- if ( entityMetamodel . isLazy ( ) ) {
+ if ( entityMetamodel . isLazy ( ) && ! entityMetamodel . isLazyLoadingBytecodeEnhanced ( ) ) {
proxyFactory = buildProxyFactory ( mapping... | skip creation of proxy factory |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class ContainerBlueprintLibrary extends BuildCraftContainer {
<nb> public class ContainerBlueprintLibrary extends BuildCraftContainer {
this . library = library ;
addSlotToContainer ( new Slot ( library , NUM... | Make some blueprint library slots output slots |
<nb> public class ConnectivityService extends IConnectivityManager . Stub {
private int mNumDnsEntries ;
private boolean mTestMode ;
- private static volatile ConnectivityService sServiceInstance ;
+ private static ConnectivityService sServiceInstance ;
private Handler mHandler ;
<nb> public class Con... | Revert Changed ConnectivityService getServiceInstance so its a singleton |
<nb> public class HttpServerRequestImpl implements HttpServerRequest {
@ override
public synchronized MultiMap formAttributes ( ) {
- if ( decoder == null ) {
- throw new IllegalStateException ( STRING0 ) ;
- }
return attributes ( ) ;
} | Don t throw exception on formAttributes if decoder is null |
<nb> public abstract class JpsBuildTestCase extends UsefulTestCase {
protected File myDataStorageRoot ;
private TestProjectBuilderLogger myLogger ;
- protected Map < String , String > myBuildParams = new HashMap < String , String > ( ) ;
+ protected Map < String , String > myBuildParams ;
@ override
pro... | do not use different outputs in release and dev modes save the mode to a storage instead |
<nb> public class MultiUserChat {
}
}
}
+
+ @ override
+ public String toString ( ) {
+ return STRING0 + room + STRING1 + connection . getUser ( ) + STRING2 ;
+ }
} | Add MultiUserChat toString |
<nb> public class GitLogUI implements Disposable {
}
myBranchSelectorAction . setSymbolicRefs ( myRecalculatedCommon ) ;
+ myBranchSelectorAction . asTextAction ( ) ;
}
} ;
} | Branch action has only All option |
<nb> public final class Namer {
public static final String OUTER_CLASS_NAME = STRING0 ;
private static final String CALL_FUNCTION = STRING1 ;
- private static final String INITIALIZE_METHOD_NAME = STRING2 ;
private static final String CLASS_OBJECT_NAME = STRING3 ;
private static final String TRAIT_OBJECT_NA... | remove unused code from Namer |
<nb> public class LocalStore extends Store implements Serializable
private void deleteHeaders ( long id )
{
- mDb . execSQL ( STRING0 ,
+ mDb . execSQL ( STRING1 ,
new Object [ ]
{
id | deleteHeaders deleted message headers by id when it should have been |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | fixed test cases |
<nb> public class TransactorSimple extends Transactor {
if ( inventory . getStackInSlot ( i ) == null )
continue ;
- if ( ! inventory . getStackInSlot ( i ) . isItemEqual ( stack ) )
+ if ( ! inventory . getStackInSlot ( i ) . isItemEqual ( stack ) || ! ItemStack . func_77970_a ( inventory . getStackInSlot ( ... | Fix ItemStack merging of ItemStacks with different NBTTagCompount information |
<nb> public class Vectorizer implements PhysicalPlanResolver {
return false ;
}
} catch ( Exception e ) {
- LOG . info ( STRING0 , e ) ;
+ if ( LOG . isDebugEnabled ( ) ) {
+ LOG . debug ( STRING0 , e ) ;
+ }
+
return false ;
}
return true ;
<nb> public class Vectorizer implements PhysicalPlanRe... | Remove Vectorizer noise in logs Wei Zheng reviewed by Matt McCline |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PortalImpl implements Portal {
STRING0 ,
STRING1 +
STRING2 ,
- STRING3 +
- STRING4 ,
STRING5... | remove unused replacement |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class RPCServer {
return ;
}
}
+ } catch ( EOFException e ) {
+ LOG . info ( STRING0
+ + e . getMessage ( ) ) ;
} catch ( IOExceptio... | Replace an exception message check with a class check |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class DrawerLayout extends ViewGroup {
private static final String TAG = STRING0 ; | add link to nav drawer guide |
<nb> public final class SignalTileView extends QSTileView {
protected void handleStateChanged ( QSTile . State state ) {
super . handleStateChanged ( state ) ;
final SignalState s = ( SignalState ) state ;
- mSignal . setImageDrawable ( null ) ; SINGLE
mSignal . setImageResource ( s . iconId ) ;
if ( s . ov... | Fixed unnecessary layouting on wifi signal changes |
<nb> public final class Main implements ActionListener {
resultArea . setEditable ( false ) ;
JLabel label = new JLabel ( messages . getString ( STRING0 ) ) ;
JButton button = new JButton ( messages . getString ( STRING1 ) ) ;
+ SINGLE
button . setMnemonic ( STRING2 ) ;
button . addActionListener ( this ) ; | add a fixme |
<nb> public class ApplicationInjectedActivityTest {
@ test
public void should_have_application_after_create ( ) {
- new SampleRoboApplication ( ) . onCreate ( ) ;
+ new SampleRoboApplication_ ( ) . onCreate ( ) ;
ApplicationInjectedActivity_ activity = new ApplicationInjectedActivity_ ( ) ;
activity . o... | another fixing attempt |
<nb> public class Color {
SINGLE
SINGLE
+ @ override
+ public String toString ( ) {
+ return new StringBuilder ( )
+ . append ( STRING0 )
+ . append ( this . mRed )
+ . append ( STRING1 )
+ . append ( this . mGreen )
+ . append ( STRING2 )
+ . append ( this . mBlue )
+ . append ( STRING3 )
+... | Added Color toString |
<nb> public class GenerateMembersUtil {
}
catch ( IncorrectOperationException e ) {
LOG . error ( e ) ;
+ return method ;
}
- return method ;
}
private static PsiType substituteType ( final PsiSubstitutor substitutor , final PsiType type , final boolean isRaw ) {
<nb> public class OverrideImplementU... | removed optimization which did not work for Groovy anyway |
<nb> public int compareTo ( Object o ) {
return NUMBER0 ;
for ( int i = NUMBER1 ; i < count ( ) ; i ++ )
{
- int c = ( ( Comparable ) nth ( i ) ) . compareTo ( v . nth ( i ) ) ;
+ int c = Util . compare ( nth ( i ) , v . nth ( i ) ) ;
if ( c != NUMBER1 )
return c ;
} | made APersistenVector compareTo use Util compare on elements |
<nb> public class SummaryPage extends RepositoryPage {
&& GitBlit . getBoolean ( Keys . web . generateActivityGraph , true ) ) {
IChartData data = WicketUtils . getChartData ( metrics ) ;
- ChartProvider provider = new ChartProvider ( new Dimension ( NUMBER0 , NUMBER1 ) , ChartType . LINE ,
+ ChartProvider pr... | Shrink summary page activity graph a little |
<nb> public class Jedis extends BinaryJedis implements JedisCommands ,
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public Long ttl ( final String key ) {
checkIsInMulti ( ) ; | adding information about redis versions |
<nb> public class ShadowDateUtilsTest {
Build . VERSION_CODES . JELLY_BEAN_MR2 ,
Build . VERSION_CODES . KITKAT ,
Build . VERSION_CODES . LOLLIPOP } )
- public void formatDateTime_withPastYear_works ( ) {
+ public void formatDateTime_withPastYear ( ) {
String actual = DateUtils . formatDateTime ( RuntimeEnv... | Rename redudant test in ShadowSateUtilsTest |
<nb> public class Metrics {
reporter . start ( ) ;
}
+ public static MetricRegistry registry ( ) {
+ return metrics ;
+ }
+
public static < T extends Metric > T register ( String name , T metric ) throws IllegalArgumentException {
return metrics . register ( name , metric ) ;
} | Added registry accessor to Metrics |
<nb> public class EmbeddedElasticSearchClient {
throw new IndexNotFoundException ( ) ;
}
- return index . getTotal ( ) . docs ( ) . count ( ) ;
+ return index . getPrimaries ( ) . docs ( ) . count ( ) ;
}
public boolean bulkIndex ( final List < LogMessage > messages ) { | only use primaries to count docs in an index |
<nb> public class DataStructures {
private static final int NUMBER_OF_TESTS = NUMBER0 ;
private static final Random RANDOM = new Random ( ) ;
- private static final int ARRAY_SIZE = NUMBER1 ;
+ private static final int ARRAY_SIZE = NUMBER2 ;
private static Integer [ ] unsorted = null ;
private static St... | Increased the array test size |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ incubating
- public interface GradleBuild {
+ public interface GradleBuild extends Model {
COMMENT
COMMENT
COMMENT | Changed GradleBuild to extend Model |
<nb> public class Message extends AbstractEntity {
public static Message fromCursor ( Cursor cursor ) {
Jid jid ;
try {
- jid = Jid . fromString ( cursor . getString ( cursor . getColumnIndex ( COUNTERPART ) ) ) ;
+ String value = cursor . getString ( cursor . getColumnIndex ( COUNTERPART ) ) ;
+ if ( value... | fixed possible npe when loading null counterpart into message |
<nb> public class AndroidBinaryRule extends DoNotUseAbstractBuildable implements
steps ,
dexFile ,
context . getSourcePathResolver ( ) ) ;
- } else if ( ! dexSplitMode . isShouldSplitDex ( ) ) {
+ } else if ( dexSplitMode . isShouldSplitDex ( ) ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ mergePreDexedArtifactsIn... | Clarify some dexing code in AndroidBinaryRule |
<nb> public class TypeConversionUtil {
}
} ) ;
LOG . error ( msg . toString ( ) ) ;
+ return PsiSubstitutor . EMPTY ;
}
return substitutor ;
} | fewer induced exceptions |
<nb> public class MapLoaderTest extends HazelcastTestSupport {
static class FailingMapLoader extends MapStoreAdapter {
- boolean first = true ;
+ AtomicBoolean first = new AtomicBoolean ( true ) ;
@ override
public Set loadAllKeys ( ) {
- if ( first ) {
- first = false ;
+ if ( first . compareAndS... | converted boolean field to AtomicBoolean for MapLoaderTest since it is used multi threaded |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Add missing import manual back merging fail |
<nb> public abstract class AbstractDao < T , K > {
return loadAllAndCloseCursor ( cursor ) ;
}
- COMMENT
+ COMMENT
public List < T > query ( String selection , String [ ] selectionArgs , String groupBy , String having , String orderby ) {
Cursor cursor = db . query ( config . tablename , getAllColumns ( )... | groupBy having does not make sense for entities |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ SINGLE
+ SINGLE
public class RowMutation implements IMutation
{
public static final RowMutationSerializer serializer = new RowMutationSerializer ( ) ; | add TODO for builder conversion |
<nb> public class SessionState {
hdfsSessionPath . getFileSystem ( conf ) . delete ( hdfsSessionPath , true ) ;
}
if ( localSessionPath != null ) {
- localSessionPath . getFileSystem ( conf ) . delete ( localSessionPath , true ) ;
+ FileSystem . getLocal ( conf ) . delete ( localSessionPath , true ) ;
}
} | SessionState dropSessionPaths should use FileSystem getLocal conf to delete local files Hari Sankar Sivarama Subramaniyan reviewed by Vaibhav Gumashta |
<nb> public class BlackPawnTextureAtlasBuilder < T extends ITextureAtlasSource , A exten
SINGLE
SINGLE
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public BlackPawnTextureAtlasBuilder ( final int pTextureAtlasBorderSpacing , final int pTextureAtlasSourceSpacing , final int pTextureAtlasSourcePadd... | Added javadoc for BlackPawnTextureAtlasBuilder constructor |
<nb> public class Utils {
COMMENT
COMMENT
COMMENT
- public static Date mockTime ;
+ public static volatile Date mockTime ;
COMMENT
COMMENT | Silence a FindBugs warning in Utils |
<nb> public class SingleConsumerArrayObjectQueue < E > extends SingleConsumerArrayQueue <
final long i = preEnq ( ) ;
if ( i < NUMBER0 )
return false ;
- orderedSet ( ( int ) i & mask , item ) ; SINGLE
+ volatileSet ( ( int ) i & mask , item ) ;
return true ;
}
@ override
boolean hasNext ( long lind... | Fixed serious SC array queue race |
<nb> public class RobinEngine extends AbstractIndexShardComponent implements Engine {
if ( indexingBufferSize == Engine . INACTIVE_SHARD_INDEXING_BUFFER && preValue != Engine . INACTIVE_SHARD_INDEXING_BUFFER ) {
try {
flush ( new Flush ( ) . full ( true ) ) ;
+ } catch ( EngineClosedException e ) {
+ SINGLE
... | ignore failure to flush when the engine is closed and updating its settings |
<nb> public final class AnalyticsTracker {
public enum Stat {
APPLICATION_OPENED ,
APPLICATION_CLOSED ,
+ APPLICATION_STARTED ,
+ APPLICATION_UPGRADED ,
THEMES_ACCESSED_THEMES_BROWSER ,
THEMES_CHANGED_THEME ,
THEMES_PREVIEWED_SITE ,
<nb> public final class AnalyticsTracker {
OPENED_MEDIA_LIBRARY ,
... | Track Application Upgraded and account logout events |
<nb> class TouchExplorer implements EventStreamTransformation , AccessibilityGestureDe
COMMENT
COMMENT
private void handleMotionEventStateDragging ( MotionEvent event , int policyFlags ) {
- final int pointerIdBits = ( NUMBER0 < < mDraggingPointerId ) ;
+ int pointerIdBits = NUMBER1 ;
+ SINGLE
+ if ( even... | Ensure MotionEvent split won t be given an invalid value |
<nb> public abstract class BaseCppTest {
}
catch ( Exception e ) {
System . err . println ( STRING0 ) ;
- e . printStackTrace ( System . err ) ;
+ SINGLE
}
try {
<nb> public abstract class BaseCppTest {
if ( ! runtimeBuiltOnce ) {
runtimeBuiltOnce = true ;
if ( ! buildRuntime ( ) ) {
+ System ... | Add a bit more logging so we can see what worked and what didn t |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
@ runwith ( Parameterized . class )
public class IterativeKMeansITCase extends eu . stratosphere . test . iterative . IterativeKMeansITCase {
public IterativeKMeansITCase ( Configuration config ) {
super ( config ) ... | Set default locale to US in offending Scala Test Cases |
<nb> public final class Property
public void setNode ( Node n ) {
this . propertyNode = n ;
}
+
+ public String toString ( ) {
+ return STRING0
+ + STRING1 + this . name
+ + STRING2 + this . type
+ + STRING3 + this . inferred
+ + STRING4 ;
+ }
} | Improve logging by making Property toString useful |
<nb> public final class XTestSecurityManager extends SecurityManager {
static final String JUNIT4_TEST_RUNNER_PACKAGE = STRING0 ;
static final String ECLIPSE_TEST_RUNNER_PACKAGE = STRING1 ;
- static final String IDEA_TEST_RUNNER_PACKAGE = STRING2 ;
+ static final String IDEA_TEST_RUNNER_PACKAGE = STRING3 ;
... | Tweak intellij junit package name |
<nb> public class AprEndpoint extends AbstractEndpoint {
running = false ;
unlockAccept ( ) ;
for ( int i = NUMBER0 ; i < acceptors . length ; i ++ ) {
+ int c = NUMBER0 ;
while ( acceptors [ i ] . isAlive ( ) ) {
try {
acceptors [ i ] . interrupt ( ) ;
<nb> public class AprEndpoint extends AbstractEndp... | Hard close the accepting socket if unlockAccept failed |
<nb> public class Glsl100ShaderGenerator extends ShaderGenerator {
COMMENT
COMMENT
protected String replace ( String nodeSource , ShaderNodeVariable var , String newName ) {
- nodeSource = nodeSource . replaceAll ( STRING0 + var . getName ( ) + STRING0 , STRING1 + newName + STRING2 ) ;
+ nodeSource = nodeSour... | Fixed an issue with the ShaderNodeGenerator that was missing some variable names in cases like that myVar myVar x |
<nb> class Slurper implements Runnable {
logger . info ( STRING0 , cursor . getCursorId ( ) ) ;
logger . debug ( STRING1 , totalDocuments . get ( ) ) ;
} catch ( SlurperException sEx ) {
- logger . warn ( STRING2 , sEx ) ;
+ logger . error ( STRING2 , sEx ) ;
break ;
} catch ( Exception ex ) {
- logger ... | promote messages logged before aborting the Slurper loop from warnings to errors |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
public final class Utils {
+ private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ;
+
private Utils ( ) { }
... | added logging when examples fail |
<nb> public class CarrierLabel extends TextView {
}
if ( showSpn && spn != null ) {
if ( something ) {
- str . append ( STRING0 ) ;
+ str . append ( STRING1 ) ;
}
str . append ( spn ) ;
something = true ; | Add line break between PLMN and SPN in windowshade |
<nb> public interface EventTranslator < T >
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
void translateTo ( final T event , long sequence ) ;
} | Fixed JavaDoc error |
<nb> public class DirDiffTableModel extends AbstractTableModel implements DirDiffMode
public void synchronizeAll ( ) {
synchronized ( myElements ) {
- for ( DirDiffElement element : myElements ) {
+ for ( DirDiffElement element : myElements . toArray ( new DirDiffElement [ myElements . size ( ) ] ) ) {
sync... | Synchronize All copies only one file CME at DirDiffTableModel synchronizeAll on next apply |
<nb> public class Groovyc extends MatchingTask {
private String [ ] addClasspathToEnvironment ( String [ ] oldEnvironment , String classpath ) {
List < String > newEnvironmentList = ( oldEnvironment == null ) ? new ArrayList < String > ( ) : Arrays . asList ( oldEnvironment ) ;
- newEnvironmentList . add ( STRI... | Reduce groovyc command line length |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.