diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class JavaBuild {
if ( pkg . startsWith ( STRING0 ) ) return true ;
if ( pkg . startsWith ( STRING1 ) ) return true ;
if ( pkg . startsWith ( STRING2 ) ) return true ;
+
+ SINGLE
SINGLE
SINGLE | discussing imports with Andres |
<nb> public class PyRefactoringUtil {
if ( ! ( scope instanceof PyClass ) && ! ( scope instanceof PyFile ) && ! ( scope instanceof PyFunction ) ) {
return Collections . emptyList ( ) ;
}
- final Set < String > variables = new HashSet < String > ( ) ;
+ final Set < String > variables = new HashSet < String > (... | don t include null elements in collectUsedNames |
<nb> public class DaemonRegistryServices extends DefaultServiceRegistry {
private static final Cache < File , DaemonRegistry > REGISTRY_CACHE = new CacheAccessSerializer < File , DaemonRegistry > (
new MapBackedCache < File , DaemonRegistry > ( REGISTRY_STORAGE )
) ;
-
+
+ SINGLE
public DaemonRegistryServ... | Added a TODO |
<nb> public class JUnitTestSuitePlugin implements Plugin < Project > {
configureReports ( test ) ;
}
- private File configureReports ( Test test ) {
+ private void configureReports ( Test test ) {
SINGLE
TestTaskReports reports = test . getReports ( ) ;
File reportsDirectory = new File ( buildDir , STRI... | Remove unused return value |
<nb> public class GTFSPatternHopFactory {
if ( createdTransfers . contains ( edge ) ) {
continue ;
}
- GeometryFactory factory = new GeometryFactory ( ) ;
- LineString geometry = factory . createLineString ( new Coordinate [ ] {
+
+ LineString geometry = _factory . createLineString ( new Coordinate [ ] { ... | use a tiny bit less memory for transfers |
<nb> public class ContactIrcImpl
@ override
public String getPersistentData ( )
{
- SINGLE
- SINGLE
return null ;
} | Removed unimportant TODO |
<nb> public class ODatabaseDocumentTxPooled extends ODatabaseDocumentTx implements OD
getLevel1Cache ( ) . clear ( ) ;
- ownerPool . release ( this ) ;
+ final ODatabaseDocumentPool localCopy = ownerPool ;
ownerPool = null ;
+ localCopy . release ( this ) ;
}
public void forceClose ( ) {
<nb> publ... | Multithreading pool resource closing fix |
<nb> public class MasterFaultToleranceIntegrationTest {
}
}
+ SINGLE
+ @ ignore
@ test
public void createFilesTest ( ) throws IOException , TException {
int clients = NUMBER0 ; | Disable other test |
<nb> class DimLayerController {
for ( int i = mState . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) {
DimLayer . DimLayerUser user = mState . keyAt ( i ) ;
- if ( user . isFullscreen ( ) ) {
+ DimLayerState state = mState . valueAt ( i ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( user . isFullscreen... | Properly handle DimLayers which become fullscreen |
<nb> public class DataBindingUtils {
MetaClass mc = GroovySystem . getMetaClassRegistry ( ) . getMetaClass ( object . getClass ( ) ) ;
if ( mc . hasProperty ( object , STRING0 ) != null && bindingResult != null ) {
ValidationErrors errors = new ValidationErrors ( object ) ;
- errors . addAllErrors ( errors ) ; ... | fix failing tests |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Antlr4Mojo extends AbstractMojo {
Log log = getLog ( ) ;
+ outputEncoding = validateEncoding ( outputEncoding ) ;
+
... | Ensure valid output encoding |
<nb> public class SnapShooterDaemon implements Runnable {
private static List < Component > getRootWindows ( ) {
List < Component > result = new ArrayList < Component > ( ) ;
for ( Frame frame : Frame . getFrames ( ) ) {
+ SINGLE
+ if ( frame . getClass ( ) . getName ( ) . endsWith ( STRING0 ) ) continue ;
... | don t show SwingUtilities SharedOwnerFrame in snapshooter tree |
<nb> public class SettingsTest extends AbstractTest
Assert . assertTrue ( latch . await ( NUMBER0 , TimeUnit . SECONDS ) ) ;
}
-
- @ test
- public void test ( ) throws Exception
- {
- startServer ( new ServerSessionFrameListener . Adapter ( )
- {
- @ override
- public void onConnect ( Session sess... | Removed temporary test |
<nb> public class AddinsMRUList extends MRUList
List < KeySequence > bindings = keyMap . getBindings ( id ) ;
if ( bindings != null && ! bindings . isEmpty ( ) )
commands [ i ] . setShortcut ( new KeyboardShortcut ( bindings . get ( NUMBER0 ) ) ) ;
- else
- Debug . logToRConsole ( STRING0 + id + STRING1 ) ;
... | remove debug logging |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
- import NAMESPACE ;
-
COMMENT
COMMENT
CO... | Replace proprietary annotation |
<nb> final class QuickViewIntentBuilder {
}
}
- intent . putExtra ( Intent . EXTRA_INDEX , documentLocation ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ intent . putExtra ( Intent . EXTRA_INDEX , documentLocation - range . getLower ( ) ) ;
intent . setClipData ( clipData ) ;
return intent ;
<nb> final class... | Fix index computation for quick viewing |
<nb> public class FrameVariablesTree extends DebuggerTree {
}
catch ( UnsupportedOperationException ignored ) {
}
- catch ( InternalException e ) {
+ catch ( Exception e ) {
LOG . info ( e ) ;
}
return Collections . emptyList ( ) ; | do not propagate exceptions in case of broken bytecode |
<nb> public class RestTemplate extends HttpAccessor implements RestOperations {
public void doWithRequest ( ClientHttpRequest httpRequest ) throws IOException {
super . doWithRequest ( httpRequest ) ;
if ( ! requestEntity . hasBody ( ) ) {
+ HttpHeaders httpHeaders = httpRequest . getHeaders ( ) ;
HttpHeaders... | Fixing the build |
<nb> public class WPCOMReaderImpl extends WPCOMReaderBase {
refreshButton
. setOnClickListener ( new ImageButton . OnClickListener ( ) {
public void onClick ( View v ) {
+ startRotatingRefreshIcon ( ) ;
wv . reload ( ) ;
new Thread ( new Runnable ( ) {
public void run ( ) {
<nb> public class WPCOMReader... | Rotate the RefreshIcon on refresh |
<nb> public class DRFTest extends TestUtil {
parms . _max_depth = NUMBER0 ;
parms . _nfolds = NUMBER0 ;
parms . _ntrees = NUMBER1 ;
+ parms . _seed = NUMBER2 ;
DRF job = new DRF ( parms ) ; | Fix the seed for DRF JUnit |
<nb> public class MethodAnalyzer {
private void analyzeInvokeObjectInitRange ( @ nonnull AnalyzedInstruction analyzedInstruction , boolean analyzeResult ) {
Instruction3rc instruction = ( Instruction3rc ) analyzedInstruction . instruction ;
- Instruction3rc deodexedInstruction = new ImmutableInstruction3rc ( Op... | Deodex an invoke object init range as a non range invoke virtual when possible |
<nb> public class Redwood {
}
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public static void logf ( String format , Object . . . args ) { log ( new Formatter ( ) . format ( format , args ) ) ; }
COMMENT | Moved index to ir |
<nb> 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 ;
import NAMESPACE ;
- i... | Remove start imports |
<nb> public class ClientSession extends Session {
if ( getAuthToken ( ) == null ) {
SINGLE
- if ( XMPPServer . getInstance ( ) . getIQAuthHandler ( ) . isAllowAnonymous ( ) ) {
- sb . append ( STRING0 ) ;
- }
+ sb . append ( STRING0 ) ;
SINGLE
if ( XMPPServer . getInstance ( ) . getIQRegisterHandler (... | Always offer non SASL Authentication stream feature |
<nb> public interface HandlerInterceptor {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Updated Javadoc for HandlerInterceptor to indicate invocation order of afterCompletion methods |
<nb> public abstract class SocketReader implements Runnable {
private boolean negotiateTLS ( ) throws IOException , XmlPullParserException {
SINGLE
try {
- connection . startTLS ( ) ;
+ connection . startTLS ( false ) ;
}
catch ( IOException e ) {
connection . deliverRawText ( STRING0 ) ; | Added support for TLS negotiation as a client |
<nb> public class RefineServlet extends Butterfly {
try {
ProjectManager . singleton . save ( false ) ; SINGLE
} finally {
- _timer . schedule ( new AutoSaveTimerTask ( ) , s_autoSavePeriod ) ;
- SINGLE
- SINGLE
+ if ( _timer != null ) {
+ _timer . schedule ( new AutoSaveTimerTask ( ) , s_autoSavePeriod... | Don t reschedule a canceled timer |
<nb> public class AudioNode extends Node {
}
COMMENT
+ COMMENT
+ COMMENT
+ public void pause ( ) {
+ getRenderer ( ) . pauseSource ( this ) ;
+ }
+
+ COMMENT
COMMENT
COMMENT
public final void setChannel ( int channel ) { | added a pause method to AudioNode |
<nb> public class CreatePatchConfigurationPanel {
inclusionListener . run ( ) ;
final VcsConfiguration configuration = VcsConfiguration . getInstance ( myProject ) ;
- boolean turnOn = dvcsIsUsed || configuration . INCLUDE_TEXT_INTO_PATCH ;
- myIncludeBaseRevisionTextCheckBox . setSelected ( turnOn ) ;
+ my... | don t select include base revision checkbox by default remember the setting |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed some typos in the JavaDoc |
<nb> public class DistributedRegistryTest {
public final String name13 = STRING0 ;
@ distributed
- public static final String name14 = STRING1 ;
+ static final String name14 = STRING1 ;
}
private static class ParentClass implements ParentInterface { | Revert source formating |
<nb> class Generator {
throws JasperException {
if ( tagInfo . hasDynamicAttributes ( ) ) {
- out
- . printil ( STRING0 ) ;
+ out . printil ( STRING0 ) ;
}
SINGLE
<nb> class Generator {
out . print ( STRING1 ) ;
out . print ( attrInfos [ i ] . getName ( ) ) ;
out . println ( STRING2 ) ;
+ if... | For tag files also put attributes in the wrapped jspContext |
<nb> public abstract class ToolbarUpdater implements Activatable {
ToolbarUpdater updater = myUpdaterRef . get ( ) ;
if ( updater == null ) return ;
- if ( ! updater . myComponent . isShowing ( ) && ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
+ if ( ! updater . myComponent . isVisible (... | Fix broken hints toolbar doesn t calculate preferred sizes until shown |
<nb> public final class BatteryStatsHelper {
mStatsType ) ;
if ( bs . sumPower ( ) > NUMBER0 ) {
aggregateSippers ( bs , mBluetoothSippers , STRING0 ) ;
+ mUsageList . add ( bs ) ;
}
} | Bluetooth wasn t being included in usage list |
<nb> public class HibernatePersistentMethods extends AbstractPersistentMethods {
public HibernatePersistentMethods ( Class theClass , SessionFactory sessionFactory , ClassLoader classLoader )
throws IntrospectionException {
super ( theClass ) ;
+ SINGLE
addDynamicMethodInvocation ( new SavePersistentMethod ( ... | added additional persistent methods |
<nb> abstract class AbstractFileSystem extends org . apache . hadoop . fs . FileSystem {
throw new IOException ( e ) ;
}
- FileStatus ret = new FileStatus ( fileStatus . getLength ( ) , fileStatus . isFolder ( ) ,
+ return new FileStatus ( fileStatus . getLength ( ) , fileStatus . isFolder ( ) ,
BLOCK_REPLI... | SMALLFIX Removed redundant variable in AbstractFileSystem |
<nb> public class OptionsBruteForcePanel extends AbstractParamPanel {
}
private void refreshFileList ( ) {
+ String currentSelection = ( String ) defaultFileList . getSelectedItem ( ) ;
defaultFileList . removeAllItems ( ) ;
List < String > files = extension . getFileList ( ) ;
for ( String file : files )... | Add newly added files to the default file pulldown but keep previously selected item |
<nb> public class AssetFileTreeModel extends DefaultTreeModel implements TreeWillExpa
}
}
- public AssetFileTreeModel ( Window parent , AssetFile asset ) {
- super ( new DefaultMutableTreeNode ( asset . getSourceFile ( ) ) ) ;
-
- window = parent ;
-
- busyState ( ) ;
-
- try {
- addAsset ( root... | Removed obsolete constructor |
<nb> import NAMESPACE ;
public class AdminServiceBasicTest extends TestCase {
private static int NUM_RUNS = NUMBER0 ;
- private static int TEST_STREAM_KEYS_SIZE = NUMBER1 ;
+ private static int TEST_STREAM_KEYS_SIZE = NUMBER2 ;
private static String testStoreName = STRING0 ;
private static String storesXm... | Fixed failing testRecoverData |
<nb> public class ReplicaSetStatus {
}
- if ( best == null )
- return null ;
-
- return best . _addr ;
+ return ( best != null ) ? best . _addr : null ;
}
boolean hasServerUp ( ) { | simplified return statement and null check |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> import static NAMESPACE
COMMENT
public class ManagementClient {
+ private static final Logger logger = Logger . getLogger ( ManagementCli... | Add logging in Arquillian ManagementClient to log operation failure messages |
<nb> public final class UpgradeService {
} else {
SINGLE
if ( from < V3_7_4 ) {
- newVersionString ( changeLog , STRING0 , new String [ ] {
- STRING1 ,
+ newVersionString ( changeLog , STRING2 , new String [ ] {
+ STRING3 ,
+ STRING4 ,
+ STRING5 ,
+ STRING6 ,
+ STRING7 ,
+ STRING8 ,
+ STRING9 ... | Updated upgrade message |
<nb> public class AllEpisodesFragment extends Fragment {
@ override
public boolean onContextItemSelected ( MenuItem item ) {
+ Log . d ( TAG , STRING0 + STRING1 + item + STRING2 ) ;
if ( ! isVisible ( ) ) {
return false ;
}
+ if ( item . getItemId ( ) == R . id . share_item ) {
+ return true ; SINGLE ... | Fix context menu sharing |
<nb> public abstract class MavenTestCase extends UsefulTestCase {
try {
setUpInWriteAction ( ) ;
}
- catch ( Exception e ) {
+ catch ( Throwable e ) {
+ try {
+ tearDown ( ) ;
+ }
+ catch ( Exception e1 ) {
+ e1 . printStackTrace ( ) ;
+ }
throw new RuntimeException ( e ) ;
}
} | prevent maven test initialization failing to spoil the fixture for other tests |
<nb> public class DatabaseObjectComparator implements Comparator < DatabaseObject > {
int i = name1 . compareTo ( name2 ) ;
if ( i == NUMBER0 ) {
- return o1 . toString ( ) . compareTo ( o2 . toString ( ) ) ;
+ return StringUtils . trimToEmpty ( o1 . toString ( ) ) . compareTo ( StringUtils . trimToEmpty ( o2... | Catch null strings |
<nb> import NAMESPACE ;
import NAMESPACE ;
- @ dependsupon ( { DecoratorBarriers . ISSUES_ADDED , DecoratorBarriers . ISSUES_ADDED } )
- @ dependedupon ( { DecoratorBarriers . ISSUES_TRACKED , DecoratorBarriers . ISSUES_TRACKED } )
+ @ dependsupon ( DecoratorBarriers . ISSUES_ADDED )
+ @ dependedupon ( De... | Remove duplicated annotation values in IssueTrackingDecorator |
<nb> public class PostfixLiveTemplate implements CustomLiveTemplate {
@ override
public void expand ( @ notnull final String key , @ notnull final CustomTemplateCallback callback ) {
+ ApplicationManager . getApplication ( ) . assertIsDispatchThread ( ) ;
+
final PostfixTemplate template = myTemplates . get... | In order to avoid deadlock disable prefix calculation by postfixLiveTemplate in LiveTemplateCompletionContributor |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public abstract class PsiElementPattern < T extends PsiElement , Self extends PsiEle
} ) ;
}
+ public Self inVirtualFile ( @ notn... | restrict RHTML completion to RHTML file type |
<nb> public class PhotoViewerActivity extends SherlockFragmentActivity implements OnP
final int requestedPosition = intent . getIntExtra ( EXTRA_POSITION , NUMBER0 ) ;
if ( mAdapter . getCount ( ) > requestedPosition ) {
- if ( mViewPager . getCurrentItem ( ) != requestedPosition ) {
- mViewPager . setCurrent... | Remove some unclear code |
<nb> public class RecentsActivity extends Activity implements ViewTreeObserver . OnPreD
}
case KeyEvent . KEYCODE_DEL :
case KeyEvent . KEYCODE_FORWARD_DEL : {
- EventBus . getDefault ( ) . send ( new DismissFocusedTaskViewEvent ( ) ) ;
+ if ( event . getRepeatCount ( ) <= NUMBER0 ) {
+ EventBus . getDefaul... | Enforce single deletion per key press |
<nb> public class CommandLineLargeTest {
public void exitCodeForFailedMigration ( ) throws Exception {
String stdOut = runFlywayCommandLine ( NUMBER0 , STRING0 , STRING1 , STRING2 ) ;
assertTrue ( stdOut . contains ( STRING3 ) ) ;
- assertTrue ( stdOut . contains ( STRING4
- + STRING5
- + STRING6 ) ) ;
+ ... | Fixed broken test |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | fixed for license check |
<nb> public class PhotoView extends ImageView {
@ override
public void setScaleType ( ScaleType scaleType ) {
- mAttacher . setScaleType ( scaleType ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( null != mAttacher ) {
+ mAttacher . setScaleType ( scaleType ) ;
+ }
}
COMMENT | avoid NPE when scaletype is called in constructor of ImageView |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class OCamlIntegrationTest {
}
@ test
+ @ ignore ( STRING0 )
public void testPrebuiltLibraryMac ( ) throws IOException {
if ( Platform . detect ( ) == Platform... | Ignore test in OCamlIntegrationTest that depends on compiler platform specific binary artifacts |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TimeBasedRotationStrategy extends AbstractRotationStrategy {
return new DateTime ( newValue , DateTimeZone . UTC ) ;
}
- @ nonnull
+ @ n... | Fix wrong annotation in TimeBasedRotationStrategyConfig shouldRotate |
<nb> final class WifiDisplayController implements DumpUtils . Dump {
private static boolean isWifiDisplay ( WifiP2pDevice device ) {
SINGLE
- return device . deviceName . equals ( STRING0 ) ;
+ return false ;
+ SINGLE
SINGLE
SINGLE
SINGLE | Disable hardcoded wifi display adapter |
<nb> public interface NativeTestSuiteBinarySpec extends TestSuiteBinarySpec , NativeBi
COMMENT
COMMENT
COMMENT
- public interface TasksCollection extends BinaryTasksCollection {
+ interface TasksCollection extends BinaryTasksCollection {
COMMENT
COMMENT
COMMENT
<nb> public interface NativeTestSuiteBin... | Remove redundant public modifier |
<nb> public final class BridgeContext extends Context {
}
@ override
+ public Display getDisplay ( ) {
+ SINGLE
+ return null ;
+ }
+
+ @ override
public int getUserId ( ) {
return NUMBER0 ; SINGLE
} | Fix build due to missing abstract method impl |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
public class LightningStrikeEvent extends WeatherEvent implements Cancellable {
private boolean canceled ;
- private Entity bolt ;
+ private LightningStrike bo... | Changed LightningStrikeEvent to return a LightningStrike and not an Entity |
<nb> public class NamingContext implements EventContext {
private static final String PACKAGE_PREFIXES = STRING0 ;
+ static {
+ try {
+ NamingManager . setObjectFactoryBuilder ( ObjectFactoryBuilder . INSTANCE ) ;
+ } catch ( Throwable t ) {
+ log . warn ( STRING1 , t ) ;
+ }
+ }
+
COMMENT
COM... | Fix problem where object factory builder can only be set once |
<nb> public class POJOPropertyBuilder
COMMENT
COMMENT
+ @ deprecated SINGLE
+ @ override
+ public POJOPropertyBuilder withName ( String newName ) {
+ return withSimpleName ( newName ) ;
+ }
+
@ override
public POJOPropertyBuilder withName ( PropertyName newName ) {
return new POJOPropertyBuilder... | Restore covariant returns on BeanPropertyDefiniton subclasses |
<nb> public class PortletLocalServiceImpl implements PortletLocalService {
}
}
+ if ( ( portlet == null ) &&
+ ( ! portletId . equals ( PortletKeys . LIFERAY_PORTAL ) ) ) {
+
+ if ( _log . isErrorEnabled ( ) ) {
+ _log . error (
+ STRING0 + companyId + STRING1 + portletId ) ;
+ }
+ }
+
return ... | Add debugging information |
<nb> public abstract class DeserializationContext
SINGLE
return null ;
}
+
+ public AnnotationIntrospector getAnnotationIntrospector ( ) {
+ return _config . getAnnotationIntrospector ( ) ;
+ }
COMMENT
COMMENT
<nb> public abstract class DeserializationContext
return _config . getNodeFactory ( ) ... | Add DeserializationContext getAnnotationIntrospector convenience method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ; | Remove unused imports |
<nb> public class MailContentTypeResolverTest extends CamelTestSupport {
SINGLE
SINGLE
- boolean match1 = ( STRING0 ) . equals ( handler . getContentType ( ) ) ;
- boolean match2 = ( STRING1 ) . equals ( handler . getContentType ( ) ) ;
+ boolean match1 = STRING0 . equals ( handler . getContentType ( ) ) ; ... | Fixed CS errors of camel mail |
<nb> import static NAMESPACE
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MeasurementTest {
@ test
public void testSuccess ( ) throws Exception {
final MeasurementRequestStub reques... | Corrected netatmo test |
<nb> public class TestPerformance extends BaseTest {
int dfaSize = NUMBER0 ;
for ( DFA dfa : interpreter . decisionToDFA ) {
- if ( dfa != null && dfa . states != null ) {
+ if ( dfa != null ) {
dfaSize += dfa . states . size ( ) ;
}
}
<nb> public class TestPerformance extends BaseTest {
int dfaSi... | Remove unnecessary null checks |
<nb> public class AuthenticatorActivity extends AccountAuthenticatorActivity {
accManager . addAccountExplicitly ( account , password_text . getText ( ) . toString ( ) , null ) ;
SINGLE
- SharedPreferences appPreferences = PreferenceManager . getDefaultSharedPreferences ( this ) ;
- String defaultAccountName ... | Fixed a bug where the AuthenticatorActivity would not set a new default |
<nb> public class ElasticsearchConfiguration {
@ uripath @ metadata ( required = STRING0 )
private String clusterName ;
- @ uriparam ( enums = STRING1 ) @ metadata ( required = STRING0 )
+ @ uriparam ( enums = STRING2 ) @ metadata ( required = STRING0 )
private String operation ;
@ uriparam
private Stri... | Add Missing operations in Docs |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class LightPlatformTestCase extends UsefulTestCase implements Da
}
}
try {
- fail ( STRING0 + allEditors . length ) ... | Print disposable stack trace in case of unreleased editors |
<nb> public class WordPress extends Application {
if ( currentBlog != null && currentBlog . isHidden ( ) ) {
wpDB . setDotComBlogsVisibility ( id , true ) ;
+ currentBlog . setHidden ( false ) ;
}
} | Also set the in memory current Blog to visible |
<nb> public class RenameTo extends ShowSuggestions implements SpellCheckerQuickFix {
DataContext dataContext = SimpleDataContext . getSimpleContext ( map , DataManager . getInstance ( ) . getDataContext ( editor . getComponent ( ) ) ) ;
AnAction action = new RenameElementAction ( ) ;
+ final boolean hadSelectio... | reject selection after rename |
<nb> public class PermissionLocalServiceImpl implements PermissionLocalService {
start = System . currentTimeMillis ( ) ;
}
- if ( PermissionFinder . countByGroupsPermissions (
- permissions , groups ) > NUMBER0 ) {
+ if ( groups . size ( ) > NUMBER0 ) {
+ if ( PermissionFinder . countByGroupsPermissions ... | Fix bug in permission check where user doesn t belong to an org |
<nb> public class LocationTile extends QSTile < QSTile . BooleanState > {
@ override
protected void handleClick ( ) {
final boolean wasEnabled = ( Boolean ) mState . value ;
- final boolean changed = mController . setLocationEnabled ( ! wasEnabled ) ;
- if ( ! wasEnabled && changed ) {
- SINGLE
- SINGLE
... | Don t collapse the panel when turning location on |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class PropertiesComponentEndpointTest extends ContextTestSupport {
} ) ;
context . start ( ) ;
fail ( STRING0 ) ;
- } catch ( FailedToCreateRouteException ... | Route inputs should also resolve property placeholder during route prepare so its similar to the rest of the route |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GshExecutor extends ScriptExecutor
private static final String ENGINE_CLASS = STRING0 ;
@ override
+ protected String getDefaultPaths ( )
+ {
+ return super . getD... | Added a default path src main groovy |
<nb> public class UnicastSenderTest
assertThat ( eventTypeId , is ( NEW_SEND_BUFFER_NOTIFICATION ) ) ;
} ) ;
- advanceTimeMilliseconds ( NUMBER0 ) ; SINGLE
+ advanceTimeMilliseconds ( NUMBER1 ) ; SINGLE
- final SocketAddress address = receiverChannel . receive ( recvBuffer ) ;
+ SocketAddress address = ... | make setup test more strict by checking timing |
<nb> public class ParserTest extends EasyMockSupport {
@ test
public void whenBuildFileContainsSourcesUnderSymLinkNewSourcesNotAddedUntilCacheCleaned ( )
throws Exception {
+ SINGLE
+ assumeTrue ( Platform . detect ( ) != Platform . WINDOWS ) ;
+
Parser parser = createParser ( emptyBuildTargets ( ) ) ;
... | Skip tests in ParserTest that create symlinks on Windows |
<nb> 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 ;
<nb> public abstract class JournalForm... | Add MergeStore to journal test |
<nb> public final class BatchUpdateResponseBuilder implements RestLiResponseBuilder
STRING0
+ routingResult . getResourceMethod ( ) ) ;
}
- SINGLE
- if ( results . containsKey ( null ) )
- {
- throw new RestLiServiceException ( HttpStatus . S_500_INTERNAL_SERVER_ERROR ,
- STRING1
- + routingResult . g... | Removed incorrect merge |
<nb> public class PlanGenerator {
if ( backEdgeNarrative == null ) {
SINGLE
leg = makeLeg ( nextState ) ;
+ leg . mode = mode . toString ( ) ; SINGLE
itinerary . addLeg ( leg ) ;
if ( mode . isOnStreetNonTransit ( ) ) {
startWalk = i ; | set mode for initial leg |
<nb> public class RosterTest extends SmackTestCase {
roster . createEntry ( getBareJID ( NUMBER0 ) , STRING0 , new String [ ] { STRING1 } ) ;
SINGLE
- while ( roster . getEntryCount ( ) != NUMBER0 ) {
+ long initial = System . currentTimeMillis ( ) ;
+ while ( System . currentTimeMillis ( ) - initial < NUMB... | Fixed potential endless loop |
<nb> public class UsageMessageFormatter {
buildWrapped ( builder , STRING0 + cli . getDescription ( ) ) ;
}
builder . append ( STRING0 ) ;
+ builder . append ( STRING1 ) ;
computeOptionsAndArguments ( builder , cli . getOptions ( ) , cli . getArguments ( ) ) ;
} | Improve the usage output |
<nb> public class UsbManager {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public UsbDeviceConnection openDevice ( UsbDevice device ) {
try { | Fix typo in UsbManager javadoc |
<nb> public class TransactorRoundRobin extends TransactorSimple {
int minSimilar = Integer . MAX_VALUE ;
int minSlot = - NUMBER0 ;
- for ( int j = NUMBER1 ; j < inventory . getSizeInventory ( ) && minSlot > NUMBER0 ; ++ j ) {
+ for ( int j = NUMBER1 ; j < inventory . getSizeInventory ( ) && minSimilar > NUMBE... | fixed wrong variable in condition |
<nb> public class NotificationUtils {
if ( tweets . size ( ) == NUMBER0 ) {
makeFavsNotificationToActivity ( tweets , context ) ;
} else {
- makeFavsNotification ( tweets , context , true ) ;
+ AppSettings settings = AppSettings . getInstance ( context ) ;
+ makeFavsNotification ( tweets , context , setting... | Fix Favorite user notifications opening to interaction drawer |
<nb> public class EclipseHandlerUtil {
if ( isPrimitive ( variable . type ) ) return null ;
AllocationExpression exception = new AllocationExpression ( ) ;
setGeneratedBy ( exception , source ) ;
- int partCount = NUMBER0 ;
+ int partCount = NUMBER1 ;
String exceptionTypeStr = exceptionType . getExceptionTy... | Fix a trivial bug in generateNullCheck |
<nb> public class Main {
SINGLE
System . out . println (
- STRING0
+ STRING1
+ STRING2 ) ;
} | skip put new github page project url |
<nb> public class EnumElementType extends ObjectType {
@ override
JSType resolveInternal ( ErrorReporter t , StaticScope < JSType > scope ) {
primitiveType = primitiveType . resolve ( t , scope ) ;
- primitiveObjectType =
- ( ObjectType ) safeResolve ( primitiveObjectType , t , scope ) ;
+ primitiveObjectTy... | fix a bad cast |
<nb> public class FeatureSuiteTest
public static class CostInterpreted
{
}
-
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
} | Remove commented out compiled runtime |
<nb> public class HttpRemoteTask
Duration timeSinceLastSuccess = Duration . nanosSince ( lastSuccessfulRequest . get ( ) ) ;
if ( errorCount > maxConsecutiveErrorCount && timeSinceLastSuccess . compareTo ( minErrorDuration ) > NUMBER0 ) {
SINGLE
- PrestoException exception = new PrestoException ( TOO_MANY_REQUE... | Improve too many failures error message |
<nb> public class ForgeChunkManager
{
return ;
}
- for ( ChunkCoordIntPair chunk : ticket . requestedChunks )
+ if ( ticket . requestedChunks != null )
{
- unforceChunk ( ticket , chunk ) ;
+ for ( ChunkCoordIntPair chunk : ticket . requestedChunks )
+ {
+ unforceChunk ( ticket , chunk ) ;
+ }
}... | Fix NPE in ForgeChunkManager |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- public class ToggleShowIndentLinesGloballyAction extends ToggleAction {
+ public class ToggleShowIndentLinesGloballyAction extends ToggleAction implements DumbAware {
@ override
... | Make toggle indent lines guide and toggle line numbers dumb aware |
<nb> public abstract class AMaterial {
public void setViewMatrix ( float [ ] viewMatrix ) {
mViewMatrix = viewMatrix ;
- if ( checkValidHandle ( muMMatrixHandle , null ) )
+ if ( checkValidHandle ( muVMatrixHandle , null ) )
GLES20 . glUniformMatrix4fv ( muVMatrixHandle , NUMBER0 , false , viewMatrix , NUMB... | Fix typo in matrix handle validity check |
<nb> public class ExternalGroovyClassDoc implements GroovyClassDoc {
return false ;
}
+ public boolean isDeprecated ( ) {
+ return false ;
+ }
+
public boolean isEnum ( ) {
return false ;
} | Add the missing non implemented method which is breaking trunk |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class KeyValueStoreOperations implements Callable < Boolean > {
TachyonConf tachyonConf = ClientContext . getConf ( ) ;
tac... | Remove unneeded reset |
<nb> public class Skin implements Disposable {
try {
add ( valueEntry . name ( ) , object , addType ) ;
} catch ( Exception ex ) {
- throw new SerializationException ( STRING0 + type . getSimpleName ( ) + STRING1 + valueEntry . name ( ) , ex ) ;
+ throw new SerializationException ( STRING0 + type . getName ( ... | Fixed skin in GWT again |
<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 ;
im... | Remove unused imports |
<nb> public final class GeofenceHardwareImpl {
boolean available = false ;
if ( status == GeofenceHardware . GPS_GEOFENCE_AVAILABLE ) available = true ;
- int val = ( available ? GeofenceHardware . MONITOR_CURRENTLY_UNAVAILABLE :
- GeofenceHardware . MONITOR_CURRENTLY_AVAILABLE ) ;
+ int val = ( available ?... | Passed the correct gps geofence availability value to client |
<nb> public class StaticTypesCallSiteWriter extends CallSiteWriter implements Opcodes
}
SINGLE
throw new GroovyBugError (
+ STRING0 + receiver . getLineNumber ( ) + STRING1 + receiver . getColumnNumber ( ) + STRING2 +
STRING3 + receiver . getText ( ) + STRING4 + message + STRING5 + arguments . getText ( ) + S... | Add extra line column info when an error is generated due to a lack of implementation |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.