instruction
string
input
string
output
string
source_file
string
priority
int64
请在Spring Boot框架中完成以下Java代码
public void delete() { if (commandExecutor != null) { commandExecutor.execute(context -> { executeDelete(context); return null; }); } else { executeDelete(Context.getCommandContext()); } } protected void executeDelete(C...
public String getSearchKey2() { return searchKey2; } public Date getCreateTimeHigherThan() { return createTimeHigherThan; } public Date getCreateTimeLowerThan() { return createTimeLowerThan; } public String getStatus() { return status; } public String ...
repos\flowable-engine-main\modules\flowable-batch-service\src\main\java\org\flowable\batch\service\impl\BatchQueryImpl.java
2
请完成以下Java代码
public boolean isProcessed() { return false; } @Override public DocumentPath getDocumentPath() { return documentPath; } public TableRecordReference getTableRecordReference() { return createTableRecordReferenceFromShipmentScheduleId(getShipmentScheduleId()); } @Override public ImmutableSet<String> ge...
} @Override public ViewId getIncludedViewId() { return includedViewId; } public ShipmentScheduleId getShipmentScheduleId() { return shipmentScheduleId; } public Optional<OrderLineId> getSalesOrderLineId() { return salesOrderLineId; } public ProductId getProductId() { return product != null ? Pro...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\picking\packageable\PackageableRow.java
1
请完成以下Java代码
static class OnPropertyEnabled { } @ConditionalOnPropertyExists static class OnTrustedProxiesNotEmpty { } } class XForwardedTrustedProxiesCondition extends AllNestedConditions { public XForwardedTrustedProxiesCondition() { super(ConfigurationPhase.REGISTER_BEAN); } @ConditionalOnProperty(name ...
try { String property = context.getEnvironment().getProperty(PROPERTY); if (!StringUtils.hasText(property)) { return ConditionOutcome.noMatch(PROPERTY + " property is not set or is empty."); } return ConditionOutcome.match(PROPERTY + " property is not empty."); } catch (NoSuchElementException...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\filter\headers\TrustedProxies.java
1
请完成以下Java代码
private LULoaderInstance createLULoaderInstanceForTU(final I_M_HU tuHU) { final BPartnerId bpartnerId = IHandlingUnitsBL.extractBPartnerIdOrNull(tuHU); final int bpartnerLocationId = tuHU.getC_BPartner_Location_ID(); final LocatorId locatorId = warehousesRepo.getLocatorIdByRepoIdOrNull(tuHU.getM_Locator_ID()); ...
{ return Collections.emptyList(); } final List<I_M_HU> luHUs = new ArrayList<>(luInstances.size()); for (final LULoaderInstance luInstance : luInstances) { final I_M_HU luHU = luInstance.getLU_HU(); luHUs.add(luHU); } return luHUs; } public void close() { luInstances.forEach(LULoaderInstanc...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\allocation\impl\LULoader.java
1
请完成以下Java代码
default BigDecimal getWeightTareTotal() { BigDecimal weightTareTotal = BigDecimal.ZERO; if (hasWeightTare()) { final BigDecimal weightTare = getWeightTare(); weightTareTotal = weightTareTotal.add(weightTare); } // 07023_Tara_changeable_in_LU // We have to also check if there is any tare adjust if...
AttributeCode getWeightGrossAttribute(); void setWeightGross(final BigDecimal weightGross); BigDecimal getWeightGross(); Quantity getWeightGrossAsQuantity(); /** * @return true if given attribute is the attribute used for the weight tare adjust */ boolean isWeightTareAdjustAttribute(final AttributeCode att...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\attribute\weightable\IWeightable.java
1
请完成以下Java代码
private UserAuthToken authenticate(@NonNull final UserAuthTokenSupplier authTokenStringSupplier, @NonNull final AuthResolution authResolution) { if (authResolution.isDoNotAuthenticate()) { return null; } try { final String authTokenString = StringUtils.trimBlankToNull(authTokenStringSupplier.getAuthTo...
return ctx; } public UserAuthToken getOrCreateNewToken(@NonNull final CreateUserAuthTokenRequest request) { return userAuthTokenRepo.getOrCreateNew(request); } private UserInfo getUserInfo(@NonNull final UserId userId) { return userInfoById.getOrLoad(userId, this::retrieveUserInfo); } private UserInfo re...
repos\metasfresh-new_dawn_uat\backend\de.metas.util.web\src\main\java\de\metas\util\web\security\UserAuthTokenService.java
1
请完成以下Java代码
public void configureApiVersioning(ApiVersionConfigurer configurer) { Boolean required = versionProperties.getRequired(); Boolean detectSupported = versionProperties.getDetectSupported(); Apiversion.Use use = versionProperties.getUse(); // only set defaults is one or more use options is set if (StringUt...
} else if (factory == Factory.JDK) { setJdkHttpClientProperties = JDK; } if (setJdkHttpClientProperties) { // TODO: customize restricted headers String restrictedHeaders = System.getProperty("jdk.httpclient.allowRestrictedHeaders"); if (!StringUtils.hasText(restrictedHeaders)) { System.se...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webmvc\src\main\java\org\springframework\cloud\gateway\server\mvc\GatewayServerMvcAutoConfiguration.java
1
请完成以下Java代码
public void setAD_BoilerPlate_ID (final int AD_BoilerPlate_ID) { if (AD_BoilerPlate_ID < 1) set_Value (COLUMNNAME_AD_BoilerPlate_ID, null); else set_Value (COLUMNNAME_AD_BoilerPlate_ID, AD_BoilerPlate_ID); } @Override public int getAD_BoilerPlate_ID() { return get_ValueAsInt(COLUMNNAME_AD_BoilerPla...
public void setC_DocType_ID (final int C_DocType_ID) { if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, C_DocType_ID); } @Override public int getC_DocType_ID() { return get_ValueAsInt(COLUMNNAME_C_DocType_ID); } @Override public void setS...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_DocType_BoilerPlate.java
1
请完成以下Java代码
public final class CasGatewayAuthenticationRedirectFilter extends GenericFilterBean { public static final String CAS_GATEWAY_AUTHENTICATION_ATTR = "CAS_GATEWAY_AUTHENTICATION"; private final String casLoginUrl; private final ServiceProperties serviceProperties; private RequestMatcher requestMatcher; private R...
this.requestCache.saveRequest(request, response); HttpSession session = request.getSession(true); session.setAttribute(CAS_GATEWAY_AUTHENTICATION_ATTR, true); String urlEncodedService = WebUtils.constructServiceUrl(request, response, this.serviceProperties.getService(), null, this.serviceProperties.getService...
repos\spring-security-main\cas\src\main\java\org\springframework\security\cas\web\CasGatewayAuthenticationRedirectFilter.java
1
请完成以下Java代码
protected String doIt() { if (Check.isEmpty(barcode, true)) { throw new FillMandatoryException(PARAM_Barcode); } final GlobalActionEvent event = GlobalActionEvent.parseQRCode(barcode); final GlobalActionHandlerResult result = globalActionsDispatcher.dispatchEvent(event); updateProcessResult(result); ...
{ final OpenViewGlobalActionHandlerResult openViewResult = (OpenViewGlobalActionHandlerResult)result; final ViewId viewId = openViewResult.getViewId(); final ViewProfileId viewProfileId = openViewResult.getViewProfileId(); getResult().setWebuiViewToOpen(WebuiViewToOpen.builder() .viewId(viewId.toJson()...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\globalaction\process\GlobalActionReadProcess.java
1
请完成以下Java代码
private void createBalanceLine() { StringBuffer sb = new StringBuffer ("INSERT INTO T_ReportStatement " + "(AD_PInstance_ID, Fact_Acct_ID, LevelNo," + "DateAcct, Name, Description," + "AmtAcctDr, AmtAcctCr, Balance, Qty) "); sb.append("SELECT ").append(getPinstanceId().getRepoId()).append(",0,0,") .app...
+ "AmtAcctDr, AmtAcctCr, Balance, Qty) "); sb.append("SELECT ").append(getPinstanceId().getRepoId()).append(",Fact_Acct_ID,1,") .append("TRUNC(DateAcct),NULL,NULL," + "AmtAcctDr, AmtAcctCr, AmtAcctDr-AmtAcctCr, Qty " + "FROM Fact_Acct " + "WHERE ").append(m_parameterWhere) .append(" AND TRUNC(DateAcct)...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-legacy\org\compiere\report\FinStatement.java
1
请完成以下Java代码
public Map<String, Object> getStartFormVariables() { return startFormVariables; } @Override public String getCallbackId() { return this.callbackId; } @Override public String getCallbackType() { return this.callbackType; } @Override public String getReferenc...
} @Override public String getParentId() { return this.parentId; } @Override public boolean isFallbackToDefaultTenant() { return this.fallbackToDefaultTenant; } @Override public boolean isStartWithForm() { return this.startWithForm; } }
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\CaseInstanceBuilderImpl.java
1
请完成以下Java代码
public static Optional<ContactPerson> cast(@Nullable final DataRecord dataRecord) { return dataRecord instanceof ContactPerson ? Optional.of((ContactPerson)dataRecord) : Optional.empty(); } String name; @Nullable UserId userId; @Nullable BPartnerId bPartnerId; @Nullable ContactAddress address; ...
LocationId locationId; @Nullable BoilerPlateId boilerPlateId; @Nullable Language language; public String getEmailAddressStringOrNull() { return EmailAddress.getEmailAddressStringOrNull(getAddress()); } public boolean hasEmailAddress() { return getEmailAddressStringOrNull() != null; } public Deactiva...
repos\metasfresh-new_dawn_uat\backend\de.metas.marketing\base\src\main\java\de\metas\marketing\base\model\ContactPerson.java
1
请在Spring Boot框架中完成以下Java代码
public void cancelShipment(String orderId) { String sql = "UPDATE shipments SET status=? WHERE orderId=?;"; try (Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql)) { pstmt.setString(1, Shipment.Status.CANCELED.name()); pstmt.setString(2, orde...
public void readDriver(int driverId, Driver driver) { String sql = "SELECT name, contact FROM drivers WHERE id = ?"; try (Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql)) { pstmt.setInt(1, driverId); ResultSet rs = pstmt.executeQuery(); ...
repos\tutorials-master\microservices-modules\saga-pattern\src\main\java\io\orkes\example\saga\dao\ShipmentDAO.java
2
请完成以下Java代码
private ImmutableSet<ElementValueId> getElementValueIdsBetween_NUMERIC(final String accountValueFrom, final String accountValueTo) { final BigDecimal from = NumberUtils.asBigDecimal(accountValueFrom); final BigDecimal to = NumberUtils.asBigDecimal(accountValueTo); final StringToNumericModifier stringToNumericMo...
private static final class ElementValuesMap { private final ImmutableMap<ElementValueId, ElementValue> byId; private ImmutableSet<ElementValueId> _openItemIds; private ElementValuesMap(final List<ElementValue> list) { byId = Maps.uniqueIndex(list, ElementValue::getId); } public ElementValue getById(fi...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\elementvalue\ElementValueRepository.java
1
请完成以下Java代码
public boolean ask(final int WindowNo, final String AD_Message) { return getCurrentInstance().ask(WindowNo, AD_Message); } @Override public boolean ask(final int WindowNo, final String AD_Message, final String message) { return getCurrentInstance().ask(WindowNo, AD_Message, message); } @Override public vo...
return getCurrentInstance().createUserThread(runnable, threadName); } @Override public String getClientInfo() { return getCurrentInstance().getClientInfo(); } /** * This method does nothing. * * @deprecated please check out the deprecation notice in {@link IClientUIInstance#hideBusyDialog()}. */ @Dep...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\adempiere\form\AbstractClientUI.java
1
请在Spring Boot框架中完成以下Java代码
public class SyncProductSupply implements IConfirmableDTO { String uuid; boolean deleted; long syncConfirmationId; String bpartner_uuid; String product_uuid; String contractLine_uuid; BigDecimal qty; LocalDate day; boolean weekPlanning; int version; @Builder(toBuilder = true) @JsonCreator public SyncProd...
} @Override public String toString() { return "SyncProductSupply [" + "bpartner_uuid=" + bpartner_uuid + ", product_uuid=" + product_uuid + ", contractLine_uuid=" + contractLine_uuid + ", qty=" + qty + ", day=" + day + ", weekPlanning=" + weekPlanning + ", version=" + version + ", ...
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-procurement\src\main\java\de\metas\common\procurement\sync\protocol\dto\SyncProductSupply.java
2
请完成以下Java代码
public int getNoInventoryCount () { Integer ii = (Integer)get_Value(COLUMNNAME_NoInventoryCount); if (ii == null) return 0; return ii.intValue(); } /** Set Number of Product counts. @param NoProductCount Frequency of product counts per year */ public void setNoProductCount (int NoProductCount) ...
set_Value (COLUMNNAME_NumberOfRuns, Integer.valueOf(NumberOfRuns)); } /** Get Number of runs. @return Frequency of processing Perpetual Inventory */ public int getNumberOfRuns () { Integer ii = (Integer)get_Value(COLUMNNAME_NumberOfRuns); if (ii == null) return 0; return ii.intValue(); } /** Set...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_PerpetualInv.java
1
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getMemberId() { return memberId; } public void setMemberId(Long memberId) { this.memberId = memberId; } public String getName() { return name; } ...
public void setCity(String city) { this.city = city; } public String getRegion() { return region; } public void setRegion(String region) { this.region = region; } public String getDetailAddress() { return detailAddress; } public void setDetailAddress(S...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\UmsMemberReceiveAddress.java
1
请在Spring Boot框架中完成以下Java代码
public void fetchAuthorAsDtoClass() { List<AuthorDto> authors = authorRepository.fetchAsDto(); authors.forEach(System.out::println); briefOverviewOfPersistentContextContent(); } @Transactional(readOnly = true) public void fetchAuthorAsDtoClassColumns() { List<AuthorDto> aut...
private void briefOverviewOfPersistentContextContent() { org.hibernate.engine.spi.PersistenceContext persistenceContext = getPersistenceContext(); int managedEntities = persistenceContext.getNumberOfManagedEntities(); System.out.println("\n-----------------------------------"); System....
repos\Hibernate-SpringBoot-master\HibernateSpringBootJoinDtoAllFields\src\main\java\com\bookstore\service\BookstoreService.java
2
请完成以下Java代码
public org.compiere.model.I_API_Request_Audit getAPI_Request_Audit() { return get_ValueAsPO(COLUMNNAME_API_Request_Audit_ID, org.compiere.model.I_API_Request_Audit.class); } @Override public void setAPI_Request_Audit(final org.compiere.model.I_API_Request_Audit API_Request_Audit) { set_ValueFromPO(COLUMNNAME_...
return get_ValueAsString(COLUMNNAME_HttpCode); } @Override public void setHttpHeaders (final @Nullable java.lang.String HttpHeaders) { set_Value (COLUMNNAME_HttpHeaders, HttpHeaders); } @Override public java.lang.String getHttpHeaders() { return get_ValueAsString(COLUMNNAME_HttpHeaders); } @Override ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_API_Response_Audit.java
1
请完成以下Java代码
public MultipleArticleModel getArticlesByAuthor(@RequestParam String author, Pageable pageable) { final var articles = articleService.getArticlesByAuthorName(author, pageable); return MultipleArticleModel.fromArticles(articles); } @GetMapping(value = "/articles", params = {"tag"}) public Mu...
@PostMapping("/articles/{slug}/favorite") public ArticleModel favoriteArticleBySlug(@AuthenticationPrincipal UserJWTPayload jwtPayload, @PathVariable String slug) { var articleFavorited = articleService.favoriteArticle(jwtPayload.getUserId(), slug); retu...
repos\realworld-springboot-java-master\src\main\java\io\github\raeperd\realworld\application\article\ArticleRestController.java
1
请完成以下Java代码
public EventModelBuilder category(String category) { this.category = category; return this; } @Override public EventModelBuilder parentDeploymentId(String parentDeploymentId) { this.parentDeploymentId = parentDeploymentId; return this; } @Override public...
eventPayloadDefinitions.put(name, EventPayload.fullPayload(name)); return this; } @Override public EventModel createEventModel() { return buildEventModel(); } @Override public EventDeployment deploy() { if (resourceName == null) { throw new FlowableIllegalAr...
repos\flowable-engine-main\modules\flowable-event-registry\src\main\java\org\flowable\eventregistry\impl\model\EventModelBuilderImpl.java
1
请完成以下Java代码
public class ExtensionImpl extends BpmnModelElementInstanceImpl implements Extension { protected static Attribute<String> definitionAttribute; protected static Attribute<Boolean> mustUnderstandAttribute; protected static ChildElementCollection<Documentation> documentationCollection; public static void registe...
} public String getDefinition() { return definitionAttribute.getValue(this); } public void setDefinition(String Definition) { definitionAttribute.setValue(this, Definition); } public boolean mustUnderstand() { return mustUnderstandAttribute.getValue(this); } public void setMustUnderstand(b...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\ExtensionImpl.java
1
请完成以下Java代码
public class GraphElement extends PrintElement { /** * Constructor * @param pg graph model */ public GraphElement(MPrintGraph pg) { } // GraphElement /** * Layout and Calculate Size * Set p_width & p_height * @return true if calculated */ protected boolean calculateSize() {
return false; } // calcluateSize /** * Paint/Print. * @param g2D Graphics * @param pageNo page number for multi page support (0 = header/footer) * @param pageStart top left Location of page * @param ctx context * @param isView true if online view (IDs are links) */ public void paint (Graphics2D ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\layout\GraphElement.java
1
请完成以下Java代码
private List<ServiceInstance> resolveInternal() { // Discover servers final List<ServiceInstance> newInstanceList = discoverServers(); if (CollectionUtils.isEmpty(newInstanceList)) { log.error("No servers found for {}", getName()); this.savedListener.o...
log.info("Done updating server list for {}", getName()); return newInstanceList; } private List<EquivalentAddressGroup> toTargets(final List<ServiceInstance> newInstanceList) { final List<EquivalentAddressGroup> targets = Lists.newArrayList(); for (final ServiceInsta...
repos\grpc-spring-master\grpc-client-spring-boot-starter\src\main\java\net\devh\boot\grpc\client\nameresolver\DiscoveryClientNameResolver.java
1
请完成以下Java代码
public ResponseEntity deleteComment( @PathVariable("slug") String slug, @PathVariable("id") String commentId, @AuthenticationPrincipal User user) { Article article = articleRepository.findBySlug(slug).orElseThrow(ResourceNotFoundException::new); return commentRepository .findBy...
return new HashMap<String, Object>() { { put("comment", commentData); } }; } } @Getter @NoArgsConstructor @JsonRootName("comment") class NewCommentParam { @NotBlank(message = "can't be empty") private String body; }
repos\spring-boot-realworld-example-app-master\src\main\java\io\spring\api\CommentsApi.java
1
请在Spring Boot框架中完成以下Java代码
public class GemFireProperties { private static final boolean DEFAULT_USE_BEAN_FACTORY_LOCATOR = false; private boolean useBeanFactoryLocator = DEFAULT_USE_BEAN_FACTORY_LOCATOR; @NestedConfigurationProperty private final CacheProperties cache = new CacheProperties(); @NestedConfigurationProperty private final...
return this.locators; } public void setLocators(String[] locators) { this.locators = locators; } public LoggingProperties getLogging() { return this.logging; } public ManagementProperties getManagement() { return this.management; } public ManagerProperties getManager() { return this.manager; } pu...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-autoconfigure\src\main\java\org\springframework\geode\boot\autoconfigure\configuration\GemFireProperties.java
2
请完成以下Spring Boot application配置
# DataSource settings: set here configurations for the database connection spring.datasource.url = jdbc:mysql://localhost:8889/netgloo_blog spring.datasource.username = root spring.datasource.password = root # Show or not log for each sql query spring.jpa.show-sql = true # Hibernate s
ettings spring.jpa.hibernate.ddl-auto = create spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
repos\spring-boot-samples-master\spring-boot-springdatajpa-inheritance\src\main\resources\application.properties
2
请完成以下Java代码
public void updateExternalTaskSuspensionStateByProcessInstanceId(String processInstanceId, SuspensionState suspensionState) { updateExternalTaskSuspensionState(processInstanceId, null, null, suspensionState); } public void updateExternalTaskSuspensionStateByProcessDefinitionId(String processDefinitionId, Suspe...
protected boolean useCreateTime(List<QueryOrderingProperty> orderingProperties) { return orderingProperties.stream() .anyMatch(orderingProperty -> CREATE_TIME.getName().equals(orderingProperty.getQueryProperty().getName())); } public void fireExternalTaskAvailableEvent() { Context.getCommandContext...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\ExternalTaskManager.java
1
请完成以下Java代码
public static SshClient setUpSshClient() { SshClient client = SshClient.setUpDefaultClient(); client.start(); client.setServerKeyVerifier(AcceptAllServerKeyVerifier.INSTANCE); return client; } public static ClientSession connectToServer(SshClient client) throws IOException { ...
SftpClientFactory factory = SftpClientFactory.instance(); return factory.createSftpClient(session); } public static List<SftpClient.DirEntry> listDirectory(SftpClient sftp, String remotePath) throws IOException { Iterable<SftpClient.DirEntry> entriesIterable = sftp.readDir(remotePath); ...
repos\tutorials-master\libraries-security\src\main\java\com\baeldung\listfilesremoteserver\RemoteServerApacheSshd.java
1
请完成以下Java代码
protected void prepare() { ProcessInfoParameter[] para = getParametersAsArray(); for (ProcessInfoParameter element : para) { String name = element.getParameterName(); if (element.getParameter() == null) { } else { log.error("Unknown Parameter: " + name); } } } // prepare /** ...
DB.close(rs, pstmt); rs = null; pstmt = null; } return "OK"; } // doIt /** * Process Translation Table * @param table table */ private void processTable (MTable table, ClientId clientId) { StringBuffer sql = new StringBuffer(); MColumn[] columns = table.getColumns(false); for (MColumn co...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\process\TranslationDocSync.java
1
请完成以下Java代码
public Object getCellEditorValue() { if (m_editor == null) { return null; } final Object valueEditor = m_editor.getValue(); // // Check and convert the value if needed final Object valueModel; if (valueEditor instanceof Number && modelValueClass == KeyNamePair.class) { final int key = ((Numbe...
@Override public void cancelCellEditing() { super.cancelCellEditing(); } private Object convertToEditorValue(final Object valueModel) { final Object valueEditor; if (valueModel instanceof KeyNamePair && editorValueClass == Integer.class) { valueEditor = ((KeyNamePair)valueModel).getKey(); } else ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\swing\table\AnnotatedTableModelCellEditor.java
1
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; }
public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Integer getScore() { return score; } public void setScore(Integer score) { this.score = score; } }
repos\springboot-learning-example-master\spring-data-elasticsearch-crud\src\main\java\org\spring\springboot\domain\City.java
1
请完成以下Java代码
public abstract class BaseData<I extends UUIDBased> extends IdBased<I> implements Serializable { private static final long serialVersionUID = 5422817607129962637L; public static final ObjectMapper mapper = new ObjectMapper(); protected long createdTime; public BaseData() { super(); } ...
final int prime = 31; int result = super.hashCode(); result = prime * result + Long.hashCode(createdTime); return result; } @SuppressWarnings("rawtypes") @Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\BaseData.java
1
请完成以下Java代码
public Map<String, Object> getVariables() { return variables; } public void setVariables(Map<String, Object> variables) { this.variables = variables; } public Map<String, Object> getTransientVariables() { return transientVariables; } public void setTransientVariables(M...
} public Process getProcess() { return process; } public void setProcess(Process process) { this.process = process; } public ProcessDefinition getProcessDefinition() { return processDefinition; } public void setProcessDefinition(ProcessDefinition processDefinition...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\interceptor\AbstractStartProcessInstanceAfterContext.java
1
请完成以下Java代码
public String getNote() { return note; } public void setNote(String note) { this.note = note; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ")....
sb.append(", defaultStatus=").append(defaultStatus); sb.append(", freeFreightPoint=").append(freeFreightPoint); sb.append(", commentGrowthPoint=").append(commentGrowthPoint); sb.append(", priviledgeFreeFreight=").append(priviledgeFreeFreight); sb.append(", priviledgeSignIn=").append(priv...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\UmsMemberLevel.java
1
请完成以下Java代码
public void setRfQType (java.lang.String RfQType) { set_Value (COLUMNNAME_RfQType, RfQType); } /** Get Ausschreibung Art. @return Ausschreibung Art */ @Override public java.lang.String getRfQType () { return (java.lang.String)get_Value(COLUMNNAME_RfQType); } @Override public org.compiere.model.I_AD...
} /** Set Aussendienst. @param SalesRep_ID Aussendienst */ @Override public void setSalesRep_ID (int SalesRep_ID) { if (SalesRep_ID < 1) set_Value (COLUMNNAME_SalesRep_ID, null); else set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); } /** Get Aussendienst. @return Aussendienst...
repos\metasfresh-new_dawn_uat\backend\de.metas.rfq\src\main\java-gen\de\metas\rfq\model\X_C_RfQ.java
1
请完成以下Java代码
public void setActorId (final @Nullable java.lang.String ActorId) { set_Value (COLUMNNAME_ActorId, ActorId); } @Override public java.lang.String getActorId() { return get_ValueAsString(COLUMNNAME_ActorId); } @Override public void setBase_url (final @Nullable java.lang.String Base_url) { set_Value (COL...
else set_Value (COLUMNNAME_M_Shipper_ID, M_Shipper_ID); } @Override public int getM_Shipper_ID() { return get_ValueAsInt(COLUMNNAME_M_Shipper_ID); } @Override public void setPassword (final @Nullable java.lang.String Password) { set_Value (COLUMNNAME_Password, Password); } @Override public java.l...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_Carrier_Config.java
1
请完成以下Java代码
public String toString(final boolean includeTagMarkers) { return includeTagMarkers ? toStringWithMarkers() : toStringWithoutMarkers(); } @NonNull public String toStringWithMarkers() { String cachedToStringWithTagMarkers = this.cachedToStringWithTagMarkers; if (cachedToStringWithTagMarkers == null) { ca...
return false; } if (getClass() != obj.getClass()) { return false; } final CtxName other = (CtxName)obj; if (defaultValue == null) { if (other.defaultValue != null) { return false; } } else if (!defaultValue.equals(other.defaultValue)) { return false; } if (modifiers == null) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\util\CtxName.java
1
请完成以下Java代码
public static void main(String[] args) { System.out.println("Please enter your name and surname: "); Scanner scanner = new Scanner(System.in); String nameSurname = scanner.nextLine(); System.out.println("Please enter your gender: "); char gender = scanner.next().charAt(0); ...
// TODO Auto-generated catch block e.printStackTrace(); } System.out.println("You are a " + (i > 5 ? "great" : "good") + " developer!"); int sum = 0, count = 0; System.out.println("Please enter your college degrees. To finish, enter baeldung website url"); while (...
repos\tutorials-master\core-java-modules\core-java-console\src\main\java\com\baeldung\console\ConsoleScannerClass.java
1
请在Spring Boot框架中完成以下Java代码
public class ImageGenerator { private final ImageModel imageModel; public ImageGenerator(ImageModel imageModel) { this.imageModel = imageModel; } public String generate(String prompt) { ImagePrompt imagePrompt = new ImagePrompt(prompt); ImageResponse imageResponse = imageModel...
.withUser(request.username()) .withHeight(request.height()) .withWidth(request.width()) .build(); ImagePrompt imagePrompt = new ImagePrompt(request.prompt(), imageOptions); ImageResponse imageResponse = imageModel.call(imagePrompt); return resolveImageContent...
repos\tutorials-master\spring-ai-modules\spring-ai-3\src\main\java\com\baeldung\imagegen\ImageGenerator.java
2
请完成以下Java代码
public class ProcessDefinitionFormType extends AbstractFormType { private static final long serialVersionUID = 1L; public static final String TYPE_NAME = "processDefinition"; @Override public String getName() { return TYPE_NAME; } @Override public Object convertFormValueToModelVa...
return processDefinition; } return null; } @Override public String convertModelValueToFormValue(Object modelValue) { if (modelValue == null) { return null; } if (!(modelValue instanceof ProcessDefinition)) { throw new FlowableIllegalArgumentEx...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\form\ProcessDefinitionFormType.java
1
请在Spring Boot框架中完成以下Java代码
public BatchBuilder batchDocumentJson(String batchDocumentJson) { this.batchDocumentJson = batchDocumentJson; return this; } @Override public BatchBuilder tenantId(String tenantId) { this.tenantId = tenantId; return this; } @Override public Batch create() { ...
return searchKey2; } @Override public String getStatus() { return status; } @Override public String getBatchDocumentJson() { return batchDocumentJson; } @Override public String getTenantId() { return tenantId; } }
repos\flowable-engine-main\modules\flowable-batch-service\src\main\java\org\flowable\batch\service\impl\BatchBuilderImpl.java
2
请完成以下Java代码
public void setDatePattern(String datePattern) { this.datePattern = datePattern; } public boolean isReadable() { return readable; } public void setReadable(boolean readable) { this.readable = readable; } public boolean isWriteable() { return writeable; } ...
public FormProperty clone() { FormProperty clone = new FormProperty(); clone.setValues(this); return clone; } public void setValues(FormProperty otherProperty) { super.setValues(otherProperty); setName(otherProperty.getName()); setExpression(otherProperty.getExpr...
repos\flowable-engine-main\modules\flowable-bpmn-model\src\main\java\org\flowable\bpmn\model\FormProperty.java
1
请完成以下Java代码
public static class ShortTypeImpl extends PrimitiveValueTypeImpl { private static final long serialVersionUID = 1L; public ShortTypeImpl() { super(Short.class); } public ShortValue createValue(Object value, Map<String, Object> valueInfo) { return Variables.shortValue((Short) value, isTran...
return true; } } public static class StringTypeImpl extends PrimitiveValueTypeImpl { private static final long serialVersionUID = 1L; public StringTypeImpl() { super(String.class); } public StringValue createValue(Object value, Map<String, Object> valueInfo) { return Variables.st...
repos\camunda-bpm-platform-master\commons\typed-values\src\main\java\org\camunda\bpm\engine\variable\impl\type\PrimitiveValueTypeImpl.java
1
请完成以下Java代码
public class OrderResponse { private String orderId; private Map<String, Integer> products; private OrderStatusResponse orderStatus; OrderResponse(Order order) { this.orderId = order.getOrderId(); this.products = order.getProducts(); this.orderStatus = toResponse(order.getOrder...
OrderResponse() { } public String getOrderId() { return orderId; } public Map<String, Integer> getProducts() { return products; } public OrderStatusResponse getOrderStatus() { return orderStatus; } }
repos\tutorials-master\patterns-modules\axon\src\main\java\com\baeldung\axon\querymodel\OrderResponse.java
1
请完成以下Java代码
private ImmutableList<IDocumentFieldCallout> buildCallouts() { return ImmutableList.copyOf(callouts); } public Builder setButtonActionDescriptor(@Nullable final ButtonFieldActionDescriptor buttonActionDescriptor) { this.buttonActionDescriptor = buttonActionDescriptor; return this; } public boolea...
public int getDefaultOrderByPriority() { // we assume isDefaultOrderBy() was checked before calling this method //noinspection OptionalGetWithoutIsPresent return getDataBinding().get().getDefaultOrderByPriority(); } public boolean isDefaultOrderByAscending() { // we assume isDefaultOrderBy() was ch...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\DocumentFieldDescriptor.java
1
请在Spring Boot框架中完成以下Java代码
public File getSingleAttachment(String apiKey, String id) throws ApiException { ApiResponse<File> resp = getSingleAttachmentWithHttpInfo(apiKey, id); return resp.getData(); } /** * Einzelne Anlage abrufen * Szenario - das WaWi ruft ein bestimmte Anlage als PDF ab * @param apiKey ...
ProgressRequestBody.ProgressRequestListener progressRequestListener = null; if (callback != null) { progressListener = new ProgressResponseBody.ProgressListener() { @Override public void update(long bytesRead, long contentLength, boolean done) { c...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-document-api\src\main\java\io\swagger\client\api\AttachmentApi.java
2
请在Spring Boot框架中完成以下Java代码
public int getStatus() { return status; } public void setStatus(int status) { this.status = status; } public String getError() { return error; } public void setError(String error) { this.error = error; } public String getMessage() { return mess...
public String getPath() { return path; } public void setPath(String path) { this.path = path; } @Override public String toString() { return "ExceptionMessage [timestamp=" + timestamp + ", status=" + status + ", error=" + error + ", message=" + message + ", path=" + path + "...
repos\tutorials-master\spring-cloud-modules\spring-cloud-openfeign-2\src\main\java\com\baeldung\cloud\openfeign\fileupload\config\ExceptionMessage.java
2
请完成以下Java代码
private JSONIncludedTabInfo getIncludedTabInfo(final DetailId tabId) { return getIncludedTabsInfo().computeIfAbsent(tabId.toJson(), k -> JSONIncludedTabInfo.newInstance(tabId)); } void addIncludedTabInfo(@NonNull final JSONIncludedTabInfo tabInfo) { getIncludedTabsInfo().compute(tabInfo.getTabId().toJson(), (t...
if (!Objects.equals(windowId, from.windowId) || !Objects.equals(id, from.id)) { throw new AdempiereException("Cannot merge events because they are not matching") .setParameter("from", from) .setParameter("to", this) .appendParametersToMessage(); } if (from.stale != null && from.stale) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\events\JSONDocumentChangedWebSocketEvent.java
1
请完成以下Java代码
public BigDecimal getESR_Control_Trx_Qty() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_ESR_Control_Trx_Qty); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setESR_Import_ID (final int ESR_Import_ID) { if (ESR_Import_ID < 1) set_ValueNoCheck (COLUMNNAME_ESR_Import_ID, nul...
@Override public boolean isReconciled() { return get_ValueAsBoolean(COLUMNNAME_IsReconciled); } @Override public void setIsValid (final boolean IsValid) { set_Value (COLUMNNAME_IsValid, IsValid); } @Override public boolean isValid() { return get_ValueAsBoolean(COLUMNNAME_IsValid); } @Override pu...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java-gen\de\metas\payment\esr\model\X_ESR_Import.java
1
请完成以下Java代码
private String getLongestCommonPrefix(String str1, String str2) { int compareLength = Math.min(str1.length(), str2.length()); for (int i = 0; i < compareLength; i++) { if (str1.charAt(i) != str2.charAt(i)) { return str1.substring(0, i); } } return ...
return nodes; } } nodes.add(currentNode); if (pattern.length() > compareLength) { List<Node> nodes2 = getAllNodesInTraversePath(pattern.substring(compareLength), currentNode, isAllowPartialMatch); if (nodes2.siz...
repos\tutorials-master\algorithms-modules\algorithms-searching\src\main\java\com\baeldung\algorithms\suffixtree\SuffixTree.java
1
请完成以下Java代码
public RetryConfig addSeries(HttpStatus.Series... series) { this.series.addAll(Arrays.asList(series)); return this; } public Set<Class<? extends Throwable>> getExceptions() { return exceptions; } public RetryConfig setExceptions(Set<Class<? extends Throwable>> exceptions) { this.exceptions = excep...
} public RetryConfig setCacheBody(boolean cacheBody) { this.cacheBody = cacheBody; return this; } } public static class RetryException extends NestedRuntimeException { private final ServerRequest request; private final ServerResponse response; RetryException(ServerRequest request, ServerResponse...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webmvc\src\main\java\org\springframework\cloud\gateway\server\mvc\filter\RetryFilterFunctions.java
1
请在Spring Boot框架中完成以下Java代码
public String sayHello(){ return "Hello Appleyk's Controller !"; } /** * 写一个shp文件 * @param shpInfo * @return * @throws Exception */ @PostMapping("/write") public ResponseResult write(@RequestBody ShpInfo shpInfo) throws Exception{ return shpService.writeShp(s...
* 将shp文件转换成png图片,图片或写入文件或通过response输出到界面【比如,客户端浏览器】 * @param path shp文件路径 * @param imagePath 如果imagePath不等于空,则shp文件转成图片文件存储进行存 * @param color 渲染颜色 */ @GetMapping("/show") public void show(@RequestParam(value = "path",required = true) String path, @RequestParam(value = ...
repos\springboot-demo-master\GeoTools\src\main\java\com\et\geotools\controller\ShpController.java
2
请完成以下Java代码
public ProviderConfig getProvider() { return this.provider; } public void setProvider(ProviderConfig provider) { this.provider = provider; } public ConsumerConfig getConsumer() { return this.consumer; } public void setConsumer(ConsumerConfig consumer) { this.consumer = consumer; } pu...
} public Map<String, MonitorConfig> getMonitors() { return this.monitors; } public void setMonitors(Map<String, MonitorConfig> monitors) { this.monitors = monitors; } public Map<String, ProviderConfig> getProviders() { return this.providers; } public void setProviders(Map<String, ProviderC...
repos\dubbo-spring-boot-starter-master\src\main\java\com\alibaba\dubbo\spring\boot\DubboProperties.java
1
请在Spring Boot框架中完成以下Java代码
public RuntimeService runtimeService(ProcessEngine processEngine) { return processEngine.getRuntimeService(); } @Bean public TaskService taskService(ProcessEngine processEngine) { return processEngine.getTaskService(); } @Bean public HistoryService historyService(ProcessEngine processEngine) { return proc...
return processEngine.getManagementService(); } @Bean public IdentityService identityService(ProcessEngine processEngine) { return processEngine.getIdentityService(); } @Bean public FormService formService(ProcessEngine processEngine) { return processEngine.getFormService(); } }
repos\spring-boot-quick-master\quick-flowable\src\main\java\com\quick\flowable\config\FlowableConfig.java
2
请完成以下Java代码
private void decrementHUCount() { final BigDecimal count = item.getQty(); final BigDecimal countNew = count.subtract(BigDecimal.ONE); item.setQty(countNew); dao.save(item); } @Override public int getHUCount() { final int count = item.getQty().intValueExact(); return count; } @Override public int g...
{ return false; } } return true; } private boolean isEmpty(final I_M_HU_Item_Storage storage) { final BigDecimal qty = storage.getQty(); if (qty.signum() != 0) { return false; } return true; } @Override public boolean isEmpty(final ProductId productId) { final I_M_HU_Item_Storage st...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\storage\impl\HUItemStorage.java
1
请完成以下Java代码
private boolean isAggregateHU(final HUEditorRow huRow) { final I_M_HU hu = huRow.getM_HU(); return handlingUnitsBL.isAggregateHU(hu); } private final void updateViewFromResult(final WebuiHUTransformCommandResult result) { final HUEditorView view = getView(); view.addHUIds(result.getHuIdsToAddToView()); ...
.collect(ImmutableSet.toImmutableSet()); return removeHUsIfDestroyed(selectedHUIds); } /** * @return true if at least one HU was removed */ private boolean removeHUsIfDestroyed(final Collection<HuId> huIds) { final ImmutableSet<HuId> destroyedHUIds = huIds.stream() .distinct() .map(huId -> load(hu...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\process\WEBUI_Add_Batch_SerialNo_To_CUs.java
1
请完成以下Java代码
public abstract class AbstractAccessDecisionManager implements AccessDecisionManager, InitializingBean, MessageSourceAware { protected final Log logger = LogFactory.getLog(getClass()); private List<AccessDecisionVoter<?>> decisionVoters; protected MessageSourceAccessor messages = SpringSecurityMessageSource.get...
} return false; } /** * Iterates through all <code>AccessDecisionVoter</code>s and ensures each can support * the presented class. * <p> * If one or more voters cannot support the presented class, <code>false</code> is * returned. * @param clazz the type of secured object being presented * @return tr...
repos\spring-security-main\access\src\main\java\org\springframework\security\access\vote\AbstractAccessDecisionManager.java
1
请完成以下Java代码
private ZonedDateTime computePurchaseDateOrderedOrNull(@NonNull final ZonedDateTime datePromised, @Nullable final ProductPlanningId productPlanningId) { if (productPlanningId == null) { return null; } final int leadTimeDays = productPlanningDAO.getById(productPlanningId).getLeadTimeDays(); return dateProm...
} finally { INTERCEPTOR_SHALL_POST_EVENT_FOR_PURCHASE_CANDIDATE_RECORD.set(true); } } @VisibleForTesting static PurchaseCandidateCreatedEvent createCandidateCreatedEvent( @NonNull final PurchaseCandidateRequestedEvent requestedEvent, @NonNull final BPartnerId vendorId, @NonNull final PurchaseCandi...
repos\metasfresh-new_dawn_uat\backend\de.metas.purchasecandidate.base\src\main\java\de\metas\purchasecandidate\material\event\PurchaseCandidateRequestedHandler.java
1
请完成以下Java代码
public class IgniteApp { public static void main (String[] args) { AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(); context.register(SpringDataConfig.class); context.refresh(); EmployeeRepository repository = context.getBean(EmployeeRepository....
Ignite ignite = Ignition.ignite(); IgniteCache<Integer, EmployeeDTO> cache = ignite.cache("baeldungCache"); EmployeeDTO employeeDTO = cache.get(employeeId); System.out.println(employeeDTO); SqlFieldsQuery sql = new SqlFieldsQuery( "select * from EmployeeDTO where isEm...
repos\tutorials-master\libraries-data-3\src\main\java\com\baeldung\ignite\spring\IgniteApp.java
1
请完成以下Java代码
public Long getOverridingJobPriority() { return jobPriority; } public void setJobPriority(Long jobPriority) { this.jobPriority = jobPriority; } public String getTenantId() { return tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } public String getDep...
} public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } @Override public Set<String> getReferencedEntityIds() { Set<String> referencedEntityIds = new HashSet<>(); return referencedEntityIds; } @Override public Map<String, Class> getReferencedEntitiesIdAndCla...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\JobDefinitionEntity.java
1
请在Spring Boot框架中完成以下Java代码
public class User { @Id @Column(name = "id") private Long id; @Column(name = "first_name") private String firstName; @Column(name = "second_name") private String secondName; public User() { } public User(final Long id, final String firstName, final String secondName) { ...
return true; } if (o == null || getClass() != o.getClass()) { return false; } final User user = (User) o; if (!Objects.equals(id, user.id)) { return false; } if (!Objects.equals(firstName, user.firstName)) { return false; ...
repos\tutorials-master\persistence-modules\spring-data-jpa-repo-4\src\main\java\com\baeldung\spring\data\persistence\findvsget\entity\User.java
2
请完成以下Java代码
public class ProductBOMQtys { /** * Calculates Qty + Scrap * * @param qty qty (without scrap) * @param scrapPercent scrap percent (between 0..100) * @return qty * (1 + qtyScrap/100) */ public static BigDecimal computeQtyWithScrap(final BigDecimal qty, @NonNull final Percent scrapPercent) { if ...
* * @param qty qty (without scrap) * @param scrapPercent scrap percent (between 0..100) * @return qty * (1 + qtyScrap/100) */ public static Quantity computeQtyWithScrap(@NonNull final Quantity qty, @NonNull final Percent scrapPercent) { if (qty.signum() == 0) { return qty; } if (scrapPerc...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\eevolution\api\ProductBOMQtys.java
1
请完成以下Java代码
static void handleCarExceptionWithNamedVariables(Car<?> car) { try { someOperationThatFails(car); } catch (IllegalStateException ex) { System.out.println("Got an illegal state exception for: " + car.name()); } catch (RuntimeException ex) { System.out.println("...
static void updateCar(Car<?> car) { // Some update logic System.out.println("Car updated!"); } static Map<String, List<Car<?>>> getCarsByFirstLetterWithNamedVariables(List<Car<?>> cars) { Map<String, List<Car<?>>> carMap = new HashMap<>(); cars.forEach(car -> carMap....
repos\tutorials-master\core-java-modules\core-java-21\src\main\java\com\baeldung\unnamed\variables\UnnamedVariables.java
1
请完成以下Java代码
public static ZoneId getTimeZoneOrSystemDefault() { final UserSession userSession = getCurrentOrNull(); return userSession != null ? userSession.getTimeZone() : SystemTime.zoneId(); } public boolean isWorkplacesEnabled() { return workplaceService.isAnyWorkplaceActive(); } public @NonNull Optional<Workplac...
return getLoggedUserIdIfExists().flatMap(workplaceService::getWorkplaceByUserId); } /** * Event fired when the user language was changed. * Usually it is user triggered. * * @author metas-dev <dev@metasfresh.com> */ @lombok.Value public static class LanguagedChangedEvent { @NonNull String adLanguage; ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\session\UserSession.java
1
请完成以下Java代码
protected void prepare() { ProcessInfoParameter[] para = getParametersAsArray(); for (int i = 0; i < para.length; i++) { String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else log.error("prepare - Unknown Parameter: " + name); } p_PA_SLA_Goal_ID = getRecord_ID()...
MSLAGoal goal = new MSLAGoal(getCtx(), p_PA_SLA_Goal_ID, get_TrxName()); if (goal.get_ID() == 0) throw new AdempiereUserError("@PA_SLA_Goal_ID@ " + p_PA_SLA_Goal_ID); MSLACriteria criteria = MSLACriteria.get(getCtx(), goal.getPA_SLA_Criteria_ID(), get_TrxName()); if (criteria.get_ID() == 0) throw new Ademp...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\sla\SLAGoalProcess.java
1
请完成以下Java代码
public void invalidateForModel(@NonNull final ICacheSourceModel model, @NonNull final ModelCacheInvalidationTiming timing) { final CacheInvalidateMultiRequest request = createRequestOrNull(model, timing); if (request == null) { return; } invalidate(request, timing); } public void invalidate(@NonNull f...
{ requests.add(request); } // if (requests.isEmpty()) { return null; } return CacheInvalidateMultiRequest.of(requests); } private CacheInvalidateRequest createChildRecordInvalidateUsingRootRecordReference(final ICacheSourceModel model) { final TableRecordReference rootRecordReference = model.g...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\cache\model\ModelCacheInvalidationService.java
1
请在Spring Boot框架中完成以下Java代码
public class Person { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; @OneToOne @PrimaryKeyJoinColumn private Department department; public Long getId() { return id; } public void setId(Long id) { this.id = id; ...
} public void setName(String name) { this.name = name; } public Department getDepartment() { return department; } public void setDepartment(Department department) { this.department = department; } }
repos\tutorials-master\persistence-modules\hibernate-annotations-2\src\main\java\com\baeldung\hibernate\primarykeyjoincolumn\Person.java
2
请完成以下Java代码
public final class ConnectionFactoryConfigurationUtils { private ConnectionFactoryConfigurationUtils() { } /** * Parse the properties {@code key:value[,key:value]...} and add them to the * underlying connection factory client properties. * @param connectionFactory the connection factory. * @param clientCon...
Map<String, Object> clientProps = connectionFactory.getRabbitConnectionFactory() .getClientProperties(); for (String prop : props) { String[] aProp = prop.split(":"); if (aProp.length == 2) { clientProps.put(aProp[0].trim(), aProp[1].trim()); } } } } } }
repos\spring-amqp-main\spring-rabbit\src\main\java\org\springframework\amqp\rabbit\connection\ConnectionFactoryConfigurationUtils.java
1
请完成以下Java代码
public Object getPersistentState() { return null; } @Override public void setRevision(int revision) {} @Override public int getRevision() { return 0; } @Override public int getRevisionNext() { return 0; } @Override public void setName(String name) ...
public void setTypeName(String typeName) {} @Override public String getProcessInstanceId() { return null; } @Override public String getTaskId() { return null; } @Override public void setTaskId(String taskId) {} @Override public String getExecutionId() { ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\TransientVariableInstance.java
1
请完成以下Java代码
public List<I_M_HU> retrieveVhus(@NonNull final HuId huId) { return handlingUnitsBL.getVHUs(huId); } public List<I_M_HU> retrieveVhus(@NonNull final I_M_HU hu) { return handlingUnitsBL.getVHUs(hu); } /** * @return the {@code M_HU_ID} of the given {@code hu}'s topmost parent (or grandparent etc), * <b>or...
final ProductId vhuProductId = vhuStorage.getSingleProductIdOrNull(); if (vhuProductId == null) { return Optional.empty(); } final I_C_UOM stockingUOM = productBL.getStockUOM(vhuProductId); final Quantity qty = vhuStorage.getQuantity(vhuProductId, stockingUOM); return Optional.of(ImmutablePair.of(vhuPr...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\trace\HUAccessService.java
1
请完成以下Java代码
public Mono<Void> commence(ServerWebExchange exchange, AuthenticationException ex) { return Flux.fromIterable(this.entryPoints) .filterWhen((entry) -> isMatch(exchange, entry)) .next() .map((entry) -> entry.getEntryPoint()) .doOnNext((entryPoint) -> logger.debug(LogMessage.format("Match found! Executing %...
private final ServerAuthenticationEntryPoint entryPoint; public DelegateEntry(ServerWebExchangeMatcher matcher, ServerAuthenticationEntryPoint entryPoint) { this.matcher = matcher; this.entryPoint = entryPoint; } public ServerWebExchangeMatcher getMatcher() { return this.matcher; } public ServerAu...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\server\DelegatingServerAuthenticationEntryPoint.java
1
请完成以下Java代码
public static LockOwner newOwner(final String ownerNamePrefix, final Object ownerNameUniquePart) { Check.assumeNotNull(ownerNameUniquePart, "ownerNameUniquePart not null"); final String ownerNamePrefixToUse; if (Check.isEmpty(ownerNamePrefix, true)) { ownerNamePrefixToUse = "Unknown"; } else { own...
private LockOwner(final String ownerName, final OwnerType ownerType) { Check.assumeNotNull(ownerName, "Param ownerName is not null"); this.ownerName = ownerName; this.ownerType = ownerType; } public boolean isRealOwner() { return ownerType == OwnerType.RealOwner; } public boolean isRealOwnerOrNoOwner()...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\lock\api\LockOwner.java
1
请完成以下Java代码
public boolean applies(@Nullable final BOMComponentIssueMethod issueMethod) { switch (this) { case DEFAULT: return true; case AssignedHUsOnly: return issueMethod != null && issueMethod.isIssueOnlyForReceived(); default: throw new AdempiereException("RawMaterialsIssueStrategy not supported!") ...
public static RawMaterialsIssueStrategy ofCode(@Nullable final String code) { return ofCodeOrDefault(code); } @NonNull public static RawMaterialsIssueStrategy ofCodeOrDefault(@Nullable final String code) { if (AssignedHUsOnly.getCode().equals(code)) { return AssignedHUsOnly; } return DEFAULT; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.material\planning\src\main\java\de\metas\material\planning\pporder\RawMaterialsIssueStrategy.java
1
请在Spring Boot框架中完成以下Java代码
public Edge unassignEdgeFromCustomer(Edge edge, Customer customer, User user) throws ThingsboardException { ActionType actionType = ActionType.UNASSIGNED_FROM_CUSTOMER; TenantId tenantId = edge.getTenantId(); EdgeId edgeId = edge.getId(); CustomerId customerId = customer.getId(); ...
} } @Override public Edge setEdgeRootRuleChain(Edge edge, RuleChainId ruleChainId, User user) throws Exception { TenantId tenantId = edge.getTenantId(); EdgeId edgeId = edge.getId(); try { Edge updatedEdge = edgeService.setEdgeRootRuleChain(tenantId, edge, ruleChainId); ...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\entitiy\edge\DefaultTbEdgeService.java
2
请在Spring Boot框架中完成以下Java代码
public void init(H http) { this.loginPageGeneratingFilter.setSecurityContextHolderStrategy(getSecurityContextHolderStrategy()); this.loginPageGeneratingFilter.setResolveHiddenInputs(DefaultLoginPageConfigurer.this::hiddenInputs); this.logoutPageGeneratingFilter.setResolveHiddenInputs(DefaultLoginPageConfigurer.th...
AuthenticationEntryPoint authenticationEntryPoint = null; ExceptionHandlingConfigurer<?> exceptionConf = http.getConfigurer(ExceptionHandlingConfigurer.class); if (exceptionConf != null) { authenticationEntryPoint = exceptionConf.getAuthenticationEntryPoint(); } if (this.loginPageGeneratingFilter.isEnabled()...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\annotation\web\configurers\DefaultLoginPageConfigurer.java
2
请完成以下Java代码
private void jbInit() throws Exception { final String title = Adempiere.getName() + " - " + s_res.getString("Adempiere_License"); final JFrame dummyParentFrame = getOwner(); dummyParentFrame.setTitle(title); dummyParentFrame.setIconImages(getIconImages()); setTitle(title); southLabel.setText(s_res.getS...
_disposed = true; super.dispose(); if (!m_accept) { cmd_reject(); } final JFrame dummyParentFrame = getOwner(); dummyParentFrame.dispose(); } private boolean _disposed = false; /** * @return our dummy parent frame * @see #createDummyParentFrame() */ @Override public JFrame getOwner...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\util\IniDialog.java
1
请完成以下Java代码
public void startProcessInstanceByKeyForm(String processDefinitionKey, String callbackUrl) { this.url = callbackUrl; this.processDefinitionKey = processDefinitionKey; beginConversation(); } /** * Get processDefinitionKey and callbackUrl from request and start a conversation * to start the form ...
conversationInstance.get().end(); // and redirect FacesContext.getCurrentInstance().getExternalContext().redirect(url); } public ProcessDefinition getProcessDefinition() { // TODO cache result to avoid multiple queries within one page request if (processDefinitionId!=null) { return repositor...
repos\camunda-bpm-platform-master\engine-cdi\core\src\main\java\org\camunda\bpm\engine\cdi\jsf\TaskForm.java
1
请完成以下Java代码
public EqualsBuilder append(final Map<String, Object> map1, final Map<String, Object> map2, final boolean handleEmptyAsNull) { if (!isEqual) { return this; } if (handleEmptyAsNull) { final Object value1 = map1 == null || map1.isEmpty() ? null : map1; final Object value2 = map2 == null || map2.isEmp...
* </pre> * * @param thisObj this object * @param obj other object * @return <code>other</code> casted to same class as <code>obj</code> or null if <code>other</code> is null or does not have the same class */ public static <T> T getOther(final T thisObj, final Object obj) { if (thisObj == null) { thr...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\org\adempiere\util\lang\EqualsBuilder.java
1
请完成以下Java代码
public class ELInputEntryExpressionPreParser { protected static final String[] OPERATORS = new String[]{"==", "!=", "<", ">", ">=", "<="}; public static String parse(String expression, String inputVariable, String inputVariableType) { expression = expression.replaceAll("fn_date", "date:toDate...
} } parsedExpressionBuilder.append("}"); return parsedExpressionBuilder.toString(); } protected static String parseSegmentWithOperator(String expression) { String parsedExpressionSegment; if (expression.length() < 2 || !StringUtils.startsWithAny(expression, OPER...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\el\ELInputEntryExpressionPreParser.java
1
请完成以下Java代码
private static Optional<Object> generateDefaultValue(final Attribute attribute, final Evaluatee evalCtx) { try { if (attribute.getDefaultValueSQL() != null) { final String defaultValueSQL = attribute.getDefaultValueSQL().evaluate(evalCtx, IExpressionEvaluator.OnVariableNotFound.Fail); final Object de...
// TODO: resolve the M_AttributeValue return DB.getSQLValueStringEx(ITrx.TRXNAME_ThreadInherited, defaultValueSQL); } }); return Optional.of(Null.box(defaultValue)); } else { return Optional.empty(); } } catch (Exception ex) { logger.warn("Failed generating default value for...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\adempiere\mm\attributes\api\impl\AttributeSetInstanceBL.java
1
请在Spring Boot框架中完成以下Java代码
public long executeCount(CommandContext commandContext) { if (isCmmnEnabled(commandContext)) { checkQueryOk(); return commandContext .getCaseDefinitionManager() .findCaseDefinitionCountByQueryCriteria(this); } return 0; } @Override public List<CaseDefinition> e...
return nameLike; } public String getDeploymentId() { return deploymentId; } public String getKey() { return key; } public String getKeyLike() { return keyLike; } public String getResourceName() { return resourceName; } public String getResourceNameLike() { return resourceNam...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\entity\repository\CaseDefinitionQueryImpl.java
2
请完成以下Java代码
protected Capacity retrieveTotalCapacity() { checkStaled(); final I_C_UOM uom = ppOrderBOMBL.getBOMLineUOM(orderBOMLine); return Capacity.createInfiniteCapacity(productId, uom); } /** * @return quantity that was already issued/received on this order BOM Line */ @Override protected BigDecimal retrieveQt...
@Override protected void beforeMarkingStalled() { staled = true; } /** * refresh BOM line if staled */ private void checkStaled() { if (!staled) { return; } InterfaceWrapperHelper.refresh(orderBOMLine); staled = false; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\pporder\api\impl\PPOrderBOMLineProductStorage.java
1
请在Spring Boot框架中完成以下Java代码
public String getSingleKeyColumn(final String tableName) { if (Adempiere.isUnitTestMode()) { return InterfaceWrapperHelper.getKeyColumnName(tableName); } final POInfo poInfo = POInfo.getPOInfo(tableName); final List<String> keyColumnNames = poInfo.getKeyColumnNames(); if (keyColumnNames.size() != 1) ...
} @Override public boolean getDefaultIsCalculatedByColumnName(@NonNull final String columnName) { return columnName.equalsIgnoreCase("Value") || columnName.equalsIgnoreCase("DocumentNo") || columnName.equalsIgnoreCase("DocStatus") || columnName.equalsIgnoreCase("Docaction") || columnName.equalsIgn...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\adempiere\service\impl\ColumnBL.java
2
请完成以下Java代码
public class Attribute { protected String name; protected String value; protected String uri; public Attribute(String name, String value) { this.name = name; this.value = value; } public Attribute(String name, String value, String uri) { this(name, value); this.uri = uri; } ...
public void setName(String name) { this.name = name; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public String getUri() { return uri; } public void setUri(String uri) { this.uri = uri; } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\util\xml\Attribute.java
1
请完成以下Java代码
protected void initialize() { ExecutionEntity processInstance = commandContext.getExecutionManager().findExecutionById(processInstanceId); this.processDefinition = processInstance.getProcessDefinition(); List<ExecutionEntity> executions = fetchExecutionsForProcessInstance(processInstance); executions.a...
return executions; } protected List<ExecutionEntity> findLeaves(List<ExecutionEntity> executions) { List<ExecutionEntity> leaves = new ArrayList<ExecutionEntity>(); for (ExecutionEntity execution : executions) { if (isLeaf(execution)) { leaves.add(execution); } } return leaves...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\ActivityExecutionTreeMapping.java
1
请完成以下Java代码
public String getCategory() { return activiti5Task.getCategory(); } @Override public String getParentTaskId() { return activiti5Task.getParentTaskId(); } @Override public String getTenantId() { return activiti5Task.getTenantId(); } @Override public String g...
@Override public void setOwner(String owner) { activiti5Task.setOwner(owner); } @Override public void setAssignee(String assignee) { activiti5Task.setAssignee(assignee); } @Override public DelegationState getDelegationState() { return activiti5Task.getDelegationStat...
repos\flowable-engine-main\modules\flowable5-compatibility\src\main\java\org\flowable\compatibility\wrapper\Flowable5TaskWrapper.java
1
请完成以下Java代码
public Long getId() { return id; } /** * @param id the id to set */ public void setId(Long id) { this.id = id; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public voi...
/* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Account ot...
repos\tutorials-master\spring-cloud-modules\spring-cloud-vault\src\main\java\com\baeldung\spring\cloud\vaultsample\domain\Account.java
1
请完成以下Java代码
private void checkComponents (Container target) { int size = target.getComponentCount(); for (int i = 0; i < size; i++) { Component comp = target.getComponent(i); if (!m_data.containsValue(comp)) m_data.put(null, comp); } } // checkComponents /** * Get Number of Rows * @return no pf rows ...
} // getSpaceH /** * Set Vertical Space (left, between columns, right) * @param spaceV vertical space (left, between columns, right) */ public void setSpaceV(int spaceV) { m_spaceV = spaceV; } // setSpaceV /** * Get Vertical Space (left, between columns, right) * @return spaceV vertical spa...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\ALayout.java
1
请完成以下Java代码
public static String getRequestIp(HttpServletRequest request) { //通过HTTP代理服务器转发时添加 String ipAddress = request.getHeader("x-forwarded-for"); if (ipAddress == null || ipAddress.length() == 0 || "unknown".equalsIgnoreCase(ipAddress)) { ipAddress = request.getHeader("Proxy-Client-IP"); ...
} catch (UnknownHostException e) { e.printStackTrace(); } ipAddress = inetAddress.getHostAddress(); } } // 通过多个代理转发的情况,第一个IP为客户端真实IP,多个IP会按照','分割 if (ipAddress != null && ipAddress.length() > 15) { if (ipAddress.indexOf(...
repos\mall-master\mall-common\src\main\java\com\macro\mall\common\util\RequestUtil.java
1
请完成以下Java代码
public ElementPermission noPermissions(final int elementId) { return ElementPermission.none(elementResource(elementId)); } public static class Builder extends PermissionsBuilder<ElementPermission, ElementPermissions> { private String elementTableName; @Override protected ElementPermissions createPermissio...
public String getElementTableName() { Check.assumeNotEmpty(elementTableName, "elementTableName not empty"); return elementTableName; } @Override protected void assertValidPermissionToAdd(final ElementPermission permission) { final String elementTableName = getElementTableName(); if (!Objects.equa...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\permissions\ElementPermissions.java
1
请完成以下Java代码
public Quantity roundToUOMPrecision() { final UOMPrecision precision = getUOMPrecision(); final BigDecimal qtyRounted = precision.roundIfNeeded(qty); return qty.equals(qtyRounted) ? this : new Quantity(qtyRounted, uom, sourceQty, sourceUom); } private UOMPrecision getUOMPrecision() { return UOMPrec...
throw new QuantitiesUOMNotMatchingExpection("UOMs are not compatible") .appendParametersToMessage() .setParameter("Qty.UOM", getUomId()) .setParameter("assertUOM", uomId); } } @NonNull public BigDecimal toBigDecimalAssumingUOM(@NonNull final UomId uomId) { assertUOMOrSourceUOM(uomId); return ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\quantity\Quantity.java
1
请完成以下Java代码
public final class TypedSqlQueryFilter<T> implements IQueryFilter<T>, ISqlQueryFilter { public static <T> TypedSqlQueryFilter<T> of(final String sql) { final List<Object> params = ImmutableList.of(); return new TypedSqlQueryFilter<>(sql, params); } public static <T> TypedSqlQueryFilter<T> of(final String sql, ...
public int hashCode() { return Objects.hash(sql, sqlParams); } @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj instanceof TypedSqlQueryFilter) { final TypedSqlQueryFilter<?> other = (TypedSqlQueryFilter<?>)obj; return Objects.equals(sql, other.sq...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\dao\impl\TypedSqlQueryFilter.java
1
请完成以下Java代码
public class LandedCostDistribute extends JavaProcess { /** Parameter */ private int p_C_LandedCost_ID = 0; /** LC */ private MLandedCost m_lc = null; /** * Prepare */ protected void prepare () { p_C_LandedCost_ID = getRecord_ID(); } // prepare /** * Process * @return info
* @throws Exception */ protected String doIt () throws Exception { m_lc = new MLandedCost (getCtx(), p_C_LandedCost_ID, get_TrxName()); log.info(m_lc.toString()); if (m_lc.get_ID() == 0) throw new AdempiereUserError("@NotFound@: @C_LandedCost_ID@ - " + p_C_LandedCost_ID); String error = m_lc.allocateCos...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\process\LandedCostDistribute.java
1
请完成以下Java代码
public static boolean isComplexObject(Object target) { if (Objects.isNull(target)) { return false; } if (target instanceof String) { return true; } if (target instanceof Integer) { return true; } if (target instanceof Long) { ...
if (target instanceof Byte) { return true; } if (target instanceof Short) { return true; } if (target instanceof Character) { return true; } return false; } public static boolean isArray(Object obj) { return (obj != nul...
repos\spring-boot-student-master\spring-boot-student-okhttp\src\main\java\com\xiaolyuh\util\ObjectUtils.java
1
请在Spring Boot框架中完成以下Java代码
public PropertySource<?> getPropertySource() { return this.propertySource; } /** * Return the {@link ConfigDataResource} of the property source or {@code null} if the * source was not loaded from {@link ConfigData}. * @return the config data location or {@code null} */ public @Nullable ConfigDataResource ...
/** * Throw an {@link InactiveConfigDataAccessException} if the given * {@link ConfigDataEnvironmentContributor} contains the property. * @param contributor the contributor to check * @param name the name to check */ static void throwIfPropertyFound(ConfigDataEnvironmentContributor contributor, Configuration...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\config\InactiveConfigDataAccessException.java
2
请完成以下Java代码
public abstract class UUIDBased implements HasUUID, Serializable { private static final long serialVersionUID = 1L; /** Cache the hash code */ private transient int hash; // Default to 0. The hash code calculated for this object likely never be zero private final UUID id; public UUIDBased() { ...
if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; UUIDBased other = (UUIDBased) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equ...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\id\UUIDBased.java
1
请完成以下Java代码
public void setVariableLocal(String variableName, Object value) { setVariableLocal(variableName, value, false); } @Override public void removeVariable(String variableName) { removeVariable(variableName, getSourceActivityVariableScope()); } protected void removeVariable(String variableName, AbstractV...
protected AbstractVariableScope getSourceActivityVariableScope() { return this; } protected void removeVariableLocal(String variableName, AbstractVariableScope sourceActivityExecution) { if (getVariableStore().containsKey(variableName)) { CoreVariableInstance variableInstance = getVariableStore().ge...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\core\variable\scope\AbstractVariableScope.java
1