itext
5091
Anomaly identified by the detector. Please review whether this anomaly corresponds to a misuse.
8
com/itextpdf/text/pdf/PdfContentByte.java
sanityCheck()
class PdfContentByte { public void sanityCheck() { if (mcDepth != 0) { throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("unbalanced.marked.content.operators")); } if (inText) { throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("unbalanced.begin.end.text.operators")); } if (layerDepth != null && !layerDepth.isEmpty()) { throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("unbalanced.layer.operators")); } if (!stateList.isEmpty()) { throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("unbalanced.save.restore.state.operators")); } }}
class PdfContentByte {
public void sanityCheck() {
if (mcDepth != 0) {
throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("unbalanced.marked.content.operators"));
}
if (inText) {
throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("unbalanced.begin.end.text.operators"));
if (layerDepth != null && !layerDepth.isEmpty()) {
throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("unbalanced.layer.operators"));
if (!stateList.isEmpty()) {
throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("unbalanced.save.restore.state.operators"));
0.95
21.72
RETVAL: ByteBuffer.append (String) : ByteBuffer < ByteBuffer.append_i (int) : ByteBuffer @ (0)
21
RETVAL: MessageLocalization.getComposedMessage (String, Object[]) : String < IllegalPdfSyntaxException. (String) : void @ (1)