You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Patrik Steuer (JIRA)" <ji...@apache.org> on 2019/04/24 07:00:00 UTC

[jira] [Created] (OLINGO-1349) EdmTime use synchronized TimeZone.getTimeZone("GMT")

Patrik Steuer created OLINGO-1349:
-------------------------------------

             Summary: EdmTime use synchronized TimeZone.getTimeZone("GMT")
                 Key: OLINGO-1349
                 URL: https://issues.apache.org/jira/browse/OLINGO-1349
             Project: Olingo
          Issue Type: Bug
          Components: odata2-core
    Affects Versions: V2 2.0.11
            Reporter: Patrik Steuer


*Problem:*

[EdmTime.class:internalValueToString|https://github.com/apache/olingo-odata2/blob/master/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/edm/EdmTime.java#L132] calls TimeZone.getTimeZone("GMT") which is synchronized. This adds overhead to apps using this function. 

*Possible Solution:*
Either use a more modern class like ZoneId.of() or use a static variable to reuse the timezone.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)