Skip to content

Commit 697a9dd

Browse files
committed
PDFBOX-4951: sonar fix
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1935888 13f79535-47bb-0310-9956-ffa450edef68
1 parent 011f91e commit 697a9dd

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎pdfbox-layout-awt/src/test/java/org/apache/pdfbox/glyphlayout/GlyphLayoutLigaturesAndKerningTest.java‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import org.apache.pdfbox.pdmodel.PDPageContentStream;
4141
import org.apache.pdfbox.pdmodel.font.PDType0Font;
4242

43-
public class GlyphLayoutLigaturesAndKerningTest
43+
class GlyphLayoutLigaturesAndKerningTest
4444
{
4545
static final String FIRACODE_STRING = "!= == === >= <=";
4646
static final String DEJAVU_STRING = "AVATAR, effective, affiliation, float, film, affluent";
@@ -136,8 +136,7 @@ private PDType0Font createPdType0Font(GlyphLayoutProcessorAwt glyphLayoutProcess
136136
{
137137
InputStream fontStream = this.getClass().
138138
getResourceAsStream(fontPath);
139-
PDType0Font font = glyphLayoutProcessor.loadFont(pdDocument, fontStream);
140-
return font;
139+
return glyphLayoutProcessor.loadFont(pdDocument, fontStream);
141140
}
142141

143142
/*
@@ -148,8 +147,7 @@ private PDType0Font createPdType0Font(GlyphLayoutProcessorAwt glyphLayoutProcess
148147
{
149148
InputStream fontStream = this.getClass().
150149
getResourceAsStream(fontPath);
151-
PDType0Font font = glyphLayoutProcessor.loadFont(pdDocument, fontStream, fontOptions);
152-
return font;
150+
return glyphLayoutProcessor.loadFont(pdDocument, fontStream, fontOptions);
153151
}
154152

155153
/*

0 commit comments

Comments
 (0)