signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class ClassReader { /** * Find type variable with given name in ` typevars ' scope . */ Type findTypeVar ( Name name ) { } }
Symbol s = typevars . findFirst ( name ) ; if ( s != null ) { return s . type ; } else { if ( readingClassAttr ) { // While reading the class attribute , the supertypes // might refer to a type variable from an enclosing element // ( method or class ) . // If the type variable is defined in the enclosing class , // we ...
public class ImageGalleryActivity { /** * region Helper Methods */ private void bindViews ( ) { } }
recyclerView = ( RecyclerView ) findViewById ( R . id . rv ) ; toolbar = ( Toolbar ) findViewById ( R . id . toolbar ) ;
public class CommandLine { /** * Return the < code > Object < / code > type of this < code > Option < / code > . * @ param opt the name of the option * @ return the type of this < code > Option < / code > * @ deprecated due to System . err message . Instead use getParsedOptionValue ( String ) */ @ Deprecated publ...
try { return getParsedOptionValue ( opt ) ; } catch ( ParseException pe ) { System . err . println ( "Exception found converting " + opt + " to desired type: " + pe . getMessage ( ) ) ; return null ; }
public class UnLockCommand { /** * Webdav Unlock method implementation . * @ param session current seesion * @ param path resource path * @ param tokens tokens * @ return the instance of javax . ws . rs . core . Response */ public Response unLock ( Session session , String path , List < String > tokens ) { } }
try { try { Node node = ( Node ) session . getItem ( path ) ; if ( node . isLocked ( ) ) { node . unlock ( ) ; session . save ( ) ; } return Response . status ( HTTPStatus . NO_CONTENT ) . build ( ) ; } catch ( PathNotFoundException exc ) { if ( nullResourceLocks . isLocked ( session , path ) ) { nullResourceLocks . ch...
public class JPAGenericDAORulesBasedImpl { /** * ( non - Javadoc ) * @ see net . leadware . persistence . tools . core . dao . JPAGenericDAO # delete ( java . lang . Class , java . lang . Object , boolean , boolean ) */ @ Override public void delete ( Object entityID , boolean preValidateReferentialConstraint , boole...
// Si l ' ID de l ' Objet est null if ( entityID == null ) { // On leve une exception throw new JPersistenceToolsException ( "jpagenericdaorulesbased.delete.id.null" ) ; } // Entité à supprimer T entity = null ; try { // On reattache entity = getEntityManager ( ) . find ( entityClass , entityID ) ; } catch ( EntityNo...
public class MethodInfo { /** * TODO : Eventually remove this method */ public SignatureAttr getSignatureAttr ( ) { } }
for ( int i = mAttributes . size ( ) ; -- i >= 0 ; ) { Attribute attr = mAttributes . get ( i ) ; if ( attr instanceof SignatureAttr ) { return ( SignatureAttr ) attr ; } } return null ;
public class EnumListBox { /** * Returns the currently selected value , or null if no value is selected . */ public E getSelectedEnum ( ) { } }
int selidx = getSelectedIndex ( ) ; return ( selidx < 0 ) ? null : Enum . valueOf ( _eclass , getValue ( selidx ) ) ;
public class ExtractBlast { /** * Extract consensus sequences from a file in HML format . * @ param inputHmlFile input HML file , if any */ static Map < String , String > readFasta ( final File inputFastqFile ) throws IOException , NoSuchElementException , BioException { } }
BufferedReader reader = null ; HashMap < String , String > fasta = new HashMap < String , String > ( ) ; try { reader = reader ( inputFastqFile ) ; for ( SequenceIterator sequences = SeqIOTools . readFastaDNA ( reader ) ; sequences . hasNext ( ) ; ) { Sequence sequence = sequences . nextSequence ( ) ; String sequenceId...
public class ImagePolylineAnnotation { /** * < code > . google . cloud . datalabeling . v1beta1 . NormalizedPolyline normalized _ polyline = 3 ; < / code > */ public com . google . cloud . datalabeling . v1beta1 . NormalizedPolylineOrBuilder getNormalizedPolylineOrBuilder ( ) { } }
if ( polyCase_ == 3 ) { return ( com . google . cloud . datalabeling . v1beta1 . NormalizedPolyline ) poly_ ; } return com . google . cloud . datalabeling . v1beta1 . NormalizedPolyline . getDefaultInstance ( ) ;
public class FastMath { /** * Computes log < sub > 2 < / sub > ( x ) using a cache of 2 < sup > 11 < / sup > values , * consuming approximately 17 kilobytes of memory . < br > * The results are generally accurate to an absolute and relative error of * 10 < sup > - 4 < / sup > * @ param x the input * @ return ...
if ( x < 0 ) return Double . NaN ; long rawBits = doubleToLongBits ( x ) ; long mantissa = getMantissa ( rawBits ) ; int e = Math . getExponent ( x ) ; return log2Cache11 [ ( int ) ( mantissa >>> ( 52 - 11 ) ) ] + e ;
public class NewRepair { /** * Parses the input string into a grammar . * @ param inputStr the string to parse . * @ return the grammar . */ public static RePairGrammar parse ( String inputStr ) { } }
Date start0 = new Date ( ) ; LOGGER . debug ( "input string (" + String . valueOf ( countSpaces ( inputStr ) + 1 ) + " tokens) " ) ; RePairGrammar grammar = new RePairGrammar ( ) ; // two data structures // 1.0 . - the string ArrayList < RePairSymbolRecord > symbolizedString = new ArrayList < RePairSymbolRecord > ( cou...
public class Caster { /** * cast a Object to a char value ( primitive value type ) * @ param o Object to cast * @ return casted char value * @ throws PageException */ public static char toCharValue ( Object o ) throws PageException { } }
if ( o instanceof Character ) return ( ( Character ) o ) . charValue ( ) ; else if ( o instanceof Boolean ) return ( char ) ( ( ( ( Boolean ) o ) . booleanValue ( ) ) ? 1 : 0 ) ; else if ( o instanceof Double ) return ( char ) ( ( ( Double ) o ) . doubleValue ( ) ) ; else if ( o instanceof Number ) return ( char ) ( ( ...
public class DoubleArrayTrie { /** * 唯一的构建方法 * @ param _ key 值set , 必须字典序 * @ param _ length 对应每个key的长度 , 留空动态获取 * @ param _ value 每个key对应的值 , 留空使用key的下标作为值 * @ param _ keySize key的长度 , 应该设为 _ key . size * @ return 是否出错 */ public int build ( List < String > _key , int _length [ ] , int _value [ ] , int _keySi...
if ( _key == null || _keySize > _key . size ( ) ) return 0 ; // progress _ func _ = progress _ func ; key = _key ; length = _length ; keySize = _keySize ; value = _value ; progress = 0 ; allocSize = 0 ; resize ( 65536 * 32 ) ; // 32个双字节 base [ 0 ] = 1 ; nextCheckPos = 0 ; Node root_node = new Node ( ) ; root_node . lef...
public class CmsResourceTreeTable { /** * Shows the sitemap view . < p > * @ param showSitemap < code > true < / code > to show the sitemap view */ public void showSitemapView ( boolean showSitemap ) { } }
if ( showSitemap ) { setSortContainerPropertyId ( CmsResourceTableProperty . PROPERTY_NAVIGATION_TEXT ) ; setSortAscending ( true ) ; } else { setSortContainerPropertyId ( CAPTION_FOLDERS ) ; setSortAscending ( true ) ; }
public class ApiOvhXdsl { /** * Reset the modem to its default configuration * REST : POST / xdsl / { serviceName } / modem / reset * @ param resetOvhConfig [ required ] Reset configuration stored in OVH databases * @ param serviceName [ required ] The internal name of your XDSL offer */ public OvhTask serviceNam...
String qPath = "/xdsl/{serviceName}/modem/reset" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "resetOvhConfig" , resetOvhConfig ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask...
public class Strings { /** * Creates a string by interposing stringified values from the source iterable with values from the separators . E . g : * < code > interpose ( [ 1,2,3,4,5 ] , [ " - " , " , " ] ) - > " 1-2,3-4,5 " < / code > * @ param < T > the iterable element type * @ param < V > the separator type ...
dbc . precondition ( values != null , "calling interpose with a null iterable" ) ; return new InterposeStrings < T , V > ( ) . apply ( values . iterator ( ) , separators ) ;
public class Authorizations { /** * Adds ( assigns ) multiple roles to those associated with the Account . * @ param roles the roles to add to those associated with the Account . */ public Authorizations addRoles ( Collection < Role > roles ) { } }
this . roles . addAll ( roles ) ; this . aggregatePermissions = null ; return this ;
public class RejectQualificationRequestRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( RejectQualificationRequestRequest rejectQualificationRequestRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( rejectQualificationRequestRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( rejectQualificationRequestRequest . getQualificationRequestId ( ) , QUALIFICATIONREQUESTID_BINDING ) ; protocolMarshaller . marshall ( rejectQualificat...
public class GridScreen { /** * Add the navigation button ( s ) to the left of the grid row . */ public void addNavButtons ( ) { } }
SCannedBox box = new SCannedBox ( this . getNextLocation ( ScreenConstants . FIRST_SCREEN_LOCATION , ScreenConstants . SET_ANCHOR ) , this , null , ScreenConstants . DEFAULT_DISPLAY , null , null , MenuConstants . FORM , MenuConstants . FORMLINK , null ) ; box . setRequestFocusEnabled ( false ) ; if ( ( m_iDisplayField...
public class FilterFileSystem { /** * { @ inheritDoc } */ @ Override public boolean mkdirs ( Path f , FsPermission permission ) throws IOException { } }
return fs . mkdirs ( f , permission ) ;
public class DefaultLinkCheckerThread { /** * Send an { @ link InvalidURLEvent } event . * @ param url the failing URL * @ param data the Map containing data ( link url , link source reference , state object ) */ private void sendEvent ( String url , Map < String , Object > data ) { } }
// Dynamically look for an Observation Manager and only send the event if one can be found . try { ObservationManager observationManager = this . observationManagerProvider . get ( ) ; observationManager . notify ( new InvalidURLEvent ( url ) , data ) ; } catch ( Exception e ) { // Failed to find an Observation Manager...
public class MailReporter { /** * Configures the Mail Reporter . The given configuration < b > must < / b > contain * the { @ link MailReporter # ANDROLOG _ REPORTER _ MAIL _ ADDRESS } property and it * must be a valid email address . * @ see de . akquinet . android . androlog . reporter . Reporter # configure ( ...
String u = configuration . getProperty ( ANDROLOG_REPORTER_MAIL_ADDRESS ) ; if ( u == null ) { Log . e ( this , "The Property " + ANDROLOG_REPORTER_MAIL_ADDRESS + " is mandatory" ) ; return ; } to = u ;
public class RequestBuilder { /** * The { @ link Request . TRANSPORT } to use . This method can be invoked several time and the library will loop over the list * until one { @ link Request . TRANSPORT } succeed . The first added is always the first used . * @ param t * @ return this */ public T transport ( Reques...
transports . add ( t ) ; return derived . cast ( this ) ;
public class StorageConnectorMarshaller { /** * Marshall the given parameter object . */ public void marshall ( StorageConnector storageConnector , ProtocolMarshaller protocolMarshaller ) { } }
if ( storageConnector == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( storageConnector . getConnectorType ( ) , CONNECTORTYPE_BINDING ) ; protocolMarshaller . marshall ( storageConnector . getResourceIdentifier ( ) , RESOURCEIDENTIFIER_BI...
public class SanitizedContent { /** * Converts a Soy { @ link SanitizedContent } of kind JS into a { @ link SafeScript } . * @ throws IllegalStateException if this SanitizedContent ' s content kind is not { @ link * ContentKind # JS } . */ public SafeScript toSafeScript ( ) { } }
Preconditions . checkState ( getContentKind ( ) == ContentKind . JS , "toSafeScript() only valid for SanitizedContent of kind JS, is: %s" , getContentKind ( ) ) ; return UncheckedConversions . safeScriptFromStringKnownToSatisfyTypeContract ( getContent ( ) ) ;
public class Provisioner { /** * Gets the region name according to the product name . * @ param productName the product name . Empty string or < code > null < / code > indicates * the liberty profile itself . * @ return the region name */ private String getRegionName ( String productName ) { } }
if ( productName == null || productName . isEmpty ( ) ) { return kernelRegion . getName ( ) ; } return REGION_EXTENSION_PREFIX + INVALID_REGION_CHARS . matcher ( productName ) . replaceAll ( "-" ) ;
public class TrajectoryEnvelope { /** * Returns a { @ link Geometry } representing the inner footprint of the robot in a given pose . * @ param x The x coordinate of the pose used to create the inner footprint . * @ param y The y coordinate of the pose used to create the inner footprint . * @ param theta The orie...
AffineTransformation at = new AffineTransformation ( ) ; at . rotate ( theta ) ; at . translate ( x , y ) ; Geometry rect = at . transform ( innerFootprint ) ; return rect ;
public class ServerSICoreConnectionListener { /** * This method is called when the ME terminates . * @ param conn */ @ Override public void meTerminated ( SICoreConnection conn ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "meTerminated" ) ; // Remember the fact that the ME has terminated so we don ' t issue spurious FFDCs final Conversation conversation = conversationTable . get ( conn ) ; // If conversation is null we do nothing . if ( conve...
public class CrsWktExtension { /** * Create the extension column */ private void createColumn ( ) { } }
connection . addColumn ( SpatialReferenceSystem . TABLE_NAME , COLUMN_NAME , COLUMN_DEF ) ; // Update the existing known SRS values updateDefinition ( GeoPackageProperties . getIntegerProperty ( PropertyConstants . WGS_84 , PropertyConstants . SRS_ID ) , GeoPackageProperties . getProperty ( PropertyConstants . WGS_84 ,...
public class CallTreeNode { /** * Returns the part of time spent in this node compared to parent . * @ return Percent time */ public Integer getPercent ( ) { } }
Integer percent ; if ( parent == null ) { percent = null ; } else { percent = ( int ) ( getTotal ( ) * 100L / getParent ( ) . getTotal ( ) ) ; } return percent ;
public class KeyRange { /** * Create a { @ link KeyRangeType # FORWARD _ CLOSED _ OPEN } range . * @ param < T > buffer type * @ param start start key ( required ) * @ param stop stop key ( required ) * @ return a key range ( never null ) */ public static < T > KeyRange < T > closedOpen ( final T start , final ...
return new KeyRange < > ( KeyRangeType . FORWARD_CLOSED_OPEN , start , stop ) ;
public class Library { /** * syntactic sugar */ public LibraryValueSetComponent addValueSet ( ) { } }
LibraryValueSetComponent t = new LibraryValueSetComponent ( ) ; if ( this . valueSet == null ) this . valueSet = new ArrayList < LibraryValueSetComponent > ( ) ; this . valueSet . add ( t ) ; return t ;
public class CommonOps_DDF4 { /** * < p > Performs the following operation : < br > * < br > * c = a - b < br > * c < sub > i < / sub > = a < sub > i < / sub > - b < sub > i < / sub > < br > * Vector C can be the same instance as Vector A and / or B . * @ param a A Vector . Not modified . * @ param b A Vect...
c . a1 = a . a1 - b . a1 ; c . a2 = a . a2 - b . a2 ; c . a3 = a . a3 - b . a3 ; c . a4 = a . a4 - b . a4 ;
public class GreenMailUtil { /** * Convenience method which creates a new { @ link MimeMessage } from an input stream . * @ return the created mime message . */ public static MimeMessage newMimeMessage ( InputStream inputStream ) { } }
try { return new MimeMessage ( Session . getDefaultInstance ( new Properties ( ) ) , inputStream ) ; } catch ( MessagingException e ) { throw new IllegalArgumentException ( "Can not generate mime message for input stream " + inputStream , e ) ; }
public class XORManager { /** * Protected method for unit test */ protected void rotate ( ) { } }
for ( RotatingMap map : spoutTasksToRotatingMap . values ( ) ) { map . rotate ( ) ; } Runnable r = new Runnable ( ) { @ Override public void run ( ) { rotate ( ) ; } } ; looper . registerTimerEvent ( rotateInterval , r ) ;
public class MediaSource { /** * Get ( optional ) crop dimensions from resource * @ param mediaRequest Media request * @ param mediaHandlerConfig Media handler config ( can be null , but should not be null ) * @ return Crop dimension or null if not set or invalid */ @ SuppressWarnings ( "null" ) protected final @...
if ( mediaRequest . getResource ( ) != null ) { String cropProperty = getMediaCropProperty ( mediaRequest , mediaHandlerConfig ) ; String cropString = mediaRequest . getResource ( ) . getValueMap ( ) . get ( cropProperty , String . class ) ; if ( StringUtils . isNotEmpty ( cropString ) ) { try { return CropDimension . ...
public class GZIPSeriesMember { /** * ALL InputStream overrides below here : */ @ Override public int read ( byte [ ] b , int off , int len ) throws IOException { } }
int totalRead = 0 ; if ( gotIOError ) { throw new IOException ( "Repeated read() on IOException!" ) ; } if ( gotGZError ) { throw new GZIPFormatException ( "Repeated read() on " + "GZIPFormatException" ) ; } if ( gotEOR ) { return - 1 ; } while ( ( totalRead < len ) && ! gotEOR ) { if ( inflater . needsInput ( ) ) { //...
public class LogRepositoryBrowserImpl { /** * ( non - Javadoc ) * @ see com . ibm . ws . logging . hpel . LogFileBrowser # find ( com . ibm . ws . logging . hpel . impl . RepositoryPointerImpl ) */ @ Override public File findFile ( RepositoryPointerImpl location ) { } }
// Assume that instanceIds are good and check fileId only . File result = getChild ( location . getFileId ( ) ) ; return isFile ( result ) ? result : null ;
public class ComponentDescriptorFactory { /** * Create component descriptors for the passed component implementation class and component role class . There can be * more than one descriptor if the component class has specified several hints . * @ param componentClass the component implementation class * @ param c...
List < ComponentDescriptor > descriptors = new ArrayList < ComponentDescriptor > ( ) ; // If there ' s a @ Named annotation , use it and ignore hints specified in the @ Component annotation . String [ ] hints ; Named named = componentClass . getAnnotation ( Named . class ) ; if ( named != null ) { hints = new String [ ...
public class LDAPAuthService { /** * ~ Methods * * * * * */ static boolean _isUsernameValid ( String username ) { } }
Matcher matcher = Pattern . compile ( EMAIL_REGEX ) . matcher ( username ) ; return matcher . matches ( ) ;
public class MapApi { /** * Get set of string keys by path . * @ param map subject * @ param path nodes to walk in map * @ return value */ public static Set < String > getKeysIn ( final Map map , final Object ... path ) { } }
return getMap ( map , path ) . map ( m -> m . keySet ( ) . stream ( ) . map ( Object :: toString ) . collect ( Collectors . toSet ( ) ) ) . orElse ( new HashSet < > ( ) ) ;
public class PTSaxton2006 { /** * Equation 10 for calculating SAT - 33 kPa moisture , adjusted * density , ( [ 0,100 ] % ) * @ param slsnd Sand weight percentage by layer ( [ 0,100 ] % ) * @ param slcly Clay weight percentage by layer ( [ 0,100 ] % ) * @ param omPct Organic matter weight percentage by layer ( [...
String adjSatMt = calcAdjustedSaturatedMoisture ( slsnd , slcly , omPct , df ) ; String adjMt33 = calcAdjustedMoisture33Kpa ( slsnd , slcly , omPct , df ) ; String ret = substract ( adjSatMt , adjMt33 ) ; LOG . debug ( "Calculate result for SAT-33 kPa moisture, adjusted, ([0,100]%) is {}" , ret ) ; return ret ;
public class PasswordEditText { /** * Removes all constraints , which are contained by a specific collection . * @ param constraints * A collection , which contains the constraints , which should be removed , as an instance * of the type { @ link Collection } or an empty collection , if no constraints should be ...
Condition . INSTANCE . ensureNotNull ( constraints , "The collection may not be null" ) ; for ( Constraint < CharSequence > constraint : constraints ) { removeConstraint ( constraint ) ; }
public class MatrixLogSumRescaler { /** * Gauss - Seidel scaling for a sparse matrix : * < br > AScaled = U . A . V , with A mxn matrix , U , V diagonal . * Returns the two scaling matrices * < br > U [ i , i ] = base ^ x [ i ] , i = 0 , . . . , m * < br > V [ i , i ] = base ^ y [ i ] , i = 0 , . . . , n * @ ...
int m = A . rows ( ) ; int n = A . columns ( ) ; final double log10_b = Math . log10 ( base ) ; // Setup for Gauss - Seidel Iterations final int [ ] R = new int [ m ] ; final int [ ] C = new int [ n ] ; final double [ ] t = new double [ 1 ] ; final double [ ] a = new double [ m ] ; final double [ ] b = new double [ n ]...
public class CmsXmlVfsFileValue { /** * Returns the link object represented by this XML content value . < p > * @ param cms the cms context , can be < code > null < / code > but in this case no link check is performed * @ return the link object represented by this XML content value ( will return null for an empty l...
Element linkElement = m_element . element ( CmsXmlPage . NODE_LINK ) ; if ( linkElement == null ) { String textValue = m_element . getText ( ) ; if ( CmsStringUtil . isNotEmptyOrWhitespaceOnly ( textValue ) ) { if ( CmsUUID . isValidUUID ( textValue ) ) { setIdValue ( cms , new CmsUUID ( textValue ) ) ; } else { setStr...
public class WebUtils { /** * Expose the current request URI and paths as { @ link javax . servlet . http . HttpServletRequest } * attributes under the keys defined in the Servlet 2.4 specification , * for containers that implement 2.3 or an earlier version of the Servlet API : * < code > javax . servlet . forwar...
exposeRequestAttributeIfNotPresent ( request , INCLUDE_REQUEST_URI_ATTRIBUTE , request . getRequestURI ( ) ) ; exposeRequestAttributeIfNotPresent ( request , INCLUDE_CONTEXT_PATH_ATTRIBUTE , request . getContextPath ( ) ) ; exposeRequestAttributeIfNotPresent ( request , INCLUDE_SERVLET_PATH_ATTRIBUTE , request . getSer...
public class InternalXbaseParser { /** * InternalXbase . g : 742:1 : ruleXSetLiteral : ( ( rule _ _ XSetLiteral _ _ Group _ _ 0 ) ) ; */ public final void ruleXSetLiteral ( ) throws RecognitionException { } }
int stackSize = keepStackSize ( ) ; try { // InternalXbase . g : 746:2 : ( ( ( rule _ _ XSetLiteral _ _ Group _ _ 0 ) ) ) // InternalXbase . g : 747:2 : ( ( rule _ _ XSetLiteral _ _ Group _ _ 0 ) ) { // InternalXbase . g : 747:2 : ( ( rule _ _ XSetLiteral _ _ Group _ _ 0 ) ) // InternalXbase . g : 748:3 : ( rule _ _ XS...
public class WisdomServiceVerticle { /** * Start the verticle . < p > * This is called by Vert . x when the verticle instance is deployed . Don ' t call it yourself . < p > * If your verticle does things in it ' s startup which take some time then you can override this method * and call the startFuture some time ...
CountDownLatch latch = new CountDownLatch ( servers . size ( ) ) ; final boolean [ ] inError = { false } ; for ( Server server : servers ) { server . bind ( ar -> { if ( ar . failed ( ) ) { inError [ 0 ] = true ; } latch . countDown ( ) ; } ) ; } vertx . executeBlocking ( f -> { try { latch . await ( ) ; } catch ( Inte...
public class GwtRunner { /** * Lazy initialize due to GWT . If things are exported then Object is not available when the static * initialization runs . */ private static Flags getDefaultFlags ( ) { } }
if ( defaultFlags != null ) { return defaultFlags ; } defaultFlags = new Flags ( ) ; defaultFlags . angularPass = false ; defaultFlags . applyInputSourceMaps = true ; defaultFlags . assumeFunctionWrapper = false ; defaultFlags . checksOnly = false ; defaultFlags . chunk = null ; defaultFlags . chunkWrapper = null ; def...
public class InvokerHelper { /** * Returns the method pointer for the given object name */ public static Closure getMethodPointer ( Object object , String methodName ) { } }
if ( object == null ) { throw new NullPointerException ( "Cannot access method pointer for '" + methodName + "' on null object" ) ; } return new MethodClosure ( object , methodName ) ;
public class KamStoreServiceImpl { /** * { @ inheritDoc } */ @ Override public List < Namespace > getNamespaces ( KamHandle kamHandle ) throws KamStoreServiceException { } }
List < Namespace > list = new ArrayList < Namespace > ( ) ; final String handle = kamHandle . getHandle ( ) ; try { // Get the real Kam from the KamCache org . openbel . framework . api . Kam objKam = kamCacheService . getKam ( handle ) ; if ( objKam == null ) { throw new KamStoreServiceException ( format ( KAM_REQUEST...
public class RestoreJobExecutionListener { /** * Calculates the restore expiration date based on the restoration * end date and the number of days before retirement * @ param endDate date on which the restoration completed * @ param daysToExpire number of days the restored content should stay in place * before ...
Calendar calendar = Calendar . getInstance ( ) ; calendar . setTime ( endDate ) ; calendar . add ( Calendar . DATE , daysToExpire ) ; return calendar . getTime ( ) ;
public class GeomUtil { /** * Get a line between two points in a shape * @ param shape The shape * @ param s The index of the start point * @ param e The index of the end point * @ return The line between the two points */ public Line getLine ( Shape shape , int s , int e ) { } }
float [ ] start = shape . getPoint ( s ) ; float [ ] end = shape . getPoint ( e ) ; Line line = new Line ( start [ 0 ] , start [ 1 ] , end [ 0 ] , end [ 1 ] ) ; return line ;
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getIfcPropertySingleValue ( ) { } }
if ( ifcPropertySingleValueEClass == null ) { ifcPropertySingleValueEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 408 ) ; } return ifcPropertySingleValueEClass ;
public class ContentPackage { /** * Writes an binary file entry to the ZIP output stream . * @ param path Content path * @ param is Input stream with binary data * @ throws IOException I / O exception */ private void writeBinaryFile ( String path , InputStream is ) throws IOException { } }
zip . putNextEntry ( new ZipEntry ( path ) ) ; try { IOUtils . copy ( is , zip ) ; } finally { zip . closeEntry ( ) ; }
public class OptionsDoclet { /** * Entry point for the doclet . * @ param root the root document * @ return true if processing completed without an error */ public static boolean start ( RootDoc root ) { } }
List < Object > objs = new ArrayList < > ( ) ; for ( ClassDoc doc : root . specifiedClasses ( ) ) { // TODO : Class . forName ( ) expects a binary name but doc . qualifiedName ( ) // returns a fully qualified name . I do not know a good way to convert // between these two name formats . For now , we simply ignore inner...
public class SeaGlassLookAndFeel { /** * Initialize the arrow button settings . * @ param d the UI defaults map . */ private void defineArrowButtons ( UIDefaults d ) { } }
String c = PAINTER_PREFIX + "ArrowButtonPainter" ; String p = "ArrowButton" ; d . put ( p + ".States" , "Enabled,MouseOver,Disabled,Pressed" ) ; d . put ( p + "[Disabled].foreground" , new ColorUIResource ( 0x9ba8cf ) ) ; d . put ( p + "[Enabled].foreground" , new ColorUIResource ( 0x5b7ea4 ) ) ; // getDerivedColor ( "...
public class PebbleDictionary { /** * Returns the signed integer to which the specified key is mapped , or null if the key does not exist in this * dictionary . * @ param key * key whose associated value is to be returned * @ return value to which the specified key is mapped */ public Long getInteger ( int key ...
PebbleTuple tuple = getTuple ( key , PebbleTuple . TupleType . INT ) ; if ( tuple == null ) { return null ; } return ( Long ) tuple . value ;
public class JSONArray { /** * Get the int value associated with an index . * @ param index * The index must be between 0 and length ( ) - 1. * @ return The value . * @ throws JSONException * If the key is not found or if the value cannot be converted to a number . if the value cannot be converted to a number...
Object o = get ( index ) ; return o instanceof Number ? ( ( Number ) o ) . intValue ( ) : ( int ) getDouble ( index ) ;
public class CPOptionCategoryPersistenceImpl { /** * Returns the last cp option category in the ordered set where companyId = & # 63 ; . * @ param companyId the company ID * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) * @ return the last matching cp option ...
CPOptionCategory cpOptionCategory = fetchByCompanyId_Last ( companyId , orderByComparator ) ; if ( cpOptionCategory != null ) { return cpOptionCategory ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "companyId=" ) ; msg . append ( companyId ) ; msg . append ...
public class IntBuffer { /** * Writes all the remaining ints of the { @ code src } int buffer to this buffer ' s current * position , and increases both buffers ' position by the number of ints copied . * @ param src the source int buffer . * @ return this buffer . * @ exception BufferOverflowException if { @ c...
if ( src == this ) { throw new IllegalArgumentException ( ) ; } if ( src . remaining ( ) > remaining ( ) ) { throw new BufferOverflowException ( ) ; } int [ ] contents = new int [ src . remaining ( ) ] ; src . get ( contents ) ; put ( contents ) ; return this ;
public class FaultTolerantScheduler { /** * Cancels a local running task with the specified ID . * @ param taskID * @ return the task canceled */ public TimerTask cancel ( Serializable taskID ) { } }
if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Canceling task with timer id " + taskID ) ; } TimerTask task = localRunningTasks . get ( taskID ) ; if ( task != null ) { // remove task data new TimerTaskCacheData ( taskID , baseFqn , cluster ) . remove ( ) ; final SetTimerAfterTxCommitRunnable setAction = task ....
public class DroolsSentence { /** * Add a token to the content and sets char offset info * @ param token * token to be stored */ public void addContent ( DroolsToken token ) { } }
if ( startOffset == - 1 ) { startOffset = token . getStartIndex ( ) ; } endOffset = token . getStopIndex ( ) ; this . content . add ( token ) ;
public class IdcardUtil { /** * 隐藏指定位置的几个身份证号数字为 “ * ” * @ param idCard 身份证号 * @ param startInclude 开始位置 ( 包含 ) * @ param endExclude 结束位置 ( 不包含 ) * @ return 隐藏后的身份证号码 * @ since 3.2.2 * @ see StrUtil # hide ( CharSequence , int , int ) */ public static String hide ( String idCard , int startInclude , int end...
return StrUtil . hide ( idCard , startInclude , endExclude ) ;
public class AStar { /** * Run the A * algorithm and tries to find a path from * the startPoint to the endPoint . * @ param startPoint is the starting point . * @ param endPoint is the point to reach . * @ return the close list of the A * algorithm . */ @ Pure @ SuppressWarnings ( "checkstyle:nestedifdepth" ) L...
final CloseComparator < ST , PT > cComparator = new CloseComparator < > ( ) ; final OpenComparator < ST , PT > oComparatorWithoutRef = new OpenComparator < > ( ) ; final List < AStarNode < ST , PT > > openList = new ArrayList < > ( ) ; final List < AStarNode < ST , PT > > closeList = new ArrayList < > ( ) ; openList . ...
public class AbstractExecutor { /** * Start the environment specified . * @ param applicationContext the application context with the environment * @ return The environment within the context */ protected Environment startEnvironment ( ApplicationContext applicationContext ) { } }
if ( ! applicationContext . isRunning ( ) ) { if ( this instanceof PropertySource ) { applicationContext . getEnvironment ( ) . addPropertySource ( ( PropertySource ) this ) ; } return applicationContext . start ( ) . getEnvironment ( ) ; } else { return applicationContext . getEnvironment ( ) ; }
public class MMFF94AtomTypeMatcher { /** * Assign the mmff94 atom type to a given atom . * Before this method can be called the following has to be done : * atomContainer = ( AtomContainer ) atomTypeTools . assignAtomTypePropertiesToAtom ( new Molecule ( atomContainer ) ) ; * @ param atomContainer AtomContainer ...
if ( factory == null ) { try { factory = AtomTypeFactory . getInstance ( "org/openscience/cdk/config/data/mmff94_atomtypes.xml" , atomContainer . getBuilder ( ) ) ; } catch ( Exception ex1 ) { logger . error ( ex1 . getMessage ( ) ) ; logger . debug ( ex1 ) ; throw new CDKException ( "Could not instantiate the AtomType...
public class AbstractIteratingActionContainer { /** * Executes the nested test actions . * @ param context */ protected void executeActions ( TestContext context ) { } }
context . setVariable ( indexName , String . valueOf ( index ) ) ; for ( TestAction action : actions ) { setActiveAction ( action ) ; action . execute ( context ) ; }
public class AbstractQueryImpl { /** * Binds the given < code > value < / code > to the variable named * < code > varName < / code > . * @ param varName name of variable in query * @ param value value to bind * @ throws IllegalArgumentException if < code > varName < / code > is not a valid * variable in this ...
if ( ! variableNames . contains ( varName ) ) { throw new IllegalArgumentException ( "not a valid variable in this query" ) ; } else { bindValues . put ( varName , value ) ; }
public class AppsImpl { /** * Updates the application publish settings . * @ param appId The application ID . * @ param publishSettingUpdateObject An object containing the new publish application settings . * @ param serviceCallback the async ServiceCallback to handle successful and failed responses . * @ throw...
return ServiceFuture . fromResponse ( updatePublishSettingsWithServiceResponseAsync ( appId , publishSettingUpdateObject ) , serviceCallback ) ;
public class UIInput { /** * Determine whether the new value is valid , and queue a ValueChangeEvent if necessary . * The " submitted value " is converted to the necessary type ; conversion failure is reported as an error and * validation processing terminates for this component . See documentation for method getCo...
if ( context == null ) { throw new NullPointerException ( "context" ) ; } Object submittedValue = getSubmittedValue ( ) ; if ( submittedValue == null ) { return ; } // Begin new JSF 2.0 requirement ( INTERPRET _ EMPTY _ STRING _ SUBMITTED _ VALUES _ AS _ NULL ) if ( shouldInterpretEmptyStringSubmittedValuesAsNull ( con...
public class ParentsArray { /** * Gets the siblings of the specified word . * @ param parents The parents array . * @ param idx The word for which to extract siblings . * @ return The indices of the siblings . */ public static ArrayList < Integer > getSiblingsOf ( int [ ] parents , int idx ) { } }
int parent = parents [ idx ] ; ArrayList < Integer > siblings = new ArrayList < Integer > ( ) ; for ( int i = 0 ; i < parents . length ; i ++ ) { if ( parents [ i ] == parent ) { siblings . add ( i ) ; } } return siblings ;
public class SoftHashMap { /** * Returns < tt > true < / tt > if this map maps one or more keys to the * specified value . * @ param value value whose presence in this map is to be tested . * @ return < tt > true < / tt > if this map maps one or more keys to the * specified value . */ public boolean containsVal...
if ( value == null ) { value = new Null ( ) ; } Entry tab [ ] = mTable ; for ( int i = tab . length ; i -- > 0 ; ) { for ( Entry e = tab [ i ] , prev = null ; e != null ; e = e . mNext ) { Object entryValue = e . getValue ( ) ; if ( entryValue == null ) { // Clean up after a cleared Reference . mModCount ++ ; if ( prev...
public class AbstractGeneratorMojo { /** * Returns the { @ link Properties } instance populated from the StatusFile * ( defined via { @ link # statusFile } ) or < code > null < / code > if no StatusFile * exists . */ private Properties getStatusProperties ( ) { } }
final File statusFile = getStatusFile ( ) ; if ( statusFile != null ) { try { Properties statusFileProps = new Properties ( ) ; final FileReader statusReader = new FileReader ( statusFile ) ; try { statusFileProps . load ( statusReader ) ; return statusFileProps ; } finally { statusReader . close ( ) ; } } catch ( IOEx...
public class CreateDevEndpointRequest { /** * A list of public keys to be used by the DevEndpoints for authentication . The use of this attribute is preferred * over a single public key because the public keys allow you to have a different private key per client . * < note > * If you previously created an endpoin...
if ( this . publicKeys == null ) { setPublicKeys ( new java . util . ArrayList < String > ( publicKeys . length ) ) ; } for ( String ele : publicKeys ) { this . publicKeys . add ( ele ) ; } return this ;
public class CompositeByteBuf { /** * Precondition is that { @ code buffer ! = null } . */ private int addComponent0 ( boolean increaseWriterIndex , int cIndex , ByteBuf buffer ) { } }
assert buffer != null ; boolean wasAdded = false ; try { checkComponentIndex ( cIndex ) ; // No need to consolidate - just add a component to the list . Component c = newComponent ( buffer , 0 ) ; int readableBytes = c . length ( ) ; addComp ( cIndex , c ) ; wasAdded = true ; if ( readableBytes > 0 && cIndex < componen...
public class FileMapping { /** * Add a { @ link WindupVertexFrame } type to the list of mappings for the given pattern and { @ link GraphRewrite } * event . */ public static void addMapping ( GraphRewrite event , String pattern , Class < ? extends WindupVertexFrame > type ) { } }
getMappings ( event , pattern ) . add ( type ) ;
public class BaseTwitter4jClient { /** * Forks off a runnable with the executor provided . Multiple calls are allowed , but the listeners must be * threadsafe . */ @ Override public void process ( ) { } }
if ( client . isDone ( ) || executorService . isTerminated ( ) ) { throw new IllegalStateException ( "Client is already stopped" ) ; } Runnable runner = new Runnable ( ) { @ Override public void run ( ) { try { while ( ! client . isDone ( ) ) { String msg = messageQueue . take ( ) ; try { parseMessage ( msg ) ; } catch...
public class ExecutionVertex { /** * Updates the vertex ' s current execution state . * @ param newExecutionState * the new execution state * @ param optionalMessage * an optional message related to the state change */ public ExecutionState updateExecutionState ( ExecutionState newExecutionState , final String ...
if ( newExecutionState == null ) { throw new IllegalArgumentException ( "Argument newExecutionState must not be null" ) ; } final ExecutionState currentExecutionState = this . executionState . get ( ) ; if ( currentExecutionState == ExecutionState . CANCELING ) { // If we are in CANCELING , ignore state changes to FINI...
public class CacheConfigurationBuilder { /** * Adds an { @ link EvictionAdvisor } to the returned builder . * @ param evictionAdvisor the eviction advisor to be used * @ return a new builder with the added eviction advisor */ public CacheConfigurationBuilder < K , V > withEvictionAdvisor ( final EvictionAdvisor < ?...
CacheConfigurationBuilder < K , V > otherBuilder = new CacheConfigurationBuilder < > ( this ) ; otherBuilder . evictionAdvisor = evictionAdvisor ; return otherBuilder ;
public class FeatureUtilities { /** * Utility to convert a featurecollection to a queryresult format . * @ param featureCollection the collection to convert . * @ return the queryresult object . */ public static QueryResult featureCollection2QueryResult ( SimpleFeatureCollection featureCollection ) { } }
List < AttributeDescriptor > attributeDescriptors = featureCollection . getSchema ( ) . getAttributeDescriptors ( ) ; QueryResult queryResult = new QueryResult ( ) ; int count = 0 ; for ( AttributeDescriptor attributeDescriptor : attributeDescriptors ) { if ( ! ( attributeDescriptor instanceof GeometryDescriptor ) ) { ...
public class JSONTokener { /** * Unescapes the character identified by the character or characters that * immediately follow a backslash . The backslash ' \ ' should have already * been read . This supports both unicode escapes " u000A " and two - character * escapes " \ n " . */ private char readEscapeCharacter ...
char escaped = in . charAt ( pos ++ ) ; switch ( escaped ) { case 'u' : if ( pos + 4 > in . length ( ) ) { throw syntaxError ( "Unterminated escape sequence" ) ; } String hex = in . substring ( pos , pos + 4 ) ; pos += 4 ; try { return ( char ) Integer . parseInt ( hex , 16 ) ; } catch ( NumberFormatException nfe ) { t...
public class ChineseCalendar { /** * Override Calendar to handle leap months properly . */ public void roll ( int field , int amount ) { } }
switch ( field ) { case MONTH : if ( amount != 0 ) { int dom = get ( DAY_OF_MONTH ) ; int day = get ( JULIAN_DAY ) - EPOCH_JULIAN_DAY ; // Get local day int moon = day - dom + 1 ; // New moon ( start of this month ) // Note throughout the following : Months 12 and 1 are never // followed by a leap month ( D & R p . 185...
public class Alignments { /** * Return the count of the specified ranges . * @ param ranges ranges , must not be null , must not contain any null ranges , and all ranges must be [ closed , open ) * @ return the count of the specified ranges */ public static int count ( final Iterable < Range < Long > > ranges ) { }...
int count = 0 ; for ( Range < Long > range : ranges ) { checkClosedOpen ( range ) ; count ++ ; } return count ;
public class AppDescriptor { /** * Create an ` AppDescriptor ` with appName , entry class and app version . * If ` appName ` is ` null ` or blank , it will try the following * approach to get app name : * 1 . check the { @ link Version # getArtifactId ( ) artifact id } and use it unless * 2 . if artifact id is ...
return new AppDescriptor ( ensureAppName ( appName , entryClass , $ . requireNotNull ( appVersion ) ) , JavaNames . packageNameOf ( entryClass ) , appVersion ) ;
public class AlertPolicyChannelDeserializer { /** * Gson invokes this call - back method during deserialization when it encounters a field of the specified type . * @ param element The Json data being deserialized * @ param type The type of the Object to deserialize to * @ param context The JSON deserialization c...
JsonObject obj = element . getAsJsonObject ( ) ; JsonElement policy = obj . get ( "policy" ) ; if ( policy != null && policy . isJsonObject ( ) ) return gson . fromJson ( policy , AlertPolicyChannel . class ) ; return gson . fromJson ( element , AlertPolicyChannel . class ) ;
public class FlowConfigResourceLocalHandler { /** * Update flowConfig locally and trigger all listeners */ public UpdateResponse updateFlowConfig ( FlowId flowId , FlowConfig flowConfig ) throws FlowConfigLoggedException { } }
return updateFlowConfig ( flowId , flowConfig , true ) ;
public class GraphvizDotBuilder { /** * example options : " - v - T png " */ public void draw ( Object obj , String outfile , String options ) throws IOException { } }
String cmd = getGraphvizBinary ( ) + " -o " + outfile + " " + options ; draw ( obj , cmd ) ;
public class IfcMaterialDefinitionImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ SuppressWarnings ( "unchecked" ) @ Override public EList < IfcExternalReferenceRelationship > getHasExternalReferences ( ) { } }
return ( EList < IfcExternalReferenceRelationship > ) eGet ( Ifc4Package . Literals . IFC_MATERIAL_DEFINITION__HAS_EXTERNAL_REFERENCES , true ) ;
public class CmsJspLoginBean { /** * Logs a user out , i . e . destroys the current users session , * after that the current page will be redirected to itself one time to ensure that * the users session is truly destroyed . < p > * @ throws IOException if redirect after logout fails */ public void logout ( ) thro...
String loggedInUserName = getRequestContext ( ) . getCurrentUser ( ) . getName ( ) ; HttpSession session = getRequest ( ) . getSession ( false ) ; if ( session != null ) { session . invalidate ( ) ; /* we need this because a new session might be created after this method , but before the session info is updated in Op...
public class StreamMessageImpl { /** * ( non - Javadoc ) * @ see javax . jms . StreamMessage # readInt ( ) */ @ Override public int readInt ( ) throws JMSException { } }
backupState ( ) ; try { return MessageConvertTools . asInt ( internalReadObject ( ) ) ; } catch ( JMSException e ) { restoreState ( ) ; throw e ; } catch ( RuntimeException e ) { restoreState ( ) ; throw e ; }
public class AbstractUserTaskBuilder { /** * Add a class based task listener with specified event name * @ param eventName - event names to listen to * @ param fullQualifiedClassName - a string representing a class * @ return the builder object */ @ SuppressWarnings ( "rawtypes" ) public B camundaTaskListenerClas...
return camundaTaskListenerClass ( eventName , listenerClass . getName ( ) ) ;
public class S3Utils { /** * Copied from org . jets3t . service . model . StorageObject . isDirectoryPlaceholder ( ) */ public static boolean isDirectoryPlaceholder ( String key , ObjectMetadata objectMetadata ) { } }
// Recognize " standard " directory place - holder indications used by // Amazon ' s AWS Console and Panic ' s Transmit . if ( key . endsWith ( "/" ) && objectMetadata . getContentLength ( ) == 0 ) { return true ; } // Recognize s3sync . rb directory placeholders by MD5 / ETag value . if ( "d66759af42f282e1ba19144df2d4...
public class EJBInterceptorAroundConstructCallback { /** * { @ inheritDoc } */ @ Override public T aroundConstruct ( ConstructionHandle < T > handle , AnnotatedConstructor < T > constructor , Object [ ] parameters , Map < String , Object > data ) throws Exception { } }
return aciCtx . aroundConstruct ( new ConstructionCallbackImpl < T > ( handle , constructor ) , parameters , data ) ;
public class KAFDocument { /** * Creates a timeExpressions object to load an existing Timex3 . It receives it ' s ID as an argument . The Timex3 is added to the document . * @ param id the ID of the coreference . * @ param references different mentions ( list of targets ) to the same entity . * @ return a new tim...
idManager . updateCounter ( AnnotationType . TIMEX3 , id ) ; Timex3 newTimex3 = new Timex3 ( id , type ) ; annotationContainer . add ( newTimex3 , Layer . TIME_EXPRESSIONS , AnnotationType . TIMEX3 ) ; return newTimex3 ;
public class HttpMessage { /** * Set Character Encoding . * @ param encoding An encoding that can override the encoding set * from the ContentType field . */ public void setCharacterEncoding ( String encoding , boolean setField ) { } }
if ( isCommitted ( ) ) return ; if ( encoding == null ) { // Clear any encoding . if ( _characterEncoding != null ) { _characterEncoding = null ; if ( setField ) _header . put ( HttpFields . __ContentType , _mimeType ) ; } } else { // No , so just add this one to the mimetype _characterEncoding = encoding ; if ( setFie...
public class CommerceTaxFixedRatePersistenceImpl { /** * Creates a new commerce tax fixed rate with the primary key . Does not add the commerce tax fixed rate to the database . * @ param commerceTaxFixedRateId the primary key for the new commerce tax fixed rate * @ return the new commerce tax fixed rate */ @ Overri...
CommerceTaxFixedRate commerceTaxFixedRate = new CommerceTaxFixedRateImpl ( ) ; commerceTaxFixedRate . setNew ( true ) ; commerceTaxFixedRate . setPrimaryKey ( commerceTaxFixedRateId ) ; commerceTaxFixedRate . setCompanyId ( companyProvider . getCompanyId ( ) ) ; return commerceTaxFixedRate ;
public class HttpChannelUtils { /** * Take an input byte [ ] and return the int translation . For example , the * byte [ ] ' 0053 ' would return 53. * @ param array * @ return int * @ throws NumberFormatException * ( if the data contains invalid digits ) */ static public int asIntValue ( byte [ ] array ) { } ...
if ( null == array ) { return - 1 ; } int intVal = 0 ; int mark = 1 ; int digit ; int i = array . length - 1 ; for ( ; 0 <= i ; i -- ) { digit = array [ i ] - HEX_BYTES [ 0 ] ; if ( 0 > digit || 9 < digit ) { // stop on any nondigit , if it ' s not a DASH then throw an exc if ( '-' != array [ i ] ) { throw new NumberFo...
public class CsvListReader { /** * { @ inheritDoc } */ public List < Object > executeProcessors ( final CellProcessor ... processors ) { } }
return super . executeProcessors ( new ArrayList < Object > ( getColumns ( ) . size ( ) ) , processors ) ;
public class CmsVfsSitemapService { /** * Applys the given change to the VFS . < p > * @ param entryPoint the sitemap entry - point * @ param change the change * @ return the updated entry * @ throws CmsException if something goes wrong */ private CmsSitemapChange applyChange ( String entryPoint , CmsSitemapCha...
CmsObject cms = getCmsObject ( ) ; CmsResource configFile = null ; // lock the config file first , to avoid half done changes if ( change . hasDetailPageInfos ( ) ) { CmsADEConfigData configData = OpenCms . getADEManager ( ) . lookupConfiguration ( cms , cms . getRequestContext ( ) . addSiteRoot ( entryPoint ) ) ; if (...