diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class JavassistProxyFactory
static
{
- ClassLoader contextClassLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ;
try
{
- Thread . currentThread ( ) . setContextClassLoader ( JavassistProxyFactory . class . getClassLoader ( ) ) ;
-
JavassistProxyFactory proxyFactoryFac... | Remove context class loader |
<nb> public final class Metrics {
SINGLE
public static final String SCOPED_DIRECTORY_ACCESS_INVALID_ARGUMENTS =
- STRING0 ;
+ STRING1 ;
public static final String SCOPED_DIRECTORY_ACCESS_INVALID_DIRECTORY =
- STRING2 ;
+ STRING3 ;
public static final String SCOPED_DIRECTORY_ACCESS_ERROR =
- STRING4 ... | Adding docsui prefix to access metric tags |
<nb> public class WriteAheadLog {
}
protected int checksum ( Volume vol , long startOffset , long endOffset ) {
- return DataIO . longHash ( vol . hash ( startOffset , endOffset - startOffset , NUMBER0 ) ) ;
+ int ret = DataIO . longHash ( vol . hash ( startOffset , endOffset - startOffset , NUMBER0 ) ) ;
+... | do not allow zero checksums |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public class DatabaseContentVerifier
{
String [ ] nodeIndexes = database . index ( ) . nodeIndexNames ( ) ;
String [ ] relationshi... | Test disregards internal map order |
<nb> public class XWebView extends XHook {
SINGLE
try {
- Method setUserAgent = clazzWebSettings . getDeclaredMethod ( STRING0 , Integer . class ) ;
- Util . log ( this , Log . INFO , STRING1 + setUserAgent . getName ( ) ) ;
+ Util . log ( this , Log . INFO , STRING2 ) ;
+ Method setUserAgent = clazzWebSe... | Fix hooking setUserAgent |
<nb> public class StreetLayer implements Serializable {
this . osm = osm ;
for ( Map . Entry < Long , Way > entry : osm . ways . entrySet ( ) ) {
Way way = entry . getValue ( ) ;
- if ( ! way . hasTag ( STRING0 ) ) {
+ if ( ! ( way . hasTag ( STRING0 ) || way . hasTag ( STRING1 ) || way . hasTag ( STRING2 , S... | include areas and platforms when making street edges |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class BlockFromToEvent extends BlockEvent implements Cancellable {
this . cancel = false ;
}
+ public BlockFromToEvent ( final Block block , final Block toBlock ) {
+ super ... | Bleeding Add constructor to BlockFromToEvent for dragon egg teleportation |
<nb> public class TesterDigestAuthenticatorPerformance {
@ test
public void testSimple ( ) throws Exception {
- doTest ( NUMBER0 , NUMBER1 ) ;
+ doTest ( NUMBER2 , NUMBER3 ) ;
}
public void doTest ( int threadCount , int requestCount ) throws Exception {
<nb> public class TesterDigestAuthenticatorPerf... | Fix normally unused DIGEST performance test |
<nb> public class HgMergeDialog extends DialogWrapper {
}
private void loadBranches ( VirtualFile root ) {
- assert branchesForRepos . get ( root ) != null ;
+ assert branchesForRepos . get ( root ) != null : STRING0 + root ;
branchSelector . setModel ( new DefaultComboBoxModel ( branchesForRepos . get ( ro... | Assert message added in loadBranches method |
<nb> public class SortedQueryResultSet extends AbstractSet < Map . Entry > {
}
}
- private class EmptyIterator implements Iterator {
+ private static class EmptyIterator implements Iterator {
@ override
public boolean hasNext ( ) { | fixed finbugs issue |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Tidy up XML formatting in comment |
<nb> public class BasePlugin implements Plugin < Project > {
private void addAssemble ( Project project ) {
Task assembleTask = project . getTasks ( ) . add ( ASSEMBLE_TASK_NAME ) ;
- assembleTask . setDescription ( STRING0 ) ;
+ assembleTask . setDescription ( STRING1 ) ;
assembleTask . setGroup ( BUILD_GR... | Fixed a incorrect description in the assemble task |
<nb> public class ExpandHelper implements Gefingerpoken , OnClickListener {
}
private static final String TAG = STRING0 ;
- protected static final boolean DEBUG = true ;
+ protected static final boolean DEBUG = false ;
protected static final boolean DEBUG_SCALE = false ;
- protected static final boolean D... | disable debug mode on ExpandHelper |
<nb> public class CompileDriver {
context . getProgressIndicator ( ) . setFraction ( ( ( double ) ( ++ current ) ) / total ) ;
if ( deleteHelper . delete ( outputPath ) ) {
wereFilesDeleted = true ;
- String qName = cache . getClassName ( outputPath ) ;
+ final String qName = cache . getClassName ( outputPath... | correctly update compiler caches when classes were removed externally |
<nb> public class DerbyDatabaseInterface implements DatabaseInterface {
. and ( metaDocPartTable . COLLECTION . eq ( collection ) )
. and ( metaDocPartTable . TABLE_REF . eq ( TableRefConverter . toJsonArray ( tableRef ) ) ) )
. fetchOne ( ) ;
- dsl . update ( metaDocPartTable ) . set ( metaDocPartTable . LAST_... | increments all metadocpart table instead of db collection and tableref one |
<nb> public class XmlNode extends RubyObject {
@ jrubymethod ( name = STRING0 )
public IRubyObject blank_p ( ThreadContext context ) {
+ String data = node . getTextContent ( ) ;
+ if ( STRING1 . equals ( data . trim ( ) ) ) return context . getRuntime ( ) . getTrue ( ) ;
return context . getRuntime ( ) . g... | Fix blank_p method of XmlNode so that this method returns true when the content is blank |
<nb> abstract class MapProxySupport extends AbstractDistributedObject < MapService > imp
}
}
- SINGLE
+ COMMENT
+ COMMENT
+ COMMENT
public Map executeOnEntries ( EntryProcessor entryProcessor ) {
Map result = new HashMap ( ) ;
try {
<nb> abstract class MapProxySupport extends AbstractDistributedOb... | removed unnecessary todos added links to interface methods |
<nb> public class LicenseValidator {
if ( ! sig . verify ( Base64 . decode ( signature ) ) ) {
Log . e ( TAG , STRING0 ) ;
- handleInvalidResponse ( Policy . SIG_FAIL ) ;
- return ;
+ SINGLE
+ SINGLE
}
SINGLE
SINGLE | Turn off signature verification for now |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
@ singleton
public class OutputRegistry {
private static final Logger LOG = LoggerFactory . getLogger ( OutputRegistry . class ) ;
<nb> public class OutputRegistry {
private final MessageOutput defaultMessa... | Remove unused configuration field from OutputRegistry |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class AnActionButton extends AnAction implements ShortcutProvide
}
public void updateButton ( AnActionEvent e ) {
+ e . getPresentation ( ) . setEnabled ( getContextComponent ( ) . isShowing ( ) ) ;
}
@ override
... | don t call actions on hidden components |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
- public class BusinessSubscriptionTransitionModelDao {
+ public class BusinessSubscriptionTransitionModelDao extends EntityBase {
private final long totalOrdering ;
private final UUID bundleId ;
private ... | make BusinessSubscriptionTransitionModelDao extend EntityBase |
<nb> public class GraphDatabaseConfiguration {
StoreFeatures f = storeManager . getFeatures ( ) ;
boolean part = f . isDistributed ( ) && f . isKeyOrdered ( ) ;
globalWrite . set ( IDS_PARTITION , part ) ;
- log . info ( STRING0 , part ) ;
+ log . info ( STRING1 , part ) ;
+ } else {
+ log . info ( STRING... | Always log an automatic ids partition decision |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class SelectActionModeCallback implements ActionMode . Callback {
Intent i = new Intent ( Intent . ACTION_WEB_SEARCH ) ;
i . putExtra ( SearchManager . EXTRA_NEW_SEARCH , true ) ;
i . putExt... | add flag to websearch intent |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClsFileImpl extends ClsRepositoryPsiElement < PsiClassHolderFileStub >
PsiClass aClass = getClasses ( ) [ NUMBER0 ] ;
Stri... | it takes too much memory |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ beta
public interface Plugin {
class Context {
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COM... | Deprecate SonarPlugin in favour of Plugin |
<nb> public final class ByteString implements Serializable {
COMMENT
public static final ByteString EMPTY = ByteString . of ( ) ;
- static final long serialVersionUID = NUMBER0 ;
final byte [ ] data ;
private transient int hashCode ; SINGLE
<nb> public final class ByteString implements Serializable {
... | Move serialVersionUID to the class actually serialized |
<nb> public abstract class Controller {
public void onRestoreInstanceState ( @ nonnull Controller controller , @ nonnull Bundle savedInstanceState ) { }
public void onSaveViewState ( @ nonnull Controller controller , @ nonnull Bundle outState ) { }
- public void onRestoreViewState ( @ nonnull Controller control... | Renamed parameter of onRestoreViewState to savedViewState |
<nb> public class WPMainActivity extends Activity
private void resetFragments ( ) {
AppLog . i ( AppLog . T . MAIN , STRING0 ) ;
- SINGLE
- SINGLE
+ SINGLE
+ SINGLE
EventBus . getDefault ( ) . removeStickyEvent ( ReaderEvents . UpdatedFollowedTagsAndBlogs . class ) ;
SINGLE | Corrected typos in comment |
<nb> public class CLIModelControllerClient extends AbstractModelControllerClient {
} ) ;
}
- private final Object lock = STRING0 ;
+ private final Object lock = new Object ( ) ;
private final CallbackHandler handler ;
private final SSLContext sslContext ; | Don t use a constant string for lock |
<nb> public abstract class GraphDatabaseSettings
@ description ( STRING0 )
public static final Setting < Long > mapped_memory_page_size = setting ( STRING1 , BYTES , STRING2 ) ;
- @ description ( STRING3 +
- STRING4 +
- STRING5 +
- STRING6 +
- STRING7 +
- STRING8 +
- STRING9 +
+ @ description ( ST... | Fix formatting of the description of the mapped_memory_total_size configuration |
<nb> public class CircleImageView extends ImageView {
}
private void setup ( ) {
- if ( getWidth ( ) == NUMBER0 && getHeight ( ) == NUMBER0 ) {
+ if ( ! mReady ) {
+ mSetupPending = true ;
return ;
}
- if ( ! mReady ) {
- mSetupPending = true ;
+ if ( getWidth ( ) == NUMBER0 && getHeight ( ) == ... | Reorder setup condition checks |
<nb> public final class SimpleExoPlayer implements ExoPlayer {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Tweak VideoListener doc |
<nb> public class LongDistancePathService implements PathService {
COMMENT
COMMENT
- Nonterminal streetItinerary = seq (
+ Nonterminal streetItinerary = choice ( TRANSFER , seq (
optional ( STATION_STOP ) , optional ( LINK ) ,
streetLeg ,
- optional ( LINK ) , optional ( STATION_STOP ) ) ;
+ optional ... | Allow paths that consist of a single transfer |
<nb> public class PyIntegratedToolsProjectConfigurator implements DirectoryProjectCon
SINGLE
final String extension = PythonFileType . INSTANCE . getDefaultExtension ( ) ;
SINGLE
- final GlobalSearchScope searchScope = module . getModuleContentScope ( ) ;
+ final GlobalSearchScope searchScope = module . getMo... | do not collect tests from interpreter from inside project |
<nb> public class RoutingHelper {
} else {
float posTolerance = POSITION_TOLERANCE ;
if ( currentLocation . hasAccuracy ( ) ) {
- posTolerance = POSITION_TOLERANCE / NUMBER0 + currentLocation . getAccuracy ( ) ;
+ posTolerance = POSITION_TOLERANCE / NUMBER1 + currentLocation . getAccuracy ( ) ;
}
SINGLE
... | Avoid route recalculation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ServerSentEventConnection implements Channel , Attachable {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Map ... | Add ability to get query parameters and string from the ServerSentEventConnection |
<nb> public class WebView extends AbsoluteLayout
}
}
- public void updateWebTextViewPosition ( ) {
+ private void updateWebTextViewPosition ( ) {
Rect visibleRect = new Rect ( ) ;
calcOurContentVisibleRect ( visibleRect ) ;
SINGLE | Fix the build |
<nb> public class TemporaryJob {
verifyHealthy ( host , taskStatus ) ;
final TaskStatus . State state = taskStatus . getState ( ) ;
- log . info ( STRING0 , state ) ;
+ log . info ( STRING1 , job . getImage ( ) , state ) ;
if ( state == TaskStatus . State . RUNNING ) {
return taskStatus ;
<nb> public ... | Add more info to testing framework logs |
<nb> public class InvokeParam extends AbstractParam {
enabledApps . trimToSize ( ) ;
this . listInvokeEnabled = enabledApps ;
} catch ( ConversionException e ) {
- logger . error ( STRING0 + e . getMessage ( ) , e ) ;
+ logger . error ( STRING1 + e . getMessage ( ) , e ) ;
}
try { | Corrected a log error message |
<nb> public class RepeatedRaptorProfileRouter {
LOG . info ( STRING0 ) ;
COMMENT
- if ( raptorWorkerData == null )
+ if ( raptorWorkerData == null ) {
+ long dataStart = System . currentTimeMillis ( ) ;
raptorWorkerData = getRaptorWorkerData ( request , graph , sampleSet , ts ) ;
+ ts . raptorData = ( i... | record raptor data build time if applicable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public class FluidRenderer {
- private static final ResourceLocation BLOCK_TEXTURE = new ResourceLocation... | Fix tank not rendering fluids properly |
<nb> public class AudioRecord
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public AudioRecord build ( ) throws UnsupportedOperationException {
if ( mFormat == null ) {
<nb> public class AudioRecord
mBufferSizeInBytes = mFormat . getChann... | AudioRecord Builder should throw exception on failure |
<nb> public final class ManifestParser {
context . getPackageName ( ) , PackageManager . GET_META_DATA ) ;
if ( appInfo . metaData != null ) {
for ( String key : appInfo . metaData . keySet ( ) ) {
- if ( GLIDE_MODULE_VALUE . equals ( appInfo . metaData . getString ( key ) ) ) {
+ if ( GLIDE_MODULE_VALUE . eq... | Avoid spammy logged exceptions in ManifestParser |
<nb> public class SpongeCoremod implements IFMLLoadingPlugin {
MixinEnvironment . getDefaultEnvironment ( )
. registerErrorHandlerClass ( STRING0 ) ;
}
- System . out . println ( STRING1 ) ;
modFile = ( File ) data . get ( STRING2 ) ;
- System . out . println ( STRING3 + this . modFile ) ;
if ( modFile ==... | Remove debug messages |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix compiler warnings |
<nb> public final class BufferUtils {
COMMENT
COMMENT
public static List < ByteBuffer > cloneByteBufferList ( List < ByteBuffer > source ) {
- List < ByteBuffer > ret = new ArrayList < ByteBuffer > ( source . size ( ) ) ;
+ List < ByteBuffer > ret = new ArrayList < > ( source . size ( ) ) ;
for ( ByteBuffer... | SMALLFIX Removed explicit parameter type in BufferUtils |
<nb> public class BuildCraftCore {
@ serverstarting
public void serverStarting ( FMLServerStartingEvent event ) {
- CommandHandler commandManager = ( CommandHandler ) event . getServer ( ) . getCommandManager ( ) ;
- commandManager . registerCommand ( new CommandBuildCraft ( ) ) ;
+ event . registerServerCo... | Fix buildcraft not working in singleplayer |
<nb> public class WXSlider extends WXVContainer < FrameLayout > implements OnPageChangeL
public static final String INDEX = STRING0 ;
public static final String SHOW_INDICATORS = STRING1 ;
public static final String AUTO_PLAY = STRING2 ;
+ public static final String INTERVAL = STRING3 ;
Map < String , Object ... | android add slider interval attribute |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GithubRebaseAction extends DumbAwareAction {
}
try {
- SINGLE
- final GitBranch currentBranch = GitBranch . current (... | Remove limitation on the master branch |
<nb> public class Amenity extends MapObject {
public void setOpeningHours ( String openingHours ) {
setAdditionalInfo ( OPENING_HOURS , openingHours ) ;
}
+
+ @ override
+ public int compareTo ( MapObject o ) {
+ int cmp = super . compareTo ( o ) ;
+ if ( cmp == NUMBER0 && o instanceof Amenity ) {
+ r... | Fix amenity type |
<nb> public class GBMTest extends TestUtil {
@ beforeclass public static void stall ( ) { stall_till_cloudsize ( NUMBER0 ) ; }
SINGLE
- COMMENT
+ @ test public void testBasicGBM ( ) {
File file = TestUtil . find_test_file ( STRING0 ) ;
Key fkey = NFSFileVec . make ( file ) ;
Frame fr = ParseDataset2 . p... | Rename GBM files into a gbm directory |
<nb> public class Txt2Html
int count = NUMBER0 ;
SINGLE
- Iterator iter = filesets . iterator ( ) ;
+ Iterator < FileSet > iter = filesets . iterator ( ) ;
while ( iter . hasNext ( ) ) {
- FileSet fs = ( FileSet ) iter . next ( ) ;
- DirectoryScanner ds = fs . getDirectoryScanner ( project ) ;
+ FileS... | Fix generics and use of deprecated field |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
public class MessageMetadataSchemeAsMultiScheme extends SchemeAsMultiScheme {
private static final long serialVersionUID = - NUMBER0 ;
- public MessageMetadataSchemeAsMultiScheme ( Scheme scheme ) ... | Changed constructor to accept instance of MessageMetadataScheme |
<nb> public class GridSearch extends Job {
}
@ override public Response redirect ( ) {
- String redirectName = GridSearchProgress . class . getSimpleName ( ) ;
+ String redirectName = new GridSearchProgress ( ) . href ( ) ;
return Response . redirect ( this , redirectName , STRING0 , job_key , STRING1 , des... | Corrected redirect URL |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class PluginTestCaseBase {
}
public static Sdk j... | Using JDK with jdk annotations in plugin tests |
<nb> import NAMESPACE ;
COMMENT
public class DefaultAnnotationProcessor implements AnnotationProcessor {
- private AtmosphereFramework framework ;
+ protected AtmosphereFramework framework ;
private org . slf4j . Logger logger = LoggerFactory . getLogger ( DefaultAnnotationProcessor . class ) ;
public D... | Change the scope |
<nb> public class Pipe implements IPipe , IDropControlInventory {
public void resetGate ( ) {
gate = null ;
activatedTriggers = new Trigger [ activatedTriggers . length ] ;
+ triggerParameters = new TriggerParameter [ triggerParameters . length ] ;
+ activatedActions = new Action [ activatedActions . length ]... | Reset all gate parameters when gate is stripped from pipe |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class UnresolvedOdexInstruction implements Instruction {
this . objectRegisterNum = objectRegisterNumber ;
}
- public Format getFormat ( ) {
- return Format . UnresolvedOdexInstruction ;
- }
-
... | Remove unneeded unused getFormat method in UnresolvedOdexInstruction |
<nb> public class OperationJoinTest {
}
} ;
}
- Action1 < Integer > toList ( final Collection < Integer > out ) {
- return new Action1 < Integer > ( ) {
- @ override
- public void call ( Integer t1 ) {
- out . add ( t1 ) ;
- }
- } ;
- }
@ before
public void before ( ) {
MockitoAnnotations . ... | Removed unused test function |
<nb> public abstract class ImageManagerLoader < T > extends BaseImageLoader < T > {
@ override
protected final void doFetchImage ( String path , T model , int width , int height , ImageReadyCallback cb ) {
clear ( ) ;
- loadToken = doFetchImage ( path , width , height , cb ) ;
+ if ( path != null ) {
+ load... | in ImageManagerLoader handle null paths |
<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 ;
public class PathHashing {
... | Don t allow PathHashing to hash empty path |
<nb> public class PluginOperation extends Operation {
else {
logger . log ( Level . WARNING , STRING0 + forcePluginId ) ;
erroneousPlugins . add ( forcePluginId ) ;
+ updateablePlugins = Lists . newArrayList ( ) ; SINGLE
}
}
logger . log ( Level . INFO , STRING1 + StringUtil . join ( updateablePlugins ,... | Throw error if the user wants to update a non updatable plugin |
<nb> public class LocalTachyonClusterMultiMaster extends AbstractLocalTachyonCluster
try {
mCuratorServer = new TestingServer ( ) ;
- LOG . info ( STRING0 + mCuratorServer . getConnectString ( ) ) ;
+ LOG . info ( STRING1 , mCuratorServer . getConnectString ( ) ) ;
} catch ( Exception e ) {
throw Throwabl... | Fix logging formatting printing |
<nb> public class StatefulPersistenceContext implements PersistenceContext {
return entitiesByKey ;
}
+ public Map getProxiesByKey ( ) {
+ return proxiesByKey ;
+ }
+
public Map getEntityEntries ( ) {
return entityEntries ;
} | Added StatefulPersistenceContext getProxiesByKey needed for testing non flushed changes |
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
COMMENT
COMMENT
<nb> public class ManyToOneRingBuffer implements RingBuffer
mask = capacity - NUMBER0 ;
maxEventSize = capacity / NUMBER1 ;
- tailCounterIndex = capacity + RingBufferDescriptor... | applied static imports for readability |
<nb> public abstract class ObjectiveCSourceFileGenerator extends SourceFileGenerator
IOSParameter first = iosParameters . next ( ) ;
SingleVariableDeclaration var = parameters . get ( first . getIndex ( ) ) ;
addTypeAndName ( first , var , sb ) ;
- if ( iosParameters . hasNext ( ) ) {
+ while ( iosParameters ... | fixed generation of mapped methods with more than two parameters |
<nb> public class RealtimeIndexTask extends AbstractTask
realtimePlumberSchool . setServiceEmitter ( toolbox . getEmitter ( ) ) ;
if ( this . rejectionPolicyFactory != null ) {
- realtimePlumberSchool . setRejectionPolicyFactory ( new NoopRejectionPolicyFactory ( ) ) ;
+ realtimePlumberSchool . setRejectionPo... | Fix busted condition |
<nb> public class EnumTriangles implements PlanAssembler , PlanAssemblerDescription {
edge = new Edge ( new PactString ( rdfObj ) , new PactString ( rdfSubj ) ) ;
}
- EdgeList edgeList = new EdgeList ( ) ;
- edgeList . add ( edge ) ;
-
pair . setKey ( edge ) ;
pair . setValue ( new PactNull ( ) ) ; | removed obsolete code from EnumTriangle example pact program |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class LocalTransferPlugin extends TransferPlugin {
+ public static final String ID = STRING0 ;
+
public LocalTransferPlugin ( ) {
- super ( STRING0 ) ;
+ super ( ID ) ;
}
} | Add plugin ID for local plugin |
<nb> public class Task implements ExecutionObserver {
SINGLE
ExecutionStateTransition . checkTransition ( getTaskName ( ) , this . executionState , newExecutionState ) ;
+ SINGLE
+ if ( newExecutionState == ExecutionState . FAILED ) {
+ LOG . error ( optionalMessage ) ;
+ }
+
SINGLE
final Iterator <... | Improved logging of errors at the task manager |
<nb> public final class PathImpl implements Path
{
return new Iterator < PropertyContainer > ( )
{
- Iterator < ? extends PropertyContainer > current = relationships ( ) . iterator ( ) ;
- Iterator < ? extends PropertyContainer > next = nodes ( ) . iterator ( ) ;
+ Iterator < ? extends PropertyContainer > c... | Fixed a bug in the iterator which iterates over nodes and relationships interleaved |
<nb> public class ScopeUtil {
@ nullable
public static ScopeOwner getDeclarationScopeOwner ( PsiElement anchor , String name ) {
- PsiElement element = anchor ;
if ( name != null ) {
- final ScopeOwner originalScopeOwner = getScopeOwner ( element ) ;
+ final ScopeOwner originalScopeOwner = getScopeOwner (... | Inlined redundant variable |
<nb> public class Presentation extends BasePresenter
SINGLE
SlideInfo slideInfo = currentSlides_ . get ( i ) ;
+ SINGLE
+ if ( slideInfo . getTitle ( ) . trim ( ) . length ( ) == NUMBER0 )
+ continue ;
+
SINGLE
SINGLE
if ( slideInfo . isSection ( ) ) | don t include slides w o titles in the list |
<nb> public class ConfigureMapMenu {
final OsmandSettings . CommonPreference < String > pref = activity . getMyApplication ( ) . getSettings ( )
. getCustomRenderProperty ( p . getAttrName ( ) ) ;
- OsmandApplication app = activity . getMyApplication ( ) ;
-
- LayoutInflater inflater = ( LayoutInflater ) ap... | Fix crash routes setting in conf map |
<nb> class ColumnarTextHiveRecordCursor < K >
! isShortDecimal ( types [ fieldId ] ) ) {
SINGLE
throw new IllegalArgumentException (
- format ( STRING0 , TINYINT , SMALLINT , INTEGER , BIGINT , DECIMAL , DATE , TIMESTAMP , types [ fieldId ] , fieldId ) ) ;
+ format ( STRING1 , TINYINT , SMALLINT , INTEGER , B... | Add missing format string |
<nb> public abstract class ByteToByteDecoder extends ChannelInboundByteHandlerAdapter
@ override
public void inboundBufferUpdated ( ChannelHandlerContext ctx , ByteBuf in ) throws Exception {
- callDecode ( ctx , in , ctx . nextOutboundByteBuffer ( ) ) ;
+ callDecode ( ctx , in , ctx . nextInboundByteBuffer (... | Pass the right ByteBuf to the decode |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MethodUtils {
if ( method == null ) {
return false ;
}
+ if ( ! InheritanceUtil . isInheritorOrSelf ( method . getConta... | don t load AST for methods that have non chainable return type |
<nb> public abstract class MenuDrawer extends ViewGroup {
if ( mDropShadowEnabled && ( offsetPixels != NUMBER0 || mIsStatic ) ) {
drawDropShadow ( canvas ) ;
}
- if ( shouldDrawIndicator ( ) && offsetPixels != NUMBER0 ) {
+ if ( shouldDrawIndicator ( ) && ( offsetPixels != NUMBER0 || mIsStatic ) ) {
drawInd... | Draw indicator on static drawer |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class SpdyHeaders {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static final class HttpNames {
COMMENT | Fix javadocs warnings |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> class AsmUtils {
argTypes [ i ] = getClassForType ( types [ i ] ) ;
}
try {
- return clazz . getConstructor ( argTypes ) ;
+ return clazz . getDeclaredConstructor ( argTypes ) ;
} c... | Fixed Constructor with descriptor V not found exception in certain action expressions |
<nb> public class MergeAction extends AnAction {
final VcsContext context = CvsContextWrapper . createCachedInstance ( e ) ;
final VirtualFile [ ] files = context . getSelectedFiles ( ) ;
if ( files . length == NUMBER0 ) return ;
+ final Project project = context . getProject ( ) ;
final ReadonlyStatusHandler... | ensureFilesWriteable may show dialog |
<nb> public class OStorageRemote extends OStorageAbstract {
protected void createNetworkConnection ( ) throws IOException , UnknownHostException {
for ( OPair < String , String [ ] > server : serverURLs ) {
- OLogManager . instance ( ) . debug ( this , STRING0 , server . getKey ( ) , server . getValue ( ) ) ;
... | Used the right port on connection in binary mode |
<nb> package NAMESPACE ;
import NAMESPACE ;
- @ suppresswarnings ( STRING0 )
public interface SwipeableItemConstants {
COMMENT
COMMENT
<nb> public interface SwipeableItemConstants {
COMMENT
COMMENT
COMMENT
+ @ suppresswarnings ( STRING1 )
float OUTSIDE_OF_THE_WINDOW_LEFT = - ( ( NUMBER0 < < NU... | Lint Suppress some PointlessArithmeticExpression warnings |
<nb> public class BaseLdapTestCase extends TestCase {
SINGLE
protected static LdapTestHelper ldapTestHelper = new LdapTestHelper ( ) ;
- protected DirContext ctx ;
-
- protected void setUp ( ) throws NamingException {
- ctx = getClientContext ( ) ;
- }
-
- protected void tearDown ( ) throws NamingEx... | Cleaned up source to better express correct use |
<nb> import NAMESPACE ;
@ rest ( converters = FormHttpMessageConverter . class )
public interface ClientWithWrongFields {
- @ post ( STRING0 )
+ @ post ( STRING1 )
void duplicateField ( @ field ( STRING2 ) int v1 , @ field ( STRING2 ) int v2 ) ;
@ post ( STRING3 )
<nb> public class RestTest extends AA... | Revert changing a test case for Field annotation |
<nb> public abstract class BlockOutStream extends OutStream {
if ( tachyonFile . mTachyonFS . hasLocalWorker ( )
&& tachyonConf . getBoolean ( Constants . USER_ENABLE_LOCAL_WRITE ,
Constants . DEFAULT_USER_ENABLE_LOCAL_WRITE ) ) {
- LOG . info ( STRING0 ) ;
+ LOG . info ( STRING1 + tachyonFile + STRING2
+ +... | Improve comments in BlockOutStream |
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
public interface Stream { | Define threading expectation for Stream |
<nb> public class HasChildQueryBuilderTests extends AbstractQueryTestCase < HasChildQue
SINGLE
XContentBuilder builder = XContentFactory . jsonBuilder ( ) . prettyPrint ( ) ;
queryBuilder . toXContent ( builder , ToXContent . EMPTY_PARAMS ) ;
- assertEquals ( query , builder . string ( ) ) ;
+ assertEquals ( ... | TEST Make test pass on windows jackson uses platform line separator which messes up comparisons |
<nb> public class AsyncBulkByScrollActionTests extends ESTestCase {
Object result = listener . get ( ) ;
fail ( STRING0 + result ) ;
}
- assertNotNull ( STRING1 , client . lastSearch . get ( ) ) ;
+ assertBusy ( ( ) - > assertNotNull ( STRING1 , client . lastSearch . get ( ) ) ) ;
assertEquals ( client . se... | reindex Add assertBusy to test |
<nb> public class CMISSessionFacade {
}
public Document getDocument ( QueryResult queryResult ) {
- if ( CamelCMISConstants . CMIS_DOCUMENT
- . equals ( queryResult . getPropertyValueById ( PropertyIds . OBJECT_TYPE_ID ) ) ||
- CamelCMISConstants . CMIS_DOCUMENT
- . equals ( queryResult . getPropertyValue... | Fixed CS error |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
+ @ ignore
public class SnapshotDataDaoTest extends AbstractDaoTestCase {
private SnapshotDataDao dao ; | Temporary disable failing unit tests |
<nb> public class MessageListFragment extends SherlockFragment implements OnItemClick
mRemoteSearch = args . getBoolean ( ARG_REMOTE_SEARCH , false ) ;
mSearch = args . getParcelable ( ARG_SEARCH ) ;
- mTitle = args . getString ( mSearch . getName ( ) ) ;
+ mTitle = mSearch . getName ( ) ;
String [ ] acco... | Fix display of named searches e g Unified Inbox |
<nb> public class Hyphenator {
STRING0 , STRING1 , STRING2 ,
STRING3 ,
STRING4 ,
- STRING5 ,
STRING6 ,
STRING7 ,
STRING8 , | Remove Basque hyphenation patterns |
<nb> public class CxfProducer extends DefaultProducer implements AsyncProcessor {
int experctMessagePartsSize = boi . getInput ( ) . getMessageParts ( ) . size ( ) ;
if ( parameters . length < experctMessagePartsSize ) {
- throw new IllegalArgumentException ( STRING0
+ throw new IllegalArgumentException ( STR... | Noticed a typo in the logs |
<nb> public class ConnectivityManager
public static final int TYPE_WIFI = NUMBER0 ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
public static final int TYPE_MOBILE_MMS = NUMBER1 ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Connectivity... | Fix Javadoc errors so the sdk can build |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HiveSortExchange extends SortExchange {
RelDistribution distribution , RelCollation collation ) {
RelOptCluster cluster = input . getCluster ( ) ;
distribution = RelDistributionTr... | TraitSets not correctly propagated in HiveSortExchange causes Assertion error Jesus Camacho Rodriguez via Ashutosh Chauhan |
<nb> public class OnBoardDepartServiceImpl implements OnBoardDepartService {
TripTimes tripTimes = timetable . getTripTimes ( timetable . getTripIndex ( tripId ) ) ;
int depTime = tripTimes . getDepartureTime ( bestStopIndex ) ;
- int arrTime = tripTimes . getArrivalTime ( bestStopIndex ) ;
+ int arrTime = tr... | Fix hop versus stop confusion |
<nb> import NAMESPACE ;
COMMENT
public class PsiFilter < T extends PsiElement > {
private final Class < T > filter ;
+ public static final PsiFilter < ? > [ ] EMPTY = { } ;
public PsiFilter ( @ notnull Class < T > filter ) {
this . filter = filter ; | add empty array constant |
<nb> public class ImportingJob implements Jsonizable {
}
}
- public void setProjectID ( long id2 ) {
+ public void setProjectID ( long projectID ) {
synchronized ( config ) {
- JSONUtilities . safePut ( config , STRING0 , project . id ) ;
+ JSONUtilities . safePut ( config , STRING0 , projectID ) ;
} ... | Fix bug in refactoring of ImportingJob from commit |
<nb> public class Drawer {
return this ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Drawer withRootView ( ViewGroup rootView ) {
+ this . mRootView = rootView ;
+
+ SINGLE
+ withTranslucentStatusBar ( false ) ;
+
+ return this ;
+ }
+
+ COMMENT
+ COMME... | add new method which allows to nest the Drawer inside a view |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.