mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-25 05:23:51 +00:00
reduced compiler warnings
This commit is contained in:
1 parent
e92116be9d
commit
79ba9833c4
4 files changed
+44
-12
No files matched your search
+2
-7
@@ -22,7 +22,6 @@ public class CompetitorDescriptor extends NamedImpl implements Named {
|
||||
private final String raceName;
|
||||
private final String fleetName;
|
||||
private final String sailNumber;
|
||||
private final String name;
|
||||
private final CountryCode countryCode;
|
||||
private final List<PersonDTO> persons;
|
||||
private final Double timeOnTimeFactor;
|
||||
@@ -39,7 +38,6 @@ public class CompetitorDescriptor extends NamedImpl implements Named {
|
||||
this.raceName = raceName;
|
||||
this.fleetName = fleetName;
|
||||
this.sailNumber = sailNumber;
|
||||
this.name = name;
|
||||
this.teamName = teamName;
|
||||
this.countryCode = countryCode;
|
||||
this.persons = new ArrayList<>();
|
||||
@@ -72,10 +70,6 @@ public class CompetitorDescriptor extends NamedImpl implements Named {
|
||||
return sailNumber;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public CountryCode getCountryCode() {
|
||||
return countryCode;
|
||||
}
|
||||
@@ -104,7 +98,8 @@ public class CompetitorDescriptor extends NamedImpl implements Named {
|
||||
public String toString() {
|
||||
return "CompetitorDescriptor [eventName=" + eventName + ", regattaName=" + regattaName + ", boatClassName="
|
||||
+ boatClassName + ", boatName=" + boatName + ", teamName=" + teamName + ", raceName=" + raceName
|
||||
+ ", fleetName=" + fleetName + ", sailNumber=" + sailNumber + ", name=" + name + ", countryCode="
|
||||
+ ", fleetName=" + fleetName + ", sailNumber=" + sailNumber + ", name=" + super.getName()
|
||||
+ ", countryCode="
|
||||
+ countryCode + ", persons=" + persons + ", timeOnTimeFactor=" + timeOnTimeFactor
|
||||
+ ", timeOnDistanceAllowancePerNauticalMile=" + timeOnDistanceAllowancePerNauticalMile + "]";
|
||||
}
|
||||
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.google.gwt.user.client.rpc.core.com.sap.sse.common.impl;
|
||||
|
||||
import com.google.gwt.user.client.rpc.CustomFieldSerializer;
|
||||
import com.google.gwt.user.client.rpc.SerializationException;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamReader;
|
||||
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
|
||||
import com.sap.sse.common.impl.NamedImpl;
|
||||
|
||||
public class NamedImpl_CustomFieldSerializer extends CustomFieldSerializer<NamedImpl> {
|
||||
public static void deserialize(SerializationStreamReader streamReader, com.sap.sse.common.impl.NamedImpl instance)
|
||||
throws SerializationException {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasCustomInstantiateInstance() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NamedImpl instantiateInstance(SerializationStreamReader streamReader) throws SerializationException {
|
||||
return new NamedImpl(streamReader.readString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserializeInstance(SerializationStreamReader streamReader, NamedImpl instance)
|
||||
throws SerializationException {
|
||||
// done by instantiateInstance
|
||||
}
|
||||
|
||||
@Override
|
||||
public void serializeInstance(SerializationStreamWriter streamWriter, NamedImpl instance)
|
||||
throws SerializationException {
|
||||
streamWriter.writeString(instance.getName());
|
||||
}
|
||||
|
||||
}
|
||||
+2
-3
@@ -2,8 +2,8 @@
|
||||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
||||
xmlns:g="urn:import:com.google.gwt.user.client.ui">
|
||||
<ui:with field="res" type="com.sap.sailing.gwt.common.client.SharedResources" />
|
||||
|
||||
<ui:style>
|
||||
|
||||
<ui:style gss="true">
|
||||
.iconGPS, .iconWind, .iconVideo, .iconAudio{
|
||||
line-height: 1.5em;
|
||||
position: relative;
|
||||
@@ -47,7 +47,6 @@
|
||||
height: 0;
|
||||
width: 0;
|
||||
position: absolute;
|
||||
// pointer-events: none;
|
||||
}
|
||||
|
||||
.legend:after {
|
||||
|
||||
+4
-2
@@ -20,6 +20,8 @@ import com.google.gwt.event.dom.client.ClickHandler;
|
||||
import com.google.gwt.safehtml.client.SafeHtmlTemplates;
|
||||
import com.google.gwt.safehtml.shared.SafeHtml;
|
||||
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
|
||||
import com.google.gwt.safehtml.shared.SafeUri;
|
||||
import com.google.gwt.safehtml.shared.UriUtils;
|
||||
import com.google.gwt.user.cellview.client.CellTable;
|
||||
import com.google.gwt.user.cellview.client.Column;
|
||||
import com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler;
|
||||
@@ -94,7 +96,7 @@ public class EventListComposite extends Composite implements EventsRefresher, Le
|
||||
|
||||
interface AnchorTemplates extends SafeHtmlTemplates {
|
||||
@SafeHtmlTemplates.Template("<a target=\"_blank\" href=\"{0}\">{1}</a>")
|
||||
SafeHtml cell(String url, String displayName);
|
||||
SafeHtml cell(SafeUri safeUri, String displayName);
|
||||
}
|
||||
|
||||
private static AnchorTemplates ANCHORTEMPLATE = GWT.create(AnchorTemplates.class);
|
||||
@@ -228,7 +230,7 @@ public class EventListComposite extends Composite implements EventsRefresher, Le
|
||||
if(event != null && event.id != null){
|
||||
link = EntryPointLinkFactory.createEventPlaceLink(event.id.toString(), new HashMap<String, String>());
|
||||
}
|
||||
return ANCHORTEMPLATE.cell(link, event.getName());
|
||||
return ANCHORTEMPLATE.cell(UriUtils.fromString(link), event.getName());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user