diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class EventDispatcher < T extends EventListener > {
}
private void dispatch ( final Method method , final Object [ ] args ) {
+ method . setAccessible ( true ) ;
+
for ( T listener : myListeners ) {
try {
method . invoke ( listener , args ) ;
}
- catch ( AbstractMethodError e ) {
+ cat... | Reflective event dispatch optimization |
<nb> public class ChannelGroup {
}
COMMENT
+ COMMENT
+ COMMENT
+ public void shutDown ( ) {
+ group . shutdown ( ) ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Add shutdown to ChannelGroup |
<nb> public class IccCardConstants {
COMMENT
public static final String INTENT_VALUE_ABSENT_ON_PERM_DISABLED = STRING0 ;
- COMMENT
- UNKNOWN is a transient state , for example , after uesr inputs ICC pin under
- PIN_REQUIRED state , the query for ICC status returns UNKNOWN before it
- turns to READY
+ C... | Clarify IccCardConstants State enum |
<nb> public class InOperator extends Operator < Object > {
SINGLE
if ( ! inList . contains ( inValue ) ) {
- return new BooleanLiteral ( false ) ;
+ return BooleanLiteral . FALSE ;
}
- return new BooleanLiteral ( true ) ;
+ return BooleanLiteral . TRUE ;
}
@ override | use BooleanLiteral singletons |
<nb> public abstract class AbstractTimeLineFragment < T extends ListBean > extends Abstr
View view = inflater . inflate ( R . layout . listview_layout , container , false ) ;
empty = ( TextView ) view . findViewById ( R . id . empty ) ;
progressBar = ( ProgressBar ) view . findViewById ( R . id . progressbar ) ; ... | disable listview progressbar |
<nb>
package NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> import NAMESPACE ;
summary = STRING0 ,
explanation = STRING0 ,
category = JDK ,
- maturity = EXPERIMENTA... | Make unused import check non experimental |
<nb> public enum RaptorErrorCode
RAPTOR_BACKUP_ERROR ( NUMBER0 ) ,
RAPTOR_BACKUP_NOT_FOUND ( NUMBER1 ) ,
RAPTOR_REASSIGNMENT_DELAY ( NUMBER2 ) ,
- RAPTOR_REASSIGNMENT_THROTTLE ( NUMBER3 ) ;
+ RAPTOR_REASSIGNMENT_THROTTLE ( NUMBER3 ) ,
+ RAPTOR_RECOVERY_TIMEOUT ( NUMBER4 ) ;
private final ErrorCode error... | Add error code for Raptor shard recovery timeout |
<nb> public class ImplementationImportCollector extends HeaderImportCollector {
@ override
public boolean visit ( TypeLiteral node ) {
- addReference ( node . getType ( ) ) ;
+ ITypeBinding type = Types . getTypeBinding ( node ) ;
+ if ( type . isPrimitive ( ) ) {
+ type = Types . getWrapperType ( type ) ... | Fixed missing wrapper import for primitive type literals |
<nb> public class CompilationTest extends TestCase {
STRING0 ) ;
assert_ ( ) . about ( javaSource ( ) )
. that ( javaFileObject )
- . processedWith ( new AutoValueProcessor ( ) , new AutoValueBuilderProcessor ( ) )
+ . processedWith ( new AutoValueProcessor ( ) )
. failsToCompile ( )
. withErrorContaining... | Remove a stray reference to AutoValueBuilderProcessor from a test |
<nb> public final class ActivityStackSupervisor {
final ActivityStack lastStack = getLastStack ( ) ;
ActivityRecord curTop = lastStack == null ?
null : lastStack . topRunningNonDelayedActivityLocked ( notTop ) ;
- if ( curTop != null && ( curTop . task != intentActivity . task ) ||
- curTop . task != lastStac... | Fix parenthetical error |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class JsInvocation extends JsExpressionImpl . JsExpressionHasArgument
super ( new SmartList < JsExpression > ( ) ) ;
}
- public JsInvocation ( JsExpression qualifier , List < ... | added NotNull annotation to getArguments |
<nb> public class DeleteTest {
}
+ @ test
+ public void deleteWithConditionTest ( ) throws IOException , SqlParseException , SQLFeatureNotSupportedException {
+ delete ( String . format ( STRING0 , TEST_INDEX ) ) ;
+
+ SINGLE
+ SearchRequestBuilder request = MainTestSuite . getClient ( ) . prepareSear... | add delete test with condition |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class TDigest implements Serializable {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public double quantile ( double q ) {
GroupTree values... | Fix javadoc compile error |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
COMMENT
COMMENT | Remove unneeded import |
<nb> public class LocalCanBeFinal extends BaseJavaBatchLocalInspectionTool {
for ( Iterator < PsiVariable > iterator = result . iterator ( ) ; iterator . hasNext ( ) ; ) {
final PsiVariable variable = iterator . next ( ) ;
- if ( shouldBeIgnored ( variable ) || ! variable . isPhysical ( ) ) {
+ if ( shouldBeI... | remove smelly isPhysical check |
<nb> public class CuboidClipboard {
byte [ ] blockData = ( byte [ ] ) getChildTag ( schematic , STRING0 , ByteArrayTag . class ) . getValue ( ) ;
SINGLE
- List < Tag > tileEntities = ( List < Tag > ) getChildTag ( schematic , STRING1 , ListTag . class ) . getValue ( ) ;
+ List < Tag > tileEntities = ( List < ... | Fixed unchecked cast in CuboidClipboard loadSchematic |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Find extends Query {
return this ;
}
- public Find readPreferenceIfAbsent ( final ReadPreference readPreference ) {
- super . readPreferenceIfAbsent ( readPreference ) ;
- return this ;
- }
-
@ override
public F... | Removed unused method Query readPreferenceIfAbsent |
<nb> public interface ParameterDescription extends AnnotatedCodeElement ,
COMMENT
COMMENT
COMMENT
- private Object getParameter ( Object executable , int index ) {
+ private Object getParameter ( AccessibleObject executable , int index ) {
try {
return Array . get ( getParameters . invoke ( executable ) ,... | Updated parameter type |
<nb> public abstract class AbstractFieldMapper < T > implements FieldMapper < T > {
if ( similarity ( ) != null ) {
builder . field ( STRING0 , similarity ( ) . name ( ) ) ;
} else if ( includeDefaults ) {
- builder . field ( STRING1 , SimilarityLookupService . DEFAULT_SIMILARITY ) ;
+ builder . field ( STRIN... | Fixed typo in AbstractFieldMapper |
<nb> public class RelativeSearchResource extends SearchResource {
}
}
- COMMENT
- COMMENT
- COMMENT
@ get @ timed
+ @ apioperation ( value = STRING0 ,
+ notes = STRING1 +
+ STRING2 )
@ produces ( STRING3 )
+ @ apiresponses ( value = {
+ @ apiresponse ( code = NUMBER0 , message = STRING4 )
+ ... | Add missing ApiOperation and ApiResponse annotations |
<nb> class CodeGenerator {
public void maybeTagAsExterns ( ) {
if ( this . outputAsExterns ) {
- add ( STRING0 ) ;
+ add ( STRING1 ) ;
}
}
<nb> public final class CodePrinter {
TYPED ;
static Format fromOptions ( CompilerOptions options , boolean outputTypes , boolean prettyPrint ) {
- if ( op... | Add a newline after the externs annotation |
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener
boolean selectAllGotFocus = mSelectAllOnFocus && didTouchFocusSelect ( ) ;
hideControllers ( ) ;
if ( ! selectAllGotFocus && mText . length ( ) > NUMBER0 ) {
+ SINGLE
+ final int offset = getOffsetForPosition ( event . get... | Handle tap and move cursor before showing suggestions |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT | Fixed the CS errors of async |
<nb> public class ShowsFragment extends SherlockFragment implements
}
@ override
+ public void onPrepareOptionsMenu ( Menu menu ) {
+ SINGLE
+ boolean isDrawerOpen = ( ( BaseNavDrawerActivity ) getActivity ( ) ) . isMenuDrawerOpen ( ) ;
+ menu . findItem ( R . id . menu_action_shows_filter ) . setVisible ... | Hide filter action when nav drawer is open |
<nb> public class LoginDialog extends DialogWrapper {
myLoginPanel = new LoginPanel ( this ) ;
setTitle ( STRING0 ) ;
setOKButtonText ( STRING1 ) ;
+ setTitle ( STRING0 ) ;
init ( ) ;
} | Add title to stepic login form |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GBMTest extends TestUtil {
Assert . assertArrayEquals ( STRING0 , mseWithoutVal , mseWithVal , FLOAT0 ) ;
}
+ @ ignore
@ test public void testModelMSEEqual... | Ignore JUnit not sure why this is necessary |
<nb> public class JedisCluster implements JedisCommands , BasicCommands , Closeable {
@ override
public Long persist ( final String key ) {
- return new JedisClusterCommand < Long > ( connectionHandler , timeout , maxRedirections ) {
+ return new JedisClusterCommand < Long > ( connectionHandler , maxRedirecti... | fixing merge problem |
<nb> public class GouraudMaterial extends AAdvancedMaterial {
STRING0 +
STRING1 +
- STRING2 +
+ STRING3 +
STRING4 +
STRING5 +
<nb> public class GouraudMaterial extends AAdvancedMaterial {
STRING6 +
STRING7 +
STRING0 +
- STRING8 +
M_FOG_FRAGMENT_COLOR +
STRING9 ; | Relocated ambient light contribution |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class AbstractJasperReportsView extends AbstractUrlBasedView {
String fieldName = fqFieldName . substring ( index + NUMBER0 ) ;
try {
- Class cls = ClassUtils . forName ( className ) ;
+ Class cls = ClassUtils . forNam... | always use application ClassLoader |
<nb> public class InjectedLanguageUtil {
if ( file == null ) return editor ;
int offset = editor . getCaretModel ( ) . getOffset ( ) ;
- PsiElement element = file . findElementAt ( offset ) ;
- PsiLanguageInjectionHost injectionHost = findInjectionHost ( element ) ;
+ PsiLanguageInjectionHost injectionHost ... | fix editing injected psi |
<nb> public class FlywayAutoConfiguration {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ configuration
@ conditionalonclass ( LocalContainerEntityManagerFactoryBean . class ) | Fix typo in FlywayAutoConfiguration s javadoc |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
COMMENT
<nb> public interface JSFLogger extends BasicLogger { ... | Add info message to tell which JSF impls are activated |
<nb> public class NameUtil {
private final String myPattern ;
public MinusculeMatcher ( String pattern ) {
- myPattern = pattern . replaceAll ( STRING0 , STRING1 ) ;
+ myPattern = pattern . replaceAll ( STRING0 , STRING1 ) . replaceAll ( STRING2 , STRING3 ) ;
}
private boolean matches ( int patternIndex... | extension matching doesn t require all words in file name to be present in the pattern |
<nb> public class LocalStore extends Store implements Serializable {
setPushState ( null ) ;
setLastPush ( NUMBER0 ) ;
setLastChecked ( NUMBER0 ) ;
+ setVisibleLimit ( mAccount . getDisplayCount ( ) ) ;
}
private void resetUnreadAndFlaggedCounts ( ) { | Should reset visibleLimit on clear messages |
<nb> import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Corrected Javadoc link to interface name |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ProblemDescriptionNode extends SuppressableInspectionTreeNode {
}
@ override
+ protected void dropCache ( Project proje... | do not need update node with applied fix |
<nb> public final class HttpBasedServiceCredentialsAuthenticationHandlerTests {
public void testAcceptsNonHttpsCredentials ( ) throws Exception {
this . authenticationHandler . setHttpClient ( new SimpleHttpClient ( ) ) ;
assertNotNull ( this . authenticationHandler . authenticate (
- TestUtils . getHttpBasedSe... | Fix tests after the removal of www jasig org |
<nb> class StatusThread extends Thread
COMMENT
class ClientThread extends Thread
{
- DB _db ;
+ private static boolean _spinSleep ;
+ DB _db ;
boolean _dotransactions ;
Workload _workload ;
int _opcount ;
<nb> class ClientThread extends Thread
_threadcount = threadcount ;
_props = props ;
_mea... | client Add a spin sleep option |
<nb> public class ConfigureUtil {
COMMENT
COMMENT
public static < T > T configureSelf ( Closure configureClosure , T target ) {
- return configureSelf ( configureClosure , target , new ConfigureDelegate ( configureClosure , target ) ) ;
+ return configureSelf ( configureClosure , target , new ConfigureDelegat... | Use the correct owner for configuration closures |
<nb> public final class CentralAuthenticationServiceImpl extends AbstractCentralAuthe
}
final ProxyTicketFactory factory = this . ticketFactory . get ( ProxyTicket . class ) ;
- final ProxyTicket serviceTicket = factory . create ( proxyGrantingTicketObject , service ) ;
- this . ticketRegistry . addTicket ( s... | fixed test cases |
<nb> public class BufferUtils {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static long getUnsafeByteBufferAddress ( ByteBuffer buffer ) {
+ synchronized ( unsafeBuffers ) {
+ if ( unsafeBuffers . contains ( buffer , true ) )
+ return NUMBER0 ;
+ }
+ return getByteBufferAddress ... | added get bytebuffer address to BufferUtils using jni |
<nb> public class IssueAuthorizationDao extends BaseDao < IssueAuthorizationMapper , Iss
return finalParams ;
}
+ @ override
protected void doDeleteByKey ( DbSession session , String key ) {
SINGLE
} | Fix quality flaw |
<nb> public final class CamelJmsTestHelper {
url = url + STRING0 + options ;
}
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory ( url ) ;
+ SINGLE
+ connectionFactory . setCopyMessageOnSend ( false ) ;
+ connectionFactory . setOptimizeAcknowledge ( true ) ;
+ connectionFactory .... | Optimized AMQ for quicker unit tests |
<nb> public class EthernetDataTracker implements NetworkStateTracker {
mLinkProperties = dhcpInfoInternal . makeLinkProperties ( ) ;
mLinkProperties . setInterfaceName ( mIface ) ;
+ mNetworkInfo . setIsAvailable ( true ) ;
mNetworkInfo . setDetailedState ( DetailedState . CONNECTED , null , mHwAddr ) ;
Mes... | Set network available on connected |
<nb> public final class Display {
updateDisplayInfoLocked ( ) ;
mDisplayInfo . getAppMetrics ( outMetrics , mCompatibilityInfo ) ;
}
-
- final CompatibilityInfo ci = mCompatibilityInfo . getIfNeeded ( ) ;
- if ( ci != null ) {
- ci . applyToDisplayMetrics ( outMetrics ) ;
- }
}
COMMENT | Remove unnecessary code |
<nb> public class RequestServer extends NanoHTTPD {
try {
bytes = ByteStreams . toByteArray ( resource ) ;
} catch ( IOException e ) { Log . err ( e ) ; }
- SINGLE
- SINGLE
+ byte [ ] res = _cache . putIfAbsent ( uri , bytes ) ;
+ if ( res != null ) bytes = res ; SINGLE
}
Closeables . closeQuietly ( r... | Revert cache prevention in RequestServer java |
<nb> public class Renderable {
if ( culler != null ) {
culler . cancel ( true ) ;
}
- double cullDistance = Math . pow ( FLOAT0 , base - zoom ) ;
+ double cullDistance = Math . pow ( FLOAT0 , base - newZoom ) ;
culler = new AsynchronousResampler . RamerDouglasPeucer ( this , cullDistance ) ;
if ( zoom <... | Epsilon for line simplification was using incorrect value now much nicer |
<nb> public abstract class CollectionUtils {
return collect ( set , new HashSet < R > ( ) , transformer ) ;
}
- public static < R , I , C extends Collection < R > > List < R > collect ( Iterable < ? extends I > source , Transformer < ? extends R , ? super I > transformer ) {
+ public static < R , I > List < R... | Fix method signature |
<nb> public class Jetty9AsyncSupportWithWebSocket extends Jetty7CometSupport {
}
webSocketFactory = new WebSocketServerFactory ( policy ) ;
-
webSocketFactory . setCreator ( new WebSocketCreator ( ) {
+
@ override
public Object createWebSocket ( UpgradeRequest upgradeRequest , UpgradeResponse upgradeRes... | Fix Comet support |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
- import NAMESPACE ;
-
pub... | remove unused import |
<nb> public abstract class Script extends GroovyObjectSupport {
SINGLE
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void println ( ) {
Object object = getProperty ( STRING0 ) ;
if ( object != null ) {
<nb> public abstract class Script extends GroovyObjectSupport {
}
}
+ COMME... | added better javadoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RatpackRetrofit {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public Builder configure ( Action < ? super Retrofit... | Fix some imports |
<nb> public class ImApp extends Application {
public static final String IMPS_CATEGORY = STRING0 ;
public static final String ACTION_QUIT = STRING1 ;
- public static final int DEFAULT_AVATAR_WIDTH = NUMBER0 ;
- public static final int DEFAULT_AVATAR_HEIGHT = NUMBER0 ;
+ public static final int DEFAULT_AVATA... | reduce memory usage in half by reducing avatars in half |
<nb> public class SpdyReceiveListener implements ChannelListener < SpdyChannel > {
}
exchange . addQueryParam ( headerName , value ) ;
headerName = null ;
- currentPos = i ;
+ currentPos = i + NUMBER0 ;
decodeRequired = false ;
} else if ( c == STRING0 ) {
decodeRequired = true ; | Fix query parameter parsing |
<nb> public class ScanResult implements Parcelable {
COMMENT
COMMENT
public static class InformationElement {
+ public static final int EID_SSID = NUMBER0 ;
+ public static final int EID_BSS_LOAD = NUMBER1 ;
+ public static final int EID_HT_OPERATION = NUMBER2 ;
+ public static final int EID_INTERWORKING ... | Moved Wifi InformationElement parsing to a common utility class |
<nb> public class Insert extends TableStatement {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public Insert values ( Object . . . values ) {
valuesToInsert . add ( Arrays . asList ( values ) ) ; | Fix some erroneous documentation in Insert |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ @ ignore
public class PathWatcherTest
{
public static class PathWatchEventCapture implements PathWatcher . Listener | Disabling PathWatcherTest temporarily |
<nb> public class JavaDocInfoGenerator {
}
}
+ if ( type instanceof PsiCapturedWildcardType ) {
+ type = ( ( PsiCapturedWildcardType ) type ) . getWildcard ( ) ;
+ }
+
if ( type instanceof PsiWildcardType ) {
PsiWildcardType wt = ( ( PsiWildcardType ) type ) ; | present captured wildcards in quick doc e g class getTypeParameters |
<nb> public final class StorageManagerInternal implements StorageManager , EntityDestr
ChunkProvider chunkProvider = CoreRegistry . get ( ChunkProvider . class ) ;
NetworkSystem networkSystem = CoreRegistry . get ( NetworkSystem . class ) ;
- chunkProvider . shutdown ( ) ;
createChunkStoresForSave ( saveTrans... | Don t stop the ChunkProvider as it can run concurrent with save snapshot creation |
<nb> public class Audio {
COMMENT
COMMENT
static public void say ( String text , String voice ) {
- if ( text != null && ! StringUtils . isEmpty ( text . trim ( ) ) ) {
+ if ( StringUtils . isBlank ( text ) ) {
TTSService ttsService = getTTSService ( MultimediaActivator . getContext ( ) , System . getProper... | replaced isEmpty by isBlank |
<nb> public enum Reason
COMMENT
COMMENT
COMMENT
- UNSUPPORTED_TRANSPORTS ( STRING0 ) ;
+ UNSUPPORTED_TRANSPORTS ( STRING0 ) ,
+
+ COMMENT
+ COMMENT
+ COMMENT
+ UNDEFINED ( STRING1 ) ;
COMMENT
COMMENT
<nb> public enum Reason
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
... | Adds support for undefined Jingle reason codes |
<nb> public class EnterpriseServerBuilder extends ServerBuilder
@ override
public void stop ( )
{
+ super . stop ( ) ;
configFile . delete ( ) ;
}
} ; | Properly stop server |
<nb> public class InvokerHelper {
object . invokeMethod ( STRING0 , new Object [ ] { new String [ NUMBER0 ] } ) ;
return null ;
} } ;
+ setProperties ( object , context . getVariables ( ) ) ;
}
script . setBinding ( context ) ;
return script ;
<nb> public class InvokerHelper {
}
}
+ COMMENT
+ ... | Added Troy s suggestion that we set properties on a non Script derived script |
<nb> public class DocumentArchive implements Closeable {
throw new FileNotFoundException ( ) ;
}
+ InputStream inputStream = null ;
try {
- final InputStream inputStream = mZipFile . getInputStream ( entry ) ;
+ inputStream = mZipFile . getInputStream ( entry ) ;
final ExifInterface exif = new ExifInter... | Close the input stream when generating thumbnails |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
- public enum EAGLRenderingAPI {
+ public enum EAGLRenderingAPI implements ValuedEnum {
OpenGLES1 ( NUMBER0 ) ,
OpenGLES2 ( NUMBER1 ) ; | The EAGLRenderingAPI enum must implement ValuedEnum |
<nb> public class Main {
. withArgName ( STRING0 )
. create ( STRING1 ) ;
+ Option frameIfDirOption = OptionBuilder . withLongOpt ( STRING2 )
+ . withDescription ( STRING3 )
+ . hasArg ( true )
+ . withArgName ( STRING0 )
+ . create ( STRING1 ) ;
+
Option keepResOption = OptionBuilder . withLongOpt ... | adjust output for if install for frame path |
<nb> public class GithubRepositoryEditor extends BaseRepositoryEditor < GithubRepositor
myHost . getDocument ( ) . addDocumentListener ( buttonUpdater ) ;
myRepoAuthor . getDocument ( ) . addDocumentListener ( buttonUpdater ) ;
myRepoName . getDocument ( ) . addDocumentListener ( buttonUpdater ) ;
- myURLText .... | remove useless listener |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
<nb> public class SocketStoreTest extends AbstractByteArrayStoreTest {
public void testThreadOverload ( ) throws Exception {
final Store < ByteArray , byte [ ] > store = getStor... | Remove unused AtomicInteger val in testThreadOverload |
<nb> public class DataInfo extends Keyed {
}
}
+
public final int getCategoricalId ( int cid , int val ) {
- if ( _catLvls != null ) { SINGLE
- int c = Arrays . binarySearch ( _catLvls [ cid ] , val ) ;
- if ( c >= NUMBER0 )
- return c + _catOffsets [ cid ] ;
- } else if ( _useAllFactorLevels )
- ... | Fixed AIOOB bug in GLM |
<nb> public class ActivityManager {
return stackId == FREEFORM_WORKSPACE_STACK_ID ;
}
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
public static boolean persistTaskBounds ( int stackId ) {
- return isStaticStack ( stackId ) &&
- stackId != DOCKED_STACK_ID && stackId != PINNED_STACK_ID ;
+ return stackI... | Only persist task bounds for freeform tasks |
<nb> public class InMemorySessionManager implements SessionManager {
@ override
public void invalidate ( final HttpServerExchange exchange ) {
+ if ( cancelKey != null ) {
+ cancelKey . remove ( ) ;
+ }
final InMemorySession sess = sessions . remove ( sessionId ) ;
if ( sess == null ) {
throw Undertow... | Remove timeout task when session is invalidatated |
<nb> public abstract class BaseSSLContextParameters extends JsseParameters {
@ override
public String toString ( ) {
- return String . format ( STRING0 ,
+ return String . format ( STRING1
+ + STRING2 ,
getProvider ( ) , getProtocol ( ) , getDefaultSSLParameters ( ) . getNeedClientAuth ( ) , getDefaultSSL... | Fixed CS error of BaseSSLContextParameters |
<nb> public class FirstWizardPage
this . defaultPort . setSelected ( true ) ;
this . passwordNotRequired . setSelected ( true ) ;
this . useSecureConnection . setSelected ( true ) ;
- this . portField . setText ( this . useSecureConnection . isSelected ( ) ? DEFAULT_SECURE_PORT : DEFAULT_PLAINTEXT_PORT ) ;
+ ... | Fix line length |
<nb> public class MathJaxLoader
return mathjax . isReady ;
} - * / ;
- private static final native void setMathJaxHooks ( ) COMMENT
- COMMENT ;
-
private static ScriptElement createMathJaxScriptElement ( )
{
ScriptElement el = Document . get ( ) . createScriptElement ( ) ; | remove unused method |
<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub {
public UserHandle createAndInitializeUser ( ComponentName who , String name ,
String ownerName , ComponentName profileOwnerComponent , Bundle adminExtras ) {
UserHandle user = createUser ( who , name ) ;
+ if ( user == null ) {
... | Avoid NullPointerException if createUser returns null |
<nb> public class DB {
throw new InternalError ( STRING0 + name ) ;
}
+ synchronized public boolean exists ( String name ) {
+ return catGet ( name + STRING1 ) != null ;
+ }
+
COMMENT
synchronized public void delete ( String name ) {
Object r = get ( name ) ; | Add DB exists method to check if named record collection exists |
<nb> public class Jar {
COMMENT
COMMENT
public Jar setListAttribute ( String section , String name , List < String > values ) {
- return setAttribute ( name , section , join ( values ) ) ;
+ return setAttribute ( section , name , join ( values ) ) ;
}
COMMENT
<nb> public class Jar {
COMMENT
COMMEN... | Fix setMap ListAttribute |
<nb> public static Object compile ( Reader rdr , String sourcePath , String sourceName ) t
clinitgen . returnValue ( ) ;
clinitgen . endMethod ( ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE ... | started work on AOT main support |
<nb> public class GrailsConventionGroovyPageLocator extends DefaultGroovyPageLocator
return mimeType . getExtension ( ) ;
}
}
+ else {
+ GrailsWebRequest webRequest =
+ GrailsWebRequest . lookup ( ) ;
+ if ( webRequest != null ) {
+
+ HttpServletRequest request = webRequest . getCurrentRequest ( ) ;
... | fix failing test |
<nb> public class AntScriptGenerator {
String buildFileName = STRING0 + target . os . toString ( ) . toLowerCase ( ) + ( target . is64Bit ? STRING1 : STRING2 ) + STRING3 ;
if ( target . buildFileName != null ) buildFileName = target . buildFileName ;
config . jniDir . child ( buildFileName ) . writeString ( build... | fixed smallish logging issue in ant script generator |
<nb> public class DefaultJwtParser implements JwtParser {
Assert . isTrue ( ! algorithm . isRsa ( ) ,
STRING0 ) ;
+ Assert . isTrue ( ! algorithm . isEllipticCurve ( ) ,
+ STRING1 ) ;
+
key = new SecretKeySpec ( keyBytes , algorithm . getJcaName ( ) ) ;
}
} | Avoid potentially critical vulnerability in ECDSA signature validation |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MessageFramerTest {
assertTrue ( TransportFrameUtil . isNotCompressed ( flag ) ) ;
assertEquals ( frame . remaining ( ) ,... | Remove dependency on ByteBuffers |
<nb> public class VClientImpl extends IVClient . Stub {
Application app = data . info . makeApplication ( false , null ) ;
mInitialApplication = app ;
ContextFixer . fixContext ( app ) ;
- List < ProviderInfo > providers = data . providers ;
- if ( providers != null ) {
- installContentProviders ( app , pro... | fix content provider may need application issues |
<nb> public class DefaultBroadcasterFactory extends BroadcasterFactory {
logger . debug ( STRING0 , b . getID ( ) ) ;
store . remove ( b . getID ( ) , b ) ;
}
- if ( store . putIfAbsent ( id , createBroadcaster ( c , id ) ) == null ) {
+
+ Broadcaster existingOne = store . putIfAbsent ( id , createBroadcast... | Log a warning when a duplicated Broadcaster gets created |
<nb> public class VectorDrawableTest extends AndroidTestCase {
public void testGetConstantState ( ) {
VectorDrawableCompat vectorDrawable =
- VectorDrawableCompat . create ( mResources , R . drawable . vector_icon_arcto , mTheme ) ;
+ VectorDrawableCompat . create ( mResources , R . drawable . vector_icon_del... | Fix build for VDC |
<nb> public class ScrimController implements ViewTreeObserver . OnPreDrawListener {
}
private void updateScrims ( ) {
- if ( ! mKeyguardShowing || mAnimateKeyguardFadingOut ) {
+ if ( ( ! mKeyguardShowing && ! mBouncerShowing ) || mAnimateKeyguardFadingOut ) {
updateScrimNormal ( ) ;
setScrimInFrontColor ... | Fix scrim in PIN PUK |
<nb> public class ScpEndpoint extends RemoteFileEndpoint < ScpFile > {
@ override
protected RemoteFileConsumer < ScpFile > buildConsumer ( Processor processor ) {
- return null ; SINGLE
+ throw new UnsupportedOperationException ( STRING0 ) ;
}
+ @ override
protected GenericFileProducer < ScpFile > bui... | camel jsch Should throw UnsupportedOperationException when creating a consumer instead of causing a NPE |
<nb> class IntMatchFilter implements IntFilter {
}
@ override
- public int hashCode ( ) {
+ public final int hashCode ( ) {
return Integer . valueOf ( matchValue ) . hashCode ( ) ;
}
@ override
- public boolean equals ( Object object ) {
+ public final boolean equals ( Object object ) {
if ( obj... | Fix problem found by EqualsVerifier in IntMatchFilter |
<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 ;
<nb> public class GroovyPsiManager implements Projec... | drop groovy resolve caches on roots change event |
<nb> public class WindowManagerService extends IWindowManager . Stub
ws . isDisplayedLw ( ) ) {
screenshotReady = true ;
}
+
+ if ( ws . isFullscreen ( dw , dh ) && ws . isOpaqueDrawn ( ) ) {
+ break ;
+ }
}
if ( appToken != null && appWin == null ) { | Not include fullscreen opaque window on screenshot |
<nb> public class GifDrawable extends Drawable implements Animatable , MediaPlayerCont
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public boolean isAnimationCompleted ( ) { | GifDrawable isAnimationCompleted javadoc added |
<nb> public abstract class AbstractReplicatedMap < K , V >
return ; SINGLE
}
}
-
+ if ( log . isInfoEnabled ( ) )
+ log . info ( STRING0 + member + STRING1 ) ;
+ long start = System . currentTimeMillis ( ) ;
Iterator < Map . Entry < K , MapEntry < K , V > > > i = innerMap . entrySet ( ) . iterator ( ) ;... | Add log message of session relocation when member disappeared |
<nb> public final class ImmutableEntityEntry extends AbstractEntityEntry {
final boolean lazyPropertiesAreUnfetched ,
final PersistenceContext persistenceContext ) {
this ( status , loadedState , rowId , id , version , lockMode , existsInDatabase ,
- persister , disableVersionIncrement , lazyPropertiesAreUnfetc... | Memory Leak when using Reference Cached bytecode enhanced Immutable Entities |
<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 ;
<nb> import static NAMESPACE ;
COMME... | simplify completion contributor registration |
<nb> public class Wallet implements Serializable , BlockChainListener , PeerFilterProvi
COMMENT
COMMENT
public WalletFiles autosaveToFile ( File f , long delayTime , TimeUnit timeUnit ,
- WalletFiles . Listener eventListener ) {
+ @ nullable WalletFiles . Listener eventListener ) {
lock . lock ( ) ;
try {... | add a missing Nullable annotation |
<nb> public class RecentsActivity extends Activity implements RecentsView . RecentsView
@ override
public void onCreate ( Bundle savedInstanceState ) {
super . onCreate ( savedInstanceState ) ;
+ SINGLE
+ RecentsTaskLoader . initialize ( this ) ;
SINGLE
mConfig = RecentsConfiguration . reinitialize ( th... | Fixing Recents crash with non primary user |
<nb> public class CommaWhitespaceRule extends Rule {
final AnalyzedTokenReadings [ ] tokens = text . getTokens ( ) ;
String prevToken = STRING0 ;
String prevPrevToken = STRING0 ;
- boolean prevWhite = false ;
- int pos = NUMBER0 ;
+ boolean prevWhite = false ;
int prevLen = NUMBER0 ;
for ( int i = NUMBE... | remove unused variable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TableWriterOperator
this . recordSink = checkNotNull ( recor... | Remove identity transformation |
<nb> public class SlidingPaneLayout extends ViewGroup {
setWillNotDraw ( false ) ;
ViewCompat . setAccessibilityDelegate ( this , new AccessibilityDelegate ( ) ) ;
+ ViewCompat . setImportantForAccessibility ( this , ViewCompat . IMPORTANT_FOR_ACCESSIBILITY_YES ) ;
mDragHelper = ViewDragHelper . create ( th... | Omit dimmed children from accessibility nav in SlidingPaneLayout |
<nb> class TypedCodeGenerator extends CodeGenerator {
if ( funType . isConstructor ( ) ) {
sb . append ( STRING0 ) ;
+ } else if ( funType . isStructuralInterface ( ) ) {
+ sb . append ( STRING1 ) ;
} else if ( funType . isInterface ( ) ) {
sb . append ( STRING2 ) ;
}
<nb> public final class ExternExp... | Teach TypedCodeGenerator about record types |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.