[
https://issues.apache.org/jira/browse/PDFBOX-2576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14281498#comment-14281498
]
Tilman Hausherr commented on PDFBOX-2576:
-----------------------------------------
[~jahewson] SonarQube doesn't like this code in PDColor.java: _A circularity
was detected in the static initializers of the two classes referenced by the
bug instance. Many kinds of unexpected behavior may arise from such
circularity_.
{code}
public static PDColor DEVICE_GRAY_BLACK = new PDColor(new float[] { 0 },
PDDeviceGray.INSTANCE);
{code}
Are you sure that PDDeviceGray.INSTANCE is always initialized at this moment?
> Improve code quality
> --------------------
>
> Key: PDFBOX-2576
> URL: https://issues.apache.org/jira/browse/PDFBOX-2576
> Project: PDFBox
> Issue Type: Task
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
>
> This is a longterm issue for the task to improve code quality, by using the
> [SonarQube
> report|https://analysis.apache.org/dashboard/index/org.apache.pdfbox:pdfbox-reactor],
> hints in different IDEs, the FindBugs tool and other code quality tools.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)