Skip to content

Commit

Permalink
PDFBOX-5648: remove unused import; optimize
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1917547 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed May 7, 2024
1 parent 6b09c7c commit 2bc9f40
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package org.apache.fontbox.ttf.gsub;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
Expand Down Expand Up @@ -263,14 +262,14 @@ private void extractDataFromMultipleSubstitutionFormat1Table(
{
int coverageGlyphId = coverageTable.getGlyphId(i);
SequenceTable sequenceTable = multipleSubstFormat1Subtable.getSequenceTables()[i];
//TODO List.Of and Arrays.asList didn't work?!
List<Integer> list = new ArrayList<>();
for (int id : sequenceTable.getSubstituteGlyphIDs())
int[] substituteGlyphIDArray = sequenceTable.getSubstituteGlyphIDs();
List<Integer> substituteGlyphIDList = new ArrayList<>(substituteGlyphIDArray.length);
for (int id : substituteGlyphIDArray)
{
list.add(id);
substituteGlyphIDList.add(id);
}
putNewSubstitutionEntry(glyphSubstitutionMap,
list,
substituteGlyphIDList,
Collections.singletonList(coverageGlyphId));
}
}
Expand Down

0 comments on commit 2bc9f40

Please sign in to comment.