Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REL 1.26 - Merge release to master branch #668

Merged
merged 144 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
e39b06c
Add workflow for updating arlington branch
MaximPlusov Jun 6, 2023
46b835b
Merge pull request #574 from veraPDF/update_jakarta
MaximPlusov Jun 19, 2023
228215b
DEV: v1.25
MaximPlusov Jun 23, 2023
30a48ff
Merge pull request #577 from veraPDF/update_dev
MaximPlusov Jun 23, 2023
18d2d86
PDF/A validation. Add getBitsPerComponent to GFPDXImage and GFPDInlin…
MaximPlusov Jul 10, 2023
e883b89
Merge pull request #579 from veraPDF/bits_per_component
MaximPlusov Jul 11, 2023
7cdba76
Fix metadata. Update merging several authors
MaximPlusov Jul 19, 2023
37d7506
Merge pull request #580 from veraPDF/several_creators
MaximPlusov Jul 19, 2023
5766609
PDF/UA-2. Support SemanticContentStream
MaximPlusov Sep 11, 2023
bbfcb2f
Merge pull request #581 from veraPDF/semantic_stream
MaximPlusov Sep 11, 2023
ce577d9
PDF/UA-2. Add annotation subtypes
MaximPlusov Sep 13, 2023
3721665
Merge pull request #582 from veraPDF/annotation_subtypes
MaximPlusov Sep 14, 2023
68f82ee
Fix type in GFPDRubberStampAnnot
MaximPlusov Sep 14, 2023
4dd6043
Merge pull request #583 from veraPDF/annotation_subtypes
MaximPlusov Sep 14, 2023
a24fa4e
Update metadata fixer methods names
MaximPlusov Sep 14, 2023
37bbd4e
Merge pull request #584 from veraPDF/metadata_methods
MaximPlusov Sep 14, 2023
cd4099e
PDF/UA-2. Add new methods
MaximPlusov Sep 18, 2023
f61e199
Merge pull request #586 from veraPDF/pdfua2
MaximPlusov Sep 22, 2023
bedee0e
Fix getstructParentStandardType
MaximPlusov Sep 22, 2023
f6da492
Merge pull request #587 from veraPDF/annot_parent_type
MaximPlusov Sep 22, 2023
67dec9e
Move roleMapHelper from StaticContainers to StaticResources
MaximPlusov Sep 23, 2023
69597aa
PDF/UA-2. Fixing metadata
MaximPlusov Sep 23, 2023
b80ca77
Merge pull request #588 from veraPDF/role_map_helper
MaximPlusov Sep 25, 2023
aec7489
Merge pull request #589 from veraPDF/pdfua2_fix_metadata
MaximPlusov Sep 25, 2023
e3f2498
WCAG. Update getDestination for annotation
MaximPlusov Oct 7, 2023
c896715
PDF/UA-2. Add new methods
MaximPlusov Oct 10, 2023
590ce24
Merge pull request #591 from veraPDF/pdfua2_methods
MaximPlusov Oct 10, 2023
31875c4
Merge pull request #590 from veraPDF/wcag_destination
MaximPlusov Oct 11, 2023
7df0667
PDF/UA-2. Add new methods. Remove unnecessary methods
MaximPlusov Oct 18, 2023
2c8d146
Merge pull request #592 from veraPDF/pdfua2_methods
MaximPlusov Oct 19, 2023
19bde0a
PDF/UA-2. Add GFPDTextField
MaximPlusov Sep 28, 2023
077e3f8
Merge pull request #593 from veraPDF/pdfua2
MaximPlusov Oct 19, 2023
f12b210
Add GFPDStructTreeNode
MaximPlusov Oct 19, 2023
db28c9b
Merge pull request #594 from veraPDF/struct_tree_node
MaximPlusov Oct 20, 2023
e0d33d8
PDF/UA-2. Add new methods.
MaximPlusov Oct 20, 2023
18becb4
Fix getChildren in GFPDStructTreeNode
MaximPlusov Oct 20, 2023
56f1a08
Merge pull request #596 from veraPDF/struct_tree_node
MaximPlusov Oct 20, 2023
491d853
Merge pull request #595 from veraPDF/pdfua2_methods
MaximPlusov Oct 20, 2023
eeb53b3
PDF/UA-2. Add GFosAlt and new methods
MaximPlusov Oct 21, 2023
221a39c
Change appearance link from PDContentStream to PDXForm in PDAnnot
MaximPlusov Oct 17, 2023
6b47ae4
Merge pull request #597 from veraPDF/pdfua2_methods
MaximPlusov Oct 23, 2023
32ce058
Merge pull request #598 from veraPDF/appearance_xform
MaximPlusov Oct 23, 2023
63029a1
PDF/UA-2. Update regular table checking
MaximPlusov Sep 20, 2023
4193b93
Replace parentStructureTag to parentStructElem in GFSEContentItem
MaximPlusov Oct 25, 2023
fadab16
Merge pull request #585 from veraPDF/pdfua2_table
MaximPlusov Oct 26, 2023
580f59e
Merge pull request #599 from veraPDF/content_item
MaximPlusov Oct 26, 2023
b5dbaa6
Fix getParentStructElem methods
MaximPlusov Oct 28, 2023
7a1b934
Merge pull request #601 from veraPDF/parent_elem
MaximPlusov Oct 30, 2023
df13f81
Update fixing metadata messages
MaximPlusov Oct 30, 2023
a7fbafd
Merge pull request #602 from veraPDF/fixing_metadata
MaximPlusov Oct 30, 2023
704035c
PDF/UA-2. Add new annotations methods
MaximPlusov Oct 31, 2023
8fc1190
Merge pull request #603 from veraPDF/pdfua2_annotation
MaximPlusov Oct 31, 2023
eed1c37
PDF/UA-2. Add new methods
MaximPlusov Oct 26, 2023
590ac5b
Merge pull request #600 from veraPDF/pdfua2
MaximPlusov Oct 31, 2023
54ae00c
Update metadata fixer
MaximPlusov Nov 1, 2023
6f86201
Merge pull request #604 from veraPDF/metadata_fixer
MaximPlusov Nov 1, 2023
de247ed
Update metadata fixer. Fix isWrongPDFAIdentification
MaximPlusov Nov 1, 2023
a9181f5
Merge pull request #605 from veraPDF/metadata_fixer
MaximPlusov Nov 1, 2023
04a0f6e
Update metadata fixer. Fix addPDFAIdentificationSchema
MaximPlusov Nov 1, 2023
256f599
Merge pull request #606 from veraPDF/metadata_fixer
MaximPlusov Nov 2, 2023
b2d06a2
PDF/UA-2. Add method getcontainsLbl to GFPDWidgetAnnot
MaximPlusov Nov 6, 2023
38f8b6f
Merge pull request #607 from veraPDF/widget_lbl
MaximPlusov Nov 6, 2023
92f2596
PDF/UA-2. Fix getroleMapToSameNamespaceTag to GFPDStructElem
MaximPlusov Nov 8, 2023
c128a0e
Merge pull request #608 from veraPDF/pdfua2
MaximPlusov Nov 8, 2023
9852bb4
PDF/UA-2. Update content item logic
MaximPlusov Nov 9, 2023
e69959c
Merge pull request #609 from veraPDF/signature_content
MaximPlusov Nov 9, 2023
f92ee47
Fix getInheritedStringAttribute in GFOpMarkedContent
MaximPlusov Nov 9, 2023
c08c30a
Merge pull request #610 from veraPDF/signature_content
MaximPlusov Nov 9, 2023
2367cb0
Update getTag and getMCID for GFOpMarkedContent
MaximPlusov Nov 13, 2023
503c1db
Merge pull request #611 from veraPDF/marked_content
MaximPlusov Nov 15, 2023
e3b102d
Update some link methods
MaximPlusov Nov 15, 2023
18f42e8
Merge pull request #612 from veraPDF/links_methods
MaximPlusov Nov 17, 2023
a761271
GFOpPathPaint and GFOpTextShow refactoring
MaximPlusov Nov 17, 2023
17288cc
Merge pull request #613 from veraPDF/stroke_fill_colors
MaximPlusov Nov 21, 2023
ccaf8b8
Move standard structure types methods to parser
MaximPlusov Nov 26, 2023
0a9d69c
Merge pull request #614 from veraPDF/standard_type
MaximPlusov Nov 27, 2023
76110c1
PDF/UA-2. Update obtainFlavour in GFModelParser
MaximPlusov Nov 29, 2023
355c8f2
Merge pull request #615 from veraPDF/pdfua2
MaximPlusov Nov 29, 2023
67c0645
Add method getLang to GFSEMarkedContent
MaximPlusov Dec 4, 2023
4481c8a
Merge pull request #616 from veraPDF/marked_lang
MaximPlusov Dec 4, 2023
b78734e
WCAG validation. Add SemanticAnnot
MaximPlusov Dec 5, 2023
6044919
Merge pull request #617 from veraPDF/semantic_annot
MaximPlusov Dec 6, 2023
d601a0d
Add StaticXmpCoreContainers to library
MaximPlusov Dec 8, 2023
c252a3d
Merge pull request #619 from veraPDF/static_xmp_containers
MaximPlusov Dec 11, 2023
413923f
Refactoring
MaximPlusov Dec 8, 2023
03ea515
Merge pull request #618 from veraPDF/refactoring
MaximPlusov Dec 11, 2023
d6f6af7
Fix calculating of form fields children
MaximPlusov Dec 11, 2023
ddc80dc
Merge pull request #620 from veraPDF/field_children
MaximPlusov Dec 12, 2023
4c22f52
Update attributes methods
MaximPlusov Dec 12, 2023
747b253
Merge pull request #621 from veraPDF/attributes_methods
MaximPlusov Dec 12, 2023
df99b3e
Add WCAG2.2 flavour
MaximPlusov Dec 12, 2023
4c0c2f6
Merge pull request #622 from veraPDF/wcag2_2
MaximPlusov Dec 13, 2023
7aa04fa
Add getcontainsParent to GFPDStructElem
MaximPlusov Dec 13, 2023
d357ac5
Merge pull request #623 from veraPDF/struct_elem_parent
MaximPlusov Dec 14, 2023
4210ab8
Add WCAG2.2 flavour
MaximPlusov Dec 14, 2023
ec791e2
Merge pull request #624 from veraPDF/wcag2_2
MaximPlusov Dec 14, 2023
6a415aa
Add getpresentInEmbeddedFiles to GFCosFileSpecification
MaximPlusov Dec 18, 2023
efd2438
Merge pull request #625 from veraPDF/embedded_file_specification
MaximPlusov Dec 20, 2023
34ef884
Add GFPDWatermarkAnnot
MaximPlusov Dec 25, 2023
a566b3c
Merge pull request #627 from veraPDF/watermark_annot
MaximPlusov Dec 26, 2023
84df8e2
Add getisTaggedContent to GFSEContentItem
MaximPlusov Dec 26, 2023
62f0edb
Merge pull request #628 from veraPDF/tagged_content
MaximPlusov Dec 27, 2023
516f455
GFSEGroupedContent refactoring
MaximPlusov Dec 27, 2023
33d23f8
Merge pull request #629 from veraPDF/tagged_content
MaximPlusov Dec 27, 2023
ea0e0f9
Add getremappedStandardType to GFPDStructElem
MaximPlusov Dec 20, 2023
3eb831a
Merge pull request #626 from veraPDF/remapped_standard_type
MaximPlusov Dec 27, 2023
17c8377
Fix getremappedStandardType in GFPDStructElem
MaximPlusov Dec 27, 2023
ec06ff3
Merge pull request #630 from veraPDF/remapped_standard_type
MaximPlusov Dec 27, 2023
ca366ca
Fix calculating number of rows of table
MaximPlusov Jan 11, 2024
01b4733
Merge pull request #631 from veraPDF/table_row_span
MaximPlusov Jan 11, 2024
d705463
Fix calculating number of rows of table
MaximPlusov Jan 11, 2024
b4a8f80
Merge pull request #632 from veraPDF/table_row_span
MaximPlusov Jan 12, 2024
bf5497e
Fix calculating number of rows of table
MaximPlusov Jan 12, 2024
b41da40
Merge pull request #633 from veraPDF/table_row_span
MaximPlusov Jan 12, 2024
6ffd4f6
Fix calculating number of rows of table
MaximPlusov Jan 12, 2024
aa9cd8a
Merge pull request #634 from veraPDF/table_row_span
MaximPlusov Jan 12, 2024
05b8408
Add warnings for struct tree loop
MaximPlusov Jan 24, 2024
cdf0bf9
Merge pull request #635 from veraPDF/struct_tree_loop
MaximPlusov Jan 24, 2024
c7645b6
Fix getisMappedToStandardType on GFSENonStandard
MaximPlusov Jan 26, 2024
275eecd
Merge pull request #636 from veraPDF/null_pointer
MaximPlusov Jan 30, 2024
b03464c
Structure type mapping refactoring
MaximPlusov Jan 30, 2024
e1d00c5
PDF/UA. Fixing metadata. Extension schema
MaximPlusov Feb 1, 2024
d396172
Remove unnecessary methods
MaximPlusov Feb 1, 2024
50d8dfd
Merge pull request #639 from veraPDF/remove_methods
MaximPlusov Feb 2, 2024
a2ab779
Fix getroleMapToSameNamespaceTag
MaximPlusov Feb 5, 2024
c2af1df
Merge pull request #640 from veraPDF/namespace_rolemap
MaximPlusov Feb 6, 2024
4aec327
RC - v1.26
MaximPlusov Feb 9, 2024
6ce415c
Merge pull request #641 from veraPDF/prerelease1.26
MaximPlusov Feb 9, 2024
c61d592
Updated action dependencies.
ProxyNexus Feb 14, 2024
8429a39
Removed .travis.yml
ProxyNexus Feb 15, 2024
c0c3cd0
Fix type of GFSEMathMLStructElem
MaximPlusov Feb 16, 2024
60d1154
Updated arlington/jakarta workflow
ProxyNexus Feb 16, 2024
2406664
WCAG. Fix duplicated mcids processing
MaximPlusov Feb 19, 2024
99592df
WCAG. Fix СTM matrix of XForm
MaximPlusov Feb 20, 2024
86b0c81
PDF/UA-2. Add methods getghostRefs to GFSEFENote
MaximPlusov Feb 22, 2024
7cf35ea
Disable content item parsing for annotation appearance stream
MaximPlusov Mar 14, 2024
3c49028
PDF/UA. Disable ActualText processing for non-real content
MaximPlusov Mar 21, 2024
46f2683
Added warning for duplicate MCID
ProxyNexus Mar 22, 2024
1c2da06
Fix getalt and getactualText in GFOpMarkedContent
MaximPlusov Mar 25, 2024
6c93a50
Fix media clip exception
MaximPlusov Apr 8, 2024
123d222
Update GFPDDestination
MaximPlusov May 3, 2024
c0313fa
Add Kids link to GFPDFormField
MaximPlusov Apr 9, 2024
49a6316
REL - v1.26
MaximPlusov May 16, 2024
bc3cad4
Merge branch 'master' into rel/1.26
MaximPlusov May 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ on:
jobs:
build:
name: Checkout and Build
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
continue-on-error: true

strategy:
fail-fast: false
matrix:
java-version: [8, 11, 16, 17]
java-version: [8, 11, 16, 17, 21]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: JDK setup
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
Expand All @@ -26,10 +28,10 @@ jobs:

coverage:
name: Quality Assurance
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [ build ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Codacy analysis reporting
uses: codacy/codacy-analysis-cli-action@master
93 changes: 93 additions & 0 deletions .github/workflows/update-arlington-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Update arlington branch

on:
push:
branches:
- integration

jobs:
checkout-and-build:
runs-on: ubuntu-latest

continue-on-error: true

strategy:
fail-fast: false
matrix:
java-version: [11, 16, 17, 21]

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: integration
- name: JDK setup
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: maven
- name: Fetch arlington branch and checkout
run: |
git fetch origin arlington:arlington
git checkout -b test-branch arlington
- name: Configure user nameF
run: |
git config user.name "Git User"
git config user.email "[email protected]"
- name: Add commit to the test branch
run: git cherry-pick -m 1 ${{ github.sha }}
- name: Build project with Maven
if: success()
run: mvn --batch-mode --update-snapshots verify

merge:
runs-on: ubuntu-latest
needs: checkout-and-build
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: integration
- name: Generate new branch name
id: new-branch-name
run: echo "branch_name=new-branch-$(date +%s)" >> "$GITHUB_OUTPUT"
- name: Fetch arlington branch and checkout
run: |
git fetch origin arlington:arlington
git checkout -b ${{ steps.new-branch-name.outputs.branch_name }} arlington
- name: Configure user name
run: |
git config user.name "Git User"
git config user.email "[email protected]"
- name: Add commit to new branch
run: git cherry-pick -m 1 ${{ github.sha }}
- name: Merge branch into arlington
if: success()
run: |
git push origin ${{ steps.new-branch-name.outputs.branch_name }}
git checkout arlington
git merge ${{ steps.new-branch-name.outputs.branch_name }}
git push origin arlington
- name: Delete new branch
run: git push origin --delete ${{ steps.new-branch-name.outputs.branch_name }}

send-notification:
runs-on: ubuntu-latest
needs: [checkout-and-build, merge]
if: |
always() &&
(contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'skipped') ||
contains(needs.*.result, 'cancelled'))
steps:
- name: Send notification if build or merge failed
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel_id: C03E3JJGLQL
status: FAILED
color: danger
11 changes: 7 additions & 4 deletions .github/workflows/update-jakarta-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@ jobs:
checkout-and-build:
runs-on: ubuntu-latest

continue-on-error: true

strategy:
fail-fast: false
matrix:
java-version: [11, 16, 17]
java-version: [11, 16, 17, 21]

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: integration
- name: JDK setup
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
Expand All @@ -44,7 +47,7 @@ jobs:
needs: checkout-and-build
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: integration
Expand Down
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ veraPDF-validation
==================
*Greenfield PDF/A and PDF/UA validation, feature reporting and metadata repair developed for veraPDF*

[![Build Status](https://jenkins.openpreservation.org/job/veraPDF/job/1.24/job/validation/badge/icon)](https://jenkins.openpreservation.org/job/veraPDF/job/1.24/job/validation/ "OPF Jenkins")
[![Build Status](https://jenkins.openpreservation.org/job/veraPDF/job/1.26/job/validation/badge/icon)](https://jenkins.openpreservation.org/job/veraPDF/job/1.26/job/validation/ "OPF Jenkins")
[![Maven Central](https://img.shields.io/maven-central/v/org.verapdf/validation.svg)](https://repo1.maven.org/maven2/org/verapdf/validation/ "Maven central")
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/34416471585a474e85e7821d61048d1c)](https://app.codacy.com/gh/veraPDF/veraPDF-validation/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade "Codacy grade")

Expand All @@ -28,7 +28,7 @@ Quick Start

In order to build this project you'll need:

* Java 8 - 17, which can be downloaded [from Oracle](https://www.oracle.com/technetwork/java/javase/downloads/index.html), or for Linux users [OpenJDK](https://openjdk.java.net/install/index.html).
* Java 8 - 21, which can be downloaded [from Oracle](https://www.oracle.com/technetwork/java/javase/downloads/index.html), or for Linux users [OpenJDK](https://openjdk.java.net/install/index.html).
* [Maven v3+](https://maven.apache.org/)

### Building the veraPDF Validation Model
Expand Down
2 changes: 1 addition & 1 deletion feature-reporting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<parent>
<artifactId>validation</artifactId>
<groupId>org.verapdf</groupId>
<version>1.24.0</version>
<version>1.26.0</version>
</parent>

<artifactId>feature-reporting</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ public final class GFFeatureParser {
private static final String DEVICERGB_ID = "devrgb";
private static final String DEVICECMYK_ID = "devcmyk";

private FeaturesReporter reporter;
private FeatureExtractorConfig config;
private Set<String> processedIDs;
private final FeaturesReporter reporter;
private final FeatureExtractorConfig config;
private final Set<String> processedIDs;

private GFFeatureParser(FeaturesReporter reporter, FeatureExtractorConfig config) {
this.reporter = reporter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
*/
public class GFAnnotationFeaturesObjectAdapter implements AnnotationFeaturesObjectAdapter {

private String id;
private String popupId;
private Set<String> formXObjects;
private PDAnnotation annot;
private final String id;
private final String popupId;
private final Set<String> formXObjects;
private final PDAnnotation annot;

/**
* Constructs new Annotation Feature Object Adapter
Expand Down Expand Up @@ -68,7 +68,7 @@ public String getPopupId() {

@Override
public Set<String> getFormXObjectsResources() {
return formXObjects == null ? Collections.<String>emptySet() : Collections.unmodifiableSet(formXObjects);
return formXObjects == null ? Collections.emptySet() : Collections.unmodifiableSet(formXObjects);
}

@Override
Expand Down Expand Up @@ -158,6 +158,6 @@ public boolean isPDFObjectPresent() {

@Override
public List<String> getErrors() {
return Collections.<String>emptyList();
return Collections.emptyList();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public class GFColorSpaceFeaturesObjectAdapter implements ColorSpaceFeaturesObje

private static final Logger LOGGER = Logger.getLogger(GFColorSpaceFeaturesObjectAdapter.class.getCanonicalName());

private PDColorSpace colorSpace;
private String id;
private String iccProfileChild;
private String colorSpaceChild;
private final PDColorSpace colorSpace;
private final String id;
private final String iccProfileChild;
private final String colorSpaceChild;
private String lookup;
private List<String> errors;

Expand Down Expand Up @@ -76,9 +76,7 @@ private void init(PDColorSpace colorSpace) {
PDIndexed index = (PDIndexed) colorSpace;
try (InputStream stream = index.getLookup()) {
byte[] lookupData = GFAdapterHelper.inputStreamToByteArray(stream);
if (lookupData != null) {
this.lookup = DatatypeConverter.printHexBinary(lookupData);
}
this.lookup = DatatypeConverter.printHexBinary(lookupData);
} catch (IOException e) {
LOGGER.log(Level.FINE, e.getMessage(), e);
this.errors = new ArrayList<>();
Expand Down Expand Up @@ -258,6 +256,6 @@ public boolean isPDFObjectPresent() {

@Override
public List<String> getErrors() {
return this.errors == null ? Collections.<String>emptyList() : Collections.unmodifiableList(this.errors);
return this.errors == null ? Collections.emptyList() : Collections.unmodifiableList(this.errors);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/
public class GFDocSecurityFeaturesObjectAdapter implements DocSecurityFeaturesObjectAdapter {

private PDEncryption encryption;
private final PDEncryption encryption;

public GFDocSecurityFeaturesObjectAdapter(PDEncryption encryption) {
this.encryption = encryption;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
*/
public class GFEmbeddedFileFeaturesObjectAdapter implements EmbeddedFileFeaturesObjectAdapter {

private COSObject embFile;
private final COSObject embFile;
private Params params;
private COSObject cosEmbFile;
private int index;
private final COSObject cosEmbFile;
private final int index;

/**
* Constructs new Embedded File Feature Object Adapter
Expand Down Expand Up @@ -139,7 +139,7 @@ public String getFilter() {
for (COSObject elem : (COSArray) filter.getDirectBase()) {
String elemValue = elem.getString();
if (elemValue != null) {
builder.append(elemValue).append(" ");
builder.append(elemValue).append(' ');
}
}
return builder.toString().trim();
Expand Down Expand Up @@ -184,9 +184,9 @@ public List<String> getErrors() {
return Collections.emptyList();
}

private class Params {
private static class Params {

private COSObject obj;
private final COSObject obj;

public Params(COSObject obj) {
this.obj = obj;
Expand All @@ -211,8 +211,7 @@ public Long getSize() {
private Calendar getDate(ASAtom type) {
String date = obj.getStringKey(type);
if (date != null) {
Calendar dateCal = TypeConverter.parseDate(date);
return dateCal;
return TypeConverter.parseDate(date);
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
*/
public class GFExtGStateFeaturesObjectAdapter implements ExtGStateFeaturesObjectAdapter {

private PDExtGState exGState;
private String id;
private String fontChildID;
private final PDExtGState exGState;
private final String id;
private final String fontChildID;

/**
* Constructs new extended graphics state feature object adapter
Expand Down Expand Up @@ -66,7 +66,7 @@ public String getFontChildId() {
public Boolean getTransparency() {
if (exGState != null && !exGState.empty()) {
Boolean res = exGState.getAlphaSourceFlag();
return res == null ? null : !res.booleanValue();
return res == null ? null : !res;
}
return null;
}
Expand Down
Loading