diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class FollowerHandler extends Thread {
int type = bb . getInt ( ) ;
bb = bb . slice ( ) ;
leader . zk . submitRequest ( null , sessionId , type , cxid , bb ,
- null ) ;
+ qp . getAuthinfo ( ) ) ;
break ;
default :
} | Fixed NullPointerException when authInfo was used |
<nb> public final class LineageFileSystemTest {
private LineageContext mLineageContext ;
private LineageMasterClient mLineageMasterClient ;
private LineageFileSystem mAlluxioLineageFileSystem ;
- private FileSystemContext mFileSystemContext ;
- private FileSystemMasterClient mFileSystemMasterClient ;
COMM... | SMALLFIX Converted fields to local variables |
<nb> public class ProducteevSyncProvider extends SyncProvider < ProducteevTaskContainer
protected void push ( ProducteevTaskContainer local , ProducteevTaskContainer remote ) throws IOException {
long idTask = local . pdvTask . getValue ( ProducteevTask . ID ) ;
long idDashboard = local . pdvTask . getValue ( Pro... | we weren t syncing responsible person |
<nb> public abstract class TomcatBaseTest extends TestCase {
StandardServer server = ( StandardServer ) tomcat . getServer ( ) ;
AprLifecycleListener listener = new AprLifecycleListener ( ) ;
server . addLifecycleListener ( listener ) ;
+ connector . setAttribute ( STRING0 , Integer . valueOf ( NUMBER0 ) ) ;
... | Make life easier when debugging failing tests |
<nb> public class Daemon implements Runnable , Stoppable {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void stop ( ) {
LOGGER . debug ( STRING0 ) ; | added comment on the Daemon class about how why it doesn t quite conform to the Stoppable contract |
<nb> public class SpringApplicationBuilderTests {
}
@ test
+ public void initializersCreatedOnceForChild ( ) throws Exception {
+ SpringApplicationBuilder application = new SpringApplicationBuilder (
+ ExampleConfig . class ) . child ( ChildConfig . class ) . web ( false ) ;
+ this . context = application... | Add test for initializers when child context created |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RoboWindow extends Window {
viewRootImpl = createViewRootImpl ( context ) ;
WindowManager . LayoutParams layoutParams = new WindowManager . LayoutParams ( ) ;... | remove ActionBar usage |
<nb> public abstract class ToolWindowHeader extends JPanel implements Disposable {
return icon != null ? icon : super . getActiveHoveredIcon ( ) ;
}
} ) ;
- myButtonPanel . add ( Box . createHorizontalStrut ( NUMBER0 ) ) ;
+ myButtonPanel . add ( Box . createHorizontalStrut ( NUMBER1 ) ) ;
actionAdded = tru... | give me some space |
<nb> public class PlanGeneratorTest {
COMMENT
private GraphPath [ ] buildPaths ( ) {
SINGLE
- RoutingRequest options = new RoutingRequest ( new TraverseModeSet (
- TraverseMode . WALK , TraverseMode . BICYCLE , TraverseMode . TRANSIT ) ) ;
+ RoutingRequest options = new RoutingRequest ( STRING0 ) ;
Grap... | use new qualified mode specification in tests |
<nb> class ProxyObjectType extends ObjectType {
public String toDebugHashCodeString ( ) {
return STRING0 + referencedType . toDebugHashCodeString ( ) + STRING1 ;
}
+
+ @ override
+ public ObjectType getTypeOfThis ( ) {
+ if ( referencedObjType != null ) {
+ return referencedObjType . getTypeOfThis ( ) ;... | ProxyObjectType should delegate subtype supertype as they may have custom implementations different from JSType or ObjectType |
<nb> public abstract class GitHandler {
startHandlingStreams ( ) ;
}
catch ( Throwable t ) {
- LOG . error ( t ) ;
+ if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) || ! myProject . isDisposed ( ) ) {
+ LOG . error ( t ) ; SINGLE
+ }
cleanupEnv ( ) ;
myListeners . getMulticaster ( ... | git Don t report git process start error during unit test disposal |
<nb> public class DBTokenStore implements DelegationTokenStore {
@ override
public String [ ] getMasterKeys ( ) throws TokenStoreException {
- return ( String [ ] ) invokeOnRawStore ( STRING0 , null , null ) ;
+ return ( String [ ] ) invokeOnRawStore ( STRING0 , new Object [ NUMBER0 ] ) ;
}
@ override
... | DBTokenStore gives compiler warnings Gunther Hagleitner via Ashutosh Chauhan |
<nb> public class TelephonyManager {
}
SINGLE
+ COMMENT
public static final int APPTYPE_SIM = PhoneConstants . APPTYPE_SIM ;
+ COMMENT
public static final int APPTYPE_USIM = PhoneConstants . APPTYPE_USIM ;
+ COMMENT
public static final int APPTYPE_RUIM = PhoneConstants . APPTYPE_RUIM ;
+ COMMENT
p... | Add comments to apptype and authtype constants |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public abstract class ODatabasePool < DB extends ODatabase > implements OResourcePoolListener < String , DB > {
private static final int DEF_WAIT_TIMEOUT = NUMBER0 ;
<nb> public abstract class ODatabase... | Rollbacked the database when released to be sure no pending changes remains |
<nb> public class TestDescription {
@ override
public boolean equals ( Object obj ) {
- return ( obj instanceof TestDescription ) &&
- this . hashCode ( ) == obj . hashCode ( ) ;
+ if ( ! ( obj instanceof TestDescription ) ) {
+ return false ;
+ }
+ TestDescription other = ( TestDescription ) obj ;
... | Fix bugs in TestDescription equals |
<nb> public class ConversationFragment extends Fragment {
@ override
public void onClick ( View v ) {
- AlertDialog dialog = UIHelper . getVerifyFingerprintDialog (
- ( ConversationActivity ) getActivity ( ) , conversation ,
- fingerprintWarning ) ;
- dialog . show ( ) ;
+ if ( conversation . getOtrFing... | fixed rare npe in verify otr fingerprint dialog |
<nb> public class StandardContext extends ContainerBase
COMMENT
COMMENT
COMMENT
- public boolean swallowAbortedUploads = true ;
+ private boolean swallowAbortedUploads = true ;
COMMENT
COMMENT
<nb> public class StandardContext extends ContainerBase
return false ;
}
- }
+ } | Reduce visibility of field with public getter |
<nb> import NAMESPACE ;
public class SnacktoryRenderer extends WebViewRenderer {
+ private static SimpleDateFormat sDateFormat = new SimpleDateFormat ( STRING0 ) ;
+
private GetPageAsTextTask mGetPageAsTextTask ;
private TouchIconTransformation mTouchIconTransformation ;
<nb> public class SnacktoryRen... | Use shorter month abbreviation for date |
<nb> class Http2UpgradeHandler extends AbstractStream implements InternalHttpUpgradeH
private HpackEncoder getHpackEncoder ( ) {
if ( hpackEncoder == null ) {
-
hpackEncoder = new HpackEncoder ( remoteSettings . getHeaderTableSize ( ) ) ;
}
return hpackEncoder ; | Remove unnecessary ws |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class StandardServer
public StandardServer ( ) {
super ( ) ;
- ServerFactory . setServer ( this ) ;
globalNamingRes... | Remove last reference to ServerFactory |
<nb> public class WPTitleBar extends RelativeLayout {
initViews ( ) ;
showDashboard . postDelayed ( new Runnable ( ) {
public void run ( ) {
- if ( dashboard . getVisibility ( ) == View . GONE ) {
- showDashboardOverlay ( delay ) ;
+ try {
+ if ( dashboard . getVisibility ( ) == View . GONE ) {
+ showDa... | preventing f c |
<nb> public final class ApplicationContextFacade
try {
return invokeMethod ( context , methodName , params ) ;
} catch ( Throwable t ) {
- throw new RuntimeException ( t . getMessage ( ) ) ;
+ throw new RuntimeException ( t . getMessage ( ) , t ) ;
}
} | Include root cause exception into the one produced by ApplicationContextFacade doPrivileged |
<nb> public class CaretImpl extends UserDataHolderBase implements Caret {
}
try {
- EditorActionHandler handler = EditorActionManager . getInstance ( ) . getActionHandler (
- IdeActions . ACTION_EDITOR_SELECT_WORD_AT_CARET ) ;
- handler . execute ( myEditor , myEditor . getDataContext ( ) ) ;
+ EditorActi... | avoid deprecated method usage |
<nb> public class OServer {
if ( System . getProperty ( OServerConfiguration . PROPERTY_CONFIG_FILE ) != null )
config = System . getProperty ( OServerConfiguration . PROPERTY_CONFIG_FILE ) ;
+ Orient . instance ( ) . startup ( ) ;
+
startup ( new File ( config ) ) ;
Orient | Forced the startup of OrientDB on server startup |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
import static NAMESPACE ;
@ jsonautodetect ( fieldVisibility = JsonAutoDetect . Visibility . ANY )
<nb> public class RequestSetting extends BaseResourceSetting {
. add ( STRING0 , method )
. add ( STRING1 , hea... | corrected typo for json path in request setting toString |
<nb> public abstract class AbstractHttp11Protocol extends AbstractProtocolHandler {
public void setSoTimeout ( int i ) {
endpoint . setSoTimeout ( i ) ;
setAttribute ( STRING0 , STRING1 + i ) ;
- setAttribute ( STRING2 , STRING1 + i ) ;
setAttribute ( STRING3 , STRING1 + i ) ;
} | Fix another mix up of connectionUploadTimeout and connectionTimeout |
<nb> public class VirtualFilePointerTest extends PlatformLangTestCase {
PlatformTestUtil . startPerformanceTest ( STRING0 , NUMBER0 , new ThrowableRunnable ( ) {
@ override
public void run ( ) throws Exception {
- Disposable parent = Disposer . newDisposable ( ) ;
for ( int i = NUMBER1 ; i < NUMBER2 ; i ++ ) ... | don t measure Disposer performance on large family |
<nb> public class ModelMetricsClustering extends ModelMetricsUnsupervised {
int clus = ( int ) preds [ NUMBER0 ] ;
double [ ] colSum = new double [ _colSum . length ] ;
double [ ] colSumSq = new double [ _colSumSq . length ] ;
- double sqr = hex . genmodel . GenModel . KMeans . distance ( centers [ clus ] , dat... | Revert Missed name change |
<nb> public class NotificationsListFragment extends Fragment implements Bucket . Listen
. listener ( new UndoBarController . AdvancedUndoListener ( ) {
@ override
public void onHide ( Parcelable parcelable ) {
- if ( ! isAdded ( ) ) return ;
SINGLE
SINGLE
CommentActions . moderateCommentForNote ( note , n... | Allow the moderation operation to continue even if the activity was destroyed |
<nb> public class Skysphere implements RenderableObject {
}
public void update ( ) {
- _turbidity = FLOAT0 + ( float ) _parent . getActiveHumidity ( ) * ( float ) _parent . getActiveTemperature ( ) ;
+ _turbidity = FLOAT1 + ( float ) _parent . getActiveHumidity ( ) * ( float ) _parent . getActiveTemperature (... | Changes the skysphere to produce more blueish colors |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
}
public void screenOnStoppedLw ( ) {
- if ( ! mKeyguardMediator . isShowing ( ) ) {
+ if ( ! mKeyguardMediator . isShowing ( ) && mPowerManager . isScreenOn ( ) ) {
long curTime = SystemClock . uptimeMillis ( ) ;
mPowerManager . userAc... | Don t trigger user activity in screenOnStoppedLw if the screen is off |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
impor... | Adding Stage getRuntime |
<nb> public class SslBytesServerTest extends SslBytesTest
proxy . flushToServer ( record ) ;
SINGLE
- record = proxy . readFromServer ( ) ;
+ try
+ {
+ record = proxy . readFromServer ( ) ;
+ }
+ catch ( IOException e )
+ {
+ e . printStackTrace ( ) ;
+ }
proxy . flushToClient ( record ) ;
... | Fix SslBytesServerTest failing on MacOS |
<nb> public class GwtInput implements Input {
this . touched [ NUMBER0 ] = false ;
if ( processor != null ) processor . touchUp ( touchX [ NUMBER0 ] , touchY [ NUMBER0 ] , NUMBER0 , getButton ( e . getButton ( ) ) ) ;
}
-
+ if ( e . getType ( ) . equals ( getMouseWheelEvent ( ) ) ) {
+ if ( processor != nul... | Handle mouse wheel event in GWT backend |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
@ runwith ( JUnit4TestRunner . class )
- @ ignore ( STRING0 )
public class CamelDnsTest extends AbstractFeatureTest {
public static fina... | Enabled two Karaf component tests |
<nb> public class TestVersionedCatalogLoader extends CatalogTestSuiteNoDB {
@ test ( groups = STRING0 , expectedExceptions = CatalogApiException . class )
public void testLoadCatalogFromClasspathResourceBadFolder ( ) throws CatalogApiException {
- loader . loadDefaultCatalog ( STRING1 ) ;
+ loader . loadDefau... | Fix Unit Test to match path folders |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | fixed compile warnnings |
<nb> import NAMESPACE ;
COMMENT
public class MarkerConverter {
- private static final Language LANGUAGE = Language . CATALAN ;
+ private static final Language LANGUAGE = Language . GERMAN ;
public static void main ( String [ ] args ) throws SAXException , ParserConfigurationException , IOException {
fin... | XML escape attribute values |
<nb> public interface TransactionListener {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- void beforeCommit ( Set < Type < ? > > entities ) ;
+ void beforeCommit ( Set < Type < ? > > types ) ;
COMMENT
COMMENT | Fix parameter name |
<nb> public class CommandLineRunner extends
public static List < SourceFile > getDefaultExterns ( ) throws IOException {
InputStream input = CommandLineRunner . class . getResourceAsStream (
STRING0 ) ;
+ if ( input == null ) {
+ SINGLE
+ input = CommandLineRunner . class . getResourceAsStream ( STRING1 ) ;... | make the externs zip a bit more robust for different build environments |
<nb> final class AutoFocusManager implements Camera . AutoFocusCallback {
synchronized void stop ( ) {
if ( useAutoFocus ) {
- camera . cancelAutoFocus ( ) ;
+ try {
+ camera . cancelAutoFocus ( ) ;
+ } catch ( RuntimeException re ) {
+ SINGLE
+ Log . w ( TAG , STRING0 , re ) ;
+ }
}
if ( outsta... | Swallow weird RuntimeException on cancelling auto focus |
<nb> public class ReaderPostAdapter extends RecyclerView . Adapter < RecyclerView . ViewHol
holder . imgMore . setOnClickListener ( null ) ;
}
- SINGLE
- boolean showFollowButton = ! hasSiteHeader ( ) && ! mIsLoggedOutReader ;
+ SINGLE
+ boolean showFollowButton = ! hasSiteHeader ( )
+ && ! mIsLoggedOut... | Don t show follow button for Followed Sites |
<nb> public final class Utilities {
return gWork ;
} catch ( FileNotFoundException fnf ) {
SINGLE
- LOG . info ( STRING0 + fnf . getMessage ( ) ) ;
+ LOG . debug ( STRING0 + fnf . getMessage ( ) ) ;
LOG . info ( STRING1 + path ) ;
return null ;
} catch ( Exception e ) { | Changing log level in Utilities getBaseWork Nemon Lou reviewed by Ferdinand Xu |
<nb> public class SpecialFiles {
excludedFiles . add ( STRING0 ) ; SINGLE
excludedFiles . add ( STRING1 ) ; SINGLE
- excludedFiles . add ( STRING2 ) ; SINGLE
+ excludedFiles . add ( STRING2 ) ; SINGLE
+ excludedFiles . add ( STRING3 ) ; SINGLE
excludedFiles . add ( STRING4 ) ; SINGLE | update excluded files |
<nb> public class BluetoothService extends IBluetooth . Stub {
}
boolean ret ;
- if ( getBondState ( address ) == BluetoothDevice . BOND_BONDED ) {
+ SINGLE
+ SINGLE
+ if ( isRemoteDeviceInCache ( address ) && getRemoteUuids ( address ) != null ) {
String path = getObjectPathFromAddress ( address ) ;
... | Relax the requirement of making a DBUS call for creating the Bluez Device |
<nb> public class GenericFastItemAdapter < Model , Item extends GenericAbstractItem < Mode
mItemAdapter . removeModel ( position ) ;
return this ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public GenericFastItemAdapter < Model , Item > move ( int fromPosition , ... | add support for moving a model with the generic item adapter |
<nb> public class TestDeployTask extends TomcatBaseTest {
setDefaults ( deployTask ) ;
testExecute ( deployTask , STRING0 ) ;
- testExecute ( deployTask , STRING1 ) ;
testExecute ( deployTask , new File ( STRING2 ) . toURI ( ) . toString ( ) ) ;
testExecute ( deployTask , new File ( STRING2 ) . getAbsoluteP... | Fix GUMP build |
<nb> public interface XMPPConnection {
public void sendPacket ( Packet packet ) throws NotConnectedException ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- public void send ( PlainStreamElement element ) throws NotConnect... | Add javadoc for XMPPConnection send PlainStreamElement |
<nb> public class TileAdapter extends RecyclerView . Adapter < Holder > implements TileSta
private void selectPosition ( int position , View v ) {
SINGLE
+ notifyItemRemoved ( mEditIndex ) ;
mTiles . remove ( mEditIndex -- ) ;
mAccessibilityMoving = false ;
move ( mAccessibilityFromIndex , position , v ) ... | Fix QS edit accessibility |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public class IllegalHeaderException extends RuntimeCamelException {
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public class MissingHeaderException extends RuntimeCamelException {
<nb> import NAMESPAC... | Removed the javadoc author tag |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
public class CronTest { | fixing cron syntax test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class EJBComponent extends BasicComponent {
final ComponentView view = ( ComponentView ) serviceController . getValue ( ) ;
final ManagedRe... | Create proxy in a privilidged block |
<nb> public class LineChartRenderer extends LineRadarRenderer {
Entry cur = prev ;
Entry next = dataSet . getEntryForIndex ( mXBounds . min + NUMBER0 ) ;
+ if ( cur == null || next == null ) return ;
+
SINGLE
cubicPath . moveTo ( cur . getX ( ) , cur . getY ( ) * phaseY ) ; | Safeguard for cubic bezier drawing |
<nb> public class ClsRepositoryUseTest extends PsiTestCase {
PsiType type1 = aClass . getFields ( ) [ NUMBER0 ] . getType ( ) ;
PsiElement target1 = PsiUtil . resolveClassInType ( type1 ) ;
assertNotNull ( target1 ) ;
- PsiClass objectClass = myJavaFacade . findClass ( STRING0 , RESOLVE_SCOPE ) ;
+ PsiClass o... | fix cls resolve test expectations |
<nb> class WindowStateAnimator {
setSurfaceBoundaries ( recoveringMemory ) ;
- if ( w . mAttachedHidden || ! w . isReadyForDisplay ( ) || ! w . isDrawnLw ( ) ) {
+ if ( w . mAttachedHidden || ! w . isReadyForDisplay ( ) ) {
if ( ! mLastHidden ) {
SINGLE
mLastHidden = true ;
<nb> class WindowStateAnima... | Defer the Surface show until animation phase |
<nb> public class TourViewActivity extends SherlockFragmentActivity {
try {
dlg . dismiss ( ) ;
} catch ( Exception ex ) {
-
+ ex . printStackTrace ( ) ;
}
startTourView ( ) ;
} ; | added print stack trace |
<nb> public final class SecurityClassLoad {
private static final void loadUtilPackage ( ClassLoader loader )
throws Exception {
final String basePackage = STRING0 ;
- loader . loadClass ( basePackage + STRING1 ) ;
loader . loadClass ( basePackage + STRING2 ) ;
} | Fix startup failure when running with a SecurityManager |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Updated Javadoc of OrderedMemoryAwareThreadPoolExecutor |
<nb> import NAMESPACE ;
public interface Dns {
Dns DEFAULT = new Dns ( ) {
@ override public InetAddress [ ] getAllByName ( String host ) throws UnknownHostException {
+ if ( host == null ) throw new UnknownHostException ( STRING0 ) ;
return InetAddress . getAllByName ( host ) ;
}
} ;
<nb> public final ... | Don t do DNS lookups on null hosts |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class RouterImpl implements Router {
+ @ inject
+ NinjaProperties ninjaProperties ;
+
private final Logger logger =... | Make RouterImpl getReverseRoute respect the context path |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class ToItemPrefsMapper extends MapReduceBase implements
String [ ] tokens = ToItemPrefsMapper . COMMA . split ( value . toString ( ) ) ;
long userID = Long . parseLong ( token... | allow data without prefs as input |
<nb> public class DiagnosticGroups {
}
COMMENT
- protected Map < String , DiagnosticGroup > getRegisteredGroups ( ) {
+ public Map < String , DiagnosticGroup > getRegisteredGroups ( ) {
return ImmutableMap . copyOf ( groupsByName ) ;
} | Broaden access to registered diagnostic groups |
<nb> public class SubmitterMain {
System . exit ( NUMBER0 ) ;
}
- Boolean verbose = true ;
+ Boolean verbose = false ;
Level logLevel = Level . INFO ;
if ( cmd . hasOption ( STRING0 ) ) {
logLevel = Level . ALL ; | make default verbose to false |
<nb> public class ZooClient extends AbstractZooKeeperManager
{
SINGLE
}
- catch ( Exception e )
+ catch ( Throwable e )
{
msgLog . logMessage ( STRING0 , e , true ) ;
throw Exceptions . launderedException ( e ) ; | Log Throwable not just Exception while processing zoo keeper events |
<nb> public abstract class Invocation implements OperationResponseHandler , Runnable {
return nodeEngine . getPartitionService ( ) . getPartition ( partitionId ) ;
}
- @ override
- public boolean isLocal ( ) {
- return true ;
- }
-
private long getCallTimeout ( long callTimeout ) {
if ( callTimeout ... | Moved Invocation isLocal method underneath sendResponse since they are part of the same implementing interface |
<nb> public class Particle extends BaseObject3D {
throw new RuntimeException ( STRING0 ) ;
}
mParticleShader . setCamera ( camera ) ;
+ mParticleShader . setCameraPosition ( camera . getPosition ( ) ) ;
mParticleShader . setPointSize ( mPointSize ) ;
}
} | Set missing camera position for particles |
<nb> class DetectedJavaChangeInfo extends JavaChangeInfoImpl {
isReturnTypeChanged = true ;
}
}
+
+ for ( int i = NUMBER0 , length = Math . min ( newParms . length , oldParameterNames . length ) ; i < length ; i ++ ) {
+ ParameterInfoImpl parm = newParms [ i ] ;
+ if ( parm . getName ( ) . equals ( oldPar... | ignore changes in annotations |
<nb> package 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> public class Request ... | Fix some Eclipse warnings |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PortletDataContextZipWriterTest extends PowerMockito {
@ classrule
@ rule
- public static f... | PortletDataContextZipWriterTest needs MainServletTestRule |
<nb> public class BlockGenericPipe extends BlockContainer {
} else if ( entityplayer . getCurrentEquippedItem ( ) == null ) {
SINGLE
-
+ } else if ( entityplayer . getCurrentEquippedItem ( ) . itemID == Item . sign . shiftedIndex ) {
+ SINGLE
+ return false ;
} else if ( entityplayer . getCurrentEquippe... | Placing signs on Facades |
<nb> public class Intent implements Parcelable {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add note to Intent fillIn javadoc to describe component copying behavior |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public abstract class AbstractMapDataStore < K , V > implements MapDataStore < K , V > { | update java doc |
<nb> public class DynamicListView extends ListView {
return ;
}
- if ( getPositionForView ( switchView ) < getHeaderViewsCount ( ) ) {
+ if ( getPositionForView ( switchView ) < getHeaderViewsCount ( ) || getPositionForView ( switchView ) >= ( getAdapter ( ) . getCount ( ) - getHeaderViewsCount ( ) - getFoote... | Fixed crash when trying to drag into a footer |
<nb> public class DimensionService implements PersistentStateComponent < Element > {
}
String realKey = key + STRING0 + screen . x + STRING0 + screen . y + STRING0 + screen . width + STRING0 + screen . height ;
if ( JBUI . isHiDPI ( ) ) {
- realKey += STRING1 + JBUI . scale ( NUMBER0 ) + STRING2 ;
+ realKey +... | generate real key according dpi settings |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed spelling typos keep IntelliJ s spellchecker happy |
<nb> public class IllegalPathException extends FileSystemException {
super ( message ) ;
}
- public IllegalPathException ( String message , Throwable cause ) {
- super ( message , cause ) ;
- }
} | Remove unused constructor in IllegalPathException |
<nb> public abstract class AbstractHttpServlet extends HttpServlet implements Resourc
String pattern = servletContext . getInitParameter ( STRING0 ) ;
String replace = servletContext . getInitParameter ( STRING1 ) ;
if ( pattern != null && replace != null ) {
- name = name . replaceAll ( pattern , replace ) ;
... | do a bit less logging |
<nb> public abstract class RepositoryPage extends RootPage {
}
SINGLE
- if ( ! allowForkControls ( ) || user == null || ! user . isAuthenticated ) {
+ if ( ! allowForkControls ( ) || ! user . isAuthenticated ) {
SINGLE
add ( new ExternalLink ( STRING0 , STRING1 ) . setVisible ( false ) ) ;
add ( new Ext... | findbugs Remove unnecessary null check in RepositoryPage |
<nb> public class JarHell {
logger . debug ( STRING0 , path ) ;
continue ;
}
- if ( path . endsWith ( STRING1 ) ) {
+ if ( path . toString ( ) . endsWith ( STRING1 ) ) {
if ( ! seenJars . add ( path ) ) {
logger . debug ( STRING2 , path ) ;
continue ; SINGLE | fix broken usage of path api |
<nb> public interface TxIdGenerator
public int getCurrentMasterId ( )
{
- throw new RuntimeException ( STRING0 ) ;
+ return XaLogicalLog . MASTER_ID_REPRESENTING_NO_MASTER ;
}
} ;
<nb> public class XaLogicalLog
ReadableByteChannel result = new RandomAccessFile ( name , STRING1 ) . getChannel ( ) ;
... | Implemented missing functions for master id per committed tx |
<nb> public class Tomcat {
COMMENT
COMMENT
public Service getService ( ) {
- return ( Service ) getServer ( ) . findServices ( ) [ NUMBER0 ] ;
+ return getServer ( ) . findServices ( ) [ NUMBER0 ] ;
}
COMMENT
<nb> public class Tomcat {
COMMENT
COMMENT
public Engine getEngine ( ) {
- Service se... | Fix an IDE nag |
<nb> public final class FileSystemAclIntegrationTest {
private static final int BLOCK_SIZE = NUMBER0 ;
@ classrule
public static LocalAlluxioClusterResource sLocalAlluxioClusterResource =
- new LocalAlluxioClusterResource ( NUMBER1 , BLOCK_SIZE ,
+ new LocalAlluxioClusterResource ( Constants . GB , BLOCK_SIZE... | Replaced an integer literal with predefined sizes in Constants specifically Constants GB |
<nb> public abstract class AbstractHistogram extends AbstractHistogramBase implements
return bucketBaseIndex + offsetInBucket ;
}
+ COMMENT
+ COMMENT
+ COMMENT
int getBucketIndex ( final long value ) {
SINGLE
SINGLE
<nb> abstract class AbstractHistogramIterator implements Iterator < HistogramIterati... | Add several more comments |
<nb> public class JUnitRuleTest {
}
@ test
- public void arg_mismatch_warnings_are_at_the_top ( ) {
- SINGLE
- }
-
- @ test
public void shouldNotWarnAboutUnusedStubsWhenPassed ( ) throws Throwable {
jUnitRule . apply ( new Statement ( ) {
public void evaluate ( ) throws Throwable { | Removed unnecessary test stub |
<nb> public class CXIChunk extends Chunk {
@ override public final int nonzeros ( int [ ] arr ) {
int len = sparseLen ( ) ;
int off = _OFF ;
- final int inc = _valsz + NUMBER0 ;
- for ( int i = NUMBER1 ; i < len ; ++ i , off += inc ) arr [ i ] = UnsafeUtils . get2 ( _mem , off ) & NUMBER2 ;
+ final int inc ... | Fix bug in CXIChunk inflation |
<nb> public abstract class Operation implements DataSerializable {
@ override
public String toString ( ) {
- final StringBuilder sb = new StringBuilder ( STRING0 ) ;
+ final StringBuilder sb = new StringBuilder ( getClass ( ) . getName ( ) ) . append ( STRING1 ) ;
sb . append ( STRING2 ) . append ( serviceN... | Operation toString now displays the actual classname of the operation |
<nb> public class ProfileRouter {
return true ;
}
- COMMENT
- public boolean accessModesEqual ( Ride r1 , Ride r2 ) {
- StopCluster sc1 = r1 . getAccessStopCluster ( ) ;
- StopCluster sc2 = r2 . getAccessStopCluster ( ) ;
- Collection < StopAtDistance > sds1 = fromStopPaths . get ( sc1 ) ;
- Collectio... | remove completely incorrect method with completely incorrect javadoc |
<nb> public class QuickSearchHelper implements ResourceListener {
public boolean search ( SearchPhrase phrase , SearchUICore . SearchResultMatcher resultMatcher ) {
SearchHistoryHelper helper = SearchHistoryHelper . getInstance ( app ) ;
List < SearchHistoryHelper . HistoryEntry > points = helper . getHistoryEntr... | Fix search priority |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class Parser extends Recognizer < Token , ParserATNSimulator < Token >
public Token consume ( ) {
Token o = getCurrentToken ( ) ;
getInpu... | don t pass new term node |
<nb> public class FlashlightController {
new CameraCaptureSession . StateListener ( ) {
@ override
public void onConfigured ( CameraCaptureSession session ) {
- mSession = session ;
+ if ( session . getDevice ( ) == mCameraDevice ) {
+ mSession = session ;
+ } else {
+ session . close ( ) ;
+ }
post... | Fix NPE in FlashlightController |
<nb> public class OSQLHelper {
else if ( t == OType . BYTE )
return Byte . parseByte ( iValue ) ;
else if ( t == OType . DOUBLE )
- return Byte . parseByte ( iValue ) ;
+ return Double . parseDouble ( iValue ) ;
else if ( t == OType . DATE )
return new Date ( Long . parseLong ( iValue ) ) ; | Fixed an issue about conversion with Double types |
<nb> public class ColumnDataClassifier {
}
results = builder . toString ( ) ;
} else {
- if ( ! goldAnswer . equals ( clAnswer ) ) {
- results = clAnswer + STRING0 + nf . format ( cntr . probabilityOf ( clAnswer ) + STRING0 + nf . format ( cntr . probabilityOf ( goldAnswer ) ) ) ;
- } else {
- results = c... | Return the non displayall results to the previous format |
<nb> public final class DrawboardEndpoint extends Endpoint {
boolean dontSwallowException = false ;
try {
char messageType = message . charAt ( NUMBER0 ) ;
+ String messageContent = message . substring ( NUMBER1 ) ;
switch ( messageType ) {
case STRING0 :
SINGLE
<nb> public final class DrawboardEndpoint... | Fix bug in parsing the client message |
<nb> public class TrainParserTest extends TestCase {
tree . percolateHeadAnnotations ( binaryHeadFinder ) ;
List < Transition > transitions = CreateTransitionSequence . createTransitionSequence ( tree ) ;
- State state = TrainParser . initialStateFromTrainingTree ( tree ) ;
+ State state = ShiftReduceParser .... | Fix compile error |
<nb> public class AtmosphereFramework implements ServletContextProvider {
try {
SINGLE
- if ( ! broadcasterClassName . equalsIgnoreCase ( DefaultBroadcaster . class . getName ( ) ) ) {
+ if ( isBroadcasterSpecified == false ) {
broadcasterClassName = lookupDefaultBroadcasterType ( broadcasterClassName ) ;
... | Improve auto detection of Broadcaster |
<nb> public class GamepadSupport {
if ( gamepadSupportAvailable ) {
$wnd . addEventListener ( ' MozGamepadConnected ' , @ com.badlogic.gdx.controllers.gwt.support.gamepadsupport : : handleGamepadConnect ( Lcom / badlogic / gdx / controllers / gwt / support / GamepadSupport$GamepadEvent ; ) , false ) ;
$wnd . addE... | Fix syntax error that snuck in |
<nb> public class PyRefactoringProvider extends RefactoringSupportProvider {
@ override
public boolean isInplaceRenameAvailable ( PsiElement element , PsiElement context ) {
+ if ( context != null && context . getContainingFile ( ) != element . getContainingFile ( ) ) return false ;
PyFunction containingFunct... | don t allow cross file inplace rename |
<nb> public final class RaptorQueryRunner
. put ( STRING0 , new File ( baseDir , STRING1 ) . getAbsolutePath ( ) )
. put ( STRING2 , new File ( baseDir , STRING3 ) . getAbsolutePath ( ) )
. put ( STRING4 , STRING5 )
+ . put ( STRING6 , STRING7 )
+ . put ( STRING8 , new File ( baseDir , STRING9 ) . getAbsolute... | Enable backups for Raptor distributed tests |
<nb> public class ServletContextImpl implements ServletContext {
final Session newSession = sessionManager . createSession ( exchange , c ) ;
httpSession = HttpSessionImpl . forSession ( newSession , this , true ) ;
exchange . putAttachment ( sessionAttachmentKey , httpSession ) ;
- getDeployment ( ) . getAppli... | Don t call listeners twice |
<nb> public final class ByteBufUtil {
HEXDUMP_TABLE [ ( i < < NUMBER0 ) + NUMBER0 ] = DIGITS [ i & NUMBER1 ] ;
}
- String allocType = SystemPropertyUtil . get ( STRING0 , STRING1 ) . toLowerCase ( Locale . US ) . trim ( ) ;
+ String allocType = SystemPropertyUtil . get (
+ STRING0 , PlatformDependent . isAn... | Change back default allocator to pooled |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.