diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2022-06-21 13:56:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 13:56:50 +0200 |
commit | 139388fadcef32c9830b5d4ded1e378bac45146e (patch) | |
tree | d45fc69e8e51c33951fc5ea03bd19eeb1ccd5891 /src/main/java | |
parent | Merge pull request #51 from UnionInternationalCheminsdeFer/feature/update-pom-to-build-project-locally (diff) | |
parent | Address SonarLint java:S2178 (diff) | |
download | UIC-barcode-139388fadcef32c9830b5d4ded1e378bac45146e.tar UIC-barcode-139388fadcef32c9830b5d4ded1e378bac45146e.tar.gz UIC-barcode-139388fadcef32c9830b5d4ded1e378bac45146e.tar.bz2 UIC-barcode-139388fadcef32c9830b5d4ded1e378bac45146e.tar.lz UIC-barcode-139388fadcef32c9830b5d4ded1e378bac45146e.tar.xz UIC-barcode-139388fadcef32c9830b5d4ded1e378bac45146e.tar.zst UIC-barcode-139388fadcef32c9830b5d4ded1e378bac45146e.zip |
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/uic/barcode/asn1/uper/AsnExtractor.java | 8 | ||||
-rw-r--r-- | src/main/java/org/uic/barcode/asn1/uper/SeqOfCoder.java | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/org/uic/barcode/asn1/uper/AsnExtractor.java b/src/main/java/org/uic/barcode/asn1/uper/AsnExtractor.java index 0d5d1da..c14af9e 100644 --- a/src/main/java/org/uic/barcode/asn1/uper/AsnExtractor.java +++ b/src/main/java/org/uic/barcode/asn1/uper/AsnExtractor.java @@ -42,10 +42,10 @@ public class AsnExtractor { if (extractionStarted || extractionCompleted) return false;
- if (path != null && path.length() > 0 && className != null & className.length() > 0) {
- if (className.endsWith(path)){
- return true;
- }
+ if (path != null && path.length() > 0 &&
+ className != null && className.length() > 0 &&
+ className.endsWith(path)) {
+ return true;
}
return false;
diff --git a/src/main/java/org/uic/barcode/asn1/uper/SeqOfCoder.java b/src/main/java/org/uic/barcode/asn1/uper/SeqOfCoder.java index d0ce782..290d1aa 100644 --- a/src/main/java/org/uic/barcode/asn1/uper/SeqOfCoder.java +++ b/src/main/java/org/uic/barcode/asn1/uper/SeqOfCoder.java @@ -29,7 +29,7 @@ class SeqOfCoder implements Decoder, Encoder { //CG pass annotations too each field encoding Annotation[] annotationArray = new Annotation[] {}; - if (annotations != null & annotations.getAnnotations() != null && !annotations.getAnnotations().isEmpty()) { + if (annotations != null && annotations.getAnnotations() != null && !annotations.getAnnotations().isEmpty()) { ArrayList<Annotation> fieldAnnotations = new ArrayList<Annotation>(); fieldAnnotations.addAll(annotations.getAnnotations()); annotationArray = new Annotation[fieldAnnotations.size()]; |