instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
protected void onCurrentItemChanged(MTreeNode node) { // nothing at this level. To be overridden by extending class. } /** * Menu tree node as {@link ResultItem}. */ private static final class MenuResultItem extends ResultItemWrapper<MTreeNode> { public MenuResultItem(final MTreeNode node) { super(no...
public List<MenuResultItem> query(final String searchText, final int limit) { return items; } } /** * {@link MenuResultItem} renderer. */ private static final class ResultItemRenderer implements ListCellRenderer<ResultItem> { private final DefaultListCellRenderer defaultRenderer = new DefaultListCellR...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\tree\TreeSearchAutoCompleter.java
1
请完成以下Java代码
public class SpringExpressionManager extends JuelExpressionManager { protected ApplicationContext applicationContext; /** * @param applicationContext * the applicationContext to use. Ignored when 'beans' parameter is * not null. * @param beans * a map of custom beans to e...
// Only expose limited set of beans in expressions compositeElResolver.add(new ReadOnlyMapELResolver(beans)); } else { // Expose full application-context in expressions compositeElResolver.add(new ApplicationContextElResolver(applicationContext)); } compositeElResolver.add(new ArrayELReso...
repos\camunda-bpm-platform-master\engine-spring\core\src\main\java\org\camunda\bpm\engine\spring\SpringExpressionManager.java
1
请完成以下Java代码
public double getWidth (boolean orientationCorrected) { if (orientationCorrected && m_landscape) return super.getHeight(); return super.getWidth(); } /** * Get Height in 1/72 inch * @param orientationCorrected correct for orientation * @return height */ public double getHeight (boolean orientatio...
*/ public double getImageableHeight (boolean orientationCorrected) { if (orientationCorrected && m_landscape) return super.getImageableWidth(); return super.getImageableHeight(); } /** * Get Image Width in 1/72 inch * @param orientationCorrected correct for orientation * @return imagable width */ ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\CPaper.java
1
请完成以下Java代码
public class LockFailedException extends LockException { private static final long serialVersionUID = -343950791566871398L; public static LockFailedException wrapIfNeeded(final Exception e) { if (e instanceof LockFailedException) { return (LockFailedException)e; } else { return new LockFailedExcepti...
super.setSql(sql, sqlParams); return this; } public LockFailedException setRecordToLock(final TableRecordReference recordToLock) { super.setRecord(recordToLock); return this; } public LockFailedException setExistingLocks(@NonNull final ImmutableList<ExistingLockInfo> existingLocks) { super.setExistingLo...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\lock\exceptions\LockFailedException.java
1
请完成以下Java代码
public Collection<Integer> getC_InvoiceCandidate_InOutLine_IDs() { return iciolIds; } @Override public void negateAmounts() { setQtysToInvoice(getQtysToInvoice().negate()); setNetLineAmt(getNetLineAmt().negate()); } @Override public int getC_Activity_ID() { return activityID; } @Override public v...
@Override public void setLineNo(final int lineNo) { this.lineNo = lineNo; } @Override public void setInvoiceLineAttributes(@NonNull final List<IInvoiceLineAttribute> invoiceLineAttributes) { this.invoiceLineAttributes = ImmutableList.copyOf(invoiceLineAttributes); } @Override public List<IInvoiceLineAttr...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\InvoiceLineImpl.java
1
请完成以下Java代码
public void setSAP_GLJournal_ID (final int SAP_GLJournal_ID) { if (SAP_GLJournal_ID < 1) set_ValueNoCheck (COLUMNNAME_SAP_GLJournal_ID, null); else set_ValueNoCheck (COLUMNNAME_SAP_GLJournal_ID, SAP_GLJournal_ID); } @Override public int getSAP_GLJournal_ID() { return get_ValueAsInt(COLUMNNAME_SAP_G...
public java.lang.String getUserElementString4() { return get_ValueAsString(COLUMNNAME_UserElementString4); } @Override public void setUserElementString5 (final @Nullable java.lang.String UserElementString5) { set_Value (COLUMNNAME_UserElementString5, UserElementString5); } @Override public java.lang.Stri...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-gen\de\metas\acct\model\X_SAP_GLJournalLine.java
1
请完成以下Java代码
public JsonObject createAccessToken(String clientId, MultivaluedMap<String, String> params) throws Exception { //1. code is required String code = params.getFirst("code"); if (code == null || "".equals(code)) { throw new WebApplicationException("invalid_grant"); } Aut...
if (!clientId.equals(authorizationCode.getClientId())) { throw new WebApplicationException("invalid_grant"); } //3. JWT Payload or claims String accessToken = getAccessToken(clientId, authorizationCode.getUserId(), authorizationCode.getApprovedScopes()); String refreshToken ...
repos\tutorials-master\security-modules\oauth2-framework-impl\oauth2-authorization-server\src\main\java\com\baeldung\oauth2\authorization\server\handler\AuthorizationCodeGrantTypeHandler.java
1
请在Spring Boot框架中完成以下Java代码
class WebMvcConfig implements WebMvcConfigurer { private final WebProperties webProperties; @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("favicon.ico") .addResourceLocations(this.webProperties.getResources().getStaticLocation...
@Bean public PageableHandlerMethodArgumentResolverCustomizer paginationCustomizer() { return new PaginationCustomizer(); } @Bean public FilterRegistrationBean<ReqLogFilter> loggingFilter() { var registrationBean = new FilterRegistrationBean<ReqLogFilter>(); registrationBean.set...
repos\spring-boot-web-application-sample-master\main-app\main-webapp\src\main\java\gt\app\config\WebMvcConfig.java
2
请完成以下Java代码
private List<Object> retrieveIds(final ResultSet rs) throws SQLException { final Array sqlArray = rs.getArray(sqlValuesColumn); if (sqlArray != null) { return Stream.of((Object[])sqlArray.getArray()) .filter(Objects::nonNull) .collect(ImmutableList.toImmutableList()); } else { re...
return null; } final IColorRepository colorRepository = Services.get(IColorRepository.class); final MFColor color = colorRepository.getColorById(adColorId); if (color == null) { return null; } final Color awtColor = color.toFlatColor().getFlatColor(); return ColorValue.ofRGB(awtColor.getRe...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\sql\DocumentFieldValueLoaders.java
1
请完成以下Java代码
public <T extends OAuth2Token> T getAccessToken() { return (T) this.accessToken; } /** * Returns a new {@link Builder}, initialized with the DPoP Proof {@link Jwt}. * @param dPoPProof the DPoP Proof {@link Jwt} * @return the {@link Builder} */ public static Builder withDPoPProof(String dPoPProof) { retu...
*/ public Builder targetUri(String targetUri) { this.targetUri = targetUri; return this; } /** * Sets the access token if the request is a Protected Resource request. * @param accessToken the access token if the request is a Protected Resource * request * @return the {@link Builder} */ pub...
repos\spring-security-main\oauth2\oauth2-jose\src\main\java\org\springframework\security\oauth2\jwt\DPoPProofContext.java
1
请完成以下Java代码
public Integer getPopulation() { return population; } public void setPopulation(Integer population) { this.population = population; } public Float getLifeexpectancy() { return lifeexpectancy; } public void setLifeexpectancy(Float lifeexpectancy) { this.lifeexpe...
return headofstate; } public void setHeadofstate(String headofstate) { this.headofstate = headofstate == null ? null : headofstate.trim(); } public Integer getCapital() { return capital; } public void setCapital(Integer capital) { this.capital = capital; } pub...
repos\spring-boot-quick-master\quick-modules\dao\src\main\java\com\modules\entity\Country.java
1
请完成以下Java代码
public class UserDto { private String firstName; private String lastName; private String age; private AddressDto address; public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String ge...
public void setAge(String age) { this.age = age; } public AddressDto getAddress() { return address; } public void setAddress(AddressDto address) { this.address = address; } @Override public String toString() { return "User{" + "firstName='" + firstName + '\...
repos\tutorials-master\spring-web-modules\spring-mvc-basics-5\src\main\java\com\baeldung\jsonargs\UserDto.java
1
请完成以下Java代码
public V remove(Object key) { V removedValue = super.remove(key); if (removedValue != null) { removeFromTrackingMaps(key); } return removedValue; } @Override public boolean remove(Object key, Object value) { boolean removed = super.r...
Integer numberToRemove = keyToNumber.get(keyToRemove); if (numberToRemove == null) { return; } int mapSize = this.size(); int lastIndex = mapSize; if (numberToRemove == lastIndex) { numberToKey.remove(numberToRemove); keyToNum...
repos\tutorials-master\core-java-modules\core-java-collections-maps-9\src\main\java\com\baeldung\map\randommapkey\RandomizedMap.java
1
请完成以下Java代码
public String circuitBreakerApi() { return externalAPICaller.callApi(); } @GetMapping("/retry") @Retry(name = "retryApi", fallbackMethod = "fallbackAfterRetry") public String retryApi() { return externalAPICaller.callApi(); } @GetMapping("/time-limiter") @TimeLimiter(name =...
public String bulkheadApi() { return externalAPICaller.callApi(); } @GetMapping("/rate-limiter") @RateLimiter(name = "rateLimiterApi") public String rateLimitApi() { return externalAPICaller.callApi(); } public String fallbackAfterRetry(Exception ex) { return "all retri...
repos\tutorials-master\spring-boot-modules\spring-boot-libraries\src\main\java\com\baeldung\resilientapp\ResilientAppController.java
1
请在Spring Boot框架中完成以下Java代码
public class OpenRepository { public static void main(String[] args) throws IOException, GitAPIException { // first create a test-repository, the return is including the .get directory here! File repoDir = createSampleGitRepo(); // now open the resulting repository with a FileRepositoryBui...
.call(); // and then commit the changes git.commit() .setMessage("Added testfile") .call(); } System.out.println("Added file " + myfile + " to repository at " + repository.getDirectory()); return repo...
repos\tutorials-master\jgit\src\main\java\com\baeldung\jgit\OpenRepository.java
2
请完成以下Java代码
public void setProductGroup (final @Nullable java.lang.String ProductGroup) { throw new IllegalArgumentException ("ProductGroup is virtual column"); } @Override public java.lang.String getProductGroup() { return get_ValueAsString(COLUMNNAME_ProductGroup); } @Override public void setProductName (final @Null...
{ set_Value (COLUMNNAME_QtyCount, QtyCount); } @Override public BigDecimal getQtyCount() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyCount); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setSeqNo (final int SeqNo) { set_Value (COLUMNNAME_SeqNo, SeqNo); } @Overrid...
repos\metasfresh-new_dawn_uat\backend\de.metas.fresh\de.metas.fresh.base\src\main\java-gen\de\metas\fresh\model\X_Fresh_QtyOnHand_Line.java
1
请在Spring Boot框架中完成以下Java代码
class ArticleCommentController implements AuthenticationAwareMixin { private final UserService userService; private final UserRelationshipService userRelationshipService; private final ArticleService articleService; private final ArticleCommentService articleCommentService; @PostMapping("/api/artic...
var reader = userService.getUser(readersToken.userId()); return new MultipleCommentsResponse(comments.stream() .map(comment -> new ArticleCommentResponse( comment, userRelationshipService.isFollowing(reader, comment.getAuthor()))) .toList()); } @S...
repos\realworld-java21-springboot3-main\server\api\src\main\java\io\zhc1\realworld\api\ArticleCommentController.java
2
请在Spring Boot框架中完成以下Java代码
public DataSize getMaxInMemorySize() { return this.maxInMemorySize; } public void setMaxInMemorySize(DataSize maxInMemorySize) { this.maxInMemorySize = maxInMemorySize; } public DataSize getMaxHeadersSize() { return this.maxHeadersSize; } public void setMaxHeadersSize(DataSize maxHeadersSize) { this.ma...
return this.fileStorageDirectory; } public void setFileStorageDirectory(@Nullable String fileStorageDirectory) { this.fileStorageDirectory = fileStorageDirectory; } public Charset getHeadersCharset() { return this.headersCharset; } public void setHeadersCharset(Charset headersCharset) { this.headersChars...
repos\spring-boot-4.0.1\module\spring-boot-webflux\src\main\java\org\springframework\boot\webflux\autoconfigure\ReactiveMultipartProperties.java
2
请完成以下Java代码
public class ToArrayBenchmark { @Param({ "10", "10000", "10000000" }) private int size; @Param({ "array-list", "tree-set" }) private String type; private Collection<String> collection; @Setup public void setup() { switch (type) { case "array-list": collection ...
} } @Benchmark public String[] zero_sized() { return collection.toArray(new String[0]); } @Benchmark public String[] pre_sized() { return collection.toArray(new String[collection.size()]); } public static void main(String[] args) { try { org.openjd...
repos\tutorials-master\core-java-modules\core-java-collections-4\src\main\java\com\baeldung\collections\toarraycomparison\ToArrayBenchmark.java
1
请完成以下Java代码
public List<ActivityImpl> getInitialActivityStack() { return getInitialActivityStack(initial); } public synchronized List<ActivityImpl> getInitialActivityStack(ActivityImpl startActivity) { List<ActivityImpl> initialActivityStack = initialActivityStacks.get(startActivity); if (initialAc...
} @Override public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public String getKey() { return key; } public void setKey(String key) { this.key = key; } @Override public String get...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\pvm\process\ProcessDefinitionImpl.java
1
请完成以下Java代码
public class ResultExporter { public static void exportResult(String titleStr, Collection<RunResult> results, String paramKey, String xunit) throws Exception { // 几个测试对象 List<String> objects = new ArrayList<>(); // 测试维度,输入值n List<String> dimension...
} temp.add(Double.parseDouble(String.format("%.2f", r.getScore()))); // 测试维度 if (!dimensions.contains("n=" + params.getParam(paramKey))) { dimensions.add("n=" + params.getParam(paramKey)); } } // 最后一组测试数据别忘记加进去了 allData.add(temp); ...
repos\SpringBootBucket-master\springboot-echarts\src\main\java\com\xncoding\benchmark\common\ResultExporter.java
1
请完成以下Java代码
public class DBRes_hu extends ListResourceBundle { /** Data */ static final Object[][] contents = new String[][]{ { "CConnectionDialog", "Szerver kapcsolat" }, { "Name", "Név" }, { "AppsHost", "Alkalmazás szerver" }, { "AppsPort", "Alkalmazás port" }, { "TestApps", "Teszt alkalmazás szerver"...
{ "TerminalServer", "Terminál szerver" }, { "VPN", "VPN" }, { "WAN", "WAN" }, { "ConnectionError", "Kapcsolat hiba" }, { "ServerNotActive", "Szerver nem aktív" } }; /** * Get Contsnts * @return contents */ public Object[][] getContents() { return contents; } // getContent } // Res
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\db\connectiondialog\i18n\DBRes_hu.java
1
请完成以下Java代码
public void setQtyInvoicedInPriceUOM_AndLineNetAMT(final I_C_InvoiceLine invoiceLine) { if (invoiceLine == null) { // nothing to do return; } final IInvoiceLineBL invoiceLineBL = Services.get(IInvoiceLineBL.class); final IInvoiceBL invoiceBL = Services.get(IInvoiceBL.class); invoiceLineBL.setQtyInv...
/** * Set the product as soon as the order line is set */ @CalloutMethod(columnNames = { I_C_InvoiceLine.COLUMNNAME_C_OrderLine_ID }) public void setProduct(final I_C_InvoiceLine invoiceLine, final ICalloutField field) { if (InterfaceWrapperHelper.isNull(invoiceLine, I_C_InvoiceLine.COLUMNNAME_C_OrderLine_ID))...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\invoice\callout\C_InvoiceLine.java
1
请完成以下Java代码
public void manuallyStartCaseExecution(String caseExecutionId) { withCaseExecution(caseExecutionId).manualStart(); } public void manuallyStartCaseExecution(String caseExecutionId, Map<String, Object> variables) { withCaseExecution(caseExecutionId).setVariables(variables).manualStart(); } public void d...
} public void completeCaseExecution(String caseExecutionId, Map<String, Object> variables) { withCaseExecution(caseExecutionId).setVariables(variables).complete(); } public void closeCaseInstance(String caseInstanceId) { withCaseExecution(caseInstanceId).close(); } public void terminateCaseExecutio...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\CaseServiceImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class EntityMetaData { private boolean isJPAEntity; private Class<?> entityClass; private Method idMethod; private Field idField; public boolean isJPAEntity() { return isJPAEntity; } public void setJPAEntity(boolean isJPAEntity) { this.isJPAEntity = isJPAEntity; ...
public Field getIdField() { return idField; } public void setIdField(Field idField) { this.idField = idField; idField.setAccessible(true); } public Class<?> getIdType() { Class<?> idType = null; if (idField != null) { idType = idField.getType(); ...
repos\flowable-engine-main\modules\flowable-variable-service\src\main\java\org\flowable\variable\service\impl\types\EntityMetaData.java
2
请完成以下Java代码
public static CostingDocumentRef ofCostCollectorId(final int ppCostCollectorId) { return ofCostCollectorId(PPCostCollectorId.ofRepoId(ppCostCollectorId)); } public static CostingDocumentRef ofCostCollectorId(final PPCostCollectorId ppCostCollectorId) { return new CostingDocumentRef(TABLE_NAME_PP_Cost_Collector...
public PPCostCollectorId getCostCollectorId() { return getId(PPCostCollectorId.class); } public <T extends RepoIdAware> T getId(final Class<T> idClass) { if (idClass.isInstance(id)) { return idClass.cast(id); } else { throw new AdempiereException("Expected id to be of type " + idClass + " but it ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\costing\CostingDocumentRef.java
1
请完成以下Java代码
public void storeToXML(OutputStream os, String comment) throws IOException { getDelegate().storeToXML(os, comment); } @Override public void storeToXML(OutputStream os, String comment, String encoding) throws IOException { getDelegate().storeToXML(os, comment, encoding); } @Override public String getProper...
{ return getDelegate().stringPropertyNames(); } @Override public void list(PrintStream out) { getDelegate().list(out); } @Override public void list(PrintWriter out) { getDelegate().list(out); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\AbstractPropertiesProxy.java
1
请完成以下Java代码
class SelectionColumnCellRenderer extends DefaultTableCellRenderer { private static final long serialVersionUID = 1L; public SelectionColumnCellRenderer() { super(); checkbox = new JCheckBox(); checkbox.setMargin(new Insets(0, 0, 0, 0)); checkbox.setHorizontalAlignment(SwingConstants.CENTER); } private f...
@Override protected void setValue(final Object value) { final boolean selected = DisplayType.toBooleanNonNull(value, false); checkbox.setSelected(selected); } // setValue @Override public Component getTableCellRendererComponent(final JTable table, final Object value, final boolean isSelected, final boolean ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\swing\table\SelectionColumnCellRenderer.java
1
请完成以下Java代码
public Set<ProductId> getProductIds() {return products.getProductIds();} public OptionalBoolean hasQtyAvailableToPick() { return products.hasQtyAvailableToPick(); } @Nullable public ProductId getProductId() { return products.getSingleProductIdOrNull(); } public ITranslatableString getProductName() {
return products.getSingleProductNameOrNull(); } @Nullable public Quantity getQtyToDeliver() { return products.getSingleQtyToDeliverOrNull(); } @Nullable public Quantity getQtyAvailableToPick() { return products.getSingleQtyAvailableToPickOrNull(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\model\PickingJobCandidate.java
1
请完成以下Java代码
public Object[] toArray() { Collection<T> modelElementCollection = ModelUtil.getModelElementCollection(getView(modelElement), modelElement.getModelInstance()); return modelElementCollection.toArray(); } public <U> U[] toArray(U[] a) { Collection<T> modelElementCollection = ModelUtil...
ModelUtil.ensureInstanceOf(e, ModelElementInstanceImpl.class); return performRemoveOperation(modelElement, e); } public boolean removeAll(Collection<?> c) { if(!isMutable) { throw new UnsupportedModelOperationException("removeAll()", "collection is immutable"); } b...
repos\camunda-bpm-platform-master\model-api\xml-model\src\main\java\org\camunda\bpm\model\xml\impl\type\child\ChildElementCollectionImpl.java
1
请完成以下Java代码
public void parseSequenceFlow(Element sequenceFlowElement, ScopeImpl scopeElement, TransitionImpl transition) { addExecutionListener(transition); } @Override public void parseServiceTask(Element serviceTaskElement, ScopeImpl scope, ActivityImpl activity) { addExecutionListener(activity); } @Override...
private void addExecutionListener(final TransitionImpl transition) { if (executionListener != null) { addListenerOnCoreModelElement(transition, executionListener, EVENTNAME_TAKE); } } private void addListenerOnCoreModelElement(CoreModelElement element, DelegateListener<?> listener, String event...
repos\camunda-bpm-platform-master\spring-boot-starter\starter\src\main\java\org\camunda\bpm\spring\boot\starter\event\PublishDelegateParseListener.java
1
请完成以下Java代码
private Map<String, Object> resolveExpressions( MappingExecutionContext mappingExecutionContext, Map<String, Object> availableVariables, Map<String, Object> outboundVariables ) { if (mappingExecutionContext.hasExecution()) { return resolveExecutionExpressions(mappingExecu...
new VariableScopeExpressionEvaluator(mappingExecutionContext.getExecution()) ), outboundVariables ); } return expressionResolver.resolveExpressionsMap( new VariableScopeExpressionEvaluator(mappingExecutionContext.getExecution()), outbou...
repos\Activiti-develop\activiti-core\activiti-api-impl\activiti-api-process-runtime-impl\src\main\java\org\activiti\runtime\api\impl\ExtensionsVariablesMappingProvider.java
1
请完成以下Java代码
public Object decide(Authentication authentication, Object object, Collection<ConfigAttribute> config, Object returnedObject) throws AccessDeniedException { if (returnedObject == null) { // AclManager interface contract prohibits nulls // As they have permission to null/nothing, grant access logger.debug...
logger.debug("Denying access"); throw new AccessDeniedException(this.messages.getMessage("AclEntryAfterInvocationProvider.noPermission", new Object[] { authentication.getName(), returnedObject }, "Authentication {0} has NO permissions to the domain object {1}")); } return returnedObject; } @Overrid...
repos\spring-security-main\access\src\main\java\org\springframework\security\acls\afterinvocation\AclEntryAfterInvocationProvider.java
1
请完成以下Java代码
public class PropertyEntity implements DbEntity, HasDbRevision, Serializable { protected static final EnginePersistenceLogger LOG = ProcessEngineLogger.PERSISTENCE_LOGGER; private static final long serialVersionUID = 1L; String name; int revision; String value; public PropertyEntity() { } public Pro...
return name; } public Object getPersistentState() { return value; } public void setId(String id) { throw LOG.notAllowedIdException(id); } public int getRevisionNext() { return revision+1; } @Override public String toString() { return this.getClass().getSimpleName() + "[n...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\PropertyEntity.java
1
请完成以下Java代码
private final void markStorageStaled() { if (productStorage == null) { return; } productStorage.markStaled(); } @Override public final void removeAssignedHUs(final Collection<I_M_HU> husToUnassign) { final Object documentLineModel = getDocumentLineModel(); final String trxName = getTrxName(); fi...
removeAssignedHUs(Collections.singleton(huToDestroy)); final IContextAware contextProvider = InterfaceWrapperHelper.getContextAware(huToDestroy); final IHUContext huContext = Services.get(IHandlingUnitsBL.class).createMutableHUContext(contextProvider); handlingUnitsBL.markDestroyed(huContext, huToDestroy); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\document\impl\AbstractHUAllocations.java
1
请完成以下Java代码
public Long getId() { return id; } @Override public void setId(Long id) { this.id = id; } @Override public String getApp() { return app; } public void setApp(String app) { this.app = app; } @Override public String getIp() { return i...
return port; } public void setPort(Integer port) { this.port = port; } public String getLimitApp() { return limitApp; } public void setLimitApp(String limitApp) { this.limitApp = limitApp; } public String getResource() { return resource; } pub...
repos\JeecgBoot-main\jeecg-boot\jeecg-server-cloud\jeecg-visual\jeecg-cloud-sentinel\src\main\java\com\alibaba\csp\sentinel\dashboard\rule\nacos\entity\ParamFlowRuleCorrectEntity.java
1
请完成以下Java代码
public TopicSubscriptionBuilder withoutTenantId() { withoutTenantId = true; return this; } public TopicSubscriptionBuilder tenantIdIn(String... tenantIds) { ensureNotNull(tenantIds, "tenantIds"); this.tenantIds = Arrays.asList(tenantIds); return this; } public TopicSubscriptionBuilder incl...
subscription.setProcessDefinitionKey(processDefinitionKey); } if (processDefinitionKeys != null) { subscription.setProcessDefinitionKeyIn(processDefinitionKeys); } if (withoutTenantId) { subscription.setWithoutTenantId(withoutTenantId); } if (tenantIds != null) { subscription.s...
repos\camunda-bpm-platform-master\clients\java\client\src\main\java\org\camunda\bpm\client\topic\impl\TopicSubscriptionBuilderImpl.java
1
请完成以下Java代码
public static boolean isDecisionRequirementsDefinitionPersistable(DecisionRequirementsDefinitionEntity definition) { // persist no decision requirements definition for a single decision return definition.getDecisions().size() > 1; } @Override protected void updateDefinitionByPersistedDefinition(Deploymen...
protected DecisionRequirementsDefinitionManager getDecisionRequirementsDefinitionManager() { return getCommandContext().getDecisionRequirementsDefinitionManager(); } // getters/setters /////////////////////////////////////////////////////////////////////////////////// public DmnTransformer getTransformer() ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\dmn\deployer\DecisionRequirementsDefinitionDeployer.java
1
请完成以下Java代码
public String getName() { return name; } public void setName(String name) { this.name = name; } public Collection<User> getUsers() { return users; } public void setUsers(Collection<User> users) { this.users = users; } public Collection<Privilege> getPr...
public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } Role role = (Role) obj; if (!role.equals(role.name)) { ...
repos\tutorials-master\spring-security-modules\spring-security-web-boot-1\src\main\java\com\baeldung\roles\rolesauthorities\model\Role.java
1
请在Spring Boot框架中完成以下Java代码
public class LookupCacheInvalidationDispatcher implements ICacheResetListener { private static final String TRXPROP_TableNamesToInvalidate = LookupCacheInvalidationDispatcher.class + ".TableNamesToInvalidate"; private final LookupDataSourceFactory lookupDataSourceFactory; private final Executor async; public Look...
} private Set<String> extractTableNames(final CacheInvalidateMultiRequest multiRequest) { if (multiRequest.isResetAll()) { // not relevant for our lookups return ImmutableSet.of(); } return multiRequest.getRequests() .stream() .filter(request -> !request.isAll()) // not relevant for our lookup...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\lookup\LookupCacheInvalidationDispatcher.java
2
请在Spring Boot框架中完成以下Java代码
public Map<String, MonitorConfig> getMonitors() { return monitors; } public void setMonitors(Map<String, MonitorConfig> monitors) { this.monitors = monitors; } public Map<String, ProviderConfig> getProviders() { return providers; } public void setProviders(Map<String, ...
* Indicates multiple properties binding from externalized configuration or not. */ private boolean multiple = DEFAULT_MULTIPLE_CONFIG_PROPERTY_VALUE; /** * The property name of override Dubbo config */ private boolean override = DEFAULT_OVERRIDE_CONFIG_PROPERTY_VALUE;...
repos\dubbo-spring-boot-project-master\dubbo-spring-boot-compatible\autoconfigure\src\main\java\org\apache\dubbo\spring\boot\autoconfigure\DubboConfigurationProperties.java
2
请完成以下Java代码
CurrencyConversionContext getCurrencyConversionCtxForBankInTransit() { CurrencyConversionContext currencyConversionContext = this._currencyConversionContextForBankInTransit; if (currencyConversionContext == null) { currencyConversionContext = this._currencyConversionContextForBankInTransit = createCurrencyCon...
final OrgId orgId = OrgId.ofRepoId(line.getAD_Org_ID()); CurrencyConversionContext conversionCtx = services.createCurrencyConversionContext( LocalDateAndOrgId.ofTimestamp(line.getDateAcct(), orgId, services::getTimeZone), paymentCurrencyContext.getCurrencyConversionTypeId(), ClientId.ofRepoId(line.ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java-legacy\org\compiere\acct\DocLine_BankStatement.java
1
请完成以下Java代码
private DhlCustomsDocument getCustomsDocument(@NonNull final I_DHL_ShipmentOrder firstOrder, @NonNull final I_DHL_ShipmentOrder po, @Nullable final String orgBpEORI) { final I_C_BPartner consigneeBpartner = bpartnerDAO.getById(firstOrder.getC_BPartner_ID()); final Package mPackage = purchaseOrderToShipperTransport...
catch (final NoUOMConversionException exception) { //can't convert to EACH, so we don't have an exact number. Just put 1 packagedQuantity = Quantitys.of(1, UomId.EACH); } final I_C_OrderLine orderLine = orderDAO.getOrderLineById(packageItem.getOrderLineId()); final CurrencyCode currencyCode = currencyRep...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.dhl\src\main\java\de\metas\shipper\gateway\dhl\DhlDeliveryOrderService.java
1
请完成以下Java代码
public void operation1() { lock1.lock(); print("lock1 acquired, waiting to acquire lock2."); sleep(50); lock2.lock(); print("lock2 acquired"); print("executing first operation."); lock2.unlock(); lock1.unlock(); } public void operation2() { ...
lock2.unlock(); } public void print(String message) { System.out.println("Thread " + Thread.currentThread() .getName() + ": " + message); } public void sleep(long millis) { try { Thread.sleep(millis); } catch (InterruptedException e) { e.prin...
repos\tutorials-master\core-java-modules\core-java-concurrency-advanced-3\src\main\java\com\baeldung\deadlockAndLivelock\DeadlockExample.java
1
请完成以下Java代码
public int serializedKeySize() { return this.delegate.serializedKeySize(); } public int serializedValueSize() { return this.delegate.serializedValueSize(); } public String topic() { return this.delegate.topic(); } public int partition() { return this.delegate.partition(); } public TimestampType time...
public boolean equals(Object obj) { if (!(obj instanceof ConsumerRecordMetadata)) { return false; } ConsumerRecordMetadata crm = (ConsumerRecordMetadata) obj; return this.delegate.equals(crm.delegate) && this.timestampType.equals(crm.timestampType()); } @Override public String toString() { return t...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\listener\adapter\ConsumerRecordMetadata.java
1
请完成以下Java代码
public int getC_Queue_WorkPackage_ID() { return get_ValueAsInt(COLUMNNAME_C_Queue_WorkPackage_ID); } @Override public I_C_Queue_WorkPackage getC_Queue_Workpackage_Preceeding() { return get_ValueAsPO(COLUMNNAME_C_Queue_Workpackage_Preceeding_ID, I_C_Queue_WorkPackage.class); } @Override public void setC_Q...
{ return get_ValueAsInt(COLUMNNAME_C_Queue_Workpackage_Preceeding_ID); } @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_V...
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 Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) { // @formatter:off return this.matcher.matches(exchange) .filter(ServerWebExchangeMatcher.MatchResult::isMatch) .flatMap((result) -> this.generateRequestResolver.resolve(exchange)) .switchIfEmpty(chain.filter(exchange).then(Mono...
Assert.notNull(matcher, "matcher cannot be null"); this.matcher = matcher; } /** * Use the given {@link ServerGenerateOneTimeTokenRequestResolver} to resolve the * request, defaults to {@link DefaultServerGenerateOneTimeTokenRequestResolver} * @param requestResolver {@link ServerGenerateOneTimeTokenRequestRe...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\server\authentication\ott\GenerateOneTimeTokenWebFilter.java
1
请在Spring Boot框架中完成以下Java代码
public boolean isNf() { return state.notifications; } public boolean isEmpty() { return subs.isEmpty(); } public TbSubscription<?> registerPendingSubscription(TbSubscription<?> subscription, TbEntitySubEvent event) { if (TbSubscriptionType.ATTRIBUTES.equals(subscription.getTyp...
return subscription; } } return null; } public Set<TbSubscription<?>> clearPendingSubscriptions(int seqNumber) { if (pendingTimeSeriesEvent == seqNumber) { pendingTimeSeriesEvent = 0; pendingTimeSeriesEventTs = 0L; } else if (pendingAttributes...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\subscription\TbEntityLocalSubsInfo.java
2
请在Spring Boot框架中完成以下Java代码
private void validateMBeans() { HikariDataSource hikariDataSource = DataSourceUnwrapper.unwrap(this.dataSource, HikariConfigMXBean.class, HikariDataSource.class); if (hikariDataSource != null && hikariDataSource.isRegisterMbeans()) { this.mBeanExporter.ifUnique((exporter) -> exporter.addExcludedBean("dat...
DataSourceProxy dataSourceProxy = DataSourceUnwrapper.unwrap(dataSource, PoolConfiguration.class, DataSourceProxy.class); if (dataSourceProxy != null) { try { return dataSourceProxy.createPool().getJmxPool(); } catch (SQLException ex) { logger.warn("Cannot expose DataSource to JMX (could n...
repos\spring-boot-4.0.1\module\spring-boot-jdbc\src\main\java\org\springframework\boot\jdbc\autoconfigure\DataSourceJmxConfiguration.java
2
请完成以下Java代码
public double getCount() { return rule.getCount(); } @JsonIgnore @JSONField(serialize = false) public List<ParamFlowItem> getParamFlowItemList() { return rule.getParamFlowItemList(); } @JsonIgnore @JSONField(serialize = false) public int getControlBehavior() { r...
} @JsonIgnore @JSONField(serialize = false) public long getDurationInSec() { return rule.getDurationInSec(); } @JsonIgnore @JSONField(serialize = false) public boolean isClusterMode() { return rule.isClusterMode(); } @JsonIgnore @JSONField(serialize = false) ...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\datasource\entity\rule\ParamFlowRuleEntity.java
1
请完成以下Java代码
public class MigratorTool { public static void main(String[] args) { CommandLine cmd = parseArgs(args); try { boolean castEnable = Boolean.parseBoolean(cmd.getOptionValue("castEnable")); File allTelemetrySource = new File(cmd.getOptionValue("telemetryFrom")); Fi...
Option castOpt = new Option("castEnable", "castEnable", true, "cast String to Double if possible"); castOpt.setRequired(true); options.addOption(castOpt); Option relatedOpt = new Option("relatedEntities", "relatedEntities", true, "related entities source file path"); relatedOpt.setRequi...
repos\thingsboard-master\tools\src\main\java\org\thingsboard\client\tools\migrator\MigratorTool.java
1
请完成以下Java代码
public void setSidIdentityQuery(String sidIdentityQuery) { Assert.hasText(sidIdentityQuery, "New sidIdentityQuery query is required"); this.sidIdentityQuery = sidIdentityQuery; } public void setDeleteEntryByObjectIdentityForeignKeySql(String deleteEntryByObjectIdentityForeignKey) { this.deleteEntryByObjectIden...
public void setUpdateObjectIdentity(String updateObjectIdentity) { this.updateObjectIdentity = updateObjectIdentity; } /** * @param foreignKeysInDatabase if false this class will perform additional FK * constrain checking, which may cause deadlocks (the default is true, so deadlocks * are avoided but the dat...
repos\spring-security-main\acl\src\main\java\org\springframework\security\acls\jdbc\JdbcMutableAclService.java
1
请在Spring Boot框架中完成以下Java代码
public class JsonHUAttribute { @NonNull String code; @NonNull String caption; @Nullable Object value; @Nullable Object valueDisplay; @Builder @Jacksonized private JsonHUAttribute( @NonNull final String code, @NonNull final String caption, @Nullable final Object value, @Nullable final Object valueDis...
return value.toString(); } else if (value instanceof Boolean) { return value; } else if (value instanceof java.sql.Timestamp) { final LocalDateTime localDateTime = ((Timestamp)value).toLocalDateTime(); final LocalDate localDate = localDateTime.toLocalDate(); if (localDateTime.equals(localDate.at...
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-manufacturing\src\main\java\de\metas\common\handlingunits\JsonHUAttribute.java
2
请完成以下Java代码
public List<JSONDocument> processChanges( @PathVariable("docId") final int docId, @RequestBody final List<JSONDocumentChangedEvent> events) { userSession.assertLoggedIn(); return Execution.callInNewExecution("processChanges", () -> { final IDocumentChangesCollector changesCollector = Execution.getCurrent...
.getFieldLookupValues(attributeName) .transform(list -> JSONLookupValuesList.ofLookupValuesList(list, userSession.getAD_Language())); } @PostMapping("/{docId}/complete") public JSONLookupValue complete( @PathVariable("docId") final int docId, @RequestBody final JSONCompleteASIRequest request) { userSes...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\address\AddressRestController.java
1
请完成以下Java代码
public class WidgetTypeDetailsEntity extends AbstractWidgetTypeEntity<WidgetTypeDetails> { @Column(name = ModelConstants.WIDGET_TYPE_IMAGE_PROPERTY) private String image; @Column(name = ModelConstants.WIDGET_TYPE_DESCRIPTION_PROPERTY) private String description; @Type(StringArrayType.class) @...
this.image = widgetTypeDetails.getImage(); this.description = widgetTypeDetails.getDescription(); this.tags = widgetTypeDetails.getTags(); this.descriptor = widgetTypeDetails.getDescriptor(); if (widgetTypeDetails.getExternalId() != null) { this.externalId = widgetTypeDetails...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\model\sql\WidgetTypeDetailsEntity.java
1
请完成以下Java代码
public String getRootProcessInstanceId() { return rootProcessInstanceId; } public void setRootProcessInstanceId(String rootProcessInstanceId) { this.rootProcessInstanceId = rootProcessInstanceId; } @Override public Date getRemovalTime() { return removalTime; } public void setRemovalTime(Dat...
+ ", taskId=" + taskId + ", processInstanceId=" + processInstanceId + ", rootProcessInstanceId=" + rootProcessInstanceId + ", revision= "+ revision + ", removalTime=" + removalTime + ", action=" + action + ", message=" + message + ", fullMessa...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\CommentEntity.java
1
请完成以下Java代码
public void setStartImpression (int StartImpression) { set_Value (COLUMNNAME_StartImpression, Integer.valueOf(StartImpression)); } /** Get Start Count Impression. @return For rotation we need a start count */ public int getStartImpression () { Integer ii = (Integer)get_Value(COLUMNNAME_StartImpression);...
/** Set Target URL. @param TargetURL URL for the Target */ public void setTargetURL (String TargetURL) { set_Value (COLUMNNAME_TargetURL, TargetURL); } /** Get Target URL. @return URL for the Target */ public String getTargetURL () { return (String)get_Value(COLUMNNAME_TargetURL); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_Ad.java
1
请在Spring Boot框架中完成以下Java代码
public class PurchaseLastMaxPriceService { @NonNull private final ISysConfigBL sysConfigBL = Services.get(ISysConfigBL.class); @NonNull private final IOrderDAO orderDAO = Services.get(IOrderDAO.class); @NonNull private final MoneyService moneyService; private static final String TABLENAME_Recompute = "purchase_ord...
public void invalidateByProducts(@NonNull Set<ProductId> productIds, @NonNull LocalDate date) { if (productIds.isEmpty()) { return; } final ArrayList<Object> sqlValuesParams = new ArrayList<>(); final StringBuilder sqlValues = new StringBuilder(); for (final ProductId productId : productIds) { if ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\stats\purchase_max_price\PurchaseLastMaxPriceService.java
2
请完成以下Java代码
public SecurityIdentification4Choice getFinInstrmId() { return finInstrmId; } /** * Sets the value of the finInstrmId property. * * @param value * allowed object is * {@link SecurityIdentification4Choice } * */ public void setFinInstrmId(SecurityIden...
*/ public CashAccount16 getSfkpgAcct() { return sfkpgAcct; } /** * Sets the value of the sfkpgAcct property. * * @param value * allowed object is * {@link CashAccount16 } * */ public void setSfkpgAcct(CashAccount16 value) { this.sfkpgAcct...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_02\EntryTransaction2.java
1
请在Spring Boot框架中完成以下Java代码
public static void put(String key, Object value) { if(ObjectUtil.isNotEmpty(value)) { DATA_MAP.put(key, value); REQUEST_DATA.set(DATA_MAP); } } /** * 获取请求参数值 * * @param key 请求参数 * @return */ public static <T> T get(String key) { Concu...
} return null; } /** * 获取请求参数 * * @return 请求参数 MAP 对象 */ public static void clear() { DATA_MAP.clear(); REQUEST_DATA.remove(); } }
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\config\mybatis\ThreadLocalDataHelper.java
2
请在Spring Boot框架中完成以下Java代码
public Person save(Person person) { Person p = personRepository.save(person); System.out.println("为id、key为:" + p.getId() + "数据做了缓存"); return p; } @Override @CacheEvict(value = "people")//2 public void remove(Long id) { System.out.println("删除了id、key为" + id + "的数据缓存"); ...
@Cacheable(value = "people#120#120")//3 public Person findOne1() { Person p = personRepository.findOne(2L); System.out.println("为id、key为:" + p.getId() + "数据做了缓存"); return p; } @Override @Cacheable(value = "people2")//3 public Person findOne2(Person person) { Person p...
repos\spring-boot-student-master\spring-boot-student-cache-redis\src\main\java\com\xiaolyuh\service\impl\PersonServiceImpl.java
2
请在Spring Boot框架中完成以下Java代码
public byte[] getContent() { return this.encoded.substring(0, this.encoded.lastIndexOf('.')).getBytes(); } public byte[] getSignature() { return Base64.getUrlDecoder().decode(this.signature); } public String getSignatureAlgorithm() { return getRequired(this.header, "alg", String.class); } public String g...
} @SuppressWarnings("unchecked") private <T> T getRequired(Map<String, Object> map, String key, Class<T> type) { Object value = map.get(key); if (value == null) { throw new CloudFoundryAuthorizationException(Reason.INVALID_TOKEN, "Unable to get value from key " + key); } if (!type.isInstance(value)) { ...
repos\spring-boot-4.0.1\module\spring-boot-cloudfoundry\src\main\java\org\springframework\boot\cloudfoundry\autoconfigure\actuate\endpoint\Token.java
2
请在Spring Boot框架中完成以下Java代码
public LocalContainerEntityManagerFactoryBean userEntityManager() { final LocalContainerEntityManagerFactoryBean em = new LocalContainerEntityManagerFactoryBean(); em.setDataSource(userDataSource()); em.setPackagesToScan("com.baeldung.multipledb.model.user"); final HibernateJpaVendorAda...
@Primary @ConfigurationProperties(prefix="spring.datasource") public DataSource userDataSource() { return DataSourceBuilder.create().build(); } @Primary @Bean public PlatformTransactionManager userTransactionManager() { final JpaTransactionManager transactionManager = new JpaTra...
repos\tutorials-master\persistence-modules\spring-data-jpa-enterprise\src\main\java\com\baeldung\multipledb\PersistenceUserAutoConfiguration.java
2
请完成以下Java代码
public void setupEnvironment(Hashtable env, String dn, String password) { super.setupEnvironment(env, dn, password); // Remove the pooling flag unless authenticating as the 'manager' user. if (!DefaultSpringSecurityContextSource.this.getUserDn().equals(dn) && env.containsKey(SUN_LDAP_POOLING_FLAG)) { ...
* dc=company,dc=com * </pre> * * . * @return A Spring Security/Spring LDAP-compliant Provider URL string. */ private static String buildProviderUrl(List<String> urls, String baseDn) { Assert.notNull(baseDn, "The Base DN for the LDAP server must not be null."); Assert.notEmpty(urls, "At least one LDAP ser...
repos\spring-security-main\ldap\src\main\java\org\springframework\security\ldap\DefaultSpringSecurityContextSource.java
1
请完成以下Java代码
default IInvoiceCandidateEnqueueResult prepareAndEnqueueSelection(@NonNull final PInstanceId pinstanceId) { prepareSelection(pinstanceId); return enqueueSelection(pinstanceId); }; IInvoiceCandidateEnqueueResult enqueueInvoiceCandidateIds(Set<InvoiceCandidateId> invoiceCandidateIds); /** * Context/transactio...
IInvoiceCandidateEnqueuer setInvoicingParams(IInvoicingParams invoicingParams); /** * Sets the total net amount to invoice checksum. * <p> * If the amount is not null and "FailOnChanges" is set then this checksum will be enforced on enqueued invoice candidates. */ IInvoiceCandidateEnqueuer setTotalNetAmtToIn...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\IInvoiceCandidateEnqueuer.java
1
请完成以下Java代码
public HistoricProcessInstanceQueryImpl createHistoricProcessInstanceQuery() { return new HistoricProcessInstanceQueryImpl(); } public HistoricActivityInstanceQueryImpl createHistoricActivityInstanceQuery() { return new HistoricActivityInstanceQueryImpl(); } public HistoricTaskInstance...
public HistoricVariableInstanceQueryImpl createHistoricVariableInstanceQuery() { return new HistoricVariableInstanceQueryImpl(); } // getters and setters // ////////////////////////////////////////////////////// public SqlSession getSqlSession() { return sqlSession; } public D...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\db\DbSqlSession.java
1
请完成以下Java代码
public String getJoinClause() { return m_joinClause; } // getJoinClause /** * Get Main Table Alias * @return Main Table Alias */ public String getMainAlias() { return m_mainAlias; } // getMainAlias /** * Get Join Table Alias * @return Join Table Alias */ public String getJoinAlias() ...
*/ public String getJoinTable() { return m_joinTable; } // getJoinTable /*************************************************************************/ /** * This Join is a condition of the first Join. * e.g. tb.AD_User_ID(+)=? or tb.AD_User_ID(+)='123' * @param first * @return true if condition ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\dbPort\Join.java
1
请完成以下Java代码
public int getRelatedProduct_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_RelatedProduct_ID); if (ii == null) return 0; return ii.intValue(); } /** RelatedProductType AD_Reference_ID=313 */ public static final int RELATEDPRODUCTTYPE_AD_Reference_ID=313; /** Web Promotion = P */ public static fin...
/** Set Related Product Type. @param RelatedProductType Related Product Type */ public void setRelatedProductType (String RelatedProductType) { set_ValueNoCheck (COLUMNNAME_RelatedProductType, RelatedProductType); } /** Get Related Product Type. @return Related Product Type */ public String getRelatedP...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_RelatedProduct.java
1
请完成以下Java代码
BooleanWithReason parseAndUpdateResult(@NonNull final ScannedCode scannedCode, @NonNull final ParsedScannedCodeBuilder result) { try { final String valueStr = extractAsString(scannedCode).orElse(null); if (valueStr == null) { return BooleanWithReason.falseBecause("Cannot extract part " + this); } ...
{ int startIndex = startPosition - 1; int endIndex = endPosition - 1 + 1; if (endIndex > scannedCode.length()) { return Optional.empty(); } return Optional.of(scannedCode.substring(startIndex, endIndex)); } private BigDecimal toBigDecimal(final String valueStr) { BigDecimal valueBD = new BigDecim...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\scannable_code\format\ScannableCodeFormatPart.java
1
请在Spring Boot框架中完成以下Java代码
public class ApiService { private final RestTemplate restTemplate; private final String baseUrl; public ApiService(RestTemplate restTemplate, String baseUrl) { this.restTemplate = restTemplate; this.baseUrl = baseUrl; } public List<User> fetchUserList() { ParameterizedType...
ResponseEntity<List<User>> response = restTemplate.exchange(baseUrl + "/api/users", HttpMethod.GET, null, typeRef); return response.getBody(); } public User fetchUser(Long id) { return restTemplate.getForObject(baseUrl + "/api/users/" + id, User.class); } public User[] fetchUsersArray...
repos\tutorials-master\spring-core-4\src\main\java\com\baeldung\parametrizedtypereference\ApiService.java
2
请完成以下Java代码
public void setName(String name) { this.name = name; } @Override public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } @Override public String getType() { return type; ...
@Override public int hashCode() { return Objects.hash(id, name, description, type, required, display, displayName, analytics); } @Override public String toString() { return ( "VariableDefinitionImpl{" + "id='" + id + '\'' + ", ...
repos\Activiti-develop\activiti-core\activiti-api-impl\activiti-api-process-model-impl\src\main\java\org\activiti\api\runtime\model\impl\VariableDefinitionImpl.java
1
请在Spring Boot框架中完成以下Java代码
private Properties getContext() { Check.assumeNotNull(_ctx, "ctx not null"); return _ctx; } public JXlsExporter setLoader(final ClassLoader loader) { this._loader = loader; return this; } public ClassLoader getLoader() { return _loader == null ? getClass().getClassLoader() : _loader; } public JXls...
{ this._template = template; return this; } private IXlsDataSource getDataSource() { Check.assumeNotNull(_dataSource, "dataSource not null"); return _dataSource; } public JXlsExporter setDataSource(final IXlsDataSource dataSource) { this._dataSource = dataSource; return this; } public JXlsExporte...
repos\metasfresh-new_dawn_uat\backend\de.metas.report\metasfresh-report-service\src\main\java\de\metas\report\xls\engine\JXlsExporter.java
2
请完成以下Java代码
public static AttributesKeyPattern attributeId(@NonNull final AttributeId attributeId) { return ofPart(AttributesKeyPartPattern.ofAttributeId(attributeId)); } @Getter private final ImmutableList<AttributesKeyPartPattern> partPatterns; private String _sqlLikeString; // lazy private AttributesKeyPattern(@NonNu...
if (partSqlLike.startsWith("%")) { sb.append(partSqlLike.substring(1)); } else { sb.append(partSqlLike); } } else { if (partSqlLike.startsWith("%")) { sb.append(partSqlLike); } else { sb.append("%").append(partSqlLike); } } lastCharIsWildca...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\adempiere\mm\attributes\keys\AttributesKeyPattern.java
1
请在Spring Boot框架中完成以下Java代码
public String getId() { return id; } public void setId(String id) { this.id = id; } @ApiModelProperty(example = "http://localhost:8182/management/jobs/8") public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } @Ap...
@ApiModelProperty(example = "myCfg") public String getJobHandlerConfiguration() { return jobHandlerConfiguration; } public void setJobHandlerConfiguration(String jobHandlerConfiguration) { this.jobHandlerConfiguration = jobHandlerConfiguration; } @ApiModelProperty(example = "myAdva...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\management\HistoryJobResponse.java
2
请在Spring Boot框架中完成以下Java代码
public String getToken(HttpServletRequest request) { return TokenUtils.getTokenByRequest(request); } @Override public String getUsername(String token) { return JwtUtil.getUsername(token); } @Override public String[] getRoles(String token) { String username = JwtUtil.get...
} /** * 将jeecgboot平台的权限传递给积木报表 * @param token * @return */ @Override public String[] getPermissions(String token) { // 获取用户信息 String username = JwtUtil.getUsername(token); SysUserCacheInfo userInfo = null; try { userInfo = sysBaseApi.getCacheU...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\config\jimureport\JimuReportTokenService.java
2
请完成以下Java代码
public boolean isHandled(final GenericDataExportAuditRequest genericDataExportAuditRequest) { final AntPathMatcher antPathMatcher = new AntPathMatcher(); return Arrays.stream(HANDLING_UNITS_RESOURCES) .anyMatch(resource -> antPathMatcher.match(resource, genericDataExportAuditRequest.getRequestURI())); } pr...
} final HuId huId = HuId.ofObject(jsonHU.getId()); final Action exportAction = parentExportAuditId != null ? Action.AlongWithParent : Action.Standalone; final DataExportAuditRequest huDataExportAuditRequest = DataExportAuditRequest.builder() .tableRecordReference(TableRecordReference.of(I_M_HU.Table_Name...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.mobileui\src\main\java\de\metas\handlingunits\rest_api\HUAuditService.java
1
请在Spring Boot框架中完成以下Java代码
public class ExternalReferenceQuery { @NonNull OrgId orgId; @NonNull ExternalSystem externalSystem; @NonNull IExternalReferenceType externalReferenceType; @Nullable String externalReference; @Nullable MetasfreshId metasfreshId; @Builder public ExternalReferenceQuery( @NonNull final OrgId orgId, @NonNull f...
boolean matches = this.externalReferenceType.equals(externalReference.getExternalReferenceType()) && this.orgId.equals(externalReference.getOrgId()) && this.externalSystem.equals(externalReference.getExternalSystem()); if (this.externalReference != null) { matches = matches && this.externalReferenc...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalreference\src\main\java\de\metas\externalreference\ExternalReferenceQuery.java
2
请在Spring Boot框架中完成以下Java代码
public String getOwner() { return owner; } public void setOwner(String owner) { this.owner = owner; ownerSet = true; } public String getAssignee() { return assignee; } public void setAssignee(String assignee) { this.assignee = assignee; assignee...
public boolean isOwnerSet() { return ownerSet; } public boolean isAssigneeSet() { return assigneeSet; } public boolean isDelegationStateSet() { return delegationStateSet; } public boolean isNameSet() { return nameSet; } public boolean isDescriptionSet(...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\runtime\task\TaskRequest.java
2
请完成以下Java代码
public class SysDepartRolePermission { /**id*/ @TableId(type = IdType.ASSIGN_ID) @Schema(description = "id") private java.lang.String id; /**部门id*/ @Excel(name = "部门id", width = 15) @Schema(description = "部门id") private java.lang.String departId; /**角色id*/ @Excel(name = "角色id", width = 15) @Sch...
@Excel(name = "dataRuleIds", width = 15) @Schema(description = "dataRuleIds") private java.lang.String dataRuleIds; /** 操作时间 */ @Excel(name = "操作时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @Sche...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\entity\SysDepartRolePermission.java
1
请完成以下Java代码
public class JsonRequestPriceListVersion { @ApiModelProperty(required = true, value = PRICE_LIST_IDENTIFIER) private String priceListIdentifier; @ApiModelProperty(required = true) private String orgCode; @ApiModelProperty(required = true) private Instant validFrom; @Getter private Boolean active; @ApiModel...
public String getPriceListIdentifier() { return priceListIdentifier; } public void setDescription(final String description) { this.description = description; this.descriptionSet = true; } public void setValidFrom(final Instant validFrom) { this.validFrom = validFrom; } @NonNull public Instant getVa...
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-pricing\src\main\java\de\metas\common\pricing\v2\pricelist\request\JsonRequestPriceListVersion.java
1
请完成以下Java代码
public class ZipPostProcessor extends AbstractDeflaterPostProcessor { public ZipPostProcessor() { } public ZipPostProcessor(boolean autoDecompress) { super(autoDecompress); } @Override protected OutputStream getCompressorStream(OutputStream zipped) throws IOException { ZipOutputStream zipper = new Settable...
@Override protected String getEncoding() { return "zip"; } private static final class SettableLevelZipOutputStream extends ZipOutputStream { SettableLevelZipOutputStream(OutputStream zipped, int level) { super(zipped); this.setLevel(level); } } }
repos\spring-amqp-main\spring-amqp\src\main\java\org\springframework\amqp\support\postprocessor\ZipPostProcessor.java
1
请完成以下Java代码
public boolean hasTaskFormKeyChanged() { return hasStringFieldChanged(TaskInfo::getFormKey); } public boolean hasTaskParentIdChanged() { return hasStringFieldChanged(TaskInfo::getParentTaskId); } private boolean hasStringFieldChanged(Function<TaskInfo, String> comparableTaskGetter) { ...
(originalDate != null && !originalDate.equals(newDate)) ); } return false; } private TaskInfo copyInformationFromTaskInfo(TaskInfo task) { if (task != null) { TaskEntityImpl duplicatedTask = new TaskEntityImpl(); duplicatedTask.setName(task.getName()...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\helper\task\TaskComparatorImpl.java
1
请完成以下Java代码
public void execute() { build().execute(); } } public void execute() { final IAttributeSetInstanceAware asiAware = attributeSetInstanceAwareFactoryService.createOrNull(sourceModel); if (asiAware == null) { return; } final ProductId productId = ProductId.ofRepoIdOrNull(asiAware.getM_Product_ID()...
{ return; } attributeSetInstanceBL.getCreateASI(asiAware); final AttributeSetInstanceId asiId = AttributeSetInstanceId.ofRepoIdOrNull(asiAware.getM_AttributeSetInstance_ID()); final I_M_AttributeInstance ai = attributeSetInstanceBL.getAttributeInstance(asiId, attributeId); if (ai != null) { // If it ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\adempiere\mm\attributes\api\impl\UpdateASIAttributeFromModelCommand.java
1
请完成以下Java代码
protected boolean beforeDelete () { return delete_Accounting("M_Product_Category_Acct"); } // beforeDelete /** * FiFo Material Movement Policy * @return true if FiFo */ public boolean isFiFo() { return MMPOLICY_FiFo.equals(getMMPolicy()); } // isFiFo static void assertNoLoopInTree(final I_M_Produ...
final Iterator<SimpleTreeNode> iter = categories.iterator(); boolean ret = false; while (iter.hasNext()) { final SimpleTreeNode node = iter.next(); if(node.getNodeId()==parentCategoryId){ if (node.getParentId()==0) { //root node, all fine return false; } if(node.getNodeId()==loopIndicato...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MProductCategory.java
1
请完成以下Java代码
private void toggleCurrency() { if (currencyPanel.isVisible()) { currencyPanel.setVisible(false); } else { if (!m_currencyOK) { loadCurrency(); } currencyPanel.setVisible(true); } pack(); } // toggleCurrency /** * Load Currency */ private void loadCurrency() { // Get Default...
/** * KeyPressed Listener * @param e event */ @Override public void keyPressed(KeyEvent e) { // sequence: pressed - typed(no KeyCode) - released char input = e.getKeyChar(); int code = e.getKeyCode(); e.consume(); // does not work on JTextField if (code == KeyEvent.VK_DELETE) { input = 'A...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\Calculator.java
1
请完成以下Java代码
public class ApplicationClient { private Socket clientSocket; private PrintWriter out; private BufferedReader in; public void connect(String ip, int port) throws IOException { clientSocket = new Socket(ip, port); out = new PrintWriter(clientSocket.getOutputStream(), true); in =...
System.out.println("Reply received from the server :: " + reply); } public void disconnect() throws IOException { in.close(); out.close(); clientSocket.close(); } public static void main(String[] args) throws IOException { ApplicationClient client = new ApplicationClien...
repos\tutorials-master\core-java-modules\core-java-networking-3\src\main\java\com\baeldung\clientaddress\ApplicationClient.java
1
请完成以下Java代码
public Collection<I_M_PriceList_Version> getPriceListVersions() { return getPricingInfo().getPriceListVersions(); } @Override public IVendorInvoicingInfo getVendorInvoicingInfoForPLV(final I_M_PriceList_Version plv) { final MaterialTrackingAsVendorInvoicingInfo materialTrackingAsVendorInvoicingInfo = new Mate...
} // as of now, return the last one // TODO: consider returning an aggregated/averaged one return qualityInspectionOrders.get(qualityInspectionOrders.size() - 1); } @Override public void linkModelToMaterialTracking(final Object model) { final I_M_Material_Tracking materialTracking = getM_Material_Tracking...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\qualityBasedInvoicing\impl\MaterialTrackingDocuments.java
1
请在Spring Boot框架中完成以下Java代码
public Declarables topicBindings() { Queue topicQueue1 = new Queue(TOPIC_QUEUE_1_NAME, NON_DURABLE); Queue topicQueue2 = new Queue(TOPIC_QUEUE_2_NAME, NON_DURABLE); TopicExchange topicExchange = new TopicExchange(TOPIC_EXCHANGE_NAME, NON_DURABLE, false); return new Declarables(topicQue...
@Bean public Declarables fanoutBindings() { Queue fanoutQueue1 = new Queue(FANOUT_QUEUE_1_NAME, NON_DURABLE); Queue fanoutQueue2 = new Queue(FANOUT_QUEUE_2_NAME, NON_DURABLE); FanoutExchange fanoutExchange = new FanoutExchange(FANOUT_EXCHANGE_NAME, NON_DURABLE, false); return new D...
repos\tutorials-master\messaging-modules\spring-amqp\src\main\java\com\baeldung\springamqp\broadcast\BroadcastConfig.java
2
请在Spring Boot框架中完成以下Java代码
public ToDo getOne(Long aLong) { return null; } @Override public <S extends ToDo> Optional<S> findOne(Example<S> example) { return Optional.empty(); } @Override public <S extends ToDo> List<S> findAll(Example<S> example) { return null; } @Override public <S...
@Override public <S extends ToDo> Page<S> findAll(Example<S> example, Pageable pageable) { return null; } @Override public <S extends ToDo> long count(Example<S> example) { return 0; } @Override public <S extends ToDo> boolean exists(Example<S> example) { return fal...
repos\SpringBoot-Projects-FullStack-master\Part-8 Spring Boot Real Projects\3.TodoProjectDB\src\main\java\spring\project\repository\LogicRepository.java
2
请在Spring Boot框架中完成以下Java代码
public SecurityUser getOrCreateUserByClientPrincipal(HttpServletRequest request, OAuth2AuthenticationToken token, String providerAccessToken, OAuth2Client oAuth2Client) { OAuth2MapperConfig config = oAuth2Client.getMapperConfig(); Map<String, Object> attributes = updateAttributesFromRequestParams(reques...
} } } if (user.has(EMAIL)) { JsonNode email = user.get(EMAIL); if (email != null && email.isTextual()) { updated.put(EMAIL, email.asText()); } } } }...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\security\auth\oauth2\AppleOAuth2ClientMapper.java
2
请在Spring Boot框架中完成以下Java代码
public IEditablePricingContext setForcePricingConditionsBreak(@Nullable final PricingConditionsBreak forcePricingConditionsBreak) { this.forcePricingConditionsBreak = forcePricingConditionsBreak; return this; } @Override public Optional<IAttributeSetInstanceAware> getAttributeSetInstanceAware() { final Obje...
@Override public Quantity getQuantity() { final BigDecimal ctxQty = getQty(); if (ctxQty == null) { return null; } final UomId ctxUomId = getUomId(); if (ctxUomId == null) { return null; } return Quantitys.of(ctxQty, ctxUomId); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\pricing\service\impl\PricingContext.java
2
请完成以下Java代码
public Integer getConnectorPort() { return connectorPort; } public void setConnectorPort(Integer connectorPort) { this.connectorPort = connectorPort; } @Override public void beforeInit(AbstractEngineConfiguration engineConfiguration) { // nothing to do } @Override ...
try { this.processEngineConfig = (ProcessEngineConfiguration) engineConfiguration; if (!disabled) { managementAgent = new DefaultManagementAgent(this); managementAgent.doStart(); managementAgent.findAndRegisterMbeans(); } } cat...
repos\flowable-engine-main\modules\flowable-jmx\src\main\java\org\flowable\management\jmx\JMXConfigurator.java
1
请完成以下Java代码
private static DocTypePrintOptionsKey toDocTypePrintOptionsKey(@NonNull final I_C_DocType_PrintOptions record) { final DocTypeId docTypeId = DocTypeId.ofRepoId(record.getC_DocType_ID()); final DocumentReportFlavor flavor = DocumentReportFlavor.ofNullableCode(record.getDocumentFlavor()); return DocTypePrintOption...
private final ImmutableMap<DocTypePrintOptionsKey, DocumentPrintOptions> map; DocTypePrintOptionsMap(final Map<DocTypePrintOptionsKey, DocumentPrintOptions> map) { this.map = ImmutableMap.copyOf(map); } public DocumentPrintOptions getByDocTypeAndFlavor( @NonNull final DocTypeId docTypeId, @NonNull ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\report\DocTypePrintOptionsRepository.java
1
请在Spring Boot框架中完成以下Java代码
public Object bodyJson(HttpServletRequest request) { printReq(request); return null; } /** * text/xml * * @return */ @RequestMapping("textXml") public Object textXml(HttpServletRequest request) { printReq(request); return null; } private vo...
Enumeration<?> temp = request.getParameterNames(); if (null != temp) { while (temp.hasMoreElements()) { String en = (String) temp.nextElement(); String value = request.getParameter(en); System.out.println(en + "===>" + value); } } /...
repos\spring-boot-quick-master\quick-hmac\src\main\java\com\quick\hmac\controller\PostController.java
2
请完成以下Java代码
public int getParent_HU_Trx_Line_ID() { return get_ValueAsInt(COLUMNNAME_Parent_HU_Trx_Line_ID); } @Override public void setProcessed (final boolean Processed) { set_Value (COLUMNNAME_Processed, Processed); } @Override public boolean isProcessed() { return get_ValueAsBoolean(COLUMNNAME_Processed); }...
} @Override public int getReversalLine_ID() { return get_ValueAsInt(COLUMNNAME_ReversalLine_ID); } @Override public de.metas.handlingunits.model.I_M_HU_Item getVHU_Item() { return get_ValueAsPO(COLUMNNAME_VHU_Item_ID, de.metas.handlingunits.model.I_M_HU_Item.class); } @Override public void setVHU_Item...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_HU_Trx_Line.java
1
请完成以下Java代码
public CacheInvalidateMultiRequestsCollector collect(@NonNull final CacheInvalidateMultiRequest multiRequest) { multiRequest.getRequests().forEach(this::collect); return this; } private void collect(@NonNull final CacheInvalidateRequest request) { logger.trace("Collecting request on `{}`: {}", name, r...
} // if (autoflush && !documents.isEmpty()) { logger.trace("Auto-flushing {} collected requests for on `{}`", documents.size(), name); DocumentCacheInvalidationDispatcher.this.resetAsync(documents); } } public void resetAsync() { final DocumentToInvalidateMap documents = this.documents; ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\invalidation\DocumentCacheInvalidationDispatcher.java
1
请在Spring Boot框架中完成以下Java代码
public ExcelToMapListConverter build() { return new ExcelToMapListConverter(this); } /** * Sets the header prefix to be used if the header columns is null or black. * * Set it to <code>null</code> to turn it off and get rid of columns without header. * * @see #setDiscardNoNameHeaders() */ ...
/** * Sets if we shall detect repeating headers and discard them. */ public Builder setDiscardRepeatingHeaders(final boolean discardRepeatingHeaders) { this.discardRepeatingHeaders = discardRepeatingHeaders; return this; } /** * If enabled, the XLS converter will look for first not null column a...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java\de\metas\edi\esb\excelimport\ExcelToMapListConverter.java
2
请完成以下Java代码
public class LoginParam { @NotEmpty(message="姓名不能为空") private String loginName; @NotEmpty(message="密码不能为空") @Length(min=6,message="密码长度不能小于6位") private String password; public String getLoginName() { return loginName; } public void setLoginName(String loginName) { this....
public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } @Override public String toString() { return "LoginParam{" + "loginName='" + loginName + '\'' + ", password='" + password +...
repos\spring-boot-leaning-master\2.x_42_courses\第 5-7 课: 综合实战客户管理系统(一)\user-manage\src\main\java\com\neo\param\LoginParam.java
1
请完成以下Java代码
public HttpStatus getStatusCode() { return statusCode; } public Config setStatusCode(HttpStatus statusCode) { this.statusCode = statusCode; return this; } public @Nullable Boolean getDenyEmptyKey() { return denyEmptyKey; } public Config setDenyEmptyKey(Boolean denyEmptyKey) { this.denyEmpt...
} @Override public void setRouteId(String routeId) { this.routeId = routeId; } @Override public @Nullable String getRouteId() { return this.routeId; } } }
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\filter\factory\RequestRateLimiterGatewayFilterFactory.java
1
请完成以下Java代码
public static class CommandLineOptions { @Nullable String dbHost; @Nullable Integer dbPort; @Nullable String dbName; @Nullable String dbUser; @Nullable
String dbPassword; @Nullable String rabbitHost; @Nullable Integer rabbitPort; @Nullable String rabbitUser; @Nullable String rabbitPassword; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\CommandLineParser.java
1