code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public String getInfix(String className) { String postfix = getActionSuffix(); String simpleName = className.substring(className.lastIndexOf('.') + 1); if (Strings.contains(simpleName, postfix)) { simpleName = Strings.uncapitalize(simpleName.substring(0, simpleName.length() ...
public class class_name { public String getInfix(String className) { String postfix = getActionSuffix(); String simpleName = className.substring(className.lastIndexOf('.') + 1); if (Strings.contains(simpleName, postfix)) { simpleName = Strings.uncapitalize(simpleName.substring(0, simpleName.length() ...
public class class_name { public void marshall(UserPendingChanges userPendingChanges, ProtocolMarshaller protocolMarshaller) { if (userPendingChanges == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(UserPendingChanges userPendingChanges, ProtocolMarshaller protocolMarshaller) { if (userPendingChanges == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { private Object convertByteArrayToNumber(byte[] mass) { double resultDouble = bytesToDouble(mass); if (Double.isNaN(resultDouble) || (resultDouble < NAN_EPSILON && resultDouble > 0)) { return null; } long resultLong = Math.round(resultDouble); ...
public class class_name { private Object convertByteArrayToNumber(byte[] mass) { double resultDouble = bytesToDouble(mass); if (Double.isNaN(resultDouble) || (resultDouble < NAN_EPSILON && resultDouble > 0)) { return null; // depends on control dependency: [if], data = [none] } ...
public class class_name { public static void shiftUp( Polygon2D_F64 a ) { final int N = a.size(); Point2D_F64 first = a.get(0); for (int i = 0; i < N-1; i++ ) { a.vertexes.data[i] = a.vertexes.data[i+1]; } a.vertexes.data[N-1] = first; } }
public class class_name { public static void shiftUp( Polygon2D_F64 a ) { final int N = a.size(); Point2D_F64 first = a.get(0); for (int i = 0; i < N-1; i++ ) { a.vertexes.data[i] = a.vertexes.data[i+1]; // depends on control dependency: [for], data = [i] } a.vertexes.data[N-1] = first; } }
public class class_name { public void build() throws SAXException { // reorganize qualifying components by their namespaces to // generate the list nicely final Map<XSSchema, PerSchemaOutlineAdaptors> perSchema = new LinkedHashMap<>(); boolean hasComponentInNoNamespace = false; for (final OutlineAdaptor oa ...
public class class_name { public void build() throws SAXException { // reorganize qualifying components by their namespaces to // generate the list nicely final Map<XSSchema, PerSchemaOutlineAdaptors> perSchema = new LinkedHashMap<>(); boolean hasComponentInNoNamespace = false; for (final OutlineAdaptor oa ...
public class class_name { @Override public EEnum getIfcRoleEnum() { if (ifcRoleEnumEEnum == null) { ifcRoleEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(1054); } return ifcRoleEnumEEnum; } }
public class class_name { @Override public EEnum getIfcRoleEnum() { if (ifcRoleEnumEEnum == null) { ifcRoleEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(1054); // depends on control dependency: [if], data = [none] } return ifcRoleEnumEEnum; ...
public class class_name { public ChannelFuture removeAndWriteAll() { assert ctx.executor().inEventLoop(); if (isEmpty()) { return null; } ChannelPromise p = ctx.newPromise(); PromiseCombiner combiner = new PromiseCombiner(ctx.executor()); try { ...
public class class_name { public ChannelFuture removeAndWriteAll() { assert ctx.executor().inEventLoop(); if (isEmpty()) { return null; // depends on control dependency: [if], data = [none] } ChannelPromise p = ctx.newPromise(); PromiseCombiner combiner = new Promi...
public class class_name { private static AspectranWebService create(ServletContext servletContext, String aspectranConfigParam) { AspectranConfig aspectranConfig; if (aspectranConfigParam != null) { try { aspectranConfig = new AspectranConfig(aspectranConfigParam); ...
public class class_name { private static AspectranWebService create(ServletContext servletContext, String aspectranConfigParam) { AspectranConfig aspectranConfig; if (aspectranConfigParam != null) { try { aspectranConfig = new AspectranConfig(aspectranConfigParam); // depend...
public class class_name { public final void release(TotalOrderRemoteTransactionState state) { TotalOrderLatch synchronizedBlock = state.getTransactionSynchronizedBlock(); if (synchronizedBlock == null) { //already released! return; } Collection<Object> lockedKeys = state.getLo...
public class class_name { public final void release(TotalOrderRemoteTransactionState state) { TotalOrderLatch synchronizedBlock = state.getTransactionSynchronizedBlock(); if (synchronizedBlock == null) { //already released! return; // depends on control dependency: [if], data = [none] ...
public class class_name { public void addTypeListener(String typeName, HollowTypeStateListener listener) { List<HollowTypeStateListener> list = listeners.get(typeName); if(list == null) { list = new ArrayList<HollowTypeStateListener>(); listeners.put(typeName, list); } ...
public class class_name { public void addTypeListener(String typeName, HollowTypeStateListener listener) { List<HollowTypeStateListener> list = listeners.get(typeName); if(list == null) { list = new ArrayList<HollowTypeStateListener>(); // depends on control dependency: [if], data = [none] ...
public class class_name { public void registerJavaPropertyNameProcessor( Class target, PropertyNameProcessor propertyNameProcessor ) { if( target != null && propertyNameProcessor != null ) { javaPropertyNameProcessorMap.put( target, propertyNameProcessor ); } } }
public class class_name { public void registerJavaPropertyNameProcessor( Class target, PropertyNameProcessor propertyNameProcessor ) { if( target != null && propertyNameProcessor != null ) { javaPropertyNameProcessorMap.put( target, propertyNameProcessor ); // depends on control dependency: [if], data =...
public class class_name { public static Method getSetter(Class<?> clazz, String fieldName) { StringBuilder sb = new StringBuilder("set").append( Character.toUpperCase(fieldName.charAt(0))).append(fieldName, 1, fieldName.length()); final String internedName = sb.toString(...
public class class_name { public static Method getSetter(Class<?> clazz, String fieldName) { StringBuilder sb = new StringBuilder("set").append( Character.toUpperCase(fieldName.charAt(0))).append(fieldName, 1, fieldName.length()); final String internedName = sb.toString(...
public class class_name { public java.util.List<String> getCommandIds() { if (commandIds == null) { commandIds = new com.amazonaws.internal.SdkInternalList<String>(); } return commandIds; } }
public class class_name { public java.util.List<String> getCommandIds() { if (commandIds == null) { commandIds = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return commandIds; } }
public class class_name { private boolean verifyHostName(String hostName, String pattern) { // Basic sanity checks // Check length == 0 instead of .isEmpty() to support Java 5. if ((hostName == null) || (hostName.length() == 0) || (hostName.startsWith(".")) || (hostName.endsWith(".."))) { // ...
public class class_name { private boolean verifyHostName(String hostName, String pattern) { // Basic sanity checks // Check length == 0 instead of .isEmpty() to support Java 5. if ((hostName == null) || (hostName.length() == 0) || (hostName.startsWith(".")) || (hostName.endsWith(".."))) { // ...
public class class_name { @Override protected void handleEvents(final String EVENT_TYPE) { super.handleEvents(EVENT_TYPE); if ("RECALC".equals(EVENT_TYPE)) { range = gauge.getRange(); angleStep = ANGLE_RANGE / range; minValue = gauge.getMinValue(); s...
public class class_name { @Override protected void handleEvents(final String EVENT_TYPE) { super.handleEvents(EVENT_TYPE); if ("RECALC".equals(EVENT_TYPE)) { range = gauge.getRange(); // depends on control dependency: [if], data = [none] angleStep = ANGLE_RANGE / range; // d...
public class class_name { public void marshall(ActivityTaskCanceledEventAttributes activityTaskCanceledEventAttributes, ProtocolMarshaller protocolMarshaller) { if (activityTaskCanceledEventAttributes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(ActivityTaskCanceledEventAttributes activityTaskCanceledEventAttributes, ProtocolMarshaller protocolMarshaller) { if (activityTaskCanceledEventAttributes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void waitForMemberStart(String member, JMX jmx) { boolean isRunning = false; boolean printedStartMember = false; int count = 0; while(!isRunning) { try{ isRunning = GemFireInspector.checkMemberStatus(member,jmx); } catch(Exception e) {Debugger.printWarn(e);} i...
public class class_name { public void waitForMemberStart(String member, JMX jmx) { boolean isRunning = false; boolean printedStartMember = false; int count = 0; while(!isRunning) { try{ isRunning = GemFireInspector.checkMemberStatus(member,jmx); } // depends on control dependency: [try], data = [none] ...
public class class_name { public void addResult(CmsResourceTypeStatResult result) { if (!m_results.contains(result)) { m_results.add(result); m_updated = false; } else { m_results.remove(result); m_results.add(result); m_updated = true; ...
public class class_name { public void addResult(CmsResourceTypeStatResult result) { if (!m_results.contains(result)) { m_results.add(result); // depends on control dependency: [if], data = [none] m_updated = false; // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public BodyContent push() { if (current.after == null) { current.after = new Entry(current, new BodyContentImpl(current.body == null ? (JspWriter) base : current.body)); } else { current.after.doDevNull = false; current.after.body.init(current.body == null ? (JspWriter) base...
public class class_name { public BodyContent push() { if (current.after == null) { current.after = new Entry(current, new BodyContentImpl(current.body == null ? (JspWriter) base : current.body)); // depends on control dependency: [if], data = [none] } else { current.after.doDevNull = false; // depends on ...
public class class_name { @Override public org.fcrepo.server.types.gen.MIMETypedStream getDatastreamDissemination(String pid, String dsID, String asOfD...
public class class_name { @Override public org.fcrepo.server.types.gen.MIMETypedStream getDatastreamDissemination(String pid, String dsID, String asOfD...
public class class_name { boolean deleteEntity(@NotNull final PersistentStoreTransaction txn, @NotNull final PersistentEntity entity) { clearProperties(txn, entity); clearBlobs(txn, entity); deleteLinks(txn, entity); final PersistentEntityId id = entity.getId(); final int entity...
public class class_name { boolean deleteEntity(@NotNull final PersistentStoreTransaction txn, @NotNull final PersistentEntity entity) { clearProperties(txn, entity); clearBlobs(txn, entity); deleteLinks(txn, entity); final PersistentEntityId id = entity.getId(); final int entity...
public class class_name { public AwsSecurityFindingFilters withResourceType(StringFilter... resourceType) { if (this.resourceType == null) { setResourceType(new java.util.ArrayList<StringFilter>(resourceType.length)); } for (StringFilter ele : resourceType) { this.resour...
public class class_name { public AwsSecurityFindingFilters withResourceType(StringFilter... resourceType) { if (this.resourceType == null) { setResourceType(new java.util.ArrayList<StringFilter>(resourceType.length)); // depends on control dependency: [if], data = [none] } for (Stri...
public class class_name { public final EObject ruleWildcard() throws RecognitionException { EObject current = null; Token otherlv_1=null; enterRule(); try { // InternalSimpleAntlr.g:1707:28: ( ( () otherlv_1= '.' ) ) // InternalSimpleAntlr.g:1708...
public class class_name { public final EObject ruleWildcard() throws RecognitionException { EObject current = null; Token otherlv_1=null; enterRule(); try { // InternalSimpleAntlr.g:1707:28: ( ( () otherlv_1= '.' ) ) // InternalSimpleAntlr.g:1708...
public class class_name { public InputStream openFileStream(String pathHint, String[] extensions) { if (fos == null) { try { fos = (FileOpenService)ServiceManager.lookup("javax.jnlp.FileOpenService"); } catch (UnavailableServiceException e) { ...
public class class_name { public InputStream openFileStream(String pathHint, String[] extensions) { if (fos == null) { try { fos = (FileOpenService)ServiceManager.lookup("javax.jnlp.FileOpenService"); // depends on control dependency: [try], data = [none] }...
public class class_name { public Violation checkInstantiation( Collection<TypeVariableSymbol> typeParameters, Collection<Type> typeArguments) { return Streams.zip( typeParameters.stream(), typeArguments.stream(), (sym, type) -> { if (!hasThreadSafeTypeParamet...
public class class_name { public Violation checkInstantiation( Collection<TypeVariableSymbol> typeParameters, Collection<Type> typeArguments) { return Streams.zip( typeParameters.stream(), typeArguments.stream(), (sym, type) -> { if (!hasThreadSafeTypeParamet...
public class class_name { private static synchronized void proxyInit() { if (PROXY_HOST != null && customRouterPlanner == null) { HttpHost proxy = new HttpHost(PROXY_HOST, PROXY_PORT); customRouterPlanner = new DefaultProxyRoutePlanner(proxy); } } }
public class class_name { private static synchronized void proxyInit() { if (PROXY_HOST != null && customRouterPlanner == null) { HttpHost proxy = new HttpHost(PROXY_HOST, PROXY_PORT); customRouterPlanner = new DefaultProxyRoutePlanner(proxy); // depends on control dependency: [if], dat...
public class class_name { public void setLogStreams(java.util.Collection<LogStream> logStreams) { if (logStreams == null) { this.logStreams = null; return; } this.logStreams = new com.amazonaws.internal.SdkInternalList<LogStream>(logStreams); } }
public class class_name { public void setLogStreams(java.util.Collection<LogStream> logStreams) { if (logStreams == null) { this.logStreams = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this...
public class class_name { protected String getCssPath(String resourceName) { String path = resourceName; if (jawrConfig.getGeneratorRegistry().isPathGenerated(path)) { path = path.replace(':', '/'); path = JawrConstant.SPRITE_GENERATED_CSS_DIR + path; } return path; } }
public class class_name { protected String getCssPath(String resourceName) { String path = resourceName; if (jawrConfig.getGeneratorRegistry().isPathGenerated(path)) { path = path.replace(':', '/'); // depends on control dependency: [if], data = [none] path = JawrConstant.SPRITE_GENERATED_CSS_DIR + path; // ...
public class class_name { public boolean covers(String uri) { // any namspace covers only the any namespace uri // no wildcard ("") requires equality between namespaces. if (ANY_NAMESPACE.equals(ns) || "".equals(wildcard)) { return ns.equals(uri); } String[] parts = split(ns, wildcard); ...
public class class_name { public boolean covers(String uri) { // any namspace covers only the any namespace uri // no wildcard ("") requires equality between namespaces. if (ANY_NAMESPACE.equals(ns) || "".equals(wildcard)) { return ns.equals(uri); // depends on control dependency: [if], data = [none]...
public class class_name { protected void processCollectionRequest(HyperionContext hyperionContext) { EndpointRequest request = hyperionContext.getEndpointRequest(); EndpointResponse response = hyperionContext.getEndpointResponse(); ApiVersionPlugin<ApiObject<Serializable>,PersistentObject<...
public class class_name { protected void processCollectionRequest(HyperionContext hyperionContext) { EndpointRequest request = hyperionContext.getEndpointRequest(); EndpointResponse response = hyperionContext.getEndpointResponse(); ApiVersionPlugin<ApiObject<Serializable>,PersistentObject<...
public class class_name { public void setMask(String mask) { if (mask != null && !mask.isEmpty()) { AddResourcesListener.addResourceToHeadButAfterJQuery(C.BSF_LIBRARY, "js/jquery.inputmask.bundle.min.js"); } getStateHelper().put(PropertyKeys.mask, mask); } }
public class class_name { public void setMask(String mask) { if (mask != null && !mask.isEmpty()) { AddResourcesListener.addResourceToHeadButAfterJQuery(C.BSF_LIBRARY, "js/jquery.inputmask.bundle.min.js"); // depends on control dependency: [if], data = [none] } getStateHelper().put(PropertyKeys.mask, mask);...
public class class_name { private static int hashCodeAsciiCompute(CharSequence value, int offset, int hash) { if (BIG_ENDIAN_NATIVE_ORDER) { return hash * HASH_CODE_C1 + // Low order int hashCodeAsciiSanitizeInt(value, offset + 4) * HASH_CODE_C2 + ...
public class class_name { private static int hashCodeAsciiCompute(CharSequence value, int offset, int hash) { if (BIG_ENDIAN_NATIVE_ORDER) { return hash * HASH_CODE_C1 + // Low order int hashCodeAsciiSanitizeInt(value, offset + 4) * HASH_CODE_C2 + ...
public class class_name { public static Module loadModulesFromProperties(final Module jFunkModule, final String propertiesFile) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException { final List<Module> modules = Lists.newArrayList(); LOG.debug("Using jfunk.props.file=" + p...
public class class_name { public static Module loadModulesFromProperties(final Module jFunkModule, final String propertiesFile) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException { final List<Module> modules = Lists.newArrayList(); LOG.debug("Using jfunk.props.file=" + p...
public class class_name { public void setDividerDrawable(Drawable divider) { if (divider == mDivider) { return; } //Fix for issue #379 if (divider instanceof ColorDrawable && Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) { divider = new IcsColorDrawable...
public class class_name { public void setDividerDrawable(Drawable divider) { if (divider == mDivider) { return; // depends on control dependency: [if], data = [none] } //Fix for issue #379 if (divider instanceof ColorDrawable && Build.VERSION.SDK_INT < Build.VERSION_CODES.H...
public class class_name { public static Set<BioPAXElement> runNeighborhood( Set<BioPAXElement> sourceSet, Model model, int limit, Direction direction, Filter... filters) { Graph graph; if (model.getLevel() == BioPAXLevel.L3) { if (direction == Direction.UNDIRECTED) { graph = new GraphL3Undi...
public class class_name { public static Set<BioPAXElement> runNeighborhood( Set<BioPAXElement> sourceSet, Model model, int limit, Direction direction, Filter... filters) { Graph graph; if (model.getLevel() == BioPAXLevel.L3) { if (direction == Direction.UNDIRECTED) { graph = new GraphL3Undi...
public class class_name { public boolean close(){ if(super.close()){ dockableHolder.dispose(); dockableHolder.removeWindowFocusListener(this); WindowListener[] listeners = dockableHolder.getWindowListeners(); for (WindowListener listener : listeners) { dockableHolder.removeWindow...
public class class_name { public boolean close(){ if(super.close()){ dockableHolder.dispose(); // depends on control dependency: [if], data = [none] dockableHolder.removeWindowFocusListener(this); // depends on control dependency: [if], data = [none] WindowListener[] listeners = dockableHolder.getWindowList...
public class class_name { @Provides List<? extends DataSource> provideContainerChildDataSources(final Configuration configuration, final Map<String, DataSource> availableDataSources) { List<DataSource> dataSources = newArrayListWithExpectedSize(3); String key = "dataSource.container.dsref"; for (int i = 1;; +...
public class class_name { @Provides List<? extends DataSource> provideContainerChildDataSources(final Configuration configuration, final Map<String, DataSource> availableDataSources) { List<DataSource> dataSources = newArrayListWithExpectedSize(3); String key = "dataSource.container.dsref"; for (int i = 1;; +...
public class class_name { static String checkDefaultJson(JsonNode defaultJson, Schema schema) { Schema.Type fieldType = schema.getType(); String expectedVal = null; switch(fieldType) { case NULL: if(!defaultJson.isNull()) { expectedVal = "null"; ...
public class class_name { static String checkDefaultJson(JsonNode defaultJson, Schema schema) { Schema.Type fieldType = schema.getType(); String expectedVal = null; switch(fieldType) { case NULL: if(!defaultJson.isNull()) { expectedVal = "null"; /...
public class class_name { private static LocaleStore createLocaleStore(Map<TextStyle, Map<Long, String>> valueTextMap) { valueTextMap.put(TextStyle.FULL_STANDALONE, valueTextMap.get(TextStyle.FULL)); valueTextMap.put(TextStyle.SHORT_STANDALONE, valueTextMap.get(TextStyle.SHORT)); if (valueTextM...
public class class_name { private static LocaleStore createLocaleStore(Map<TextStyle, Map<Long, String>> valueTextMap) { valueTextMap.put(TextStyle.FULL_STANDALONE, valueTextMap.get(TextStyle.FULL)); valueTextMap.put(TextStyle.SHORT_STANDALONE, valueTextMap.get(TextStyle.SHORT)); if (valueTextM...
public class class_name { public List<Column> getInsertColumnList() { List<Column> result = new ArrayList<>(); List<Column> tempColumnList = new ArrayList<>(); for (Column currentColumn:this.columns) { if (currentColumn.referenceTable != null) { tempColumnList = currentColumn.referenceTable.getFind...
public class class_name { public List<Column> getInsertColumnList() { List<Column> result = new ArrayList<>(); List<Column> tempColumnList = new ArrayList<>(); for (Column currentColumn:this.columns) { if (currentColumn.referenceTable != null) { tempColumnList = currentColumn.referenceTable.getFind...
public class class_name { public void marshall(CreateEntityRecognizerRequest createEntityRecognizerRequest, ProtocolMarshaller protocolMarshaller) { if (createEntityRecognizerRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(CreateEntityRecognizerRequest createEntityRecognizerRequest, ProtocolMarshaller protocolMarshaller) { if (createEntityRecognizerRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public static String getIpAddr(HttpServletRequest request) { String ip = request.getHeader(WebConstants.HEADER_FROWARDED_FOR); if (StringUtils.isBlank(ip) || UNKNOWN.equalsIgnoreCase(ip)) { ip = request.getHeader("Proxy-Client-IP"); } if (StringU...
public class class_name { public static String getIpAddr(HttpServletRequest request) { String ip = request.getHeader(WebConstants.HEADER_FROWARDED_FOR); if (StringUtils.isBlank(ip) || UNKNOWN.equalsIgnoreCase(ip)) { ip = request.getHeader("Proxy-Client-IP"); // depends on control depende...
public class class_name { public void marshall(LoadBalancer loadBalancer, ProtocolMarshaller protocolMarshaller) { if (loadBalancer == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(loadBalancer.get...
public class class_name { public void marshall(LoadBalancer loadBalancer, ProtocolMarshaller protocolMarshaller) { if (loadBalancer == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(loadBalancer.get...
public class class_name { private PoolingOptions getPoolingOptions(Properties connectionProperties) { // minSimultaneousRequests, maxSimultaneousRequests, coreConnections, // maxConnections PoolingOptions options = new PoolingOptions(); String hostDistance = connectionProperties.g...
public class class_name { private PoolingOptions getPoolingOptions(Properties connectionProperties) { // minSimultaneousRequests, maxSimultaneousRequests, coreConnections, // maxConnections PoolingOptions options = new PoolingOptions(); String hostDistance = connectionProperties.g...
public class class_name { Token nextToken(Token tkn) throws IOException { wsBuf.clear(); // resuse // get the last read char (required for empty line detection) int lastChar = in.readAgain(); // read the next char and set eol /* note: unfourtunately isEndOfLine may consumes a cha...
public class class_name { Token nextToken(Token tkn) throws IOException { wsBuf.clear(); // resuse // get the last read char (required for empty line detection) int lastChar = in.readAgain(); // read the next char and set eol /* note: unfourtunately isEndOfLine may consumes a cha...
public class class_name { protected ObjectData collectObjectData( CmsCmisCallContext context, CmsObject cms, CmsResource resource, Set<String> filter, String renditionFilter, boolean includeAllowableActions, boolean includeAcl, IncludeRelationship...
public class class_name { protected ObjectData collectObjectData( CmsCmisCallContext context, CmsObject cms, CmsResource resource, Set<String> filter, String renditionFilter, boolean includeAllowableActions, boolean includeAcl, IncludeRelationship...
public class class_name { public Set<Class<?>> findAndAddClassesInPackageByFile(String packageName, String packagePath, final boolean recursive) { LOGGER.debug("扫描包{}下、目录{}下的所有class", packageName, packagePath); Set<Class<?>> classes = new Linked...
public class class_name { public Set<Class<?>> findAndAddClassesInPackageByFile(String packageName, String packagePath, final boolean recursive) { LOGGER.debug("扫描包{}下、目录{}下的所有class", packageName, packagePath); Set<Class<?>> classes = new Linked...
public class class_name { public ResultSet withRows(Row... rows) { if (this.rows == null) { setRows(new java.util.ArrayList<Row>(rows.length)); } for (Row ele : rows) { this.rows.add(ele); } return this; } }
public class class_name { public ResultSet withRows(Row... rows) { if (this.rows == null) { setRows(new java.util.ArrayList<Row>(rows.length)); // depends on control dependency: [if], data = [none] } for (Row ele : rows) { this.rows.add(ele); // depends on control depend...
public class class_name { long getSupplementaryFlags(ClassSymbol c) { if (jrtIndex == null || !jrtIndex.isInJRT(c.classfile) || c.name == names.module_info) { return 0; } if (supplementaryFlags == null) { supplementaryFlags = new HashMap<>(); } Long fla...
public class class_name { long getSupplementaryFlags(ClassSymbol c) { if (jrtIndex == null || !jrtIndex.isInJRT(c.classfile) || c.name == names.module_info) { return 0; // depends on control dependency: [if], data = [none] } if (supplementaryFlags == null) { supplementa...
public class class_name { private void changeReferenceDataValuesInComponents(final ReferenceData oldReferenceData, final ReferenceData newReferenceData, final Class<?> referenceDataClass) { final Collection<ComponentBuilder> componentBuilders = _analysisJobBuilder.getComponentBuilders(); fo...
public class class_name { private void changeReferenceDataValuesInComponents(final ReferenceData oldReferenceData, final ReferenceData newReferenceData, final Class<?> referenceDataClass) { final Collection<ComponentBuilder> componentBuilders = _analysisJobBuilder.getComponentBuilders(); fo...
public class class_name { public void setConvertToXmlPage(boolean convertToXmlPage) { if (LOG.isDebugEnabled()) { LOG.debug( Messages.get().getBundle().key( Messages.LOG_IMPORTEXPORT_SET_CONVERT_PARAMETER_1, Boolean.toString(convertToXmlPage)...
public class class_name { public void setConvertToXmlPage(boolean convertToXmlPage) { if (LOG.isDebugEnabled()) { LOG.debug( Messages.get().getBundle().key( Messages.LOG_IMPORTEXPORT_SET_CONVERT_PARAMETER_1, Boolean.toString(convertToXmlPage)...
public class class_name { public I_CmsXmlDocument getRawContent() { if (m_content == null) { // content has not been provided, must unmarshal XML first CmsFile file; try { file = m_cms.readFile(m_resource); if (CmsResourceTypeXmlPage.isXmlPag...
public class class_name { public I_CmsXmlDocument getRawContent() { if (m_content == null) { // content has not been provided, must unmarshal XML first CmsFile file; try { file = m_cms.readFile(m_resource); // depends on control dependency: [try], data = [no...
public class class_name { public static Object newInstanceForClassName(final String className) { try { return newInstance(Class.forName(className)); } catch (Exception ex) { throw new Error(String.format("Can't create instance of %s for error %s", className, ex.getMessage()), ex); } } }
public class class_name { public static Object newInstanceForClassName(final String className) { try { return newInstance(Class.forName(className)); // depends on control dependency: [try], data = [none] } catch (Exception ex) { throw new Error(String.format("Can't create instance of %s for error %...
public class class_name { private int filterNondominatedSet(double[][] front, int noPoints, int noObjectives) { int i, j; int n; n = noPoints; i = 0; while (i < n) { j = i + 1; while (j < n) { if (dominates(front[i], front[j], noObjectives)) { /* remove point 'j' */ ...
public class class_name { private int filterNondominatedSet(double[][] front, int noPoints, int noObjectives) { int i, j; int n; n = noPoints; i = 0; while (i < n) { j = i + 1; // depends on control dependency: [while], data = [none] while (j < n) { if (dominates(front[i], fron...
public class class_name { @Override public void start() { synchronized (this) { if (result != TimeoutResult.NEW) { throw new IllegalStateException("Start called twice on the same timeout"); } startTime = System.nanoTime(); result = TimeoutResu...
public class class_name { @Override public void start() { synchronized (this) { if (result != TimeoutResult.NEW) { throw new IllegalStateException("Start called twice on the same timeout"); } startTime = System.nanoTime(); result = TimeoutResu...
public class class_name { public <T extends ViewHandler<R>> T processing(boolean flag) { lock.lock(); try { setProcessing(flag); return (T)this; } finally { lock.unlock(); } } }
public class class_name { public <T extends ViewHandler<R>> T processing(boolean flag) { lock.lock(); try { setProcessing(flag); // depends on control dependency: [try], data = [none] return (T)this; // depends on control dependency: [try], data = [none] } finall...
public class class_name { @SuppressWarnings("unchecked") protected CaseFileInstance internalGetCaseFileInstance(String caseId, String deploymentId) { logger.debug("Retrieving case file from working memory for case " + caseId); Collection<CaseFileInstance> caseFiles = (Collection<CaseFileInstance>) ...
public class class_name { @SuppressWarnings("unchecked") protected CaseFileInstance internalGetCaseFileInstance(String caseId, String deploymentId) { logger.debug("Retrieving case file from working memory for case " + caseId); Collection<CaseFileInstance> caseFiles = (Collection<CaseFileInstance>) ...
public class class_name { public void renameNodesInTree(String oldName, String newName) { List<Node> nodes = getNodesFromTreeByName(oldName); Iterator i = nodes.iterator(); while (i.hasNext()) { Node n = (Node) i.next(); n.setName(newName); } } }
public class class_name { public void renameNodesInTree(String oldName, String newName) { List<Node> nodes = getNodesFromTreeByName(oldName); Iterator i = nodes.iterator(); while (i.hasNext()) { Node n = (Node) i.next(); n.setName(newName); // depends on control dependency: [while], data = [none] }...
public class class_name { public static boolean nonDitaContext(final Deque<DitaClass> classes) { final Iterator<DitaClass> it = classes.iterator(); it.next(); // Skip first, because we're checking if current element is inside non-DITA context while (it.hasNext()) { final DitaClass c...
public class class_name { public static boolean nonDitaContext(final Deque<DitaClass> classes) { final Iterator<DitaClass> it = classes.iterator(); it.next(); // Skip first, because we're checking if current element is inside non-DITA context while (it.hasNext()) { final DitaClass c...
public class class_name { private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { scope_ifname = null; scope_ifname_set = false; if (getClass().getClassLoader() != Class.class.getClassLoader()) { throw new SecurityException ("invalid addres...
public class class_name { private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { scope_ifname = null; scope_ifname_set = false; if (getClass().getClassLoader() != Class.class.getClassLoader()) { throw new SecurityException ("invalid addres...
public class class_name { public static JavadocHelper create(JavacTask mainTask, Collection<? extends Path> sourceLocations) { StandardJavaFileManager fm = compiler.getStandardFileManager(null, null, null); try { fm.setLocationFromPaths(StandardLocation.SOURCE_PATH, sourceLocations); ...
public class class_name { public static JavadocHelper create(JavacTask mainTask, Collection<? extends Path> sourceLocations) { StandardJavaFileManager fm = compiler.getStandardFileManager(null, null, null); try { fm.setLocationFromPaths(StandardLocation.SOURCE_PATH, sourceLocations); // dep...
public class class_name { public String getScreenURL() { String strURL = super.getScreenURL(); try { if ((this.getHeaderRecord() != null) && (this.getHeaderRecord() != this.getMainRecord()) && ((this.getHeaderRecord().getEditMode() == Constants.EDIT_IN_...
public class class_name { public String getScreenURL() { String strURL = super.getScreenURL(); try { if ((this.getHeaderRecord() != null) && (this.getHeaderRecord() != this.getMainRecord()) && ((this.getHeaderRecord().getEditMode() == Constants.EDIT_IN_...
public class class_name { private void outputMemberInjections(GinjectorBindings bindings, FragmentMap fragments, SourceWriteUtil sourceWriteUtil) { NameGenerator nameGenerator = bindings.getNameGenerator(); for (TypeLiteral<?> type : bindings.getMemberInjectRequests()) { if (!reachabilityAnalyzer.i...
public class class_name { private void outputMemberInjections(GinjectorBindings bindings, FragmentMap fragments, SourceWriteUtil sourceWriteUtil) { NameGenerator nameGenerator = bindings.getNameGenerator(); for (TypeLiteral<?> type : bindings.getMemberInjectRequests()) { if (!reachabilityAnalyzer.i...
public class class_name { public CompleteLayerUploadRequest withLayerDigests(String... layerDigests) { if (this.layerDigests == null) { setLayerDigests(new java.util.ArrayList<String>(layerDigests.length)); } for (String ele : layerDigests) { this.layerDigests.add(ele); ...
public class class_name { public CompleteLayerUploadRequest withLayerDigests(String... layerDigests) { if (this.layerDigests == null) { setLayerDigests(new java.util.ArrayList<String>(layerDigests.length)); // depends on control dependency: [if], data = [none] } for (String ele : la...
public class class_name { public static String encodeString(String s) { if (s != null && s.length() != 0) { try { final byte[] encode = Base64.encode(s.getBytes(DATA_ENCODING)); return new String(encode, BYTE_ENCODING); } catch (UnsupportedEncodingException e) { VdmDebugPlugin.log(e); }...
public class class_name { public static String encodeString(String s) { if (s != null && s.length() != 0) { try { final byte[] encode = Base64.encode(s.getBytes(DATA_ENCODING)); return new String(encode, BYTE_ENCODING); // depends on control dependency: [try], data = [none] } catch (UnsupportedEn...
public class class_name { private void processScript() { ScriptReaderBase scr = null; try { if (database.isFilesInJar() || fa.isStreamElement(scriptFileName)) { scr = ScriptReaderBase.newScriptReader(database, ...
public class class_name { private void processScript() { ScriptReaderBase scr = null; try { if (database.isFilesInJar() || fa.isStreamElement(scriptFileName)) { scr = ScriptReaderBase.newScriptReader(database, ...
public class class_name { public Method getJavaMethod(Class<?> clazz, String methodName, Class... parameterTypes) { String clazzName = clazz.getName(); String methodKey = buildMethodKey(clazzName, methodName, parameterTypes); Method method = methodCache.get(methodKey); if (null == meth...
public class class_name { public Method getJavaMethod(Class<?> clazz, String methodName, Class... parameterTypes) { String clazzName = clazz.getName(); String methodKey = buildMethodKey(clazzName, methodName, parameterTypes); Method method = methodCache.get(methodKey); if (null == meth...
public class class_name { protected byte[] parseJsp( byte[] byteContent, String encoding, CmsFlexController controller, Set<String> updatedFiles, boolean isHardInclude) { String content; // make sure encoding is set correctly try { content = ...
public class class_name { protected byte[] parseJsp( byte[] byteContent, String encoding, CmsFlexController controller, Set<String> updatedFiles, boolean isHardInclude) { String content; // make sure encoding is set correctly try { content = ...
public class class_name { public List<Product> searchFor(final Optional<String> searchTerm) { if (searchTerm.isPresent()) { return products .stream() .filter(matchingProductsFor(searchTerm.get())) .collect(toList()); } else { ...
public class class_name { public List<Product> searchFor(final Optional<String> searchTerm) { if (searchTerm.isPresent()) { return products .stream() .filter(matchingProductsFor(searchTerm.get())) .collect(toList()); // depends on control ...
public class class_name { public static Map<String, String> parseQueryString(String query) { Map<String, String> queryMap = new HashMap<>(); if (query == null || query.isEmpty()) { return queryMap; } // The query string should escape '&'. String[] entries = query.split(String.valueOf(QUERY_SE...
public class class_name { public static Map<String, String> parseQueryString(String query) { Map<String, String> queryMap = new HashMap<>(); if (query == null || query.isEmpty()) { return queryMap; // depends on control dependency: [if], data = [none] } // The query string should escape '&'. ...
public class class_name { public JBBPOut Long(final long... value) throws IOException { assertNotEnded(); assertArrayNotNull(value); if (this.processCommands) { for (final long l : value) { _writeLong(l); } } return this; } }
public class class_name { public JBBPOut Long(final long... value) throws IOException { assertNotEnded(); assertArrayNotNull(value); if (this.processCommands) { for (final long l : value) { _writeLong(l); // depends on control dependency: [for], data = [l] } } return this; } }
public class class_name { public static byte[] messageDigest(String value) { MessageDigest md5; try { md5 = MessageDigest.getInstance("MD5"); md5.update(value.getBytes("UTF-8")); return md5.digest(); } catch (NoSuchAlgorithmException e) { throw ne...
public class class_name { public static byte[] messageDigest(String value) { MessageDigest md5; try { md5 = MessageDigest.getInstance("MD5"); // depends on control dependency: [try], data = [none] md5.update(value.getBytes("UTF-8")); // depends on control dependency: [try], data...
public class class_name { public void add(final Binding b) { if (!disposedInd) { if (bindings == null) { bindings = new HashSet<>(4); } bindings.add(b); return; } b.dispose(); } }
public class class_name { public void add(final Binding b) { if (!disposedInd) { if (bindings == null) { bindings = new HashSet<>(4); // depends on control dependency: [if], data = [none] } bindings.add(b); // depends on control dependency: [if], data = [none...
public class class_name { @Override public LoadBalancerHealthCheck getLoadBalancerHealthCheck( @Nonnull String providerLBHealthCheckId, @Nullable String providerLoadBalancerId ) throws CloudException, InternalException { APITrace.begin(provider, "LB.getLoadBalancerHealthCheck"); try { M...
public class class_name { @Override public LoadBalancerHealthCheck getLoadBalancerHealthCheck( @Nonnull String providerLBHealthCheckId, @Nullable String providerLoadBalancerId ) throws CloudException, InternalException { APITrace.begin(provider, "LB.getLoadBalancerHealthCheck"); try { M...
public class class_name { public void processRequest(RequestContext context, RequestSecurityProcessorChain processorChain) throws Exception { Map<String, Expression> urlRestrictions = getUrlRestrictions(); if (MapUtils.isNotEmpty(urlRestrictions)) { HttpServletRequest request = context.get...
public class class_name { public void processRequest(RequestContext context, RequestSecurityProcessorChain processorChain) throws Exception { Map<String, Expression> urlRestrictions = getUrlRestrictions(); if (MapUtils.isNotEmpty(urlRestrictions)) { HttpServletRequest request = context.get...
public class class_name { public static Method[] getMethods(Class<?> componentInterface, Class<?>[] businessInterfaces) { int numMethods = 0; Method[] methods = null; int numBusinessInterfaces = 0; HashMap<String, Method> methodNameTable = new H...
public class class_name { public static Method[] getMethods(Class<?> componentInterface, Class<?>[] businessInterfaces) { int numMethods = 0; Method[] methods = null; int numBusinessInterfaces = 0; HashMap<String, Method> methodNameTable = new H...
public class class_name { @Nonnull @ReturnsMutableCopy public ICommonsList <String> cancelUploadedFiles (@Nullable final String... aFieldNames) { final ICommonsList <String> ret = new CommonsArrayList <> (); if (ArrayHelper.isNotEmpty (aFieldNames)) { m_aRWLock.writeLocked ( () -> { for...
public class class_name { @Nonnull @ReturnsMutableCopy public ICommonsList <String> cancelUploadedFiles (@Nullable final String... aFieldNames) { final ICommonsList <String> ret = new CommonsArrayList <> (); if (ArrayHelper.isNotEmpty (aFieldNames)) { m_aRWLock.writeLocked ( () -> { for...
public class class_name { public Object eval(Selector sel) { try { return eval(sel, MatchSpaceKey.DUMMY, EvalCache.DUMMY, null, false); } catch (BadMessageFormatMatchingException e) { // No FFDC Code Needed. // FFDC driven by wrapper class. FFDC.processException(this, ...
public class class_name { public Object eval(Selector sel) { try { return eval(sel, MatchSpaceKey.DUMMY, EvalCache.DUMMY, null, false); // depends on control dependency: [try], data = [none] } catch (BadMessageFormatMatchingException e) { // No FFDC Code Needed. // FFDC driven b...
public class class_name { private static void setParam(final SqlContext ctx, final String key, final String val) { if (val.startsWith("[") && val.endsWith("]") && !(val.equals("[NULL]") || val.equals("[EMPTY]"))) { // [] で囲まれた値は配列に変換する。ex) [1, 2] => {"1", "2"} String[] parts = val.substring(1, val.length() - 1...
public class class_name { private static void setParam(final SqlContext ctx, final String key, final String val) { if (val.startsWith("[") && val.endsWith("]") && !(val.equals("[NULL]") || val.equals("[EMPTY]"))) { // [] で囲まれた値は配列に変換する。ex) [1, 2] => {"1", "2"} String[] parts = val.substring(1, val.length() - 1...
public class class_name { protected synchronized void compareReply(List<Long> processIds) { Object[] replyIds = replyProcessIds.toArray(); for (Object replyId : replyIds) { if (processIds.contains((Long) replyId) == false) { // 判断reply id是否在当前processId列表中 // 因为存在并发问题,如在执行Lis...
public class class_name { protected synchronized void compareReply(List<Long> processIds) { Object[] replyIds = replyProcessIds.toArray(); for (Object replyId : replyIds) { if (processIds.contains((Long) replyId) == false) { // 判断reply id是否在当前processId列表中 // 因为存在并发问题,如在执行Lis...
public class class_name { @Deprecated private static DiscordRecord findBestDiscordWithHash(double[] series, int windowSize, HashMap<String, ArrayList<Integer>> hash, VisitRegistry globalRegistry, double nThreshold) throws Exception { // we extract all seen words from the trie and sort them by the fr...
public class class_name { @Deprecated private static DiscordRecord findBestDiscordWithHash(double[] series, int windowSize, HashMap<String, ArrayList<Integer>> hash, VisitRegistry globalRegistry, double nThreshold) throws Exception { // we extract all seen words from the trie and sort them by the fr...
public class class_name { private void checkInvariants() { for (int i = 0; i < tokens.size(); i++) { Token token = tokens.get(i); Preconditions.checkArgument(token.getID() == i + 1, String.format("Tokens should be numbered consecutively, starting at 1: %s", token));...
public class class_name { private void checkInvariants() { for (int i = 0; i < tokens.size(); i++) { Token token = tokens.get(i); Preconditions.checkArgument(token.getID() == i + 1, String.format("Tokens should be numbered consecutively, starting at 1: %s", token));...
public class class_name { public static Predicates<Object> notIn(Iterable<?> iterable) { if (iterable instanceof SetIterable<?>) { return new NotInSetIterablePredicate((SetIterable<?>) iterable); } if (iterable instanceof Set<?>) { return new NotInSet...
public class class_name { public static Predicates<Object> notIn(Iterable<?> iterable) { if (iterable instanceof SetIterable<?>) { return new NotInSetIterablePredicate((SetIterable<?>) iterable); // depends on control dependency: [if], data = [)] } if (iterable instanceo...
public class class_name { public static Media add_material(String access_token,MediaType mediaType,URI uri,Description description){ HttpPost httpPost = new HttpPost(BASE_URI+"/cgi-bin/material/add_material"); CloseableHttpClient tempHttpClient = HttpClients.createDefault(); try { HttpEntity entity = temp...
public class class_name { public static Media add_material(String access_token,MediaType mediaType,URI uri,Description description){ HttpPost httpPost = new HttpPost(BASE_URI+"/cgi-bin/material/add_material"); CloseableHttpClient tempHttpClient = HttpClients.createDefault(); try { HttpEntity entity = temp...
public class class_name { private static String sanitizeSqlServerUrl(String jdbcUrl) { StringBuilder result = new StringBuilder(); result.append(SQLSERVER_PREFIX); String host; if (jdbcUrl.contains(";")) { host = StringUtils.substringBetween(jdbcUrl, SQLSERVER_PREFIX, ";"); } else { ho...
public class class_name { private static String sanitizeSqlServerUrl(String jdbcUrl) { StringBuilder result = new StringBuilder(); result.append(SQLSERVER_PREFIX); String host; if (jdbcUrl.contains(";")) { host = StringUtils.substringBetween(jdbcUrl, SQLSERVER_PREFIX, ";"); // depends on control...
public class class_name { public final void removeServer(String hostList) { List<InetSocketAddress> addresses = AddrUtil.getAddresses(hostList); if (addresses != null && addresses.size() > 0) { for (InetSocketAddress address : addresses) { removeAddr(address); } } } }
public class class_name { public final void removeServer(String hostList) { List<InetSocketAddress> addresses = AddrUtil.getAddresses(hostList); if (addresses != null && addresses.size() > 0) { for (InetSocketAddress address : addresses) { removeAddr(address); // depends on control dependency: [f...
public class class_name { public AtomContactSet getAtomContacts() { AtomContactSet contacts = new AtomContactSet(cutoff); List<Contact> list = getIndicesContacts(); if (jAtomObjects == null) { for (Contact cont : list) { contacts.add(new AtomContact(new Pair<Atom>(iAtomObjects[cont.getI()],iAtomObjects...
public class class_name { public AtomContactSet getAtomContacts() { AtomContactSet contacts = new AtomContactSet(cutoff); List<Contact> list = getIndicesContacts(); if (jAtomObjects == null) { for (Contact cont : list) { contacts.add(new AtomContact(new Pair<Atom>(iAtomObjects[cont.getI()],iAtomObjects...
public class class_name { private void generateBuilderBasedConstructor(EclipseNode typeNode, TypeParameter[] typeParams, List<BuilderFieldData> builderFields, EclipseNode sourceNode, String builderClassName, boolean callBuilderBasedSuperConstructor) { ASTNode source = sourceNode.get(); TypeDeclaration typ...
public class class_name { private void generateBuilderBasedConstructor(EclipseNode typeNode, TypeParameter[] typeParams, List<BuilderFieldData> builderFields, EclipseNode sourceNode, String builderClassName, boolean callBuilderBasedSuperConstructor) { ASTNode source = sourceNode.get(); TypeDeclaration typ...
public class class_name { @Override public void writeVectorNumber(Vector<Double> vector) { log.debug("writeVectorNumber: {}", vector); buf.put(AMF3.TYPE_VECTOR_NUMBER); if (hasReference(vector)) { putInteger(getReferenceId(vector) << 1); return; } ...
public class class_name { @Override public void writeVectorNumber(Vector<Double> vector) { log.debug("writeVectorNumber: {}", vector); buf.put(AMF3.TYPE_VECTOR_NUMBER); if (hasReference(vector)) { putInteger(getReferenceId(vector) << 1); // depends on control dependency: [...
public class class_name { private Set<Class<?>> getClasses() { HashSet<Class<?>> result = new HashSet<Class<?>>(); // in case of override only the last global configuration must be analyzed JGlobalMap jGlobalMap = null; for (Class<?> clazz : getAllsuperClasses(configuredClass)) { // only i...
public class class_name { private Set<Class<?>> getClasses() { HashSet<Class<?>> result = new HashSet<Class<?>>(); // in case of override only the last global configuration must be analyzed JGlobalMap jGlobalMap = null; for (Class<?> clazz : getAllsuperClasses(configuredClass)) { // only i...
public class class_name { private static String getVersion(final Class<?> clazz) { CodeSource source = clazz.getProtectionDomain().getCodeSource(); URL location = source.getLocation(); try { Path path = Paths.get(location.toURI()); return Files.isRegularFile(path) ? getVersionFromJar(path) : getVersionFro...
public class class_name { private static String getVersion(final Class<?> clazz) { CodeSource source = clazz.getProtectionDomain().getCodeSource(); URL location = source.getLocation(); try { Path path = Paths.get(location.toURI()); return Files.isRegularFile(path) ? getVersionFromJar(path) : getVersionFro...
public class class_name { public PropertyChangeListener[] getPropertyChangeListeners(String propertyName) { List returnList = new ArrayList(); if (children != null) { PropertyChangeSupport support = (PropertyChangeSupport) children.get(propertyName); if (support != null) { returnList.addAll(Arrays.asLis...
public class class_name { public PropertyChangeListener[] getPropertyChangeListeners(String propertyName) { List returnList = new ArrayList(); if (children != null) { PropertyChangeSupport support = (PropertyChangeSupport) children.get(propertyName); if (support != null) { returnList.addAll(Arrays.asLis...
public class class_name { @Cmd public String prompt(final String configKey, final String message) { System.out.print(resolveProperty(message) + " "); //NOSONAR BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); try { String value = StringUtils.trim(in.readLine()); config.put(configK...
public class class_name { @Cmd public String prompt(final String configKey, final String message) { System.out.print(resolveProperty(message) + " "); //NOSONAR BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); try { String value = StringUtils.trim(in.readLine()); config.put(configK...
public class class_name { public static int subtract(int index0, int index1, int size) { int distance = distanceP(index0, index1, size); if( distance >= size/2+size%2 ) { return distance-size; } else { return distance; } } }
public class class_name { public static int subtract(int index0, int index1, int size) { int distance = distanceP(index0, index1, size); if( distance >= size/2+size%2 ) { return distance-size; // depends on control dependency: [if], data = [none] } else { return distance; // depends on control dependency: ...
public class class_name { public void initializeChannels(GateDeploymentDescriptor descriptor) { int numChannels = descriptor.getNumberOfChannelDescriptors(); this.channels = new OutputChannel[numChannels]; setChannelType(descriptor.getChannelType()); for (int i = 0; i < numChannels; i++) { ChannelDeployme...
public class class_name { public void initializeChannels(GateDeploymentDescriptor descriptor) { int numChannels = descriptor.getNumberOfChannelDescriptors(); this.channels = new OutputChannel[numChannels]; setChannelType(descriptor.getChannelType()); for (int i = 0; i < numChannels; i++) { ChannelDeployme...
public class class_name { public Reflect invoke(String methodName, Object... args) throws ReflectionException { Class[] types = ReflectionUtils.getTypes(args); try { return on(clazz.getMethod(methodName, types), object, accessAll, args); } catch (NoSuchMethodException e) { Method me...
public class class_name { public Reflect invoke(String methodName, Object... args) throws ReflectionException { Class[] types = ReflectionUtils.getTypes(args); try { return on(clazz.getMethod(methodName, types), object, accessAll, args); // depends on control dependency: [try], data = [none] ...
public class class_name { private MediaTracker getTracker() { // Opt: Only synchronize if trackerObj comes back null? // If null, synchronize, re-check for null, and put new tracker synchronized(this) { if (tracker == null) { @SuppressWarnings("serial") ...
public class class_name { private MediaTracker getTracker() { // Opt: Only synchronize if trackerObj comes back null? // If null, synchronize, re-check for null, and put new tracker synchronized(this) { if (tracker == null) { @SuppressWarnings("serial") ...
public class class_name { public void postProcessMatches(DestinationHandler topicSpace, String topic, Object[] results, int index) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(t...
public class class_name { public void postProcessMatches(DestinationHandler topicSpace, String topic, Object[] results, int index) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(t...
public class class_name { public void objectAvailable (T object) { // make sure life is not too cruel if (_object != null) { log.warning("Madre de dios! Our object came available but " + "we've already got one!? " + this); // go ahead and pitch the ol...
public class class_name { public void objectAvailable (T object) { // make sure life is not too cruel if (_object != null) { log.warning("Madre de dios! Our object came available but " + "we've already got one!? " + this); // go ahead and pitch the ol...
public class class_name { public static <T> T findAncestor( Component start, Class<T> aClass ) { if( start == null ) { return null; } return findAtOrAbove( start.getParent(), aClass ); } }
public class class_name { public static <T> T findAncestor( Component start, Class<T> aClass ) { if( start == null ) { return null; // depends on control dependency: [if], data = [none] } return findAtOrAbove( start.getParent(), aClass ); } }