diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class Partition implements Serializable {
public void setOutputFormatClass ( Class < ? extends HiveOutputFormat > outputFormatClass ) {
this . outputFormatClass = outputFormatClass ;
tPartition . getSd ( ) . setOutputFormat ( HiveFileFormatUtils
- . getOutputFormatSubstitute ( outputFormatClass ) . ... | Fix Partition setOutputFormatClass to set class name properly Rajat Khandelwal reviewed by Amareshwari |
<nb> public class OracleTableManager extends SQLTableManager < OracleTable , OracleSchem
return new DBEPersistAction [ ] {
new SQLDatabasePersistAction (
STRING0 ,
- STRING1 + command . getObject ( ) . getFullQualifiedName ( ) + SINGLE
+ STRING2 + command . getObject ( ) . getFullQualifiedName ( ) + SINGLE
... | Oracle table rename fix |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class BackendException extends SystemException {
public String getSqlState ( ) {
return sqlState ;
}
+ ... | Improved the message of BackendException |
<nb> public class SpringPlugin implements LoadtimeInstrumentationPlugin , ReloadEventP
. println ( STRING0 + clazz . getName ( ) + STRING1 + o ) ;
}
} catch ( Exception e ) {
- e . printStackTrace ( ) ;
+ if ( GlobalConfiguration . debugplugins ) {
+ e . printStackTrace ( ) ;
+ }
}
}
} | only print stacktrace if debugplugins is enabled |
<nb> public class CLIModelControllerClient extends AbstractModelControllerClient {
@ override
public void close ( ) throws IOException {
+ if ( closed ) {
+ return ;
+ }
synchronized ( lock ) {
if ( closed ) {
return ;
<nb> public class CLIModelControllerClient extends AbstractModelControllerClient ... | fixed a possible deadlock when closing the controller client |
<nb> public class VcsLogHashMapImpl implements Disposable , VcsLogHashMap {
IOUtil . deleteAllFilesStartingWith ( new File ( LOG_CACHE_APP_DIR , logId ) ) ;
}
- Disposer . register ( project , this ) ;
myPersistentEnumerator = IOUtil . openCleanOrResetBroken ( new ThrowableComputable < PersistentEnumerator < ... | vcs log register disposer after creating pe |
<nb> public final class MtpDevice {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public int [ ] getObjectHandles ( int storageId , int format , int objectHandle ) { | Fix API doc of MtpDevice getObjectHandles |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
+ @ runwith ( JUnit4 . class )
public final class PrimitiveInjectionTest {
static class ArrayInjectable {
@ inject byte [ ] byteArray ; | Add JUnit runner |
<nb> public class SettingsDialog extends DialogWrapper implements DataProvider {
if ( reset != null && myResetButtonNeeded ) {
actions . add ( reset ) ;
}
- actions . add ( getHelpAction ( ) ) ;
+ String topic = myEditor . getHelpTopic ( ) ;
+ if ( topic != null ) {
+ actions . add ( getHelpAction ( ) ) ;... | hide help action if help topic is not provided |
<nb> public class MysqlConnection implements ErosaConnection {
COMMENT
public void seek ( String binlogfilename , Long binlogPosition , SinkFunction func ) throws IOException {
updateSettings ( ) ;
-
+ loadBinlogChecksum ( ) ;
sendBinlogDump ( binlogfilename , binlogPosition ) ;
DirectLogFetcher fetcher =... | seek method also need load checksum |
<nb> public class MovieController extends BaseUiController < MovieController . MovieUi ,
public ListItem . SectionTitle getSectionTitle ( ) {
switch ( this ) {
case UPCOMING :
- return ListItem . SectionTitle . RELATED ;
+ return ListItem . SectionTitle . UPCOMING ;
case SOON :
return ListItem . SectionTi... | Fix sections in watchlist |
<nb> public class QueryProcessor
else
{
columnDef = new ColumnDefinition ( columnName ,
- null ,
+ DatabaseDescriptor . getValueValidator ( keyspace ,
+ createIdx . getColumnFamily ( ) ,
+ columnName ) ,
org . apache . cassandra . thrift . IndexType . KEYS ,
createIdx . getIndexName ( ) ) ;
} | retain default validation when creating indexes |
<nb> public class PreferencesActivity extends SherlockPreferenceActivity {
SINGLE
Preference addBlogPreference = new Preference ( this ) ;
- addBlogPreference . setTitle ( R . string . add_blog ) ;
+ addBlogPreference . setTitle ( R . string . add_self_hosted_blog ) ;
Intent intent = new Intent ( this , Wel... | Add self hosted blog only |
<nb> public abstract class ObjectiveCSourceFileGenerator extends SourceFileGenerator
for ( Iterator < SingleVariableDeclaration > iter = function . getParameters ( ) . iterator ( ) ;
iter . hasNext ( ) ; ) {
IVariableBinding var = iter . next ( ) . getVariableBinding ( ) ;
- String paramType = NameTable . getOb... | Fix function signatures with generic types to declare the known bound on the parameter types |
<nb> public class TaskViewService implements TaskFactory {
for ( final String pluginId : PluggableTaskConfigStore . store ( ) . pluginsWithPreference ( ) ) {
GoPluginDescriptor pluginDescriptor = pluginManager . getPluginDescriptorFor ( pluginId ) ;
TaskPreference taskPreference = PluggableTaskConfigStore . store... | Added a check to avoid NullPointerException |
<nb>
SINGLE
SINGLE
SINGLE
+ SINGLE
+
package NAMESPACE ;
import NAMESPACE ;
<nb> public class ExtensionLoader {
}
hookOptions ( extHook ) ;
getExtension ( i ) . optionsLoaded ( ) ;
- } catch ( Exception e ) {
+ } catch ( Throwable e ) {
+ SINGLE
logger . error ( e . getMessage ( ) , e ) ... | Catch Errors thrown by out of date extensions as well as Exceptions |
<nb> public class XMLRPCClient {
SINGLE
int bomCheck = is . read ( ) ;
- while ( bomCheck != NUMBER0 ) {
+ int i = NUMBER1 ;
+ SINGLE
+ while ( bomCheck != NUMBER0 && i <= NUMBER2 ) {
bomCheck = is . read ( ) ;
+ i ++ ;
}
is . unread ( bomCheck ) ; | added limit to BOM remover |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileBasedIndex implements ApplicationComponent {
public void before ( List < ? extends VFileEvent > events ) {
for ( VFileEvent event : event... | revised condition for memory cleanup |
<nb> public class GameRegistry
blockRegistry . put ( Loader . instance ( ) . activeModContainer ( ) , ( BlockProxy ) block ) ;
}
- public static IRecipe addRecipe ( ItemStack output , Object . . . params )
+ public static void addRecipe ( ItemStack output , Object . . . params )
+ {
+ addShapedRecipe ( ou... | Fix breaking change |
<nb> public class NodeScheduler
SINGLE
List < Node > nodes = selectNodes ( nodeMap . get ( ) , split , NUMBER0 ) ;
- if ( nodes . isEmpty ( ) ) {
- System . out . println ( STRING0 ) ;
- }
+ Preconditions . checkState ( ! nodes . isEmpty ( ) , STRING1 ) ;
+
SINGLE
Node chosen = Ordering . from ( nod... | Generate better error message if nodes are unavailable |
<nb> public class TestAllInPackage2 extends TestSuite {
private static boolean skipSuite ( Set allNames , Test suite ) {
if ( suite instanceof TestRunnerUtil . SuiteMethodWrapper ) {
final Test test = ( ( TestRunnerUtil . SuiteMethodWrapper ) suite ) . getSuite ( ) ;
+ final String currentSuiteName = ( ( TestRu... | do not exclude self suite if it inherits TestCase the same time |
<nb> public class ChunkedGELFClientHandler extends GELFClientHandlerBase implements G
SINGLE
m . insertGelfMessage ( message ) ;
- SINGLE
+ SINGLE
ReceiveHookManager . postProcess ( new MessageCounterHook ( ) ) ;
} catch ( Exception e ) {
Log . warn ( STRING0 + e . toString ( ) ) ;
<nb> public class S... | Remove RRD tests |
<nb> public class RaptorWorkerData implements Serializable {
continue ;
timetablesForPattern . add ( timetable ) ;
+ timetable . raptorData = this ;
SINGLE | set raptordata on added trip patterns |
<nb> public class Message extends AbstractEntity {
boolean encrypted = ref != null && ref . matches ( STRING0 ) ;
if ( encrypted ) {
- if ( MimeUtils . guessMimeTypeFromExtension ( extension ) != null ) {
- return Decision . MUST ;
- } else {
- return Decision . NEVER ;
- }
+ return Decision . MUST ; ... | always show download button when link is encrypted |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class BuildRules {
<nb> public class BuildRules {
return buildRules . build ( ) ;
}
+
+ public static Multimap < String , BuildRule > buildRulesByTargetBasePat... | Add buildRulesByTargetBasePath helper |
<nb> public class FontEditorPreview implements PreviewPanel {
ApplicationNamesInfo . getInstance ( ) . getFullProductName ( ) +
STRING0 +
STRING1 +
- STRING2 ;
+ STRING2 +
+ STRING3 +
+ STRING4 +
+ STRING5 ;
}
static void installTrafficLights ( EditorEx editor ) { | provide meaningful text sample |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public abstract class Function < TYPE > extends Field < TYPE > {
protected abstract void appendFunctionExpression ( SqlBuilder builder , boolean forSqlValidation ) ;
+ @ override
+ public String getExpression... | Throw an exception by default when calling Function getExpression since function expressions require a VersionCode for context |
<nb> public class MapStoreEvictionTest extends HazelcastTestSupport {
HazelcastInstance hz = nodeFactory . newInstances ( cfg ) [ NUMBER0 ] ;
assertClusterSizeEventually ( NODE_COUNT , hz ) ;
IMap < Object , Object > map = hz . getMap ( mapName ) ;
- waitAllForSafeState ( ) ;
+ waitAllForSafeState ( hz ) ;
... | wait safe state for specific node only |
<nb> public class KeymapImpl implements Keymap {
buf . append ( ALT ) ;
buf . append ( STRING0 ) ;
}
+ if ( ( modifiers & InputEvent . ALT_GRAPH_MASK ) != NUMBER0 ) {
+ buf . append ( ALT_GRAPH ) ;
+ buf . append ( STRING0 ) ;
+ }
buf . append ( ourNamesForKeycodes . get ( new Integer ( keyStroke . ge... | Fixed altGraph modifier persistence problem in keymaps |
<nb> public abstract class AbstractDynamicStore extends CommonAbstractStore
}
}
- public Collection < DynamicRecord > allocateRecords ( long startBlock ,
+ protected Collection < DynamicRecord > allocateRecords ( long startBlock ,
byte src [ ] )
{
assert getFileChannel ( ) != null : STRING0 ;
<nb> imp... | Enabled a test which was disabled by mistake |
<nb> public class RequestServer extends NanoHTTPD {
static {
SINGLE
- addToNavbar ( register ( STRING0 , STRING1 , CreateFrameHandler . class , STRING2 , STRING3 ) , STRING4 , STRING5 , STRING6 ) ;
+ addToNavbar ( register ( STRING0 , STRING7 , CreateFrameHandler . class , STRING2 , STRING3 ) , STRING4 , STRI... | Undo merge fail that reverted CreateFrame to GET |
<nb> public class DraweeHolder < DH extends DraweeHierarchy > implements VisibilityCallb
mEventTracker . recordEvent ( Event . ON_SET_HIERARCHY ) ;
setVisibilityCallback ( null ) ;
mHierarchy = Preconditions . checkNotNull ( hierarchy ) ;
- onVisibilityChange ( mHierarchy . getTopLevelDrawable ( ) . isVisible (... | Added null check for drawee in DraweeHolder |
<nb> import NAMESPACE ;
@ channelpipelinecoverage ( STRING0 )
public class IdlenessHandler extends SimpleChannelUpstreamHandler implements LifeCycleAwareChannelHandler , ExternalResourceReleasable {
- static final ReadTimeoutException EXCEPTION = new ReadTimeoutException ( ) ;
-
final Timer timer ;
fina... | Removed unused field |
<nb> public class DiscoveryClient implements EurekaClient {
@ inject ( optional = true )
private Provider < HealthCheckHandler > healthCheckHandlerProvider ;
- public EventBus getEventBus ( ) {
- return eventBus ;
- }
+ public DiscoveryClientOptionalArgs ( ) { }
- public void setEventBus ( EventBus ev... | simplified DiscoveryClientOptionalArgs made VERSION private |
<nb> public class GoCompletionContributor extends CompletionContributor implements Du
for ( String name : StubIndex . getInstance ( ) . getAllKeys ( GoTypesIndex . KEY , project ) ) {
if ( StringUtil . isCapitalized ( name ) ) {
for ( GoTypeSpec declaration : GoTypesIndex . find ( name , project , GlobalSearchSco... | Do not complete auto import types from current file |
<nb> public class Http11Processor extends AbstractHttp11Processor < Socket > {
socketWrapper . setKeepAliveLeft ( NUMBER0 ) ;
}
- try {
- socket . getSocket ( ) . setSoTimeout ( soTimeout ) ;
- } catch ( Throwable t ) {
- ExceptionUtils . handleThrowable ( t ) ;
- log . debug ( sm . getString ( STRING0 ... | Remove unnecessary code |
<nb> public class DependencyParser {
return parser ;
}
- SINGLE
private void loadModelFile ( String modelFile ) {
try {
System . err . println ( CONST . SEPARATOR ) ; | Remove incorrect TODO |
<nb>
COMMENT
package NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPA... | Fix the merge results |
<nb> public class InjectMoreThanOneInjectableConstructorNegativeCases {
public TestClass4 ( int n ) { }
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ @ suppresswarnings ( STRING0 )
+ public class TestClass5 {
+ @ inject
+ public TestClass5 ( ) { }
+
+ @ inject
+ public TestClass5 ( int n ) { }
+ }
... | added suppression test and removed extra space |
<nb> public class HttpSession extends ClientSession {
boolean delivered = false ;
for ( HttpConnection connection : connectionQueue ) {
try {
- if ( connection . getRequestId ( ) == lastRequestID + NUMBER0 ) {
+ if ( connection . getRequestId ( ) <= lastRequestID + NUMBER0 ) {
deliver ( connection , deliver... | Fixed request id check |
<nb> public class ActionToolbarImpl extends JPanel implements ActionToolbar {
@ override
public void updateActionsImmediately ( ) {
ApplicationManager . getApplication ( ) . assertIsDispatchThread ( ) ;
+ myPresentationFactory . reset ( ) ;
updateActions ( true , false , false ) ;
} | reset presentations cache on toolbar refresh |
<nb> public class UnderStoreBlockInStreamTest {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
private void singleByteReadInternal ( UnderStoreBlockInStream inStream , int startIndex )
throws IOException { | Fix whitespace in javadoc |
<nb> public class LinkedDataSailGraph extends SailGraph {
try {
Ripple . initialize ( ) ;
final Sail sail = new LinkedDataSail ( storageGraph . getRawGraph ( ) , new URIMap ( ) ) ;
+ sail . initialize ( ) ;
this . startSail ( sail ) ;
} catch ( Exception e ) {
throw new RuntimeException ( e . getMessage (... | updated LinkedDataSail initialization error issue |
<nb> public class HiddenFieldCheck
final String name = nameAST . getText ( ) ;
Iterator it = mFieldsStack . iterator ( ) ;
while ( it . hasNext ( ) ) {
- final HashSet aFieldsSet = ( HashSet ) it . next ( ) ;
+ final HashSet aFieldsSet = ( HashSet ) it . next ( ) ;
if ( aFieldsSet . contains ( name ) ) {
... | Fix checkstyle error |
<nb> public class JDBCSessionManager extends AbstractSessionManager
@ override
public void setAttribute ( String name , Object value )
{
- _dirty = updateAttribute ( name , value ) ;
+ _dirty = ( updateAttribute ( name , value ) || _dirty ) ;
}
@ override | JDBCSessionManager doesn t determine dirty state correctly |
<nb> public class OkHttpDownloader implements Downloader {
return connection ;
}
+ protected OkHttpClient getClient ( ) {
+ return client ;
+ }
+
@ override public Response load ( Uri uri , boolean localCacheOnly ) throws IOException {
HttpURLConnection connection = openConnection ( uri ) ;
connecti... | Modified the accessibility of the OkHttpClient for subclasses |
<nb> public class GenerateQualityGateEvents implements Decorator {
List < Measure > measures = timeMachine . getMeasures ( query ) ;
Measure pastStatus = measures != null && measures . size ( ) == NUMBER0 ? measures . get ( NUMBER1 ) : null ;
+ checkQualityGateStatusChange ( resource , context , currentStatus ,... | Fix quality flaw |
<nb> final class RGBMonochromeBitmapSource implements MonochromeBitmapSource {
SINGLE
SINGLE
SINGLE
- if ( lastMethod == BlackPointEstimationMethod . ROW_SAMPLING ) {
+ if ( lastMethod . equals ( BlackPointEstimationMethod . ROW_SAMPLING ) ) {
int left = computeRGBLuminance ( pixelRow [ NUMBER0 ] ) ;
int ... | Fix bad logic black point estimator improving threshold estimation performance and adjust some to |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | fixed cs issues |
<nb> import static NAMESPACE ;
public class MainActivity extends ActionBarActivity {
private static final int REQUEST_CHECK_SETTINGS = NUMBER0 ;
-
+ private final String TAG = getClass ( ) . getSimpleName ( ) ;
private ReactiveLocationProvider locationProvider ;
private TextView lastKnownLocationView ; ... | fixed wrong comments in Log |
<nb> public class Http2UpgradeHandler extends AbstractStream implements InternalHttpU
private static final byte [ ] PING = { NUMBER0 , NUMBER0 , NUMBER1 , NUMBER2 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 } ;
private static final byte [ ] PING_ACK = { NUMBER0 , NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER... | Remove unused code |
<nb> public final class Debug
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static class MemoryInfo implements Parcelable {
COMMENT | Fixed grammar in the comment that introduces the Debug MemoryInfo class |
<nb> public abstract class ValueDescriptorImpl extends NodeDescriptorImpl implements
public void setAncestor ( NodeDescriptor oldDescriptor ) {
super . setAncestor ( oldDescriptor ) ;
myIsNew = false ;
- ValueDescriptorImpl other = ( ValueDescriptorImpl ) oldDescriptor ;
- if ( other . myValueReady ) {
- my... | fixed incorrect update of slot variables while stepping |
<nb> public abstract class BaseResourceSetting {
return text ;
}
- public boolean hasText ( ) {
- return text != null ;
- }
-
public FileContainer getFile ( ) {
return file ;
}
- public boolean hasFile ( ) {
- return file != null ;
- }
-
public TextContainer getPathResource ( ) {
retur... | removed unused methods from base resource setting |
<nb> public class WebView extends AbsoluteLayout
super . onDetachedFromWindow ( ) ;
}
+ @ override
+ protected void onVisibilityChanged ( View changedView , int visibility ) {
+ super . onVisibilityChanged ( changedView , visibility ) ;
+ if ( visibility != View . VISIBLE ) {
+ dismissZoomControl ( ) ; ... | Hide zoom buttons when a view gets hidden i e by a TabHost |
<nb> public interface ChannelOutboundHandler extends ChannelHandler {
COMMENT
COMMENT
COMMENT
+ @ deprecated
void deregister ( ChannelHandlerContext ctx , ChannelPromise promise ) throws Exception ;
COMMENT | Deprecated ChannelOutboundHandler deregister |
<nb> abstract class AbstractContextLoaderUtilsTests {
assertNotNull ( mergedConfig . getClasses ( ) ) ;
assertArrayEquals ( expectedClasses , mergedConfig . getClasses ( ) ) ;
assertNotNull ( mergedConfig . getActiveProfiles ( ) ) ;
- System . err . println ( expectedContextLoaderClass ) ;
if ( expectedContex... | Delete call to System err in AbstractContextLoaderUtilsTests |
<nb> public @ interface ReportsCrashes {
COMMENT
COMMENT
COMMENT
- int resNotifIcon ( ) default NUMBER0 ;
+ int resNotifIcon ( ) default android . R . drawable . stat_notify_error ;
COMMENT
COMMENT
COMMENT | Add default value for status bar notification icon |
<nb> public class CRUDObjectInheritanceTest extends ObjectDBBaseTest {
OClass klass1 = database . getMetadata ( ) . getSchema ( ) . createClass ( STRING0 , klass ) ;
Assert . assertEquals ( NUMBER0 , klass1 . getSuperClasses ( ) . size ( ) , NUMBER0 ) ;
- Assert . assertEquals ( NUMBER0 , klass1 . getSuperClass... | fixed wrong assert in class keyword test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileSystemMaster extends MasterBase {
COMMENT
private boolean isInMemory ( BlockInfo blockInfo ) {
for ( BlockLocation location : blockInfo ... | Fixed isInMemory calculation |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PackagesPane extends WorkbenchPane implements Packages . Display
} ,
STRING0 ) ;
packagesTable_ . addColumn ( removeColumn ) ;
+ packages... | increase width of packages remove column for mountain lion transient scrollbars |
<nb> public class C8Chunk extends Chunk {
@ override boolean set_impl ( int i , float f ) { return false ; }
@ override boolean setNA_impl ( int idx ) { UnsafeUtils . set8 ( _mem , ( idx < < NUMBER0 ) , _NA ) ; return true ; }
@ override NewChunk inflate_impl ( NewChunk nc ) {
- SINGLE
- nc . alloc_doubles ( ... | Fix C8Chunk was allocating extra array and couldn t handle NA |
<nb> public class ServerPluginJarsInstallerTest {
@ before
public void before ( ) throws IOException {
when ( server . getVersion ( ) ) . thenReturn ( STRING0 ) ;
+ when ( server . getDeployDir ( ) ) . thenReturn ( temp . newFolder ( STRING1 ) ) ;
+
homeDir = temp . newFolder ( STRING2 ) ;
pluginsDir = ne... | Fix unit test that were generated files not in a temp dir |
<nb> public class ReviewPresenter implements IsWidget
if ( ( item . getStatus ( ) . charAt ( NUMBER0 ) == STRING0 || item . getStatus ( ) . charAt ( NUMBER0 ) == STRING1 )
&& view_ . getStagedCheckBox ( ) . getValue ( ) )
{
- view_ . getUnstagedCheckBox ( ) . setValue ( true , false ) ;
+ view_ . getUnstagedC... | Make sure Stage All Discard All Unstage All buttons are managed during automatic mode switch |
<nb> public class Config {
private File configurationFile ;
+ private ConfigBuilder configBuilder ;
+
private Config ( ) {
String configFile = System . getProperty ( STRING0 ) ;
InputStream in = null ;
<nb> public class Config {
}
SINGLE
- new XmlConfigBuilder ( in ) . parse ( this ) ;
+ con... | Extracted interface ConfigBuilder from XmlConfigBuilder |
<nb> public class Source implements InsertSourceHandler ,
}
} ;
- if ( event . getFile ( ) . getLength ( ) < NUMBER0 )
+ SINGLE
+ if ( event . getFile ( ) != null && event . getFile ( ) . getLength ( ) < NUMBER0 )
{
SINGLE
SINGLE | Can t create new source docs other than |
<nb> public class Wallpaper extends GLWallpaperService {
super . onCreate ( surfaceHolder ) ;
setTouchEventsEnabled ( true ) ;
}
-
- @ override
- public void onDestroy ( ) {
- setTouchEventsEnabled ( false ) ;
- super . onDestroy ( ) ;
- renderer . onSurfaceDestroyed ( ) ;
- renderer = null ;
- } ... | Fix freeze after selecting Set Wallpaper |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StartupManagerImpl extends StartupManagerEx implements ProjectCompo
public void projectOpened ( ) {
}
+ @ notnull
public String getCompo... | StartupManager surround activity action with Throwable instead of Exception |
<nb> public final class Calendar {
COMMENT
COMMENT
public static final Uri CONTENT_URI = Uri . parse ( STRING0 ) ;
+ public static final Uri CONTENT_BY_DAY_URI =
+ Uri . parse ( STRING1 ) ;
COMMENT
COMMENT | Added URI for querying event instances by day in addition to by time millis |
<nb> public abstract class AbstractVcsAction extends AsyncUpdateAction < VcsContext > {
}
protected VcsContext prepareDataFromContext ( final AnActionEvent e ) {
- return VcsContextWrapper . createCachedInstanceOn ( e ) ;
+ return forceSyncUpdate ( e ) ? VcsContextWrapper . createInstanceOn ( e ) : VcsContext... | don t create cached context for synchronous update of VCS actions |
<nb> public class TestEntitlementDateHelper extends EntitlementTestSuiteNoDB {
Assert . assertEquals ( targetDate , expectedDate ) ;
}
+
+
+ @ test ( groups = STRING0 )
+ public void testWithAccountInUtcPlus5 ( ) throws EntitlementApiException {
+
+ final LocalDate inputDate = new LocalDate ( NUMBER0 ... | Add more tests for DateTime LocalDate transformation |
<nb> public class ApOkHttpUrlLoader implements ModelLoader < String , InputStream > {
public DataFetcher < InputStream > getResourceFetcher ( String model , int width , int height ) {
Log . d ( TAG , STRING0 + STRING1 + model + STRING2
+ width + STRING3 + height + STRING4 ) ;
- if ( model . startsWith ( STRING5... | Prevent crash when image url is empty string |
<nb> public class Execution {
for ( int i = NUMBER0 ; i < classes . length ; ++ i ) {
assert instances [ i ] . getClass ( ) == classes [ i ] ;
class2object . put ( classes [ i ] , instances [ i ] ) ;
+ Class < ? > mySuper = instances [ i ] . getClass ( ) . getSuperclass ( ) ;
+ while ( mySuper != null && ! my... | Maybe fix Execution to allow abstract classes |
<nb> public final class SessionImpl
log . tracef ( STRING0 , successful , delayed ) ;
if ( ! isClosed ( ) ) {
- if ( ! successful && autoClear ) {
- clear ( ) ;
+ if ( autoClear ) {
+ internalClear ( ) ;
}
} | Fix error causing ClearEventListenerTest failure |
<nb> public class TribeIT extends ESIntegTestCase {
@ beforeclass
public static void setupSecondCluster ( ) throws Exception {
ESIntegTestCase . beforeClass ( ) ;
+ NodeConfigurationSource nodeConfigurationSource = new NodeConfigurationSource ( ) {
+ @ override
+ public Settings nodeSettings ( int nodeOrdin... | don t run the second cluster with http enabled |
<nb> public class PApplet extends Applet
SINGLE
SINGLE
- pmouseX = mouseX ;
- pmouseY = mouseY ;
-
SINGLE
frame ++ ;
}
<nb> public class PApplet extends Applet
COMMENT
COMMENT
protected void handleMouseEvent ( MouseEvent event ) {
+ pmouseX = mouseX ;
+ pmouseY = mouseY ;
+
mouseX = ev... | fixed pmouseX pmouseY problems |
<nb> public class RecyclerViewSwipeManager implements SwipeableItemConstants {
COMMENT
COMMENT
public void release ( ) {
+ cancelSwipe ( true ) ;
+
if ( mHandler != null ) {
mHandler . release ( ) ;
mHandler = null ; | Call cancelSwipe true when in RecyclerViewSwipeManager release |
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public abstract class AbstractBasicNearCacheTest < NK , NV > extends HazelcastTestSu
SING... | Remove test check on heap size when dealing with Native |
<nb> public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
GLOBAL_CLUSTER = new ExternalTestCluster ( transportAddresses ) ;
} else {
long masterSeed = SeedUtils . parseSeed ( RandomizedContext . current ( ) . getRunnerSeedAsString ( ) ) ;
- GLOBAL_CLUSTER = new TestCluster ( masterSe... | TEST Added backwards compatibility check to control whether to enable client nodes or not within TestCluster |
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
public abstract class AbstractCompatibilityTestRunner extends AbstractMultiTestRunner {
private static fin... | Removed unused field |
<nb> public class RatpackVersion {
}
try {
- return Resources . toString ( resource , CharsetUtil . UTF_8 ) ;
+ return Resources . toString ( resource , CharsetUtil . UTF_8 ) . trim ( ) ;
} catch ( Exception e ) {
throw uncheck ( e ) ;
} | Fix a place that was sensitive to whitespace in ratpack version txt to match other usages |
<nb> public class AppIdleController extends StateController
@ override
public void dumpControllerState ( PrintWriter pw ) {
- SINGLE
+ pw . println ( STRING0 ) ;
+ pw . println ( STRING1 + mPluggedIn ) ;
+ synchronized ( mTrackedTasks ) {
+ for ( JobStatus task : mTrackedTasks ) {
+ pw . print ( task ... | Dump something for AppIdleController |
<nb> public final class ClosureRewriteClassTest extends CompilerTestCase {
GOOG_CLASS_NG_INJECT_ON_CLASS ) ;
}
+ SINGLE
+ SINGLE
+
+ public void testDestructParamOnFunction ( ) {
+ testRewrite (
+ LINE_JOINER . join (
+ STRING0 ,
+ STRING1 ,
+ STRING2 ) ,
+ LINE_JOINER . join (
+ STRING3 ,
... | Added test to ClosureRewriteClassTest to make sure default param and destruct param doesn t break the pass |
<nb> public class ExpressionTypingUtils {
for ( JetType type : types ) {
if ( checkReceiverResolution ( receiverArgument , type , callableDescriptor ) ) return true ;
- if ( type . isNullable ( ) ) {
- JetType notNullableType = TypeUtils . makeNotNullable ( type ) ;
- if ( checkReceiverResolution ( receiver... | Removed code which does not seem to be needed at all |
<nb> public class ThreadTracker {
wellKnownOffenders . add ( STRING0 ) ;
wellKnownOffenders . add ( STRING1 ) ;
wellKnownOffenders . add ( STRING2 ) ;
+ wellKnownOffenders . add ( STRING3 ) ;
wellKnownOffenders . add ( STRING4 ) ;
wellKnownOffenders . add ( STRING5 ) ;
wellKnownOffenders . add ( STRING6 )... | fixing blinking debugger tests |
<nb> public class Request < T >
}
else
{
+ sb . append ( STRING0 ) . append ( _baseUriTemplate ) ;
+ sb . append ( STRING1 ) . append ( _methodName ) ;
+ sb . append ( STRING2 ) . append ( _pathKeys ) ;
sb . append ( STRING3 ) . append ( _queryParams ) ;
sb . append ( STRING4 ) . append ( _requestOption... | Added new fields to the Request toString method |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
public interface IReadOnlyJITDataModel
{
- PackageManager getPackageManager ( ) ;
+ PackageManager getPackageManager ( ) ;
- JITStats getJITStats ( ) ;
+ JITStats getJITStats ( ) ;
- SINGLE ... | Removed unused import in Metaclass |
<nb> package NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public interface SyncConstValue
<nb> public class KeyEvent extends InputEvent implements Parcelable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
pub... | Fixing various broken javadoc comments in framework |
<nb> public class ItemWrench extends ItemBuildCraft implements IToolWrench {
public boolean onItemUseFirst ( ItemStack stack , EntityPlayer player , World world , int x , int y , int z , int side , float hitX , float hitY , float hitZ ) {
int blockId = world . getBlockId ( x , y , z ) ;
Block block = Block . bloc... | Wrenches shouldn t rotate Levers |
<nb> public class CompilerConfiguration {
COMMENT
public static final String PRE_JDK5 = JDK4 ;
- private static final String [ ] ALLOWED_JDKS = { JDK4 , JDK5 , JDK6 , JDK7 , JDK8 } ;
+ COMMENT
+ public static final String [ ] ALLOWED_JDKS = { JDK4 , JDK5 , JDK6 , JDK7 , JDK8 } ;
SINGLE
public static f... | made ALLOWED_JDKS public |
<nb> public class MenuBuilder implements Menu {
@ override
public void removeGroup ( int groupId ) {
- final int size = this . mItems . size ( ) ;
+ int size = this . mItems . size ( ) ;
for ( int i = NUMBER0 ; i < size ; i ++ ) {
if ( this . mItems . get ( i ) . getGroupId ( ) == groupId ) {
this . mIt... | Fix ArrayIndexOutOfBoundsException when removing a menu group from the overflow menu |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JavaGeneratorTest
final Integer count = ( Integer ) groupFlyweight . getClass ( ) . getDeclaredMethod ( STRING0 ) . invoke ( groupFlyweight ) ;
assertThat ( coun... | add validation tests |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
- public class TicketValidationException extends TicketException {
+ @ deprecated
+ public abstract class TicketValidationException extends TicketException {
+ COMMENT
+ protected static final String CODE = STRING0 ;
COMMENT
pri... | made the ticket validation class abstract |
<nb> public abstract class LightPlatformTestCase extends UsefulTestCase implements Da
return null ;
}
+ @ override
+ public InspectionProfileEntry getToolById ( String id , PsiElement element ) {
+ if ( availableInspectionTools . containsKey ( id ) ) {
+ return availableInspectionTools . get ( id ) ;
+ ... | highlight suppressed problems test |
<nb> public class PeerAddress extends Message {
other . services . equals ( services ) &&
other . time == time ;
}
+
+ @ override
+ public int hashCode ( ) {
+ return addr . hashCode ( ) ^ port ^ ( int ) time ^ services . hashCode ( ) ;
+ }
}
<nb> public class VersionMessage extends Message {
othe... | Implement a couple of weak hashCode methods to go with equals |
<nb> public abstract class AbstractCasProtocolValidationSpecification implements Vali
@ override
public final boolean isSatisfiedBy ( final Assertion assertion ) {
return isSatisfiedByInternal ( assertion )
- && ( this . renew || assertion . isFromNewLogin ( ) ) ;
+ && ( ! this . renew || assertion . isFromNe... | fixed test failures |
<nb> public class GBM extends SharedTree < GBMModel , GBMModel . GBMParameters , GBMModel . GBM
if ( dn . _split . _col == - NUMBER0 ) SINGLE
dn = tree . decided ( dn . _pid ) ; SINGLE
int leafnid = dn . ns ( chks , row ) ; SINGLE
- assert leaf <= leafnid && leafnid < tree . _len ;
+ assert leaf <= leafnid &&... | Improve debug printout for Illegal node split |
<nb> public abstract class ProcessorDefinition < Type extends ProcessorDefinition < Type >
}
SINGLE
- boolean parentIsRoute = this . getClass ( ) . isAssignableFrom ( RouteDefinition . class ) ;
+ boolean parentIsRoute = RouteDefinition . class . isAssignableFrom ( this . getClass ( ) ) ;
if ( output . isTo... | Fixed parent check if this class is extended |
<nb> public class EditDistanceDamerauLevenshteinLike {
}
} ;
+ SINGLE
public static int editDistance ( CharSequence s , CharSequence t , int threshold ) {
assert ( s != null ) ;
assert ( t != null ) ; | added a comment |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
COMMENT | add license to android SpringSystem |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.