instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
protected static void handleTaskCountsForIdentityLinkDeletion(TaskEntity taskEntity, IdentityLinkEntity identityLink) { if (CountingEntityUtil.isTaskRelatedEntityCountEnabledGlobally()) { CountingTaskEntity countingTaskEntity = (CountingTaskEntity) taskEntity; if (CountingEntityUtil.isTa...
if (identityLinkEntity.isUser()) { data.put("userId", identityLinkEntity.getUserId()); } else if (identityLinkEntity.isGroup()) { data.put("groupId", identityLinkEntity.getGroupId()); } data.put("type", identityLinkEntity.getType()); taskLo...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\util\IdentityLinkUtil.java
1
请完成以下Java代码
public class OptionFormField extends FormField { private static final long serialVersionUID = 1L; protected String optionType; protected Boolean hasEmptyValue; protected List<Option> options; protected String optionsExpression; public String getOptionType() { return optionType; } ...
return options; } public void setOptions(List<Option> options) { this.options = options; } public String getOptionsExpression() { return optionsExpression; } public void setOptionsExpression(String optionsExpression) { this.optionsExpression = optionsExpression...
repos\flowable-engine-main\modules\flowable-form-model\src\main\java\org\flowable\form\model\OptionFormField.java
1
请完成以下Java代码
public static ConstantWorkpackagePrio urgent() { return prio2strategy.get(X_C_Queue_WorkPackage.PRIORITY_Urgent); } public static ConstantWorkpackagePrio high() { return prio2strategy.get(X_C_Queue_WorkPackage.PRIORITY_High); } public static ConstantWorkpackagePrio medium() { return prio2strategy.get(X_C...
{ return getPriority(); } public String getPriority() { return prio; } @Override public String toString() { return "ConstantWorkpackagePrio[" + prio + "]"; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\spi\impl\ConstantWorkpackagePrio.java
1
请完成以下Java代码
public class ZxingBarcodeGeneratorWithText { public static BufferedImage createQRwithText(String data, String topText, String bottomText) throws WriterException, IOException { QRCodeWriter barcodeWriter = new QRCodeWriter(); BitMatrix matrix = barcodeWriter.encode(data, BarcodeFormat.QR_CODE, 200, ...
FontMetrics fontMetrics = graphics.getFontMetrics(); int topTextWidth = fontMetrics.stringWidth(topText); int bottomTextWidth = fontMetrics.stringWidth(bottomText); int finalWidth = Math.max(matrixWidth, Math.max(topTextWidth, bottomTextWidth)) + 1; int finalHeight = matrixHeight + fontM...
repos\tutorials-master\spring-boot-modules\spring-boot-libraries\src\main\java\com\baeldung\barcodes\generators\ZxingBarcodeGeneratorWithText.java
1
请完成以下Java代码
public Map<String, Collection<ITableRecordReference>> getRecords() { return records; } public Collection<ITableRecordReference> getRecordsWithTable(final String referencedTableName) { return records.getOrDefault(referencedTableName, Collections.emptyList()); } public boolean isRecordsChanged() { return r...
return "Partition [DLM_Partition_ID=" + DLM_Partition_ID + ", records.size()=" + records.size() + ", recordsChanged=" + recordsChanged + ", configChanged=" + configChanged + ", targetDLMLevel=" + targetDLMLevel + ", currentDLMLevel=" + currentDLMLevel + ", nextInspectionDate=" + nextInspectionDate + "]"; } public st...
repos\metasfresh-new_dawn_uat\backend\de.metas.dlm\base\src\main\java\de\metas\dlm\Partition.java
1
请完成以下Java代码
protected Row computeNext() { maybeMoveToNextPage(); return currentRows.hasNext() ? currentRows.next() : endOfData(); } private void maybeMoveToNextPage() { if (!currentRows.hasNext() && currentPage.hasMorePages()) { BlockingOperation.checkNotDriverTh...
// The definitions can change from page to page if this result set was built from a bound // 'SELECT *', and the schema was altered. columnDefinitions = nextPage.getColumnDefinitions(); } } private boolean isFullyFetched() { return !currentPage.ha...
repos\thingsboard-master\common\dao-api\src\main\java\org\thingsboard\server\dao\cassandra\guava\GuavaMultiPageResultSet.java
1
请完成以下Java代码
public class CarServiceEjbSingleton { private static Logger LOG = LoggerFactory.getLogger(CarServiceEjbSingleton.class); private UUID id = UUID.randomUUID(); private static int serviceQueue; public UUID getId() { return this.id; } @Override public String toString() { ret...
serviceQueue++; LOG.info("Car {} is being serviced @ CarServiceEjbSingleton - serviceQueue: {}", car, serviceQueue); simulateService(car); serviceQueue--; LOG.info("Car service for {} is completed - serviceQueue: {}", car, serviceQueue); return serviceQueue; } privat...
repos\tutorials-master\web-modules\jee-7\src\main\java\com\baeldung\singleton\CarServiceEjbSingleton.java
1
请完成以下Java代码
protected EventSubscriptionEntityManager getEventSubscriptionEntityManager() { return getProcessEngineConfiguration().getEventSubscriptionEntityManager(); } protected VariableInstanceEntityManager getVariableInstanceEntityManager() { return getProcessEngineConfiguration().getVariableInstanceEnt...
protected HistoricTaskInstanceEntityManager getHistoricTaskInstanceEntityManager() { return getProcessEngineConfiguration().getHistoricTaskInstanceEntityManager(); } protected HistoricIdentityLinkEntityManager getHistoricIdentityLinkEntityManager() { return getProcessEngineConfiguration().getHi...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\AbstractManager.java
1
请完成以下Java代码
private void doPress (JLabel label) { Component labelFor = label.getLabelFor (); if (labelFor != null && labelFor.isEnabled ()) { Component owner = label.getLabelFor (); if (owner instanceof Container && ((Container)owner).isFocusCycleRoot ()) { owner.requestFocus (); } else ...
} } } if (owner.isFocusable()) { owner.requestFocus(); return; } // No Forcus } } } // doPress } // PressAction } // AdempiereLabelUI
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\plaf\AdempiereLabelUI.java
1
请完成以下Java代码
public void mouseEntered(MouseEvent e) { } /* (non-Javadoc) * @see java.awt.event.MouseListener#mouseExited(java.awt.event.MouseEvent) */ @Override public void mouseExited(MouseEvent e) { } /* (non-Javadoc) * @see java.awt.event.MouseListener#mousePressed(java.awt.event.MouseEvent) */ @Override public...
} } class PageLoader implements Runnable { private JEditorPane html; private URL url; private Cursor cursor; PageLoader( JEditorPane html, URL url, Cursor cursor ) { this.html = html; this.url = url; this.cursor = cursor; } @Override p...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\adempiere\apps\graph\HtmlDashboard.java
1
请完成以下Java代码
private static class DefaultRetrieveSubscriptionSpec extends RetrieveSpecSupport implements RetrieveSubscriptionSpec { private final Flux<ClientGraphQlResponse> responseFlux; DefaultRetrieveSubscriptionSpec(Flux<ClientGraphQlResponse> responseFlux, String path) { super(path); this.responseFlux = responseFlu...
return (field != null) ? field.toEntityList(elementType) : Collections.emptyList(); }); } @Override public <D> Flux<List<D>> toEntityList(ParameterizedTypeReference<D> elementType) { return this.responseFlux.map((response) -> { ClientResponseField field = getValidField(response); return (field != n...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\client\DefaultGraphQlClient.java
1
请完成以下Java代码
public boolean exists() { return this.delegate.exists(); } @Override public Spliterator<Resource> spliterator() { return this.delegate.spliterator(); } @Override public boolean isDirectory() { return this.delegate.isDirectory(); } @Override public boolean isReadable() { return this.delegate.isReadab...
private Resource asLoaderHidingResource(Resource resource) { return (resource instanceof LoaderHidingResource) ? resource : new LoaderHidingResource(this.base, resource); } @Override public @Nullable Resource resolve(String subUriPath) { if (subUriPath.startsWith(LOADER_RESOURCE_PATH_PREFIX)) { return null; ...
repos\spring-boot-4.0.1\module\spring-boot-jetty\src\main\java\org\springframework\boot\jetty\servlet\LoaderHidingResource.java
1
请完成以下Java代码
public String getId() { return id; } public List<String> getIds() { return ids; } public String getTokenValue() { return tokenValue; } public Date getTokenDate() { return tokenDate; } public Date getTokenDateBefore() { return tokenDateBefore; ...
public String getUserAgent() { return userAgent; } public String getUserAgentLike() { return userAgentLike; } public String getUserId() { return userId; } public String getUserIdLike() { return userIdLike; } public String getTokenData() { retur...
repos\flowable-engine-main\modules\flowable-idm-engine\src\main\java\org\flowable\idm\engine\impl\TokenQueryImpl.java
1
请完成以下Java代码
public static <V> V getAndValidate(@NonNull final Properties ctx, final String propertyName, final Predicate<V> validator, final Supplier<V> valueInitializer) { // NOTE: we a synchronizing on "ctx" because the Hashtable methods of "Properties ctx" are declared as "synchronized" // and we want to get the same effec...
} /** * Checks if given key is contained in context. * <p> * WARNING: this method is NOT checking the key exists in underlying "defaults". Before changing this please check the API which depends on this logic * * @return true if given key is contained in context */ public static boolean containsKey(final...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\util\Env.java
1
请完成以下Java代码
public Object getReferencedObject(final String propertyName, final Method interfaceMethod) throws Exception { final Class<?> returnType = interfaceMethod.getReturnType(); return po.get_ValueAsPO(propertyName, returnType); } @Override public void setValueFromPO(final String idPropertyName, final Class<?> parame...
{ return method.invoke(po, methodArgs); } @Override public boolean isCalculated(final String columnName) { return getPOInfo().isCalculated(columnName); } @Override public boolean hasColumnName(final String columnName) { return getPOInfo().hasColumnName(columnName); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\wrapper\POModelInternalAccessor.java
1
请完成以下Java代码
private Map<ColumnNamePair, Object> extractModelValues(final Object model) { final Map<ColumnNamePair, Object> modelValues = new HashMap<>(); for (final ColumnNamePair matcher : matchers) { final String columnName = matcher.getColumnName(); final IQueryFilterModifier modifier = matcher.getModifier(); f...
public static final class Builder<T> { private String tableName; private final List<ColumnNamePair> matchers = new ArrayList<>(); private IQuery<?> subQuery; private Builder() { } public InSubQueryFilter<T> build() { return new InSubQueryFilter<>(this); } public Builder<T> tableName(final Str...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\dao\impl\InSubQueryFilter.java
1
请完成以下Java代码
public HistoricProcessInstanceQuery active() { if(!isOrQueryActive) { ensureEmpty(BadUserRequestException.class, "Already querying for historic process instance with another state", state); } state.add(HistoricProcessInstance.STATE_ACTIVE); return this; } @Override public HistoricProcessIns...
} state.add(HistoricProcessInstance.STATE_INTERNALLY_TERMINATED); return this; } @Override public HistoricProcessInstanceQuery or() { if (this != queries.get(0)) { throw new ProcessEngineException("Invalid query usage: cannot set or() within 'or' query"); } HistoricProcessInstanceQuery...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\HistoricProcessInstanceQueryImpl.java
1
请完成以下Java代码
public void setC_Payment_ID (int C_Payment_ID) { if (C_Payment_ID < 1) set_Value (COLUMNNAME_C_Payment_ID, null); else set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); } /** Get Payment. @return Payment identifier */ public int getC_Payment_ID () { Integer ii = (Integer)get_...
{ set_Value (COLUMNNAME_NonCommittedAmt, NonCommittedAmt); } /** Get Not Committed Aount. @return Amount not committed yet */ public BigDecimal getNonCommittedAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_NonCommittedAmt); if (bd == null) return Env.ZERO; return bd; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_B_SellerFunds.java
1
请完成以下Java代码
private RequestTypeId getRequestTypeId(final SOTrx soTrx) { return soTrx.isSales() ? requestTypeDAO.retrieveCustomerRequestTypeId() : requestTypeDAO.retrieveVendorRequestTypeId(); } @Override public I_R_Request createRequestFromDDOrderLine(@NonNull final I_DD_OrderLine ddOrderLine) { final I_DD_Order ...
final RequestCandidate requestCandidate = RequestCandidate.builder() .summary(order.getDescription() != null ? order.getDescription() : " ") .confidentialType(RequestConfidentialType.Internal) .orgId(OrgId.ofRepoId(order.getAD_Org_ID())) .recordRef(TableRecordReference.of(order)) .requestTypeId(requ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\request\api\impl\RequestBL.java
1
请完成以下Java代码
public final boolean isAuthenticated() { return !isAnonymous(); } @Override public final boolean isRememberMe() { return trustResolver.isRememberMe(authentication); } @Override public final boolean isFullyAuthenticated() { return !trustResolver.isAnonymous(authenticatio...
return role; } return defaultRolePrefix + role; } @Override public Object getFilterObject() { return this.filterObject; } @Override public Object getReturnObject() { return this.returnObject; } @Override public Object getThis() { return this...
repos\tutorials-master\spring-security-modules\spring-security-web-boot-1\src\main\java\com\baeldung\roles\custom\security\MySecurityExpressionRoot.java
1
请完成以下Java代码
public class LdapUserQueryImpl extends UserQueryImpl { private static final long serialVersionUID = 1L; private final LdapConfiguration ldapConfiguration; public LdapUserQueryImpl(LdapConfiguration ldapConfiguration) { super(); this.ldapConfiguration = ldapConfiguration; } public LdapUserQueryImpl(...
protected LdapIdentityProviderSession getLdapIdentityProvider(CommandContext commandContext) { return (LdapIdentityProviderSession) commandContext.getReadOnlyIdentityProvider(); } @Override public UserQuery desc() { // provide this exception then a popup will be visible in the admin task, but display wil...
repos\camunda-bpm-platform-master\engine-plugins\identity-ldap\src\main\java\org\camunda\bpm\identity\impl\ldap\LdapUserQueryImpl.java
1
请完成以下Java代码
protected String getEngineVersion() { return EventRegistryEngine.VERSION; } @Override protected String getSchemaVersionPropertyName() { return "eventregistry.schema.version"; } @Override protected String getDbSchemaLockName() { return EVENTREGISTRY_DB_SCHEMA_LOCK_NAME; ...
@Override protected String getDbVersionForChangelogVersion(String changeLogVersion) { if (StringUtils.isNotEmpty(changeLogVersion) && changeLogVersionMap.containsKey(changeLogVersion)) { return changeLogVersionMap.get(changeLogVersion); } return "6.5.0.0"; } @Override ...
repos\flowable-engine-main\modules\flowable-event-registry\src\main\java\org\flowable\eventregistry\impl\db\EventDbSchemaManager.java
1
请在Spring Boot框架中完成以下Java代码
public class User { @Id @GeneratedValue private long id; @Column(nullable = false) private String username; @Column(nullable = false) private String password; private int active; private String roles =""; private String permissions =""; public User(){} public User...
public void setPassword(String password) { this.password = password; } public int getActive() { return active; } public void setActive(int active) { this.active = active; } public List<String> getRoleList() { if(this.roles.length() > 0) { return Array...
repos\SpringBoot-Projects-FullStack-master\Part-6 Spring Boot Security\10.SpringCustomLogin\src\main\java\spring\custom\model\User.java
2
请完成以下Java代码
public MQMSpecificationLine[] getLines(String where) { if (m_lines != null) return m_lines; ArrayList<MQMSpecificationLine> list = new ArrayList<>(); String sql = "SELECT * FROM QM_SpecificationLine WHERE QM_SpecificationLine_ID=? AND "+ where +" ORDER BY Line"; PreparedStatement pstmt = null; try { ...
// MAttributeInstance instance = attribute.getMAttributeInstance(M_AttributeSetInstance_ID); // MQMSpecificationLine[] lines = getLines(" M_Attribute_ID="+attribute.getM_Attribute_ID()); // for (int s = 0; s < lines.length; i++) // { // MQMSpecificationLine line = lines[s]; // if (MAttribute.ATTRIBUTEVALU...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\model\MQMSpecification.java
1
请完成以下Java代码
public class X_M_QualityInsp_LagerKonf extends org.compiere.model.PO implements I_M_QualityInsp_LagerKonf, org.compiere.model.I_Persistent { /** * */ private static final long serialVersionUID = -1359568399L; /** Standard Constructor */ public X_M_QualityInsp_LagerKonf (Properties ctx, int M_QualityIns...
/** Set Lagerkonferenz. @param M_QualityInsp_LagerKonf_ID Lagerkonferenz */ @Override public void setM_QualityInsp_LagerKonf_ID (int M_QualityInsp_LagerKonf_ID) { if (M_QualityInsp_LagerKonf_ID < 1) set_ValueNoCheck (COLUMNNAME_M_QualityInsp_LagerKonf_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Qu...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java-gen\de\metas\materialtracking\ch\lagerkonf\model\X_M_QualityInsp_LagerKonf.java
1
请在Spring Boot框架中完成以下Java代码
public class SpringContextUtil implements ApplicationContextAware { private static ApplicationContext applicationContext; @Override public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { SpringContextUtil.applicationContext = applicationContext; } public static Object ...
return applicationContext.getBean(name, requiredType); } public static boolean containsBean(String name) { return applicationContext.containsBean(name); } public static boolean isSingleton(String name) { return applicationContext.isSingleton(name); } public static Class<?> getType(String name) { return a...
repos\SpringAll-master\62.Spring-Boot-Shiro-JWT\src\main\java\com\example\demo\utils\SpringContextUtil.java
2
请完成以下Java代码
static final class Builder implements org.apache.logging.log4j.core.util.Builder<SpringProfileArbiter> { private static final Logger statusLogger = StatusLogger.getLogger(); @PluginBuilderAttribute @SuppressWarnings("NullAway.Init") private String name; @PluginConfiguration @SuppressWarnings("NullAway.In...
statusLogger.debug("Creating Arbiter without a Spring Environment"); } String name = this.configuration.getStrSubstitutor().replace(this.name); String[] profiles = trimArrayElements(StringUtils.commaDelimitedListToStringArray(name)); return new SpringProfileArbiter(environment, profiles); } // The arra...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\logging\log4j2\SpringProfileArbiter.java
1
请在Spring Boot框架中完成以下Java代码
public class BankStatementId implements RepoIdAware { int repoId; @NonNull @JsonCreator public static BankStatementId ofRepoId(final int repoId) { return new BankStatementId(repoId); } @Nullable public static BankStatementId ofRepoIdOrNull(final int repoId) { return repoId > 0 ? ofRepoId(repoId) : null; ...
.collect(ImmutableSet.toImmutableSet()); } } private BankStatementId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "C_BankStatement_ID"); } @Override @JsonValue public int getRepoId() { return repoId; } public static boolean equals(@Nullable BankStatementId id1, @Nullable Bank...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\banking\BankStatementId.java
2
请完成以下Java代码
public boolean isAccountNonExpired() { return true; } @Override @JsonIgnore public boolean isAccountNonLocked() { return true; } @Override @JsonIgnore public boolean isCredentialsNonExpired() { return true; } @Override @JsonIgnore public boolean...
} public String getTelephone() { return telephone; } public void setTelephone(String telephone) { this.telephone = telephone; } public String getMobilePhone() { return mobilePhone; } public void setMobilePhone(String mobilePhone) { this.mobilePhone = mobil...
repos\springBoot-master\springboot-springSecurity4\src\main\java\com\yy\example\bean\User.java
1
请在Spring Boot框架中完成以下Java代码
public class UserController { @Autowired private UserDao _userDao; @RequestMapping(value="/delete") @ResponseBody public String delete(long id) { try { User user = new User(id); _userDao.delete(user); } catch(Exception ex) { return ex.getMessage(); } return "User succ...
return "The user id is: " + userId; } @RequestMapping(value="/save") @ResponseBody public String create(String email, String name) { try { User user = new User(email, name); _userDao.save(user); } catch(Exception ex) { return ex.getMessage(); } return "User succesfully sav...
repos\spring-boot-samples-master\spring-boot-mysql-hibernate\src\main\java\netgloo\controllers\UserController.java
2
请完成以下Java代码
public void setA_User8 (String A_User8) { set_Value (COLUMNNAME_A_User8, A_User8); } /** Get A_User8. @return A_User8 */ public String getA_User8 () { return (String)get_Value(COLUMNNAME_A_User8); } /** Set A_User9. @param A_User9 A_User9 */ public void setA_User9 (String A_User9) { set_Value ...
/** Set Text. @param Text Text */ public void setText (String Text) { set_Value (COLUMNNAME_Text, Text); } /** Get Text. @return Text */ public String getText () { return (String)get_Value(COLUMNNAME_Text); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Info_Oth.java
1
请在Spring Boot框架中完成以下Java代码
public Amount getTax() { return tax; } public void setTax(Amount tax) { this.tax = tax; } public PricingSummary total(Amount total) { this.total = total; return this; } /** * Get total * * @return total **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public Amount getTotal...
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PricingSummary {\n"); sb.append(" adjustment: ").append(toIndentedString(adjustment)).append("\n"); sb.append(" deliveryCost: ").append(toIndentedString(deliveryCost)).append("\n"); sb.append(" deliveryDis...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-ebay\ebay-api-client\src\main\java\de\metas\camel\externalsystems\ebay\api\model\PricingSummary.java
2
请完成以下Java代码
public DocumentFilterDescriptorsProvider createFiltersProvider(@NonNull final CreateFiltersProviderContext context) { return StringUtils.trimBlankToOptional(context.getTableName()) .map(this::createFiltersProvider) .orElse(null); } @Nullable private DocumentFilterDescriptorsProvider createFiltersProvider...
final ITranslatableString caption = msgBL.getTranslatableMsgText(MSG_FULL_TEXT_SEARCH_CAPTION); return ImmutableDocumentFilterDescriptorsProvider.of( DocumentFilterDescriptor.builder() .setFilterId(FILTER_ID) .setSortNo(DocumentFilterDescriptorsConstants.SORT_NO_FULL_TEXT_SEARCH) .setDisplayNam...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\document\filter\provider\fullTextSearch\FTSDocumentFilterDescriptorsProviderFactory.java
1
请完成以下Java代码
public class CustomRegisteredClientRepository implements RegisteredClientRepository { private final RegisteredClientRepository delegate; @Override public void save(RegisteredClient registeredClient) { log.info("Saving registered client: id={}, name={}", registeredClient.getClientId(), ...
delegate.save(modifiedClient); } @Override public RegisteredClient findById(String id) { return delegate.findByClientId(id); } /** * Returns the registered client identified by the provided {@code clientId}, * or {@code null} if not found. * * @param clientId * t...
repos\tutorials-master\spring-security-modules\spring-security-dynamic-registration\oauth2-authorization-server\src\main\java\com\baeldung\spring\security\authserver\repository\CustomRegisteredClientRepository.java
1
请完成以下Java代码
public final class LinkMapper { private static final JsonNodeFactory nodeFactory = JsonNodeFactory.instance; private LinkMapper() { } /** * Map the specified links to a json model. If several links share the same relation, * they are grouped together. * @param links the links to map * @return a model for...
root.add(node); }); result.set(rel, root); } }); return result; } private static void mapLink(Link link, ObjectNode node) { node.put("href", link.getHref()); if (link.isTemplated()) { node.put("templated", true); } if (link.getDescription() != null) { node.put("title", link.getDescriptio...
repos\initializr-main\initializr-web\src\main\java\io\spring\initializr\web\mapper\LinkMapper.java
1
请完成以下Java代码
public Builder setDocumentId(final String documentIdStr) { setDocumentId(DocumentId.ofStringOrEmpty(documentIdStr)); return this; } public Builder setDocumentId(final DocumentId documentId) { this.documentId = documentId; return this; } public Builder allowNewDocumentId() { documentId_all...
} public Builder setRowIds(final DocumentIdsSelection rowIds) { this.rowIds.clear(); this.rowIds.addAll(rowIds.toSet()); return this; } public Builder allowNullRowId() { rowId_allowNull = true; return this; } public Builder allowNewRowId() { rowId_allowNew = true; return this; ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\datatypes\DocumentPath.java
1
请完成以下Java代码
public class Utils { private static final Logger LOGGER = LoggerFactory.getLogger(Utils.class); public static String getHostName() { final String DEFAULT_HOST = "localhost"; String hostName = null; boolean canAccessSystemProps = true; try { // we'll do it this way...
if (canAccessSystemProps) { try { hostName = InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException uhe) { LOGGER.info("Cannot determine localhost name. Fallback to: " + DEFAULT_HOST, uhe); hostName = DEFAULT_HOST; } ...
repos\flowable-engine-main\modules\flowable-jmx\src\main\java\org\flowable\management\jmx\Utils.java
1
请在Spring Boot框架中完成以下Java代码
public void updateById( @NonNull final SAPGLJournalId id, @NonNull Consumer<SAPGLJournal> consumer) { updateById( id, glJournal -> { consumer.accept(glJournal); return null; // N/A }); } public <R> R updateById( @NonNull final SAPGLJournalId id, @NonNull Function<SAPGLJournal, R>...
headerRecord.setTotalCr(createRequest.getTotalAcctCR().toBigDecimal()); headerRecord.setC_DocType_ID(createRequest.getDocTypeId().getRepoId()); headerRecord.setC_AcctSchema_ID(createRequest.getAcctSchemaId().getRepoId()); headerRecord.setPostingType(createRequest.getPostingType().getCode()); headerRecord.setAD_...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\gljournal_sap\service\SAPGLJournalLoaderAndSaver.java
2
请完成以下Java代码
default ConfigurationPropertySource filter(Predicate<ConfigurationPropertyName> filter) { return new FilteredConfigurationPropertiesSource(this, filter); } /** * Return a variant of this source that supports name aliases. * @param aliases a function that returns a stream of aliases for any given name * @retu...
default @Nullable Object getUnderlyingSource() { return null; } /** * Return a single new {@link ConfigurationPropertySource} adapted from the given * Spring {@link PropertySource} or {@code null} if the source cannot be adapted. * @param source the Spring property source to adapt * @return an adapted sour...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\properties\source\ConfigurationPropertySource.java
1
请完成以下Java代码
public class RangeDatesIteration { private static final Logger log = LoggerFactory.getLogger(RangeDatesIteration.class); public void iterateBetweenDatesJava9(LocalDate startDate, LocalDate endDate) { startDate.datesUntil(endDate) .forEach(this::processDate); } public void iterateB...
Calendar calendar = Calendar.getInstance(); calendar.setTime(current); calendar.add(Calendar.DATE, 1); current = calendar.getTime(); } } private void processDate(LocalDate date) { log.debug(date.toString()); } private void processDate(Date date) { ...
repos\tutorials-master\core-java-modules\core-java-9\src\main\java\com\baeldung\java9\rangedates\RangeDatesIteration.java
1
请完成以下Java代码
public class DocumentsType { @XmlElement(required = true) protected List<DocumentType> document; @XmlAttribute(name = "number", required = true) @XmlSchemaType(name = "unsignedLong") protected BigInteger number; /** * Gets the value of the document property. * * <p> * This...
* * @return * possible object is * {@link BigInteger } * */ public BigInteger getNumber() { return number; } /** * Sets the value of the number property. * * @param value * allowed object is * {@link BigInteger } * ...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_450_response\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_450\response\DocumentsType.java
1
请完成以下Java代码
public class BufferedRateExecutorStats { private static final String TENANT_ID_TAG = "tenantId"; private static final String TOTAL_ADDED = "totalAdded"; private static final String TOTAL_LAUNCHED = "totalLaunched"; private static final String TOTAL_RELEASED = "totalReleased"; private static final ...
this.totalFailed = statsFactory.createStatsCounter(key, TOTAL_FAILED); this.totalExpired = statsFactory.createStatsCounter(key, TOTAL_EXPIRED); this.totalRejected = statsFactory.createStatsCounter(key, TOTAL_REJECTED); this.totalRateLimited = statsFactory.createStatsCounter(key, TOTAL_RATE_LIMIT...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\util\BufferedRateExecutorStats.java
1
请完成以下Java代码
public static boolean isPartOfProcessApplication(DeploymentUnit unit) { if(isProcessApplication(unit)) { return true; } if(unit.getParent() != null && unit.getParent() != unit) { return unit.getParent().hasAttachment(PART_OF_MARKER); } return false; } /** * Returns true ...
*/ public static void attachPreUndeployDescription(DeploymentUnit deploymentUnit, AnnotationInstance annotation){ deploymentUnit.putAttachment(PRE_UNDEPLOY_METHOD, annotation); } /** * @return the description of the PostDeploy method */ public static AnnotationInstance getPostDeployDescriptio...
repos\camunda-bpm-platform-master\distro\wildfly\subsystem\src\main\java\org\camunda\bpm\container\impl\jboss\deployment\marker\ProcessApplicationAttachments.java
1
请完成以下Java代码
public boolean hasRunningContracts(final I_PMM_Product pmmProduct) { Check.assumeNotNull(pmmProduct, "pmmProduct not null"); final Date date = null; // any date return retrieveAllRunningContractsOnDateQuery(date) .addEqualsFilter(I_C_Flatrate_Term.COLUMNNAME_PMM_Product_ID, pmmProduct.getPMM_Product_ID()) ...
return null; } @Nullable @Override public I_C_Flatrate_Term retrieveTermForPartnerAndProduct(final Date date, final int bPartnerID, final int pmmProductId) { return retrieveAllRunningContractsOnDateQuery(date) .addEqualsFilter(I_C_Flatrate_Term.COLUMNNAME_DropShip_BPartner_ID, bPartnerID) .addEqualsFilt...
repos\metasfresh-new_dawn_uat\backend\de.metas.procurement.base\src\main\java\de\metas\procurement\base\impl\PMMContractsDAO.java
1
请完成以下Java代码
default V get(K key, Supplier<V> supplier) { return get(key, supplier, true); } default V get(K key, Supplier<V> supplier, boolean putToCache) { return Optional.ofNullable(get(key)) .map(TbCacheValueWrapper::get) .orElseGet(() -> { V value = s...
void evict(K key); void evict(Collection<K> keys); void evict(K key, Long version); default Long getVersion(V value) { if (value == null) { return 0L; } else if (value.getVersion() != null) { return value.getVersion(); } else { return null; ...
repos\thingsboard-master\common\cache\src\main\java\org\thingsboard\server\cache\VersionedTbCache.java
1
请完成以下Java代码
public String getPermittedCrossDomainPolicies() { return permittedCrossDomainPolicies; } public void setPermittedCrossDomainPolicies(String permittedCrossDomainPolicies) { this.permittedCrossDomainPolicies = permittedCrossDomainPolicies; } public String getPermissionsPolicy() { return permissionsPolicy; } ...
* Binds the list of default/opt-out header names to enable, transforms them into a * lowercase set. This is to ensure case-insensitive comparison. * @param enable - list of default/opt-out header enable */ public void setEnable(List<String> enable) { if (enable != null) { enabledHeaders = enable.stream().ma...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\filter\factory\SecureHeadersProperties.java
1
请完成以下Java代码
public SplitResult splitQuantity(@NonNull final BigDecimal qtyToSplit) { Check.errorIf(qtyToSplit.compareTo(quantity.toBigDecimal()) >= 0, "The given qtyToSplit={} needs to be less than this instance's quantity; this={}", qtyToSplit, this); final Quantity newQuantity = Quantity.of(qtyToSplit, quantity.get...
.build(); final AssignableInvoiceCandidate newCandidate = toBuilder() .id(id) .quantity(newQuantity) .money(newMoney) .build(); return new SplitResult(remainderCandidate, newCandidate); } @Value public static final class SplitResult { AssignableInvoiceCandidate remainder; AssignableInvoi...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\refund\AssignableInvoiceCandidate.java
1
请完成以下Java代码
public void actionPerformed (ActionEvent e) { } // actionPerformed /** * Get PrintService * @return print service */ public PrintService getPrintService() { String currentService = (String)getSelectedItem(); for (int i = 0; i < s_services.length; i++) { if (s_services[i].getName().equals(current...
/** * Refresh printer list */ public void refresh() { String current = (String) getSelectedItem(); removeAllItems(); setModel(new DefaultComboBoxModel(getPrinterNames())); if (current != null) { for (int i = 0; i < getItemCount(); i++) { String item = (String) getItemAt(i); if (item.equals(curr...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\CPrinter.java
1
请完成以下Java代码
public BuiltinAggregator getAggregation() { return aggregationAttribute.getValue(this); } public void setAggregation(BuiltinAggregator aggregation) { aggregationAttribute.setValue(this, aggregation); } public DecisionTableOrientation getPreferredOrientation() { return preferredOrientationAttribute...
.instanceProvider(new ModelTypeInstanceProvider<DecisionTable>() { public DecisionTable newInstance(ModelTypeInstanceContext instanceContext) { return new DecisionTableImpl(instanceContext); } }); hitPolicyAttribute = typeBuilder.namedEnumAttribute(DMN_ATTRIBUTE_HIT_POLICY, HitPolic...
repos\camunda-bpm-platform-master\model-api\dmn-model\src\main\java\org\camunda\bpm\model\dmn\impl\instance\DecisionTableImpl.java
1
请完成以下Java代码
public ScopeImpl getParent() { return parent; } @Override @SuppressWarnings("unchecked") public List<PvmTransition> getIncomingTransitions() { return (List) incomingTransitions; } public Map<String, Object> getVariables() { return variables; } public void setVa...
public void setY(int y) { this.y = y; } @Override public int getWidth() { return width; } @Override public void setWidth(int width) { this.width = width; } @Override public int getHeight() { return height; } @Override public void setHei...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\pvm\process\ActivityImpl.java
1
请完成以下Java代码
public class AddIdentityLinkForProcessDefinitionCmd implements Command<Void>, Serializable { private static final long serialVersionUID = 1L; protected String processDefinitionId; protected String userId; protected String groupId; public AddIdentityLinkForProcessDefinitionCmd(String processDefi...
} public Void execute(CommandContext commandContext) { ProcessDefinitionEntity processDefinition = commandContext .getProcessDefinitionEntityManager() .findById(processDefinitionId); if (processDefinition == null) { throw new ActivitiObjectNotFoundException( ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\cmd\AddIdentityLinkForProcessDefinitionCmd.java
1
请完成以下Java代码
public List<ProcessInstance> findProcessInstanceByNativeQuery( Map<String, Object> parameterMap, int firstResult, int maxResults ) { return getDbSqlSession().selectListWithRawParameter( "selectExecutionByNativeQuery", parameterMap, firstResult, ...
params.put("id", processInstanceId); params.put("lockTime", lockDate); params.put("expirationTime", expirationTime); int result = getDbSqlSession().update("updateProcessInstanceLockTime", params); if (result == 0) { throw new ActivitiOptimisticLockingException("Could not loc...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\data\impl\MybatisExecutionDataManager.java
1
请完成以下Java代码
private static boolean isEligibleForCheckingScriptFilesRecursive(final File file) { return isGitRepositoryRoot(file) || isProjectsGroupDir(file) || isMavenProjectDir(file); } private static boolean isGitRepositoryRoot(final File dir) { if (!dir.isDirectory()) { return false; } final File gitDir = new...
return false; } final String fileExtLC = FileUtils.getFileExtension(file.getName(), false).toLowerCase(); return supportedFileExtensionsLC.contains(fileExtLC); } private static String getDefaultProjectName(final File projectDir) { final File mavenPOMFile = new File(projectDir, "pom.xml"); if (mavenPOMFil...
repos\metasfresh-new_dawn_uat\backend\de.metas.migration\de.metas.migration.cli\src\main\java\de\metas\migration\cli\workspace_migrate\WorkspaceScriptScanner.java
1
请在Spring Boot框架中完成以下Java代码
public DependencyMetadata get(InitializrMetadata metadata, Version bootVersion) { Map<String, Dependency> dependencies = new LinkedHashMap<>(); for (Dependency dependency : metadata.getDependencies().getAll()) { if (dependency.match(bootVersion)) { dependencies.put(dependency.getId(), dependency.resolve(boot...
if (dependency.getBom() != null) { boms.put(dependency.getBom(), metadata.getConfiguration().getEnv().getBoms().get(dependency.getBom()).resolve(bootVersion)); } } // Each resolved bom may require additional repositories for (BillOfMaterials bom : boms.values()) { for (String id : bom.getRepositor...
repos\initializr-main\initializr-web\src\main\java\io\spring\initializr\web\support\DefaultDependencyMetadataProvider.java
2
请完成以下Java代码
public String toString() { // NOTE: we are making it translateable friendly because it's displayed in Prefereces->Info->Rollen final String permissionsName = getClass().getSimpleName(); final Collection<PermissionType> permissionsList = permissions.values(); final StringBuilder sb = new StringBuilder(); sb...
{ return permission.get(); } // // Fallback: get the permission defined for the resource of "no permission", if any final PermissionType nonePermission = noPermission(); if (nonePermission == null) { return null; } final Resource defaultResource = nonePermission.getResource(); return getPermiss...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\permissions\AbstractPermissions.java
1
请完成以下Java代码
protected IExternalSystemChildConfigId getExternalChildConfigId() { final int id; if (this.childConfigId > 0) { id = this.childConfigId; } else { final IExternalSystemChildConfig childConfig = externalSystemConfigDAO.getChildByParentIdAndType(ExternalSystemParentConfigId.ofRepoId(getRecord_ID()), ge...
@Override protected ExternalSystemType getExternalSystemType() { return ExternalSystemType.GRSSignum; } @Override protected long getSelectedRecordCount(final IProcessPreconditionsContext context) { return context.getSelectedIncludedRecords() .stream() .filter(recordRef -> I_ExternalSystem_Config_GRSS...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java\de\metas\externalsystem\process\InvokeGRSSignumAction.java
1
请在Spring Boot框架中完成以下Java代码
public static LanguageKey ofLocale(@NonNull final Locale locale) { return new LanguageKey(locale.getLanguage(), locale.getCountry(), locale.getVariant()); } public static LanguageKey getDefault() { return ofLocale(Locale.getDefault()); } @NonNull String language; @NonNull String country; @NonNull Strin...
} @JsonValue public String getAsString() { final StringBuilder sb = new StringBuilder(); sb.append(language); if (!country.isBlank()) { sb.append("_").append(country); } if (!variant.isBlank()) { sb.append("_").append(variant); } return sb.toString(); } }
repos\metasfresh-new_dawn_uat\misc\services\procurement-webui\procurement-webui-backend\src\main\java\de\metas\procurement\webui\util\LanguageKey.java
2
请完成以下Java代码
public void onProductChanged(final I_PP_Product_BOMLine bomLine) { final int M_Product_ID = bomLine.getM_Product_ID(); if (M_Product_ID <= 0) { return; } final I_PP_Product_BOM bom = bomLine.getPP_Product_BOM(); if (bom.getM_Product_ID() == bomLine.getM_Product_ID()) { throw new AdempiereException...
bomLine.setHelp(product.getHelp()); bomLine.setC_UOM_ID(product.getC_UOM_ID()); } @CalloutMethod(columnNames = { I_PP_Product_BOMLine.COLUMNNAME_VariantGroup}) public void validateVariantGroup(final I_PP_Product_BOMLine bomLine) { final boolean valid = Services.get(IProductBOMBL.class).isValidVariantGroup(bomL...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\callout\PP_Product_BOMLine.java
1
请完成以下Java代码
public class CityVO implements ResultItem { private final int C_City_ID; private final String CityName; private final int C_Region_ID; private final String RegionName; public CityVO(int city_ID, String cityName, int region_ID, String regionName) { super(); C_City_ID = city_ID; CityName = cityName; C_Regi...
@Override public String getText() { return CityName; } @Override public String toString() { // needed for ListCellRenderer final StringBuilder sb = new StringBuilder(); if (this.CityName != null) { sb.append(this.CityName); } if (this.RegionName != null) { sb.append(" (").append(this.Regio...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\grid\ed\CityVO.java
1
请完成以下Java代码
public ITranslatableString getTrl(final String columnName) { final Caption caption = captions.get(columnName); return caption != null ? caption.toTranslatableString() : TranslatableStrings.empty(); } } @ToString private static class Caption { @Getter @NonNull private final String columnName; @NonNu...
{ ITranslatableString computedTrl = this.computedTrl; if (computedTrl == null) { computedTrl = this.computedTrl = computeTranslatableString(); } return computedTrl; } private ITranslatableString computeTranslatableString() { if (translations.isEmpty()) { return TranslatableStrings.em...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\GridTabVO.java
1
请完成以下Java代码
public ProcessDefinitionResource getProcessDefinition(@PathParam("id") String id) { return new ProcessDefinitionResource(getProcessEngine().getName(), id); } @GET @Path("/statistics-count") @Produces(MediaType.APPLICATION_JSON) public CountResultDto getStatisticsCount(@Context UriInfo uriInfo) { Quer...
public List<ProcessDefinitionStatisticsDto> queryStatistics(@Context UriInfo uriInfo, @QueryParam("firstResult") Integer firstResult, @QueryParam("maxResults") Integer maxResults) { QueryParam...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\cockpit\impl\plugin\resources\ProcessDefinitionRestService.java
1
请完成以下Java代码
public int getAD_Scheduler_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Scheduler_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Beschreibung. @param Description Beschreibung */ @Override public void setDescription (java.lang.String Description) { set_Value (COLUMNNAME_D...
return (java.lang.String)get_Value(COLUMNNAME_Description); } /** Set Default Parameter. @param ParameterDefault Default value of the parameter */ @Override public void setParameterDefault (java.lang.String ParameterDefault) { set_Value (COLUMNNAME_ParameterDefault, ParameterDefault); } /** Get Defau...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Scheduler_Para.java
1
请完成以下Java代码
public boolean containsAll(Collection<?> c) { throw new UnsupportedOperationException(); } @Override public boolean addAll(Collection<? extends Entry<String, V>> c) { throw new UnsupportedOperationException(); } ...
@Override public void clear() { MutableDoubleArrayTrie.this.clear(); } }; } @Override public Iterator<Entry<String, V>> iterator() { return entrySet().iterator(); } }
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\collection\trie\datrie\MutableDoubleArrayTrie.java
1
请完成以下Java代码
public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getIp() { return ip; } public void setIp(String ip) { this.ip = ip; } public String getAddress() { ret...
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", adminId=").append(adminId); sb.append(", c...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\UmsAdminLoginLog.java
1
请完成以下Spring Boot application配置
spring.h2.console.path=/h2 spring.h2.console.enabled=true spring.datasource.url=jdbc:h2:mem:testdb spring.datasource.driver-class-name=org.h2.Driver spring.datasource.username=sa spring.datasource.password= javers.mappingStyle=FIELD javers.algorithm=SIMPLE javers.commitIdGenerator=synchronized_sequence javers.prettyPri...
rue javers.prettyPrintDateFormats.localDateTime=dd MMM yyyy, HH:mm:ss javers.prettyPrintDateFormats.zonedDateTime=dd MMM yyyy, HH:mm:ssZ javers.prettyPrintDateFormats.localDate=dd MMM yyyy javers.prettyPrintDateFormats.localTime=HH:mm:ss
repos\tutorials-master\spring-boot-modules\spring-boot-data-2\src\main\resources\application.properties
2
请完成以下Java代码
private void refresh(int M_Product_ID) { // int M_Product_ID = 0; String sql = m_sqlWarehouse; // Add description to the query sql = sql.replace(" FROM", ", DocumentNote FROM"); log.trace(sql); PreparedStatement pstmt = null; ResultSet rs = null; try { pstmt = DB.prepareStatement(sql, null); ps...
private void setDescription(String description) { fieldDescription.setText(description); } public java.awt.Component getComponent(int type) { if (type == PANELTYPE_Stock) return (java.awt.Component)warehouseTbl; else if (type == PANELTYPE_Description) return fieldDescription; else throw new Illega...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\adempiere\gui\search\InfoProductStock.java
1
请完成以下Java代码
List<T> decodeRecords(@Nonnull List<R> records) { List<T> result = new ArrayList<>(records.size()); records.forEach(record -> { try { if (record != null) { result.add(decode(record)); } } catch (Exception e) { lo...
abstract protected List<R> doPoll(long durationInMillis); abstract protected T decode(R record) throws IOException; abstract protected void doSubscribe(Set<TopicPartitionInfo> partitions); abstract protected void doCommit(); abstract protected void doUnsubscribe(); @Override public Set<Topi...
repos\thingsboard-master\common\queue\src\main\java\org\thingsboard\server\queue\common\AbstractTbQueueConsumerTemplate.java
1
请完成以下Java代码
public int size() { return size; } @Override public boolean isQueueEmpty() { final boolean iteratorEmpty = !iterator.hasNext(); return iteratorEmpty && queueItemsToProcess.isEmpty(); } @Override public ITableRecordReference nextFromQueue() { final WorkQueue result = nextFromQueue0(); if (result.get...
} /** * @return the {@link Partition} from the last invokation of {@link #clearAfterPartitionStored(Partition)}, or an empty partition. */ @Override public Partition getPartition() { return partition; } @Override public void registerHandler(IIterateResultHandler handler) { handlerSupport.registerListe...
repos\metasfresh-new_dawn_uat\backend\de.metas.dlm\base\src\main\java\de\metas\dlm\partitioner\impl\CreatePartitionIterateResult.java
1
请在Spring Boot框架中完成以下Java代码
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; CommentCollectionResource other = (CommentCollectionResource) obj; if (taskComments == null) { if (other.taskComments != null) return false; } else...
JsonNode jsonNode = jp.readValueAsTree(); for (JsonNode childNode : jsonNode) { if (childNode.has(CommentResource.JP_TASKID)) { commentResource = new CommentResource(); commentResource.setTaskId(childNode.get(CommentResource.JP_TASKID).asText()); commentResource.setComment(childNode.get(CommentResourc...
repos\spring-boot-microservices-master\task-webservice\src\main\java\com\rohitghatol\microservices\task\model\CommentCollectionResource.java
2
请完成以下Java代码
public ImmutableList<HUReservationEntry> getEntriesByVHUIds(@NonNull final Collection<HuId> vhuIds) { if (vhuIds.isEmpty()) { return ImmutableList.of(); } return entriesByVhuId.getAllOrLoad(vhuIds, this::retrieveEntriesByVHUId) .stream() .flatMap(Optionals::stream) .collect(ImmutableList.toImmu...
.salesOrderLineId(OrderLineId.ofRepoIdOrNull(record.getC_OrderLineSO_ID())) .projectId(ProjectId.ofRepoIdOrNull(record.getC_Project_ID())) .pickingJobStepId(PickingJobStepId.ofRepoIdOrNull(record.getM_Picking_Job_Step_ID())) .ddOrderLineId(DDOrderLineId.ofRepoIdOrNull(record.getDD_OrderLine_ID())) .buil...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\reservation\HUReservationRepository.java
1
请完成以下Java代码
public int getC_AcctSchema_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); if (ii == null) return 0; return ii.intValue(); } public I_C_Charge getC_Charge() throws RuntimeException { return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) .getPO(getC_Charge_ID(), get_...
{ set_Value (COLUMNNAME_Ch_Expense_Acct, Integer.valueOf(Ch_Expense_Acct)); } /** Get Charge Expense. @return Charge Expense Account */ public int getCh_Expense_Acct () { Integer ii = (Integer)get_Value(COLUMNNAME_Ch_Expense_Acct); if (ii == null) return 0; return ii.intValue(); } public I_C_V...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Charge_Acct.java
1
请完成以下Java代码
public static void forwardingEmail(Email receivedEmail) { Email email = EmailBuilder.forwarding(receivedEmail) .from("sender@example.com") .prependText("This is an Forward Email. See below email:") .buildEmail(); } public static void handleExceptionWhenSendingEmail()...
private static void sendEmailWithDeliveryReadRecipient() { Email email = EmailBuilder.startingBlank() .from("sender@example.com") .to("recipient@example.com") .withSubject("Email with Delivery/Read Receipt Configured!") .withPlainText("This is an email sending wit...
repos\tutorials-master\libraries-io\src\main\java\com\baeldung\java\io\simplemail\SimpleMailExample.java
1
请完成以下Java代码
private <ImportRecordType> IImportProcess<ImportRecordType> newImportProcessOrNull(@NonNull final Class<ImportRecordType> modelImportClass) { final Class<?> importProcessClass = importProcessDescriptorsMap.getImportProcessClassByModelImportClassOrNull(modelImportClass); if (importProcessClass == null) { retur...
@Nullable private <ImportRecordType> IImportProcess<ImportRecordType> newImportProcessForTableNameOrNull(@NonNull final String importTableName) { final Class<?> importProcessClass = importProcessDescriptorsMap.getImportProcessClassByImportTableNameOrNull(importTableName); if (importProcessClass == null) { re...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\impexp\processing\impl\ImportProcessFactory.java
1
请完成以下Java代码
public void connectStart(Call call, InetSocketAddress inetSocketAddress, Proxy proxy) { logTimedEvent("connectStart"); } @Override public void secureConnectStart(Call call) { logTimedEvent("secureConnectStart"); } @Override public void secureConnectEnd(Call call, Handshake hand...
logTimedEvent("requestFailed"); } @Override public void responseHeadersStart(Call call) { logTimedEvent("responseHeadersStart"); } @Override public void responseHeadersEnd(Call call, Response response) { logTimedEvent("responseHeadersEnd"); } @Override public void ...
repos\tutorials-master\libraries-http-2\src\main\java\com\baeldung\okhttp\events\EventTimer.java
1
请完成以下Java代码
protected abstract static class AbstractBuilder<T extends AbstractSettings, B extends AbstractBuilder<T, B>> { private final Map<String, Object> settings = new HashMap<>(); protected AbstractBuilder() { } /** * Sets a configuration setting. * @param name the name of the setting * @param value the va...
return getThis(); } public abstract T build(); protected final Map<String, Object> getSettings() { return this.settings; } @SuppressWarnings("unchecked") protected final B getThis() { return (B) this; } } }
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\settings\AbstractSettings.java
1
请完成以下Java代码
public void clear() { } public int size() { return getMaxid_(); } public int ysize() { return y_.size(); } public int getMaxid_() { return maxid_; } public void setMaxid_(int maxid_) { this.maxid_ = maxid_; } public double...
} public List<String> getBigramTempls_() { return bigramTempls_; } public void setBigramTempls_(List<String> bigramTempls_) { this.bigramTempls_ = bigramTempls_; } public List<String> getY_() { return y_; } public void setY_(List<String> y_) { ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\crf\crfpp\FeatureIndex.java
1
请完成以下Java代码
public class HUAttributeStorageFactory extends AbstractModelAttributeStorageFactory<I_M_HU, HUAttributeStorage> { @Override public boolean isHandled(final Object model) { if (model == null) { return false; } return InterfaceWrapperHelper.isInstanceOf(model, I_M_HU.class); } @Override protected I_M_HU...
@Override protected HUAttributeStorage createAttributeStorage(final I_M_HU model) { final Properties ctx = InterfaceWrapperHelper.getCtx(model); final String trxName = InterfaceWrapperHelper.getTrxName(model); final int huId = model.getM_HU_ID(); return createAttributeStorageCached(ctx, huId, trxName, model);...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\attribute\storage\impl\HUAttributeStorageFactory.java
1
请完成以下Java代码
public boolean setLoading(boolean loading) { final boolean loadingOld = this._loading; if (loadingOld == loading) { return loadingOld; } this._loading = loading; // Loading flag was switched from "true" to "false" if (!this._loading) { firePropertyChange(PROPERTY_SelectionChanged, false, true);...
*/ public Object getValueAt(final int rowIndexView, final String columnName) { final int colIndexModel = getColumnModelIndex(columnName); if (colIndexModel < 0) // it starts with 0, not with 1, so it's <0, not <=0 { throw new IllegalArgumentException("No column index found for " + columnName); } final i...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\minigrid\MiniTable.java
1
请完成以下Java代码
public HistoricExternalTaskLogQuery orderByTimestamp() { orderBy(HistoricExternalTaskLogQueryProperty.TIMESTAMP); return this; } @Override public HistoricExternalTaskLogQuery orderByExternalTaskId() { orderBy(HistoricExternalTaskLogQueryProperty.EXTERNAL_TASK_ID); return this; } @Override ...
public HistoricExternalTaskLogQuery orderByProcessDefinitionKey() { orderBy(HistoricExternalTaskLogQueryProperty.PROCESS_DEFINITION_KEY); return this; } @Override public HistoricExternalTaskLogQuery orderByTenantId() { orderBy(HistoricExternalTaskLogQueryProperty.TENANT_ID); return this; } /...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\HistoricExternalTaskLogQueryImpl.java
1
请完成以下Java代码
private void generateInvoice(int M_RMA_ID) { MRMA rma = new MRMA(getCtx(), M_RMA_ID, get_TrxName()); MInvoice invoice = createInvoice(rma); MInvoiceLine invoiceLines[] = createInvoiceLines(rma, invoice); if (invoiceLines.length == 0) { log.warn("...
{ processMsg.append(" (NOT Processed)"); log.warn("Invoice Processing failed: " + invoice + " - " + invoice.getProcessMsg()); } if (!invoice.save()) { throw new IllegalStateException("Could not update invoice"); } // Add proce...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\adempiere\process\InvoiceGenerateRMA.java
1
请完成以下Java代码
public String toString() { StringBuffer sb = new StringBuffer ("X_R_InterestArea[") .append(get_ID()).append("]"); return sb.toString(); } /** Set Description. @param Description Optional short description of the record */ public void setDescription (String Description) { set_V...
/** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** Set Interest Area. @param R_InterestArea_ID Interest Area or Topic */ public void setR_InterestArea_ID (int R_InterestArea_ID)...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_R_InterestArea.java
1
请在Spring Boot框架中完成以下Java代码
public List<RestIdentityLink> getIdentityLinks(@ApiParam(name = "processInstanceId") @PathVariable String processInstanceId) { ProcessInstance processInstance = getProcessInstanceFromRequestWithoutAccessCheck(processInstanceId); if (restApiInterceptor != null) { restApiInterceptor.accessPro...
if (identityLink.getUser() == null) { throw new FlowableIllegalArgumentException("The user is required."); } if (identityLink.getType() == null) { throw new FlowableIllegalArgumentException("The identity link type is required."); } if (restApiInterceptor != null...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\runtime\process\ProcessInstanceIdentityLinkCollectionResource.java
2
请完成以下Java代码
private void createValue() { // Get Warehouse Info KeyNamePair pp = (KeyNamePair)fWarehouse.getSelectedItem(); if (pp == null) return; loadWarehouseInfo(pp.getKey()); // StringBuffer buf = new StringBuffer(m_M_WarehouseValue); buf.append(m_Separator).append(fX.getText()); buf.append(m_Separator).app...
/** * Get Selected value * * @return value as Integer */ public Integer getValue() { MLocator l = getSelectedLocator(); if (l != null && l.getM_Locator_ID() != 0) return new Integer(l.getM_Locator_ID()); return null; } // getValue /** * Get result * * @return true if changed */ public boo...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VLocatorDialog.java
1
请完成以下Java代码
public boolean isInitialized() { return variables != null; } public void forceInitialization() { if (!isInitialized()) { variables = new HashMap<>(); for (T variable : variablesProvider.provideVariables()) { variables.put(variable.getName(), variable); } } } public T rem...
public void removeObserver(VariableStoreObserver<T> observer) { observers.remove(observer); } public static interface VariableStoreObserver<T extends CoreVariableInstance> { void onAdd(T variable); void onRemove(T variable); } public static interface VariablesProvider<T extends CoreVariableInsta...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\core\variable\scope\VariableStore.java
1
请完成以下Java代码
public ReactiveSessionInformation withSessionId(String sessionId) { return new ReactiveSessionInformation(this.principal, sessionId, this.lastAccessTime); } public Mono<Void> invalidate() { return Mono.fromRunnable(() -> this.expired = true); } public Mono<Void> refreshLastRequest() { this.lastAccessTime = ...
return this.principal; } public String getSessionId() { return this.sessionId; } public boolean isExpired() { return this.expired; } public void setLastAccessTime(Instant lastAccessTime) { this.lastAccessTime = lastAccessTime; } }
repos\spring-security-main\core\src\main\java\org\springframework\security\core\session\ReactiveSessionInformation.java
1
请完成以下Java代码
public State getState() { return state; } public void setState(State state) { this.state = state; } public Node getParent() { return parent; } public void setParent(Node parent) { this.parent = parent; } public List<Node> getChildArray() { retu...
} public void setChildArray(List<Node> childArray) { this.childArray = childArray; } public Node getRandomChildNode() { int noOfPossibleMoves = this.childArray.size(); int selectRandom = (int) (Math.random() * noOfPossibleMoves); return this.childArray.get(selectRandom); ...
repos\tutorials-master\algorithms-modules\algorithms-searching\src\main\java\com\baeldung\algorithms\mcts\tree\Node.java
1
请完成以下Java代码
public void parseStartEvent(Element startEventElement, ScopeImpl scope, ActivityImpl activity) { addListeners(activity); } public void parseExclusiveGateway(Element exclusiveGwElement, ScopeImpl scope, ActivityImpl activity) { addListeners(activity); } public void parseInclusiveGateway(Element inclusi...
public void parseSubProcess(Element subProcessElement, ScopeImpl scope, ActivityImpl activity) { addListeners(activity); } public void parseCallActivity(Element callActivityElement, ScopeImpl scope, ActivityImpl activity) { addListeners(activity); } public void parseSendTask(Element sendTaskElement, S...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\metrics\parser\MetricsBpmnParseListener.java
1
请完成以下Java代码
public Map<String, Class> getDependentEntities() { return persistedDependentEntities; } @Override public void postLoad() { if (exceptionByteArrayId != null) { persistedDependentEntities = new HashMap<>(); persistedDependentEntities.put(exceptionByteArrayId, ByteArrayEntity.class); } e...
@Override public String toString() { return this.getClass().getSimpleName() + "[id=" + id + ", revision=" + revision + ", duedate=" + duedate + ", lockOwner=" + lockOwner + ", lockExpirationTime=" + lockExpirationTime + ", executionId=" + execution...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\JobEntity.java
1
请完成以下Java代码
public String getBusinessKey() { return businessKey; } public void setBusinessKey(String businessKey) { this.businessKey = businessKey; } public String getBusinessStatus() { return businessStatus; } public String getCaseInstanceName() { return caseInstanceName;...
this.caseModel = caseModel; } public CaseDefinition getCaseDefinition() { return caseDefinition; } public void setCaseDefinition(CaseDefinition caseDefinition) { this.caseDefinition = caseDefinition; } public CmmnModel getCmmnModel() { return cmmnModel; } publ...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\interceptor\AbstractStartCaseInstanceBeforeContext.java
1
请完成以下Java代码
public void unprocess() { this.isProcessed = false; } public void updateToleranceExceededFlag() { assertNotProcessed(); boolean isToleranceExceededNew = false; for (PPOrderWeightingRunCheck check : checks) { check.updateIsToleranceExceeded(targetWeightRange); if (check.isToleranceExceeded()) { ...
{ assertNotProcessed(); for (final PPOrderWeightingRunCheck check : checks) { check.setUomId(targetWeight.getUomId()); } } private void assertNotProcessed() { if (isProcessed) { throw new AdempiereException("Already processed"); } } public I_C_UOM getUOM() { return targetWeight.getUOM(); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\de\metas\manufacturing\order\weighting\run\PPOrderWeightingRun.java
1
请完成以下Java代码
public List<Comment> getProcessInstanceComments(String processInstanceId, String type) { return commandExecutor.execute(new GetProcessInstanceCommentsCmd(processInstanceId, type)); } @Override public Attachment createAttachment(String attachmentType, String taskId, String processInstanceId, String ...
@Override public List<Attachment> getTaskAttachments(String taskId) { return commandExecutor.execute(new GetTaskAttachmentsCmd(taskId)); } @Override public List<Attachment> getProcessInstanceAttachments(String processInstanceId) { return commandExecutor.execute(new GetProcessInstanceAtt...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\TaskServiceImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class WSTerminalSession implements Runnable, Consumer<String> { private static final Logger LOG = LoggerFactory.getLogger(WSTerminalSession.class); private final WebSocketSession session; public WSTerminalSession(WebSocketSession session) { this.session = session; } @Override ...
public void accept(String message) { Executors.newSingleThreadExecutor().submit(new WSSender(session, message)); //this.session.sendMessage(new TextMessage(message)); } private class WSSender implements Runnable { private final WebSocketSession session; private final String mes...
repos\spring-examples-java-17\spring-websockets\src\main\java\itx\examples\springboot\websockets\config\WSTerminalSession.java
2
请完成以下Java代码
public void setC_Queue_Workpackage_Preceeding(final I_C_Queue_WorkPackage C_Queue_Workpackage_Preceeding) { set_ValueFromPO(COLUMNNAME_C_Queue_Workpackage_Preceeding_ID, I_C_Queue_WorkPackage.class, C_Queue_Workpackage_Preceeding); } @Override public void setC_Queue_Workpackage_Preceeding_ID (final int C_Queue_W...
@Override public void setRecord_ID (final int Record_ID) { if (Record_ID < 0) set_Value (COLUMNNAME_Record_ID, null); else set_Value (COLUMNNAME_Record_ID, Record_ID); } @Override public int getRecord_ID() { return get_ValueAsInt(COLUMNNAME_Record_ID); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java-gen\de\metas\async\model\X_C_Queue_Element.java
1
请完成以下Java代码
public AssetProfileId getAssetProfileId() { return assetProfileId; } public void setAssetProfileId(AssetProfileId assetProfileId) { this.assetProfileId = assetProfileId; } @Schema(description = "Additional parameters of the asset",implementation = com.fasterxml.jackson.databind.JsonNod...
builder.append(", name="); builder.append(name); builder.append(", type="); builder.append(type); builder.append(", label="); builder.append(label); builder.append(", assetProfileId="); builder.append(assetProfileId); builder.append(", additionalInfo="); ...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\asset\Asset.java
1
请完成以下Java代码
public class TableMetaData { protected String tableName; protected List<String> columnNames = new ArrayList<String>(); protected List<String> columnTypes = new ArrayList<String>(); public TableMetaData() {} public TableMetaData(String tableName) { this.tableName = tableName; } ...
this.tableName = tableName; } public List<String> getColumnNames() { return columnNames; } public void setColumnNames(List<String> columnNames) { this.columnNames = columnNames; } public List<String> getColumnTypes() { return columnTypes; } public void setColu...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\management\TableMetaData.java
1
请完成以下Java代码
public class TomcatBpmPlatformBootstrap implements LifecycleListener { private final static ContainerIntegrationLogger LOG = ProcessEngineLogger.CONTAINER_INTEGRATION_LOGGER; protected ProcessEngine processEngine; protected RuntimeContainerDelegateImpl containerDelegate; public void lifecycleEvent(Lifecycle...
LOG.camundaBpmPlatformSuccessfullyStarted(server.getServerInfo()); } protected void undeployBpmPlatform(LifecycleEvent event) { final StandardServer server = (StandardServer) event.getSource(); containerDelegate.getServiceContainer().createUndeploymentOperation("undeploy BPM platform") .addAttach...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\container\impl\tomcat\TomcatBpmPlatformBootstrap.java
1
请完成以下Java代码
public Class<I_I_Replenish> getImportModelClass() { return I_I_Replenish.class; } @Override public String getImportTableName() { return I_I_Replenish.Table_Name; } @Override protected String getTargetTableName() { return I_M_Replenish.Table_Name; } @Override protected void updateAndValidateImportRe...
private ImportRecordResult importReplenish(@NonNull final I_I_Replenish importRecord) { final ImportRecordResult replenishImportResult; final I_M_Replenish replenish; if (importRecord.getM_Replenish_ID() <= 0) { replenish = ReplenishImportHelper.createNewReplenish(importRecord); replenishImportResult = ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\replenishment\impexp\ReplenishmentImportProcess.java
1
请在Spring Boot框架中完成以下Java代码
public String getEndActivityId() { return endActivityId; } public void setEndActivityId(String endActivityId) { this.endActivityId = endActivityId; } @ApiModelProperty(example = "null") public String getDeleteReason() { return deleteReason; } public void setDeleteR...
} @ApiModelProperty(example = "123") public String getReferenceId() { return referenceId; } public void setReferenceId(String referenceId) { this.referenceId = referenceId; } @ApiModelProperty(example = "event-to-bpmn-2.0-process") public String getReferenceType() { ...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\history\HistoricProcessInstanceResponse.java
2
请完成以下Java代码
class StringNormalizer { static String removeAccentsWithApacheCommons(String input) { return StringUtils.stripAccents(input); } static String removeAccents(String input) { return normalize(input).replaceAll("\\p{M}", ""); } static String unicodeValueOfNormalizedString(String input...
} } private static String toUnicode(char input) { String hex = Integer.toHexString(input); StringBuilder sb = new StringBuilder(hex); while (sb.length() < 4) { sb.insert(0, "0"); } sb.insert(0, "\\u"); return sb.toString(); } }
repos\tutorials-master\core-java-modules\core-java-string-operations-3\src\main\java\com\baeldung\accentsanddiacriticsremoval\StringNormalizer.java
1
请完成以下Java代码
public boolean supports(ConfigAttribute attribute) { return (attribute.getAttribute() != null) && attribute.getAttribute().equals(getProcessConfigAttribute()); } @Override public int vote(Authentication authentication, MethodInvocation object, Collection<ConfigAttribute> attributes) { for (ConfigAttribute attr ...
} catch (NotFoundException ex) { logger.debug("Voting to deny access - no ACLs apply for this principal"); return ACCESS_DENIED; } } // No configuration attribute matched, so abstain return ACCESS_ABSTAIN; } private Object invokeInternalMethod(Object domainObject) { try { Class<?> domainObj...
repos\spring-security-main\access\src\main\java\org\springframework\security\acls\AclEntryVoter.java
1