diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public abstract class Protocol {
requestBuilder . addOrReplaceCookie ( c ) ;
}
- requestBuilder . setHeaders ( propagatedHeaders ( future . getCurrentRequest ( ) , realm , keepBody ) ) ;
-
boolean sameBase = isSameBase ( request . getUri ( ) , newUri ) ;
if ( sameBase ) { | Don t set headers twice on redirect |
<nb> public class AtmosphereFramework implements ServletContextProvider {
if ( s != null ) {
skip = Boolean . valueOf ( s ) ;
}
+
if ( ! skip || req . getAttribute ( WEBSOCKET_SUSPEND ) == null ) {
Map < String , String > headers = configureQueryStringAsRequest ( req ) ;
String body = headers . remove ( A... | Fix queryString regression |
<nb> public class ChannelManager {
public void closeChannel ( Channel channel ) {
LOGGER . debug ( STRING0 , channel ) ;
- removeAll ( channel ) ;
Channels . setDiscard ( channel ) ;
+ removeAll ( channel ) ;
Channels . silentlyCloseChannel ( channel ) ;
openChannels . remove ( channel ) ;
} | Set discard asap |
<nb> public abstract class SocketReader implements Runnable {
}
}
else {
+ SINGLE
+ connection . close ( ) ;
Log . error ( LocaleUtils . getLocalizedString ( STRING0 )
+ STRING1 + socket . toString ( ) ) ;
}
<nb> public abstract class SocketReader implements Runnable {
SINGLE
connection . close ( ... | Fixed memory leak with connections that never generated a session |
<nb> public class LocalRegionCache implements RegionCache {
if ( v . getLock ( ) == LOCK_SUCCESS ) {
continue ;
}
- if ( v . getCreationTime ( ) + timeToLive > now ) {
+ if ( v . getCreationTime ( ) + timeToLive < now ) {
iter . remove ( ) ;
} else if ( maxSize > NUMBER0 && maxSize != Integer . MAX_VALUE ... | Fixed local region cache ttl check |
<nb> public class ActionBarWrapper extends ActionBar implements android . app . ActionBar
@ override
public void onTabSelected ( android . app . ActionBar . Tab tab , android . app . FragmentTransaction ft ) {
if ( mListener != null ) {
+
+ if ( mFragmentTransaction == null ) {
+ mFragmentTransaction = ( ( ... | prevent NullPointerException at onTabSelected |
<nb> public abstract class TypeToken < T > extends TypeCapture < T > implements Serializabl
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ deprecated
public final boolean isAssignableFrom ( TypeToken < ? > type ) {
<nb> public abstract class TypeToken < T > extends TypeCapture < T >... | Give the removal date for isAssignableFrom |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ... | close sliding menu with back button |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public final class JdkHttpConstants {
private JdkHttpConstants ( ) {
}
- public static final ServiceType SERVICE_TYPE = ServiceTypeFactory . of ( NUMBER0 , STRING0 , STRING... | Add RECORD_STATISTICS property |
<nb> public class KNXConnection implements ManagedService {
COMMENT
public static synchronized ProcessCommunicator getCommunicator ( ) {
if ( sLink != null && ! sLink . isOpen ( ) ) {
- SINGLE
+ connect ( ) ;
}
return sPC ;
} | Reenabled connect on KNX bus read write |
<nb> public interface DeploymentScannerLogger extends BasicLogger {
STRING0 +
STRING1 )
void unsafeAutoDeploy ( String marker1 , String marker2 , Set < String > problems ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ logmessage ( level = INFO )
+ @ message ( id = NUMBER0 , value = STRING2 )
+ v... | Used DeploymentScannerLogger for log message per recommendations |
<nb> public interface Try < T > extends Value < T > {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ static < T > Try < T > success ( T value ) {
+ return new Success < > ( value ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMM... | Added Try success and Try failure |
<nb> public final class MediaCodecInfo {
maxChannels = NUMBER0 ;
} else if ( mime . equalsIgnoreCase ( MediaFormat . MIMETYPE_AUDIO_VORBIS ) ) {
bitRates = Range . create ( NUMBER1 , NUMBER2 ) ;
- sampleRates = new int [ ] { NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 , NUMBER8 } ;
+ sampleRateRange = Ran... | allow full range of Vorbis sampling rates |
<nb> public abstract class MatchState {
if ( parent != null ) {
this . accumulatedError = parent . accumulatedError + parent . currentError ;
this . distanceAlongRoute += parent . distanceAlongRoute ;
- if ( parent . currentError < NUMBER0 ) {
- throw new IllegalStateException ( STRING0 ) ;
- }
}
} | remove debug code |
<nb> public class X509AuthenticationProvider implements AuthenticationProvider ,
X509AuthenticationToken result = new X509AuthenticationToken ( user ,
clientCertificate , user . getAuthorities ( ) ) ;
- result . setDetails ( ( authentication . getDetails ( ) != null )
- ? authentication . getDetails ( ) : nul... | Remove unnecessary check for null |
<nb> public class IndexShard extends AbstractIndexShardComponent {
}
public Engine . Delete prepareDeleteOnReplica ( String type , String id , long version , VersionType versionType ) {
- if ( shardRouting . primary ( ) && shardRouting . isRelocationTarget ( ) == false ) {
- throw new IllegalIndexShardStateEx... | remove safety check from IndexShard prepareDeleteOnReplica |
<nb> public abstract class WebSocketServlet extends HttpServlet {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
protected String selectSubProtocol ( List < String > subProtocols ) {
return null ;
<nb> public abstract class WebSocketServlet extends HttpServlet {
COMMENT
COMMENT ... | Improve the Javadoc |
<nb> import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SingleThreadEventLoopTest {
final AtomicInteger cleanedUp = new AtomicInteger ( ) ;
SingleThreadEventLoopImpl ( ) {
- super ( null ... | Fix NPE in test |
<nb> public class AccountHeader {
mAccountSwitcherArrow . setImageDrawable ( new IconicsDrawable ( ctx , GoogleMaterial . Icon . gmd_arrow_drop_down ) . sizeDp ( NUMBER0 ) . paddingDp ( NUMBER1 ) . color ( mTextColor ) ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ protected void updateHeaderAndList ( ) {
+ SING... | add header to update the ProfileDrawerLIst |
<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 ;
- import NAME... | Don t add debug highlighting for references in unsupported elements |
<nb> public abstract class HttpContentDecoder extends SimpleChannelUpstreamHandler {
if ( contentEncoding != null && ( decoder = newDecoder ( contentEncoding ) ) != null ) {
SINGLE
SINGLE
- m . setHeader ( HttpHeaders . Names . CONTENT_ENCODING , HttpHeaders . Values . IDENTITY ) ;
+ m . setHeader (
+ HttpH... | Added HttpContentDecoder getTargetEncoding |
<nb> public class AuthenticationDialog extends DialogWrapper {
}
@ nullable
+ @ override
+ public JComponent getPreferredFocusedComponent ( ) {
+ return panel . getPreferredFocusedComponent ( ) ;
+ }
+
+ @ nullable
protected JComponent createCenterPanel ( ) {
return panel ;
} | preferred focused component for authentication dialog |
<nb> public abstract class OSQLFilterItemAbstract implements OSQLFilterItem {
if ( ioResult != null ) {
if ( ioResult instanceof Long )
ioResult = new Date ( ( Long ) ioResult ) ;
- else
+ else if ( ! ( ioResult instanceof Date ) )
ioResult = ODatabaseRecordThreadLocal . INSTANCE . get ( ) . getStorage ( ) ... | added a check for conversion of date in date |
<nb> import NAMESPACE ;
@ suppresswarnings ( { STRING0 } )
public final class DbDefault {
- public static int queryState = DbQuery . QUERY_CREATED ;
-
public static boolean forcePreparedStatement = false ;
public static DbSessionProvider sessionProvider = new ThreadDbSessionProvider ( ) ;
<nb> abstrac... | removed state item from defaults |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ExportPlotDesktop extends ExportPlot
options ,
onClose ) . showModal ( ) ;
}
- else
+ else if ( ! BrowseCap . isCocoaDesktop ( ) )
{
new CopyPlotToClipboardDeskt... | use the web handler for plot export on the mac |
<nb>
package NAMESPACE ;
- import static NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed inused import |
<nb> import NAMESPACE ;
COMMENT
public class BeanSerializer implements Serializer {
+ SINGLE
+
private final String javadocSuffix ;
public BeanSerializer ( ) { | added TODO comment |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class ProtocolProviderServiceMsnImpl
public void exceptionCaught ( MsnMessenger msnMessenger , Throwable throwable )
{
- logger . error ( STRING0 , throwab... | Catch Incorrect Password |
<nb> public class FileListListAdapter extends BaseAdapter implements ListAdapter {
}
if ( mSelection . get ( position ) != null ) {
- view . setBackgroundColor ( R . color . owncloud_blue ) ;
+ view . setBackgroundColor ( Color . rgb ( NUMBER0 , NUMBER0 , NUMBER0 ) ) ;
} else {
view . setBackgroundColor (... | changed highlighted color |
<nb> import NAMESPACE ;
public class JavaClassFileType implements FileType {
- public static JavaClassFileType INSTANCE = new JavaClassFileType ( ) ;
+ public static final JavaClassFileType INSTANCE = new JavaClassFileType ( ) ;
private static final NotNullLazyValue < Icon > ICON = new NotNullLazyValue < ... | make JavaClassFileType INSTANCE final |
<nb> public class Update implements Comparable < Update > {
ARRIVED , SINGLE
PREDICTION , SINGLE
CANCEL , SINGLE
- PLANNED , SINGLE
- UNKNOWN SINGLE
+ PLANNED , SINGLE
+ UNKNOWN SINGLE
+ SINGLE
}
} | add enum explanations from skywave |
<nb> public class OperandStack {
if ( ClassHelper . isNumberType ( top ) && primTarget && ClassHelper . isNumberType ( targetType ) ) {
BytecodeHelper . doCastToPrimitive ( mv , top , targetType ) ;
} else {
- BytecodeHelper . doCast ( mv , targetType ) ;
+ top = stack . get ( size - NUMBER0 ) ;
+ if ( ! to... | Avoid unnecessary CHECKCAST instructions |
<nb> public class OutboundConnectionQueueTest {
Mockito . verify ( connectionManager , Mockito . times ( NUMBER0 ) ) . close ( Mockito . any ( RemoteReceiver . class ) ) ;
- boolean hasRequestedClose = Whitebox . getInternalState ( queue , STRING0 ) ;
+ Boolean hasRequestedClose = Whitebox . < Boolean > getIn... | Add type parameters in OutboundConnectionQueueTest |
<nb> class IonRequestBuilder implements Builders . Any . B , Builders . Any . F , Builders . Any .
SINGLE
final long total = emitter . length ( ) ;
DataTrackingEmitter tracker ;
- if ( ! ( emitter instanceof DataTrackingEmitter ) ) {
+ if ( ! ( this . emitter instanceof DataTrackingEmitter ) ) {
tracker = n... | given the cast below I think this test is incorrect |
<nb> public class IonBitmapCache {
if ( targetHeight <= NUMBER0 )
targetHeight = Integer . MAX_VALUE ;
- int rotation = NUMBER0 ;
+ int rotation ;
try {
byte [ ] bytes = new byte [ NUMBER1 ] ;
stream . mark ( Integer . MAX_VALUE ) ;
<nb> public class IonBitmapCache {
stream . reset ( ) ;
}
catch... | Fix exif decoding bug for streams |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class UiInfoUsageCollector extends UsagesCollector {
add ( set , STRING0 , tabPlace ( ) == SwingConstants . BOTTOM ? NUMBER0 : NUMBER1 ) ;
add ( set... | add retina to statistics |
<nb> public class Reflection {
catch ( ClassCastException e ) { impl = null ; }
catch ( ClassNotFoundException e ) { impl = null ; }
catch ( InstantiationException e ) { impl = null ; }
- catch ( IllegalAccessException e ) { impl = null ; }
+ catch ( java . lang . IllegalAccessException e ) { impl = null ; } ... | Minor add FQ name to avoid clash |
<nb> public class EditorTextField extends NonOpaquePanel implements DocumentListener ,
size = UIUtil . addInsets ( size , myEditor . getInsets ( ) ) ;
}
- System . out . println ( size ) ;
-
return size ;
} | debug logging removed |
<nb> import NAMESPACE ;
@ implementedby ( BodyParserEngineManagerImpl . class )
public interface BodyParserEngineManager {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
Set < String > getContentTypes ( ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
Body... | Add JavaDoc to BodyParserEngineManager and TemplateEngineManager |
<nb> public class PlannerError {
public boolean getNoPath ( ) {
return noPath ;
}
+
+ public static boolean isPlanningError ( Class < ? > clazz ) {
+ return messages . containsKey ( clazz ) ;
+ }
}
<nb> public class Planner extends RoutingResource {
response . setPlan ( plan ) ;
} catch ( Exceptio... | Don t log common errors when planning trips |
<nb> public class DatabaseHelper extends SQLiteOpenHelper {
if ( upgradeVersion == NUMBER0 ) {
SINGLE
db . beginTransaction ( ) ;
- SQLiteStatement stmt = null ;
try {
- stmt = db . compileStatement ( STRING0
- + STRING1 ) ;
- loadDefaultHapticSettings ( stmt ) ;
- loadUISoundEffectsSettings ( stmt ) ... | Don t change system sound defaults for upgrades |
<nb> public class TreeGraphNode extends Tree implements HasParent {
this . setTreeGraph ( graph ) ;
}
- SINGLE
- public TreeGraphNode ( TreeGraphNode t ) {
- this ( t , t . parent ) ;
- this . setTreeGraph ( t . treeGraph ( ) ) ;
- }
-
COMMENT
COMMENT
COMMENT | Remove unused constructor |
<nb> public final class Realm implements Closeable {
handler . sendEmptyMessage ( REALM_CHANGED ) ;
}
}
- sendNotifications ( ) ;
}
COMMENT | Fix sendNotifications called twice |
<nb> public class ThemeBrowserFragment extends Fragment implements OnItemClickListene
@ override
public void onItemClick ( AdapterView < ? > parent , View view , int position , long id ) {
- Cursor cursor = ( ( ThemeBrowserAdapter ) parent . getAdapter ( ) ) . getCursor ( ) ;
- String themeId = cursor . getSt... | Ignore touches for headers |
<nb> public enum BSONType {
MAX_KEY ( NUMBER0 ) ;
private static final BSONType [ ] LOOKUP_TABLE = new BSONType [ MIN_KEY . getValue ( ) + NUMBER1 ] ;
+
private final int value ;
static {
<nb> public enum BSONType {
public static BSONType findByValue ( final int value ) {
return LOOKUP_TABLE [ value... | Fixed misc problems caused by the renaming move of BSON classes |
<nb> public class NotificationContentView extends FrameLayout {
}
@ override
- protected void onFinishInflate ( ) {
- super . onFinishInflate ( ) ;
+ protected void onAttachedToWindow ( ) {
+ super . onAttachedToWindow ( ) ;
updateVisibility ( ) ;
} | Fixed a bug where the notifications were not animating |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ImportFromToImportIntention implements IntentionAction {
Document doc = editor . getDocument ( ... | remove unnecessary usage of DataManager getDataContext |
<nb> public class CameraPreview extends SurfaceView implements SurfaceHolder . Callback
List < Camera . Size > sizes = mCamera . getParameters ( ) . getSupportedPreviewSizes ( ) ;
int w = getWidth ( ) ;
int h = getHeight ( ) ;
+ if ( w < h ) {
+ SINGLE
+ int portraitWidth = h ;
+ h = w ;
+ w = portraitW... | Adjusted the target ratio so it remains consistent with the size ratio |
<nb> public class ClickListenerHelper < Item extends IItem > {
@ override
public void onClick ( View v ) {
SINGLE
- int pos = viewHolder . getAdapterPosition ( ) ;
+ int pos = mFastAdapter . getHolderAdapterPosition ( viewHolder ) ;
SINGLE
if ( pos != RecyclerView . NO_POSITION ) {
SINGLE
<nb> public ... | change ClickListenerHelper to use getHolderAdapterPosition |
<nb> public class ExternalResource extends AbstractFileResolvingResource {
public String getPath ( ) {
return file . getPath ( ) ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ override
+ public String getFilename ( ) {
+ return StringUtils . getFi... | Implement getFilename for ExternalResource |
<nb> class BluetoothManagerService extends IBluetoothManager . Stub {
sendEnableMsg ( mQuietEnableExternal ) ;
}
}
+
+ if ( ! isNameAndAddressSet ( ) ) {
+ SINGLE
+ if ( DBG ) Log . d ( TAG , STRING0 ) ;
+ getNameAndAddress ( ) ;
+ }
}
}
} ; | Sync the Bluetooth name and address from the Bluetooth Adapter |
<nb> public class User implements Cacheable {
}
public String getEmail ( ) {
- return email ;
+ return email == null ? STRING0 : email ;
}
public void setEmail ( String email ) { | Return an empty string if email is null |
<nb>
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMME... | Add license for this class |
<nb> public abstract class AbstractDynamicTypeBuilderForInliningTest extends Abstract
. make ( )
. load ( new URLClassLoader ( new URL [ NUMBER0 ] , null ) , ClassLoadingStrategy . Default . WRAPPER )
. getLoaded ( ) ;
- assertThat ( dynamicType . getDeclaredMethods ( ) . length , is ( NUMBER1 ) ) ;
Class < ?... | Fixed unit test |
<nb> final class ActivityStack {
if ( mTaskHistory . isEmpty ( ) ) {
if ( DEBUG_STACK ) Slog . i ( TAG , STRING0 + this ) ;
+ final boolean notHomeStack = ! isHomeStack ( ) ;
if ( isOnHomeDisplay ( ) ) {
- mStackSupervisor . moveHomeStack ( ! isHomeStack ( ) , reason + STRING1 ) ;
+ mStackSupervisor . mov... | Don t delete home stack when last task is removed |
<nb> public abstract class HttpContentDecoder extends MessageToMessageDecoder < HttpObj
if ( msg instanceof HttpMessage ) {
assert message == null ;
message = ( HttpMessage ) msg ;
-
+ decodeStarted = false ;
cleanup ( ) ;
}
<nb> public abstract class HttpContentDecoder extends MessageToMessageDecoder... | Fix a bug where HttpContentDecoder emits duplicate HttpMessage or raises NPE |
<nb> import NAMESPACE ;
import static NAMESPACE ;
- public class InterceptionInstrumenter implements Instrumenter {
+ public class InterceptionInstrumenter {
private static final Pattern ANYTHING = Pattern . compile ( STRING0 ) ;
private final Map < String , ClassMatcher > classPatterns = new LinkedHashMa... | Remove unneeded interface |
<nb> public class SvnDiffProvider extends DiffProviderEx implements DiffProvider , Dif
svnInfo . getAuthor ( ) , message ) ;
}
catch ( VcsException e ) {
- LOG . debug ( e ) ; SINGLE
+ LOG . info ( e ) ; SINGLE
return null ;
}
} | Refactored SvnDiffProvider log errors while resolving current revision for file as info not as debug |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class GraylogNode extends Node {
COMMENT
COMMENT
public GraylogNode ( Settings preparedSettings , Collection < Class < ? extends Plugin... | Properly initialize Environment in GraylogNode |
<nb> public class DbConnector
dbi ,
configTableName ,
String . format (
- STRING0 ,
+ STRING1 ,
configTableName
)
) ; | remove redundant index for primary key in config table |
<nb> class ExtendedBeanInfo implements BeanInfo {
}
}
else {
+ pd . setWriteMethod ( null ) ;
pd . setReadMethod ( readMethod ) ;
try {
pd . setWriteMethod ( writeMethod ) ;
<nb> class ExtendedBeanInfo implements BeanInfo {
SINGLE
}
if ( pd instanceof IndexedPropertyDescriptor ) {
+ ( ( IndexedP... | Avoid further type mismatch errors in ExtendedBeanInfo |
<nb> public class NodeScheduler
public Multimap < Node , Split > computeAssignments ( Set < Split > splits )
{
Multimap < Node , Split > assignment = HashMultimap . create ( ) ;
- Map < Node , Integer > splitsByNode = new HashMap < > ( ) ;
for ( Split split : splits ) {
List < Node > candidateNodes = sele... | Revert Fix bug in NodeScheduler |
<nb> public class DefaultCamelContext extends ServiceSupport implements ModelCamelCon
public synchronized RouteDefinition getRouteDefinition ( String id ) {
for ( RouteDefinition route : routeDefinitions ) {
- if ( route . getId ( ) != null && route . getId ( ) . equals ( id ) ) {
+ if ( route . idOrCreate ( ... | Fixed potential NPE |
<nb> public class ColumnFamilyStore implements ColumnFamilyStoreMBean
COMMENT
public String getFlushPath ( )
{
- long guessedSize = NUMBER0 * memsize . value ( ) * NUMBER1 * NUMBER1 ; SINGLE
+ long guessedSize = NUMBER2 * memsize . value ( ) * NUMBER1 * NUMBER1 ; SINGLE
String location = DatabaseDescriptor ... | fix potential int overflows |
<nb> public class MercurialRepository extends Repository {
boolean supportsSubRepositories ( ) {
SINGLE
SINGLE
- return true ;
+ return ! Boolean . getBoolean ( STRING0 ) ;
}
@ override | Add the possibility to disable the forest extension in mercurial |
<nb> public class Account implements BaseAccount
COMMENT
COMMENT
private String mLocalStorageProviderId ;
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- private final boolean mIsInUse = false ;
private String mTransportUri ;
private String mDescription ;
private String mAlwaysBcc ;
<nb> public cl... | remove dead isInUse code |
<nb> public class NSAtom extends Namespace {
if ( strSize != null )
size = Long . parseLong ( strSize ) ;
String type = attributes . getValue ( LINK_TYPE ) ;
- String download_url = attributes
- . getValue ( LINK_REL_ENCLOSURE ) ;
+
state . getCurrentItem ( ) . setMedia (
- new FeedMedia ( state . getCu... | Atom feedparser didn t read enclosures correctly |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | add missing import |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Watchdog extends Thread {
COMMENT
COMMENT
final class HeartbeatHandler extends Handler {
+ HeartbeatHandler ( Looper lo... | Fix Watchdog HeartbeatHandler to run on correct thread |
<nb> public class ImageHelper {
try {
Bitmap bmp = BitmapFactory . decodeStream ( new FileInputStream ( f ) , null , bfo ) ;
+ if ( bmp == null ) {
+ AppLog . e ( T . UTILS , STRING0 + f . getPath ( ) ) ;
+ return null ;
+ }
bitmapWidth = bmp . getWidth ( ) ;
bitmapHeight = bmp . getHeight ( ) ;
ret... | add a null check if the bitmap can t be decoded |
<nb> class WebViewRenderer extends WebRenderer {
@ override
public void resumeOnSetActive ( ) {
- switch ( Settings . get ( ) . getWebViewBatterySaveMode ( ) ) {
- case Aggressive :
- webviewResume ( STRING0 ) ;
- break ;
- }
+ SINGLE
+ SINGLE
+ webviewResume ( STRING0 ) ;
}
@ override | Fixed a behaviour when it is a blank page when turn off battery safe mode |
<nb> public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr
private void handleNoTarget ( ) {
if ( parsedTarget == null )
SINGLE
- handleResult ( ORuntimeResult . createProjectionDocument ( resultCount ) , true ) ;
+ addResult ( ORuntimeResult . createProjectionDocument ( resultCount... | Fixed issue on SQL expand without any target |
<nb> public class SecurityRoleDefinition extends SimpleResourceDefinition {
private static SimpleAttributeDefinition create ( final String name , final String xmlName ) {
return SimpleAttributeDefinitionBuilder . create ( name , BOOLEAN )
. setXmlName ( xmlName )
- . setDefaultValue ( new ModelNode ( ) . set ( ... | security role attributes have no default value |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix include expression in test case |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class PlayerEggThrowEvent extends PlayerEvent {
+ private Egg egg ;
private boolean hatching ;
private MobType hatchType ;
private byte numHatches ;
- public... | Added PlayerEggThrowEvent getEgg |
<nb> public class ContextAPI extends ApiImplementor {
throw new ApiException ( ApiException . Type . DOES_NOT_EXIST , f . getAbsolutePath ( ) ) ;
} else {
try {
- Model . getSingleton ( ) . getSession ( ) . importContext ( f ) ;
+ context = Model . getSingleton ( ) . getSession ( ) . importContext ( f ) ;
}... | Change context s action importContext to return the ID of the context |
<nb> public class TreasuryYieldXMLConfigV2 extends Configured implements Tool {
job . setOutputFormat ( com . mongodb . hadoop . mapred . MongoOutputFormat . class ) ;
job . setOutputKeyClass ( MongoConfigUtil . getOutputKey ( conf ) ) ;
job . setOutputValueClass ( MongoConfigUtil . getOutputValue ( conf ) ) ;
... | set mapper output key and output value classes in mapred |
<nb> public class ToolUtilCommands {
min = NUMBER0 ,
max = NUMBER1
)
+ @ commandpermissions ( { STRING0 } )
public static void mask ( CommandContext args , WorldEdit we ,
LocalSession session , LocalPlayer player , EditSession editSession )
throws WorldEditException {
<nb> public class ToolUtilCommands ... | Fixed permissions with brush commands |
<nb> public class OldQueuedThreadPool extends AbstractLifeCycle implements Serializab
}
SINGLE
- if ( _threads . size ( ) > NUMBER0 )
- Log . warn ( _threads . size ( ) + STRING0 ) ;
+ int size = _threads . size ( ) ;
+ if ( size > NUMBER0 )
+ Log . warn ( size + STRING0 ) ;
synchronized ( _joinLock... | avoid race on error report |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class DataStream < OUT > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class DataStream < OUT > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ ... | Fix the Javadoc link in DataStream class |
<nb> import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix an erroneous import |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COM... | added missing license header |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT | Removed an unused import |
<nb> public class Canvas {
}
public enum EdgeType {
+
+ COMMENT
+ COMMENT
+ COMMENT
BW ( NUMBER0 ) , SINGLE
- AA ( NUMBER1 ) ; SINGLE
+
+ COMMENT
+ COMMENT
+ COMMENT
+ AA ( NUMBER1 ) ;
EdgeType ( int nativeInt ) {
this . nativeInt = nativeInt ;
<nb> public class Canvas {
COMMENT
... | Fix errors in Canvas EdgeType docs |
<nb> public class DevicePolicyManager {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub {
GLOBAL_SETTINGS_WHITELIST . add ( Settings . Global . NETWORK_PREFERENCE ) ;
GLOBAL_SETTINGS_WH... | Allow DO to set Settings Global STAY_ON_WHILE_PLUGGED_IN |
<nb> public abstract class FindClass {
protected void scanUrl ( URL url ) {
File file = FileUtil . toFile ( url ) ;
if ( file == null ) {
- throw new FindFileException ( STRING0 + url + STRING1 ) ;
+ if ( ignoreException == false ) {
+ throw new FindFileException ( STRING0 + url + STRING1 ) ;
+ }
}
sc... | optionally ignore invalid URL files |
<nb> public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static void leftShift ( ObjectOutputStream self , Object value ) throws IOException {
self . writeObject ( value ) ;
<nb> public class DefaultGroovyMethods extends De... | tweak javadoc since versions |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class TestBase {
getMongo ( ) . close ( ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ protected boolean serverIsAtLeastVersio... | add server version check |
<nb> public class ShowcaseViews {
private final List < ShowcaseView > views = new ArrayList < ShowcaseView > ( ) ;
private final Activity activity ;
- private final int showcaseTemplateId ;
private OnShowcaseAcknowledged showcaseAcknowledgedListener = new OnShowcaseAcknowledged ( ) {
@ override
public voi... | Removed unused showcase template |
<nb> public class PatternTestTools {
SINGLE
if ( ! element . getString ( ) . isEmpty ( )
+ && ! exception . getString ( ) . isEmpty ( )
&& ! element . getNegation ( )
&& ! element . isInflected ( )
- && element . getSkipNext ( ) == NUMBER0
- && element . getPOStag ( ) == null
- && exception . getPOSta... | Improved further sanity check on grammar rules |
<nb> import NAMESPACE ;
import 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 N... | fixed avatar cache lookup in ListItemAdapter |
<nb> public abstract class AbstractASTTransformation implements Opcodes , ASTTransform
}
public static boolean shouldSkip ( String name , List < String > excludes , List < String > includes ) {
- return excludes . contains ( name ) || deemedInternalName ( name ) || ( ! includes . isEmpty ( ) && ! includes . con... | Delegate should support including excluding which methods are delegated to using an interface spec handle super interfaces |
<nb> public class WebSocket extends JavaScriptObject {
this . onerror = $entry ( function ( ) {
listener . @ org.atmosphere.gwt.client.impl.websocketlistener : : onError ( Lorg / atmosphere / gwt / client / impl / WebSocket ; ) ( self ) ;
} ) ;
- this . message = $entry ( function ( event ) {
+ this . onmessa... | Fix wrong event handler name |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> abstract public class AvailableJavaHomes {
public static File getJavaHome ( String label ) {
String value = System . getenv ( ) . get ( getEnvVarName ( label ) ) ;
- return value == null ? null : new... | Changed AvailableJavaHomes to canonicalize java home dir |
<nb> public class InspectionGadgetsPlugin implements ApplicationComponent ,
}
private void registerInternationalInspections ( ) {
- m_inspectionClasses . add ( StringLiteralInspection . class ) ;
m_inspectionClasses . add ( CharacterComparisonInspection . class ) ;
m_inspectionClasses . add ( MagicCharacter... | kill Harcoded string literal inspection |
<nb> public class DashBaseFragment extends SherlockFragment {
@ override
public void onResume ( ) {
super . onResume ( ) ;
- SINGLE
+ SINGLE
View view = getView ( ) ;
if ( view != null ) {
view . invalidate ( ) ;
<nb> public class DashUpdatesFragment extends DashBaseFragment {
cancelButton = null ; ... | Final fix for list are empty when returning to the Dashboard issue |
<nb> public interface ImageDownloader {
}
private boolean belongsTo ( String uri ) {
- return uri . toLowerCase ( Locale . getDefault ( ) ) . startsWith ( uriPrefix ) ;
+ return uri . toLowerCase ( Locale . US ) . startsWith ( uriPrefix ) ;
}
COMMENT | Change Locale getDefault to Locale US us for url is better |
<nb> public class GeneratorManager {
_chunkGenerators . add ( new ChunkGeneratorTerrain ( this ) ) ;
_chunkGenerators . add ( new ChunkGeneratorFlora ( this ) ) ;
_chunkGenerators . add ( new ChunkGeneratorResources ( this ) ) ;
- _chunkGenerators . add ( new ChunkGeneratorLiquids ( this ) ) ;
+ SINGLE
_b... | Removes liquid generator for the time being |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class InstalledPluginsManagerMain extends PluginManagerMain {
button . addActionListener ( new ActionListene... | hide apply for availables editor |
<nb> public abstract class NanoHTTPD {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static SSLServerSocketFactory makeSSLSocketFactory ( String keyAndTrustStoreClasspathPath , char [ ] passphrase ) throws IOException {
SSLServerSocketFactory res = null ;
try {
- KeyStore keystore = Key... | Switch makeSSLSocketFactory to use default system KeyStore type |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.