code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private static final LockFile newNIOLockFile() { if (NIO_FILELOCK_AVAILABLE && NIO_LOCKFILE_CLASS != null) { try { return (LockFile) NIO_LOCKFILE_CLASS.newInstance(); } catch (Exception e) { // e.printStackTrace() }...
public class class_name { private static final LockFile newNIOLockFile() { if (NIO_FILELOCK_AVAILABLE && NIO_LOCKFILE_CLASS != null) { try { return (LockFile) NIO_LOCKFILE_CLASS.newInstance(); // depends on control dependency: [try], data = [none] } catch (Exception e) ...
public class class_name { @FFDCIgnore({ NumberFormatException.class, ArithmeticException.class, ConfigEvaluatorException.class }) private String tryEvaluateExpression(String expr, final EvaluationContext context, final boolean ignoreWarnings) { try { return new ConfigExpressionEvaluator() { ...
public class class_name { @FFDCIgnore({ NumberFormatException.class, ArithmeticException.class, ConfigEvaluatorException.class }) private String tryEvaluateExpression(String expr, final EvaluationContext context, final boolean ignoreWarnings) { try { return new ConfigExpressionEvaluator() { ...
public class class_name { @Override public EClass getIfcMaterialProfileSet() { if (ifcMaterialProfileSetEClass == null) { ifcMaterialProfileSetEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(368); } return ifcMaterialProfileSetEClass; } }
public class class_name { @Override public EClass getIfcMaterialProfileSet() { if (ifcMaterialProfileSetEClass == null) { ifcMaterialProfileSetEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(368); // depends on control dependency: [if], data = [none]...
public class class_name { public Properties getPropertiesFromDynamicSelectionInfo(Map<String, Object> connectionInfo) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getPropertiesFromDynamicSelectionInfo", new Object[] { connectionInfo }); if (connectionInf...
public class class_name { public Properties getPropertiesFromDynamicSelectionInfo(Map<String, Object> connectionInfo) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getPropertiesFromDynamicSelectionInfo", new Object[] { connectionInfo }); if (connectionInf...
public class class_name { public void insertNewRow() { // reset all fields for (int i = 0; i < komponente.length; i++) { komponente[i].clearContent(); } // end of for (int i=0; i<komponente.length; i++) // reset the field for the primary keys for (int i = 0; i <...
public class class_name { public void insertNewRow() { // reset all fields for (int i = 0; i < komponente.length; i++) { komponente[i].clearContent(); // depends on control dependency: [for], data = [i] } // end of for (int i=0; i<komponente.length; i++) // reset the fi...
public class class_name { static String8 createPathNameLocked(final asset_path ap, final String rootDir) { String8 path = new String8(ap.path); if (rootDir != null) { path.appendPath(rootDir); } return path; } }
public class class_name { static String8 createPathNameLocked(final asset_path ap, final String rootDir) { String8 path = new String8(ap.path); if (rootDir != null) { path.appendPath(rootDir); // depends on control dependency: [if], data = [(rootDir] } return path; } }
public class class_name { public static Integer[] box (int[] list) { if (list == null) { return null; } Integer[] boxed = new Integer[list.length]; for (int ii = 0; ii < list.length; ii++) { boxed[ii] = list[ii]; } return boxed; } }
public class class_name { public static Integer[] box (int[] list) { if (list == null) { return null; // depends on control dependency: [if], data = [none] } Integer[] boxed = new Integer[list.length]; for (int ii = 0; ii < list.length; ii++) { boxed[ii] = li...
public class class_name { public DTMAxisTraverser getAxisTraverser(final int axis) { DTMAxisTraverser traverser; if (null == m_traversers) // Cache of stateless traversers for this DTM { m_traversers = new DTMAxisTraverser[Axis.getNamesLength()]; traverser = null; } else { ...
public class class_name { public DTMAxisTraverser getAxisTraverser(final int axis) { DTMAxisTraverser traverser; if (null == m_traversers) // Cache of stateless traversers for this DTM { m_traversers = new DTMAxisTraverser[Axis.getNamesLength()]; // depends on control dependency: [if], data = [n...
public class class_name { List<Contig> getShards(long numberOfBasesPerShard) { double shardCount = (end - start) / (double) numberOfBasesPerShard; List<Contig> shards = Lists.newArrayList(); for (int i = 0; i < shardCount; i++) { long shardStart = start + (i * numberOfBasesPerShard); long shard...
public class class_name { List<Contig> getShards(long numberOfBasesPerShard) { double shardCount = (end - start) / (double) numberOfBasesPerShard; List<Contig> shards = Lists.newArrayList(); for (int i = 0; i < shardCount; i++) { long shardStart = start + (i * numberOfBasesPerShard); long shard...
public class class_name { public static void shutdownAndAwaitTermination(ExecutorService pool, long timeToWait4ShutDown, long timeToWait4ShutDownNow) { synchronized (pool) { // Disable new tasks fr...
public class class_name { public static void shutdownAndAwaitTermination(ExecutorService pool, long timeToWait4ShutDown, long timeToWait4ShutDownNow) { synchronized (pool) { // Disable new tasks fr...
public class class_name { public final <T extends View> T getFreshestView(ArrayList<T> views){ final int[] locationOnScreen = new int[2]; T viewToReturn = null; long drawingTime = 0; if(views == null){ return null; } for(T view : views){ if(view != null){ view.getLocationOnScreen(locationO...
public class class_name { public final <T extends View> T getFreshestView(ArrayList<T> views){ final int[] locationOnScreen = new int[2]; T viewToReturn = null; long drawingTime = 0; if(views == null){ return null; // depends on control dependency: [if], data = [none] } for(T view : views){ if...
public class class_name { private void deleteRow(String storeName, String rowKey) { List<String> rowKeys = m_rowDeletes.get(storeName); if (rowKeys == null) { rowKeys = new ArrayList<>(); m_rowDeletes.put(storeName, rowKeys); } rowKeys.add(rowKey); ...
public class class_name { private void deleteRow(String storeName, String rowKey) { List<String> rowKeys = m_rowDeletes.get(storeName); if (rowKeys == null) { rowKeys = new ArrayList<>(); // depends on control dependency: [if], data = [none] m_rowDeletes.put(storeName, rowKe...
public class class_name { private byte[] shrinkBuffer(byte[] buffer, int size) { if (size == 0) { return null; } if (size == buffer.length) { return buffer; } byte[] output = new byte[size]; System.arraycopy(buffer, 0, output, 0, size); ...
public class class_name { private byte[] shrinkBuffer(byte[] buffer, int size) { if (size == 0) { return null; // depends on control dependency: [if], data = [none] } if (size == buffer.length) { return buffer; // depends on control dependency: [if], data = [none] ...
public class class_name { public static Collection<TimeSlot> calculateTimeSots( Day day, int intervalSeconds, Time startTime, Time endTime) { if(intervalSeconds <1) { throw new IllegalArgumentException("interval seconds cannot be less than one"); } int count = 1*60*60*...
public class class_name { public static Collection<TimeSlot> calculateTimeSots( Day day, int intervalSeconds, Time startTime, Time endTime) { if(intervalSeconds <1) { throw new IllegalArgumentException("interval seconds cannot be less than one"); } int count = 1*60*60*...
public class class_name { private boolean askToSave() { if (mainFrame.isProjectChanged()) { int response = JOptionPane.showConfirmDialog(mainFrame, L10N.getLocalString("dlg.save_current_changes", "The current project has been changed, Save current changes?"), L10N.getLocalString...
public class class_name { private boolean askToSave() { if (mainFrame.isProjectChanged()) { int response = JOptionPane.showConfirmDialog(mainFrame, L10N.getLocalString("dlg.save_current_changes", "The current project has been changed, Save current changes?"), L10N.getLocalString...
public class class_name { protected void checkForBatchError(JsonNode root) { JsonNode errorCode = root.get("error"); if (errorCode != null) { JsonNode errorDescription = root.get("error_description"); if (errorDescription != null) { int code = errorCode.intValue(); String msg = error...
public class class_name { protected void checkForBatchError(JsonNode root) { JsonNode errorCode = root.get("error"); if (errorCode != null) { JsonNode errorDescription = root.get("error_description"); if (errorDescription != null) { int code = errorCode.intValue(); String msg = error...
public class class_name { public static final void setValue(Object bean, String property, Object v) { Object vv = BeanHelper.getValue(bean, property); if (v != null && v.getClass().isArray() && vv != null && (vv instanceof Collection)) { // array assignment to Collection ...
public class class_name { public static final void setValue(Object bean, String property, Object v) { Object vv = BeanHelper.getValue(bean, property); if (v != null && v.getClass().isArray() && vv != null && (vv instanceof Collection)) { // array assignment to Collection ...
public class class_name { private void sweep() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // d532639.2 if (isTraceOn && isTraceEnabled(false)) Tr.entry(tc.isEntryEnabled() ? tc : tcOOM, ivCache.getName() + ": Sweep (" + ivCache.numSweeps + ...
public class class_name { private void sweep() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // d532639.2 if (isTraceOn && isTraceEnabled(false)) Tr.entry(tc.isEntryEnabled() ? tc : tcOOM, ivCache.getName() + ": Sweep (" + ivCache.numSweeps + ...
public class class_name { private int findLeftBrace(char chLeft, int fromIndex) { // 查找出现的左括号。 for (int index = fromIndex; index < length; index++) { char ch = pattern.charAt(index); // 如果出现左括号,返回。 if (ch == chLeft) { return index; } ...
public class class_name { private int findLeftBrace(char chLeft, int fromIndex) { // 查找出现的左括号。 for (int index = fromIndex; index < length; index++) { char ch = pattern.charAt(index); // 如果出现左括号,返回。 if (ch == chLeft) { return index; // depends on co...
public class class_name { List<TargetWrapperDescriptor> buildList( List<File> targetDirectories, AbstractApplication app ) { List<TargetWrapperDescriptor> result = new ArrayList<> (); for( File targetDirectory : targetDirectories ) { File associationFile = new File( targetDirectory, TARGETS_ASSOC_FILE ); P...
public class class_name { List<TargetWrapperDescriptor> buildList( List<File> targetDirectories, AbstractApplication app ) { List<TargetWrapperDescriptor> result = new ArrayList<> (); for( File targetDirectory : targetDirectories ) { File associationFile = new File( targetDirectory, TARGETS_ASSOC_FILE ); P...
public class class_name { private void addSettingsToMap(Map<String, ScoreComponentSettings> scoreParamSettingsMap, String widgetType, ScoreComponentSettings scoreComponentSettings) { LOGGER.info("addSettingsToMap with widgetType:" + widgetType + " scoreParamSettings:" + scoreComponentSettings); if (null != sco...
public class class_name { private void addSettingsToMap(Map<String, ScoreComponentSettings> scoreParamSettingsMap, String widgetType, ScoreComponentSettings scoreComponentSettings) { LOGGER.info("addSettingsToMap with widgetType:" + widgetType + " scoreParamSettings:" + scoreComponentSettings); if (null != sco...
public class class_name { void stop() { stopAsync(); try { // stopperThread is not null for sure // join() does nothing if thread already finished stopperThread.join(); lifecycle.tryToMoveTo(Lifecycle.State.STOPPED); } catch (InterruptedException e) { Thread.currentThread().in...
public class class_name { void stop() { stopAsync(); try { // stopperThread is not null for sure // join() does nothing if thread already finished stopperThread.join(); // depends on control dependency: [try], data = [none] lifecycle.tryToMoveTo(Lifecycle.State.STOPPED); // depends on c...
public class class_name { public static <T> List<Settable> getConstructorParameters(Constructor<T> constructor, Class<?> ownerType) { Type[] parameterTypes = constructor.getGenericParameterTypes(); Annotation[][] parameterAnnotations = constructor.getParameterAnnotations(); List<Settable> param...
public class class_name { public static <T> List<Settable> getConstructorParameters(Constructor<T> constructor, Class<?> ownerType) { Type[] parameterTypes = constructor.getGenericParameterTypes(); Annotation[][] parameterAnnotations = constructor.getParameterAnnotations(); List<Settable> param...
public class class_name { public void marshall(RegisterInstanceRequest registerInstanceRequest, ProtocolMarshaller protocolMarshaller) { if (registerInstanceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { public void marshall(RegisterInstanceRequest registerInstanceRequest, ProtocolMarshaller protocolMarshaller) { if (registerInstanceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { private List<DummyItem> loadXmlFromNetwork(String urlString) throws IOException { String jString; // Instantiate the parser List<Entry> entries = null; List<DummyItem> rtnArray = new ArrayList<DummyItem>(); BufferedReader streamReader = null; tr...
public class class_name { private List<DummyItem> loadXmlFromNetwork(String urlString) throws IOException { String jString; // Instantiate the parser List<Entry> entries = null; List<DummyItem> rtnArray = new ArrayList<DummyItem>(); BufferedReader streamReader = null; tr...
public class class_name { @FFDCIgnore(NoSuchMethodException.class) private void setRRSTransactional() { try { ivRRSTransactional = (Boolean) activationSpec.getClass().getMethod("getRRSTransactional").invoke(activationSpec); } catch (NoSuchMethodException x) { ivRRSTransactio...
public class class_name { @FFDCIgnore(NoSuchMethodException.class) private void setRRSTransactional() { try { ivRRSTransactional = (Boolean) activationSpec.getClass().getMethod("getRRSTransactional").invoke(activationSpec); // depends on control dependency: [try], data = [none] } catch ...
public class class_name { public ListOrganizationPortfolioAccessResult withOrganizationNodes(OrganizationNode... organizationNodes) { if (this.organizationNodes == null) { setOrganizationNodes(new java.util.ArrayList<OrganizationNode>(organizationNodes.length)); } for (OrganizationN...
public class class_name { public ListOrganizationPortfolioAccessResult withOrganizationNodes(OrganizationNode... organizationNodes) { if (this.organizationNodes == null) { setOrganizationNodes(new java.util.ArrayList<OrganizationNode>(organizationNodes.length)); // depends on control dependency: [i...
public class class_name { @Override public void update(Transaction xaction, T item, Map<String, Object> state) throws PersistenceException { String newKey = getKeyValue(state, getPrimaryKey()); String oldKey = getKeyValue(item); if( newKey == null || newKey.equals(oldKey) ) { ...
public class class_name { @Override public void update(Transaction xaction, T item, Map<String, Object> state) throws PersistenceException { String newKey = getKeyValue(state, getPrimaryKey()); String oldKey = getKeyValue(item); if( newKey == null || newKey.equals(oldKey) ) { ...
public class class_name { public void waitForCompletion() { if (futures == null) { return; } for (Future<?> future : futures) { try { future.wait(); } catch (InterruptedException e) { // TODO Should we catch the exception or sh...
public class class_name { public void waitForCompletion() { if (futures == null) { return; // depends on control dependency: [if], data = [none] } for (Future<?> future : futures) { try { future.wait(); // depends on control dependency: [try], data = [non...
public class class_name { private static boolean isWhitespace( StringBuilder builder ) { for( int i = 0; i < builder.length(); i++ ) { if( !Character.isWhitespace( builder.charAt( i ) ) ) { return false; } } return true; } }
public class class_name { private static boolean isWhitespace( StringBuilder builder ) { for( int i = 0; i < builder.length(); i++ ) { if( !Character.isWhitespace( builder.charAt( i ) ) ) { return false; // depends on control dependency: [if], data = [none] } } ...
public class class_name { public short getShort(String key) { if (containsKey(key)) { return Short.parseShort(get(key)); } else { throw new IllegalArgumentException("Missing key " + key + "."); } } }
public class class_name { public short getShort(String key) { if (containsKey(key)) { return Short.parseShort(get(key)); // depends on control dependency: [if], data = [none] } else { throw new IllegalArgumentException("Missing key " + key + "."); } } }
public class class_name { private AbstractHelperDialect initDialect(String dialectClass, Properties properties) { AbstractHelperDialect dialect; if (StringUtil.isEmpty(dialectClass)) { throw new PageException("使用 PageHelper 分页插件时,必须设置 helper 属性"); } try { Class s...
public class class_name { private AbstractHelperDialect initDialect(String dialectClass, Properties properties) { AbstractHelperDialect dialect; if (StringUtil.isEmpty(dialectClass)) { throw new PageException("使用 PageHelper 分页插件时,必须设置 helper 属性"); } try { Class s...
public class class_name { public ScreenFieldView getViewClassForModel(Class<?> screenFieldClass) { while (screenFieldClass != null) { String strModelClassName = screenFieldClass.getName(); String strViewClassName = null; if (ENABLE_CACHE) strViewC...
public class class_name { public ScreenFieldView getViewClassForModel(Class<?> screenFieldClass) { while (screenFieldClass != null) { String strModelClassName = screenFieldClass.getName(); String strViewClassName = null; if (ENABLE_CACHE) strViewC...
public class class_name { public MultiLatLng toLatLngs(MultiPoint multiPoint) { MultiLatLng multiLatLng = new MultiLatLng(); for (Point point : multiPoint.getPoints()) { LatLng latLng = toLatLng(point); multiLatLng.add(latLng); } return multiLatLng; } }
public class class_name { public MultiLatLng toLatLngs(MultiPoint multiPoint) { MultiLatLng multiLatLng = new MultiLatLng(); for (Point point : multiPoint.getPoints()) { LatLng latLng = toLatLng(point); multiLatLng.add(latLng); // depends on control dependency: [for], data = [...
public class class_name { @Deprecated @SuppressWarnings("fallthrough") protected void subFormat(StringBuffer buf, char ch, int count, int beginOffset, int fieldNum, DisplayContext capitalizationContext, FieldPosition pos, ...
public class class_name { @Deprecated @SuppressWarnings("fallthrough") protected void subFormat(StringBuffer buf, char ch, int count, int beginOffset, int fieldNum, DisplayContext capitalizationContext, FieldPosition pos, ...
public class class_name { public boolean parse() { state = State.SEARCHING_ANNOTATION; skipEOLs(); JsDocToken token = next(); // Always record that we have a comment. if (jsdocBuilder.shouldParseDocumentation()) { ExtractionInfo blockInfo = extractBlockComment(token); token = blockInf...
public class class_name { public boolean parse() { state = State.SEARCHING_ANNOTATION; skipEOLs(); JsDocToken token = next(); // Always record that we have a comment. if (jsdocBuilder.shouldParseDocumentation()) { ExtractionInfo blockInfo = extractBlockComment(token); token = blockInf...
public class class_name { public synchronized Record clear(final URI... properties) { final List<URI> propertiesToClear; if (properties == null || properties.length == 0) { propertiesToClear = doGetProperties(); } else { propertiesToClear = Arrays.asList(properties); ...
public class class_name { public synchronized Record clear(final URI... properties) { final List<URI> propertiesToClear; if (properties == null || properties.length == 0) { propertiesToClear = doGetProperties(); // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public void marshall(DeleteV2LoggingLevelRequest deleteV2LoggingLevelRequest, ProtocolMarshaller protocolMarshaller) { if (deleteV2LoggingLevelRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(DeleteV2LoggingLevelRequest deleteV2LoggingLevelRequest, ProtocolMarshaller protocolMarshaller) { if (deleteV2LoggingLevelRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public static void addDeclaredMethodsFromInterfaces(ClassNode cNode, Map<String, MethodNode> methodsMap) { // add in unimplemented abstract methods from the interfaces for (ClassNode iface : cNode.getInterfaces()) { Map<String, MethodNode> ifaceMethodsMap = iface.g...
public class class_name { public static void addDeclaredMethodsFromInterfaces(ClassNode cNode, Map<String, MethodNode> methodsMap) { // add in unimplemented abstract methods from the interfaces for (ClassNode iface : cNode.getInterfaces()) { Map<String, MethodNode> ifaceMethodsMap = iface.g...
public class class_name { public PagedList<CloudPool> list(final PoolListOptions poolListOptions) { ServiceResponseWithHeaders<Page<CloudPool>, PoolListHeaders> response = listSinglePageAsync(poolListOptions).toBlocking().single(); return new PagedList<CloudPool>(response.body()) { @Overrid...
public class class_name { public PagedList<CloudPool> list(final PoolListOptions poolListOptions) { ServiceResponseWithHeaders<Page<CloudPool>, PoolListHeaders> response = listSinglePageAsync(poolListOptions).toBlocking().single(); return new PagedList<CloudPool>(response.body()) { @Overrid...
public class class_name { @Override public void setPassword(final String password) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) { SibTr.debug(this, TRACE, "setPassword", "***"); } _password = password; } }
public class class_name { @Override public void setPassword(final String password) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) { SibTr.debug(this, TRACE, "setPassword", "***"); // depends on control dependency: [if], data = [none] } _password = password...
public class class_name { protected TokenList.Token createFunction( TokenList.Token name , List<TokenList.Token> inputs , TokenList tokens , Sequence sequence ) { Operation.Info info; if( inputs.size() == 1 ) info = functions.create(name.getFunction().getName(),inputs.get(0).getVariable...
public class class_name { protected TokenList.Token createFunction( TokenList.Token name , List<TokenList.Token> inputs , TokenList tokens , Sequence sequence ) { Operation.Info info; if( inputs.size() == 1 ) info = functions.create(name.getFunction().getName(),inputs.get(0).getVariable...
public class class_name { public void associate() { // initialize data structures matches.reset(); unassociatedSrc.reset(); if( srcPositive.size == 0 && srcNegative.size == 0 ) return; if( dstPositive.size == 0 && dstNegative.size == 0 ) return; // find and add the matches assoc.setSource((FastQ...
public class class_name { public void associate() { // initialize data structures matches.reset(); unassociatedSrc.reset(); if( srcPositive.size == 0 && srcNegative.size == 0 ) return; if( dstPositive.size == 0 && dstNegative.size == 0 ) return; // find and add the matches assoc.setSource((FastQ...
public class class_name { @UiThread public int getParentAdapterPosition() { int flatPosition = getAdapterPosition(); if (mExpandableAdapter == null || flatPosition == RecyclerView.NO_POSITION) { return RecyclerView.NO_POSITION; } return mExpandableAdapter.getNearestPare...
public class class_name { @UiThread public int getParentAdapterPosition() { int flatPosition = getAdapterPosition(); if (mExpandableAdapter == null || flatPosition == RecyclerView.NO_POSITION) { return RecyclerView.NO_POSITION; // depends on control dependency: [if], data = [none] ...
public class class_name { public void setKeyPhrasesDetectionJobPropertiesList(java.util.Collection<KeyPhrasesDetectionJobProperties> keyPhrasesDetectionJobPropertiesList) { if (keyPhrasesDetectionJobPropertiesList == null) { this.keyPhrasesDetectionJobPropertiesList = null; return; ...
public class class_name { public void setKeyPhrasesDetectionJobPropertiesList(java.util.Collection<KeyPhrasesDetectionJobProperties> keyPhrasesDetectionJobPropertiesList) { if (keyPhrasesDetectionJobPropertiesList == null) { this.keyPhrasesDetectionJobPropertiesList = null; // depends on control de...
public class class_name { @Override public CPDefinitionInventory fetchByCPDefinitionId(long CPDefinitionId, boolean retrieveFromCache) { Object[] finderArgs = new Object[] { CPDefinitionId }; Object result = null; if (retrieveFromCache) { result = finderCache.getResult(FINDER_PATH_FETCH_BY_CPDEFINITIONID...
public class class_name { @Override public CPDefinitionInventory fetchByCPDefinitionId(long CPDefinitionId, boolean retrieveFromCache) { Object[] finderArgs = new Object[] { CPDefinitionId }; Object result = null; if (retrieveFromCache) { result = finderCache.getResult(FINDER_PATH_FETCH_BY_CPDEFINITIONID...
public class class_name { public T headerFragment(Object model, String mapperName) { Assert.notNull(applicationContext, "Citrus application context is not initialized!"); if (applicationContext.containsBean(mapperName)) { Object mapper = applicationContext.getBean(mapperName); ...
public class class_name { public T headerFragment(Object model, String mapperName) { Assert.notNull(applicationContext, "Citrus application context is not initialized!"); if (applicationContext.containsBean(mapperName)) { Object mapper = applicationContext.getBean(mapperName); ...
public class class_name { private String getRootPath(String path, int rootLevel, ResourceResolver resourceResolver) { String rootPath = Path.getAbsoluteParent(path, rootLevel, resourceResolver); // strip off everything after first "." - root path may be passed with selectors/extension which is not relevant ...
public class class_name { private String getRootPath(String path, int rootLevel, ResourceResolver resourceResolver) { String rootPath = Path.getAbsoluteParent(path, rootLevel, resourceResolver); // strip off everything after first "." - root path may be passed with selectors/extension which is not relevant ...
public class class_name { @Override public void eventOccurred(AbstractTaskEvent event) { if (event instanceof TerminationEvent) { terminationSignaled = true; } else if (event instanceof AllWorkersDoneEvent) { AllWorkersDoneEvent wde = (AllWorkersDoneEvent) event; aggregatorNames = wde.getAggregatorName...
public class class_name { @Override public void eventOccurred(AbstractTaskEvent event) { if (event instanceof TerminationEvent) { terminationSignaled = true; // depends on control dependency: [if], data = [none] } else if (event instanceof AllWorkersDoneEvent) { AllWorkersDoneEvent wde = (AllWorkersDoneEv...
public class class_name { public Observable<ServiceResponse<Page<KeyItem>>> getKeysNextWithServiceResponseAsync(final String nextPageLink) { return getKeysNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<KeyItem>>, Observable<ServiceResponse<Page<KeyItem>>>>() { ...
public class class_name { public Observable<ServiceResponse<Page<KeyItem>>> getKeysNextWithServiceResponseAsync(final String nextPageLink) { return getKeysNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<KeyItem>>, Observable<ServiceResponse<Page<KeyItem>>>>() { ...
public class class_name { private Optional<ImmutableSubstitution<ImmutableTerm>> unifyPairs(ImmutableList<TermPair> originalPairs) { /* * Some pairs will be removed, some others will be added. */ List<TermPair> allPairs = new LinkedList<>(originalPairs); Queue<TermPair> pairs...
public class class_name { private Optional<ImmutableSubstitution<ImmutableTerm>> unifyPairs(ImmutableList<TermPair> originalPairs) { /* * Some pairs will be removed, some others will be added. */ List<TermPair> allPairs = new LinkedList<>(originalPairs); Queue<TermPair> pairs...
public class class_name { public static String format(Date date, String... patterns) { if (date == null) return ""; String pattern = TIMESTAMP_PATTERN; if (patterns != null && patterns.length > 0 && StringUtils.isNotBlank(patterns[0])) { pattern = pattern...
public class class_name { public static String format(Date date, String... patterns) { if (date == null) return ""; String pattern = TIMESTAMP_PATTERN; if (patterns != null && patterns.length > 0 && StringUtils.isNotBlank(patterns[0])) { pattern = pattern...
public class class_name { public boolean addAllValues(MultiMap<V> map) { boolean merged = false; if ((map == null) || (map.isEmpty())) { // done return merged; } for (Map.Entry<String, List<V>> entry : map.entrySet()) { String name = entry.getKey();...
public class class_name { public boolean addAllValues(MultiMap<V> map) { boolean merged = false; if ((map == null) || (map.isEmpty())) { // done return merged; // depends on control dependency: [if], data = [none] } for (Map.Entry<String, List<V>> entry : map.e...
public class class_name { public static void parseBinaryAndUnaryRules(Iterable<String> unfilteredRuleLines, List<CcgBinaryRule> binaryRules, List<CcgUnaryRule> unaryRules) { for (String line : unfilteredRuleLines) { // System.out.println(line); if (!line.startsWith("#")) { try { ...
public class class_name { public static void parseBinaryAndUnaryRules(Iterable<String> unfilteredRuleLines, List<CcgBinaryRule> binaryRules, List<CcgUnaryRule> unaryRules) { for (String line : unfilteredRuleLines) { // System.out.println(line); if (!line.startsWith("#")) { try { ...
public class class_name { public static int count(SegmentedAdvancedLoadWriteStore<?, ?> salws, IntSet segments) { Long result = Flowable.fromPublisher(salws.publishKeys(segments, null)).count().blockingGet(); if (result > Integer.MAX_VALUE) { return Integer.MAX_VALUE; } return result.i...
public class class_name { public static int count(SegmentedAdvancedLoadWriteStore<?, ?> salws, IntSet segments) { Long result = Flowable.fromPublisher(salws.publishKeys(segments, null)).count().blockingGet(); if (result > Integer.MAX_VALUE) { return Integer.MAX_VALUE; // depends on control depende...
public class class_name { @Override public final void updateThroughput(long currentTime, boolean force) { int interval = (int) (currentTime - lastThroughputCalculationTime); long minInterval = getConfig().getThroughputCalculationIntervalInMillis(); if (minInterval == 0 || interval < minInt...
public class class_name { @Override public final void updateThroughput(long currentTime, boolean force) { int interval = (int) (currentTime - lastThroughputCalculationTime); long minInterval = getConfig().getThroughputCalculationIntervalInMillis(); if (minInterval == 0 || interval < minInt...
public class class_name { public Font getFont(String fontname, String encoding, boolean embedded, float size, int style, Color color, boolean cached) { if (fontname == null) return new Font(Font.UNDEFINED, size, style, color); String lowercasefontname = fontname.toLowerCase(); ArrayList tmp = (Arr...
public class class_name { public Font getFont(String fontname, String encoding, boolean embedded, float size, int style, Color color, boolean cached) { if (fontname == null) return new Font(Font.UNDEFINED, size, style, color); String lowercasefontname = fontname.toLowerCase(); ArrayList tmp = (Arr...
public class class_name { private boolean attributeEquals(Object value, Object otherValue) { if (value == null && otherValue == null) { return true; } else if (value == null || otherValue == null) { return false; } else { if (value.getClass().isArray()) { ...
public class class_name { private boolean attributeEquals(Object value, Object otherValue) { if (value == null && otherValue == null) { return true; // depends on control dependency: [if], data = [none] } else if (value == null || otherValue == null) { return false; // depends o...
public class class_name { private boolean skipBlankAndComma() { boolean commaFound = false; while (!isEOS()) { int c = str.charAt(idx); if (c == ',') { if (commaFound) return true; else ...
public class class_name { private boolean skipBlankAndComma() { boolean commaFound = false; while (!isEOS()) { int c = str.charAt(idx); if (c == ',') { if (commaFound) return true; else ...
public class class_name { public void dump(String msg) { StringBuffer pond=new StringBuffer(); StringBuffer avail=new StringBuffer(); StringBuffer index=new StringBuffer(); pond.append("pond: "); avail.append("avail:"); index.append("index:"); ...
public class class_name { public void dump(String msg) { StringBuffer pond=new StringBuffer(); StringBuffer avail=new StringBuffer(); StringBuffer index=new StringBuffer(); pond.append("pond: "); avail.append("avail:"); index.append("index:"); ...
public class class_name { public static InputStream getResourceAsStream(String name) { InputStream stream = null; try { stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(name); } catch (SecurityException e) { LOG.info("Unable to access context c...
public class class_name { public static InputStream getResourceAsStream(String name) { InputStream stream = null; try { stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(name); // depends on control dependency: [try], data = [none] } catch (SecurityExceptio...
public class class_name { private void fireOnCancelBasic(ChannelEvent e) { List<EventListener> listeners = changes.getListenerList(AMQP); for (EventListener listener : listeners) { ChannelListener amqpListener = (ChannelListener)listener; amqpListener.onCancelBasic(e); }...
public class class_name { private void fireOnCancelBasic(ChannelEvent e) { List<EventListener> listeners = changes.getListenerList(AMQP); for (EventListener listener : listeners) { ChannelListener amqpListener = (ChannelListener)listener; amqpListener.onCancelBasic(e); // depend...
public class class_name { private Object getEnumValue(Class<?> type, Object value) { Object[] enumValues = type.getEnumConstants(); for (Object enumValue : enumValues) { if (enumValue.toString().equals(value.toString())) { value = enumValue; break; ...
public class class_name { private Object getEnumValue(Class<?> type, Object value) { Object[] enumValues = type.getEnumConstants(); for (Object enumValue : enumValues) { if (enumValue.toString().equals(value.toString())) { value = enumValue; // depends on control dependency:...
public class class_name { public static String getColumnIndexFromSaveAttr(final String saveAttr) { if ((saveAttr != null) && (!saveAttr.isEmpty())) { int iend = saveAttr.indexOf('='); if (iend > 0) { int istart = saveAttr.indexOf('$'); if (iend > istart) { return saveAttr.substring(istart + ...
public class class_name { public static String getColumnIndexFromSaveAttr(final String saveAttr) { if ((saveAttr != null) && (!saveAttr.isEmpty())) { int iend = saveAttr.indexOf('='); if (iend > 0) { int istart = saveAttr.indexOf('$'); if (iend > istart) { return saveAttr.substring(istart + ...
public class class_name { public void marshall(ProvisioningArtifactProperties provisioningArtifactProperties, ProtocolMarshaller protocolMarshaller) { if (provisioningArtifactProperties == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(ProvisioningArtifactProperties provisioningArtifactProperties, ProtocolMarshaller protocolMarshaller) { if (provisioningArtifactProperties == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public static CharSequence expandTemplate(CharSequence template, CharSequence... values) { if (values.length > 9) { throw new IllegalArgumentException("max of 9 values are supported"); } SpannableStringBuilder ...
public class class_name { public static CharSequence expandTemplate(CharSequence template, CharSequence... values) { if (values.length > 9) { throw new IllegalArgumentException("max of 9 values are supported"); } SpannableStringBuilder ...
public class class_name { @SuppressWarnings("deprecation") private void setLegacyConnectionTimeout(HttpClient client, int timeout) { if (org.apache.http.impl.client.AbstractHttpClient.class.isInstance(client)) { client.getParams().setIntParameter( org.apache.http.params.CoreConnectionPNames.CONNECTION_TIMEO...
public class class_name { @SuppressWarnings("deprecation") private void setLegacyConnectionTimeout(HttpClient client, int timeout) { if (org.apache.http.impl.client.AbstractHttpClient.class.isInstance(client)) { client.getParams().setIntParameter( org.apache.http.params.CoreConnectionPNames.CONNECTION_TIMEO...
public class class_name { public void setContainers(java.util.Collection<ContainerDefinition> containers) { if (containers == null) { this.containers = null; return; } this.containers = new java.util.ArrayList<ContainerDefinition>(containers); } }
public class class_name { public void setContainers(java.util.Collection<ContainerDefinition> containers) { if (containers == null) { this.containers = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { @NotThreadsafe private void initFileStreams(int chunkId) { /** * {@link Set#add(Object)} returns false if the element already existed in the set. * This ensures we initialize the resources for each chunk only once. */ if (chunksHandled.add(chunkI...
public class class_name { @NotThreadsafe private void initFileStreams(int chunkId) { /** * {@link Set#add(Object)} returns false if the element already existed in the set. * This ensures we initialize the resources for each chunk only once. */ if (chunksHandled.add(chunkI...
public class class_name { String getResourceName(String fileName) { // FIXME: there is probably a more robust way to do this // Strip off the directory part. String dirPath = directory.getPath(); if (!fileName.startsWith(dirPath)) { throw new IllegalStateException("Filename...
public class class_name { String getResourceName(String fileName) { // FIXME: there is probably a more robust way to do this // Strip off the directory part. String dirPath = directory.getPath(); if (!fileName.startsWith(dirPath)) { throw new IllegalStateException("Filename...
public class class_name { public void forceRemoveItems() { synchronized (locker) { for (int j = 0; j < downloadQueue.size() - getMaxLoading(); j++) { QueueHolder tmp = downloadQueue.get(j); if (tmp != null) { tmp.stopLoading(); ...
public class class_name { public void forceRemoveItems() { synchronized (locker) { for (int j = 0; j < downloadQueue.size() - getMaxLoading(); j++) { QueueHolder tmp = downloadQueue.get(j); if (tmp != null) { tmp.stopLoading(); // depends on contr...
public class class_name { @ConditionBlock public void evaluate(Runnable block) { try { block.run(); } catch (Throwable t) { exceptions.add(t); wakeUp(); } latch.countDown(); } }
public class class_name { @ConditionBlock public void evaluate(Runnable block) { try { block.run(); // depends on control dependency: [try], data = [none] } catch (Throwable t) { exceptions.add(t); wakeUp(); } // depends on control dependency: [catch], data = [none] latch.countDown(...
public class class_name { public Observable<ServiceResponse<Page<StampCapacityInner>>> listCapacitiesWithServiceResponseAsync(final String resourceGroupName, final String name) { return listCapacitiesSinglePageAsync(resourceGroupName, name) .concatMap(new Func1<ServiceResponse<Page<StampCapacityInn...
public class class_name { public Observable<ServiceResponse<Page<StampCapacityInner>>> listCapacitiesWithServiceResponseAsync(final String resourceGroupName, final String name) { return listCapacitiesSinglePageAsync(resourceGroupName, name) .concatMap(new Func1<ServiceResponse<Page<StampCapacityInn...
public class class_name { public final void removeConsumerKey(String selector, JSRemoteConsumerPoint aock) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeConsumerKey", new Object[] { selector, aock }); synchronized (this) { JSRemoteConsumerPoint aoc...
public class class_name { public final void removeConsumerKey(String selector, JSRemoteConsumerPoint aock) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeConsumerKey", new Object[] { selector, aock }); synchronized (this) { JSRemoteConsumerPoint aoc...
public class class_name { public EClass getIfcAlarmType() { if (ifcAlarmTypeEClass == null) { ifcAlarmTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(10); } return ifcAlarmTypeEClass; } }
public class class_name { public EClass getIfcAlarmType() { if (ifcAlarmTypeEClass == null) { ifcAlarmTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(10); // depends on control dependency: [if], data = [none] } return ifcAlarmTypeEClass; ...
public class class_name { public static MutableRoaringBitmap naive_and(ImmutableRoaringBitmap... bitmaps) { MutableRoaringBitmap answer; if (bitmaps.length > 0) { answer = (bitmaps[0]).toMutableRoaringBitmap(); for (int k = 1; k < bitmaps.length; ++k) { answer = ImmutableRoaringBitmap.and(...
public class class_name { public static MutableRoaringBitmap naive_and(ImmutableRoaringBitmap... bitmaps) { MutableRoaringBitmap answer; if (bitmaps.length > 0) { answer = (bitmaps[0]).toMutableRoaringBitmap(); // depends on control dependency: [if], data = [none] for (int k = 1; k < bitmaps.lengt...
public class class_name { public static File toFile(final URI filename) { if (filename == null) { return null; } final URI f = stripFragment(filename); if ("file".equals(f.getScheme()) && f.getPath() != null && f.isAbsolute()) { return new File(f); } else...
public class class_name { public static File toFile(final URI filename) { if (filename == null) { return null; // depends on control dependency: [if], data = [none] } final URI f = stripFragment(filename); if ("file".equals(f.getScheme()) && f.getPath() != null && f.isAbsolu...
public class class_name { public static String format( final String messagePattern, Object arg1, Object arg2 ) { int i = 0; int patternLength = messagePattern.length(); StringBuffer sbuf = new StringBuffer( patternLength + 50 ); for( int L = 0; L < 2; L++ ) { in...
public class class_name { public static String format( final String messagePattern, Object arg1, Object arg2 ) { int i = 0; int patternLength = messagePattern.length(); StringBuffer sbuf = new StringBuffer( patternLength + 50 ); for( int L = 0; L < 2; L++ ) { in...
public class class_name { static Timer createTimer() { try { return getInstance().doPrivileged(new PrivilegedAction<Timer>() { @Override public Timer run() { return new Timer(true); // 691649 } }); } catch (SecurityException se) { // TODO: Add logging here but be careful since this code...
public class class_name { static Timer createTimer() { try { return getInstance().doPrivileged(new PrivilegedAction<Timer>() { @Override public Timer run() { return new Timer(true); // 691649 } }); // depends on control dependency: [try], data = [none] } catch (SecurityException se) { /...
public class class_name { public void add(ShapeMarkers shapeMarkers) { for (Marker marker : shapeMarkers.getMarkers()) { add(marker, shapeMarkers); } } }
public class class_name { public void add(ShapeMarkers shapeMarkers) { for (Marker marker : shapeMarkers.getMarkers()) { add(marker, shapeMarkers); // depends on control dependency: [for], data = [marker] } } }
public class class_name { HasName findReference(String fullRefName, String enclosingNamespace) { boolean doneSearch = false; // Special case: if fullRefName begins with a period it is a fully qualified // name so just search for that (but strip off the initial dot!) if (fullR...
public class class_name { HasName findReference(String fullRefName, String enclosingNamespace) { boolean doneSearch = false; // Special case: if fullRefName begins with a period it is a fully qualified // name so just search for that (but strip off the initial dot!) if (fullR...
public class class_name { public void marshall(SqlApplicationConfigurationDescription sqlApplicationConfigurationDescription, ProtocolMarshaller protocolMarshaller) { if (sqlApplicationConfigurationDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { public void marshall(SqlApplicationConfigurationDescription sqlApplicationConfigurationDescription, ProtocolMarshaller protocolMarshaller) { if (sqlApplicationConfigurationDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { private void gridSearch(Grid<MP> grid) { Model model = null; // Prepare nice model key and override default key by appending model counter //String protoModelKey = _hyperSpaceWalker.getParams()._model_id == null // ? grid._key + "_model_" // ...
public class class_name { private void gridSearch(Grid<MP> grid) { Model model = null; // Prepare nice model key and override default key by appending model counter //String protoModelKey = _hyperSpaceWalker.getParams()._model_id == null // ? grid._key + "_model_" // ...
public class class_name { public static String toTimeString(int hour, int minute, int second) { String hourStr; String minuteStr; String secondStr; if (hour < 10) { hourStr = "0" + hour; } else { hourStr = "" + hour; } if (minute < 10) { minuteStr = "0" + minute; } else { minu...
public class class_name { public static String toTimeString(int hour, int minute, int second) { String hourStr; String minuteStr; String secondStr; if (hour < 10) { hourStr = "0" + hour; // depends on control dependency: [if], data = [none] } else { hourStr = "" + hour; // depends on control ...
public class class_name { public static synchronized PingManager getInstanceFor(XMPPConnection connection) { PingManager pingManager = INSTANCES.get(connection); if (pingManager == null) { pingManager = new PingManager(connection); INSTANCES.put(connection, pingManager); ...
public class class_name { public static synchronized PingManager getInstanceFor(XMPPConnection connection) { PingManager pingManager = INSTANCES.get(connection); if (pingManager == null) { pingManager = new PingManager(connection); // depends on control dependency: [if], data = [none] ...
public class class_name { public static Web3j generateClient(String clientAddress, Long timeoutSeconds) { if (isEmpty(clientAddress)) { throw new IllegalArgumentException("You have to define client address, use constructor or environment variable 'web3j.clientAddress'"); } Web3jS...
public class class_name { public static Web3j generateClient(String clientAddress, Long timeoutSeconds) { if (isEmpty(clientAddress)) { throw new IllegalArgumentException("You have to define client address, use constructor or environment variable 'web3j.clientAddress'"); } Web3jS...
public class class_name { @SuppressWarnings( "unchecked" ) private <T> Class<T> loadClassIfVisible( String className, ClassLoader classLoader ) { try { Class<T> klass = (Class<T>) classLoader.loadClass( className ); return klass; } catch ( ClassNotFoundEx...
public class class_name { @SuppressWarnings( "unchecked" ) private <T> Class<T> loadClassIfVisible( String className, ClassLoader classLoader ) { try { Class<T> klass = (Class<T>) classLoader.loadClass( className ); // depends on control dependency: [try], data = [none] ...
public class class_name { public Boolean getEffectiveInternalSSL() { if (m_internalSSL != null) { return m_internalSSL; } else if (m_defaultConfig != null) { return m_defaultConfig.getEffectiveCallSSL(); } else { return Boolean.FALSE; } } }
public class class_name { public Boolean getEffectiveInternalSSL() { if (m_internalSSL != null) { return m_internalSSL; // depends on control dependency: [if], data = [none] } else if (m_defaultConfig != null) { return m_defaultConfig.getEffectiveCallSSL(); // depends on control...
public class class_name { public void updateVirtualLinkDefinition(VirtualLinkDefinition newVirtualLinkDefinition) throws SIIncorrectCallException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateVirtualLinkDefinition", ...
public class class_name { public void updateVirtualLinkDefinition(VirtualLinkDefinition newVirtualLinkDefinition) throws SIIncorrectCallException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateVirtualLinkDefinition", ...
public class class_name { public static <T extends Object> T getFieldValue(Object context, Class<T> expectedType, Field field) { if (!field.isAccessible()) { StringBuilder msg = new StringBuilder(); msg.append("Forcing accessibility for field "); msg.append(field.getName(...
public class class_name { public static <T extends Object> T getFieldValue(Object context, Class<T> expectedType, Field field) { if (!field.isAccessible()) { StringBuilder msg = new StringBuilder(); msg.append("Forcing accessibility for field "); // depends on control depend...
public class class_name { public JsonElement get(String label) { int i = 0; try{ for (JsonElement e : this) { if(e.isPrimitive() && e.asPrimitive().asString().equals(label)) { return e; } else if((e.isObject() || e.isArray()) && Integer.v...
public class class_name { public JsonElement get(String label) { int i = 0; try{ for (JsonElement e : this) { if(e.isPrimitive() && e.asPrimitive().asString().equals(label)) { return e; // depends on control dependency: [if], data = [none] ...
public class class_name { public static Set<Class<?>> scanForAnnotatedClasses(final File directory, final String packagePath, final Class<? extends Annotation> annotationClass) throws ClassNotFoundException { final Set<Class<?>> foundClasses = new HashSet<>(); if (!directory.exists()) { return foundClass...
public class class_name { public static Set<Class<?>> scanForAnnotatedClasses(final File directory, final String packagePath, final Class<? extends Annotation> annotationClass) throws ClassNotFoundException { final Set<Class<?>> foundClasses = new HashSet<>(); if (!directory.exists()) { return foundClass...
public class class_name { @Override public void internalInitialize(BeanDeployerEnvironment environment) { preInitialize(); BeanLogger.LOG.creatingBean(getType()); if (getScope() != null) { proxyRequired = isNormalScoped(); } else { proxyRequired = false; ...
public class class_name { @Override public void internalInitialize(BeanDeployerEnvironment environment) { preInitialize(); BeanLogger.LOG.creatingBean(getType()); if (getScope() != null) { proxyRequired = isNormalScoped(); // depends on control dependency: [if], data = [none] ...
public class class_name { public static BundleRendererContext getBundleRendererContext(HttpServletRequest request, BundleRenderer renderer) { String bundleRendererCtxAttributeName = BUNDLE_RENDERER_CONTEXT_ATTR_PREFIX + renderer.getResourceType(); // If we are handling an error dispatch, we should remove the curr...
public class class_name { public static BundleRendererContext getBundleRendererContext(HttpServletRequest request, BundleRenderer renderer) { String bundleRendererCtxAttributeName = BUNDLE_RENDERER_CONTEXT_ATTR_PREFIX + renderer.getResourceType(); // If we are handling an error dispatch, we should remove the curr...
public class class_name { public List getSelectedBeans() { ArrayList<Object> list = new ArrayList<>(); int[] viewRowIndices = jtable.getSelectedRows(); for (int viewRowIndex : viewRowIndices) { int modelRowIndex = jtable.convertRowIndexToModel(viewRowIndex); list.add(beans.get(modelRowIndex)); ...
public class class_name { public List getSelectedBeans() { ArrayList<Object> list = new ArrayList<>(); int[] viewRowIndices = jtable.getSelectedRows(); for (int viewRowIndex : viewRowIndices) { int modelRowIndex = jtable.convertRowIndexToModel(viewRowIndex); list.add(beans.get(modelRowIndex)); ...
public class class_name { private IConsoleColorProvider getColorProvider(String type) { if (fColorProviders == null) { fColorProviders = new HashMap<String, IConfigurationElement>(); IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(IDebugUIConstants.PLUGIN_ID, IDebugUIConst...
public class class_name { private IConsoleColorProvider getColorProvider(String type) { if (fColorProviders == null) { fColorProviders = new HashMap<String, IConfigurationElement>(); // depends on control dependency: [if], data = [none] IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExt...
public class class_name { public ListResourceRecordSetsResult withResourceRecordSets(ResourceRecordSet... resourceRecordSets) { if (this.resourceRecordSets == null) { setResourceRecordSets(new com.amazonaws.internal.SdkInternalList<ResourceRecordSet>(resourceRecordSets.length)); } f...
public class class_name { public ListResourceRecordSetsResult withResourceRecordSets(ResourceRecordSet... resourceRecordSets) { if (this.resourceRecordSets == null) { setResourceRecordSets(new com.amazonaws.internal.SdkInternalList<ResourceRecordSet>(resourceRecordSets.length)); // depends on contr...
public class class_name { public void addInputDeletions(VersionEdit edit) { for (FileMetaData input : levelInputs) { edit.deleteFile(level, input.getNumber()); } for (FileMetaData input : levelUpInputs) { edit.deleteFile(level + 1, input.getNumber()); } }...
public class class_name { public void addInputDeletions(VersionEdit edit) { for (FileMetaData input : levelInputs) { edit.deleteFile(level, input.getNumber()); // depends on control dependency: [for], data = [input] } for (FileMetaData input : levelUpInputs) { edit.d...
public class class_name { private static void doFieldMapping(BeanMappingParam param, BeanMappingField beanField, BatchObjectHolder holder) { // 定义valueContext ValueProcessContext valueContext = new ValueProcessContext(param, param.getConfig(), beanField, holder, ...
public class class_name { private static void doFieldMapping(BeanMappingParam param, BeanMappingField beanField, BatchObjectHolder holder) { // 定义valueContext ValueProcessContext valueContext = new ValueProcessContext(param, param.getConfig(), beanField, holder, ...
public class class_name { public static Type resolveRawGeneric(final TypeVariable variable, final LinkedHashMap<String, Type> generics) { final Type res; if (variable.getBounds().length > 1) { // case: T extends A & B --> ? extends A & B ...
public class class_name { public static Type resolveRawGeneric(final TypeVariable variable, final LinkedHashMap<String, Type> generics) { final Type res; if (variable.getBounds().length > 1) { // case: T extends A & B --> ? extends A & B ...