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

added constant in PngModule #578

Merged
merged 4 commits into from May 5, 2020
Merged

added constant in PngModule #578

merged 4 commits into from May 5, 2020

Conversation

marti1125
Copy link
Member

@marti1125 marti1125 commented Apr 29, 2020

Hi @carlwilson
I am working in magic number of
extramodules/it/eng/jhove/module/png/PngModule.java

but I know what is the correct name for:

'4' is a magic number.
case 4:

@codecov
Copy link

codecov bot commented Apr 29, 2020

Codecov Report

Merging #578 into integration will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff               @@
##             integration     #578   +/-   ##
==============================================
  Coverage          45.63%   45.63%           
  Complexity          1046     1046           
==============================================
  Files                 57       57           
  Lines               9149     9149           
  Branches            1687     1687           
==============================================
  Hits                4175     4175           
  Misses              4424     4424           
  Partials             550      550           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update becbaa8...bf7f8ef. Read the comment docs.

@carlwilson
Copy link
Member

Hi @marti1125, thanks for this. The case statement switches on the value of "colour type", a single byte value, described in the specification here, section 4.1.1: https://www.w3.org/TR/PNG-Chunks.html.

@marti1125
Copy link
Member Author

@carlwilson I added constants for color type, could you check if is it has correct name? please

Copy link
Member

@carlwilson carlwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks

Copy link
Member

@carlwilson carlwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I should have waited until I finished my tea before checking.

extramodules/it/eng/jhove/module/png/PngModule.java Outdated Show resolved Hide resolved
@marti1125
Copy link
Member Author

@carlwilson could you check again please :)

Copy link
Member

@carlwilson carlwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work, merging shortly.

@carlwilson carlwilson merged commit 35006d2 into openpreserve:integration May 5, 2020
@carlwilson carlwilson added this to the Hackathon tasks milestone May 5, 2020
@carlwilson carlwilson added P3 Low priority bugs RC1.26 labels Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Low priority bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants