diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT COMMENT COMMENT public class QueueDispatcher extends Dispatcher { + private static final Logger logger = Logger . getLogger ( QueueDispatcher . class . getName ( ) ) ; protected...
Log favicon request instead of using standard output
<nb> public class Jetty8ServerHandleInterceptor extends AbstractServerHandleIntercept final Method getRequestMethod = getGetRequestMethod ( object ) ; - if ( getRequestMethod == null ) { + if ( getRequestMethod != null ) { final Request request = ( Request ) getRequestMethod . invoke ( object ) ; return r...
fix incorrected null check
<nb> public abstract class WebSocketServlet extends HttpServlet { private static final StringManager sm = StringManager . getManager ( Constants . Package ) ; - private Queue < MessageDigest > sha1Helpers = + private final Queue < MessageDigest > sha1Helpers = new ConcurrentLinkedQueue < MessageDigest > ( )...
Add some finals
<nb> public class TreeMultisetTest extends AbstractMultisetTest { fail ( STRING0 ) ; } } -
Add Google internal memory consumption tests for all top level Multiset implementations
<nb> public class RedmineUserService extends GitblitUserService { } } + if ( StringUtils . isEmpty ( jsonString ) ) { + logger . error ( STRING0 ) ; + return null ; + } + RedmineCurrent current = null ; try { current = new Gson ( ) . fromJson ( jsonString , RedmineCurrent . class ) ;
Catch a few other possible error scenarios in Redmine user service
<nb> public @ interface Contract { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
don t consider exceptions side effects
<nb> public class MemoryCacheAdapter implements MemoryCache { public void setImageRemovedListener ( ImageRemovedListener listener ) { this . listener = listener ; } + + @ override + public void clearMemory ( ) { } + + @ override + public void trimMemory ( int level ) { } + + @ override + public ...
Memory cache adapter implements new methods
<nb> public class TextEditingTarget implements EditingTarget selectionRange = Range . fromPoints ( Position . create ( row , NUMBER0 ) , Position . create ( row , docDisplay_ . getLength ( row ) ) ) ; - - if ( ! docDisplay_ . moveSelectionToNextLine ( true ) ) - docDisplay_ . moveSelectionToBlankLine ( ) ; ...
always move selection to next line after executing from editor
<nb> public abstract class AbstractStoreClientFactory implements StoreClientFactory { public < K , V > StoreClient < K , V > getStoreClient ( String storeName , InconsistencyResolver < Versioned < V > > resolver ) { - DefaultStoreClient < K , V > storeClient = new DefaultStoreClient < K , V > ( storeName , - ...
Manually merged fixed portion of AbstractStoreClientFactory
<nb> public class DefaultUdcInformationCollector implements UdcInformationCollector private long determineTotalMemory ( ) { - return ( ( OperatingSystemMXBean ) ManagementFactory . getOperatingSystemMXBean ( ) ) . getTotalPhysicalMemorySize ( ) ; + java . lang . management . OperatingSystemMXBean operatingSys...
If not running on Oracle JDK try IBM
<nb> public class LegacyDataPersistenceProvider implements WorkspaceXMLPersistencePro float b = Float . parseFloat ( reader . getAttributeValue ( null , STRING0 ) ) ; float alpha = Float . parseFloat ( reader . getAttributeValue ( null , STRING1 ) ) ; - SINGLE - SINGLE + SINGLE + SINGLE if ( r < NUMBER0...
Fix edge color problem loading old gephi project files
<nb> COMMENT COMMENT - package NAMESPACE ; + package NAMESPACE ; COMMENT COMMENT <nb> package NAMESPACE ; COMMENT public class PortletKeys extends com . liferay . portal . util . PortletKeys { - public static final String CALENDAR = STRING0 ; + public static final String CALENDAR = + STRIN...
Moving portlet keys to new constants package at calendar service
<nb> public class SignInFragment extends AbstractFragment implements TextWatcher , Con initInfoButtons ( rootView ) ; moveBottomButtons ( ) ; initSmartLockForPasswords ( ) ; - return rootView ; } <nb> public class SignInFragment extends AbstractFragment implements TextWatcher , Con } public void s...
disable Auto Fill when adding a self hosted site
<nb> public final class NIODataServer implements Runnable , DataServer { } SINGLE - SINGLE + SINGLE if ( key . isAcceptable ( ) ) { accept ( key ) ; } else if ( key . isReadable ( ) ) { <nb> public final class NIODataServer implements Runnable , DataServer { mReceivingData . remove ( socketChannel )...
Tagging TODOs in tachyon worker nio
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class NamespaceComparator { String expected = FileUtil . loadFile ( txtFile , true ) ; SINGLE - Assert . assertEquals ( STRIN...
Fixed new lines issue in NamespaceComparator tests
<nb> public class PyQualifiedReferenceImpl extends PyReferenceImpl { } } else if ( qualifier instanceof PyReferenceExpression ) { - PsiElement qual_object = ( ( PyReferenceExpression ) qualifier ) . getReference ( ) . resolve ( ) ; + PsiElement qual_object = ( ( PyReferenceExpression ) qualifier ) . getRefere...
keep context while resolving docstring
<nb> public class ShortcutManager implements NativePreviewHandler , if ( command == null ) return false ; - SINGLE event . preventDefault ( ) ; - - SINGLE - if ( ! command . isEnabled ( ) && command . preventShortcutWhenDisabled ( ) ) - return true ; - command . executeFromShortcut ( ) ; return ...
don t swallow disabled commands
<nb> public class CommentActions { XMLRPCClientInterface client = XMLRPCFactory . instantiate ( blog . getUri ( ) , blog . getHttpuser ( ) , blog . getHttppassword ( ) ) ; - Map < String , Object > replyHash = new HashMap < String , Object > ( ) ; + Map < String , Object > replyHash = new HashMap < > ( ) ; ...
Remove explicit tpe arguments
<nb> public class SetKeywordsDialog extends DialogWrapper { } private void initValues ( ) { - Map keywords = SVNTranslator . computeKeywords ( myPropValue , STRING0 , STRING1 , STRING2 , STRING3 ) ; + Map keywords = SVNTranslator . computeKeywords ( myPropValue , STRING0 , STRING1 , STRING2 , STRING3 , null )...
integrate latest svnkit
<nb> import NAMESPACE ; public class WatchMempool { private static Logger log = LoggerFactory . getLogger ( WatchMempool . class ) ; - public static void main ( String [ ] args ) { + public static void main ( String [ ] args ) throws InterruptedException { BriefLogFormatter . init ( ) ; NetworkParameters ...
fix a regression
<nb> public class WifiNative { } if ( settings . channelSet != null && ! settings . channelSet . isEmpty ( ) ) { cmd += STRING0 ; - for ( String channel : settings . channelSet ) cmd += STRING1 + channel ; + int i = NUMBER0 ; + for ( String channel : settings . channelSet ) { + cmd += ( i > NUMBER0 ? STRI...
Fix channel set option in wifi batch scan command
<nb> class LookupCellRenderer implements ListCellRenderer { FONT_WIDTH = label . getPreferredSize ( ) . width ; final LookupItem [ ] items = lookup . getItems ( ) ; + if ( items . length > NUMBER0 ) lookup . getList ( ) . setPrototypeCellValue ( items [ NUMBER0 ] ) ; + for ( LookupItem item : items ) { if...
completion list uses prototype cell value
<nb> public class PhysicalLogFile extends LifecycleAdapter implements LogFile } @ override - public void shutdown ( ) throws Throwable + public synchronized void shutdown ( ) throws Throwable { writer . close ( ) ; channel . close ( ) ;
Synchronized shutdown since the log channel needs external synchronization
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MultiLayerNetwork implements Serializable , Classifier , Layer { } COMMENT - COMMENT + COMMENT COMMENT public syn...
Initialize updater if required for MultiLayerNetwork getUpdater
<nb> public class ClusterViewer { System . out . println ( STRING0 ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public stat...
Added sample usage information
<nb> public class Pep8ExternalAnnotator extends ExternalAnnotator < Pep8ExternalAnnotat @ nullable @ override - public State collectionInformation ( @ notnull PsiFile file ) { + public State collectInformation ( @ notnull PsiFile file ) { VirtualFile vFile = file . getVirtualFile ( ) ; if ( vFile == null ...
avoid deprecated methods
<nb> class GLRenderWrapper implements Renderer { this . width = view . getWidth ( ) ; this . height = view . getHeight ( ) ; - this . glVersion = new Reflect ( view ) . field ( STRING0 ) - . out ( Integer . class ) . intValue ( ) ; + Integer out = new Reflect ( view ) . field ( STRING0 ) + . out ( Integer...
Added a null check in GLRenderWrapper
<nb> public class TransactorSimple extends Transactor { while ( ( slot = getEmptySlot ( orientation ) ) >= NUMBER0 && injected < stack . stackSize ) { injected += addToSlot ( slot , stack , injected , doAdd ) ; } - + inventory . onInventoryChanged ( ) ; return injected ; }
Made transactor alert inventory changes
<nb> public interface ParseTree extends SyntaxTree { public int getChildCount ( ) { return NUMBER0 ; } @ override - public < T > T accept ( ParseTreeVisitor < ? extends T > visitor ) { return null ; } + public < T > T accept ( ParseTreeVisitor < ? extends T > visitor ) { + return visitor . visitTerminal ( t...
Dispatch accept for terminal nodes to visitor
<nb> public class GTFSPatternHopFactory { LOG . warn ( graph . addBuilderAnnotation ( new TripUndefinedService ( trip ) ) ) ; } - COMMENT - List < StopTime > stopTimes = _dao . getStopTimesForTrip ( trip ) ; + COMMENT + List < StopTime > stopTimes = new ArrayList < StopTime > ( _dao . getStopTimesForTrip ...
remove repeated stoptimes at the same stop
<nb> public class OServerCommandGetProfiler extends OServerCommandAuthenticatedServer Orient . instance ( ) . getProfiler ( ) . stopRecording ( ) ; iResponse . send ( OHttpUtils . STATUS_OK_CODE , STRING0 , OHttpUtils . CONTENT_TEXT_PLAIN , STRING1 , null ) ; - } else if ( command . equalsIgnoreCase ( STRING2 )...
supported reset of few metrics only
<nb> public abstract class Controller { } final View inflate ( @ nonnull ViewGroup parent ) { + + if ( mView != null && mView . getParent ( ) != null && mView . getParent ( ) != parent ) { + detach ( mView , true ) ; + } + if ( mView == null ) { for ( LifecycleListener lifecycleListener : mLifecycle...
Fixed issue where view was not re created if its old view was still attached
<nb> import NAMESPACE ; SortableTest . class , OldTestClassRunnerTest . class , JUnitCoreTest . class , - InaccessibleBaseClassTest . class , + InaccessibleBaseClassTest . class } ) public class AllTests { SINGLE
Someone doesn t like commas at the end of annotation lists
<nb> public class JBUI { return isHiDPI ( ) ? NUMBER0 * i : i ; } - public Dimension size ( int width , int height ) { + public static JBDimension size ( int width , int height ) { return new JBDimension ( width , height ) ; }
make size static and return JBDimension
<nb> public final class JavaPluginLoader implements PluginLoader { trueListener . onBlockCanBuild ( ( BlockCanBuildEvent ) event ) ; break ; case BLOCK_RIGHTCLICKED : - trueListener . onBlockRightClicked ( ( BlockRightClickEvent ) event ) ; + trueListener . onBlockRightClick ( ( BlockRightClickEvent ) event )...
Updated JavaPluginLoader with renamed methods
<nb> public class Http11OutputBuffer implements OutputBuffer { public void init ( SocketWrapperBase < ? > socketWrapper ) { this . socketWrapper = socketWrapper ; - SINGLE }
Remove a TODO that on reflection is not necessary
<nb> class TypeValidator { STRING0 + STRING1 ) ; - static final DiagnosticType HIDDEN_PROPERTY_MISMATCH = - DiagnosticType . warning ( STRING2 , - STRING3 + - STRING4 + - STRING5 + - STRING6 ) ; - static final DiagnosticType INTERFACE_METHOD_NOT_IMPLEMENTED = DiagnosticType . warning ( STRING7...
Remove unused HIDDEN_PROPERTY_MISMATCH DiagnosticType from TypeValidator
<nb> public class PlugwiseBinding extends AbstractActiveBinding < PlugwiseBindingProvid SINGLE if ( stick . getDevice ( anElement . getId ( ) ) == null ) { - logger . info ( STRING0 , anElement . getId ( ) ) ; + logger . debug ( STRING0 , anElement . getId ( ) ) ; SINGLE Pattern MAC_PATTERN = Pattern . ...
move some binding messages to the DEBUG logging level
<nb> public interface CodeInsightTestFixture extends IdeaTestFixture { COMMENT COMMENT COMMENT - long testHighlighting ( boolean checkWarnings , boolean checkInfos , boolean checkWeakWarnings , String . . . filePaths ) throws Throwable ; + long testHighlighting ( boolean checkWarnings , boolean checkInfos , b...
provide inspection to find advices without pointcut or pointcut ref attributes
<nb> public class MasterInfo { for ( InetSocketAddress address : mWorkerAddressToId . keySet ( ) ) { if ( address . getHostName ( ) . equals ( host ) ) { LOG . info ( STRING0 + address ) ; - return new NetAddress ( address . getHostName ( ) , Config . WORKER_DATA_SERVER_PORT ) ; + return new NetAddress ( addr...
fix a remote fetch bug
<nb> import NAMESPACE ; public class LevelOrderTraversal { public void levelOrder ( Node root ) { + if ( root == null ) { + System . out . println ( STRING0 ) ; + return ; + } Queue < Node > queue = new LinkedList < Node > ( ) ; queue . offer ( root ) ; System . out . println ( ) ;
Updated the null check which was missing
<nb> public class FileDocumentManagerImpl extends FileDocumentManager implements Appl if ( file == null || ! file . isValid ( ) || file instanceof LightVirtualFile ) { myUnsavedDocuments . remove ( document ) ; + fireUnsavedDocumensDropped ( ) ; LOG . assertTrue ( ! myUnsavedDocuments . contains ( document ) ...
fire events about documents dropping this will allow indices to clean previously indexed data from these documents
<nb> public class AppEngineEnhancerBuilder extends ModuleLevelBuilder { } programParams . add ( STRING0 ) ; List < String > commandLine = ExternalProcessUtil . buildJavaCommandLine ( JpsJavaSdkType . getJavaExecutable ( sdk ) , EnhancerRunner . class . getName ( ) , - Collections . < String > emptyList ( ) , cl...
don t use CommandLineWrapper for GWT compiler
<nb> public class JBGradientPaint extends GradientPaint { super ( getX1 ( c , direction ) , getY1 ( c , direction ) , color1 , getX2 ( c , direction ) , getY2 ( c , direction ) , color2 ) ; } + @ suppresswarnings ( STRING0 ) private static float getX1 ( JComponent c , GradientDirection d ) { return NUMBER0 ...
suppress unused params inspection
<nb> public interface PConstants { SINGLE SINGLE - static final String FX2D = PGraphicsFX2D . class . getName ( ) ; + static final String FX2D = STRING0 ; static final String PDF = STRING1 ; static final String SVG = STRING2 ;
remove reference to FX so ARM can compile w o it
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Removed reference in Javadoc to obtaining and validating the SecureContext checking for null etc as this is no longer relevant
<nb> public class StreamExecutionEnvironment { jobGraphBuilder . setSource ( returnStream . getId ( ) , DummySource . class ) ; return returnStream ; } + + public JobGraphBuilder jobGB ( ) { + return jobGraphBuilder ; + } } <nb> public class DataStreamTest { DataStream < Tuple1 < String > > dataSt...
streaming Added JobGraphBuilder getter to StreamExecEnv
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMES...
Remove unused imports
<nb> public class ContentView extends LinearLayout { private ImageButton mShareButton ; private OpenInAppButton mOpenInAppButton ; private ImageButton mOverflowButton ; - private int mMaxToolbarHeight ; - private FrameLayout mToolbarSpacer ; private View mToolbarHeader ; private View mWebViewPlaceholder ;...
Remove unused values
<nb> public class JavadocFormatter { String entireElement = cdata . substring ( startIndex , endIndex + endTagLength ) ; + sb . append ( STRING0 ) ; sb . append ( entireElement ) ; + sb . append ( STRING0 ) ; nextIndex = endIndex + endTagLength ; }
Added newline formatting logic to JF
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
add java doc
<nb> public class Container extends AbsLayoutContainer { layoutAnimator . cancel ( ) ; - Log . d ( TAG , STRING0 + ( changeSet == null ) ) ; - for ( ItemProxy proxy : changeSet . getAdded ( ) ) { addAndMeasureViewIfNeeded ( proxy ) ; doLayout ( proxy ) ; <nb> public class Container extends AbsLayoutCo...
Fixed permissions on public member
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class ArithmeticOperatorForFinalResult { private static char operators [ ] = { STRING0 , STRING1 , STRING2 , STRING3 } ; public char [ ] matchesResult ( int input [ ]...
Adding extra check on this question
<nb> package NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MapGetTester < K , V ...
Fix CollectionFeature ALLOWS_NULL_QUERIES to MapFeature ALLOWS_NULL_KEY_QUERIES
<nb> public final class DruidConnectionHolder { buf . append ( STRING0 ) ; } - PreparedStatementPool statmentPool = this . getStatementPool ( ) ; - if ( statmentPool != null && statmentPool . getMap ( ) . size ( ) > NUMBER0 ) { + if ( statementPool != null && statementPool . getMap ( ) . size ( ) > NUMBER0 ...
add DruidConnectionHolder testcase bug fixed
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class CompileOutputBufferWithHighlight extends Composite <nb> public class CompileOutputBufferWithHighlight extends Composite output_ . setStylePrimaryName ( styles_ . output ( ) ) ; output_ ...
add some padding to compile output
<nb> public class NotificationManagerService extends SystemService { . setFlag ( Notification . FLAG_GROUP_SUMMARY , true ) . build ( ) ; summaryNotification . extras . putAll ( extras ) ; + Intent appIntent = getContext ( ) . getPackageManager ( ) + . getLaunchIntentForPackage ( adjustment . getPackage ( ) )...
Add content intent to autogroup summary
<nb> public class TouchUtils { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - protected static void drag ( Instrumentation inst , float fromX , float toX , float fromY , float toY , + protected static void drag ( Instrumentation instrumentation , ...
Changed the instrumentation parameter
<nb> public class PGraphicsOpenGL extends PGraphics { @ override - SINGLE public void shader ( PShader shader , int kind ) { - shader ( shader ) ; + flush ( ) ; SINGLE + + if ( kind == TRIANGLES ) polyShader = shader ; + else if ( kind == LINES ) lineShader = shader ; + else if ( kind == POINTS ) ...
kind parameter in shader shader kind overrides shader type specified
<nb> public class WorldEdit { return getBlock ( player , id , false ) ; } - public Set < BaseBlock > getBlocks ( LocalPlayer player , String list , - boolean allAllowed , boolean allowNoData ) + public Set < BaseBlock > getBlocks ( LocalPlayer player , String list , boolean allAllowed , boolean allowNoData ...
Fixed infinite loop
<nb> public class OracleUtils { throws DBException { final Object reference = referrer . getLazyReference ( propertyId ) ; - if ( reference instanceof String ) { + if ( reference instanceof String && monitor != null ) { Object object = cache . getObject ( monitor , parent ,
Oracle lazy properties reading fix
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT - public class RexsterTitanServer { private static final Logger log = <nb> public class RexsterTitanServer { final List < String > allowableNamespaces = new ArrayList < String > ( ) { { add ( STRING0 ) ; } } ; - final RexsterA...
Pass a null reference for the metric registry into the DefaultRexsterApplication
<nb> public class CommandLineParserTest { System . setProperty ( STRING0 , STRING1 ) ; Properties p = parser . parseArguments ( new String [ ] { STRING2 } ) ; - assertThat ( p ) . hasSize ( NUMBER0 ) ; + + SINGLE + SINGLE + assertThat ( p . size ( ) ) . isGreaterThanOrEqualTo ( NUMBER0 ) ; assertThat ...
Fix test when test env declares some system properties starting with sonar
<nb> public class ResponseVerbHandler implements IVerbHandler double age = System . currentTimeMillis ( ) - MessagingService . instance ( ) . getRegisteredCallbackAge ( messageId ) ; Pair < InetAddress , IMessageCallback > pair = MessagingService . instance ( ) . removeRegisteredCallback ( messageId ) ; if ( pair...
add debug log message for missing callback
<nb> public class RPCBlockWriteRequest extends RPCRequest { long length = in . readLong ( ) ; DataBuffer data = null ; if ( length > NUMBER0 ) { - SINGLE + SINGLE ByteBuffer buffer = ByteBuffer . allocate ( ( int ) length ) ; in . readBytes ( buffer ) ; data = new DataByteBuffer ( buffer , ( int ) lengt...
Tagging TODOs in tachyondotNetwork protocol
<nb> import NAMESPACE ; COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT + ...
updated javadoc for Closure
<nb> package NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import NAMESPACE ; <nb> public class EndToEndTest { v2 . getValue ( ) ) ; Map < String , Versioned < String > > capitals = storeClient . getAll ( Arrays . asList ( STRING0 , - STRING1 ) ) ; ...
Expand unit test for getAll
<nb> public class ApplicationContext @ override public String getVirtualServerName ( ) { SINGLE - return ( ( Host ) context . getParent ( ) ) . getName ( ) ; + Host host = ( Host ) context . getParent ( ) ; + Engine engine = ( Engine ) host . getParent ( ) ; + return engine . getName ( ) + STRING0 + host ...
Add engine name to virtual server name
<nb> public class BaseHadoopTest { } protected MongoClientURIBuilder authCheck ( final MongoClientURIBuilder builder ) { - if ( Boolean . valueOf ( System . getProperty ( STRING0 , STRING1 ) ) ) { + if ( isAuthEnabled ( ) ) { builder . auth ( STRING2 , STRING3 ) ; } <nb> public class BaseHadoopTest { ...
support the jenkins option for enabling auth too
<nb> public final class ParsedInterfaceCriteria { final ModelNode subModel = model . clone ( ) ; subModel . remove ( ModelDescriptionConstants . OP ) ; subModel . remove ( ModelDescriptionConstants . OP_ADDR ) ; + subModel . remove ( ModelDescriptionConstants . OPERATION_HEADERS ) ; final ParsedInterfaceCrite...
Don t let operation headers break interface address criteria evaluation
<nb> public class ParserRunner { case ECMASCRIPT6 : return Mode . ES6 ; case ECMASCRIPT6_STRICT : - return Mode . ES5_STRICT ; + return Mode . ES6_STRICT ; default : throw new IllegalStateException ( STRING0 ) ; }
Fix typo in ParserRunner which incorrectly maps the compiler s LanguageMode to the Parser s Mode
<nb> public class XContentMapConverter { gen . writeBinary ( ( byte [ ] ) value ) ; } else if ( value instanceof Date ) { gen . writeString ( XContentBuilder . defaultDatePrinter . print ( ( ( Date ) value ) . getTime ( ) ) ) ; - } else if ( type == java . sql . Date . class ) { - gen . writeString ( XContent...
add another instanceof check on Date and not direct check
<nb> public class DriverDescriptor extends AbstractDescriptor implements DBPDriver localLibsExists = true ; } } + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE boolean downloaded = false ; if ( ! downloadCandidates . isEmpty ( ) || ( ! localLibsExists && ! fileSources...
Oracle schema initialize fix
<nb> public class IgnitedHttp { } COMMENT + COMMENT + COMMENT + COMMENT + public void disableResponseCache ( boolean wipe ) { + if ( responseCache != null && wipe ) { + responseCache . clear ( ) ; + } + responseCache = null ; + } + + COMMENT COMMENT COMMENT public synchronized HttpResp...
Add disableResponseCache method
<nb> public class Liquibase { new DbmsChangeSetFilter ( database ) , new CountChangeSetFilter ( changesToRollback ) ) ; - logIterator . run ( new RollbackVisitor ( database ) , new RuntimeEnvironment ( database , contexts , labelExpression ) ) ; + logIterator . run ( new RollbackVisitor ( database , changeExe...
add changeExecListener to RollbackVisitor constructor so it gets used during rollback
<nb> public class BalancedShardsAllocator extends AbstractComponent implements Shards if ( ( srcDecision = maxNode . removeShard ( shard ) ) != null ) { minNode . addShard ( shard , srcDecision ) ; final float delta = weight . weight ( operation , this , minNode , idx ) - weight . weight ( operation , this , maxN...
Make shard balancing deterministic if weights are identical
<nb> public class IsCollectionWithSize < E > extends FeatureMatcher < Collection < ? extends COMMENT @ factory public static < E > Matcher < Collection < ? extends E > > hasSize ( int size ) { - Matcher < ? super Integer > matcher = equalTo ( size ) ; - return IsCollectionWithSize . < E > hasSize ( matcher ) ...
removed unnecessary cast and intermediate variable
<nb> final class DelayedClientTransport2 implements ManagedClientTransport { } COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT @ override public final void shutdown ( ) { <nb> final class DelayedClientTransport2 implements ManagedClientTransport { COMMENT COMMEN...
update javadocs in DelayedClientTransport2
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class ImdbExampleTest { <nb> public class ImdbExampleTest @ test public void deleteIndex ( ) { - GraphDatabaseService graphDb = new ImpermanentGraphDatabase ( ) ; + GraphDatabaseService...
Prevents two IGD to open at the same time
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; COMMENT public class SimpleBroadcaster extends DefaultBroadcaster { - private final static ScheduledExecutorService scheduler = E...
Fix static scheduler thanks to Marian Sterjev for the feedback
<nb> public class WebView extends AbsoluteLayout SINGLE SINGLE - private void setContentScrollBy ( int cx , int cy , boolean animate ) { + private boolean setContentScrollBy ( int cx , int cy , boolean animate ) { if ( mDrawHistory ) { SINGLE SINGLE SINGLE SINGLE - return ; + return false ; } ...
Fix a bug in find
<nb> public final class UfsUtils { AlluxioURI alluxioUriToLoad = alluxioUri . join ( file ) ; LOG . debug ( STRING0 + alluxioUriToLoad ) ; SINGLE - AlluxioURI alluxioPath = new AlluxioURI ( alluxioUri . getPath ( ) ) ; + AlluxioURI alluxioPath = new AlluxioURI ( alluxioUriToLoad . getPath ( ) ) ; if ( ! fs ...
Fix a bug
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Improved JavaDoc of DynaModule
<nb> public class Nio2Endpoint extends AbstractEndpoint < Nio2Channel > { public void completed ( Integer nBytes , SocketWrapperBase < Nio2Channel > attachment ) { boolean notify = false ; if ( log . isDebugEnabled ( ) ) { - log . debug ( STRING0 + attachment + STRING1 + readInterest + STRING2 ) ; + log . deb...
Fix formatting of debug method
<nb> class WifiConfigStore { } config . ipAssignment = IpAssignment . DHCP ; config . proxySettings = ProxySettings . NONE ; - mConfiguredNetworks . put ( config . networkId , config ) ; - mNetworkIds . put ( configKey ( config ) , config . networkId ) ; - localLog ( STRING0 , config . networkId ) ; + +...
Fix duplicate SSID entries in the WifiSettings UI
<nb> public class AprEndpoint extends AbstractEndpoint < Long > { } } + SINGLE if ( ! pollerRunning ) { break ; } <nb> public class AprEndpoint extends AbstractEndpoint < Long > { } } + SINGLE + if ( ! sendfileRunning ) { + break ; + } + try { SINGLE if ( addS . size ( ) > NUMBER0 ...
Avoid possible poller error with sendfile
<nb> public class WXListComponent extends WXVContainer implements if ( linearLayoutManager != null ) { x = NUMBER0 ; int position = linearLayoutManager . findFirstVisibleItemPosition ( ) ; - View firstVisiableChildView = layoutManager . findViewByPosition ( position ) ; - int itemHeight = firstVisiableChildVi...
android update rename var
<nb> public class OStorageLocalTxExecuter { private void commitEntry ( final int iRequesterId , final int iTxId , final OTransactionEntry < ? extends ORecord < ? > > txEntry ) throws IOException { - if ( ! txEntry . getRecord ( ) . isDirty ( ) ) + if ( txEntry . status != OTransactionEntry . DELETED && ! txEn...
Fixed issue on delete in transaction
<nb> public class Constants { public static final String WORKER_ALLOCATE_STRATEGY_CLASS = STRING0 ; public static final String WORKER_EVICT_STRATEGY_CLASS = STRING1 ; + public static final String WORKER_EVICT_STRATEGY_LRFU_STEP_FACTOR = + STRING2 ; + public static final String WORKER_EVICT_STRATEGY_LRFU_ATT...
add Constants of LRFU
<nb> public class GrailsProjectWatcher extends DirectoryWatcher { COMMENT COMMENT public static void firePendingClassChangeEvents ( ) { - for ( Runnable runnable : classChangeEventQueue ) { - runnable . run ( ) ; + try { + for ( Runnable runnable : classChangeEventQueue ) { + runnable . run ( ) ; + } ...
clear the class change queue in a finally block to avoid running again on errors
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PathManager { } } try { - ourHomePath = ourHomePath == null ? null : new File ( ourHomePath ) . getCanonicalPath ( ) ; + if ( ! SystemInfo . isFileSystemC...
do not canonicalize paths on Linux to preserve symlinks
<nb> public abstract class SmackTestCase extends TestCase { SINGLE getConnection ( i ) . login ( STRING0 + i , STRING0 + i ) ; } + SINGLE + Thread . sleep ( NUMBER0 ) ; } catch ( Exception e ) { e . printStackTrace ( ) ;
Added a mini delay after the test users have logged into the server
<nb> public class CompassListener extends Plugin implements SensorEventListener { COMMENT COMMENT public CompassListener ( ) { - this . heading = FLOAT0 ; + this . heading = NUMBER0 ; this . timeStamp = NUMBER0 ; this . setStatus ( CompassListener . STOPPED ) ; }
woops java type checks
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TapTargetView extends View { this . shouldDrawShadow = target . drawShadow ; this . cancelable = target . cancelable ; ...
Fix issue with clipping and older APIs
<nb> public abstract class VariableDescriptorImpl extends DeclarationDescriptorImpl i @ notnull Name name ) { - super ( containingDeclaration , annotations , name ) ; + this ( containingDeclaration , annotations , name , null ) ; } @ notnull
always call single constructor of VariableDescriptorImpl
<nb> public class VerificationAcceptanceTest extends AcceptanceTestBase { verify ( getRequestedFor ( urlEqualTo ( STRING0 ) ) . withHeader ( STRING1 , equalTo ( STRING2 ) ) . withHeader ( STRING1 , matching ( STRING3 ) ) ) ; + + verify ( getRequestedFor ( urlEqualTo ( STRING0 ) ) + . withHeader ( STRING1 , ...
Added extra test verification for mult valued headers
<nb> public class DefaultScriptCompilationHandlerTest { expectedScriptClass ) ; fail ( ) ; } catch ( GradleException e ) { - assertThat ( e . getMessage ( ) , equalTo ( STRING0 ) ) ; + assertThat ( e . getMessage ( ) , containsString ( STRING0 ) ) ; assertThat ( e . getCause ( ) , instanceOf ( ClassCastExce...
Fixed the failing test by relaxing the assertion
<nb> public class GitCherryPicker { @ notnull private static String createCommitMessage ( @ notnull GitCommit commit ) { - return commit . getDescription ( ) + STRING0 + commit . getShortHash ( ) . getString ( ) + STRING1 ; + return commit . getDescription ( ) + STRING2 + commit . getShortHash ( ) . getString...
print it as cherry picked in the commit message since Git does so
<nb> public class OpenIdAuthenticationProcessingFilter extends AbstractProcessingFilt logger . debug ( STRING0 + failed . toString ( ) ) ; } - try { - request . getSession ( ) . setAttribute ( SPRING_SECURITY_LAST_EXCEPTION_KEY , failed ) ; - } catch ( Exception ignored ) { + if ( getAllowSessionCreation ...
Don t add exception to session if allowSessionCreation is false
<nb> public class OperationObserveFromAndroidComponent { private static class OnSubscribeBase < T , AndroidComponent > implements Observable . OnSubscribeFunc < T > { - private static final String LOG_TAG = OperationObserveFromAndroidComponent . class . getSimpleName ( ) ; + private static final String LOG_TA...
Renamed the log tag as it was too long