diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class MeteorTest {
COMMENT
COMMENT
COMMENT
- protected static void assertEquals ( final SopremoPlan expectedPlan , final SopremoPlan actualPlan ) {
+ protected static void assertPlanEquals ( final SopremoPlan expectedPlan , final SopremoPlan actualPlan ) {
final List < Operator < ? > > unmatchin... | Fixed MeteorTest assertPlanEquals |
<nb> public interface Player extends HumanEntity {
COMMENT
COMMENT
public void kickPlayer ( String message ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public boolean performCommand ( String command ) ;
} | Added player performCommand String |
<nb> public class JedisShardInfo extends ShardInfo < Jedis > {
this . host = host ;
this . name = name ;
this . port = port ;
- this . timeout = timeout ;
+ this . connectionTimeout = timeout ;
+ this . soTimeout = timeout ;
}
public JedisShardInfo ( URI uri ) { | fixing merge problem |
<nb> public class IntegrationTest extends IntegrationTestCase {
assertEquals ( NUMBER0 , compiler . getWarnings ( ) . length ) ;
}
+ public void testInlineProperties ( ) {
+ CompilerOptions options = createCompilerOptions ( ) ;
+ CompilationLevel level = CompilationLevel . ADVANCED_OPTIMIZATIONS ;
+ level... | Add a InlineProperties integration test |
<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 ;
... | Add required flags |
<nb> public class ELProcessor {
varArgs = true ;
dimension = NUMBER0 ;
parameterTypeName = parameterTypeName . substring (
- NUMBER1 , parameterTypeName . length ( ) - NUMBER2 ) ;
+ NUMBER1 , parameterTypeName . length ( ) - NUMBER2 ) . trim ( ) ;
}
boolean isPrimitive = PRIMITIVES . contains ( parameterT... | kkolinko review add missing trim call |
<nb>
SINGLE
SINGLE
SINGLE
+ SINGLE
package NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class MainPopupMenu extends JPopupMenu {
<nb> public class MainPopupMenu extends JPopupMenu {
}
}
- if ( isAtLeastOn... | Changed the class MainPopupMenu to use the method PopupMenuUtils isAtLeastOneChildComponentVisible Component |
<nb> public class ThreadRenamingRunnable implements Runnable {
newThreadName = oldThreadName ;
}
- SINGLE
+ SINGLE
boolean renamed = false ;
if ( ! oldThreadName . equals ( newThreadName ) ) {
try { | Fixed wrong comment |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
COMMENT
public class FileTrustStoreSslSocketFactoryTests {
- COMMENT
- public void verifyTrustStoreLoadingSuccessfullyWithCertAvailable ( ) t... | Disable the tests relying on cacert org |
<nb> public class Twitter extends TwitterOAuthSupportBaseImpl
ensureAuthorizationEnabled ( ) ;
return StatusJSONImpl . createStatusList ( http . get ( conf . getRestBaseURL ( )
+ STRING0 ,
- mergeParameters ( new HttpParameter [ ] { INCLUDE_RTS }
+ mergeParameters ( new HttpParameter [ ] { INCLUDE_RTS , INCLU... | added support for entities in Twiter getFriendsTimeline Paging |
<nb> public class PrivacyManager {
if ( name . equals ( STRING0 ) ) {
long v = r . nextLong ( ) ;
- return Long . toHexString ( v ) . toUpperCase ( ) ;
+ return Long . toString ( v , NUMBER0 ) . toUpperCase ( ) ;
}
if ( name . equals ( STRING1 ) ) | Fix NumberFormatException support info |
<nb> public class HttpUtils {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static String httpGetString ( HttpRequest request ) {
+ HttpResponse response = httpGet ( request ) ;
+ return response == null ? null : response . getResponseBody ( ) ;
+ }
+
+ COMMENT
+ C... | add public static String httpGetString HttpRequest request |
<nb> public class OperationSetVideoBridgeImpl
COMMENT
COMMENT
COMMENT
- callJabberImpl . processColibriConferenceIQ (
- conferenceIQ ) ;
- break ;
+ if ( callJabberImpl . processColibriConferenceIQ (
+ conferenceIQ ) )
+ break ;
}
}
} | Fixes a potential problem with handling of colibri conference IQs if we are the focus of multiple jitsi videobridge conferences |
<nb> class StepLong {
Datapoint poll ( int pollerIndex ) {
final long now = clock . now ( ) ;
final long step = Pollers . POLLING_INTERVALS [ pollerIndex ] ;
- final long stepTime = now / step ;
rollCount ( pollerIndex , now ) ;
final int prevPos = NUMBER0 * pollerIndex + PREVIOUS ; | remove variable that is no longer used |
<nb> public class RefClassImpl extends RefJavaElementImpl implements RefClass {
setServlet ( servlet != null && psiClass . isInheritor ( servlet , true ) ) ;
}
if ( ! isApplet ( ) && ! isServlet ( ) ) {
- setTestCase ( TestUtil . isTestClass ( psiClass ) ) ;
- for ( RefClass refBase : getBaseClasses ( ) ) {
... | set parent as testcase only when current is testcase |
<nb> public class FormField {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ protected void resetValues ( ) {
+ synchronized ( values ) {
+ values . removeAll ( new ArrayList ( values ) ) ;
+ }
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Adds protected method resetValues |
<nb> public class NativeLibrary {
SINGLE
if ( Platform . isLinux ( ) ) {
ArrayList < String > ldPaths = getLinuxLdPaths ( ) ;
- SINGLE
- for ( int i = NUMBER0 ; i < paths . length ; i ++ ) {
- if ( ldPaths . contains ( paths [ i ] ) == false ) {
- ldPaths . add ( paths [ i ] ) ;
+ SINGLE
+ for ( int i... | Keep the current library search order intact merely add additional paths from ldconfig |
<nb> public class NumberDeserializers
return Double . NaN ;
}
try {
- if ( text . indexOf ( STRING0 ) >= NUMBER0 ) { SINGLE
+ if ( text . indexOf ( STRING0 ) >= NUMBER0 || text . indexOf ( STRING1 ) >= NUMBER0 ) { SINGLE
if ( ctxt . isEnabled ( DeserializationFeature . USE_BIG_DECIMAL_FOR_FLOATS ) ) {
ret... | also parse scientific notation as a double decimal |
<nb> public class PackageManagerService extends IPackageManager . Stub {
SINGLE
SINGLE
if ( DEBUG_REMOVE ) Slog . d ( TAG , STRING0 ) ;
- ps . setUserState ( user . getIdentifier ( ) ,
+ final int userId = user . getIdentifier ( ) ;
+ ps . setUserState ( userId ,
COMPONENT_ENABLED_STATE_DEFAULT ,
false ... | Keep intent verification status of system apps when uninstalling them |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DebuggerBundle {
}
public static String getAddressDisplayName ( fina... | do not show null host name |
<nb> public class Reader {
return config ;
}
- public static ObjectMapper getM ( ) {
+ public static ObjectMapper getObjectMapper ( ) {
return m ;
}
} | renamed getter for objectMapper |
<nb> public class PlanPrinter
@ override
public Void visitOutput ( OutputNode node , Integer indent )
{
- print ( indent , STRING0 , Joiner . on ( STRING1 ) . join ( node . getColumnNames ( ) ) ) ;
+ print ( indent , STRING2 , Joiner . on ( STRING1 ) . join ( node . getColumnNames ( ) ) , formatOutputs ( node... | Improve rendering of Output node in EXPLAIN |
<nb> public class OrientVertex extends OrientElement implements Vertex {
else if ( fieldValue instanceof Map < ? , ? > )
counter += ( ( Map < ? , ? > ) fieldValue ) . size ( ) ;
else
- counter += ( ( Collection < ? > ) fieldValue ) . size ( ) ;
+ counter ++ ;
}
return counter ; | Fixed bug on recent OrientVertex countEdges |
<nb> public class ClosureWriter {
if ( ! ( v instanceof FieldNode ) ) return ;
String name = expression . getName ( ) ;
FieldNode fn = closureClass . getDeclaredField ( name ) ;
- expression . setAccessedVariable ( fn ) ;
+ if ( fn != null ) { SINGLE
+ expression . setAccessedVariable ( fn ) ;
+ }
}
}... | set accesse variable in closure only if field is not null |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix Javadoc references to incorrect XML |
<nb> import NAMESPACE ;
@ description ( STRING0 )
@ widgetproperties (
{
- @ widgetproperty ( key = STRING1 , type = WidgetPropertyType . STRING ) ,
+ @ widgetproperty ( key = STRING1 , type = WidgetPropertyType . STRING , description = STRING2 ) ,
@ widgetproperty ( key = STRING3 , type = WidgetPropertyTyp... | Add description to custom measures widget |
<nb> public class EventsLogger implements AtmosphereResourceEventListener {
public EventsLogger ( ) {
}
- @ override
+
public void onSuspend ( final AtmosphereResourceEvent < HttpServletRequest , HttpServletResponse > event ) {
System . out . println ( STRING0 + event ) ;
}
- @ override
+
public v... | remove unused override annotation |
<nb> public class NeoAlgoTestCase extends TestCase
protected void setUp ( ) throws Exception
{
super . setUp ( ) ;
- neo = new EmbeddedNeo ( STRING0 ) ;
+ neo = new EmbeddedNeo ( STRING1 ) ;
tx = neo . beginTx ( ) ;
graph = new SimpleGraphBuilder ( neo , MyRelTypes . R1 ) ;
} | Stores the test data under target |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class KeyguardViewManager implements KeyguardWindowController {
if ( DEBUG ) Log . d ( TAG , STRING0 + mKeyguardView ) ;
Resour... | Allow lockscreen orientation to be overridden with a system property |
<nb> public abstract class WPActionBarActivity extends SherlockFragmentActivity imple
public void run ( ) {
startActivity ( i ) ;
}
- } , NUMBER0 ) ;
+ } , NUMBER1 ) ;
}
COMMENT | Increase the delay a little bit when opening a new activity from the MenuDrawer |
<nb> class PooledConnectionProvider {
return null ;
} else {
ScheduledExecutorService newTimer = Executors . newSingleThreadScheduledExecutor ( ) ;
- newTimer . scheduleAtFixedRate ( maintenanceTask , NUMBER0 , settings . getMaintenanceFrequency ( MILLISECONDS ) , MILLISECONDS ) ;
+ newTimer . scheduleAtFixed... | Applying connection pool settings initial delay |
<nb> public class FragmentJarScannerCallback implements JarScannerCallback {
@ override
public void scan ( File file , String webappPath , boolean isWebapp ) throws IOException {
- SINGLE
- if ( STRING0 . equals ( webappPath ) ) {
- return ;
- }
-
WebXml fragment = new WebXml ( ) ;
fragment . setWeb... | Skip web fragment xml scan in WEB INF classes when scanning an unpacked WAR |
<nb> public enum ChannelState {
COMMENT
COMMENT
COMMENT
- INTEREST_OPS ,
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- EXTENDED ;
+ INTEREST_OPS ;
} | Reverting back the latest change in ChannelState not a good idea |
<nb> public final class CommandLineRunnerTest extends TestCase {
public void testGenerateExports ( ) {
args . add ( STRING0 ) ;
- test ( STRING1 ,
- STRING2 +
+ test ( STRING3 ,
+ STRING4 +
STRING5 ) ;
}
<nb> public final class CommandLineRunnerTest extends TestCase {
COMMENT
private void test... | Make sure CommandLineRunnerTest checks the exit code |
<nb> public interface World {
public int getMaxHeight ( ) ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public int getSeaLevel ( ) ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Added world getSeaLevel |
<nb> public interface LogoutHandler {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
void logout ( HttpServletRequest request , HttpServletResponse response , Authentication authentication ) ; | Added Id keyword |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JavadocMethodCheck extends AbstractTypeAwareCheck {
private boolean allowMissingPropertyJavadoc ;
COMMENT
- private List < String > allowedAnnotations = Arr... | Replace Arrays asList with Collections singletonList |
<nb> public class WifiStressTest
mOutputWriter = new BufferedWriter ( new FileWriter ( new File (
Environment . getExternalStorageDirectory ( ) , OUTPUT_FILE ) , true ) ) ;
mAct . turnScreenOn ( ) ;
+ if ( mAct . mWifiManager . isWifiApEnabled ( ) ) {
+ SINGLE
+ assertTrue ( mAct . mWifiManager . setWifiApE... | Fix test flakiness |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class ArrayAdapter < T > extends BaseAdapter implements List < T > , Dy
return result ;
}
+ COMMENT
+ COMMENT
+ ... | Adding ArrayAdapter sort method |
<nb> public class LightweightHint extends UserDataHolderBase implements Hint {
LayoutFocusTraversalPolicyExt . setOverridenDefaultComponent ( null ) ;
}
- layeredPane . repaint ( bounds . x , bounds . y , bounds . width , bounds . height ) ;
+ layeredPane . paintImmediately ( bounds . x , bounds . y , bounds ... | Avoid VCS hint paint artifacts |
<nb> import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT | Change the line number test to generate a class with javax inject Inject rather than c g inject Inject |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ViewBundle implements Bundle {
}
public ViewBundle ( Iterable < ViewRenderer > viewRenderers ) {
- this . viewRenderers = viewRenderers ;
+ this . viewRenderers = ImmutableSet... | Stored ViewRenderer instances resulted from jersey ServiceFinder |
<nb> class SwipeableItemWrapperAdapter < VH extends RecyclerView . ViewHolder > extends Ba
return FLOAT0 ;
case RecyclerViewSwipeManager . AFTER_SWIPE_REACTION_MOVE_TO_SWIPED_DIRECTION :
case RecyclerViewSwipeManager . AFTER_SWIPE_REACTION_REMOVE_ITEM :
- return ( result == RecyclerViewSwipeManager . RESULT_SWI... | Fix SeipeableItemWrapperAdapter getSwipeAmountFromAfterReaction |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PythonFileTypeFactory extends FileTypeFactory {
public void createFileTypes ( @ nonnls @ notnull final FileTypeConsumer con... | we re using separate file type factory for Cython no need to use it here |
<nb> import NAMESPACE ;
COMMENT
public class FailOnTimeoutTest {
private static final int TIMEOUT = NUMBER0 ;
- private static final int DURATION_THAT_EXCEEDS_TIMEOUT = Integer . MAX_VALUE ;
+ private static final int DURATION_THAT_EXCEEDS_TIMEOUT = NUMBER1 * NUMBER1 * NUMBER2 ; SINGLE
@ rule
public fin... | Use a smaller DURATION_THAT_EXCEEDS_TIMEOUT value |
<nb> public class OWServerBinding extends
if ( server == null ) {
needsUpdate = false ;
logger . error ( STRING0 + unit ) ;
+
+ continue ;
}
else {
age = System . currentTimeMillis ( ) - server . lastUpdate ; | Fix potential null pointer exception if using incorrect interface |
<nb> public class InputMethodButton extends ImageView {
icon = getShortcutInputMethodAndSubtypeDrawable ( ) ;
break ;
}
- if ( icon == null ) {
- mIcon . setImageResource ( R . drawable . ic_sysbar_ime_default ) ;
- } else {
- mIcon . setImageDrawable ( icon ) ;
+ if ( mIcon != null ) {
+ if ( icon ==... | Fix null pointer exception |
<nb> public class InputMethodService extends AbstractInputMethodService {
super . onDestroy ( ) ;
mRootView . getViewTreeObserver ( ) . removeOnComputeInternalInsetsListener (
mInsetsComputer ) ;
+ finishViews ( ) ;
if ( mWindowAdded ) {
SINGLE
SINGLE
<nb> public class InputMethodService extends Abstrac... | Call onFinishInputView in onDestroy |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public interface Encoder < T > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Improve Encoder Javadoc |
<nb> public class WebUI {
}
}
- @ suppresswarnings ( { STRING0 , STRING1 } )
private void appendElements ( StringBuilder sb , String component , String type , List < ApiElement > elementList ) {
- Collections . sort ( elementList , new Comparator ( ) {
+ Collections . sort ( elementList , new Comparator <... | Parameterized the Comparator so warning supression not needed |
<nb> public class ConnectionPool implements Closeable , Dumpable
LOG . debug ( STRING0 , next , maxConnections , connection ) ;
if ( activate ( connection ) )
connectionPromise . succeeded ( connection ) ;
+ else
+ connectionPromise . failed ( new IllegalStateException ( STRING1 ) ) ;
}
@ override | Fail the callback in case we cannot activate a newly created connection |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class CxfPayloadConverter {
Document doc = StaxUtils . read ( src ) ;
el = doc . getDocumentElement ( ) ;
} catch ( XMLSt... | Throw proper exception instead of printing stack trace |
<nb> public class PropertiesComponent extends DefaultComponent {
}
public PropertiesComponent ( boolean isDefaultCreated ) {
+ this ( ) ;
this . isDefaultCreated = isDefaultCreated ;
} | Fixed ctr must setup the default functions |
<nb> public class DBUtils {
SHOW_PROJECTION , null ,
null , null ) ;
+ Series show = null ;
if ( details != null ) {
if ( details . moveToFirst ( ) ) {
- Series show = new Series ( ) ;
+ show = new Series ( ) ;
show . setId ( details . getString ( NUMBER0 ) ) ;
show . setActors ( details . getStri... | Fix cursor not getting closed |
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
@ configuration
@ conditionalonclass ( Mongo . class )
@ enableconfigurationproperties ( MongoProperties . class )
- @ conditionalonmi... | Fix TypeNotPresentExceptionProxy error with Mongo |
<nb> public class DefaultChannelPipeline implements ChannelPipeline {
private void checkDuplicateName ( String name ) {
if ( name2ctx . containsKey ( name ) ) {
- throw new IllegalArgumentException ( STRING0 ) ;
+ throw new IllegalArgumentException ( STRING1 + name ) ;
}
} | Include the name which was the cause of the IllegalArgumentException while try to add a handler to the pipeline |
<nb> public class CodeCompletionHandlerBase implements CodeInsightActionHandler {
Document document = fileCopy . getViewProvider ( ) . getDocument ( ) ;
assert document != null : STRING0 ;
initContext . getFileCopyPatcher ( ) . patchFileCopy ( fileCopy , document , initContext . getOffsetMap ( ) ) ;
- PsiDocume... | always commit the host document during completion |
<nb> public class LocalFileListFragment extends ExtendedListFragment {
Log_OC . i ( TAG , STRING0 ) ;
super . onActivityCreated ( savedInstanceState ) ;
- mAdapter = new LocalFileListAdapter ( mContainerActivity . getInitialDirectory ( ) , getActivity ( ) ) ;
+ mDirectory = mContainerActivity . getInitialDire... | Fix actionBar title upper one level than content in UploadFilesActivity when press back button |
<nb> public class BlockChainTest {
chain = new BlockChain ( unitTestParams , wallet , blockStore ) ;
coinbaseTo = wallet . keychain . get ( NUMBER0 ) . toAddress ( unitTestParams ) ;
+
+ testNet . checkBlockDifficulty = true ;
}
@ test | Fix unit test |
<nb> public class SimpleResourceManagementStrategy implements ResourceManagementStrat
) ;
}
- final boolean atSteadyState = currentlyProvisioning . isEmpty ( )
- && currentlyTerminating . isEmpty ( )
- && validWorkers . size ( ) == targetWorkerCount ;
- final boolean shouldScaleUp = atSteadyState
+ fina... | Fix case where target current but target is too low |
<nb> public final class ZWaveNetworkMonitor implements ZWaveEventListener {
logger . debug ( STRING0 , node . getNodeId ( ) ) ;
SINGLE
SINGLE
- if ( isNodeHealing ( node . getNodeId ( ) ) ) {
+ if ( ! isNodeHealing ( node . getNodeId ( ) ) ) {
logger . debug ( STRING1 , node . getNodeId ( ) ) ;
healNode... | Fix logic issue with starting DEAD node heal |
<nb> public class ZLFSManager {
}
public String getRootDirectoryPath ( ) {
- return File . listRoots ( ) . length == NUMBER0 ? File . listRoots ( ) [ NUMBER1 ] . getParent ( ) : STRING0 ;
+ return File . listRoots ( ) . length == NUMBER0 ? File . listRoots ( ) [ NUMBER1 ] . getPath ( ) : STRING0 ;
}
pub... | fixed NPE under Linux hope this fix is also correct for Windows |
<nb> public class MovieController extends BaseUiController < MovieController . MovieUi ,
fetchTmdbConfiguration ( ) ;
}
- fetchWatchingMovieIfNeeded ( ) ;
+ if ( isLoggedIn ( ) ) {
+ fetchWatchingMovieIfNeeded ( ) ;
+ }
}
@ override | Fix crash on startup when not logged in |
<nb> public class RoutingHelper {
}
SINGLE
- double projectDist = mode == ApplicationMode . CAR ? POSITION_TOLERANCE * FLOAT0 : POSITION_TOLERANCE ;
+ double projectDist = mode == ApplicationMode . CAR ? POSITION_TOLERANCE : POSITION_TOLERANCE / NUMBER0 ;
if ( dist < projectDist ) {
Location nextLocation ... | update current projection to the calculated route |
<nb> import NAMESPACE ;
import static NAMESPACE ;
public class MavenPlugin implements Serializable {
+
+ static final long serialVersionUID = - NUMBER0 ;
+
private final String myGroupId ;
private final String myArtifactId ;
private final String myVersion ; | Add serialVersionUID for MavenPlugin class |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class NamedBeanHolder < T > implements NamedBean {
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
public NamedBeanHolder ( String beanName , T beanInstance ) {
+ Assert . notNull ( beanName , STRING... | NamedBeanHolder enforces bean name |
<nb> public class AddTenantCommand extends AbstractBaseAdminCommand implements Comman
@ override
public boolean execute ( ) throws Exception {
- if ( _controllerHost == null ) {
- _controllerHost = NetUtil . getHostAddress ( ) ;
+ if ( _controllerAddress == null ) {
+ if ( _controllerHost == null ) {
+ ... | Fix quickstart when using non default ports |
<nb> public class CentralAuthenticationServiceImplTests extends AbstractCentralAuthen
@ test ( expected = UnauthorizedServiceException . class )
public void verifyValidateServiceTicketWithInvalidService ( ) throws Exception {
- final AuthenticationContext ctx = TestUtils . getAuthenticationContext ( getAuthenti... | allow the credential to ignore the typedid if configured |
<nb> public class PythonUnitTestConfigurationProducer extends PythonTestConfiguration
}
if ( ! result . isEmpty ( ) ) return true ;
}
+ else return true ;
}
return false ;
} | fixed unittest producer |
<nb> public class StorageDir {
mUserIdToTempBlockIdsMap = new HashMap < Long , Set < Long > > ( NUMBER0 ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public static StorageDir newStorag... | add javadoc for newStorageDir |
<nb> import static NAMESPACE ;
@ runwith ( MockitoJUnitRunner . class )
public class AddOnCollectionUnitTest {
- SINGLE
- private static final Path DIRECTORY = Paths . get ( STRING0 ) ;
+ private static final Path DIRECTORY = Paths . get ( STRING1 ) ;
+ SINGLE
private ZapXmlConfiguration configA ;
p... | Switched path back for travis |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TestingPrestoServer
. add ( new JaxrsModule ( true ) )
. add ( new MBeanModule ( ) )
. add ( new T... | Fix memory leak in TestingPrestoServer |
<nb> public final class WebViewCore {
mInitialViewState . mViewScale = mInitialViewState . mTextWrapScale =
mViewportInitialScale / FLOAT0 ;
} else if ( mViewportWidth > NUMBER0 && mViewportWidth < webViewWidth &&
- ! mWebView . getSettings ( ) . getUseFixedViewport ( ) ) {
+ ! getSettings ( ) . getUseFixedVi... | Use local variable instead of webview method |
<nb> public class AtmosphereFramework implements ServletContextProvider {
}
}
- public void initWebSocket ( ) {
+ protected void initWebSocket ( ) {
if ( webSocketProtocolInitialized ) return ;
if ( webSocketProtocol == null ) {
try { | Revert Change the scope |
<nb> public class Span implements Serializable , Iterable < Integer > {
COMMENT
COMMENT
public static int distance ( Span a , Span b ) {
- if ( Span . overlaps ( a , b ) ) {
- return NUMBER0 ;
- } else if ( a . contains ( b ) || b . contains ( a ) ) {
- return NUMBER0 ;
- } else if ( a . isBefore ( b ) ... | Implemented a lazy factor and fixes to table factor |
<nb> public abstract class CRBaseTest < T extends CRBase > {
}
}
@ test
+ public void shouldGetErrorsWhenDeserializedFromEmptyBlock ( )
+ {
+ String json = STRING0 ;
+
+ Class < ? extends CRBase > typeOfT = null ;
+ for ( T example : getGoodExamples ( ) . values ( ) ) {
+ typeOfT = example . getClas... | should handle empty json blocks |
<nb> public class Node extends Spatial implements Savable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public int attachChild ( Spatial child ) {
if ( child == null ) | fixed Node attachChild javadoc |
<nb> public class OLocalPaginatedStorage extends OStorageLocalAbstract {
if ( lastCheckPoint == null ) {
OLogManager . instance ( ) . info ( this , STRING0 ) ;
restoreFromBegging ( ) ;
+ return ;
}
OWALRecord checkPointRecord = writeAheadLog . read ( lastCheckPoint ) ; | fixed NPE bug after restore |
<nb> public class K2JSCompiler extends CLICompiler < K2JSCompilerArguments , K2JSCompile
return ExitCode . INTERNAL_ERROR ;
}
- JetCoreEnvironment environmentForJS = JetCoreEnvironment . createCoreEnvironmentForJS ( rootDisposable , new CompilerConfiguration ( ) ) ;
-
- for ( String sourceFile : arguments .... | Passing sources via compiler configuration in K2JSCompiler |
<nb> public class NoopLimitSpec implements LimitSpec
{
return Functions . identity ( ) ;
}
+
+ @ override
+ public String toString ( )
+ {
+ return STRING0 ;
+ }
} | add toString to NoopLimitSpec |
<nb> public class TextClock extends TextView {
filter . addAction ( Intent . ACTION_TIME_CHANGED ) ;
filter . addAction ( Intent . ACTION_TIMEZONE_CHANGED ) ;
- getContext ( ) . registerReceiver ( mIntentReceiver , filter , null , getHandler ( ) ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SIN... | Fixed cross profile usage of TextClock |
<nb> public class HttpMessages {
private static final Map < Locale , HttpMessages > instances =
new ConcurrentHashMap < > ( ) ;
- private static final HttpMessages DEFAULT = getInstance ( Locale . getDefault ( ) ) ;
+ private static final HttpMessages DEFAULT = new HttpMessages (
+ StringManager . getManage... | Fix circular logic as per rjung s suggestion |
<nb> public class RestMainAction extends BaseRestHandler {
SINGLE
if ( ! request . hasParam ( STRING0 ) ) {
- builder . prettyPrint ( ) ;
+ builder . prettyPrint ( ) . lfAtEnd ( ) ;
}
builder . startObject ( ) ; | Add line feed for prettified main REST action |
<nb> public class SpringExpressionsLexerExtender extends SpringExpressionsLexer {
SINGLE
}
- private String getTokenForId ( int id ) {
- if ( id == - NUMBER0 )
- return STRING0 ;
- return getTokenNames ( ) [ id ] ;
- }
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
}
<nb> public class Spri... | temporarily commnted out code to remove the warnings this code may get used for error recovery |
<nb> public class PyUnreachableCodeInspection extends LocalInspectionTool {
private void markFollowingStatementAsWrong ( PsiElement node ) {
SINGLE
PsiElement first_after_us = PyUtil . getFirstNonCommentAfter ( node . getNextSibling ( ) ) ;
- if ( first_after_us instanceof PyElement && first_after_us . getTextL... | Adds checks before setting a problem descriptor |
<nb> public class RequestCreator {
}
int measuredWidth = target . getMeasuredWidth ( ) ;
int measuredHeight = target . getMeasuredHeight ( ) ;
- if ( measuredWidth == NUMBER0 && measuredHeight == NUMBER0 ) {
+ if ( measuredWidth == NUMBER0 || measuredHeight == NUMBER0 ) {
PicassoDrawable . setPlaceholder ( ... | Switch conditional to OR |
<nb> public class Environment extends AbstractLifeCycle {
COMMENT
COMMENT
COMMENT
- public void setJerseyProperty ( String name ,
- @ nullable Object value ) {
+ public void setJerseyProperty ( String name , @ nullable Object value ) {
config . getProperties ( ) . put ( checkNotNull ( name ) , value ) ;
... | Enforce the existence of a replacement Jersey container |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
final class WeakKeySet {
private Map < Key < ? > , Multiset < Object > > backingMap ;
-
+
COMMENT
COMMENT
COMMENT
<nb> final class WeakKeySet... | Delete unused code from WeakKeySet |
<nb> public class DeviceListTest {
final DeviceListResponse response = request . execute ( ) ;
assertFalse ( response . isError ( ) ) ;
- assertEquals ( STRING0
+ assertEquals ( STRING1
+ ACCESS_TOKEN , request . getQuery ( ) ) ;
assertEquals ( STRING2 , response . getStatus ( ) ) ;
<nb> public class ... | Test set update |
<nb> public class LandingPage extends ListActivity implements View . OnCreateContextMen
Imps . Provider . DEFAULT_SORT_ORDER ) ;
Intent intent = getIntent ( ) ;
- if ( intent . getAction ( ) . equals ( ImApp . ACTION_QUIT ) ) {
+ if ( ImApp . ACTION_QUIT . equals ( intent . getAction ( ) ) ) {
quit ( ) ;
... | Fix NPE in quit action |
<nb> public final class ChannelImpl implements Channel {
private class CallImpl < ReqT , RespT > extends Call < ReqT , RespT > {
private final MethodDescriptor < ReqT , RespT > method ;
private final SerializingExecutor callExecutor ;
+ private final boolean unaryRequest ;
private ClientStream stream ;
pu... | Optimize number of DATA frames for unary requests |
<nb> public class OperationSetPersistentPresenceIcqImpl
SINGLE
}
}
+
+ SINGLE
+ if ( responseRetriever . status == - NUMBER0 )
+ return IcqStatusEnum . OFFLINE ;
return icqStatusLongToPresenceStatus ( responseRetriever . status ) ;
}
<nb> public class OperationSetPersistentPresenceIcqImpl
COMMEN... | Fix some icq status issues |
<nb> public final class FileSystemMaster extends AbstractMaster {
checkPermission ( FileSystemAction . WRITE , alluxioPath , true ) ;
SINGLE
+ SINGLE
boolean pathExists = false ;
try {
mInodeTree . getInodeByPath ( alluxioPath ) ;
<nb> public final class FileSystemMaster extends AbstractMaster {
SINGL... | Add todos for cleanliness and validation |
<nb> public final class BlockMasterSync implements HeartbeatExecutor {
mBlockWorker . removeBlock ( mSessionId , mBlockId ) ;
LOG . info ( STRING0 , mBlockId , mSessionId ) ;
} catch ( IOException e ) {
- LOG . warn ( STRING1 , mBlockId , e ) ;
+ LOG . warn ( STRING2 , mBlockId , e ) ;
} catch ( InvalidWork... | Remove misleading part of error message |
<nb> public class FeedSubscriptionService {
public Feed subscribe ( User user , String url , String title ,
FeedCategory category ) {
- if ( url . startsWith ( applicationSettingsService . get ( ) . getPublicUrl ( ) ) ) {
+ final String pubUrl = applicationSettingsService . get ( ) . getPublicUrl ( ) ;
+ if... | Avoid a NPE if the public URL is not set |
<nb> public class DBTCPConnector implements DBConnector {
retry = retries > NUMBER0 && ! coll . _name . equals ( STRING0 )
&& ! ( ioe instanceof SocketTimeoutException ) && _error ( ioe , slaveOk ) ;
if ( ! retry ) {
- throw new MongoException . Network ( STRING1 , ioe ) ;
+ throw new MongoException . Network... | adding more info to error message when cant call something |
<nb> public abstract class ModalDialogBase extends DialogBox
hide ( ) ;
removeFromParent ( ) ;
- if ( originallyActiveElement_ != null
- && ! originallyActiveElement_ . getTagName ( ) . equalsIgnoreCase ( STRING0 ) )
+ try
{
- Document doc = originallyActiveElement_ . getOwnerDocument ( ) ;
- if ( doc... | Squelch client error |
<nb> public class WebSocketConnection extends AsyncConnection {
COMMENT
COMMENT
private native JavaScriptObject createJSWebSocket ( final String url , final WebSocketConnection webSocket ) / * - {
- var jsWebSocket = new WebSocket ( url , [ ' binary ' ] ) ;
+ var jsWebSocket = new WebSocket ( url ) ;
jsWebS... | Fixing web socket initialization |
<nb> public class JavaFindUsagesHandler extends FindUsagesHandler {
@ notnull
public PsiElement [ ] getSecondaryElements ( ) {
PsiElement element = getPsiElement ( ) ;
+ if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) return PsiElement . EMPTY_ARRAY ;
if ( element instanceof PsiField ) {
... | do not show message dialog in test mode |
<nb> public interface TransformationDescriptionBuilder {
COMMENT
COMMENT
COMMENT
+ public static ResourceTransformationDescriptionBuilder createSubsystemInstance ( ) {
+ return new ResourceTransformationDescriptionBuilderImpl ( null ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+... | Add createSubsystemInstance method |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.