diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class BasicDBObjectBuilder {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix see tag that pointed to itself |
<nb> class IonRequestBuilder implements Builders . Any . B , Builders . Any . F , Builders . Any .
}
@ override
- public IonRequestBuilder addQueryParams ( Map < String , List < String > > params ) {
+ public IonRequestBuilder addQueries ( Map < String , List < String > > params ) {
if ( query == null )
q... | Changed method name to addQueries |
<nb> public abstract class StatsAbstractInsightsFragment extends StatsAbstractFragmen
if ( ! isAdded ( ) ) {
return ;
}
-
- COMMENT
- if ( ! getDate ( ) . equals ( event . mDate ) ) {
- return ;
- }
- COMMENT
+
if ( ! event . mRequestBlogId . equals ( StatsUtils . getBlogId ( getLocalTableBlogID (... | Remove unused code |
<nb> public class GenericUDFAbs extends GenericUDF {
case STRING :
case DOUBLE :
valObject = inputConverter . convert ( valObject ) ;
+ if ( valObject == null ) {
+ return null ;
+ }
resultDouble . set ( Math . abs ( ( ( DoubleWritable ) valObject ) . get ( ) ) ) ;
return resultDouble ;
case DECIMAL :... | UDF abs throws NPE when input arg type is string Niklaus Xiao via Ashutosh Chauhan |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT | Cleaned up Configuration Javadoc |
<nb> public class TestVirtualWebappLoader extends TomcatBaseTest {
loader . start ( ) ;
String [ ] repos = loader . getLoaderRepositories ( ) ;
- assertEquals ( NUMBER0 , repos . length ) ;
+ assertEquals ( NUMBER1 , repos . length ) ;
loader . stop ( ) ;
repos = loader . getLoaderRepositories ( ) ;
<... | Fix failing test after adding test lib jar to test web app |
<nb> public class LoginManager
else if ( evt . getReasonCode ( ) == RegistrationStateChangeEvent
. REASON_AUTHENTICATION_FAILED ) {
String msgText = Messages . getI18NString ( STRING0 ,
- protocolProvider . getAccountID ( ) . getAccountAddress ( ) )
+ protocolProvider . getAccountID ( ) . getUserID ( ) )
. ... | in error messages use the userID instead of the AccountAddress property |
<nb> public class EditTicketPage extends RepositoryPage {
Change change = new Change ( createdBy ) ;
String title = titleModel . getObject ( ) ;
- if ( ! ticket . title . equals ( title ) ) {
+ if ( ! StringUtils . isEmpty ( title ) && ! ticket . title . equals ( title ) ) {
SINGLE
change . setField ( Fie... | Fix NPE in the Edit Ticket page |
<nb> public class TreeModelBuilder {
final Module [ ] modules = ModuleManager . getInstance ( project ) . getModules ( ) ;
for ( Module module : modules ) {
final ModuleRootManager moduleRootManager = ModuleRootManager . getInstance ( module ) ;
- roots . addAll ( Arrays . asList ( moduleRootManager . getFiles ... | library roots should not contain module sources |
<nb> public class AndroidAarIntegrationTest {
@ test
public void testCxxLibraryDependent ( ) throws IOException {
+ AssumeAndroidPlatform . assumeNdkIsAvailable ( ) ;
ProjectWorkspace workspace = TestDataHelper . createProjectWorkspaceForScenario (
this ,
STRING0 ,
<nb> public class AndroidAarIntegratio... | add assumeNdkIsAvailable to AndroidAarIntegrationTest |
<nb> public class RenderTexture extends Texture {
COMMENT
GLES20 . glFramebufferTexture2D ( GLES20 . GL_FRAMEBUFFER , GLES20 . GL_COLOR_ATTACHMENT0 , GLES20 . GL_TEXTURE_2D , this . mTextureID , NUMBER0 ) ;
- pGLState . checkError ( ) ;
+ SINGLE
pGLState . checkFramebufferStatus ( ) ;
this . restorePrev... | Removed GLState checkError from RenderTexture |
<nb> public class TinkerGraph implements Graph {
public void clear ( ) {
this . vertices . clear ( ) ;
this . edges . clear ( ) ;
+ this . currentId = NUMBER0 l ;
}
public void shutdown ( ) {
<nb> public class TinkerGraph implements Graph {
while ( true ) {
idString = this . currentId . toString ( )... | fixed a bug with how edge ids are created |
<nb> public class ExecutionTool {
OutputService outputService = env . getOutputService ( ) ;
ModifiedFileSet modifiedOutputFiles = ModifiedFileSet . EVERYTHING_MODIFIED ;
if ( outputService != null ) {
- modifiedOutputFiles = outputService . startBuild ( buildId ) ;
+ modifiedOutputFiles = outputService . sta... | Notify the output service at startup whether output tree tracking is enabled |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix Javadoc formatting in ResourceHttpRequestHandler |
<nb> public class MappingBuilderTest {
assertThat ( mapping . getResponse ( ) . getBody ( ) , is ( STRING0 ) ) ;
}
-
+
+ @ suppresswarnings ( STRING1 )
@ test
public void shouldBuildMappingWithResponseHeaders ( ) {
RequestResponseMapping mapping = | Suppressed warning in test |
<nb> public class DefaultGradleRunner extends GradleRunner {
throw new InvalidRunnerConfigurationException ( STRING0 + dir . getAbsolutePath ( ) ) ;
}
return dir ;
- } else if ( dir . exists ( ) ) {
+ } else if ( dir . exists ( ) && ! dir . isDirectory ( ) ) {
throw new InvalidRunnerConfigurationException (... | Fix concurrency problem |
<nb> package NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMES... | removed unused import |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import st... | Move NetworkUtils to util package |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import stat... | Added category to BasicBackPressureServiceTest |
<nb> public final class FeedableBodyGenerator implements BodyGenerator {
case CLOSING :
buffer . put ( ZERO ) ;
buffer . put ( END_PADDING ) ;
+ buffer . put ( END_PADDING ) ;
finishState = FINISHED ;
return buffer . position ( ) ;
case FINISHED :
- buffer . put ( END_PADDING ) ;
return - NUMBER0 ;
... | Send END_PADDING to server |
<nb> public class InternalPartitionServiceImpl implements InternalPartitionService , M
try {
MigrationInfo info = migrationInfo ;
InternalPartitionImpl partition = partitions [ info . getPartitionId ( ) ] ;
- if ( ! partition . getOwner ( ) . equals ( info . getSource ( ) ) ) {
- logger . severe ( STRING0
+... | Resolved NPE when owner is not null |
<nb> public class AtmosphereFramework implements ServletContextProvider {
if ( s != null ) {
handlersPath = s ;
}
+ s = sc . getInitParameter ( PROPERTY_ATMOSPHERE_XML ) ;
+ if ( s != null ) {
+ atmosphereDotXmlPath = s ;
+ }
}
public void loadConfiguration ( ServletConfig sc ) throws ServletExcepti... | Fix atmosphereDotXml location issue |
<nb> public class LocalHistoryActionsTest extends LocalHistoryUITestCase {
@ override
protected void tearDown ( ) throws Exception {
- getEditorFactory ( ) . releaseEditor ( editor ) ;
- super . tearDown ( ) ;
+ try {
+ getEditorFactory ( ) . releaseEditor ( editor ) ;
+ }
+ finally {
+ super . tear... | failure in LocalHistoryActionsTest tearDown shouldn t bring down other tests |
<nb> public class AudioLevelMap
long [ ] [ ] newLevels = new long [ newLength ] [ NUMBER0 ] ;
SINGLE
- levels [ NUMBER1 ] [ NUMBER1 ] = csrc ;
- levels [ NUMBER1 ] [ NUMBER2 ] = level ;
+ newLevels [ NUMBER1 ] [ NUMBER1 ] = csrc ;
+ newLevels [ NUMBER1 ] [ NUMBER2 ] = level ;
if ( newLength == NUMBER2... | Fixes an issue with audio level caching in conference calls |
<nb> public class CorruptedFileTest extends ElasticsearchIntegrationTest {
COMMENT
COMMENT
@ test
- public void testCorrupteOnNetworkLayer ( ) throws ExecutionException , InterruptedException {
+ public void testCorruptionOnNetworkLayer ( ) throws ExecutionException , InterruptedException {
int numDocs = sc... | Test testCorruptionOnNetworkLayer had a typo in test name |
<nb> public class BTree < T extends Comparable < T > > {
public BTree ( int order ) {
this . minKeySize = order ;
this . minChildrenSize = minKeySize + NUMBER0 ;
- this . maxKeySize = NUMBER1 * order ;
+ this . maxKeySize = NUMBER1 * minKeySize ;
this . maxChildrenSize = maxKeySize + NUMBER0 ;
} | Corrected the b size algorithm |
<nb> public class JavaUtilLoggingSystem implements LoggingSourceSystem {
LogManager . getLogManager ( ) . reset ( ) ;
SLF4JBridgeHandler . install ( ) ;
- logger . setLevel ( java . util . logging . Level . FINE ) ;
installed = true ;
} | Remove logger setLevel FINE from JavaUtilLoggingSystem |
<nb> public final class Settings {
COMMENT
public static final String [ ] SETTINGS_TO_BACKUP = {
STAY_ON_WHILE_PLUGGED_IN ,
- WIFI_SLEEP_POLICY ,
WIFI_USE_STATIC_IP ,
WIFI_STATIC_IP ,
WIFI_STATIC_GATEWAY , | Remove backup of sleep policy setting |
<nb> public class PolicyBasedAuthenticationManagerTests {
final PolicyBasedAuthenticationManager manager = new PolicyBasedAuthenticationManager ( map , mockServicesManager ( ) ) ;
final Authentication auth = manager . authenticate ( transaction ) ;
assertEquals ( NUMBER0 , auth . getSuccesses ( ) . size ( ) ) ;
... | Fix test failures |
<nb> public class DefaultExecutionResult implements ExecutionResult {
private AnAction [ ] myRestartActions ;
private final List < AnAction > myStopActions = new ArrayList < AnAction > ( ) ;
+ public DefaultExecutionResult ( ) {
+ myConsole = null ;
+ myProcessHandler = null ;
+ myActions = AnAction . EMP... | use DefaultExecutionResult instead of custom class |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class FileTemplateDefaultExtension {
- public static ExtensionPointName < FileTemplateDefaultExtension > EP_NAME = ExtensionPointName . create ( STRING0 ) ;
+ public static final ExtensionPoin... | add final to EP_NAME |
<nb> import NAMESPACE ;
class MuninnPagedFile implements PagedFile
{
- static final int translationTableStripeLevel = NUMBER0 < < NUMBER1 ;
+ private static int stripeFactor = Integer . getInteger (
+ STRING0 , NUMBER1 ) ;
+ static final int translationTableStripeLevel = NUMBER0 < < stripeFactor ;
stati... | Add a hidden configuration for the MuninnPagedFile stripeFactor |
<nb> import NAMESPACE ;
public interface DistanceFn < T > extends Serializable {
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
double distance ( T t1 , T t2 ) ;
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
@ pa... | Fix Javadocs warnings from the last commit |
<nb> public class CasLoggerFactoryTests {
private void validateLogData ( ) {
try {
- assertTrue ( STRING0 , LOG_FILE . exists ( ) ) ;
+ assertTrue ( STRING1 + LOG_FILE . getCanonicalPath ( ) + STRING2 , LOG_FILE . exists ( ) ) ;
final String data = FileUtils . readFileToString ( LOG_FILE ) ;
assertTrue ... | updated test failure error message |
<nb> public class GouraudMaterial extends AAdvancedMaterial {
STRING0 +
STRING1 +
STRING2 +
+ STRING3 +
STRING4 +
STRING5 +
<nb> public class GouraudMaterial extends AAdvancedMaterial {
} else if ( light . getLightType ( ) == ALight . DIRECTIONAL_LIGHT ) {
sb . append ( STRING6 ) . append ( i ) . ap... | Fix Gouraud shader compilation w multiple lights |
<nb> public class DeepLinkEntryTest {
Map < String , String > parameters = entry . getParameters ( STRING0 ) ;
assertThat ( parameters . get ( STRING1 ) ) . isEqualTo ( STRING2 ) ;
}
-
+
@ test public void testNoMatchesFound ( ) {
DeepLinkEntry entry = deepLinkEntry ( STRING3 ) ; | Remove trailing space |
<nb> public class SendPoiDialogFragment extends DialogFragment {
final OsmPoint [ ] poi = ( OsmPoint [ ] ) getArguments ( ) . getSerializable ( OPENSTREETMAP_POINT ) ;
AlertDialog . Builder builder = new AlertDialog . Builder ( getActivity ( ) ) ;
View view = getActivity ( ) . getLayoutInflater ( ) . inflate ( R ... | Fix small issues |
<nb> public class Http2Server {
} else {
stream = new FileInputStream ( storeLoc ) ;
}
+ String pw = System . getProperty ( name + STRING0 ) ;
+
try {
KeyStore loadedKeystore = KeyStore . getInstance ( STRING1 ) ;
- loadedKeystore . load ( stream , STORE_PASSWORD ) ;
+ loadedKeystore . load ( stream ,... | Add support for different keystore passwords to the example |
<nb> public final class MinaPayloadHelper {
if ( payload instanceof MinaPayloadHolder ) {
MinaPayloadHolder . unmarshal ( exchange , ( MinaPayloadHolder ) payload ) ;
} else {
- SINGLE
+ SINGLE
+ exchange . getOut ( ) . setHeaders ( exchange . getIn ( ) . getHeaders ( ) ) ;
exchange . getOut ( ) . setBody... | camel mina should preserver headers |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ContactListCellRenderer extends JPanel
this . setCursor ( Cursor . getPredefinedCursor ( Cursor . HAND_CURSOR ) ) ;
this ... | Reducing the contact list should not hide status icons Fixed |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> imp... | removed unused imports |
<nb> public class MenuItemWrapper implements MenuItem , android . view . MenuItem . OnMenuIt
@ override
public MenuItem setActionView ( View view ) {
- mNativeItem . setActionView ( new ActionViewWrapper ( view ) ) ;
+ if ( view != null ) {
+ view = new ActionViewWrapper ( view ) ;
+ }
+ mNativeItem . s... | Allow empty action views to avoid the wrapper |
<nb> public class JSONServiceAction extends JSONAction {
}
else if ( returnObj instanceof Boolean ||
returnObj instanceof Integer ||
- returnObj instanceof Long ) {
+ returnObj instanceof Long ||
+ returnObj instanceof Double ||
+ returnObj instanceof String ) {
JSONObject jsonObj = new JSONObject ( )... | Adding the ability to return doubles and strings from functions |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public final class ViewUtil {
public static String getViewId ( View view ) {
- return view . getId ( ) > NUMBER0 ? view . getResources ( ) . getResourceName ( view . getId... | Handle resource name not found exception |
<nb> public class InternalIndexShard extends AbstractIndexShardComponent implements I
SINGLE
SINGLE
if ( state != IndexShardState . STARTED && state != IndexShardState . RELOCATED ) {
- throw new IllegalIndexShardStateException ( shardId , state , STRING0 ) ;
+ throw new IllegalIndexShardStateException ( shar... | add origin to failure message |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class Forwarding implements Implementation {
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class MethodDelegation impl... | Added additional documentation to the delegation implementations to make their intended use more clear |
<nb> public class StringUtil extends StringUtilRt {
}
@ contract ( STRING0 )
- public static boolean isEmptyOrSpaces ( @ nullable final String s ) {
- if ( s == null || s . isEmpty ( ) ) {
+ SINGLE
+ public static boolean isEmptyOrSpaces ( @ nullable String s ) {
+ return isEmptyOrSpaces ( ( ( CharSeque... | isEmptyOrSpaces accepts CharSequence review |
<nb> public class SeriesGuideDatabase extends SQLiteOpenHelper {
String LIST_ITEMS_WITH_DETAILS = STRING0
+ Selections . SHOWS_COLUMNS + STRING1
+ STRING2
- + STRING3
+ + STRING4
+ STRING5 + Selections . SEASONS_COLUMNS + STRING1
+ STRING6
<nb> public class SeriesGuideDatabase extends SQLiteOpenHelper... | Remove some SQL syntax which threw off Eclair |
<nb> public final class CoreFilterExposer extends BroadcastReceiver implements Astrid
null ) ;
int themeFlags = ThemeService . getFilterThemeFlags ( ) ;
inbox . listingIcon = ( ( BitmapDrawable ) r . getDrawable (
- ThemeService . getDrawable ( R . drawable . waiting_on_me , themeFlags ) ) ) . getBitmap ( ) ;
... | Fixed a resource reference |
<nb> public class LayoutManager extends RecyclerView . LayoutManager {
return ;
}
- mRequestPosition = NUMBER0 ; SINGLE
+ mRequestPosition = position ;
requestLayout ( ) ;
} | Remove hardcoded position for scrollToPosition |
<nb> public class TableSizeReaderTest {
@ test
public void testNoSuchTable ( ) {
TableSizeReader reader = new TableSizeReader ( executor , connectionManager , helix ) ;
- Assert . assertNull ( reader . getTableSizeDetails ( STRING0 , NUMBER0 ) ) ;
+ Assert . assertNull ( reader . getTableSizeDetails ( STRING0... | Increase the timeout for TableSizeReaderTest |
<nb> public class ZLAndroidWidget extends View implements ZLViewWidget , View . OnLongCl
return ;
}
animator . startAutoScrolling ( x , y , speed ) ;
- if ( animator . getMode ( ) . Auto ) {
- postInvalidate ( ) ;
- }
+ postInvalidate ( ) ;
}
void drawOnBitmap ( Bitmap bitmap , ZLView . PageIndex in... | fixed scrolling delays |
<nb> public class SQLiteLibraryLoader {
}
private void log ( final String message ) {
- SINGLE
+ org . robolectric . util . Logger . debug ( message ) ;
}
private boolean isExtractedLibUptodate ( File extractedLib ) { | replace commented out code with Robolectric Logger |
<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 ;
<nb> pub... | Don t use IOUtils here to avoid dragging it into the tooling API dependencies |
<nb> public class PartialPlainStreetEdge extends PlainStreetEdge {
return fromCoord . equals ( toCoord ) ;
}
+ public StreetEdge getParentEdge ( ) {
+ return parentEdge ;
+ }
+
@ override
public String toString ( ) {
return STRING0 + this . getName ( ) + STRING1 + this . getFromVertex ( ) + STRING2 | Add parentEdge getter to partial street edge |
<nb> public class SpiceProfilingUtil {
final Intent intent = context . registerReceiver ( null , new IntentFilter ( Intent . ACTION_BATTERY_CHANGED ) ) ;
if ( intent == null ) return false ;
final int plugged = intent . getIntExtra ( BatteryManager . EXTRA_PLUGGED , - NUMBER0 ) ;
- return plugged == BatteryMana... | add wireless power adapter judgement |
<nb> public abstract class Command {
}
Set < Permissible > users = Bukkit . getPluginManager ( ) . getPermissionSubscriptions ( Server . BROADCAST_CHANNEL_ADMINISTRATIVE ) ;
- String colored = ChatColor . GRAY + STRING0 + ChatColor . ITALIC + STRING1 + result + STRING2 ;
+ String colored = ChatColor . GRAY + ... | Display command message closing bracket correctly |
<nb> public class GithubCheckoutProvider implements CheckoutProvider {
final String checkoutUrl = settings . getLogin ( ) . equals ( repositoryOwner )
? STRING0 + repositoryOwner + STRING1 + repositoryName + STRING2
: STRING3 + repositoryOwner + STRING1 + repositoryName + STRING2 ;
- GitCheckoutProvider . check... | provide possibility to set user defined origin name on cloning github project |
<nb> import NAMESPACE ;
SINGLE
+ SINGLE
+
+
@ singleton
public class SatelliteManager implements CloseHandler < Window >
{ | add one more todo |
<nb> public class PhoneStatusBar extends StatusBar {
SINGLE
SINGLE
public void userActivity ( ) {
- mNavigationBarView . setHidden ( false ) ;
+ if ( mNavigationBarView != null ) {
+ mNavigationBarView . setHidden ( false ) ;
+ }
}
public void toggleRecentApps ( ) { | Fix NPE for devices with hardware navigation |
<nb> public class ClusterStateObserver {
}
}
- public void close ( ) {
- if ( observingContext . getAndSet ( null ) != null ) {
- clusterService . remove ( clusterStateListener ) ;
- logger . trace ( STRING0 ) ;
- }
- }
-
COMMENT
COMMENT
COMMENT | remove unused method |
<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode ,
public void userSwitched ( int newUserId ) {
if ( MULTIUSER_DEBUG ) mNotificationPanelDebugText . setText ( STRING0 + newUserId ) ;
animateCollapsePanels ( ) ;
+ updatePublicMode ( ) ;
updateNotifications ( ) ;
resetUserSetupObserv... | Explicitly specify user for public mode |
<nb> public class ZenDiscovery extends AbstractLifecycleComponent < Discovery > implemen
activeNodes . add ( localNode ) ;
long joinsCounter = clusterJoinsCounter . get ( ) ;
if ( joinsCounter > NUMBER0 ) {
- logger . trace ( STRING0 , joinsCounter ) ;
+ logger . trace ( STRING1 , joinsCounter ) ;
joinedOnc... | Fix trace logging statement in ZenDiscovery |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RequestTracker {
}
SINGLE
- private Request [ ] getSnapshot ( ) {
- return requests . toArray ( new Request [ requests . size ( )... | Avoid race where Request snapshot contains null |
<nb> public class Constants {
logger . error ( STRING0 , e ) ;
}
}
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public static AudioClip getDefaultMessageAudio ( )
- {
- return SoundLoader . getSound ( SoundLoader . INCOMING_MESSAGE ) ;
- }
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- p... | remove methods accessing call sounds |
<nb> public class ShadowCriteria {
return accuracy ;
}
+ @ implementation
public void setAccuracy ( int accuracy ) {
this . accuracy = accuracy ;
} | Added missing Implementation annotation that was breaking the build |
<nb> public class HostnamePort
break ;
}
}
+ if ( host == null && toMatch . getHost ( ) == null )
+ {
+ return true ;
+ }
return result && host . equalsIgnoreCase ( toMatch . getHost ( ) ) ;
}
} | Adds special case in HostnamePort matching returning true if no host is specified |
<nb> public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc
case WebViewInputDispatcher . EVENT_TYPE_LONG_PRESS :
HitTestResult hitTest = getHitTestResult ( ) ;
if ( hitTest != null ) {
- performLongClick ( ) ;
+ mWebView . performLongClick ( ) ;
}
break ;
case WebViewInputD... | Call WebView performLongClick instead of performLongClick |
<nb> public interface BuildActionExecuter < T > extends LongRunningOperation {
COMMENT
COMMENT
COMMENT
+ @ incubating
+ BuildActionExecuter < T > setColorOutput ( boolean colorOutput ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
BuildActionExecuter < T > setStandardInput ( InputStream inputStream ... | Added override for LongRunningOperation setColorOutput |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
public class ReaderActivityLauncher {
COMMENT
<nb> public class ReaderActivityLauncher {
if ( tag == null ) {
return ;
}
- AnalyticsTracker . track ( AnalyticsTracker . Stat . READER_TAG... | Add the name of the tag to READER_TAG_PREVIEWED |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FilteredRecyclerView extends RelativeLayout {
if ( mSpinner == null ) {
mSpinner = ( Spin... | erased commented lines and unused imports |
<nb> public class SystemBarTintManager {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void setTintAlpha ( float alpha ) {
+ setStatusBarAlpha ( alpha ) ;
+ setNavigationBarAlpha ( alpha ) ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class SystemBarTintManager {
... | Added alpha management |
<nb> Alternatively you can set the class path throuh nsc . Settings . classpath .
intp . interpret ( STRING0 ) ;
intp . interpret ( STRING1 ) ;
intp . interpret ( STRING2 ) ;
- intp . interpret ( STRING3 ) ;
+ intp . interpret ( STRING4 ) ;
}
private List < File > currentClassPath ( ) { | Importing all the public SQL functions and implicit conversions |
<nb> public final class HttpResponseCache extends ResponseCache {
return writeSuccessCount ;
}
+ public long getSize ( ) {
+ return cache . size ( ) ;
+ }
+
+ public long getMaxSize ( ) {
+ return cache . getMaxSize ( ) ;
+ }
+
+ public void flush ( ) throws IOException {
+ cache . flush ( ) ;... | Allow access to the underlying DiskLruCache |
<nb> public class WidgetService extends Service {
@ override
public int onStartCommand ( Intent intent , int flags , int startId ) {
- if ( intent . hasExtra ( STRING0 ) ) {
+ if ( intent != null && intent . hasExtra ( STRING0 ) ) {
final int appWidgetId = intent . getIntExtra ( STRING0 , NUMBER0 ) ;
Log ... | Fix problem with null intent |
<nb> public class TipUIUtil {
path += suffix + STRING0 ;
URL url = ResourceUtil . getResource ( providerClass , STRING1 , path ) ;
if ( url != null ) {
- text . insert ( index + endIndex , suffix ) ;
+ String newImgTag = STRING2 + path + STRING3 ;
+ if ( retina ) {
+ newImgTag += STRING4 ;
+ }
+ newIm... | ignore width and height in img tag |
<nb> public class ModuleClassLoader extends URLClassLoader {
}
@ override
+ public void addURL ( URL url ) {
+ super . addURL ( url ) ;
+ }
+
+ @ override
protected Class < ? > loadClass ( String name , boolean resolve )
throws ClassNotFoundException {
Class < ? > c = findLoadedClass ( name ) ; | Added addURL method to ModuleClassLoader |
<nb> public class DiscoveryClient implements EurekaClient {
cancelScheduledTasks ( ) ;
SINGLE
- if ( instanceInfo != null && clientConfig . shouldRegisterWithEureka ( ) ) {
- instanceInfo . setStatus ( InstanceStatus . DOWN ) ;
+ if ( applicationInfoManager != null && clientConfig . shouldRegisterWithEureka... | set instance status using applicationInfoManager instead of directly |
<nb> public class UserManagerService extends IUserManager . Stub {
long now = System . currentTimeMillis ( ) ;
userInfo . creationTime = ( now > EPOCH_PLUS_30_YEARS ) ? now : NUMBER0 ;
userInfo . partial = true ;
+ userInfo . lastLoggedInFingerprint = Build . FINGERPRINT ;
userData = new UserData ( ) ;
user... | Set build fingerprint for the new user |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public UIActionSheet ( String title , UIActionSheetDelegate delegate , String cancelButtonTitle ,
String destructiveButtonTitle , Strin... | Fixed crash in the UIActionSheet constructor which takes button titles and |
<nb> public class GLMModelV3 extends ModelSchema < GLMModel , GLMModelV3 , GLMModel . GLMPa
return NUMBER0 ;
}
} ) ;
- System . out . println ( STRING0 + Arrays . toString ( indices ) ) ;
String [ ] names2 = new String [ names . length ] ;
for ( int i = NUMBER0 ; i < names2 . length - NUMBER1 ; ++ i )
nam... | removed debug print |
<nb> public class ZenDiscoveryTests extends ElasticsearchIntegrationTest {
} ) ;
assertThat ( holder . get ( ) , notNullValue ( ) ) ;
- assertThat ( holder . get ( ) . getMessage ( ) , equalTo ( STRING0 ) ) ;
+ assertThat ( holder . get ( ) . getMessage ( ) , equalTo ( STRING1 + Version . V_2_0_0_beta1 . mini... | TEST Assert against minCompatVersion instead of a static string |
<nb> public class ProviderListItem extends LinearLayout {
else
mProviderName . setTextColor ( Color . LTGRAY ) ;
- COMMENT
- if ( mSignInSwitch != null && ( ! mUserChanged ) )
- {
- mSignInSwitch . setOnCheckedChangeListener ( null ) ;
- mSignInSwitch . setChecked ( switchOn ) ;
- mSignInSwitch . setO... | remove switch support |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | remove unused import statement |
<nb> public class DropUserStatement extends AuthenticationStatement
state . ensureNotAnonymous ( ) ;
if ( ! Auth . isExistingUser ( username ) )
- throw new InvalidRequestException ( String . format ( STRING0 , username ) ) ;
+ throw new InvalidRequestException ( String . format ( STRING1 , username ) ) ;
... | Ninja fix a typo in DropUserStatement |
<nb> import NAMESPACE ;
COMMENT
public class Printer {
private static final String INDENTATION_UNIT = STRING0 ;
+ private static final String LINE_SEPARATOR = System . getProperty ( STRING1 ) ;
+
private final StringBuilder out ;
private final int maxBlankLines ;
<nb> public class Printer {
private ... | Extracted LINE_SEPARATOR constant in Printer |
<nb> public class JazzyListView extends ListView implements OnScrollListener {
String strEffect = null ;
try {
strEffect = a . getString ( R . styleable . JazzyListView_effect ) ;
+ if ( strEffect != null ) {
TransitionEffect effect = TransitionEffect . valueOf ( strEffect ) ;
setTransitionEffect ( effect )... | Fix NPE if effect is not defined in the XML |
<nb> public class SmoothStreamingManifestParser implements UriLoadable . Parser < SmoothS
} else if ( fourCC . equalsIgnoreCase ( STRING0 ) || fourCC . equalsIgnoreCase ( STRING1 ) ) {
return MimeTypes . AUDIO_AC3 ;
} else if ( fourCC . equalsIgnoreCase ( STRING2 ) || fourCC . equalsIgnoreCase ( STRING3 ) ) {
-... | Fix build break |
<nb> public class TabLayout extends HorizontalScrollView {
private final int mTabBackgroundResId ;
private final int mTabMinWidth ;
- private int mTabMaxWidth ;
+ private int mTabMaxWidth = Integer . MAX_VALUE ;
private final int mRequestedTabMaxWidth ;
private int mContentInsetStart ;
<nb> public cla... | Fix TabLayout when used in a HorizontalScrollView |
<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 ; | removing unused dependencies from Helper class |
<nb> public class Vec extends Keyed {
COMMENT
private Vec makeIdentityTransf ( ) {
assert _domain != null : STRING0 ;
- throw H2O . unimpl ( ) ;
- SINGLE
+ return makeTransf ( ArrayUtils . seq ( NUMBER0 , _domain . length ) , null , _domain ) ;
}
COMMENT
<nb> public class ArrayUtils {
return res ;... | Re enable identity transfer Vec creation for non enums add helper to make a number sequence |
<nb> public class TestNet3Params extends NetworkParameters {
dnsSeeds = new String [ ] {
STRING0 , SINGLE
+ STRING1 , SINGLE
STRING2 SINGLE
} ;
} | Add my testnet DNS seed |
<nb> public class AssetFile extends FileHandler {
if ( ! typeTree . getFields ( ) . isEmpty ( ) ) {
typeNode = typeTree . getFields ( ) . get ( path . getTypeID ( ) ) ;
} else {
- typeNode = FieldTypeDatabase . getInstance ( ) . getNode ( path . getTypeID ( ) , typeTree . getUnityRevision ( ) ) ;
+ typeNode =... | Don t use strict mode here |
<nb> public class EditorConsole extends JScrollPane {
SINGLE
SINGLE
SINGLE
+ } else if ( err && what . contains ( STRING0 ) ) {
+ SINGLE
} else if ( err && what . contains ( STRING1 ) ) {
SINGLE
} else { | remove pbuffer initialization warning from LWJGL |
<nb> public abstract class AbstractLocalTachyonCluster {
protected Thread mWorkerThread ;
COMMENT
+ SINGLE
protected String [ ] mMasterServiceNames = new String [ ] {
Constants . BLOCK_MASTER_NAME ,
Constants . FILE_SYSTEM_MASTER_NAME , | Add todo for consolidating array of services |
<nb> public class DataInfo extends Keyed {
int nbins = NUMBER0 ;
for ( int i = NUMBER0 ; i < _cats ; ++ i ) {
if ( chunks [ i ] . isNA ( rid ) ) {
- if ( _imputeMissing )
- row . binIds [ nbins ++ ] = _catModes [ i ] ;
- else SINGLE
+ if ( _imputeMissing ) {
+ int c = getCategoricalId ( i , _catModes [ ... | Fix an offset bug when imputing missing categorical values |
<nb> public class StorageDirId {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static StorageLevelAlias getStorageLevelAlias ( long storageDirId ) {
+ return StorageLevelAlias . values ( ) [ getStorageLevelAliasValue ( storageDirId ) - NUMBER0 ] ;
+ }
+
+ COMMENT
COMME... | Add getStorageLevelAlias used by jsp |
<nb> public abstract class PGL {
COMMENT
COMMENT
COMMENT
- protected static boolean SAVE_SURFACE_TO_PIXELS_HACK = true ;
+ protected static boolean SAVE_SURFACE_TO_PIXELS_HACK = false ;
COMMENT
protected static boolean MIPMAPS_ENABLED = true ;
<nb> public class PGraphicsOpenGL extends PGraphics {
SI... | disable SAVE_SURFACE_TO_PIXELS_HACK and a few other init tweaks |
<nb> public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec
@ override
public void freeze ( final ContinuationPause context , final String reason ) {
myUpdater . setIgnoreBackgroundOperation ( true ) ;
- SINGLE
- invokeAfterUpdate ( new Runnable ( ) {
- @ override
- public void r... | remove unnecessary comment convert to lambda |
<nb> public class ConnectivityService extends IConnectivityManager . Stub {
final int timeout ;
if ( ConnectivityManager . isNetworkTypeMobile ( type ) ) {
- timeout = Settings . Secure . getInt ( mContext . getContentResolver ( ) ,
- Settings . Secure . DATA_ACTIVITY_TIMEOUT_MOBILE ,
+ timeout = Settings .... | Migrate DATA_ACTIVITY_TIMEOUT_MOBILE WIFI from Settings Secure to Settings Global |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.