mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-18 19:59:09 +00:00
avoid serialVersionUID warnings by adding it, also for anonymous inner classes;
Eclipse 2025-09 seems to have a different default setting regarding the
corresponding warning. When in Eclipse 2025-06 the
@SuppressWarning("serial") is required to suppress the warning, in
Eclipse 2025-09 the suppression is flagged with a warning, saying the
suppression wouldn't be necessary...
This commit is contained in:
+1
@@ -99,6 +99,7 @@ public class EditCAM extends javax.swing.JDialog {
|
||||
}
|
||||
});
|
||||
jMarkList.setModel(new javax.swing.AbstractListModel<ClockAtMarkElement>() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
ClockAtMarkElement[] clockAtMarkElements = { new ClockAtMarkElement(1, new Date(), "Item 1"),
|
||||
new ClockAtMarkElement(1, new Date(), "Item 2"), new ClockAtMarkElement(1, new Date(), "Item 3"),
|
||||
new ClockAtMarkElement(1, new Date(), "Item 4"), new ClockAtMarkElement(1, new Date(), "Item 5") };
|
||||
|
||||
+1
@@ -128,6 +128,7 @@ public class EditCCG extends javax.swing.JDialog {
|
||||
});
|
||||
|
||||
jMarkList.setModel(new javax.swing.AbstractListModel<CCGMessage>() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
CCGMessage[] ccgMessages = { new CCGMessage("Item 1", new ArrayList<Mark>()),
|
||||
new CCGMessage("Item 2", new ArrayList<Mark>()),
|
||||
new CCGMessage("Item 3", new ArrayList<Mark>()),
|
||||
|
||||
+1
@@ -93,6 +93,7 @@ public class EditSTL extends javax.swing.JDialog {
|
||||
}
|
||||
});
|
||||
jCompetitorList.setModel(new javax.swing.AbstractListModel<Competitor>() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
Competitor[] competitors = { new CompetitorWithoutID("Item 1", "DEU", "Item 1"),
|
||||
new CompetitorWithoutID("Item 2", "DEU", "Item 2"),
|
||||
new CompetitorWithoutID("Item 3", "DEU", "Item 3"),
|
||||
|
||||
+1
@@ -101,6 +101,7 @@ public class EditTMD extends javax.swing.JDialog {
|
||||
}
|
||||
});
|
||||
jTmdData.setModel(new javax.swing.AbstractListModel<TimingDataElement>() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
TimingDataElement[] strings = { new TimingDataElement(1, 1, new Date()),
|
||||
new TimingDataElement(2, 2, new Date()),
|
||||
new TimingDataElement(3, 3, new Date()),
|
||||
|
||||
+1
@@ -87,6 +87,7 @@ public class SwissTimingRaceEditor extends javax.swing.JFrame {
|
||||
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
|
||||
setTitle("SwissTiming-Sample-Race Editor");
|
||||
jCommandList.setModel(new javax.swing.AbstractListModel<Object>() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
|
||||
public int getSize() { return strings.length; }
|
||||
public Object getElementAt(int i) { return strings[i]; }
|
||||
|
||||
@@ -163,7 +163,10 @@ public class TrackTest {
|
||||
List<Timed> timeds = new ArrayList<>();
|
||||
for (TimePoint t = start; !t.after(end); t = t.plus((gpsFix5.getTimePoint().asMillis()-gpsFix1.getTimePoint().asMillis())/10)) {
|
||||
final TimePoint finalT = t;
|
||||
timeds.add(new Timed() {public TimePoint getTimePoint() { return finalT; }});
|
||||
timeds.add(new Timed() {
|
||||
private static final long serialVersionUID = 7038806820707652754L;
|
||||
public TimePoint getTimePoint() { return finalT; }
|
||||
});
|
||||
}
|
||||
assertEqualEstimatedPositionsSingleVsIterated(timeds, /* extrapolate */ true);
|
||||
assertEqualEstimatedPositionsSingleVsIterated(timeds, /* extrapolate */ false);
|
||||
@@ -176,7 +179,10 @@ public class TrackTest {
|
||||
List<Timed> timeds = new ArrayList<>();
|
||||
for (TimePoint t = start; !t.after(end); t = t.plus(gpsFix5.getTimePoint().asMillis()-gpsFix1.getTimePoint().asMillis())) {
|
||||
final TimePoint finalT = t;
|
||||
timeds.add(new Timed() {public TimePoint getTimePoint() { return finalT; }});
|
||||
timeds.add(new Timed() {
|
||||
private static final long serialVersionUID = -6329517520161330872L;
|
||||
public TimePoint getTimePoint() { return finalT; }
|
||||
});
|
||||
}
|
||||
assertEqualEstimatedPositionsSingleVsIterated(timeds, /* extrapolate */ true);
|
||||
assertEqualEstimatedPositionsSingleVsIterated(timeds, /* extrapolate */ false);
|
||||
|
||||
@@ -10,6 +10,7 @@ public class UserAgentCheckerImpl implements UserAgentChecker {
|
||||
* Version numbers indicate minimum required browser (20 = at least this version)
|
||||
*/
|
||||
private static final HashMap<AgentTypes, Integer> MINIMUM_SUPPORTED_AGENTS = new HashMap<AgentTypes, Integer>() {
|
||||
private static final long serialVersionUID = -3972648919899828625L;
|
||||
{
|
||||
put(AgentTypes.MSIE, 9);
|
||||
put(AgentTypes.SAFARI, 5);
|
||||
|
||||
Reference in New Issue
Block a user