diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2022-05-03 15:45:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 15:45:01 +0200 |
commit | 8db6a836bd88c93b033e8671dc3ac3a5659d8411 (patch) | |
tree | 1a2ab9db922fb5ea6f99359ca80d930caff7f60c /src/main/java/org/uic/barcode/utils/AlgorithmNameResolver.java | |
parent | Merge pull request #46 from UnionInternationalCheminsdeFer/1.3.1 (diff) | |
parent | version number increased (diff) | |
download | UIC-barcode-8db6a836bd88c93b033e8671dc3ac3a5659d8411.tar UIC-barcode-8db6a836bd88c93b033e8671dc3ac3a5659d8411.tar.gz UIC-barcode-8db6a836bd88c93b033e8671dc3ac3a5659d8411.tar.bz2 UIC-barcode-8db6a836bd88c93b033e8671dc3ac3a5659d8411.tar.lz UIC-barcode-8db6a836bd88c93b033e8671dc3ac3a5659d8411.tar.xz UIC-barcode-8db6a836bd88c93b033e8671dc3ac3a5659d8411.tar.zst UIC-barcode-8db6a836bd88c93b033e8671dc3ac3a5659d8411.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main/java/org/uic/barcode/utils/AlgorithmNameResolver.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/org/uic/barcode/utils/AlgorithmNameResolver.java b/src/main/java/org/uic/barcode/utils/AlgorithmNameResolver.java index 28f90e6..16cd638 100644 --- a/src/main/java/org/uic/barcode/utils/AlgorithmNameResolver.java +++ b/src/main/java/org/uic/barcode/utils/AlgorithmNameResolver.java @@ -111,6 +111,12 @@ public class AlgorithmNameResolver { String name = null;
+ if (map.get(type) != null) {
+ if (map.get(type).get(oid) != null) {
+ return map.get(type).get(oid);
+ }
+ }
+
if (provider != null) {
Service service = provider.getService(type,oid);
if (service != null) {
@@ -133,13 +139,7 @@ public class AlgorithmNameResolver { return name;
}
}
-
- if (map.get(type) != null) {
- if (map.get(type).get(oid) != null) {
- return map.get(type).get(oid);
- }
- }
-
+
//fallback if the provider did not implement OIDs
if (oid.startsWith("1.2.840.10045.4")) {
|