Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0047093 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2021-06-11 19:32 | 2021-06-14 07:19 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | platform | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | PR21Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0047093: Remove use of guava library in java code of backoffice | |||||||
Description | Done to prepare eventually removing guava library entirely List of files referencing it src-test/src/org/openbravo/test/security/AllowedOrganizationsTest.java src-test/src/org/openbravo/test/security/CrossOrganizationReference.java src/org/openbravo/erpCommon/businessUtility/InitialSetupUtility.java | |||||||
Steps To Reproduce | grep -Ir 'com\.google\.common' | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0129419) hgbot (developer) 2021-06-11 19:38 |
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/393 [^] |
(0129436) hgbot (developer) 2021-06-14 07:19 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/openbravo [^] Changeset: 70f08e94b3f8fa81238d857aca4d242c2dcd0190 Author: Stefan Huehner <stefan.huehner@openbravo.com> Date: 2021-06-14T07:17:11+02:00 URL: https://gitlab.com/openbravo/product/openbravo/-/commit/70f08e94b3f8fa81238d857aca4d242c2dcd0190 [^] fixes ISSUE-47093: Remove guava usage from java code - InitialSetupUtility - Stop using Charsets.UTF_8 constants from guava library. Instead use standard java StandardCharsets class - Simplify reading file by using Files.ReadString(Path,Charset) directly avoid the intermediate byte[] - CrossOrganizationReference - Use standard Collections.reverse method instead of guava Lists.reverse Note that JDK function modify the argument in place instead of returning a 'reversed' view. However with that usage here (cleanup after unit-tests & .clear()-ing the list just afterwards no need to clone the list. - AllowedOrganizationTest - Change away from guava ImmutableMap.builder() replace it by standard java - Map.Of(Key,Value,Key,Value, ...) for the simple case - Map.ofEntries for the slightly more complex case. --- M src-test/src/org/openbravo/test/security/AllowedOrganizationsTest.java M src-test/src/org/openbravo/test/security/CrossOrganizationReference.java M src/org/openbravo/erpCommon/businessUtility/InitialSetupUtility.java --- |
(0129437) hgbot (developer) 2021-06-14 07:19 |
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/393 [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2021-06-11 19:32 | shuehner | New Issue | |
2021-06-11 19:32 | shuehner | Assigned To | => platform |
2021-06-11 19:32 | shuehner | Modules | => Core |
2021-06-11 19:32 | shuehner | Triggers an Emergency Pack | => No |
2021-06-11 19:38 | hgbot | Note Added: 0129419 | |
2021-06-11 19:39 | shuehner | Relationship added | blocks 0047092 |
2021-06-14 07:19 | hgbot | Resolution | open => fixed |
2021-06-14 07:19 | hgbot | Status | new => closed |
2021-06-14 07:19 | hgbot | Fixed in Version | => PR21Q3 |
2021-06-14 07:19 | hgbot | Note Added: 0129436 | |
2021-06-14 07:19 | hgbot | Note Added: 0129437 |
Copyright © 2000 - 2009 MantisBT Group |