Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBerendsen committed Sep 10, 2024
1 parent 7ac6e48 commit a835ddf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ public class DVBSubtitlingPESDataField extends PesPacketData implements ImageSou


static {
try {
InputStream fileInputStream = classLoader.getResourceAsStream("monitors576.jpg");
bgImage576 = ImageIO.read(fileInputStream);
fileInputStream = classLoader.getResourceAsStream("monitors720.jpg");
bgImage720 = ImageIO.read(fileInputStream);
fileInputStream = classLoader.getResourceAsStream("monitors1080.jpg");
bgImage1080 = ImageIO.read(fileInputStream);
try (InputStream fileInputStream576 = classLoader.getResourceAsStream("monitors576.jpg");
InputStream fileInputStream720 = classLoader.getResourceAsStream("monitors720.jpg");
InputStream fileInputStream1080 = classLoader.getResourceAsStream("monitors1080.jpg");
){
bgImage576 = ImageIO.read(fileInputStream576);
bgImage720 = ImageIO.read(fileInputStream720);
bgImage1080 = ImageIO.read(fileInputStream1080);
} catch (Exception e) {
logger.log(Level.WARNING, "error reading image ", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import nl.digitalekabeltelevisie.controller.TreeNode;
import nl.digitalekabeltelevisie.gui.ImageSource;
import nl.digitalekabeltelevisie.util.BitSource;
import nl.digitalekabeltelevisie.util.Utils;


/**
* @author Eric Berendsen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void add(DVBSubtitlingPESDataField title) {
if(current!=null){
if(currentEpoch!=null){
currentEpoch.add(current);
current.setEpoch(new ArrayList<DisplaySet>(currentEpoch));
current.setEpoch(new ArrayList<>(currentEpoch));
}
displaySets.add(current);
current = null;
Expand All @@ -81,7 +81,7 @@ public void add(DVBSubtitlingPESDataField title) {
if(segment.getSegmentType()==0x80){ // end of display set segment
if(currentEpoch!=null){
currentEpoch.add(current);
current.setEpoch(new ArrayList<DisplaySet>(currentEpoch));
current.setEpoch(new ArrayList<>(currentEpoch));
}
displaySets.add(current);
current = null;
Expand Down

0 comments on commit a835ddf

Please sign in to comment.