Fix formatting

This commit is contained in:
Victor Shcherb 2019-02-15 12:02:38 +01:00
parent 47fbef7828
commit 1dc226ccb4

View file

@ -77,19 +77,20 @@ public class GPXUtilities {
SILVER(0xFFC0C0C0), SILVER(0xFFC0C0C0),
TEAL(0xFF008080); TEAL(0xFF008080);
int color; int color;
GPXColor(int color) {
this.color = color; GPXColor(int color) {
} this.color = color;
}
public static GPXColor getColorFromName(String s) {
for(GPXColor c : values()) { public static GPXColor getColorFromName(String s) {
if(c.name().equalsIgnoreCase(s)) { for (GPXColor c : values()) {
return c; if (c.name().equalsIgnoreCase(s)) {
} return c;
} }
return null; }
} return null;
}
} }
public static class GPXExtensions { public static class GPXExtensions {