Skip to content

Commit 2e7176f

Browse files
committed
Replace deprecated method calls
1 parent 92e710d commit 2e7176f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/io/calimero/gui/ProcCommTab.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Calimero GUI - A graphical user interface for the Calimero 3 tools
3-
Copyright (c) 2006, 2024 B. Malinowsky
3+
Copyright (c) 2006, 2025 B. Malinowsky
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -266,8 +266,8 @@ public void widgetSelected(final org.eclipse.swt.events.SelectionEvent e)
266266
dpt.add("");
267267
final Map<Integer, MainType> allMainTypes = TranslatorTypes.getAllMainTypes();
268268
allMainTypes.forEach((i, main) -> {
269-
dpt.add(main.getDescription());
270-
dpt.setData(main.getDescription(), new Object[] { main, null });
269+
dpt.add(main.description());
270+
dpt.setData(main.description(), new Object[] { main, null });
271271
try {
272272
new TreeMap<>(main.getSubTypes()).forEach((id, sub) -> {
273273
final boolean noUnit = sub.getUnit().isEmpty();
@@ -494,8 +494,8 @@ private Datapoint fetchDatapoint(final GroupAddress main, final Object[] dptData
494494
final int current = dp.getMainNumber();
495495
final MainType mt = (MainType) dptData[0];
496496
final DPT dpt = (DPT) dptData[1];
497-
if (mt.getMainNumber() != current || (dpt != null && !dpt.getID().equals(dp.getDPT())))
498-
dp.setDPT(mt.getMainNumber(),
497+
if (mt.mainNumber() != current || (dpt != null && !dpt.getID().equals(dp.getDPT())))
498+
dp.setDPT(mt.mainNumber(),
499499
dpt != null ? dpt.getID() : mt.getSubTypes().entrySet().iterator().next().getValue().getID());
500500
}
501501
return model.get(main);

0 commit comments

Comments
 (0)