diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ForgeHooks { public static final int majorVersion = NUMBER0 ; public static final int minorVersion = NUMBER1 ; - public static final int r...
Bumped version number
<nb> public class CordovaWebView extends WebView { return true ; } SINGLE - else { - SINGLE - SINGLE - SINGLE - this . cordova . getActivity ( ) . finish ( ) ; - } } } }
Delete explicit activity finish in back button handling
<nb> public abstract class AbstractFramedStreamSourceChannel < C extends AbstractFramed state |= STATE_READS_RESUMED ; if ( ! alreadyResumed || wakeup ) { if ( ! anyAreSet ( state , STATE_IN_LISTENER_LOOP ) ) { + state |= STATE_IN_LISTENER_LOOP ; getIoThread ( ) . execute ( new Runnable ( ) { @ override ...
Prevent possible wakeup loop
<nb> COMMENT COMMENT COMMENT - package NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; COMMENT public class ReplicationTransmitter implements ChannelSender { ...
Remove unused code
<nb> public class NoSuchParserException extends ParseException { COMMENT COMMENT public NoSuchParserException ( TypeToken < ? > type , Object opts , String contentType ) { - super ( STRING0 + contentType + STRING1 + type + STRING2 + opts ) ; + super ( STRING3 + type + STRING4 + contentType + STRING5 + ( opts ...
Improved error message when parser selection fails
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> public class HBaseKeyColumnValueStore implements KeyColumnValueStore { public void close ( ) { isClosed = true ; } - + @ override public void remove ( ) { throw n...
Removed experimental comment for HBase
<nb> public class ODatabaseRaw implements ODatabase { } public void delete ( ) { - close ( false ) ; + close ( true ) ; try { if ( storage == null )
Forced close of storage on delete
<nb> public abstract class Lang { if ( a1 == a2 ) return true ; - if ( a1 == null && a2 == null ) - return false ; - if ( a1 == null || a2 == null ) return false ;
delete useless code
<nb> final class SampleMediaRouteProvider extends MediaRouteProvider { callback . onError ( STRING0 + uri . toString ( ) , null ) ; } } - mEnqueueCount += NUMBER0 ; return true ; } <nb> final class SampleMediaRouteProvider extends MediaRouteProvider { } } } - } + }
Remove an unused member in SampleMediaRouteProvider
<nb> public class DataSourceFactory implements PooledDataSourceFactory { } @ jsonproperty + @ override public String getUrl ( ) { return url ; } <nb> public interface PooledDataSourceFactory { String getDriverClass ( ) ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + String getUrl ( )...
Add getUrl to PooledDataSourceFactory
<nb> public class Notification implements Parcelable COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Doc fix Document best practices for display intent activities
<nb> public class StandardRoot extends LifecycleMBeanBase implements WebResourceRoot SINGLE @ override protected String getDomainInternal ( ) { - return context . getDomain ( ) ; + return ( context != null ) ? context . getDomain ( ) : null ; } @ override
Avoid NPE with storeconfig
<nb> public class DevicePolicyManager { public static final int SKIP_SETUP_WIZARD = NUMBER0 ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final int MAKE_USER_EPHEMERAL = NUMBER1 ; + + COMMENT COMMENT COMMENT COMMENT <nb> public class DevicePolicyManagerService extends IDe...
Add a flag for creating an ephemeral user with
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class NewJavaSourceFilePresenter implements NewJavaSourceFileView . ActionD @ override public void apply ( File file ) throws OperationException { ...
Reveal new java source file
<nb> public class DeskshareClient { java . awt . Dimension fullScreenSize = Toolkit . getDefaultToolkit ( ) . getScreenSize ( ) ; captureWidth = ( int ) fullScreenSize . getWidth ( ) ; captureHeight = ( int ) fullScreenSize . getHeight ( ) ; + scaleWidth = captureWidth ; + scaleHeight = captureHeight ; x = ...
don t scale when sharing fullscreen
<nb> public class CertificateChainValidator { } try { - SSLParametersImpl . getDefaultTrustManager ( ) . checkServerTrusted ( chain , authType ) ; + X509TrustManager x509TrustManager = SSLParametersImpl . getDefaultTrustManager ( ) ; + if ( x509TrustManager instanceof TrustManagerImpl ) { + TrustManagerIm...
Change verifyServerDomainAndCertificates to pass in a hostname
<nb> public class LuceneExecutor implements Runnable { writer . commit ( ) ; Document doc = createDocument ( commit , null ) ; + doc . add ( new Field ( FIELD_BRANCH , branch , Store . YES , Index . ANALYZED ) ) ; result . commitCount ++ ; result . success = index ( repositoryName , doc ) ; } catch ( Exce...
Incremental commit indexing was missing branch field
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class BaseWeatherConsumerTest extends CamelTestSupport { MockEndpoint mock = getMockEndpoint ( STRING0 ) ; SINGLE mock . expectedMessageCount ( NUMBER0 ) ; - mo...
fixed a unit test which fails from time to time on Jankins
<nb> public class SMTRunnerStatisticsPanelTest extends BaseSMTRunnerTestCase { consoleProperties , environment . getRunnerSettings ( ) , environment . getConfigurationSettings ( ) ) ; - myStatisticsPanel = new StatisticsPanel ( getProject ( ) , myResultsForm ) ; + myResultsForm . initUI ( ) ; + myStatistics...
fixed npe in SMTRunnerStatisticsPanel tests
<nb> abstract class HybiParser { throw new ProtocolError ( STRING0 ) ; } - if ( FRAGMENTED_OPCODES . contains ( mOpcode ) && ! mFinal ) { + if ( ! FRAGMENTED_OPCODES . contains ( mOpcode ) && ! mFinal ) { throw new ProtocolError ( STRING1 ) ; }
Fix hybiparser bug
<nb> public final class Mapper { } SINGLE - if ( mappingData . context == null ) { + if ( mappingData . context == null && contexts != null ) { int pos = find ( contexts , uri ) ; if ( pos == - NUMBER0 ) { return ;
Avoid unlikely NPE
<nb> public class CompletionRequester { return new QualifiedName ( name , - STRING0 , + STRING1 , false , RCompletionType . SNIPPET ) ; }
don t enclose snippet in brackets
<nb> public class ShadowSparseBooleanArray } @ implementation - public void remove ( int key ) { - sparseArray . remove ( key ) ; - } - - @ implementation public void put ( int key , boolean value ) { sparseArray . put ( key , value ) ; } <nb> public class ShadowSparseBooleanArray } @ impl...
Removing superfluous methods from ShadowSparseBooleanArray
<nb> public class OverlayDrawer extends DraggableDrawer { stopAnimation ( ) ; endPeek ( ) ; - if ( ! mMenuVisible ) { + if ( ! mMenuVisible && mInitialMotionX <= mPeekSize ) { postDelayed ( mRevealRunnable , NUMBER0 ) ; } <nb> public class OverlayDrawer extends DraggableDrawer { stopAnimation ( ) ; ...
Only reveal overlay drawer when touching edge
<nb> public class PrintActivity extends Activity implements RemotePrintDocument . Updat SINGLE SINGLE SINGLE - mPrinterRegistry = new PrinterRegistry ( PrintActivity . this , - new Runnable ( ) { - @ override - public void run ( ) { - onPrinterRegistryReady ( documentAdapter ) ; - } + mPrinterRegist...
Delay callback from printerRegistry after Constr
<nb> import NAMESPACE ; public class AnnotationDescriptionAbstractPreparedExceptionTest { - @ test ( expected = ClassNotFoundException . class ) + @ test ( expected = IllegalStateException . class ) public void testThrowWithoutClassLoader ( ) throws Exception { new PseudoDescription ( ) . loadSilent ( ) ;...
Fixed wrong expected exception
<nb> public class DefaultToolResolver implements ToolResolver { @ suppresswarnings ( STRING0 ) private Set < ToolChainInternal > toolChains ; - public DefaultToolResolver ( ToolChainInternal . . . toolChains ) { + public DefaultToolResolver ( @ suppresswarnings ( STRING0 ) ToolChainInternal . . . toolChains )...
Fixing CI breakages
<nb> - COMMENT - COMMENT - COMMENT package NAMESPACE ; import NAMESPACE ; <nb> - COMMENT - COMMENT - COMMENT package NAMESPACE ; import NAMESPACE ;
Removed copyright messages
<nb> public class MyRouteBuilder extends RouteBuilder { COMMENT COMMENT COMMENT - public static void main ( String . . . args ) { + public static void main ( String . . . args ) throws Exception { Main . main ( args ) ; }
fix compile error
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class TSDB { } } + COMMENT + COMMENT + COMMENT + COMMENT + public Deferred < Boolean > processTSMetaThroughTrees ( final TSMeta me...
Add TSDB processTSMetaThroughTrees for processing new TSMeta as they come in
<nb> public class NotPredicateTest { @ test public void testNormalizeSymbol ( ) throws Exception { - NotPredicate notOp = new NotPredicate ( ) ; + NotPredicate notPredicate = new NotPredicate ( ) ; Reference name_ref = new Reference ( new ReferenceInfo ( new ReferenceIdent ( new TableIdent ( null , STRI...
renamed variable names
<nb> public class ServletAnnotationControllerHandlerMethodTests extends AbstractServl } @ responsestatus ( HttpStatus . NOT_FOUND ) + @ suppresswarnings ( STRING0 ) private static class NotFoundException extends RuntimeException { } }
Suppress warning in ServletAnnotationControllerHandlerMethodTests
<nb> public class FeedItem extends FeedComponent { this . read = read ; if ( media != null ) { media . setPosition ( NUMBER0 ) ; - if ( read ) { - media . setPlaybackCompletionDate ( new Date ( ) ) ; - } else { - media . setPlaybackCompletionDate ( null ) ; - } } }
Don t change playback completion date
<nb> public class MongoDBRiverDefinition { } builder . mongoServers ( mongoServers ) ; - MongoClientOptions . Builder mongoClientOptionsBuilder = MongoClientOptions . builder ( ) / * - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - . socketKeepAlive ( true ) ; + MongoClientOptions ....
Remove the commented setting of autoConnectRetry
<nb> public class PrepareCatalogMojo extends AbstractMojo { missingUriPaths . add ( file ) ; } - SINGLE - List < Map < String , String > > rows = JSonSchemaHelper . parseJsonSchema ( STRING0 , text , true ) ; + SINGLE + List < Map < String , String > > rows = JSonSchemaHelper . parseJsonSchema ( STRING1 ,...
Camel catalog should report missing javadoc option for components also
<nb> public class PJOGL extends PGL { } } - if ( canvasAWT != null && canvasNEWT != null ) { + if ( canvasAWT != null || canvasNEWT != null ) { SINGLE if ( canvasAWT != null ) { sharedCanvasAWT = null ;
fixed restart condition
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; @ eactivity public class TransactionalActivity extends Activity { <nb> public class TransactionalActivity extends Activity { throw new ...
Added a new test that show errors on generated code when Transactional is used with parameterized parameters or array parameters
<nb> final class DirectBufferPool { NUMBER0 ) ; if ( val <= NUMBER0 ) { - val = NUMBER1 * NUMBER2 ; + val = NUMBER3 ; } else { logger . debug ( STRING0 + val ) ;
Increased the default preallocation size for higher out of the box throughput
<nb> public class DiscoveryWithServiceDisruptionsIT extends ESIntegTestCase { . put ( STRING0 , STRING1 ) SINGLE . put ( DiscoverySettings . PUBLISH_TIMEOUT_SETTING . getKey ( ) , STRING2 ) SINGLE . put ( STRING3 , false ) SINGLE - . put ( STRING4 , STRING1 ) SINGLE . build ( ) ; @ override
remove unused unsupported setting
<nb> public class TestHiveDistributedQueries public void testDelete ( ) throws Exception { - SINGLE + SINGLE + } + + @ override + public void testAddColumn ( ) + throws Exception + { + SINGLE + } + + @ override + public void testRenameColumn ( ) + throws Exception + { + SINGLE + ...
Disable schema change tests in Hive distributed test
<nb> public class IndicesQueriesRegistry extends AbstractComponent { private ImmutableMap < String , QueryParser < ? > > queryParsers ; @ inject - public IndicesQueriesRegistry ( Settings settings , Set < QueryParser < ? > > injectedQueryParsers , NamedWriteableRegistry namedWriteableRegistry ) { + public Ind...
resolve guice injection issue after last commit
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class Subject < T > extends Observable < T > implements Observer < T > { @ test public void test ( ) { Subject <...
removing the dependency on groovy
<nb> public class HystrixCommandTest extends CommonHystrixCommandTests < TestHystrixCom SINGLE SINGLE SINGLE - - @ test - public void stressTestLargeThreadPoolSmallQueueUsingQueue ( ) throws Exception { - for ( int n = NUMBER0 ; n < NUMBER1 ; n ++ ) { - testCommandConcurrencyViaQueueExceedsQueueSizeButN...
Missed a test to comment out
<nb> public class LdapPasswordPolicyEnforcer extends AbstractPasswordPolicyEnforcer { final LdapPasswordPolicyResult ldapResult = getEnforcedPasswordPolicy ( userId ) ; if ( ldapResult == null ) { - log . debug ( STRING0 ) ; + log . debug ( STRING1 , userId ) ; return PASSWORD_STATUS_PASS ; } if ( Str...
Added the userId to the log messages when lppe cant be established
<nb> public abstract interface Element { COMMENT COMMENT COMMENT - public Object getProperty ( String key ) ; + public < T > T getProperty ( String key ) ; COMMENT COMMENT <nb> public abstract interface Element { COMMENT COMMENT COMMENT - public Object removeProperty ( String key ) ; + publi...
Elements now return T to avoid having to cast
<nb> public class SessionImpl implements Session { public Presence setPresence ( Presence presence ) { Presence oldPresence = this . presence ; this . presence = presence ; + if ( oldPresence . getPriority ( ) != this . presence . getPriority ( ) ) { + sessionManager . changePriority ( getAddress ( ) , this ....
Fixed message delivery to resource with highest priority
<nb> public class AccountManagerService COMMENT COMMENT private void addAccountToLimitedUsers ( Account account ) { - List < UserInfo > users = mUserManager . getUsers ( ) ; + List < UserInfo > users = getUserManager ( ) . getUsers ( ) ; for ( UserInfo user : users ) { if ( user . isRestricted ( ) ) { a...
Fixed a NPE in AccountManagerService
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT public class GroovyMain { <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT public class FileSystemCompiler {
remove noinspection tags
<nb> public class AccountSetupBasics extends K9Activity incomingUsername = incomingUsername . replaceAll ( STRING0 , domain ) ; URI incomingUriTemplate = mProvider . incomingUriTemplate ; + + String namespace = null ; + SINGLE + if ( incomingUriTemplate . getHost ( ) . toLowerCase ( ) . endsWith ( STRING1...
Set the IMAP namespace for Gmail during auto configuration
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class DomainClassMethods extends AbstractDynamicMethods { throws IntrospectionException { super ( theClass ) ; SINGLE - addDynamicMethodInvocation ( new Sa...
added constraints property as a domain class property
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ERDEntity extends ERDObject < DBSEntity > SINGLE DBSEntityConstraint uniqueId = null ; SINGLE - for ( DBSEntityConstraint id : entity . ge...
Entity unique key searching fix handle missing constraints
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class PropertyValue extends BeanMetadataAttributeAccessor implements Seri volatile Boolean conversionNecessary ; COMMENT - volatile Object resolvedTokens ; + transient volatile Object resolvedTokens ; COMMENT - volatile P...
PropertyValue declares its cache fields as transient
<nb> public class SynchronizeFolderOperation extends RemoteOperation { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class FileSyncAdapter ext...
Full account synchronization should never fetch the contents of a folder
<nb> public final class VarCheckTest extends CompilerTestCase { testError ( STRING0 , VarCheck . LET_CONST_MULTIPLY_DECLARED_ERROR ) ; } + public void testMultiplyDeclareLetsInDifferentScope ( ) { + setAcceptedLanguage ( LanguageMode . ECMASCRIPT6 ) ; + testSame ( STRING1 ) ; + testSame ( STRING2 ) ; + ...
Adding two tests to verify multiple declaration of let in different scope doesn t report error warning
<nb> public class JUnitUtil { return getTestCaseClass ( scope , module . getProject ( ) ) ; } + public static PsiClass getTestCaseClass ( final SourceScope scope ) throws NoJUnitException { + if ( scope == null ) throw new NoJUnitException ( ) ; + return getTestCaseClass ( scope . getLibrariesScope ( ) , sc...
Fixing failing tests
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - class XValueTextRendererImpl extends XValueTextRendererBase { + public class XValueTextRendererImpl extends XValueTextRendererBase { private final ColoredTextContainer myText ; public...
make class public
<nb> public class GoStringManipulator extends AbstractElementManipulator < GoStringLite @ override public GoStringLiteralImpl handleContentChange ( @ notnull GoStringLiteralImpl literal , @ notnull TextRange range , String newContent ) throws IncorrectOperationException { - final String oldText = literal . getT...
Reuse IDEA util methods
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; public final class ShowHiddensAction extends ToggleAction implements DumbAware { @ override public void update ( AnActionEvent e ) { + super . update ( e ...
fix Show Hidden Files toggle state presentation
<nb> public class DiscardMessageOutput implements MessageOutput { messagesDiscarded . mark ( messages . size ( ) ) ; } - public interface Factory extends MessageOutput . Factory < GelfOutput > { + public interface Factory extends MessageOutput . Factory < DiscardMessageOutput > { @ override - GelfOutput c...
Fix generic type of DiscardMessageOutput Factory
<nb> public class Xml { COMMENT public static void parse ( InputStream in , Encoding encoding , ContentHandler contentHandler ) throws IOException , SAXException { - try { - XMLReader reader = new ExpatReader ( ) ; - reader . setContentHandler ( contentHandler ) ; - InputSource source = new InputSource ( ...
Remove inappropriate conversion of IOException to AssertionError
<nb> public class JSR356Endpoint extends Endpoint { @ override public void onClose ( javax . websocket . Session session , javax . websocket . CloseReason closeCode ) { + logger . trace ( STRING0 , session , closeCode ) ; request . destroy ( ) ; webSocketProcessor . close ( webSocket , closeCode . getCloseC...
Log it as GlassFish fail to call it
<nb> public class WorldEditListener extends PluginListener { COMMENT COMMENT private boolean canUseCommand ( Player player , String command ) { + SINGLE + if ( command . equalsIgnoreCase ( STRING0 ) + || command . equalsIgnoreCase ( STRING1 ) + || command . equalsIgnoreCase ( STRING2 ) + || command . eq...
Added worldeditselect permission in order to allow just selecting a region
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class PathFragment implements Comparable < PathFragment > , Serializabl return segments ; } + public ImmutableList < String > getSegments...
Making the PathFragment interned segments list public to be used later in
<nb> public abstract class MixinMinecraftServer implements Server , ConsoleSource { @ override public void broadcastMessage ( Message message ) { - SINGLE - getConfigurationManager ( ) . sendChatMsg ( new ChatComponentText ( ( String ) message . getContent ( ) ) ) ; + getConfigurationManager ( ) . sendChatM...
Fix Server broadcastMessage for complex messages
<nb> import NAMESPACE ; COMMENT COMMENT @ suppresswarnings ( STRING0 ) + @ suppresswarnings ( STRING1 ) public class ReLinker { private static final String LIB_DIR = STRING2 ; private static final int MAX_TRIES = NUMBER0 ;
Ignore PMD issues in ReLinker
<nb> public class OperatorDoOnSubscribe < T > implements Operator < T , T > { COMMENT COMMENT - COMMENT + COMMENT COMMENT public OperatorDoOnSubscribe ( Action0 subscribe ) { this . subscribe = subscribe ; <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT +...
add javadocs to describe SerializedSubject class
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SgApp extends Application { servicesComponent = DaggerServicesComponent . builder ( ) . appModule ...
Rename ServicesModule to TmdbModule
<nb> public abstract class AbstractChannel extends DefaultAttributeMap implements Cha return localAddress ; } + COMMENT + COMMENT + COMMENT + @ deprecated protected void invalidateLocalAddress ( ) { localAddress = null ; } <nb> public abstract class AbstractChannel extends DefaultAttributeMap impl...
Deprecate methods in AbstractChannel that have no real usage
<nb> public class Build { COMMENT COMMENT public static boolean isBuildConsistent ( ) { + SINGLE + if ( STRING0 . equals ( TYPE ) ) return true ; + final String system = SystemProperties . get ( STRING1 ) ; final String vendor = SystemProperties . get ( STRING2 ) ; final String bootimage = SystemPrope...
Do not check consistency on eng build
<nb> public abstract class JsMessageVisitor extends AbstractPostOrderCallback if ( ! phNames . contains ( phName ) ) { throw new MalformedException ( STRING0 + phName , - objLitNode ) ; + node ) ; } } <nb> public abstract class JsMessageVisitor extends AbstractPostOrderCallback if ( ! usedPlaceholde...
Fix another bad source file reference in for error messages in JsMessageVisitor
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; public class AddonUtils { - - private static final Logger logger = LoggerFactory . getLogger ( AddonUtils . class ) ; - p...
remove unused logger in AddonUtils
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; complete = false , injects = { FakeActivity . class , FakeActivityWithPresenter . class , - FakeActivityWithPresenterNoHand...
Add test to cover the fix we ve implemented
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT @ retention ( RetentionPolicy . RUNTIME ) - @ target ( { ElementType . METHOD , ElementType . FIELD } ) + @ target ( { ElementType . METHOD } ) public @ in...
Removed possibility to assign IBOutlet to fields
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class TestGraph extends PreviewControllerImpl { graph . addNode ( n3 ) ; graph . addNode ( n4 ) ; + graph . addSelfLoop ( new SelfLoopImpl ( graph , FLOAT0 , NUMBER0 , n2 ) ...
Added a self loop to the test graph in the testing preview controller
<nb> class MavenMetadataLoader { MavenMetadata metadata = new MavenMetadata ( ) ; try { parseMavenMetadataInfo ( metadataLocation , metadata ) ; + } catch ( ResourceNotFoundException e ) { + throw e ; } catch ( Exception e ) { throw new ResourceException ( String . format ( STRING0 , metadataLocation ) , ...
Keep distinction between ResourceException and ResourceNotFoundException as VersionLister handles them differently logging warning for ResourceException but not for ResourceNotFoundException
<nb> public class SslConnection extends AbstractConnection } else { + if ( _encryptedInput . hasRemaining ( ) ) + { + SINGLE + SINGLE + SINGLE + continue ; + } SINGLE return NUMBER0 ; }
SslConnection DecryptedEndpoint fill sometimes misses a few network bytes
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class UserServiceTest BasicAuthManager authManager = mock ( BasicAuthMana...
Fix failing test
<nb> public abstract class DeserializationProblemHandler COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class BeanPropertyMap public SettableBeanProperty find ( String key ) { + if ( key == null ) { + throw ne...
Adding explicit null check for BeanPropertyMap to improve troubleshooting
<nb> import static NAMESPACE ; import static 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 NAMESP...
Removed Serializable check
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CompletionRequester SINGLE if ( ! inString ) { - addScopedCompletions ( token , newComp , STRING0 ) ; addScopedArgumentCompletions ( to...
prefer local arguments to scoped variables
<nb> public class UsbDeviceManager { if ( mConfigured && enteringAccessoryMode ) { SINGLE - mAccessoryModeRequestTime = NUMBER0 ; if ( mAccessoryStrings != null ) { mCurrentAccessory = new UsbAccessory ( mAccessoryStrings ) ;
A better fix for race condition when starting USB accessory mode
<nb> public class DownloadManager { return getLocalUri ( ) ; case COLUMN_LOCAL_FILENAME : if ( ! mAccessFilename ) { - throw new IllegalArgumentException ( + throw new SecurityException ( STRING0 + STRING1 ) ; }
Throw the right exception flavor
<nb> abstract class ConfigurationClassUtils { } catch ( Throwable ex ) { if ( logger . isDebugEnabled ( ) ) { - logger . debug ( STRING0 + metadata . getClass ( ) + STRING1 + ex ) ; + logger . debug ( STRING0 + metadata . getClassName ( ) + STRING1 + ex ) ; } return false ; }
Log correct class name for introspection failure
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PercolatorQueriesRegistry extends AbstractIndexShardComponent imple try ( Engine . Searcher searcher = shard . engine ( ) . acquireSearcher ( STRING0 ) ) { Quer...
Don t cache percolator query on loading percolators
<nb> public class AccessibilityManagerService extends IAccessibilityManager . Stub { return false ; } - SINGLE + SINGLE SINGLE SINGLE SINGLE <nb> public class AccessibilityManagerService extends IAccessibilityManager . Stub { windowInteractiveRegion = outRegion ; continue ; } - } else { + } ...
Ignore accessibility overlay when computing window s interactive region
<nb> public class IndentationCheckTest extends BaseCheckTestSupport { checkConfig . addAttribute ( STRING0 , STRING1 ) ; checkConfig . addAttribute ( STRING2 , STRING1 ) ; final String [ ] expected = ArrayUtils . EMPTY_STRING_ARRAY ; - verifyWarns ( checkConfig , getPath ( STRING3 ) , expected ) ; + verifyWar...
unify test input file names
<nb> public class PackageDeserializer { void deserializeRule ( Build . Rule rulePb ) throws PackageDeserializationException { - RuleClass ruleClass = ruleClassProvider . getRuleClassMap ( ) . get ( rulePb . getRuleClass ( ) ) ; + String ruleClassName = rulePb . getRuleClass ( ) ; + RuleClass ruleClass = rul...
Log invalid rule class names on deserialization
<nb> public final class MediaCodecUtil { private static final String TAG = STRING0 ; private static final DecoderInfo PASSTHROUGH_DECODER_INFO = - new DecoderInfo ( STRING1 , null ) ; + new DecoderInfo ( STRING1 ) ; private static final HashMap < CodecKey , List < DecoderInfo > > decoderInfosCache = new H...
Fix crash by calling correct DecoderInfo constructor
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Added more unit tests
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class ProGuardObfuscateStep extends ShellStep { } public Path getConfigurationTxt ( ) { - return Paths . get ( proguard...
Resolve Paths correctly
<nb> public class AddNotNullConstraintChange extends AbstractChange { if ( defaultNullValue != null ) { statements . add ( generateUpdateStatement ( ) ) ; } - statements . add ( STRING0 + getTableName ( ) + STRING1 + getColumnName ( ) + STRING2 + getColumnDataType ( ) + STRING3 ) ; + statements . add ( STRING...
Fixed Derby Bug
<nb> public final class DelegatingTaskScheduler implements TaskScheduler { public ScheduledFuture < ? > schedule ( Runnable command , long delay , TimeUnit unit ) { checkNotNull ( command ) ; Runnable decoratedTask = new DelegatingTaskDecorator ( command , executor ) ; - return scheduledExecutorService . schedu...
Remove redundant delegation in DelegatingTaskScheduler
<nb> class ReaderPostRenderer { SINGLE . append ( STRING0 ) . append ( mResourceVars . greyExtraLightStr ) . append ( STRING1 ) - . append ( STRING2 ) + . append ( STRING3 ) . append ( STRING4 ) . append ( STRING5 ) . append ( STRING6 ) . append ( mResourceVars . marginExtraSmallPx ) . append ( STRING7 ...
Fixed lack of centering of portrait images with captions
<nb> public class MuzeiProvider extends ContentProvider { MuzeiContract . Artwork . COLUMN_NAME_VIEW_INTENT ) ; allColumnProjectionMap . put ( MuzeiContract . Artwork . COLUMN_NAME_META_FONT , MuzeiContract . Artwork . COLUMN_NAME_META_FONT ) ; + allColumnProjectionMap . put ( MuzeiContract . Sources . COLUMN_N...
Allow devs to get Source information when querying for Artwork
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public final class HttpHeaders { public static final String X_FRAME_OPTIONS = STRING0 ; COMMENT public static final String X_POWERED_BY = STRING1 ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Added constants for HPKP public key pinning headers
<nb> public class EhCacheCatalogCache implements CatalogCache { @ override public void clearCatalog ( final InternalTenantContext tenantContext ) { - cacheController . remove ( tenantContext . getTenantRecordId ( ) ) ; + if ( tenantContext . getTenantRecordId ( ) != InternalCallContextFactory . INTERNAL_TENAN...
never invalidate the cache in mono tenant
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SamlMetadataUIParserAction extends AbstractAction { final RegisteredService registeredService = this . servicesManager . find...
fixed cs issues
<nb> public class IncrementalCompileProcessor { return processed . get ( file ) ; } + if ( ! file . exists ( ) ) { + return true ; + } + SINGLE processed . put ( file , false ) ;
Fixed IO exception when attempting to hash a file that no longer exists during incremental tests
<nb> public class EditorOptionsTopHitProvider extends OptionsTopHitProvider { editorCode ( STRING0 + messageApp ( STRING1 ) , STRING2 ) , option ( STRING0 + messageApp ( STRING3 ) , STRING4 , STRING5 ) , editorTabs ( STRING6 + messageApp ( STRING7 ) , STRING8 ) , + editorTabs ( STRING6 + messageApp ( STRING9 ) ...
Fix top hit provider for Editor Tabs
<nb> public class ConvertViolationsToIssues implements DatabaseMigration { private static final String STATUS_OPEN = STRING0 ; private static final String STATUS_CONFIRMED = STRING1 ; - public static final String UPDATED_AT = STRING2 ; - public static final String REVIEW_TEXT = STRING3 ; - public static fin...
Fix quality flaws