Skip to content

Commit

Permalink
Update vaadin to latest 8.x (#572)
Browse files Browse the repository at this point in the history
* Update vaadin to latest 8.x
  • Loading branch information
alvarezguille authored and Tulio Garcia committed Mar 25, 2019
1 parent d1ec5ed commit d614335
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
* #L%
*/

import java.util.Locale;

import com.vaadin.addon.charts.model.style.Color;
import com.vaadin.addon.charts.model.style.SolidColor;
import com.vaadin.data.Converter;
Expand All @@ -36,7 +34,7 @@ public ChartDesignFormatter() {
@Override
public Result<Number> convertToModel(String value,
ValueContext context) {
return convertToNumber(value, getLocaleFromContext(context));
return convertToNumber(value, context);
}
});

Expand All @@ -58,11 +56,6 @@ public String convertToPresentation(Color value, ValueContext context) {
});
}

private static Locale getLocaleFromContext(ValueContext context) {
return context.getLocale().isPresent() ? context.getLocale().get()
: Locale.getDefault();
}

@Override
public boolean canConvert(Class<?> type) {
return super.canConvert(type);
Expand Down
2 changes: 1 addition & 1 deletion chart-export-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<vaadin.version>8.3.1</vaadin.version>
<vaadin.version>8.7.1</vaadin.version>
<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
<vaadin.charts.version>4.1-SNAPSHOT</vaadin.charts.version>
<batik.version>1.7</batik.version>
Expand Down
2 changes: 1 addition & 1 deletion chart-plugin-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<vaadin.version>8.3.1</vaadin.version>
<vaadin.version>8.7.1</vaadin.version>
<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
<vaadin.charts.version>4.1-SNAPSHOT</vaadin.charts.version>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.organization>Vaadin Ltd</project.organization>
<vaadin.version>8.3.1</vaadin.version>
<vaadin.version>8.7.1</vaadin.version>
<jetty.version>9.4.8.v20171121</jetty.version>
<bundle.plugin.version>3.5.0</bundle.plugin.version>
</properties>
Expand Down

0 comments on commit d614335

Please sign in to comment.