You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by mi...@apache.org on 2022/02/26 07:38:57 UTC
[olingo-odata4] branch master updated: [OLINGO-1413] Comment on thread-safty of ODataHandlerImpl
This is an automated email from the ASF dual-hosted git repository.
mibo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/olingo-odata4.git
The following commit(s) were added to refs/heads/master by this push:
new 9be3031 [OLINGO-1413] Comment on thread-safty of ODataHandlerImpl
9be3031 is described below
commit 9be30316b101ba38d8a8dc0a0f4ccfacc42fa91a
Author: mibo <mi...@apache.org>
AuthorDate: Sat Feb 26 08:38:51 2022 +0100
[OLINGO-1413] Comment on thread-safty of ODataHandlerImpl
---
.../src/main/java/org/apache/olingo/server/core/ODataHandlerImpl.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/server-core/src/main/java/org/apache/olingo/server/core/ODataHandlerImpl.java b/lib/server-core/src/main/java/org/apache/olingo/server/core/ODataHandlerImpl.java
index e704fdd..875c31d 100644
--- a/lib/server-core/src/main/java/org/apache/olingo/server/core/ODataHandlerImpl.java
+++ b/lib/server-core/src/main/java/org/apache/olingo/server/core/ODataHandlerImpl.java
@@ -56,6 +56,10 @@ import org.apache.olingo.server.core.uri.queryoption.FormatOptionImpl;
import org.apache.olingo.server.core.uri.validator.UriValidationException;
import org.apache.olingo.server.core.uri.validator.UriValidator;
+/**
+ * This class is not thread-safe.
+ * Whenever used create a new instance per thread and not reuse the created instance.
+ */
public class ODataHandlerImpl implements ODataHandler {
private final OData odata;