signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class Points { /** * Inverse transforms a point as specified , storing the result in the point provided . * @ return a reference to the result point , for chaining . */ public static Point inverseTransform ( double x , double y , double sx , double sy , double rotation , double tx , double ty , Point result ) ...
x -= tx ; y -= ty ; // untranslate double sinnega = Math . sin ( - rotation ) , cosnega = Math . cos ( - rotation ) ; double nx = ( x * cosnega - y * sinnega ) ; // unrotate double ny = ( x * sinnega + y * cosnega ) ; return result . set ( nx / sx , ny / sy ) ; // unscale
public class BasicFreeVarCollector { /** * If tree refers to a class instance creation expression * add all free variables of the freshly created class . */ public void visitNewClass ( JCNewClass tree ) { } }
ClassSymbol c = ( ClassSymbol ) tree . constructor . owner ; addFreeVars ( c ) ; super . visitNewClass ( tree ) ;
public class SftpFile { /** * Get the parent of the current file . This method determines the correct * path of the parent file ; if no parent exists ( i . e . the current file is * the root of the filesystem ) then this method returns a null value . * @ return SftpFile * @ throws SshException * @ throws Sftp...
if ( absolutePath . lastIndexOf ( '/' ) == - 1 ) { // This is simply a filename so the parent is the users default // directory String dir = sftp . getDefaultDirectory ( ) ; return sftp . getFile ( dir ) ; } // Extract the filename from the absolute path and return the parent String path = sftp . getAbsolutePath ( abso...
public class OmemoMessageBuilder { /** * Move the auth tag from the end of the cipherText to the messageKey . * @ param messageKey source messageKey without authTag * @ param cipherText source cipherText with authTag * @ param messageKeyWithAuthTag destination messageKey with authTag * @ param cipherTextWithout...
// Check dimensions of arrays if ( messageKeyWithAuthTag . length != messageKey . length + 16 ) { throw new IllegalArgumentException ( "Length of messageKeyWithAuthTag must be length of messageKey + " + "length of AuthTag (16)" ) ; } if ( cipherTextWithoutAuthTag . length != cipherText . length - 16 ) { throw new Illeg...
public class SessionImpl { /** * { @ inheritDoc } */ public void exportDocumentView ( String absPath , ContentHandler contentHandler , boolean skipBinary , boolean noRecurse ) throws InvalidSerializedDataException , PathNotFoundException , SAXException , RepositoryException { } }
checkLive ( ) ; LocationFactory factory = new LocationFactory ( ( ( NamespaceRegistryImpl ) repository . getNamespaceRegistry ( ) ) ) ; WorkspaceEntry wsConfig = ( WorkspaceEntry ) container . getComponentInstanceOfType ( WorkspaceEntry . class ) ; ValueFactoryImpl valueFactoryImpl = new ValueFactoryImpl ( factory , ws...
public class DescribeMaintenanceWindowExecutionTaskInvocationsResult { /** * Information about the task invocation results per invocation . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setWindowExecutionTaskInvocationIdentities ( java . util . Collection )...
if ( this . windowExecutionTaskInvocationIdentities == null ) { setWindowExecutionTaskInvocationIdentities ( new com . amazonaws . internal . SdkInternalList < MaintenanceWindowExecutionTaskInvocationIdentity > ( windowExecutionTaskInvocationIdentities . length ) ) ; } for ( MaintenanceWindowExecutionTaskInvocationIden...
public class LongChromosome { /** * Create a new { @ code LongChromosome } with the given genes . * @ param genes the genes of the chromosome . * @ return a new chromosome with the given genes . * @ throws NullPointerException if the given { @ code genes } are { @ code null } * @ throws IllegalArgumentException...
checkGeneRange ( Stream . of ( genes ) . map ( LongGene :: range ) ) ; return new LongChromosome ( ISeq . of ( genes ) , IntRange . of ( genes . length ) ) ;
public class Objects2 { /** * 如果两个对象中有 null 值或两个对象相同 , 返回 null , 否则返回对象 1。 * @ param value * 对象 1 * @ param value2 * 对象 2 * @ param < T > * 对象类型 * @ return 结果 */ public static < T > T nullIf ( final T value , final T value2 ) { } }
if ( value == null || value2 == null ) { return null ; } if ( value . equals ( value2 ) ) { return null ; } return value ;
public class SpecNodeWithRelationships { /** * Add a relationship to the topic . * @ param topic The topic that is to be related to . * @ param type The type of the relationship . */ public void addRelationshipToTarget ( final SpecTopic topic , final RelationshipType type ) { } }
final TargetRelationship relationship = new TargetRelationship ( this , topic , type ) ; topicTargetRelationships . add ( relationship ) ; relationships . add ( relationship ) ;
public class AmazonEnvironmentAwareClientBuilder { /** * Build the client . * @ param < T > the type parameter * @ param builder the builder * @ param clientType the client type * @ return the client instance */ public < T > T build ( final AwsClientBuilder builder , final Class < T > clientType ) { } }
val cfg = new ClientConfiguration ( ) ; try { val localAddress = getSetting ( "localAddress" ) ; if ( StringUtils . isNotBlank ( localAddress ) ) { cfg . setLocalAddress ( InetAddress . getByName ( localAddress ) ) ; } } catch ( final Exception e ) { LOGGER . error ( e . getMessage ( ) , e ) ; } builder . withClientCon...
public class PeerManager { /** * from interface PeerProvider */ public void invokeAction ( ClientObject caller , byte [ ] serializedAction ) { } }
NodeAction action = null ; try { ObjectInputStream oin = new ObjectInputStream ( new ByteArrayInputStream ( serializedAction ) ) ; action = ( NodeAction ) oin . readObject ( ) ; _injector . injectMembers ( action ) ; action . invoke ( ) ; } catch ( Exception e ) { log . warning ( "Failed to execute node action" , "from...
public class GridFTPClient { /** * Starts local server in striped active mode . * setStripedPassive ( ) must be called before that . * This method takes no parameters . HostPortList of the remote * server , known from the last call of setStripedPassive ( ) , is stored * internally and the local server will conn...
if ( gSession . serverAddressList == null ) { throw new ClientException ( ClientException . CALL_PASSIVE_FIRST ) ; } try { gLocalServer . setStripedActive ( gSession . serverAddressList ) ; } catch ( UnknownHostException e ) { throw new ClientException ( ClientException . UNKNOWN_HOST ) ; }
public class RingbufferContainer { /** * Initializes the ring buffer with references to other services , the * ringbuffer store and the config . This is because on a replication * operation the container is only partially constructed . The init method * finishes the configuration of the ring buffer container for ...
this . config = config ; this . serializationService = nodeEngine . getSerializationService ( ) ; initRingbufferStore ( nodeEngine . getConfigClassLoader ( ) ) ;
public class AsmUtils { /** * This method is used to read the whole stream into byte array . This allows patching . * It also works around a bug in ASM 6.1 ( https : / / gitlab . ow2 . org / asm / asm / issues / 317816 ) . */ private static byte [ ] readStream ( final InputStream in ) throws IOException { } }
final ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; final byte [ ] data = new byte [ 4096 ] ; int bytesRead ; while ( ( bytesRead = in . read ( data , 0 , data . length ) ) != - 1 ) { bos . write ( data , 0 , bytesRead ) ; } return bos . toByteArray ( ) ;
public class UpdatableHeap { /** * Offer element at the given position . * @ param pos Position * @ param e Element */ protected void offerAt ( final int pos , O e ) { } }
if ( pos == NO_VALUE ) { // resize when needed if ( size + 1 > queue . length ) { resize ( size + 1 ) ; } index . put ( e , size ) ; size ++ ; heapifyUp ( size - 1 , e ) ; heapModified ( ) ; return ; } assert ( pos >= 0 ) : "Unexpected negative position." ; assert ( queue [ pos ] . equals ( e ) ) ; // Did the value imp...
public class IonReaderTextRawTokensX { /** * NOT for use outside of string / symbol / clob ! * Absorbs backslash - NL pairs , returning * { @ link # CHAR _ SEQ _ ESCAPED _ NEWLINE _ SEQUENCE _ 1 } etc . */ protected final int read_string_char ( ProhibitedCharacters prohibitedCharacters ) throws IOException { } }
int c = _stream . read ( ) ; if ( prohibitedCharacters . includes ( c ) ) { error ( "invalid character [" + printCodePointAsString ( c ) + "]" ) ; } // the c = = ' \ \ ' clause will cause us to eat ALL slash - newlines if ( c == '\r' || c == '\n' || c == '\\' ) { c = line_count ( c ) ; } return c ;
public class AbstractExtendedSet { /** * { @ inheritDoc } */ @ Override public ExtendedSet < T > symmetricDifference ( Collection < ? extends T > other ) { } }
ExtendedSet < T > res = union ( other ) ; res . removeAll ( intersection ( other ) ) ; return res ;
public class FileUtil { /** * 返回主文件名 * @ param file 文件 * @ return 主文件名 */ public static String mainName ( File file ) { } }
if ( file . isDirectory ( ) ) { return file . getName ( ) ; } return mainName ( file . getName ( ) ) ;
public class ForkJoinPool { /** * Returns an estimate of the total number of tasks stolen from * one thread ' s work queue by another . The reported value * underestimates the actual total number of steals when the pool * is not quiescent . This value may be useful for monitoring and * tuning fork / join progra...
long count = stealCount . get ( ) ; WorkQueue [ ] ws ; WorkQueue w ; if ( ( ws = workQueues ) != null ) { for ( int i = 1 ; i < ws . length ; i += 2 ) { if ( ( w = ws [ i ] ) != null ) count += w . totalSteals ; } } return count ;
public class AbstractCommandLineRunner { /** * Prints all the input contents , starting with a comment that specifies the input file name * ( using root - relative paths ) before each file . */ @ VisibleForTesting @ GwtIncompatible ( "Unnecessary" ) void printBundleTo ( Iterable < CompilerInput > inputs , Appendable ...
// Prebuild ASTs before they ' re needed in getLoadFlags , for performance and because // StackOverflowErrors can be hit if not prebuilt . if ( compiler . getOptions ( ) . numParallelThreads > 1 ) { new PrebuildAst ( compiler , compiler . getOptions ( ) . numParallelThreads ) . prebuild ( inputs ) ; } if ( ! compiler ....
public class XpathUtils { /** * Same as { @ link # asByteBuffer ( String , Node ) } but allows an xpath to be * passed in explicitly for reuse . */ public static ByteBuffer asByteBuffer ( String expression , Node node , XPath xpath ) throws XPathExpressionException { } }
String base64EncodedString = evaluateAsString ( expression , node , xpath ) ; if ( isEmptyString ( base64EncodedString ) ) return null ; if ( ! isEmpty ( node ) ) { byte [ ] decodedBytes = Base64 . decode ( base64EncodedString ) ; return ByteBuffer . wrap ( decodedBytes ) ; } return null ;
public class MessageDialogBuilder { /** * Assigns a set of extra window hints that you want the built dialog to have * @ param extraWindowHints Window hints to assign to the window in addition to the ones the builder will put * @ return Itself */ public MessageDialogBuilder setExtraWindowHints ( Collection < Window...
this . extraWindowHints . clear ( ) ; this . extraWindowHints . addAll ( extraWindowHints ) ; return this ;
public class AnnotationValueBuilder { /** * Sets the value member to the given enum objects . * @ param enumObjs The enum [ ] * @ return This builder */ public AnnotationValueBuilder < T > values ( @ Nullable Enum < ? > ... enumObjs ) { } }
return member ( AnnotationMetadata . VALUE_MEMBER , enumObjs ) ;
public class SubProcessKernel { /** * Pass the Path of the binary to the SubProcess in Command position 0 */ private ProcessBuilder appendExecutablePath ( ProcessBuilder builder ) { } }
String executable = builder . command ( ) . get ( 0 ) ; if ( executable == null ) { throw new IllegalArgumentException ( "No executable provided to the Process Builder... we will do... nothing... " ) ; } builder . command ( ) . set ( 0 , FileUtils . getFileResourceId ( configuration . getWorkerPath ( ) , executable ) ....
public class Validators { /** * Creates and returns a validator , which allows to validate texts to ensure , that they * represent valid IPv6 addresses . Empty texts are also accepted . * @ param context * The context , which should be used to retrieve the error message , as an instance of * the class { @ link ...
return new IPv6AddressValidator ( context , R . string . default_error_message ) ;
public class ContactsApi { /** * Get contacts Return contacts of a character - - - This route is cached for * up to 300 seconds SSO Scope : esi - characters . read _ contacts . v1 * @ param characterId * An EVE character ID ( required ) * @ param datasource * The server name you would like data from ( optiona...
ApiResponse < List < ContactsResponse > > resp = getCharactersCharacterIdContactsWithHttpInfo ( characterId , datasource , ifNoneMatch , page , token ) ; return resp . getData ( ) ;
public class ReflectionMethodHelper { /** * Get all set / get methods from a Class . With methods from all super classes . * @ param pvClass Analyse Class . * @ return All methods found . */ public static Method [ ] getAllMethodsByClass ( Class < ? > pvClass ) { } }
return getAllMethodsByClassIntern ( pvClass , new HashSet < Method > ( ) ) . toArray ( new Method [ 0 ] ) ;
public class IndexerCacheStore { /** * Get the mode handler */ public IndexerIoModeHandler getModeHandler ( ) { } }
if ( modeHandler == null ) { if ( ctx . getCache ( ) . getStatus ( ) != ComponentStatus . RUNNING ) { throw new IllegalStateException ( "The cache should be started first" ) ; } synchronized ( this ) { if ( modeHandler == null ) { this . modeHandler = new IndexerIoModeHandler ( cacheManager . isCoordinator ( ) || ctx ....
public class SigninFormPanel { /** * Factory method for creating the new { @ link SigninPanel } that contains the TextField for the * email and password . This method is invoked in the constructor from the derived classes and * can be overridden so users can provide their own version of a Component that contains th...
final Component component = new SigninPanel < > ( id , model ) ; return component ;
public class AnnotationProcessor { /** * Builds { @ link TypeModel } objects from the { @ code roots } . The * types built contain contract methods . Helper types are created * for interfaces . */ @ Requires ( { } }
"roots != null" , "diagnosticManager != null" } ) @ Ensures ( { "result != null" , "result.size() >= roots.size()" , "result.size() <= 2 * roots.size()" } ) protected List < TypeModel > createTypes ( Set < TypeElement > roots , DiagnosticManager diagnosticManager ) { boolean errors = false ; /* * Extract all type names...
public class Bean { /** * Internal : Introspects the given type and creates the appropriate { @ link PropertyDescriptor } . * < p > This logic is a completely rewritten version of { @ link java . beans . Introspector } , * providing fewer bounds on the matching types ( less strict equivalence for the return * typ...
List < PropertyDescriptor > desciptorsHolder = new ArrayList < PropertyDescriptor > ( ) ; // Collects writeMetod and readMethod for ( Method method : methods ) { if ( isStatic ( method ) || method . isSynthetic ( ) ) { continue ; } String name = method . getName ( ) ; if ( method . getParameterTypes ( ) . length == 0 )...
public class MouseLiberalAdapter { /** * mouseReleased , Final function . Handles mouse released events . This function also detects * liberal single clicks , and liberal double clicks . */ @ Override final public void mouseReleased ( MouseEvent e ) { } }
// Check to see if this mouse release completes a liberal single click . if ( isComponentPressedDown ) { // A liberal single click has occurred . mouseLiberalClick ( e ) ; // Check to see if we had two liberal single clicks within the double click time window . long now = System . currentTimeMillis ( ) ; long timeBetwe...
public class ModelParameterServer { /** * This method stores provided entities for MPS internal use * @ param configuration * @ param transport * @ param isMasterNode */ public void configure ( @ NonNull VoidConfiguration configuration , @ NonNull Transport transport , @ NonNull UpdaterParametersProvider updaterP...
this . transport = transport ; this . masterMode = false ; this . configuration = configuration ; this . updaterParametersProvider = updaterProvider ;
public class TridiagonalHelper_DDRB { /** * Multiples the appropriate submatrix of A by the specified reflector and stores * the result ( ' y ' ) in V . < br > * < br > * y = A * u < br > * @ param blockLength * @ param A Contains the ' A ' matrix and ' u ' vector . * @ param V Where resulting ' y ' row vec...
int heightMatA = A . row1 - A . row0 ; for ( int i = row + 1 ; i < heightMatA ; i ++ ) { double val = innerProdRowSymm ( blockLength , A , row , A , i , 1 ) ; V . set ( row , i , val ) ; }
public class AmazonECRClient { /** * Retrieves the pre - signed Amazon S3 download URL corresponding to an image layer . You can only get URLs for image * layers that are referenced in an image . * < note > * This operation is used by the Amazon ECR proxy , and it is not intended for general use by customers for ...
request = beforeClientExecution ( request ) ; return executeGetDownloadUrlForLayer ( request ) ;
public class ApiDescriptionBuilder { /** * Updates the operations to the api operation * @ param operations - operations for each of the http methods for that path * @ return this @ see springfox . documentation . builders . ApiDescriptionBuilder */ public ApiDescriptionBuilder operations ( List < Operation > opera...
if ( operations != null ) { this . operations = operations . stream ( ) . sorted ( operationOrdering ) . collect ( toList ( ) ) ; } return this ;
public class EchoClient { /** * Sends the given { @ link String message } to the { @ link EchoClient } . * @ param message { @ link String } containing the message to send . * @ return the { @ link String response } returned by the { @ link EchoServer } . * @ see # newSocket ( String , int ) * @ see # sendMessa...
Socket socket = null ; try { socket = newSocket ( getHost ( ) , getPort ( ) ) ; return receiveResponse ( sendMessage ( socket , message ) ) ; } finally { close ( socket ) ; }
public class LengthValidator { /** * / * ( non - Javadoc ) * @ see nz . co . senanque . validationengine . annotations1 . FieldValidator # validate ( java . lang . Object ) */ public void validate ( Object o ) { } }
if ( o != null && o instanceof String ) { int l = ( ( String ) o ) . length ( ) ; if ( m_minLength != - 1 && l < m_minLength ) { String message = m_propertyMetadata . getMessageSourceAccessor ( ) . getMessage ( m_message , new Object [ ] { m_propertyMetadata . getLabelName ( ) , m_minLength , m_maxLength , String . val...
public class RouteFetcher { /** * Build a route request given the passed { @ link Location } and { @ link RouteProgress } . * Uses { @ link RouteOptions # coordinates ( ) } and { @ link RouteProgress # remainingWaypoints ( ) } * to determine the amount of remaining waypoints there are along the given route . * @ ...
Context context = contextWeakReference . get ( ) ; if ( invalid ( context , location , routeProgress ) ) { return null ; } Point origin = Point . fromLngLat ( location . getLongitude ( ) , location . getLatitude ( ) ) ; Double bearing = location . hasBearing ( ) ? Float . valueOf ( location . getBearing ( ) ) . doubleV...
public class DirectoryLookupService { /** * Get All ModelServiceInstance on the Directory Server . * @ return the ModelServiceInstance List . */ public List < ModelServiceInstance > getAllInstances ( ) { } }
List < ModelServiceInstance > result = Collections . emptyList ( ) ; try { result = getDirectoryServiceClient ( ) . getAllInstances ( ) ; } catch ( ServiceException se ) { LOGGER . error ( "Error when getAllInstances()" , se ) ; } return result ;
public class TypeDeclarationGenerator { /** * Overridden in TypePrivateDeclarationGenerator */ protected void printDeadClassConstant ( VariableDeclarationFragment fragment ) { } }
VariableElement var = fragment . getVariableElement ( ) ; Object value = var . getConstantValue ( ) ; assert value != null ; String declType = getDeclarationType ( var ) ; declType += ( declType . endsWith ( "*" ) ? "" : " " ) ; String name = nameTable . getVariableShortName ( var ) ; if ( ElementUtil . isPrimitiveCons...
public class MoveAnalysis { @ Override public void visitArrayAccess ( Expr . ArrayAccess expr , Boolean consumed ) { } }
visitExpression ( expr . getFirstOperand ( ) , false ) ; visitExpression ( expr . getSecondOperand ( ) , false ) ; if ( ! consumed ) { expr . setMove ( ) ; }
public class AmazonSageMakerClient { /** * Returns information about a notebook instance . * @ param describeNotebookInstanceRequest * @ return Result of the DescribeNotebookInstance operation returned by the service . * @ sample AmazonSageMaker . DescribeNotebookInstance * @ see < a href = " http : / / docs . ...
request = beforeClientExecution ( request ) ; return executeDescribeNotebookInstance ( request ) ;
public class StateMachine { /** * Initializes the state machine . * @ param executor The state machine executor . * @ throws NullPointerException if { @ code context } is null */ public void init ( StateMachineExecutor executor ) { } }
this . executor = Assert . notNull ( executor , "executor" ) ; this . context = executor . context ( ) ; this . clock = context . clock ( ) ; this . sessions = context . sessions ( ) ; if ( this instanceof SessionListener ) { executor . context ( ) . sessions ( ) . addListener ( ( SessionListener ) this ) ; } configure...
public class BeansUtil { /** * Copies the property from the object to the other object . * @ param dst * the destination object to which the property value is set . * @ param src * the source object from which the property value is got . * @ param propertyName * the property name . * @ return * the numb...
int count = 0 ; if ( isPropertyGettable ( src , propertyName ) && isPropertySettable ( dst , propertyName ) ) { Object value = getProperty ( src , propertyName ) ; setProperty ( dst , propertyName , value ) ; count ++ ; } return count ;
public class Firmata { /** * Route a Message object built from data over the SerialPort communication line to a corresponding * MessageListener array designed to handle and interpret the object for processing in the client code . * @ param message Firmata Message to be routed to the registered listeners . */ privat...
Class messageClass = message . getClass ( ) ; // Dispatch message to all specific listeners for the message class type if ( messageListenerMap . containsKey ( messageClass ) ) { dispatchMessage ( messageListenerMap . get ( messageClass ) , message ) ; } // Dispatch message to all generic listeners if ( messageListenerM...
public class BeanUtils { /** * Returns a Method object corresponding to a setter that sets an instance of componentClass from target . * @ param target class that the setter should exist on * @ param componentClass component to set * @ return Method object , or null of one does not exist */ public static Method s...
try { return target . getMethod ( setterName ( componentClass ) , componentClass ) ; } catch ( NoSuchMethodException e ) { // if ( log . isTraceEnabled ( ) ) log . trace ( " Unable to find method " + setterName ( componentClass ) + " in class " + target ) ; return null ; } catch ( NullPointerException e ) { return null...
public class JobExecutionsInner { /** * Lists a job ' s executions . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . * @ param serverName The name of the server . * @ param jobAgentName The name o...
return AzureServiceFuture . fromPageResponse ( listByJobSinglePageAsync ( resourceGroupName , serverName , jobAgentName , jobName ) , new Func1 < String , Observable < ServiceResponse < Page < JobExecutionInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < JobExecutionInner > > > call ( String n...
public class OpenAPIModelFilterAdapter { /** * { @ inheritDoc } */ @ Override public OAuthFlow visitOAuthFlow ( Context context , OAuthFlow authFlow ) { } }
visitor . visitOAuthFlow ( context , authFlow ) ; return authFlow ;
public class FieldType { /** * Convert a field value to something suitable to be stored in the database . */ public Object convertJavaFieldToSqlArgValue ( Object fieldVal ) throws SQLException { } }
/* * Limitation here . Some people may want to override the null with their own value in the converter but we * currently don ' t allow that . Specifying a default value I guess is a better mechanism . */ if ( fieldVal == null ) { return null ; } else { return fieldConverter . javaToSqlArg ( this , fieldVal ) ; }
public class LogViewer { /** * Parses the instanceId into the requested main process instanceId and the subprocess instanceid . The main * process instanceId must be a long value as the main instance Id is a timestamp . * @ param instanceId - the instanceId requested by the user */ void setInstanceId ( String insta...
if ( instanceId != null && ! "" . equals ( instanceId ) ) { subInstanceId = getSubProcessInstanceId ( instanceId ) ; try { long id = getProcessInstanceId ( instanceId ) ; mainInstanceId = id < 0 ? null : new Date ( id ) ; } catch ( NumberFormatException nfe ) { throw new IllegalArgumentException ( getLocalizedString ( ...
public class WebApp { /** * events */ protected void commonInitializationStart ( WebAppConfiguration config , DeployedModule moduleConfig ) throws Throwable { } }
// End 299205 , Collaborator added in extension processor recieves no // events WebGroupConfiguration webGroupCfg = ( ( WebGroup ) parent ) . getConfiguration ( ) ; isServlet23 = webGroupCfg . isServlet2_3 ( ) ; int versionID = webGroupCfg . getVersionID ( ) ; effectiveMajorVersion = versionID / 10 ; effectiveMinorVers...
public class DataTableCore { /** * Optional parameter defining which rows are selected when the datatable is initially rendered . If this attribute is an integer , it ' s the row index . If it ' s a string , it ' s a jQuery expression . If it ' s another object , it ' s compared to the loop var . Automatically sets sel...
getStateHelper ( ) . put ( PropertyKeys . selectedRow , _selectedRow ) ;
public class StoreRoutingPlan { /** * Determines the partition ID that replicates the key on the given node . * @ param nodeId of the node * @ param key to look up . * @ return partitionId if found , otherwise null . */ public Integer getNodesPartitionIdForKey ( int nodeId , final byte [ ] key ) { } }
// this is all the partitions the key replicates to . List < Integer > partitionIds = getReplicatingPartitionList ( key ) ; for ( Integer partitionId : partitionIds ) { // check which of the replicating partitions belongs to the node in // question if ( getNodeIdForPartitionId ( partitionId ) == nodeId ) { return parti...
public class KunderaQueryUtils { /** * Gets the order by items . * @ param jpqlExpression * the jpql expression * @ return the order by items */ public static List < OrderByItem > getOrderByItems ( JPQLExpression jpqlExpression ) { } }
List < OrderByItem > orderList = new LinkedList < > ( ) ; if ( hasOrderBy ( jpqlExpression ) ) { Expression orderByItems = getOrderByClause ( jpqlExpression ) . getOrderByItems ( ) ; if ( orderByItems instanceof CollectionExpression ) { ListIterator < Expression > iterator = orderByItems . children ( ) . iterator ( ) ;...
public class DaytimeClock { /** * / * [ deutsch ] * < p > Versucht , den Original - Server - Zeitstempel zu lesen . < / p > * @ return unparsed server reply * @ throws IOException if connection fails * @ since 2.1 */ public String getRawTimestamp ( ) throws IOException { } }
final NetTimeConfiguration config = this . getNetTimeConfiguration ( ) ; String address = config . getTimeServerAddress ( ) ; int port = config . getTimeServerPort ( ) ; int timeout = config . getConnectionTimeout ( ) ; return getDaytimeReply ( address , port , timeout ) ;
public class ProcessUtils { /** * Kills the given { @ link Process } . * @ param process { @ link Process } to kill . * @ return a boolean value indicating whether the the given { @ link Process } was successfully terminated . * @ see java . lang . Process * @ see java . lang . Process # destroy ( ) * @ see j...
boolean alive = isAlive ( process ) ; if ( alive ) { process . destroy ( ) ; try { alive = ! process . waitFor ( KILL_WAIT_TIMEOUT , KILL_WAIT_TIME_UNIT ) ; } catch ( InterruptedException ignore ) { Thread . currentThread ( ) . interrupt ( ) ; } finally { if ( alive ) { process . destroyForcibly ( ) ; try { alive = ! p...
public class ClsCommand { /** * { @ inheritDoc } * @ see jp . co . future . uroborosql . client . command . ReplCommand # execute ( org . jline . reader . LineReader , java . lang . String [ ] , jp . co . future . uroborosql . config . SqlConfig , java . util . Properties ) */ @ Override public boolean execute ( fina...
reader . getTerminal ( ) . puts ( Capability . clear_screen ) ; reader . getTerminal ( ) . flush ( ) ; return true ;
public class SchemaBuilder { /** * Shortcut for { @ link # dropMaterializedView ( CqlIdentifier ) * dropMaterializedView ( CqlIdentifier . fromCql ( viewName ) } . */ @ NonNull public static Drop dropMaterializedView ( @ NonNull String viewName ) { } }
return dropMaterializedView ( CqlIdentifier . fromCql ( viewName ) ) ;
public class MetricsContainer { /** * Add a MetricsProvider to this container . * @ param name the name of the MetricsProvider . * @ param provider the MetricsProvider instance . */ public void addProvider ( String name , MetricsProvider provider ) { } }
if ( log . isInfoEnabled ( ) ) { log . info ( "Adding Provider: " + provider . getClass ( ) . getName ( ) + "=" + name ) ; } container . put ( name , provider ) ;
public class DataSourceTask { /** * Utility function that composes a string for logging purposes . The string includes the given message and * the index of the task in its task group together with the number of tasks in the task group . * @ param message The main message for the log . * @ param taskName The name ...
return BatchTask . constructLogString ( message , taskName , this ) ;
public class DE9IMRelation { /** * Get the DE - 9IM relation ( s ) existing between two { @ link GeometricShapeVariable } s . * @ param gv1 The first { @ link GeometricShapeVariable } ( the source of the directed edge ) . * @ param gv2 The second { @ link GeometricShapeVariable } ( the destination of the directed e...
return getRelations ( gv1 , gv2 , false ) ;
public class ZonedDateTime { /** * Returns a copy of this date - time with the specified amount added . * This returns a { @ code ZonedDateTime } , based on this one , with the specified amount added . * The amount is typically { @ link Period } or { @ link Duration } but may be * any other type implementing the ...
if ( amountToAdd instanceof Period ) { Period periodToAdd = ( Period ) amountToAdd ; return resolveLocal ( dateTime . plus ( periodToAdd ) ) ; } Objects . requireNonNull ( amountToAdd , "amountToAdd" ) ; return ( ZonedDateTime ) amountToAdd . addTo ( this ) ;
public class Latch { /** * Waits for N threads to enter the { @ link # synchronize ( ) } method , then * returns . * @ return * returns normally if N threads successfully synchronized . * @ throws InterruptedException * if any of the threads that were synchronizing get interrupted , * or if the { @ link # a...
check ( n ) ; try { onCriteriaMet ( ) ; } catch ( Error | RuntimeException e ) { abort ( e ) ; throw e ; } check ( n * 2 ) ;
public class Configuration { /** * Returns the value associated with the given config option as a { @ code double } . * @ param configOption The configuration option * @ return the ( default ) value associated with the given config option */ @ PublicEvolving public double getDouble ( ConfigOption < Double > configO...
Object o = getValueOrDefaultFromOption ( configOption ) ; return convertToDouble ( o , configOption . defaultValue ( ) ) ;
public class AlluxioFuseFileSystem { /** * Reads the contents of a directory . * @ param path The FS path of the directory * @ param buff The FUSE buffer to fill * @ param filter FUSE filter * @ param offset Ignored in alluxio - fuse * @ param fi FileInfo data structure kept by FUSE * @ return 0 on success ...
final AlluxioURI turi = mPathResolverCache . getUnchecked ( path ) ; LOG . trace ( "readdir({}) [Alluxio: {}]" , path , turi ) ; try { final List < URIStatus > ls = mFileSystem . listStatus ( turi ) ; // standard . and . . entries filter . apply ( buff , "." , null , 0 ) ; filter . apply ( buff , ".." , null , 0 ) ; fo...
public class CmsObject { /** * Creates a new project . < p > * @ param name the name of the project to create * @ param description the description for the new project * @ param groupname the name of the project user group * @ param managergroupname the name of the project manager group * @ return the created...
return m_securityManager . createProject ( m_context , name , description , groupname , managergroupname , CmsProject . PROJECT_TYPE_NORMAL ) ;
public class IpSet { /** * The array of IP addresses in the IP address set . An IP address set can have a maximum of two IP addresses . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setIpAddresses ( java . util . Collection ) } or { @ link # withIpAddresses...
if ( this . ipAddresses == null ) { setIpAddresses ( new java . util . ArrayList < String > ( ipAddresses . length ) ) ; } for ( String ele : ipAddresses ) { this . ipAddresses . add ( ele ) ; } return this ;
public class FileHelper { /** * Performs a chmod ( which assumes this system is Linux / UNIX / Solaris / etc ) , replacing the permissions using octal * @ param f * @ param permissions * < strong > REMEMBER TO SPECIFY THIS VALUE IN OCTAL ( ie . with a leading zero ) < / strong > * @ return * @ throws IOExcept...
if ( ! f . exists ( ) ) { log . error ( "[FileHelper] {chmod} Non-existant file: " + f . getPath ( ) ) ; return false ; } try { Execed call = Exec . utilityAs ( as , "chmod" , Integer . toOctalString ( permissions ) , f . getPath ( ) ) ; int returnCode = call . waitForExit ( ) ; return returnCode == 0 ; } catch ( Excep...
public class CryptoUtil { /** * Encrypts the given input bytes using a symmetric key ( AES ) . * The AES key is stored protected by an asymmetric key pair ( RSA ) . * @ param decryptedInput the input bytes to encrypt . There ' s no limit in size . * @ return the encrypted output bytes * @ throws CryptoException...
try { SecretKey key = new SecretKeySpec ( getAESKey ( ) , ALGORITHM_AES ) ; Cipher cipher = Cipher . getInstance ( AES_TRANSFORMATION ) ; cipher . init ( Cipher . ENCRYPT_MODE , key ) ; byte [ ] encrypted = cipher . doFinal ( decryptedInput ) ; byte [ ] encodedIV = Base64 . encode ( cipher . getIV ( ) , Base64 . DEFAUL...
public class MethodUtils { /** * < p > Invoke a named method whose parameter type matches the object type . < / p > * < p > The behaviour of this method is less deterministic * than { @ link # invokeExactMethod ( Object object , String methodName , Object [ ] args ) } . * It loops through all methods with names t...
if ( args == null ) { args = EMPTY_OBJECT_ARRAY ; } int arguments = args . length ; Class < ? > [ ] parameterTypes = new Class [ arguments ] ; for ( int i = 0 ; i < arguments ; i ++ ) { parameterTypes [ i ] = args [ i ] . getClass ( ) ; } return invokeMethod ( object , methodName , args , parameterTypes ) ;
public class AttributePropertiesManager { /** * Get an attribute ' s properties from tango db * @ param attributeName * @ return The properties * @ throws DevFailed */ private Map < String , String > getAttributePropertiesFromDBSingle ( final String attributeName ) throws DevFailed { } }
xlogger . entry ( attributeName ) ; final Map < String , String > result = new CaseInsensitiveMap < String > ( ) ; final Map < String , String [ ] > prop = DatabaseFactory . getDatabase ( ) . getAttributeProperties ( deviceName , attributeName ) ; for ( final Entry < String , String [ ] > entry : prop . entrySet ( ) ) ...
public class JobDriver { /** * Build a new Task configuration for a given task ID . * @ param taskId Unique string ID of the task * @ return Immutable task configuration object , ready to be submitted to REEF . * @ throws RuntimeException that wraps BindException if unable to build the configuration . */ private ...
try { return TaskConfiguration . CONF . set ( TaskConfiguration . IDENTIFIER , taskId ) . set ( TaskConfiguration . TASK , SleepTask . class ) . build ( ) ; } catch ( final BindException ex ) { LOG . log ( Level . SEVERE , "Failed to create Task Configuration: " + taskId , ex ) ; throw new RuntimeException ( ex ) ; }
public class GetPendingJobExecutionsResult { /** * A list of JobExecutionSummary objects with status QUEUED . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setQueuedJobs ( java . util . Collection ) } or { @ link # withQueuedJobs ( java . util . Collection ...
if ( this . queuedJobs == null ) { setQueuedJobs ( new java . util . ArrayList < JobExecutionSummary > ( queuedJobs . length ) ) ; } for ( JobExecutionSummary ele : queuedJobs ) { this . queuedJobs . add ( ele ) ; } return this ;
public class Neo4JClientFactory { /** * Create Neo4J Embedded Graph DB instance , that acts as a Neo4J connection * repository for Neo4J If a Neo4j specfic client properties file is * specified in persistence . xml , it initializes DB instance with those * properties . Other DB instance is initialized with defaul...
if ( log . isInfoEnabled ( ) ) log . info ( "Initializing Neo4J database connection..." ) ; PersistenceUnitMetadata puMetadata = kunderaMetadata . getApplicationMetadata ( ) . getPersistenceUnitMetadata ( getPersistenceUnit ( ) ) ; Properties props = puMetadata . getProperties ( ) ; String datastoreFilePath = null ; if...
public class AmazonRoute53Client { /** * Creates a configuration for DNS query logging . After you create a query logging configuration , Amazon Route 53 * begins to publish log data to an Amazon CloudWatch Logs log group . * DNS query logs contain information about the queries that Route 53 receives for a specifie...
request = beforeClientExecution ( request ) ; return executeCreateQueryLoggingConfig ( request ) ;
public class TcpPacketReceiver { /** * / * ( non - Javadoc ) * @ see java . lang . Thread # run ( ) */ @ Override public void run ( ) { } }
try { if ( pingInterval > 0 ) ActivityWatchdog . getInstance ( ) . register ( this ) ; while ( ! stopRequired ) { int actualMaxPacketSize = Integer . MAX_VALUE ; if ( maxPacketSize != - 1 ) actualMaxPacketSize = trustedConnection ? maxPacketSize : 1024 ; AbstractPacket packet = receive ( actualMaxPacketSize ) ; if ( pa...
public class Maps { /** * Removes entries from the specified { @ code map } by the the specified { @ code filter } . * @ param map * @ param filter * @ return { @ code true } if there are one or more than one entries removed from the specified map . * @ throws E */ public static < K , V , E extends Exception > ...
List < K > keysToRemove = null ; for ( Map . Entry < K , V > entry : map . entrySet ( ) ) { if ( filter . test ( entry ) ) { if ( keysToRemove == null ) { keysToRemove = new ArrayList < > ( 7 ) ; } keysToRemove . add ( entry . getKey ( ) ) ; } } if ( N . notNullOrEmpty ( keysToRemove ) ) { for ( K key : keysToRemove ) ...
public class JsonRpcRestClient { /** * { @ inheritDoc } */ @ Override public Object invoke ( String methodName , Object argument , Type returnType , Map < String , String > extraHeaders ) throws Throwable { } }
final ObjectNode request = super . createRequest ( methodName , argument ) ; final MultiValueMap < String , String > httpHeaders = new LinkedMultiValueMap < > ( ) ; for ( Map . Entry < String , String > entry : this . headers . entrySet ( ) ) { httpHeaders . add ( entry . getKey ( ) , entry . getValue ( ) ) ; } if ( ex...
public class AddJsonPropertyToObject { /** * Inserts a new name / value property into a JSON object , where the value is a valid JSON string . * If the < b > newPropertyValue < / b > input is not a valid string representation of a JSON object , the operation fails . * This operation can be used to add a property wi...
@ Output ( OutputNames . RETURN_RESULT ) , @ Output ( OutputNames . RETURN_CODE ) , @ Output ( OutputNames . EXCEPTION ) } , responses = { @ Response ( text = ResponseNames . SUCCESS , field = OutputNames . RETURN_CODE , value = ReturnCodes . SUCCESS , matchType = MatchType . COMPARE_EQUAL , responseType = ResponseType...
public class RedisStorage { /** * Inform the < code > JobStore < / code > that the scheduler has completed the * firing of the given < code > Trigger < / code > ( and the execution of its * associated < code > Job < / code > completed , threw an exception , or was vetoed ) , * and that the < code > { @ link org ....
final String jobHashKey = redisSchema . jobHashKey ( jobDetail . getKey ( ) ) ; final String jobDataMapHashKey = redisSchema . jobDataMapHashKey ( jobDetail . getKey ( ) ) ; final String triggerHashKey = redisSchema . triggerHashKey ( trigger . getKey ( ) ) ; logger . debug ( String . format ( "Job %s completed." , job...
public class Context { /** * Set the value for the key in this context . */ public < T > void put ( Key < T > key , T data ) { } }
if ( data instanceof Factory < ? > ) throw new AssertionError ( "T extends Context.Factory" ) ; checkState ( ht ) ; Object old = ht . put ( key , data ) ; if ( old != null && ! ( old instanceof Factory < ? > ) && old != data && data != null ) throw new AssertionError ( "duplicate context value" ) ;
public class ThriftEnvelopeEvent { /** * Given an InputStream , extract the eventDateTime , granularity and thriftEnvelope to build * the ThriftEnvelopeEvent . * This method expects the stream to be open and won ' t close it for you . * @ param in InputStream to read * @ throws IOException generic I / O Excepti...
final byte [ ] dateTimeBytes = new byte [ 8 ] ; in . read ( dateTimeBytes , 0 , 8 ) ; eventDateTime = new DateTime ( ByteBuffer . wrap ( dateTimeBytes ) . getLong ( 0 ) ) ; final byte [ ] sizeGranularityInBytes = new byte [ 4 ] ; in . read ( sizeGranularityInBytes , 0 , 4 ) ; final byte [ ] granularityBytes = new byte ...
public class WindowsInstallerLink { /** * Performs installation . */ @ RequirePOST public void doDoInstall ( StaplerRequest req , StaplerResponse rsp , @ QueryParameter ( "dir" ) String _dir ) throws IOException , ServletException { } }
Jenkins . getInstance ( ) . checkPermission ( Jenkins . ADMINISTER ) ; if ( installationDir != null ) { // installation already complete sendError ( "Installation is already complete" , req , rsp ) ; return ; } if ( ! DotNet . isInstalled ( 2 , 0 ) ) { sendError ( ".NET Framework 2.0 or later is required for this featu...
public class ServletContextUtils { /** * Returns the context path associated to the servlet context * @ param servletContext * the servlet context * @ return the context path associated to the servlet context */ public static String getContextPath ( ServletContext servletContext ) { } }
String contextPath = DEFAULT_CONTEXT_PATH ; // Get the context path if ( servletContext != null ) { contextPath = servletContext . getContextPath ( ) ; if ( StringUtils . isEmpty ( contextPath ) ) { contextPath = DEFAULT_CONTEXT_PATH ; } } return contextPath ;
public class EJSContainer { /** * F86406 */ public void introspect ( IntrospectionWriter writer , boolean fullBMD ) { } }
// Indicate the start of the dump , and include the toString ( ) // of EJSContainer , so this can easily be matched to a trace . writer . begin ( "EJSContainer Dump ---> " + this ) ; writer . println ( "ivName = " + ivName ) ; writer . println ( "ivEJBRuntime = " + ivEJBRuntime ) ; writer . prin...
public class Feature { /** * Set attribute value of given type . * @ param name attribute name * @ param value attribute value */ public void setCurrencyAttribute ( String name , String value ) { } }
Attribute attribute = getAttributes ( ) . get ( name ) ; if ( ! ( attribute instanceof CurrencyAttribute ) ) { throw new IllegalStateException ( "Cannot set currency value on attribute with different type, " + attribute . getClass ( ) . getName ( ) + " setting value " + value ) ; } ( ( CurrencyAttribute ) attribute ) ....
public class MonotonicTimestampGenerator { /** * Compute the next timestamp , given the current clock tick and the last timestamp returned . * < p > If timestamps have to drift ahead of the current clock tick to guarantee monotonicity , a * warning will be logged according to the rules defined in the configuration ...
long currentTick = clock . currentTimeMicros ( ) ; if ( last >= currentTick ) { maybeLog ( currentTick , last ) ; return last + 1 ; } return currentTick ;
public class Filter { /** * Returns a combined filter instance that accepts records which are * accepted either by this filter or the one given . * @ param expression query filter expression to parse * @ return canonical Filter instance * @ throws IllegalArgumentException if filter is null */ public final Filte...
return or ( new FilterParser < S > ( mType , expression ) . parseRoot ( ) ) ;
public class RadialMenu { /** * Activates the radial menu , rendering a menu around the prescribed bounds . It is expected * that the host component will subsequently call { @ link # render } if the menu invalidates the * region of the component occupied by the menu and requests it to repaint . * @ param host the...
setActivationArgument ( argument ) ; activate ( host , bounds ) ;
public class ConfigOptionParser { /** * Prints a suggestion to stderr for the argument based on the levenshtein distance metric * @ param arg the argument which could not be assigned to a flag * @ param co the { @ link ConfigOption } List where every flag is stored */ private void printSuggestion ( String arg , Lis...
List < ConfigOption > sortedList = new ArrayList < ConfigOption > ( co ) ; Collections . sort ( sortedList , new ConfigOptionLevenshteinDistance ( arg ) ) ; System . err . println ( "Parse error for argument \"" + arg + "\", did you mean " + sortedList . get ( 0 ) . getCommandLineOption ( ) . showFlagInfo ( ) + "? Igno...
public class AbstractConfigFile { /** * Stores xml - content to file . This doesn ' t change stored url / file . * @ param file * @ throws IOException */ public void storeAs ( File file ) throws IOException { } }
try ( FileOutputStream fos = new FileOutputStream ( file ) ; OutputStreamWriter osw = new OutputStreamWriter ( fos , UTF_8 ) ; BufferedWriter bw = new BufferedWriter ( osw ) ) { store ( bw ) ; }
public class UnicodeSet { /** * Retain the specified string in this set if it is present . * Upon return this set will be empty if it did not contain s , or * will only contain s if it did contain s . * @ param cs the string to be retained * @ return this object , for chaining */ public final UnicodeSet retain ...
int cp = getSingleCP ( cs ) ; if ( cp < 0 ) { String s = cs . toString ( ) ; boolean isIn = strings . contains ( s ) ; if ( isIn && size ( ) == 1 ) { return this ; } clear ( ) ; strings . add ( s ) ; pat = null ; } else { retain ( cp , cp ) ; } return this ;
public class TimeUnit { /** * 特殊形式的规范化方法 * 该方法识别特殊形式的时间表达式单元的各个字段 */ public void norm_setTotal ( ) { } }
String rule ; Pattern pattern ; Matcher match ; String [ ] tmp_parser ; String tmp_target ; /* * 修改了函数中所有的匹配规则使之更为严格 * modified by 曹零 */ rule = "(?<!(周|星期))([0-2]?[0-9]):[0-5]?[0-9]:[0-5]?[0-9]" ; pattern = Pattern . compile ( rule ) ; match = pattern . matcher ( Time_Expression ) ; if ( match . find ( ) ) { tmp_pars...
public class ServerBuilder { /** * Binds the specified { @ link Service } at the specified path pattern of the default { @ link VirtualHost } . * e . g . * < ul > * < li > { @ code / login } ( no path parameters ) < / li > * < li > { @ code / users / { userId } } ( curly - brace style ) < / li > * < li > { @ ...
defaultVirtualHostBuilderUpdated ( ) ; defaultVirtualHostBuilder . service ( pathPattern , service ) ; return this ;
public class NamedPattern { /** * Matches a string against this named pattern . * @ param string * the string to match * @ return a match object , or null if there was no match */ public NamedPatternMatch < E > match ( final String string ) { } }
final Matcher matcher = pattern . matcher ( string ) ; while ( matcher . find ( ) ) { final int start = matcher . start ( ) ; final int end = matcher . end ( ) ; if ( start == 0 && end == string . length ( ) ) { final Map < E , String > resultMap = new EnumMap < > ( groupEnum ) ; final Set < Entry < E , Integer > > ent...
public class Computer { /** * Calling path , * means protected by Queue . withLock * Computer . doConfigSubmit - > Computer . replaceBy - > Jenkins . setNodes * - > Computer . setNode * AbstractCIBase . updateComputerList - > Computer . inflictMortalWound * * AbstractCIBase . updateComputerList - > AbstractCIBase...
this . numExecutors = n ; final int diff = executors . size ( ) - n ; if ( diff > 0 ) { // we have too many executors // send signal to all idle executors to potentially kill them off // need the Queue maintenance lock held to prevent concurrent job assignment on the idle executors Queue . withLock ( new Runnable ( ) {...
public class JsonRpcResponse { /** * Generates the JSON representation of this response . */ public JsonObject toJson ( ) { } }
JsonObject body = new JsonObject ( ) ; body . add ( JsonRpcProtocol . ID , id ( ) ) ; if ( isError ( ) ) { body . add ( JsonRpcProtocol . ERROR , error ( ) . toJson ( ) ) ; } else { body . add ( JsonRpcProtocol . RESULT , result ( ) ) ; } return body ;
public class CoronaJobTracker { /** * Some perparation job needed by remote job tracker for * failover */ public void prepareFailover ( ) { } }
if ( ! RemoteJTProxy . isJTRestartingEnabled ( conf ) ) { return ; } LOG . info ( "prepareFailover done" ) ; this . isPurgingJob = false ; if ( this . parentHeartbeat != null ) { // Because our failover mechanism based on remotJTProxy can ' t // reach remote job tracker , we stop the interTrackerServer to // trigger th...
public class SRTUpgradeOutputStream31 { /** * @ see javax . servlet . ServletOutputStream # println ( ) */ public void println ( ) throws IOException { } }
if ( this . _listener != null && ! checkIfCalledFromWLonError ( ) ) { _outHelper . write_NonBlocking ( CRLF , 0 , 2 ) ; } else { this . write ( CRLF , 0 , 2 ) ; }