Skip to content

Commit 6703f95

Browse files
committed
remove DefaultMutableTreeNode
1 parent 2cd3c03 commit 6703f95

File tree

2 files changed

+7
-38
lines changed

2 files changed

+7
-38
lines changed

src/main/java/nl/digitalekabeltelevisie/data/mpeg/psi/DFITSection.java

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,9 @@
11
package nl.digitalekabeltelevisie.data.mpeg.psi;
22

3-
/**
4-
*
5-
* http://www.digitalekabeltelevisie.nl/dvb_inspector
6-
*
7-
* This code is Copyright 2009-2025 by Eric Berendsen ([email protected])
8-
*
9-
* This file is part of DVB Inspector.
10-
*
11-
* DVB Inspector is free software: you can redistribute it and/or modify
12-
* it under the terms of the GNU General Public License as published by
13-
* the Free Software Foundation, either version 3 of the License, or
14-
* (at your option) any later version.
15-
*
16-
* DVB Inspector is distributed in the hope that it will be useful,
17-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
* GNU General Public License for more details.
20-
*
21-
* You should have received a copy of the GNU General Public License
22-
* along with DVB Inspector. If not, see <http://www.gnu.org/licenses/>.
23-
*
24-
* The author requests that he be notified of any application, applet, or
25-
* other binary that makes use of this code, but that's more out of curiosity
26-
* than anything and is not required.
27-
*
28-
*/
29-
30-
import javax.swing.tree.DefaultMutableTreeNode;
3+
import static nl.digitalekabeltelevisie.util.Utils.*;
4+
5+
import java.util.ArrayList;
6+
import java.util.List;
317

328
import nl.digitalekabeltelevisie.controller.KVP;
339
import nl.digitalekabeltelevisie.controller.TreeNode;
@@ -36,11 +12,6 @@
3612
import nl.digitalekabeltelevisie.util.LookUpList;
3713
import nl.digitalekabeltelevisie.util.Utils;
3814

39-
import static nl.digitalekabeltelevisie.util.Utils.*;
40-
41-
import java.util.ArrayList;
42-
import java.util.List;
43-
4415
// based on EN 303 560 V1.1.1 (2018-05) 5.3.2.3.1 DFIT structure
4516

4617
public class DFITSection extends TableSectionExtendedSyntax {
@@ -101,7 +72,7 @@ public FontInfo(int font_info_type) {
10172

10273

10374
@Override
104-
public DefaultMutableTreeNode getJTreeNode(int modus) {
75+
public KVP getJTreeNode(int modus) {
10576

10677
KVP t = new KVP("Font Info");
10778
t.add(new KVP("font_info_type",font_info_type,fontInfoTypeList.get(font_info_type)));

src/main/java/nl/digitalekabeltelevisie/data/mpeg/psi/SCTE35.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
import java.util.SortedSet;
3232
import java.util.TreeSet;
3333

34-
import javax.swing.tree.DefaultMutableTreeNode;
35-
3634
import nl.digitalekabeltelevisie.controller.KVP;
3735
import nl.digitalekabeltelevisie.data.mpeg.PSI;
3836

@@ -58,9 +56,9 @@ public void update(SpliceInfoSection section) {
5856
}
5957

6058
@Override
61-
public DefaultMutableTreeNode getJTreeNode(int modus) {
59+
public KVP getJTreeNode(int modus) {
6260

63-
DefaultMutableTreeNode t = new DefaultMutableTreeNode(new KVP("SCTE-35"));
61+
KVP t = new KVP("SCTE-35");
6462
SortedSet<Integer> s = new TreeSet<>(spliceSections.keySet());
6563

6664
for (Integer pid : s) {

0 commit comments

Comments
 (0)