diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; COMMENT public class StringOutputStream extends OutputStream { - StringBuilder mBuf ; + StringBuilder mBuf = new StringBuilder ( ) ; @ override public void write ( int data ) throws IOException {
fixed SocketStoreTest testVersionedPut
<nb> public class ViewSnapshotGenerator extends JdbcSnapshotGenerator { view . setRemarks ( row . getString ( STRING0 ) ) ; view . setDefinition ( row . getString ( STRING1 ) ) ; if ( database instanceof OracleDatabase ) { - view . setAttribute ( STRING2 , STRING3 . equals ( row . getString ( STRING4 ) ) ) ; ...
Improve createView extensibility Modified attribute name from editioned to editoning
<nb> public abstract class DefaultCluster implements Cluster { throw new MongoTimeoutException ( STRING0 + serverSelector ) ; } - serverDescriptions = serverSelector . choose ( description ) ; currentPhase = phase . get ( ) ; + serverDescriptions = serverSelector . choose ( description ) ; } return getS...
Fixed a race condition in DefaultCluster
<nb> public class PrivacyService extends IPrivacyService . Stub { SINGLE Class < ? > cServiceManager = Class . forName ( STRING0 ) ; Method mGetService = cServiceManager . getDeclaredMethod ( STRING1 , String . class ) ; - mClient = IPrivacyService . Stub . asInterface ( ( IBinder ) mGetService . invoke ( null ...
Fix referencing privacy service on Lollipop
<nb> public final class PactNull implements Key { COMMENT @ override public void read ( DataInput in ) throws IOException { - SINGLE + in . readBoolean ( ) ; } COMMENT <nb> public final class PactNull implements Key { COMMENT @ override public void write ( DataOutput out ) throws IOException { ...
Fixed PactNull Serialization
<nb> public class ContextSuspendCommand extends AbstractContextCommand { @ override protected Object performContextCommand ( CamelController camelController , String contextName , PrintStream out , PrintStream err ) throws Exception { - camelController . resumeContext ( contextName ) ; + camelController . sus...
Camel commands useable for remote JVMs using jolokia
<nb> public class ThriftConversion case LOCAL_QUORUM : return org . apache . cassandra . db . ConsistencyLevel . LOCAL_QUORUM ; case EACH_QUORUM : return org . apache . cassandra . db . ConsistencyLevel . EACH_QUORUM ; case SERIAL : return org . apache . cassandra . db . ConsistencyLevel . SERIAL ; + case LOCAL...
Add LOCAL_SERIAL to ThriftConversion
<nb> import NAMESPACE ; COMMENT COMMENT public class DebugColor { - public static int DOWNLOAD_START = Color . BLUE ; - public static int DOWNLOAD_FAILED = Color . RED ; - public static int DOWNLOAD_CANCEL = Color . BLACK ; - public static int PICTURE_ERROR = Color . YELLOW ; - public static int LISTVIE...
disable debug color
<nb> public class ShellBolt implements IBolt { private void die ( Throwable exception ) { String processInfo = _process . getProcessInfoString ( ) + _process . getProcessTerminationInfoString ( ) ; _exception = new RuntimeException ( processInfo , exception ) ; - LOG . error ( STRING0 , exception ) ; + String...
add additional information to error message when ShellBolt dies
<nb> public class SeriesGuideContract { public static final String SELECTION_WITH_NEXT_EPISODE = STRING0 + Shows . NEXTEPISODE + STRING1 ; + public static final String SELECTION_NO_HIDDEN = STRING0 + Shows . HIDDEN + STRING2 ; + public static Uri buildShowUri ( String showId ) { return CONTENT_URI . build...
Exclude hidden shows from notifications
<nb> public class ZookeeperBeanDefinitionParser extends AbstractBeanDefinitionParser configuration . addConstructorArgValue ( element . getAttribute ( STRING0 ) ) ; addPropertyValueIfNotEmpty ( STRING1 , STRING2 , element , configuration ) ; addPropertyValueIfNotEmpty ( STRING3 , STRING4 , element , configuration...
fix a bug about the namespace of reg in elastic job lite spring to support the max retries attribute rightly
<nb> public class ShinyApplicationStatusEvent } @ override + public boolean forward ( ) + { + return false ; + } + + @ override protected void dispatch ( ShinyApplicationStatusEvent . Handler handler ) { handler . onShinyApplicationStatus ( this ) ; <nb> public class Source implements InsertSo...
don t open first run docs in source windows don t forward Shiny status
<nb> public class SpringSecurityLdapTemplate extends LdapTemplate { private void extractStringAttributeValues ( DirContextAdapter adapter , Map < String , List < String > > record , String attributeName ) { Object [ ] values = adapter . getObjectAttributes ( attributeName ) ; if ( values == null || values . lengt...
Add guard around debug statement
<nb> public class PointerLocationView extends View implements InputDeviceListener { final PointerState ps = mPointers . get ( id ) ; ps . mCurDown = true ; - ps . mHasBoundingBox = ( InputDevice . getDevice ( event . getDeviceId ( ) ) . - getMotionRange ( MotionEvent . AXIS_GENERIC_1 ) != null ) ; + InputDe...
Fix possible NPE in PointerLocationView
<nb> abstract public class ManagedServices { userIds [ i ] ) ) ; } - ManagedServiceInfo [ ] toRemove = new ManagedServiceInfo [ mServices . size ( ) ] ; + ArrayList < ManagedServiceInfo > toRemove = new ArrayList < ManagedServiceInfo > ( ) ; final SparseArray < ArrayList < ComponentName > > toAdd = new Sp...
Don t unbind system listeners
<nb> public class Verifier implements GroovyClassVisitor , Opcodes { } } ; Statement s = node . getCode ( ) ; - SINGLE if ( s == null ) return ; s . visit ( checkSuper ) ; } <nb> public class Verifier implements GroovyClassVisitor , Opcodes { List declaredMethods = new ArrayList ( classNode . getMetho...
correct some typos
<nb> public class DefaultServlet extends HttpServlet { public static final String RESOLVE_AGAINST_CONTEXT_ROOT = STRING0 ; private static final Set < String > DEFAULT_ALLOWED_EXTENSIONS = Collections . unmodifiableSet ( new HashSet < String > ( Arrays . asList ( STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , S...
Don t disallow ZIP by default
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Chronometer extends TextView { updateRunning ( ) ; } + @ override + protected void onVisibilityChanged ( View changedView , int visibili...
Update the value only if displayed on screen
<nb> public class LocalState { curr . put ( key , val ) ; persist ( curr ) ; } + + public synchronized void remove ( Object key ) throws IOException { + Map < Object , Object > curr = snapshot ( ) ; + curr . remove ( key ) ; + persist ( curr ) ; + } private void persist ( Map < Object , Object > v...
added LocalState remove method
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public abstract class AbstractWizardStepEx implements Step , Disposable { <nb> public abstract class AbstractWizardStepEx implements Step , Disposable { private String myTitle ; - interface Listener extends StepLi...
determine include paths
<nb> public class DefaultRequestRunner implements RequestRunner { Ln . d ( STRING0 ) ; if ( ! networkStateChecker . isNetworkAvailable ( applicationContext ) && ! request . isOffline ( ) ) { Ln . e ( STRING1 ) ; - handleRetry ( request , new NoNetworkException ( ) ) ; + + if ( ! request . isCancelled ( ) ) ...
don t retry the request if it is canceled
<nb> public class ModelDependenciesBuilderImpl implements ModelBuilderService { public Object buildAll ( final String modelName , final Project project ) { final List < IdeaDependency > dependencies = new ArrayList < IdeaDependency > ( ) ; - final Map < DependencyVersionId , Scopes > scopesMap = new HashMap < D...
respect the order of dependencies
<nb> public final class ServingLayer implements Closeable { connector . setAttribute ( STRING0 , false ) ; SINGLE - connector . setAttribute ( STRING1 , NUMBER0 ) ; + connector . setAttribute ( STRING1 , NUMBER1 ) ; return connector ; }
Allow long er request URLs
<nb> public enum Type { return type ; } } - throw new IllegalArgumentException ( STRING0 + tType ) ; + throw new IllegalArgumentException ( STRING1 + tType ) ; } public static Type getType ( String name ) {
Fix typo in Type getType TTypeId exception message Keegan Witt via Ashutosh Chauhan
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; ...
Use correct imports in Hive connector
<nb> public class QueryParamsMap { } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Request { } COMMENT - COMMENT + COMMENT COMMENT public Map < String , String > cookies ( ) { Map < String , String > result = new HashMap < String , String > ( ) ; <nb> public c...
Fixed some typos
<nb> public final class Logger StringBuffer buff = new StringBuffer ( ) ; - COMMENT int color = ANSI . Code . BOLD ; if ( WARN . equals ( level ) || ERROR . equals ( level ) ) { color = ANSI . Code . RED ; } buff . append ( ANSI . Renderer . encode ( level , color ) ) ; - COMMENT - buff . append...
Put the ansi rendering back for logging muck
<nb> public class TestATNLexerInterpreter extends BaseTest { LexerGrammar lg = new LexerGrammar ( STRING0 + STRING1 + - STRING2 + SINGLE + STRING2 + SINGLE STRING3 ) ; checkLexerMatches ( lg , STRING4 , STRING5 ) ; RecognitionException e = checkLexerMatches ( lg , STRING6 , STRING5 ) ; - assertEquals ...
Fix greedy tests behaving as non greedy in TestATNLexerInterpreter
<nb> public abstract class GLFrameBuffer < T extends GLTexture > implements Disposable { gl . glBindRenderbuffer ( GL20 . GL_RENDERBUFFER , NUMBER0 ) ; gl . glBindTexture ( GL20 . GL_TEXTURE_2D , NUMBER0 ) ; - gl . glBindFramebuffer ( GL20 . GL_FRAMEBUFFER , defaultFramebufferHandle ) ; int result = gl . gl...
Check status before binding to default frame buffer again
<nb> public class UIWebServer { WebAppContext webappcontext = new WebAppContext ( ) ; webappcontext . setContextPath ( TachyonURI . SEPARATOR ) ; - File warPath = new File ( mTachyonConf . get ( Constants . WEB_RESOURCES , STRING0 ) ) ; + String tachyonHome = mTachyonConf . get ( Constants . TACHYON_HOME , Co...
Set web resources path based off tachyon home
<nb> import NAMESPACE ; public abstract class PsiAugmentProvider { public static final ExtensionPointName < PsiAugmentProvider > EP_NAME = ExtensionPointName . create ( STRING0 ) ; - private static final PsiAugmentProvider [ ] PROVIDERS = Extensions . getExtensions ( EP_NAME ) ; - @ notnull public abstrac...
don t load extensions from static initializer
<nb> public abstract class CamelTestSupport extends TestSupport { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Added note about using the per class can cause side effects so use it with care
<nb> public class PullToRefreshAttacher { private final Handler mHandler = new Handler ( ) ; protected PullToRefreshAttacher ( Activity activity , Options options ) { + if ( activity == null ) { + throw new IllegalArgumentException ( STRING0 ) ; + } if ( options == null ) { Log . i ( LOG_TAG , STRING1 )...
Throw Exception if we re not passed an Activity
<nb> public class WorldEdit { COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed a javadoc
<nb> public class Dealer extends SocketBase @ override protected Msg xrecv ( ) { - return xxrecv ( ) ; - } - - private Msg xxrecv ( ) - { Msg msg = null ; SINGLE if ( prefetched ) { <nb> public class Dealer extends SocketBase } SINGLE - prefetchedMsg = xxrecv ( ) ; + prefetchedMsg = xr...
Remove redundant method
<nb> public class LexerATNSimulator extends ATNSimulator { getReachableConfigSet ( input , closure , reach , t ) ; if ( reach . isEmpty ( ) ) { SINGLE - SINGLE - SINGLE - SINGLE - @ notnull - DFAState from = s != null ? s : addDFAState ( closure ) ; SINGLE SINGLE - addDFAEdge ( from , t , ERROR ) ...
Remove unnecessary local
<nb> import NAMESPACE ; COMMENT COMMENT public class MongoURI { + + public static final String MONGODB_PREFIX = STRING0 ; COMMENT COMMENT <nb> public class MongoURI { COMMENT public MongoURI ( String uri ) { _uri = uri ; - if ( ! uri . startsWith ( STRING0 ) ) - throw new IllegalArgumentExce...
added final variable for mongodb uri prefix
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractLocalAlluxioCluster { UnderFileSystemUtils . touch ( PathUtils . concatPath ( journalFolder , STRING0 + System . currentTimeM...
Fixing previous fix
<nb> public class VoiceRouter { playAndArriveAtDestination ( repeat , nextInfo , currentSegment ) ; } nextStatusAfter ( STATUS_TURN_IN ) ; - SINGLE } else if ( ( repeat || statusNotPassed ( STATUS_PREPARE ) ) && ( dist <= PREPARE_DISTANCE ) ) { if ( repeat || dist >= PREPARE_DISTANCE_END ) { if ( ! repeat...
remove obsolete comments
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class EditTextUtils { } COMMENT - COMMENT + COMMENT COMMENT - public static String getText ( EditText edit ) { - if ( edit . getText ( ) == null ) { - retur...
Updating EditTextUtils getText method instead of creating new one
<nb> public class UnifierTest extends TestCase { uni . reset ( ) ; } - SINGLE + SINGLE public void testUnificationNumberGender ( ) { final Unifier uni = new Unifier ( ) ; final Element sgElement = new Element ( STRING0 , false , false , false ) ;
add one word of comment to make it more readable
<nb> public abstract class ForgePacket pkt . channel = STRING0 ; pkt . data = bytes . toByteArray ( ) ; pkt . length = pkt . data . length ; - pkt . isChunkDataPacket = true ; SINGLE return pkt ; }
No longer mark forge packets as chunk packets
<nb> public class MessageVariableResolver implements XPathVariableResolver { } } - SINGLE - SINGLE + SINGLE + SINGLE if ( answer == null ) { - return Void . class ; + return STRING0 ; } else { return answer ; }
XPathBuilder variable resolver for should return empty string if no header to support both JDK and Saxon XPath Engines
<nb> public class DefaultUrlMappingEvaluator implements UrlMappingEvaluator , ClassLoa Closure callable = ( Closure ) args [ NUMBER0 ] ; callable . setDelegate ( builder ) ; + callable . setResolveStrategy ( Closure . DELEGATE_FIRST ) ; for ( ConstrainedProperty constrainedProperty : currentConstraints ) { ...
Fix failing test
<nb> public class Notification implements Parcelable if ( this . contentView != null ) { that . contentView = this . contentView . clone ( ) ; } - that . iconLevel = that . iconLevel ; + that . iconLevel = this . iconLevel ; that . sound = this . sound ; SINGLE that . audioStreamType = this . audioStreamT...
Fixing self assignment in cloning code
<nb> public class OSQLFilter extends OSQLPredicate implements OCommandPredicate { + subCommand ) ; targetRecords = ( Iterable < ? extends OIdentifiable > ) executor ; - final OCommandContext subContext = subCommand . getContext ( ) ; + final OCommandContext subContext = executor . getContext ( ) ; SINGLE ...
Fixed issue on propagation of sub command context up
<nb> public class AncestorsUtil { node = rel . getOtherNode ( node ) ; ancestors . add ( node ) ; - System . out . println ( node . getId ( ) ) ; relIterator = expander . expand ( node ) . iterator ( ) ;
removing System out statement
<nb> public class RendererRegistry { public final static String TOURING_VIEW = STRING0 ; SINGLE public final static String WINTER_SKI_RENDER = STRING1 ; SINGLE public final static String NAUTICAL_RENDER = STRING2 ; SINGLE - + public final static String TOPO_RENDER = STRING3 ; SINGLE + private RenderingRul...
Add topo render xml to renderer registry
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class PackageChange extends BroadcastReceiver {
Remove obsolete import
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GrDynamicImplicitProperty extends GrImplicitVariableImpl implements public boolean isDeprecated ( ) { return false ; } ...
Fix compilation error
<nb> public class WebsocketBinaryEndpointTest { + endpoint ) ; System . out . println ( STRING0 + uri ) ; return container . connectToServer ( MyEndpointClient . class , uri ) ; - } }
Removing an empty line
<nb> public class GenerateDialog extends DialogWrapper { private List < PsiField > getClassFields ( PsiField [ ] allFields ) { final List < PsiField > fields = new ArrayList < PsiField > ( ) ; for ( PsiField field : allFields ) { - if ( ! field . hasModifierProperty ( PsiModifier . STATIC ) ) { + if ( ! field...
Adding exclusion for transient fields
<nb> public interface Graph { COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT public void clear ( ) ;
added some documentation for the clear method
<nb> public class FirebirdDatabase extends AbstractDatabase { @ override public boolean supportsDDLInTransaction ( ) { - return true ; + return false ; } @ override
apparently firebird does not support ddl in transactions
<nb> public class Http11NioProtocol extends AbstractHttp11JsseProtocol { COMMENT @ override public void release ( NioChannel socket ) { - Http11NioProcessor result = connections . remove ( socket ) ; - if ( result != null ) { - result . recycle ( ) ; - recycledProcessors . offer ( result ) ; + Http11Nio...
Rename no functional change
<nb> public class ComputationSteps { SINGLE CustomMeasuresCopyStep . class , - QualityProfileEventsStep . class , - QualityGateEventsStep . class , + + SINGLE FillMeasuresWithVariationsStep . class , + + SINGLE QualityGateMeasuresStep . class , + + QualityProfileEventsStep . class , + + SI...
Creation of notifications on quality gate must be executed after computation of quality gate measure
<nb> public class ClassDataItem extends Item < ClassDataItem > { } private static EncodedMethod findMethodByMethodIdInternal ( int methodIdItemIndex , EncodedMethod [ ] encodedMethods ) { + if ( encodedMethods == null ) { + return null ; + } + int min = NUMBER0 ; int max = encodedMethods . length ;
Fix an NPE when trying to resolve a non existent synthetic accessor
<nb> public class CommandLine { sb . append ( STRING0 ) ; } sb . append ( STRING1 + - STRING2 ) ; + STRING3 ) ; sb . append ( STRING4 ) ; for ( int i = NUMBER0 ; i < commandList . size ( ) ; i ++ ) {
Added installdir to help message
<nb> public abstract class WPDrawerActivity extends ActionBarActivity { } if ( mShouldFinish ) { - SINGLE + SINGLE + SINGLE if ( getSupportActionBar ( ) != null ) { int titleResId = item . getTitleResId ( ) ; - if ( titleResId != NUMBER0 ) { + if ( titleResId != NUMBER0 && activityId != ActivityId ....
Drawer activity no longer shows Reader as the title when switching to the Reader
<nb> public class JpaConsumer extends ScheduledBatchPollingConsumer { COMMENT COMMENT protected boolean lockEntity ( Object entity , EntityManager entityManager ) { - if ( ! getEndpoint ( ) . isConsumeDelete ( ) || ! getEndpoint ( ) . isConsumeLockEntity ( ) ) { + if ( ! getEndpoint ( ) . isConsumeLockEntity ...
Jpa consumer lock should lock entity if the consumeLockEntity true
<nb> public class KotlinFrameworkDetector { @ override public Result < Boolean > compute ( ) { GlobalSearchScope scope = module . getModuleWithDependenciesAndLibrariesScope ( false ) ; - return Result . create ( KotlinRuntimeLibraryUtil . getKotlinRuntimeMarkerClass ( scope ) != null , - ProjectRootModificati...
Using intermediate variable for java module lookup
<nb> public class WebappServiceLoader < T > { if ( line . length ( ) == NUMBER0 ) { continue ; } - if ( servicesFound . contains ( line ) ) { - continue ; - } servicesFound . add ( line ) ; } }
Remove redundant check
<nb> public class IntroduceFieldPopupPanel extends IntroduceFieldCentralPanel { } @ override + protected void updateInitializerSelection ( ) { + if ( myAllowInitInMethodIfAll || ! isReplaceAllOccurrences ( ) ) { + if ( myInitialisersPlaceModel . getIndexOf ( BaseExpressionToFieldHandler . InitializationPlac...
hide initialization in current method when multiple occurrences found
<nb> public class PluginsService extends AbstractComponent { SINGLE try { Enumeration < URL > pluginUrls = settings . getClassLoader ( ) . getResources ( esPluginPropertiesFile ) ; - while ( pluginUrls . hasMoreElements ( ) ) { - URL pluginUrl = pluginUrls . nextElement ( ) ; + + SINGLE + SINGLE + Has...
only load a plugin once from the classpath
<nb> class CacheUpdateRunner { try { int threadsCount = Registry . intValue ( STRING0 ) ; if ( threadsCount == - NUMBER0 ) { - threadsCount = Math . min ( Runtime . getRuntime ( ) . availableProcessors ( ) , ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ? NUMBER1 : NUMBER2 ) ; + threadsCount = ...
use all cores by default
<nb> public class FinalParametersCheck extends Check { SINGLE final DetailAST container = aAST . getParent ( ) . getParent ( ) ; - if ( container . getType ( ) != TokenTypes . CLASS_DEF ) { + if ( container . getType ( ) == TokenTypes . INTERFACE_DEF ) { return ; }
fixed bug where non final method params were not flagged in anon inner classes
<nb> import NAMESPACE ; } COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT private final class RunnableExecutorPair implements Runnable { private final Executor ...
fix some docs in ExecutionQueue
<nb> import NAMESPACE ; public class PyRemoteTracebackFilter extends PythonTracebackFilter { private final RemoteProcessHandlerBase myHandler ; - public PyRemoteTracebackFilter ( Project project , RemoteProcessHandlerBase remoteProcessHandler ) { - super ( project ) ; - + public PyRemoteTracebackFilter ( ...
Try also local files in remote traceback filter
<nb> class WatchServiceRegistrar implements FileWatcherListener { LOG . debug ( STRING0 + dir , e ) ; lastException = e ; + if ( e instanceof NoSuchFileException ) { + LOG . debug ( STRING1 ) ; + return ; + } + if ( e instanceof FileSystemException && e . getMessage ( ) != null && e . getMessage ( ) ....
Ignore NoSuchFileException when registering new watches
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener intent . putExtra ( STRING0 , originalText ) ; intent . setFlags ( intent . getFlags ( ) | Intent . FLAG_ACTIVITY_NEW_TASK ) ; getContext ( ) . startActivity ( intent ) ; - suggestionInfo . removeMisspelledFlag ( ) ; + SIN...
re check word after it may have been added to user dictionary
<nb> import NAMESPACE ; COMMENT public interface ApnsRequestDelegate { + COMMENT COMMENT COMMENT COMMENT + COMMENT COMMENT - void messageReceived ( ApnsNotification message ) ; + void messageReceived ( ApnsNotification message ) throws Exception ; COMMENT
added exception to method signature
<nb> public class RestfulGraphDatabaseTest { long n1 = helper . createNode ( ) ; long n2 = helper . createNode ( ) ; - long r = helper . createRelationship ( STRING0 , n1 , n2 ) ; Map < String , Object > config = MapUtil . map ( STRING1 , NUMBER0 , STRING2 , STRING3 ,
Removing unused variables
<nb> import NAMESPACE ; import static NAMESPACE ; public class HystrixCollapserTest { + private HystrixRequestContext context = null ; + @ before public void init ( ) { SINGLE HystrixCollapser . reset ( ) ; HystrixCollapserMetrics . reset ( ) ; COMMENT - HystrixRequestContext . initializeContext...
Made context management explicit in HystrixCollapserTest
<nb> public class GraphPath { } } + COMMENT + COMMENT + COMMENT + COMMENT public long getStartTime ( ) { return states . getFirst ( ) . getTime ( ) ; } + COMMENT + COMMENT + COMMENT + COMMENT public long getEndTime ( ) { return states . getLast ( ) . getTime ( ) ; } + COMMENT +...
Add some javadocs where units were not described
<nb> public class GremlinSession implements ScriptSession COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT @ override public String evaluate ( String script )
squashing a warning
<nb> public class EphemeralFileSystemAbstraction implements FileSystemAbstraction } } } - return ByteBuffer . allocateDirect ( ( sizeIndex < SIZES . length ) ? SIZES [ sizeIndex ] - : ( ( sizeIndex - SIZES . length + NUMBER0 ) * - SIZES [ SIZES . length - NUMBER0 ] ) ) ; + return ByteBuffer . allocate ( (...
When a file is expanded pool the previously used buffer
<nb> public class GlobalInspectionContextImpl implements GlobalInspectionContext { performInspectionsWithProgress ( scope , runWithEditorSettings , manager ) ; final HashMap < InspectionTool , HighlightDisplayLevel > tools = new HashMap < InspectionTool , HighlightDisplayLevel > ( ) ; if ( runWithEditorSettings )...
avoid inspections exceptions fix
<nb> public abstract class AbstractAjpProcessor extends AbstractProcessor { rp . setStage ( org . apache . coyote . Constants . STAGE_ENDED ) ; - if ( error ) { - response . setStatus ( NUMBER0 ) ; - } if ( isAsync ( ) ) { if ( error ) { request . updateCounters ( ) ;
Remove pointless code see finally block just above
<nb> public interface JarAndCopyBuildInstruction extends FileCopyInstruction { @ notnull File jarFile , @ nullable FileFilter fileFilter ) throws IOException ; File getJarFile ( ) ; + + @ deprecated + void deleteTemporaryJars ( ) ; } <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; im...
delete temporary jars after compilation
<nb> public class SimpleWebserviceEndpointTestCase { return war ; } - @ ignore + @ ignore ( value = STRING0 ) @ test public void testSimpleStatelessWebserviceEndpoint ( ) throws Exception { final QName serviceName = new QName ( STRING1 , STRING2 ) ; <nb> public class SimpleStatelessWebserviceEndpointT...
Providing reason of the failure
<nb> public class ContactListPanel extends JScrollPane chatPanel = tabbedChatWindow . addChatTab ( metaContact , contactStatus , protocolContact ) ; + + tabbedChatWindow . setCurrentChatPanel ( chatPanel ) ; chatPanel . getConversationPanel ( ) . processMessage ( evt . getSourceContact ( ) . getDisplayN...
Fixed setting current chat pane and focus requesting upon msg reception
<nb> public class FfmpegScreenshare { System . out . println ( STRING0 ) ; mainRecorder . release ( ) ; System . out . println ( STRING1 ) ; - SINGLE + SINGLE + SINGLE + SINGLE System . out . println ( STRING2 ) ; } catch ( Exception e ) { SINGLE
add note not to call grabber stop
<nb> import NAMESPACE ; public final class MessagingService implements MessagingServiceMBean { - public static final int version_ = NUMBER0 ; + public static final int version_ = NUMBER1 ; SINGLE private SerializerType serializerType_ = SerializerType . BINARY ;
bump MessagingService version_
<nb> public abstract class AbstractExtension implements Extension COMMENT COMMENT COMMENT + @ override public boolean isRsv1User ( ) { return false ; <nb> public abstract class AbstractExtension implements Extension COMMENT COMMENT COMMENT + @ override public boolean isRsv2User ( ) { retur...
Adding missing Override s
<nb> public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig final FindUsagesOptions options = new FindUsagesOptions ( project ) ; options . isUsages = true ; assert handler != null : STRING0 + referenceTo ; - handler . processElementUsages ( referenceTo , processor , options ) ; + fi...
find usages fixture refactored
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class VagrantSupport { @ notnull public abstract RemoteCredentials getVagrantSettings ( @ notnull Project project , Stri...
Don t show modal dialog on reading vagrant ssh config use async icon instead
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IdFieldMapper extends AbstractFieldMapper < String > implements Intern return this . path ; } - public String value ( Document document )...
remove unused code
<nb> class ChildHelper { } private int getOffset ( int index ) { + if ( index < NUMBER0 ) { + return - NUMBER1 ; SINGLE + } final int limit = mCallback . getChildCount ( ) ; int offset = index ; while ( offset < limit ) {
Check bounds when calculating offset in RecyclerView
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MessagesAdapter extends BindedListAdapter < Message , MessageHolder > { return NUMBER0 ; } else if ( content instanceof PhotoContent ) { ret...
bind animations to PhotoHolder
<nb> public class GeneralHighlightingPass extends ProgressableTextEditorHighlightingP if ( progress . isCanceled ( ) ) return ; MarkupModel markupModel = myDocument . getMarkupModel ( myProject ) ; - UpdateHighlightersUtil . setHighlightersInRange ( myPriorityRange , toApply , ( MarkupModelEx ) markupModel , Pa...
do not reset highlights outside codeblock
<nb> public class NauticalActivity extends Activity { intentPlus . setFlags ( Intent . FLAG_ACTIVITY_RESET_TASK_IF_NEEDED ) ; ResolveInfo resolved = getPackageManager ( ) . resolveActivity ( intentPlus , PackageManager . MATCH_DEFAULT_ONLY ) ; if ( resolved != null ) { + logEvent ( this , STRING0 ) ; stopServ...
Fix nautical events
<nb> public final class Tools { msg = msg . replaceAll ( STRING0 , STRING1 ) ; msg = msg . replaceAll ( STRING2 , STRING1 ) ; System . out . println ( STRING3 + msg ) ; - List repl = match . getSuggestedReplacements ( ) ; + List < String > repl = match . getSuggestedReplacements ( ) ; if ( repl . size ( ) >...
avoid compiler warning
<nb> public class StatsVisitorsAndViewsFragment extends StatsAbsViewFragment implemen && stats . getDay ( ) != null && StatsUtils . toMs ( stats . getDay ( ) ) != currentDate ) { - mVisitorsTodayLabel . setText ( stats . getDay ( ) ) ; + mVisitorsTodayLabel . setText ( StatsUtils . parseDate ( stats . getDay ...
Use the correct date format in StatsVisitorsAndViewsFragment
<nb> public class AutoCompleteTextView extends EditText implements Filter . FilterListe if ( mItemClickListener != null ) { final DropDownListView list = mDropDownList ; - SINGLE - SINGLE - mItemClickListener . onItemClick ( list , null , completion . getPosition ( ) , - completion . getId ( ) ) ; + fin...
Don t supply a null child to the click listener
<nb> import NAMESPACE ; public class RawTCPInput extends MessageInput { - private static final String NAME = STRING0 ; + private static final String NAME = STRING1 ; @ assistedinject public RawTCPInput ( @ assisted final Configuration configuration , <nb> import NAMESPACE ; public class RawUDPInpu...
remove left over text from refactoring
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class UISettings extends SimpleModificationTracker implements PersistentS } } - COMMENT - COMMENT - COMMENT - public vo...
remove unused addUISettingsListener
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class ActionMethodParser { @ petiteinject + protected ContextInjectorComponent contextInjectorComponent ; ...
madvoc allow context to be injected into the naming strategies
<nb> public class ConnectionPool extends NotificationBroadcasterSupport implements Co @ override public void setFairQueue ( boolean fairQueue ) { - getPoolProperties ( ) . setFairQueue ( fairQueue ) ; + SINGLE + throw new UnsupportedOperationException ( ) ; } <nb> public class ConnectionPool extends...
The fairness attribute and IgnoreExceptionOnPreLoad attribute do not allow a change via JMX
<nb> final class SQLiteBooksDatabase extends BooksDatabase { if ( id == - NUMBER0 ) { if ( myInsertFileInfoStatement == null ) { myInsertFileInfoStatement = myDatabase . compileStatement ( - STRING0 + STRING1 ) ; } statement = myInsertFileInfoStatement ;
fixed duplicate file info exception
<nb> public class Ops { Op < Boolean > ISTYPEOF = new OpImpl < Boolean > ( ) ; Op < Boolean > NE = new OpImpl < Boolean > ( ) ; Op < Boolean > NOTIN = new OpImpl < Boolean > ( ) ; - SINGLE } COMMENT
fixed PathCollection issue